PageSourceSearch

https://jaxtaichi.com/siteadmin/preline.js

js jaxtaichi.com collected 2026-10-05 18:50:24 UTC 94,250 bytes, 2 lines download raw bytes

1/*! For license information please see preline.js.LICENSE.txt */
2"use strict";(()=>{var e={7615(e,t,i){i.d(t,{A:()=>n});class n{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let s=e;if(!Array.isArray(s)&&"u">typeof window){let e=null==(i=this.constructor)?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),s=window[t])}Array.isArray(s)&&s.push({id:(null==(n=t?.el)?void 0:n.id)||s.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},1926(e,t,i){i.d(t,{JD:()=>o,PK:()=>n,gj:()=>s,yd:()=>l});let n=e=>"true"===e,s=(e,t,i="")=>(window.getComputedStyle(e).getPropertyValue(t)||i).replace(" ",""),o=(e,t,i=null)=>{let n=new CustomEvent(e,{detail:{payload:i},bubbles:!0,cancelable:!0,composed:!1});t.dispatchEvent(n)},l=(e,t)=>{let i=()=>{t(),e.removeEventListener("transitionend",i,!0)},n=window.getComputedStyle(e),s=n.getPropertyValue("transition-duration");"none"!==n.getPropertyValue("transition-property")&&parseFloat(s)>0?e.addEventListener("transitionend",i,!0):t()}}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};i.d(n,{A:()=>r});var s=i(1926),o=i(7615),l=class e extends o.A{constructor(e,t,i){super(e,t,i),this.toggle=this.el.querySelector(".hs-accordion-toggle")||null,this.content=this.el.querySelector(".hs-accordion-content")||null,this.group=this.el.closest(".hs-accordion-group")||null,this.isAlwaysOpened=!1,this.keepOneOpen=!1,this.isToggleStopPropagated=!1,window.$hsAccordionCollection||(window.$hsAccordionCollection=[]),this.update(),this.isToggleStopPropagated=(0,s.PK)((0,s.gj)(this.toggle,"--stop-propagation","false")||"false"),this.keepOneOpen=!!this.group&&(0,s.PK)((0,s.gj)(this.group,"--keep-one-open","false")||"false"),this.toggle&&this.content&&this.init()}init(){this.createCollection(window.$hsAccordionCollection,this),this.onToggleClickListener=e=>this.toggleClick(e),this.toggle.addEventListener("click",this.onToggleClickListener)}toggleClick(e){if(this.el.classList.contains("active")&&this.keepOneOpen)return!1;this.isToggleStopPropagated&&e.stopPropagation(),this.el.classList.contains("active")?this.hide():this.show()}show(){var e;if(this.group&&!this.isAlwaysOpened&&this.group.querySelector(":scope > .hs-accordion.active")&&this.group.querySelector(":scope > .hs-accordion.active")!==this.el&&window.$hsAccordionCollection.find(e=>e.element.el===this.group.querySelector(":scope > .hs-accordion.active")).element.hide(),this.el.classList.contains("active"))return!1;this.el.classList.add("active"),null!=(e=this==null?void 0:this.toggle)&&e.ariaExpanded&&(this.toggle.ariaExpanded="true"),this.fireEvent("beforeOpen",this.el),(0,s.JD)("beforeOpen.hs.accordion",this.el,this.el),this.content.style.display="block",this.content.style.height="0",setTimeout(()=>{this.content.style.height=`${this.content.scrollHeight}px`,(0,s.yd)(this.content,()=>{this.content.style.display="block",this.content.style.height="",this.fireEvent("open",this.el),(0,s.JD)("open.hs.accordion",this.el,this.el)})})}hide(){var e;if(!this.el.classList.contains("active"))return!1;this.el.classList.remove("active"),null!=(e=this==null?void 0:this.toggle)&&e.ariaExpanded&&(this.toggle.ariaExpanded="false"),this.fireEvent("beforeClose",this.el),(0,s.JD)("beforeClose.hs.accordion",this.el,this.el),this.content.style.height=`${this.content.scrollHeight}px`,setTimeout(()=>{this.content.style.height="0"}),(0,s.yd)(this.content,()=>{this.content.style.display="none",this.content.style.height="",this.fireEvent("close",this.el),(0,s.JD)("close.hs.accordion",this.el,this.el)})}update(){return this.group=this.el.closest(".hs-accordion-group")||null,!!this.group&&(this.isAlwaysOpened=this.group.hasAttribute("data-hs-accordion-always-open")||!1,!!window.$hsAccordionCollection&&void window.$hsAccordionCollection.map(e=>
2(e.id===this.el.id&&(e.element.group=this.group,e.element.isAlwaysOpened=this.isAlwaysOpened),e)))}destroy(){var t;null!=(t=e?.selectable)&&t.length&&e.selectable.forEach(e=>{e.listeners.forEach(({el:e,listener:t})=>{e.removeEventListener("click",t)})}),this.onToggleClickListener&&this.toggle.removeEventListener("click",this.onToggleClickListener),this.toggle=null,this.content=null,this.group=null,this.onToggleClickListener=null,window.$hsAccordionCollection=window.$hsAccordionCollection.filter(({element:e})=>e.el!==this.el)}static findInCollection(t){return window.$hsAccordionCollection.find(i=>t instanceof e?i.element.el===t.el:"string"==typeof t?i.element.el===document.querySelector(t):i.element.el===t)||null}static autoInit(){window.$hsAccordionCollection||(window.$hsAccordionCollection=[]),window.$hsAccordionCollection&&(window.$hsAccordionCollection=window.$hsAccordionCollection.filter(({element:e})=>document.contains(e.el))),document.querySelectorAll(".hs-accordion:not(.--prevent-on-load-init)").forEach(t=>{window.$hsAccordionCollection.find(e=>{var i;return(null==(i=e?.element)?void 0:i.el)===t})||new e(t)})}static getInstance(e,t){let i=window.$hsAccordionCollection.find(t=>t.element.el===("string"==typeof e?document.querySelector(e):e));return i?t?i:i.element.el:null}static show(t){let i=e.findInCollection(t);i&&"block"!==i.element.content.style.display&&i.element.show()}static hide(t){let i=e.findInCollection(t),n=i?window.getComputedStyle(i.element.content):null;i&&"none"!==n.display&&i.element.hide()}static treeView(){if(!document.querySelectorAll(".hs-accordion-treeview-root").length)return!1;this.selectable=[],document.querySelectorAll(".hs-accordion-treeview-root").forEach(e=>{let t=e?.getAttribute("data-hs-accordion-options"),i=t?JSON.parse(t):{};this.selectable.push({el:e,options:Object.assign({},i),listeners:[]})}),this.selectable.length&&this.selectable.forEach(e=>{let{el:t}=e;t.querySelectorAll(".hs-accordion-selectable").forEach(t=>{let i=i=>this.onSelectableClick(i,e,t);t.addEventListener("click",i),e.listeners.push({el:t,listener:i})})})}static toggleSelected(e,t){t.classList.contains("selected")?t.classList.remove("selected"):(e.el.querySelectorAll(".hs-accordion-selectable").forEach(e=>e.classList.remove("selected")),t.classList.add("selected"))}static on(t,i,n){let s=e.findInCollection(i);s&&(s.element.events[t]=n)}};l.onSelectableClick=(e,t,i)=>{e.stopPropagation(),l.toggleSelected(t,i)};var r=l,a=n.A,h={189(e,t,i){i.d(t,{LO:()=>n});let n={xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536}},7615(e,t,i){i.d(t,{A:()=>n});class n{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let s=e;if(!Array.isArray(s)&&"u">typeof window){let e=null==(i=this.constructor)?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),s=window[t])}Array.isArray(s)&&s.push({id:(null==(n=t?.el)?void 0:n.id)||s.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},1926(e,t,i){i.d(t,{en:()=>o,fc:()=>s,sg:()=>n});let n=(e,t=200)=>{let i;return(...n)=>{clearTimeout(i),i=setTimeout(()=>{e.apply(void 0,n)},t)}},s=e=>{let t=document.createElement("template");return t.innerHTML=e=e.trim(),t.content.firstChild},o=(e,t,i=" ",n="add")=>{e.split(i).forEach(e=>{e.trim()&&("add"===n?t.classList.add(e):t.classList.remove(e))})}}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={exports:{}};return h[e](i,i.exports,d),i.exports}d.d=(e,t)=>{for(var i in t)d.o(t,i)&&!d.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var u={};d.d(u,{A:()=>f});var p=d(1926),m=d(7615),g=d(189),f=class e extends m.A{constructor(e,t){var i,n,s,o,l;super(e,t);let r=e.getAttribute("data-hs-carousel"),a=Object.assign(Object.assign({},r?JSON.parse(r):{}),t);this.currentIndex=a.currentIndex||0,this.loadingClasses=a.loadingClasses?`${a.loadingClasses}`.split(","):null,this.dotsItemClasses=a.dotsItemClasses?a.dotsItemClasses:null,this.isAutoHeight=void 0!==a.isAutoHeight&&a.isAutoHeight,this.isAutoPlay=void 0!==a.isAutoPlay&&a.isAutoPlay,this.isCentered=void 0!==a.isCentered&&a.isCentered,this.isDraggable=void 0!==a.isDraggable&&a.isDraggable,this.dragThreshold="number"==typeof a.dragThreshold?a.dragThreshold:.2,this.isInfiniteLoop=void 0!==a.isInfiniteLoop&&a.isInfiniteLoop,this.isRTL=void 0!==a.isRTL&&a.isRTL,this.isSnap=void 0!==a.isSnap&&a.isSnap,this.hasSnapSpacers=void 0===a.hasSnapSpacers||a.hasSnapSpacers,this.speed=a.speed||4e3,this.updateDelay=a.updateDelay||0,this.slidesQty=a.slidesQty||1,this.loadingClassesRemove=null!=(i=this.loadingClasses)&&i[0]?this.loadingClasses[0].split(" "):"opacity-0",this.loadingClassesAdd=null!=(n=this.loadingClasses)&&n[1]?this.loadingClasses[1].split(" "):"",this.afterLoadingClassesAdd=null!=(s=this.loadingClasses)&&s[2]?this.loadingClasses[2].split(" "):"",this.container=this.el.querySelector(".hs-carousel")||null,this.inner=this.el.querySelector(".hs-carousel-body")||null,this.slides=this.el.querySelectorAll(".hs-carousel-slide")||[],this.prev=this.el.querySelector(".hs-carousel-prev")||null,this.next=this.el.querySelector(".hs-carousel-next")||null,this.dots=this.el.querySelector(".hs-carousel-pagination")||null,this.info=this.el.querySelector(".hs-carousel-info")||null,this.infoTotal=(null==(o=this==null?void 0:this.info)?void 0:o.querySelector(".hs-carousel-info-total"))||null,this.infoCurrent=(null==(l=this==null?void 0:this.info)?void 0:l.querySelector(".hs-carousel-info-current"))||null,this.sliderWidth=this.el.getBoundingClientRect().width,this.isDragging=!1,this.dragStartX=null,this.dragStartTime=null,this.initialTranslateX=null,this.touchX={start:0,end:0},this.touchY={start:0,end:0},this.resizeContainer=document.querySelector("body"),this.resizeContainerWidth=0,this.init()}setIsSnap(){let e=this.container.getBoundingClientRect(),t=e.left+e.width/2,i=null,n=null,
2s=1/0;Array.from(this.inner.children).forEach(e=>{let n=e.getBoundingClientRect(),o=this.inner.getBoundingClientRect(),l=n.left+n.width/2-o.left,r=Math.abs(t-(o.left+l));r<s&&(s=r,i=e)}),i&&(n=Array.from(this.slides).findIndex(e=>e===i)),this.setIndex(n),this.dots&&this.setCurrentDot()}prevClick(){this.goToPrev(),this.isAutoPlay&&(this.resetTimer(),this.setTimer())}nextClick(){this.goToNext(),this.isAutoPlay&&(this.resetTimer(),this.setTimer())}containerScroll(){clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.setIsSnap()},100)}elementTouchStart(e){this.touchX.start=e.changedTouches[0].screenX,this.touchY.start=e.changedTouches[0].screenY}elementTouchEnd(e){this.touchX.end=e.changedTouches[0].screenX,this.touchY.end=e.changedTouches[0].screenY,this.detectDirection()}innerMouseDown(e){this.handleDragStart(e)}innerTouchStart(e){this.handleDragStart(e)}documentMouseMove(e){this.handleDragMove(e)}documentTouchMove(e){this.handleDragMove(e)}documentMouseUp(){this.handleDragEnd()}documentTouchEnd(){this.handleDragEnd()}dotClick(e){this.goTo(e),this.isAutoPlay&&(this.resetTimer(),this.setTimer())}init(){this.createCollection(window.$hsCarouselCollection,this),this.inner&&(this.calculateWidth(),this.isDraggable&&!this.isSnap&&this.initDragHandling()),this.prev&&(this.onPrevClickListener=()=>this.prevClick(),this.prev.addEventListener("click",this.onPrevClickListener)),this.next&&(this.onNextClickListener=()=>this.nextClick(),this.next.addEventListener("click",this.onNextClickListener)),this.dots&&this.initDots(),this.info&&this.buildInfo(),this.slides.length&&(this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass(),this.isAutoPlay&&this.autoPlay()),setTimeout(()=>{this.isSnap&&this.setIsSnap(),this.loadingClassesRemove&&("string"==typeof this.loadingClassesRemove?this.inner.classList.remove(this.loadingClassesRemove):this.inner.classList.remove(...this.loadingClassesRemove)),this.loadingClassesAdd&&("string"==typeof this.loadingClassesAdd?this.inner.classList.add(this.loadingClassesAdd):this.inner.classList.add(...this.loadingClassesAdd)),this.inner&&this.afterLoadingClassesAdd&&setTimeout(()=>{"string"==typeof this.afterLoadingClassesAdd?this.inner.classList.add(this.afterLoadingClassesAdd):this.inner.classList.add(...this.afterLoadingClassesAdd)})},400),this.isSnap&&(this.onContainerScrollListener=()=>this.containerScroll(),this.container.addEventListener("scroll",this.onContainerScrollListener)),this.el.classList.add("init"),this.isSnap||this.isDraggable||(this.onElementTouchStartListener=e=>this.elementTouchStart(e),this.onElementTouchEndListener=e=>this.elementTouchEnd(e),this.el.addEventListener("touchstart",this.onElementTouchStartListener),this.el.addEventListener("touchend",this.onElementTouchEndListener)),this.observeResize()}initDragHandling(){let e=this.inner;this.onInnerMouseDownListener=e=>this.innerMouseDown(e),this.onInnerTouchStartListener=e=>this.innerTouchStart(e),this.onDocumentMouseMoveListener=e=>this.documentMouseMove(e),this.onDocumentTouchMoveListener=e=>this.documentTouchMove(e),this.onDocumentMouseUpListener=()=>this.documentMouseUp(),this.onDocumentTouchEndListener=()=>this.documentTouchEnd(),e&&(e.addEventListener("mousedown",this.onInnerMouseDownListener),e.addEventListener("touchstart",this.onInnerTouchStartListener,{passive:!0}),document.addEventListener("mousemove",this.onDocumentMouseMoveListener),document.addEventListener("touchmove",this.onDocumentTouchMoveListener,{passive:!1}),document.addEventListener("mouseup",this.onDocumentMouseUpListener),document.addEventListener("touchend",this.onDocumentTouchEndListener))}getTranslateXValue(){var e;let t=window.getComputedStyle(this.inner).transform;if("none"!==t){let i=null==(e=t.match(/matrix.*\((.+)\)/))?void 0:e[1].split(", ");if(i){let e=parseFloat(6===i.length?i[4]:i[12]);return this.isRTL&&(e=-e),isNaN(e)||0===e?0:-e}}return 0}removeClickEventWhileDragging(e){e.preventDefault()}handleDragStart(e){e.preventDefault(),this.isDragging=!0,this.dragStartX=this.getEventX(e),this.dragStartTime=Date.now(),this.initialTranslateX=this.isRTL?this.getTranslateXValue():-this.getTranslateXValue(),this.inner.classList.add("dragging")}handleDragMove(e){let t,i,n,s,o;if(!this.isDragging)return;this.inner.querySelectorAll("a:not(.prevented-click)").forEach(e
2=>{e.classList.add("prevented-click"),e.addEventListener("click",this.removeClickEventWhileDragging)});let l=this.getEventX(e)-this.dragStartX;this.isRTL&&(l=-l);let r=this.initialTranslateX+l;this.setTranslate((t=this.sliderWidth*this.slides.length/this.getCurrentSlidesQty()-this.sliderWidth,n=((i=this.sliderWidth)-i/this.getCurrentSlidesQty())/2,s=this.isCentered?n:0,this.isCentered&&(t+=n),o=-t,this.isRTL?r<s?s:r>t?o:-r:r>s?s:r<-t?o:r))}handleDragEnd(){if(!this.isDragging)return;this.isDragging=!1;let e=this.sliderWidth/this.getCurrentSlidesQty(),t=this.getTranslateXValue()-this.getTargetTranslateX(this.currentIndex),i=this.dragStartTime?Date.now()-this.dragStartTime:1/0,n=e*this.dragThreshold,s=i<=250&&Math.abs(t)>=20,o=this.currentIndex;t>n||s&&t>0?o=this.currentIndex+1:(t<-n||s&&t<0)&&(o=this.currentIndex-1);let l=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty();o=Math.max(0,Math.min(o,l)),this.inner.classList.remove("dragging"),setTimeout(()=>{this.calculateTransform(o),this.dots&&this.setCurrentDot(),this.dragStartX=null,this.dragStartTime=null,this.initialTranslateX=null,this.inner.querySelectorAll("a.prevented-click").forEach(e=>{e.classList.remove("prevented-click"),e.removeEventListener("click",this.removeClickEventWhileDragging)})})}getEventX(e){return e instanceof MouseEvent?e.clientX:e.touches[0].clientX}getCurrentSlidesQty(){if("object"==typeof this.slidesQty){let e=document.body.clientWidth,t=0;return Object.keys(this.slidesQty).forEach(i=>{e>=(typeof i+"1"=="number"?this.slidesQty[i]:g.LO[i])&&(t=this.slidesQty[i])}),t}return this.slidesQty}buildSnapSpacers(){let e=this.inner.querySelector(".hs-snap-before"),t=this.inner.querySelector(".hs-snap-after");e&&e.remove(),t&&t.remove();let i=this.sliderWidth,n=i/2-i/this.getCurrentSlidesQty()/2,s=(0,p.fc)(`<div class="hs-snap-before" style="height: 100%; width: ${n}px"></div>`),o=(0,p.fc)(`<div class="hs-snap-after" style="height: 100%; width: ${n}px"></div>`);this.inner.prepend(s),this.inner.appendChild(o)}initDots(){this.el.querySelectorAll(".hs-carousel-pagination-item").length?this.setDots():this.buildDots(),this.dots&&this.setCurrentDot()}buildDots(){this.dots.innerHTML="";let e=!this.isCentered&&this.slidesQty?this.slides.length-(this.getCurrentSlidesQty()-1):this.slides.length;for(let t=0;t<e;t++){let e=this.buildSingleDot(t);this.dots.append(e)}}setDots(){this.dotsItems=this.dots.querySelectorAll(".hs-carousel-pagination-item"),this.dotsItems.forEach((e,t)=>{let i=e.getAttribute("data-carousel-pagination-item-target");this.singleDotEvents(e,i?+i:t)})}goToCurrentDot(){let e=this.dots,t=e.getBoundingClientRect(),i=e.scrollLeft,n=e.scrollTop,s=e.clientWidth,o=e.clientHeight,l=this.dotsItems[this.currentIndex],r=l.getBoundingClientRect(),a=r.left-t.left+i,h=a+l.clientWidth,c=r.top-t.top+n,d=c+l.clientHeight,u=i,p=n;(a<i||h>i+s)&&(u=h-s),(c<n||d>n+o)&&(p=d-o),e.scrollTo({left:u,top:p,behavior:"smooth"})}buildInfo(){this.infoTotal&&this.setInfoTotal(),this.infoCurrent&&this.setInfoCurrent()}setInfoTotal(){this.infoTotal.innerText=`${this.slides.length}`}setInfoCurrent(){this.infoCurrent.innerText=`${this.currentIndex+1}`}buildSingleDot(e){let t=(0,p.fc)("<span></span>");return this.dotsItemClasses&&(0,p.en)(this.dotsItemClasses,t),this.singleDotEvents(t,e),t}singleDotEvents(e,t){this.onDotClickListener=()=>this.dotClick(t),e.addEventListener("click",this.onDotClickListener)}observeResize(){new ResizeObserver((0,p.sg)(e=>{for(let t of e){let e=t.contentRect.width;e!==this.resizeContainerWidth&&(this.recalculateWidth(),this.dots&&this.initDots(),this.addCurrentClass(),this.resizeContainerWidth=e)}},this.updateDelay)).observe(this.resizeContainer)}calculateWidth(){this.isSnap||(this.inner.style.width=this.sliderWidth*this.slides.length/this.getCurrentSlidesQty()+"px"),this.slides.forEach(e=>{e.style.width=this.sliderWidth/this.getCurrentSlidesQty()+"px"}),this.calculateTransform()}addCurrentClass(){if(this.isSnap){let e=Math.floor(this.getCurrentSlidesQty()/2);for(let t=0;t<this.slides.length;t++){let i=this.slides[t];t<=this.currentIndex+e&&t>=this.currentIndex-e?i.classList.add("active"):i.classList.remove("active")}}else{let e=this.isCentered?this.currentIndex+this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.currentIndex+this.getCurrentSlidesQty();
2this.slides.forEach((t,i)=>{i>=this.currentIndex&&i<e?t.classList.add("active"):t.classList.remove("active")})}}setCurrentDot(){let e=(e,t)=>{let i=Math.floor(this.getCurrentSlidesQty()/2);(this.isSnap&&!this.hasSnapSpacers?t===(this.getCurrentSlidesQty()%2==0?this.currentIndex-i+1:this.currentIndex-i):t===this.currentIndex)?e.classList.add("active"):e.classList.remove("active")};this.dotsItems?this.dotsItems.forEach((t,i)=>e(t,i)):this.dots.querySelectorAll(":scope > *").forEach((t,i)=>e(t,i))}setElementToDisabled(e){e.classList.add("disabled"),"BUTTON"!==e.tagName&&"INPUT"!==e.tagName||e.setAttribute("disabled","disabled")}unsetElementToDisabled(e){e.classList.remove("disabled"),"BUTTON"!==e.tagName&&"INPUT"!==e.tagName||e.removeAttribute("disabled")}addDisabledClass(){if(!this.prev||!this.next)return!1;let e=getComputedStyle(this.inner).getPropertyValue("gap"),t=Math.floor(this.getCurrentSlidesQty()/2),i=0,n=0,s=!1,o=!1;this.isSnap?(i=this.currentIndex,n=this.hasSnapSpacers?this.slides.length-1:this.slides.length-t-1,s=this.hasSnapSpacers?0===i:this.getCurrentSlidesQty()%2==0?i-t<0:i-t==0,o=i>=n&&this.container.scrollLeft+this.container.clientWidth+(parseFloat(e)||0)>=this.container.scrollWidth):(i=this.currentIndex,n=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty(),s=0===i,o=i>=n),s?(this.unsetElementToDisabled(this.next),this.setElementToDisabled(this.prev)):o?(this.unsetElementToDisabled(this.prev),this.setElementToDisabled(this.next)):(this.unsetElementToDisabled(this.prev),this.unsetElementToDisabled(this.next))}autoPlay(){this.setTimer()}setTimer(){this.timer=setInterval(()=>{this.currentIndex===this.slides.length-1?this.goTo(0):this.goToNext()},this.speed)}resetTimer(){clearInterval(this.timer)}detectDirection(){let e=this.touchX.end-this.touchX.start,t=this.touchY.end-this.touchY.start,i=Math.abs(e),n=Math.abs(t);if(i<30||i<n)return;let s=this.isRTL?e>0:e<0;this.isInfiniteLoop?s?this.goToNext():this.goToPrev():(s&&this.currentIndex<this.slides.length-this.getCurrentSlidesQty()&&this.goToNext(),!s&&this.currentIndex>0&&this.goToPrev())}getTargetTranslateX(e){let t=this.sliderWidth,i=t/this.getCurrentSlidesQty(),n=e*i;if(this.isCentered&&!this.isSnap){let s=(t-i)/2;n=0===e?-s:e>=this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1)?this.slides.length*i-t+s:e*i-s}return n}calculateTransform(e){void 0!==e&&(this.currentIndex=e);let t=this.sliderWidth,i=t/this.getCurrentSlidesQty(),n=this.getTargetTranslateX(this.currentIndex);this.isSnap&&!this.isCentered&&this.container.scrollLeft<t&&this.container.scrollLeft+i/2>t&&(this.container.scrollLeft=this.container.scrollWidth),this.isSnap||this.setTransform(n),this.isAutoHeight&&(this.inner.style.height=`${this.slides[this.currentIndex].clientHeight}px`),this.dotsItems&&this.goToCurrentDot(),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass(),this.isSnap&&this.hasSnapSpacers&&this.buildSnapSpacers(),this.infoCurrent&&this.setInfoCurrent()}setTransform(e){this.slides.length>this.getCurrentSlidesQty()?this.inner.style.transform=this.isRTL?`translate(${e}px, 0px)`:`translate(${-e}px, 0px)`:this.inner.style.transform="translate(0px, 0px)"}setTranslate(e){this.inner.style.transform=this.isRTL?`translate(${-e}px, 0px)`:`translate(${e}px, 0px)`}setIndex(e){this.currentIndex=e,this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}recalculateWidth(){this.sliderWidth=this.inner.parentElement.getBoundingClientRect().width,this.calculateWidth(),this.sliderWidth!==this.inner.parentElement.getBoundingClientRect().width&&this.recalculateWidth()}goToPrev(){let e=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty();if(this.currentIndex>0?this.currentIndex--:this.currentIndex=e,this.fireEvent("update",this.currentIndex),this.isSnap){let e=this.sliderWidth/this.getCurrentSlidesQty();this.container.scrollBy({left:Math.max(-this.container.scrollLeft,-e),behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}goToNext(){let e=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty();if(this.currentIndex<e?this.currentIndex++:this.currentIndex=0,this.fireEvent("update",this.currentIndex),this.isSnap){let e=this.sliderWidth/this.getCurrentSlidesQty(),t=this.container.scrollWidth-this.container.clientWidth;this.container.scrollBy({left:Math.min(e,t-this.container.scrollLeft),behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}goTo(e){let t=this.currentIndex;if(this.currentIndex=e,this.fireEvent("update",this.currentIndex),this.isSnap){let e=this.sliderWidth/this.getCurrentSlidesQty(),i=t>
2this.currentIndex?t-this.currentIndex:this.currentIndex-t,n=t>this.currentIndex?-e*i:e*i;this.container.scrollBy({left:n,behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}destroy(){var e,t;this.loadingClassesAdd&&("string"==typeof this.loadingClassesAdd?this.inner.classList.remove(this.loadingClassesAdd):this.inner.classList.remove(...this.loadingClassesAdd)),this.inner&&this.afterLoadingClassesAdd&&setTimeout(()=>{"string"==typeof this.afterLoadingClassesAdd?this.inner.classList.remove(this.afterLoadingClassesAdd):this.inner.classList.remove(...this.afterLoadingClassesAdd)}),this.el.classList.remove("init"),this.inner.classList.remove("dragging"),this.slides.forEach(e=>e.classList.remove("active")),null!=(e=this==null?void 0:this.dotsItems)&&e.length&&this.dotsItems.forEach(e=>e.classList.remove("active")),this.prev.classList.remove("disabled"),this.next.classList.remove("disabled"),this.inner.style.width="",this.slides.forEach(e=>e.style.width=""),this.isSnap||(this.inner.style.transform=""),this.isAutoHeight&&(this.inner.style.height=""),this.prev.removeEventListener("click",this.onPrevClickListener),this.next.removeEventListener("click",this.onNextClickListener),this.container.removeEventListener("scroll",this.onContainerScrollListener),this.el.removeEventListener("touchstart",this.onElementTouchStartListener),this.el.removeEventListener("touchend",this.onElementTouchEndListener),this.inner.removeEventListener("mousedown",this.onInnerMouseDownListener),this.inner.removeEventListener("touchstart",this.onInnerTouchStartListener),document.removeEventListener("mousemove",this.onDocumentMouseMoveListener),document.removeEventListener("touchmove",this.onDocumentTouchMoveListener),document.removeEventListener("mouseup",this.onDocumentMouseUpListener),document.removeEventListener("touchend",this.onDocumentTouchEndListener),this.inner.querySelectorAll("a:not(.prevented-click)").forEach(e=>{e.classList.remove("prevented-click"),e.removeEventListener("click",this.removeClickEventWhileDragging)}),(null!=(t=this==null?void 0:this.dotsItems)&&t.length||this.dots.querySelectorAll(":scope > *").length)&&(((this==null?void 0:this.dotsItems)||this.dots.querySelectorAll(":scope > *")).forEach(e=>e.removeEventListener("click",this.onDotClickListener)),this.dots.innerHTML=null),this.isSnap&&this.hasSnapSpacers&&(this.inner.querySelector(".hs-snap-before").remove(),this.inner.querySelector(".hs-snap-after").remove()),this.dotsItems=null,this.isDragging=!1,this.dragStartX=null,this.dragStartTime=null,this.initialTranslateX=null,window.$hsCarouselCollection=window.$hsCarouselCollection.filter(({element:e})=>e.el!==this.el)}static getInstance(e,t){let i=window.$hsCarouselCollection.find(t=>t.element.el===("string"==typeof e?document.querySelector(e):e));return i?t?i:i.element:null}static autoInit(){window.$hsCarouselCollection||(window.$hsCarouselCollection=[]),window.$hsCarouselCollection&&(window.$hsCarouselCollection=window.$hsCarouselCollection.filter(({element:e})=>document.contains(e.el))),document.querySelectorAll("[data-hs-carousel]:not(.--prevent-on-load-init)").forEach(t=>{window.$hsCarouselCollection.find(e=>{var i;return(null==(i=e?.element)?void 0:i.el)===t})||new e(t)})}},y=u.A,v={7615(e,t,i){i.d(t,{A:()=>n});class n{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let s=e;if(!Array.isArray(s)&&"u">typeof window){let e=null==(i=this.constructor)?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),s=window[t])}Array.isArray(s)&&s.push({id:(null==(n=t?.el)?void 0:n.id)||s.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},1926(e,t,i){i.d(t,{JD:()=>n,yd:()=>s});let n=(e,t,i=null)=>{let n=new CustomEvent(e,{detail:{payload:i},bubbles:!0,cancelable:!0,composed:!1});t.dispatchEvent(n)},s=(e,t)=>{let i=()=>{t(),e.removeEventListener("transitionend",i,!0)},n=window.getComputedStyle(e),s=n.getPropertyValue("transition-duration");"none"!==n.getPropertyValue("transition-property")&&parseFloat(s)>0?e.addEventListener("transitionend",i,!0):t()}}},w={};function C(e){var t=w[e];if(void 0!==t)return t.exports;var i=w[e]={exports:{}};return v[e](i,i.exports,C),i.exports}C.d=(e,t)=>{for(var i in t)C.o(t,i)&&!C.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},C.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var b={};C.d(b,{A:()=>S});
2var L=C(1926),E=C(7615),S=class e extends E.A{constructor(e,t,i){super(e,t,i),this.contentId=this.el.dataset.hsCollapse,this.content=document.querySelector(this.contentId),this.animationInProcess=!1,this.content&&this.init()}elementClick(){this.content.classList.contains("open")?this.hide():this.show()}init(){var e;this.createCollection(window.$hsCollapseCollection,this),this.onElementClickListener=()=>this.elementClick(),null!=(e=this==null?void 0:this.el)&&e.ariaExpanded&&(this.el.classList.contains("open")?this.el.ariaExpanded="true":this.el.ariaExpanded="false"),this.el.addEventListener("click",this.onElementClickListener)}hideAllMegaMenuItems(){this.content.querySelectorAll(".hs-mega-menu-content.block").forEach(e=>{e.classList.remove("block"),e.classList.add("hidden")})}show(){var e;if(this.animationInProcess||this.el.classList.contains("open"))return!1;this.animationInProcess=!0,this.el.classList.add("open"),null!=(e=this==null?void 0:this.el)&&e.ariaExpanded&&(this.el.ariaExpanded="true"),this.content.classList.add("open"),this.content.classList.remove("hidden"),this.content.style.height="0",setTimeout(()=>{this.content.style.height=`${this.content.scrollHeight}px`,this.fireEvent("beforeOpen",this.el),(0,L.JD)("beforeOpen.hs.collapse",this.el,this.el),(0,L.yd)(this.content,()=>{this.content.style.height="",this.fireEvent("open",this.el),(0,L.JD)("open.hs.collapse",this.el,this.el),this.animationInProcess=!1})})}hide(){var e;if(this.animationInProcess||!this.el.classList.contains("open"))return!1;this.animationInProcess=!0,this.el.classList.remove("open"),null!=(e=this==null?void 0:this.el)&&e.ariaExpanded&&(this.el.ariaExpanded="false"),this.content.style.height=`${this.content.scrollHeight}px`,setTimeout(()=>{this.content.style.height="0"}),this.content.classList.remove("open"),(0,L.yd)(this.content,()=>{this.content.classList.add("hidden"),this.content.style.height="",this.fireEvent("hide",this.el),(0,L.JD)("hide.hs.collapse",this.el,this.el),this.animationInProcess=!1}),this.content.querySelectorAll(".hs-mega-menu-content.block").length&&this.hideAllMegaMenuItems()}destroy(){this.el.removeEventListener("click",this.onElementClickListener),this.content=null,this.animationInProcess=!1,window.$hsCollapseCollection=window.$hsCollapseCollection.filter(({element:e})=>e.el!==this.el)}static findInCollection(t){return window.$hsCollapseCollection.find(i=>t instanceof e?i.element.el===t.el:"string"==typeof t?i.element.el===document.querySelector(t):i.element.el===t)||null}static getInstance(e,t=!1){let i=window.$hsCollapseCollection.find(t=>t.element.el===("string"==typeof e?document.querySelector(e):e));return i?t?i:i.element.el:null}static autoInit(){window.$hsCollapseCollection||(window.$hsCollapseCollection=[]),window.$hsCollapseCollection&&(window.$hsCollapseCollection=window.$hsCollapseCollection.filter(({element:e})=>document.contains(e.el))),document.querySelectorAll(".hs-collapse-toggle:not(.--prevent-on-load-init)").forEach(t=>{window.$hsCollapseCollection.find(e=>{var i;return(null==(i=e?.element)?void 0:i.el)===t})||new e(t)})}static show(t){let i=e.findInCollection(t);i&&i.element.content.classList.contains("hidden")&&i.element.show()}static hide(t){let i=e.findInCollection(t);i&&!i.element.content.classList.contains("hidden")&&i.element.hide()}static on(t,i,n){let s=e.findInCollection(i);s&&(s.element.events[t]=n)}},x=b.A,A={189(e,t,i){i.d(t,{lP:()=>n});let n={auto:"auto","auto-start":"auto-start","auto-end":"auto-end",top:"top","top-left":"top-start","top-right":"top-end",bottom:"bottom","bottom-left":"bottom-start","bottom-right":"bottom-end",right:"right","right-start":"right-start","right-end":"right-end",left:"left","left-start":"left-start","left-end":"left-end"}},8862(e,t,i){i.d(t,{A:()=>s});var n=i(1926);let s=class{constructor(){this.components=[],this.currentlyOpenedComponents=[],this.activeComponent=null,this.allowedKeybindings=new Set(["Escape","Enter"," ","Space","ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Tab","Home","End"]),this.initGlobalListeners()}initGlobalListeners(){document.addEventListener("keydown",e=>this.handleGlobalKeydown(e)),document.addEventListener("focusin",e=>this.handleGlobalFocusin(e))}isAllowedKeybinding(e){return!!this.allowedKeybindings.has(e.key)||!(1!==e.key.length||!/^[a-zA-Z]$/.test(e.key)||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)}getActiveComponent(e){if(!e)return null;let t=this.components.filter(t=>t.wrapper.contains(e)||t.context&&t.context.contains(e));if(0===t.length)return null;if(1===t.length)return t[0];let i=null,n=Number.MAX_SAFE_INTEGER;for(let s of t){let t=0,o=e;for(;o&&o!==s.wrapper&&o!==s.context;)t++,o=o.parentElement;t<n&&(n=t,i=s)}return i}getActiveComponentForKey(e,t){if(!e)return null;let i=this.components.filter(t=>t.wrapper.contains(e)||t.context&&t.context.contains(e));if(0===i.length)return null;let n=i.filter(e=>{let i=e.handlers;switch(t){case"Escape":return!!i.onEsc;case"Enter":return!!i.onEnter;case" ":case"Space":return!!i.onSpace;case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":return!!i.onArrow;case"Tab":return!!i.onTab||!!i.onShiftTab;case"Home":return!!i.onHome;case"End":return!!i.onEnd;default:return!!i.onFirstLetter}});if(0===n.length)return this.getActiveComponent(e);
2if(1===n.length)return n[0];let s=null,o=Number.MAX_SAFE_INTEGER;for(let t of n){let i=0,n=e;for(;n&&n!==t.wrapper&&n!==t.context;)i++,n=n.parentElement;i<o&&(o=i,s=t)}return s}getDistanceToComponent(e,t){let i=0,n=e;for(;n&&n!==t.wrapper&&n!==t.context;)i++,n=n.parentElement;return i}getComponentsByNesting(e){if(!e)return[];let t=this.components.filter(t=>t.wrapper.contains(e)||t.context&&t.context.contains(e));return t.length<=1?t:[...t].sort((t,i)=>this.getDistanceToComponent(e,i)-this.getDistanceToComponent(e,t))}getSequentialHandlersForKey(e,t){let i=this.getComponentsByNesting(e);return 0===i.length?[]:i.map(e=>"Enter"===t?e.handlers.onEnter:e.handlers.onSpace).filter(e=>"function"==typeof e)}executeSequentialHandlers(e,t){let i=!1,n=!1;for(let s of e)if(i=!0,!1===s(t)){n=!0;break}return{called:i,stopped:n}}handleGlobalFocusin(e){let t=e.target;this.activeComponent=this.getActiveComponent(t)}handleGlobalKeydown(e){var t;let i=e.target;this.activeComponent=this.getActiveComponentForKey(i,e.key);let s=this.activeComponent,o="Enter"===e.key||" "===e.key||"Space"===e.key;if((s||o)&&this.isAllowedKeybinding(e))switch(e.key){case"Escape":if(!s)break;if(s.isOpened){if(s.handlers.onEsc){let t=s.handlers.onEsc();if(e.preventDefault(),e.stopPropagation(),!1===t){let e=this.findClosestOpenParent(i);e?.handlers.onEsc&&e.handlers.onEsc()}}}else{let t=this.findClosestOpenParent(i);t?.handlers.onEsc&&(t.handlers.onEsc(),e.preventDefault(),e.stopPropagation())}break;case"Enter":{let t=this.getSequentialHandlersForKey(i,"Enter");if(0===t.length)break;let{called:s,stopped:o}=this.executeSequentialHandlers(t,e);s&&!(0,n.V6)(i)&&(e.stopPropagation(),e.preventDefault());break}case" ":case"Space":{if("INPUT"===i.tagName||"TEXTAREA"===i.tagName)return;let t=this.getActiveComponent(i),n=this.getSequentialHandlersForKey(i,"Space");if(0===n.length)break;let{stopped:s}=this.executeSequentialHandlers(n);(s||t?.handlers.onSpace)&&(e.preventDefault(),e.stopPropagation());break}case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":if(!s)break;if(s.handlers.onArrow){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;s.handlers.onArrow(e),e.preventDefault(),e.stopPropagation()}break;case"Tab":if(!s||!s.handlers.onTab)break;let l=e.shiftKey?s.handlers.onShiftTab:s.handlers.onTab;l&&l(e);break;case"Home":if(!s)break;s.handlers.onHome&&(s.handlers.onHome(),e.preventDefault(),e.stopPropagation());break;case"End":if(!s)break;s.handlers.onEnd&&(s.handlers.onEnd(),e.preventDefault(),e.stopPropagation());break;default:if(!s)break;if(s.handlers.onFirstLetter&&1===e.key.length&&/^[a-zA-Z]$/.test(e.key)){if(s.handlers.onFirstLetter(e.key),!(null!=(t=s.stopPropagation)&&t.onFirstLetter))return;e.preventDefault(),e.stopPropagation()}}}findClosestOpenParent(e){let t=e.parentElement;for(;t;){let e=this.currentlyOpenedComponents.find(e=>e.wrapper===t&&e!==this.activeComponent);if(e)return e;t=t.parentElement}return null}registerComponent(e,t,i=!0,n="",s="",o,l){let r={wrapper:e,handlers:t,isOpened:i,name:n,selector:s,context:o,isRegistered:!0,stopPropagation:l};return this.components.push(r),r}updateComponentState(e,t){e.isOpened=t,t?this.currentlyOpenedComponents.includes(e)||this.currentlyOpenedComponents.push(e):this.currentlyOpenedComponents=this.currentlyOpenedComponents.filter(t=>t!==e)}unregisterComponent(e){this.components=this.components.filter(t=>t!==e),this.currentlyOpenedComponents=this.currentlyOpenedComponents.filter(t=>t!==e)}addAllowedKeybinding(e){this.allowedKeybindings.add(e)}removeAllowedKeybinding(e){this.allowedKeybindings.delete(e)}getAllowedKeybindings(){return Array.from(this.allowedKeybindings)}}},7615(e,t,i){i.d(t,{A:()=>n});class n{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let s=e;if(!Array.isArray(s)&&"u">typeof window){let e=null==(i=this.constructor)?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),s=window[t])}Array.isArray(s)&&s.push({id:(null==(n=t?.el)?void 0:n.id)||s.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},1926(e,t,i){i.d(t,{BF:()=>o,JD:()=>h,PK:()=>n,V6:()=>l,gj:()=>s,un:()=>r,yd:()=>c,zG:()=>a});let n=e=>"true"===e,s=(e,t,i="")=>(window.getComputedStyle(e).getPropertyValue(t)||i).replace(" ",""),o=(e,t,i="")=>{let n="";
2return e.classList.forEach(e=>{e.includes(t)&&(n=e)}),n.match(/:(.*)]/)?n.match(/:(.*)]/)[1]:i},l=e=>e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement,r=()=>!!/iPad|iPhone|iPod/.test(navigator.platform)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),a=()=>navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),h=(e,t,i=null)=>{let n=new CustomEvent(e,{detail:{payload:i},bubbles:!0,cancelable:!0,composed:!1});t.dispatchEvent(n)},c=(e,t)=>{let i=()=>{t(),e.removeEventListener("transitionend",i,!0)},n=window.getComputedStyle(e),s=n.getPropertyValue("transition-duration");"none"!==n.getPropertyValue("transition-property")&&parseFloat(s)>0?e.addEventListener("transitionend",i,!0):t()}},7663(e,t,i){i.d(t,{ll:()=>er,rD:()=>ec,UU:()=>eh,cY:()=>ea});let n=Math.min,s=Math.max,o=Math.round,l=Math.floor,r=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"};function h(e,t){return"function"==typeof e?e(t):e}function c(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function u(e){return"y"===e?"height":"width"}function p(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function m(e){return"x"===p(e)?"y":"x"}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let f=["left","right"],y=["right","left"],v=["top","bottom"],w=["bottom","top"];function C(e){let t=c(e);return a[t]+e.slice(t.length)}function b(e){let{x:t,y:i,width:n,height:s}=e;return{width:n,height:s,top:i,left:t,right:t+n,bottom:i+s,x:t,y:i}}function L(e,t,i){let{reference:n,floating:s}=e,o=p(t),l=m(t),r=u(l),a=c(t),h="y"===o,g=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,y=n[r]/2-s[r]/2,v;switch(a){case"top":v={x:g,y:n.y-s.height};break;case"bottom":v={x:g,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-s.width,y:f};break;default:v={x:n.x,y:n.y}}switch(d(t)){case"start":v[l]-=y*(i&&h?-1:1);break;case"end":v[l]+=y*(i&&h?-1:1)}return v}async function E(e,t){var i;void 0===t&&(t={});let{x:n,y:s,platform:o,rects:l,elements:r,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=h(t,e),g="number"!=typeof m?{top:0,right:0,bottom:0,left:0,...m}:{top:m,right:m,bottom:m,left:m},f=r[p?"floating"===u?"reference":"floating":u],y=b(await o.getClippingRect({element:null==(i=await (null==o.isElement?void 0:o.isElement(f)))||i?f:f.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:a})),v="floating"===u?{x:n,y:s,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(r.floating)),C=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},L=b(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:v,offsetParent:w,strategy:a}):v);return{top:(y.top-L.top+g.top)/C.y,bottom:(L.bottom-y.bottom+g.bottom)/C.y,left:(y.left-L.left+g.left)/C.x,right:(L.right-y.right+g.right)/C.x}}let S=new Set(["left","top"]);function x(){return"u">typeof window}function A(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function k(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!x()&&(e instanceof Node||e instanceof T(e).Node)}function O(e){return!!x()&&(e instanceof Element||e instanceof T(e).Element)}function D(e){return!!x()&&(e instanceof HTMLElement||e instanceof T(e).HTMLElement)}function P(e){return!(!x()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof T(e).ShadowRoot)}function $(e){let{overflow:t,overflowX:i,overflowY:n,display:s}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+i)&&"inline"!==s&&"contents"!==s}function M(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}let H=/transform|translate|scale|rotate|perspective|filter/,R=/paint|layout|strict|content/,q=e=>!!e&&"none"!==e,F;function K(e){let t=O(e)?N(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!B()&&(q(t.backdropFilter)||q(t.filter))||H.test(t.willChange||"")||R.test(t.contain||"")}function B(){return null==F&&(F="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),F}function W(e){return/^(html|body|#document)$/.test(A(e))}function N(e){return T(e).getComputedStyle(e)}function V(e){return O(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function j(e){if("html"===A(e))return e;let t=e.assignedSlot||e.parentNode||P(e)&&e.host||k(e);return P(t)?t.host:t}function Q(e,t,i){var n;void 0===t&&(t=[]),void 0===i&&(i=!0);let s=function e(t){let i=j(t);return W(i)?t.ownerDocument?t.ownerDocument.body:t.body:D(i)&&$(i)?i:e(i)}(e),o=s===(null==(n=e.ownerDocument)?void 0:n.body),l=T(s);if(o){let e=X(l);
2return t.concat(l,l.visualViewport||[],$(s)?s:[],e&&i?Q(e):[])}return t.concat(s,Q(s,[],i))}function X(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U(e){let t=N(e),i=parseFloat(t.width)||0,n=parseFloat(t.height)||0,s=D(e),l=s?e.offsetWidth:i,r=s?e.offsetHeight:n,a=o(i)!==l||o(n)!==r;return a&&(i=l,n=r),{width:i,height:n,$:a}}function z(e){return O(e)?e:e.contextElement}function G(e){let t=z(e);if(!D(t))return r(1);let i=t.getBoundingClientRect(),{width:n,height:s,$:l}=U(t),a=(l?o(i.width):i.width)/n,h=(l?o(i.height):i.height)/s;return a&&Number.isFinite(a)||(a=1),h&&Number.isFinite(h)||(h=1),{x:a,y:h}}let J=r(0);function Z(e){let t=T(e);return B()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:J}function _(e,t,i,n){var s;void 0===t&&(t=!1),void 0===i&&(i=!1);let o=e.getBoundingClientRect(),l=z(e),a=r(1);t&&(n?O(n)&&(a=G(n)):a=G(e));let h=(void 0===(s=i)&&(s=!1),!(!n||s&&n!==T(l))&&s)?Z(l):r(0),c=(o.left+h.x)/a.x,d=(o.top+h.y)/a.y,u=o.width/a.x,p=o.height/a.y;if(l){let e=T(l),t=n&&O(n)?T(n):n,i=e,s=X(i);for(;s&&n&&t!==i;){let e=G(s),t=s.getBoundingClientRect(),n=N(s),o=t.left+(s.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(s.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,u*=e.x,p*=e.y,c+=o,d+=l,s=X(i=T(s))}}return b({width:u,height:p,x:c,y:d})}function Y(e,t){let i=V(e).scrollLeft;return t?t.left+i:_(k(e)).left+i}function ee(e,t){let i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-Y(e,i),y:i.top+t.scrollTop}}function et(e,t,i){var n;let o;if("viewport"===t)o=function(e,t){let i=T(e),n=k(e),s=i.visualViewport,o=n.clientWidth,l=n.clientHeight,r=0,a=0;if(s){o=s.width,l=s.height;let e=B();(!e||e&&"fixed"===t)&&(r=s.offsetLeft,a=s.offsetTop)}let h=Y(n);if(h<=0){let e=n.ownerDocument,t=e.body,i=getComputedStyle(t),s="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-s);l<=25&&(o-=l)}else h<=25&&(o+=h);return{width:o,height:l,x:r,y:a}}(e,i);else if("document"===t){let t,i,l,r,a,h,c;n=k(e),t=k(n),i=V(n),l=n.ownerDocument.body,r=s(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),a=s(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),h=-i.scrollLeft+Y(n),c=-i.scrollTop,"rtl"===N(l).direction&&(h+=s(t.clientWidth,l.clientWidth)-r),o={width:r,height:a,x:h,y:c}}else if(O(t)){let e,n,s,l;n=(e=_(t,!0,"fixed"===i)).top+t.clientTop,s=e.left+t.clientLeft,l=D(t)?G(t):r(1),o={width:t.clientWidth*l.x,height:t.clientHeight*l.y,x:s*l.x,y:n*l.y}}else{let i=Z(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return b(o)}function ei(e){return"static"===N(e).position}function en(e,t){if(!D(e)||"fixed"===N(e).position)return null;if(t)return t(e);let i=e.offsetParent;return k(e)===i&&(i=i.ownerDocument.body),i}function es(e,t){var i;let n=T(e);if(M(e))return n;if(!D(e)){let t=j(e);for(;t&&!W(t);){if(O(t)&&!ei(t))return t;t=j(t)}return n}let s=en(e,t);for(;s&&(i=s,/^(table|td|th)$/.test(A(i)))&&ei(s);)s=en(s,t);return s&&W(s)&&ei(s)&&!K(s)?n:s||function(e){let t=j(e);for(;D(t)&&!W(t);){if(K(t))return t;if(M(t))break;t=j(t)}return null}(e)||n}let eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:n,strategy:s}=e,o="fixed"===s,l=k(n),a=!!t&&M(t.floating);if(n===l||a&&o)return i;let h={scrollLeft:0,scrollTop:0},c=r(1),d=r(0),u=D(n);if((u||!u&&!o)&&(("body"!==A(n)||$(l))&&(h=V(n)),u)){let e=_(n);c=G(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let p=!l||u||o?r(0):ee(l,h);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-h.scrollLeft*c.x+d.x+p.x,y:i.y*c.y-h.scrollTop*c.y+d.y+p.y}},getDocumentElement:k,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:o,strategy:l}=e,r=[..."clippingAncestors"===i?M(t)?[]:function(e,t){let i=t.get(e);if(i)return i;let n=Q(e,[],!1).filter(e=>O(e)&&"body"!==A(e)),s=null,o="fixed"===N(e).position,l=o?j(e):e;for(;O(l)&&!W(l);){let t=N(l),i=K(l);i||"fixed"!==t.position||(s=null),(o?!i&&!s:!i&&"static"===t.position&&s&&("absolute"===s.position||"fixed"===s.position)||$(l)&&!i&&function e(t,i){let n=j(t);return!(n===i||!O(n)||W(n))&&("fixed"===N(n).position||e(n,i))}(e,l))?n=n.filter(e=>e!==l):s=t,l=j(l)}return t.set(e,n),n}(t,this._c):[].concat(i),o],a=et(t,r[0],l),h=a.top,c=a.right,d=a.bottom,u=a.left;for(let e=1;e<r.length;e++){let i=et(t,r[e],l);h=s(i.top,h),c=n(i.right,c),d=n(i.bottom,d),u=s(i.left,u)}return{width:c-u,height:d-h,x:u,y:h}},getOffsetParent:es,getElementRects:async function(e){let t=this.getOffsetParent||es,i=this.getDimensions,n=await i(e.floating);return{reference:function(e,t,i){let n=D(t),s=k(t),o="fixed"===i,l=_(e,!0,o,t),a={scrollLeft:0,scrollTop:0},h=r(0);if(n||!n&&!o)if(("body"!==A(t)||$(s))&&(a=V(t)),n){let e=_(t,!0,o,t);h.x=e.x+t.clientLeft,h.y=e.y+t.clientTop}else s&&(h.x=Y(s));o&&!n&&s&&(h.x=Y(s));let c=!s||n||o?r(0):ee(s,a);return{x:l.left+a.scrollLeft-h.x-c.x,y:l.top+a.scrollTop-h.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:i}=U(e);return{width:t,height:i}},getScale:G,isElement:O,isRTL:function(e){return"rtl"===N(e).direction}};function el(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function er(e,t,i,o){void 0===o&&(o={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:h="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,u=z(e),p=r||a?[...u?Q(u):[],...t?Q(t):[]]:[];
2p.forEach(e=>{r&&e.addEventListener("scroll",i,{passive:!0}),a&&e.addEventListener("resize",i)});let m=u&&c?function(e,t){let i,o=null,r=k(e);function a(){var e;clearTimeout(i),null==(e=o)||e.disconnect(),o=null}return function h(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),a();let u=e.getBoundingClientRect(),{left:p,top:m,width:g,height:f}=u;if(c||t(),!g||!f)return;let y={rootMargin:-l(m)+"px "+-l(r.clientWidth-(p+g))+"px "+-l(r.clientHeight-(m+f))+"px "+-l(p)+"px",threshold:s(0,n(1,d))||1},v=!0;function w(t){let n=t[0].intersectionRatio;if(n!==d){if(!v)return h();n?h(!1,n):i=setTimeout(()=>{h(!1,1e-7)},1e3)}1!==n||el(u,e.getBoundingClientRect())||h(),v=!1}try{o=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{o=new IntersectionObserver(w,y)}o.observe(e)}(!0),a}(u,i):null,g,f=-1,y=null;h&&(y=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&y&&t&&(y.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),i()}),u&&!d&&y.observe(u),t&&y.observe(t));let v=d?_(e):null;return d&&function t(){let n=_(e);v&&!el(v,n)&&i(),v=n,g=requestAnimationFrame(t)}(),i(),()=>{var e;p.forEach(e=>{r&&e.removeEventListener("scroll",i),a&&e.removeEventListener("resize",i)}),m?.(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(g)}}let ea=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var i,n;let{x:s,y:o,placement:l,middlewareData:r}=t,a=await async function(e,t){let{placement:i,platform:n,elements:s}=e,o=await (null==n.isRTL?void 0:n.isRTL(s.floating)),l=c(i),r=d(i),a="y"===p(i),u=S.has(l)?-1:1,m=o&&a?-1:1,g=h(t,e),{mainAxis:f,crossAxis:y,alignmentAxis:v}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return r&&"number"==typeof v&&(y="end"===r?-1*v:v),a?{x:y*m,y:f*u}:{x:f*u,y:y*m}}(t,e);return l===(null==(i=r.offset)?void 0:i.placement)&&null!=(n=r.arrow)&&n.alignmentOffset?{}:{x:s+a.x,y:o+a.y,data:{...a,placement:l}}}}},eh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i,n,s,o,l,r;let a,b,L,{placement:E,middlewareData:S,rects:x,initialPlacement:A,platform:T,elements:k}=t,{mainAxis:I=!0,crossAxis:O=!0,fallbackPlacements:D,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:M=!0,...H}=h(e,t);if(null!=(i=S.arrow)&&i.alignmentOffset)return{};let R=c(E),q=p(A),F=c(A)===A,K=await (null==T.isRTL?void 0:T.isRTL(k.floating)),B=D||(F||!M?[C(A)]:(a=C(A),[g(A),a,g(a)])),W="none"!==$;!D&&W&&B.push(...(b=d(A),L=function(e,t,i){switch(e){case"top":case"bottom":return i?t?y:f:t?f:y;case"left":case"right":return t?v:w;default:return[]}}(c(A),"start"===$,K),b&&(L=L.map(e=>e+"-"+b),M&&(L=L.concat(L.map(g)))),L));let N=[A,...B],V=await T.detectOverflow(t,H),j=[],Q=(null==(n=S.flip)?void 0:n.overflows)||[];if(I&&j.push(V[R]),O){let e,t,i,n,s=(void 0===(r=K)&&(r=!1),e=d(E),i=u(t=m(E)),n="x"===t?e===(r?"end":"start")?"right":"left":"start"===e?"bottom":"top",x.reference[i]>x.floating[i]&&(n=C(n)),[n,C(n)]);j.push(V[s[0]],V[s[1]])}if(Q=[...Q,{placement:E,overflows:j}],!j.every(e=>e<=0)){let e=((null==(s=S.flip)?void 0:s.index)||0)+1,t=N[e];if(t&&("alignment"!==O||q===p(t)||Q.every(e=>p(e.placement)!==q||e.overflows[0]>0)))return{data:{index:e,overflows:Q},reset:{placement:t}};let i=null==(o=Q.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!i)switch(P){case"bestFit":{let e=null==(l=Q.filter(e=>{if(W){let t=p(e.placement);return t===q||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(i=e);break}case"initialPlacement":i=A}if(E!==i)return{reset:{placement:i}}}return{}}}},ec=(e,t,i)=>{let n=new Map,s={platform:eo,...i},o={...s.platform,_c:n};return(async(e,t,i)=>{let{placement:n="bottom",strategy:s="absolute",middleware:o=[],platform:l}=i,r=l.detectOverflow?l:{...l,detectOverflow:E},a=await (null==l.isRTL?void 0:l.isRTL(t)),h=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=L(h,n,a),u=n,p=0,m={};for(let i=0;i<o.length;i++){let g=o[i];if(!g)continue;let{name:f,fn:y}=g,{x:v,y:w,data:C,reset:b}=await y({x:c,y:d,initialPlacement:n,placement:u,strategy:s,middlewareData:m,rects:h,platform:r,elements:{reference:e,floating:t}});c=v??c,d=w??d,m[f]={...m[f],...C},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(u=b.placement),b.rects&&(h=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:s}):b.rects),{x:c,y:d}=L(h,u,a)),i=-1)}return{x:c,y:d,placement:u,strategy:s,middlewareData:m}})(e,t,{...s,platform:o})}}},T={};function k(e){var t=T[e];if(void 0!==t)return t.exports;var i=T[e]={exports:{}};return A[e](i,i.exports,k),i.exports}k.d=(e,t)=>{for(var i in t)k.o(t,i)&&!k.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},k.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var I={};k.d(I,{A:()=>R});var O=k(1926),D=k(7663),P=k(7615),$=k(8862),M=k(189),H=class e extends P.A{constructor(e,t,i){super(e,t,i),this.longPressTimer=null,this.openedViaKeyboard=!1,this.onTouchStartListener=null,this.onTouchEndListener=null,this.toggle=this.el.querySelector(":scope > .hs-dropdown-toggle")||this.el.querySelector(":scope > .hs-dropdown-toggle-wrapper > .hs-dropdown-toggle")||this.el.children[0],this.closers=Array.from(this.el.querySelectorAll(":scope .hs-dropdown-close"))||null,this.menu=this.el.querySelector(":scope > .hs-dropdown-menu"),this.eventMode=this.getEventMode(),this.closeMode=(0,O.gj)(this.el,"--auto-close","true"),this.hasAutofocus=(0,O.PK)((0,O.gj)(this.el,"--has-autofocus","true")||"true"),this.autofocusOnKeyboardOnly=(0,O.PK)((0,O.gj)(this.el,"--autofocus-on-keyboard-only","true")||"true"),this.animationInProcess=!1,this.onCloserClickListener=[],this.toggle&&this.menu&&this.init()}getEventMode(){var e;let t=null==(e=this.el.parentElement)?void 0:e.closest(".hs-dropdown");
2if(!t)return(0,O.gj)(this.el,"--trigger","click");t.style.setProperty("--trigger","hs-init");let i=(0,O.gj)(this.el,"--trigger","");return t.style.removeProperty("--trigger"),i&&"hs-init"!==i?i:"click"}elementMouseEnter(){this.onMouseEnterHandler()}elementMouseLeave(){this.onMouseLeaveHandler()}toggleClick(e){this.onClickHandler(e)}toggleContextMenu(e){e.preventDefault(),this.onContextMenuHandler(e)}handleTouchStart(e){var t,i;e.preventDefault();let n=e.touches[0],s=null!=(t=n?.clientX)?t:0,o=null!=(i=n?.clientY)?i:0;this.longPressTimer=window.setTimeout(()=>{let e=new MouseEvent("contextmenu",{bubbles:!0,cancelable:!0,view:window,clientX:s,clientY:o});this.toggle&&this.toggle.dispatchEvent(e)},400)}handleTouchEnd(e){this.longPressTimer&&(clearTimeout(this.longPressTimer),this.longPressTimer=null)}closerClick(){this.close()}init(){if(e.ensureGlobalHandlers(),this.createCollection(window.$hsDropdownCollection,this),this.toggle.disabled)return!1;this.toggle&&this.buildToggle(),this.menu&&this.buildMenu(),this.closers&&this.buildClosers(),(0,O.un)()||(0,O.zG)()||(this.onElementMouseEnterListener=()=>this.elementMouseEnter(),this.onElementMouseLeaveListener=()=>this.elementMouseLeave(),this.el.addEventListener("mouseenter",this.onElementMouseEnterListener),this.el.addEventListener("mouseleave",this.onElementMouseLeaveListener)),"u">typeof window&&(window.HSAccessibilityObserver||(window.HSAccessibilityObserver=new $.A),this.setupAccessibility())}resizeHandler(){this.eventMode=this.getEventMode(),this.closeMode=(0,O.gj)(this.el,"--auto-close","true"),this.hasAutofocus=(0,O.PK)((0,O.gj)(this.el,"--has-autofocus","true")||"true"),this.autofocusOnKeyboardOnly=(0,O.PK)((0,O.gj)(this.el,"--autofocus-on-keyboard-only","true")||"true")}isOpen(){return this.el.classList.contains("open")&&!this.menu.classList.contains("hidden")}buildToggle(){var e;null!=(e=this==null?void 0:this.toggle)&&e.ariaExpanded&&(this.el.classList.contains("open")?this.toggle.ariaExpanded="true":this.toggle.ariaExpanded="false"),"contextmenu"===this.eventMode?(this.onToggleContextMenuListener=e=>this.toggleContextMenu(e),this.onTouchStartListener=this.handleTouchStart.bind(this),this.onTouchEndListener=this.handleTouchEnd.bind(this),this.toggle.addEventListener("contextmenu",this.onToggleContextMenuListener),this.toggle.addEventListener("touchstart",this.onTouchStartListener,{passive:!1}),this.toggle.addEventListener("touchend",this.onTouchEndListener),this.toggle.addEventListener("touchmove",this.onTouchEndListener)):(this.onToggleClickListener=e=>this.toggleClick(e),this.toggle.addEventListener("click",this.onToggleClickListener))}buildMenu(){this.menu.role=this.menu.getAttribute("role")||"menu",this.menu.tabIndex=-1;let e=this.menu.querySelectorAll('[role="menuitemcheckbox"]'),t=this.menu.querySelectorAll('[role="menuitemradio"]');e.forEach(e=>e.addEventListener("click",()=>this.selectCheckbox(e))),t.forEach(e=>e.addEventListener("click",()=>this.selectRadio(e))),this.menu.addEventListener("click",e=>{let t=e.target;"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"BUTTON"===t.tagName||"A"===t.tagName||t.closest("button")||t.closest("a")||t.closest("input")||t.closest("textarea")||t.closest("select")||this.menu.focus()})}buildClosers(){this.closers.forEach(e=>{this.onCloserClickListener.push({el:e,fn:()=>this.closerClick()}),e.addEventListener("click",this.onCloserClickListener.find(t=>t.el===e).fn)})}getScrollbarSize(){let e=document.createElement("div");e.style.overflow="scroll",e.style.width="100px",e.style.height="100px",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}onContextMenuHandler(t){e.closeCurrentlyOpened(),this.el.classList.contains("open")&&!this.menu.classList.contains("hidden")?(this.close(),document.body.style.overflow="",document.body.style.paddingRight=""):(document.body.style.overflow="hidden",document.body.style.paddingRight=`${this.get
2ScrollbarSize()}px`,this.open({getBoundingClientRect:()=>new DOMRect(t.clientX,t.clientY,0,0)}))}onClickHandler(e){var t;if("hover"===this.eventMode&&window.matchMedia("(hover: hover)").matches&&"mouse"===e.pointerType){let i=e.currentTarget;return"A"===i.tagName&&i.hasAttribute("href")&&"#"!==i.getAttribute("href")||(e.preventDefault(),e.stopPropagation(),null==(t=e.stopImmediatePropagation)||t.call(e)),!1}this.el.classList.contains("open")&&!this.menu.classList.contains("hidden")?this.close():this.open()}onMouseEnterHandler(){if("hover"!==this.eventMode)return!1;this.el._floatingUI&&(!this.el._floatingUI||this.el.classList.contains("open"))||this.forceClearState(),!this.el.classList.contains("open")&&this.menu.classList.contains("hidden")&&this.open()}onMouseLeaveHandler(){if("hover"!==this.eventMode)return!1;this.el.classList.contains("open")&&!this.menu.classList.contains("hidden")&&this.close()}getNextFocusableElement(e){let t=Array.from(document.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),i=t.indexOf(e);return i<t.length-1?t[i+1]:null}destroyFloatingUI(){let e=(window.getComputedStyle(this.el).getPropertyValue("--scope")||"").trim();this.menu.classList.remove("block"),this.menu.classList.add("hidden"),this.menu.style.inset=null,this.menu.style.position=null,this.el&&this.el._floatingUI&&(this.el._floatingUI.destroy(),this.el._floatingUI=null),"window"===e&&this.el.appendChild(this.menu),this.animationInProcess=!1}focusElement(){let e=this.menu.querySelector("[autofocus]");if(e)return e.focus(),!0;let t=this.menu.querySelectorAll('[role="menuitem"]:not([hidden])');return t.length>0&&(t[0].focus(),!0)}setupFloatingUI(e){let t=e||this.el,i=window.getComputedStyle(this.el),n=(i.getPropertyValue("--placement")||"").trim(),s=(i.getPropertyValue("--flip")||"true").trim(),o=(i.getPropertyValue("--strategy")||"fixed").trim(),l=(i.getPropertyValue("--offset")||"10").trim(),r=(i.getPropertyValue("--gpu-acceleration")||"true").trim(),a=(window.getComputedStyle(this.el).getPropertyValue("--adaptive")||"adaptive").replace(" ",""),h=parseInt(l,10),c={placement:M.lP[n]||"bottom-start",strategy:o,middleware:[..."true"===s?[(0,D.UU)()]:[],(0,D.cY)(h)]};"fixed"===o&&Object.assign(this.menu.style,{position:o});let d=e=>{let t=this.menu.getBoundingClientRect(),i=window.innerWidth-(window.innerWidth-document.documentElement.clientWidth);return e+t.width>i&&(e=i-t.width),e<0&&(e=0),e},u=()=>{(0,D.rD)(t,this.menu,c).then(({x:e,y:t,placement:i})=>{let n=d(e);"absolute"===o&&"none"===a?Object.assign(this.menu.style,{position:o,margin:"0"}):"absolute"===o?Object.assign(this.menu.style,{position:o,transform:`translate3d(${e}px, ${t}px, 0px)`,margin:"0"}):"true"===r?Object.assign(this.menu.style,{position:o,left:"",top:"",inset:"0px auto auto 0px",margin:"0",transform:`translate3d(${"adaptive"===a?n:0}px, ${t}px, 0)`}):Object.assign(this.menu.style,{position:o,left:`${e}px`,top:`${t}px`,transform:""}),this.menu.setAttribute("data-placement",i)})};return u(),{update:u,destroy:(0,D.ll)(t,this.menu,u)}}selectCheckbox(e){e.ariaChecked="true"===e.ariaChecked?"false":"true"}selectRadio(e){if("true"===e.ariaChecked)return!1;Array.from(e.closest(".group").querySelectorAll('[role="menuitemradio"]')).filter(t=>t!==e).forEach(e=>{e.ariaChecked="false"}),e.ariaChecked="true"}calculatePopperPosition(e){let t=this.setupFloatingUI(e),i=this.menu.getAttribute("data-placement");return t.update(),t.destroy(),i}open(e,t=!1){if(this.el.classList.contains("open")||this.animationInProcess)return!1;this.openedViaKeyboard=t,this.animationInProcess=!0,this.menu.style.cssText="";let i=e||this.el,n=window.getComputedStyle(this.el),s=(n.getPropertyValue("--scope")||"").trim(),o=(n.getPropertyValue("--strategy")||"fixed").trim();"window"===s&&document.body.appendChild(this.menu),"static"!==o&&(this.el._floatingUI=this.setupFloatingUI(i)),this.menu.style.margin=null,this.menu.classList.remove("hidden"),this.menu.classList.add("block"),setTimeout(()=>{var e;null!=(e=this==null?void 0:this.toggle)&&e.ariaExpanded&&(this.toggle.ariaExpanded="true"),this.el.classList.add("open"),window.HSAccessibilityObserver&&this.accessibilityComponent&&window.HSAccessibilityObserver.updateComponentState(this.accessibilityComponent,!0),"window"===s&&this.menu.classList.add("open"),this.animationInProcess=!1,this.hasAutofocus&&(!this.autofocusOnKeyboardOnly||this.openedViaKeyboard)&&this.focusElement(),this.fireEvent("open",this.el),(0,O.JD)("open.hs.dropdown",this.el,this.el)})}close(e=!0){var t;if(this.animationInProcess||!this.el.classList.contains("open"))return!1;let i=(window.getComputedStyle(this.el).getPropertyValue("--scope")||"").trim();if(this.animationInProcess=!0,"window"===i&&this.menu.classList.remove("open"),window.HSAccessibilityObserver&&this.accessibilityComponent&&window.HSAccessibilityObserver.updateComponentState(this.accessibilityComponent,!1),e){let e=this.el.querySelector("[data-hs-dropdown-transition]")||this.menu,t=!1,i=()=>{t||(t=!0,this.destroyFloatingUI())};(0,O.yd)(e,i),setTimeout(i,(1e3*parseFloat(window.getComputedStyle(e).getPropertyValue("transition-duration"))||150)+50)}else this.destroyFloatingUI();this.menu.style.margin=null,null!=(t=this==null?void 0:this.toggle)&&t.ariaExpanded&&(this.toggle.ariaExpanded="false"),this.el.classList.remove("open"),this.openedViaKeyboard=!1,this.fireEvent("close",this.el),(0,O.JD)("close.hs.dropdown",this.el,this.el)}forceClearState(){this.destroyFloatingUI(),this.menu.style.margin=null,this.el.classList.remove("open"),this.menu.classList.add("hidden"),this.openedViaKeyboard=!1}destroy(){(0,O.un)()||(0,O.zG)()||(this.el.removeEventListener("mouseenter",this.onElementMouseEnterListener),this.el.removeEventListener("mouseleave",()=>this.onElementMouseLeaveListener),this.onElementMouseEnterListener=null,this.onElementMouseLeaveListener=null),"contextmenu"===this.eventMode?(this.toggle&&(this.toggle.removeEventListener("contextmenu",this.onToggleContextMenuListener),this.toggle.removeEventListener("touchstart",this.onTouchStartListener),this.toggle.removeEventListener("touchend",this.onTouchEndListener),this.toggle.removeEventListener("touchmove",this.onTouchEndListener)),this.onToggleContextMenuListener=null,this.onTouchStartListener=null,this.onTouchEndListener=null):(this.toggle&&this.toggle.removeEventListener("click",this.onToggleClickListener),this.onToggleClickListener=null),this.closers.length&&(this.closers.forEac
2h(e=>{e.removeEventListener("click",this.onCloserClickListener.find(t=>t.el===e).fn)}),this.onCloserClickListener=null),this.el.classList.remove("open"),this.destroyFloatingUI(),window.$hsDropdownCollection=window.$hsDropdownCollection.filter(({element:e})=>e.el!==this.el)}static findInCollection(t){return window.$hsDropdownCollection.find(i=>t instanceof e?i.element.el===t.el:"string"==typeof t?i.element.el===document.querySelector(t):i.element.el===t)||null}static getInstance(e,t){let i=window.$hsDropdownCollection.find(t=>t.element.el===("string"==typeof e?document.querySelector(e):e));return i?t?i:i.element:null}static autoInit(){e.ensureGlobalHandlers(),window.$hsDropdownCollection&&(window.$hsDropdownCollection=window.$hsDropdownCollection.filter(({element:e})=>document.contains(e.el))),document.querySelectorAll(".hs-dropdown:not(.--prevent-on-load-init)").forEach(t=>{window.$hsDropdownCollection.find(e=>{var i;return(null==(i=e?.element)?void 0:i.el)===t})||new e(t)})}static ensureGlobalHandlers(){if(typeof window>"u"||(window.$hsDropdownCollection||(window.$hsDropdownCollection=[]),e.globalListenersInitialized))return;e.globalListenersInitialized=!0,window.addEventListener("click",t=>{let i=t.target;e.closeCurrentlyOpened(i)}),document.addEventListener("touchstart",t=>{let i=t.target;i.closest(".hs-dropdown")||e.closeCurrentlyOpened(i)},{passive:!0});let t=window.innerWidth;window.addEventListener("resize",()=>{window.innerWidth!==t&&(t=innerWidth,e.closeCurrentlyOpened(null,!1))})}static open(t,i=!1){let n=e.findInCollection(t);n&&n.element.menu.classList.contains("hidden")&&n.element.open(void 0,i)}static close(t){let i=e.findInCollection(t);i&&!i.element.menu.classList.contains("hidden")&&i.element.close()}static closeCurrentlyOpened(e=null,t=!0){let i=e&&e.closest(".hs-dropdown")&&e.closest(".hs-dropdown").parentElement.closest(".hs-dropdown")?e.closest(".hs-dropdown").parentElement.closest(".hs-dropdown"):null,n=i?window.$hsDropdownCollection.filter(e=>e.element.el.classList.contains("open")&&e.element.menu.closest(".hs-dropdown").parentElement.closest(".hs-dropdown")===i):window.$hsDropdownCollection.filter(e=>e.element.el.classList.contains("open"));if(e){let t=e.closest(".hs-dropdown");if(t)"inside"===(0,O.BF)(t,"--auto-close")&&(n=n.filter(e=>e.element.el!==t));else{let t=e.closest(".hs-dropdown-menu");if(t){let e=window.$hsDropdownCollection.find(e=>e.element.menu===t);e&&"inside"===(0,O.BF)(e.element.el,"--auto-close")&&(n=n.filter(t=>t.element.el!==e.element.el))}}}n&&n.forEach(e=>{if("false"===e.element.closeMode||"outside"===e.element.closeMode)return!1;e.element.close(t)}),n&&n.forEach(e=>{if("contextmenu"!==(0,O.BF)(e.element.el,"--trigger"))return!1;document.body.style.overflow="",document.body.style.paddingRight=""})}setupAccessibility(){this.accessibilityComponent=window.HSAccessibilityObserver.registerComponent(this.el,{onEnter:()=>{var e;let t=document.activeElement;if(t){if(t.closest(".hs-dropdown-menu")){let i=t.closest(".hs-dropdown-toggle, [data-hs-dropdown-toggle]");if(i)return void i.click();let n=t.closest('[role="menuitem"], a, button, [data-hs-dropdown-item]');if((null==(e=n?.children)?void 0:e.length)>0)return Array.from(n.children).forEach(e=>{e.matches("input[type='checkbox']:not([hidden]), input[type='radio']:not([hidden])")&&e.click()}),void n.focus();if(n){if(t.matches("input, textarea, select"))return;n.click()}return}this.isOpened()?this.close():this.open(void 0,!0)}},onSpace:()=>{this.isOpened()||this.open(void 0,!0)},onEsc:()=>{this.isOpened()&&(this.close(),this.toggle&&this.toggle.focus())},onArrow:e=>{if(!e.metaKey)switch(e.key){case"ArrowDown":this.isOpened()?this.focusMenuItem("next"):this.open(void 0,!0);break;case"ArrowUp":this.isOpened()&&this.focusMenuItem("prev");break;case"ArrowRight":this.onArrowX(e,"right");break;case"ArrowLeft":this.onArrowX(e,"left")}},onHome:()=>{this.isOpened()&&this.onStartEnd(!0)},onEnd:()=>{this.isOpened()&&this.onStartEnd(!1)},onTab:()=>this.onTabOut(),onShiftTab:()=>this.onTabOut(),onFirstLetter:e=>{let t=document.activeElement;!t?.matches("input, textarea")&&this.isOpened()&&this.onFirstLetter(e)}},this.isOpened(),"Dropdown",".hs-dropdown",this.menu,{onFirstLetter:!1})}onTabOut(){setTimeout(()=>{let e=document.activeElement,t=e.closest(".hs-dropdown-menu");if(e&&t){let t=e.closest(".hs-dropdown-toggle, [data-hs-dropdown-toggle]");return t?void t.click():void e.focus()}this.isOpened()&&this.close()},100)}onFirstLetter(e){var t;if(!this.isOpened()||!this.menu)return;let i=this.menu.querySelectorAll('a:not([hidden]), button:not([hidden]), [role="menuitem"]:not([hidden])');if(0===i.length)return;let n=Array.from(i).indexOf(document.activeElement);for(let s=1;s<=i.length;s++){let o=(n+s)%i.length;if(((null==(t=i[o].textContent)?void 0:t.trim().toLowerCase())||"").startsWith(e.toLowerCase()))return void i[o].focus()}i[0].focus()}onArrowX(e,t){if(!this.isOpened())return;e.preventDefault(),e.stopImmediatePropagation();let i=this.menu.querySelectorAll('a:not([hidden]), button:not([hidden]), [role="menuitem"]:not([hidden])');if(!i.length)return;let n=Array.from(i).indexOf(document.activeElement),s=-1;s="right"===t?(n+1)%i.length:n>0?n-1:i.length-1,i[s].focus()}onStartEnd(e=!0){if(!this.isOpened())return;let t=this.menu.querySelectorAll('a:not([hidden]), button:not([hidden]), [role="menuitem"]:not([hidden])');t.length&&t[e?0:t.length-1].focus()}focusMenuItem(e){let t=this.menu.querySelectorAll('a:not([hidden]), button:not([hidden]), [role="menuitem"]:not([hidden])');if(!t.length)return;let i=Array.from(t).indexOf(document.activeElement);t["next"===e?(i+1)%t.length:(i-1+t.length)%t.length].focus()}static on(t,i,n){let s=e.findInCollection(i);s&&(s.element.events[t]=n)}isOpened(){return this.isOpen()}containsElement(e){return this.el.contains(e)}};H.globalListenersInitialized=!1;var R=H,q=I.A,F={189(e,t,i){i.d(t,{LO:()=>n});
2let n={xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536}},8862(e,t,i){i.d(t,{A:()=>s});var n=i(1926);let s=class{constructor(){this.components=[],this.currentlyOpenedComponents=[],this.activeComponent=null,this.allowedKeybindings=new Set(["Escape","Enter"," ","Space","ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Tab","Home","End"]),this.initGlobalListeners()}initGlobalListeners(){document.addEventListener("keydown",e=>this.handleGlobalKeydown(e)),document.addEventListener("focusin",e=>this.handleGlobalFocusin(e))}isAllowedKeybinding(e){return!!this.allowedKeybindings.has(e.key)||!(1!==e.key.length||!/^[a-zA-Z]$/.test(e.key)||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)}getActiveComponent(e){if(!e)return null;let t=this.components.filter(t=>t.wrapper.contains(e)||t.context&&t.context.contains(e));if(0===t.length)return null;if(1===t.length)return t[0];let i=null,n=Number.MAX_SAFE_INTEGER;for(let s of t){let t=0,o=e;for(;o&&o!==s.wrapper&&o!==s.context;)t++,o=o.parentElement;t<n&&(n=t,i=s)}return i}getActiveComponentForKey(e,t){if(!e)return null;let i=this.components.filter(t=>t.wrapper.contains(e)||t.context&&t.context.contains(e));if(0===i.length)return null;let n=i.filter(e=>{let i=e.handlers;switch(t){case"Escape":return!!i.onEsc;case"Enter":return!!i.onEnter;case" ":case"Space":return!!i.onSpace;case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":return!!i.onArrow;case"Tab":return!!i.onTab||!!i.onShiftTab;case"Home":return!!i.onHome;case"End":return!!i.onEnd;default:return!!i.onFirstLetter}});if(0===n.length)return this.getActiveComponent(e);if(1===n.length)return n[0];let s=null,o=Number.MAX_SAFE_INTEGER;for(let t of n){let i=0,n=e;for(;n&&n!==t.wrapper&&n!==t.context;)i++,n=n.parentElement;i<o&&(o=i,s=t)}return s}getDistanceToComponent(e,t){let i=0,n=e;for(;n&&n!==t.wrapper&&n!==t.context;)i++,n=n.parentElement;return i}getComponentsByNesting(e){if(!e)return[];let t=this.components.filter(t=>t.wrapper.contains(e)||t.context&&t.context.contains(e));return t.length<=1?t:[...t].sort((t,i)=>this.getDistanceToComponent(e,i)-this.getDistanceToComponent(e,t))}getSequentialHandlersForKey(e,t){let i=this.getComponentsByNesting(e);return 0===i.length?[]:i.map(e=>"Enter"===t?e.handlers.onEnter:e.handlers.onSpace).filter(e=>"function"==typeof e)}executeSequentialHandlers(e,t){let i=!1,n=!1;for(let s of e)if(i=!0,!1===s(t)){n=!0;break}return{called:i,stopped:n}}handleGlobalFocusin(e){let t=e.target;this.activeComponent=this.getActiveComponent(t)}handleGlobalKeydown(e){var t;let i=e.target;this.activeComponent=this.getActiveComponentForKey(i,e.key);let s=this.activeComponent,o="Enter"===e.key||" "===e.key||"Space"===e.key;if((s||o)&&this.isAllowedKeybinding(e))switch(e.key){case"Escape":if(!s)break;if(s.isOpened){if(s.handlers.onEsc){let t=s.handlers.onEsc();if(e.preventDefault(),e.stopPropagation(),!1===t){let e=this.findClosestOpenParent(i);e?.handlers.onEsc&&e.handlers.onEsc()}}}else{let t=this.findClosestOpenParent(i);t?.handlers.onEsc&&(t.handlers.onEsc(),e.preventDefault(),e.stopPropagation())}break;case"Enter":{let t=this.getSequentialHandlersForKey(i,"Enter");if(0===t.length)break;let{called:s,stopped:o}=this.executeSequentialHandlers(t,e);s&&!(0,n.V6)(i)&&(e.stopPropagation(),e.preventDefault());break}case" ":case"Space":{if("INPUT"===i.tagName||"TEXTAREA"===i.tagName)return;let t=this.getActiveComponent(i),n=this.getSequentialHandlersForKey(i,"Space");if(0===n.length)break;let{stopped:s}=this.executeSequentialHandlers(n);(s||t?.handlers.onSpace)&&(e.preventDefault(),e.stopPropagation());break}case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":if(!s)break;if(s.handlers.onArrow){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;s.handlers.onArrow(e),e.preventDefault(),e.stopPropagation()}break;case"Tab":if(!s||!s.handlers.onTab)break;let l=e.shiftKey?s.handlers.onShiftTab:s.handlers.onTab;l&&l(e);break;case"Home":if(!s)break;s.handlers.onHome&&(s.handlers.onHome(),e.preventDefault(),e.stopPropagation());break;case"End":if(!s)break;s.handlers.onEnd&&(s.handlers.onEnd(),e.preventDefault(),e.stopPropagation());break;default:if(!s)break;if(s.handlers.onFirstLetter&&1===e.key.length&&/^[a-zA-Z]$/.test(e.key)){if(s.handlers.onFirstLetter(e.key),!(null!=(t=s.stopPropagation)&&t.onFirstLetter))return;e.preventDefault(),e.stopPropagation()}}}findClosestOpenParent(e){let t=e.parentElement;for(;t;){let e=this.currentlyOpenedComponents.find(e=>e.wrapper===t&&e!==this.activeComponent);if(e)return e;t=t.parentElement}return null}registerComponent(e,t,i=!0,n="",s="",o,l){let r={wrapper:e,handlers:t,isOpened:i,name:n,selector:s,context:o,isRegistered:!0,stopPropagation:l};return this.components.push(r),r}updateComponentState(e,t){e.isOpened=t,t?this.currentlyOpenedComponents.includes(e)||this.currentlyOpenedComponents.push(e):this.currentlyOpenedComponents=this.currentlyOpenedComponents.filter(t=>t!==e)}unregisterComponent(e){this.components=this.components.filter(t=>t!==e),this.currentlyOpenedComponents=this.currentlyOpenedComponents.filter(t=>t!==e)}addAllowedKeybinding(e){this.allowedKeybindings.add(e)}removeAllowedKeybinding(e){this.allowedKeybindings.delete(e)}getAllowedKeybindings(){return Array.from(this.allowedKeybindings)}}},7615(e,t,i){i.d(t,{A:()=>n});
2class n{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let s=e;if(!Array.isArray(s)&&"u">typeof window){let e=null==(i=this.constructor)?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),s=window[t])}Array.isArray(s)&&s.push({id:(null==(n=t?.el)?void 0:n.id)||s.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},1926(e,t,i){i.d(t,{JD:()=>l,PK:()=>n,V6:()=>o,gj:()=>s,yd:()=>r});let n=e=>"true"===e,s=(e,t,i="")=>(window.getComputedStyle(e).getPropertyValue(t)||i).replace(" ",""),o=e=>e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement,l=(e,t,i=null)=>{let n=new CustomEvent(e,{detail:{payload:i},bubbles:!0,cancelable:!0,composed:!1});t.dispatchEvent(n)},r=(e,t)=>{let i=()=>{t(),e.removeEventListener("transitionend",i,!0)},n=window.getComputedStyle(e),s=n.getPropertyValue("transition-duration");"none"!==n.getPropertyValue("transition-property")&&parseFloat(s)>0?e.addEventListener("transitionend",i,!0):t()}}},K={};function B(e){var t=K[e];if(void 0!==t)return t.exports;var i=K[e]={exports:{}};return F[e](i,i.exports,B),i.exports}B.d=(e,t)=>{for(var i in t)B.o(t,i)&&!B.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},B.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var W={};B.d(W,{A:()=>U});var N=B(1926),V=B(189),j=B(7615),Q=B(8862),X=class e extends j.A{constructor(e,t,i){var n,s,o,l,r,a;super(e,t,i),this.lastFocusedToggle=null,this.initialZIndex=0,window.$hsOverlayCollection||(window.$hsOverlayCollection=[]),this.toggleButtons=Array.from(document.querySelectorAll(`[data-hs-overlay="#${this.el.id}"]`));let h=this.collectToggleParameters(this.toggleButtons);this.toggleMinifierButtons=Array.from(document.querySelectorAll(`[data-hs-overlay-minifier="#${this.el.id}"]`));let c=e.getAttribute("data-hs-overlay-options"),d=Object.assign(Object.assign(Object.assign({},c?JSON.parse(c):{}),h),t);this.hiddenClass=d?.hiddenClass||"hidden",this.emulateScrollbarSpace=d?.emulateScrollbarSpace||!1,this.isClosePrev=null==(n=d?.isClosePrev)||n,this.backdropClasses=null!=(s=d?.backdropClasses)?s:"hs-overlay-backdrop transition duration fixed inset-0 bg-gray-900/50 dark:bg-neutral-900/80",this.backdropParent="string"==typeof d.backdropParent?document.querySelector(d.backdropParent):document.body,this.backdropExtraClasses=null!=(o=d?.backdropExtraClasses)?o:"",this.moveOverlayToBody=d?.moveOverlayToBody||null,this.isToggleClassesImmediately=null!=(l=d?.isToggleClassesImmediately)?l:(0,N.PK)((0,N.gj)(this.el,"--toggle-classes-immediately","false")||"false"),this.openNextOverlay=!1,this.autoHide=null,this.initContainer=(null==(r=this.el)?void 0:r.parentElement)||null,this.isCloseWhenClickInside=(0,N.PK)((0,N.gj)(this.el,"--close-when-click-inside","false")||"false"),this.isTabAccessibilityLimited=(0,N.PK)((0,N.gj)(this.el,"--tab-accessibility-limited","true")||"true"),this.isLayoutAffect=(0,N.PK)((0,N.gj)(this.el,"--is-layout-affect","false")||"false"),this.hasAutofocus=(0,N.PK)((0,N.gj)(this.el,"--has-autofocus","true")||"true"),this.hasDynamicZIndex=(0,N.PK)((0,N.gj)(this.el,"--has-dynamic-z-index","false")||"false"),this.hasAbilityToCloseOnBackdropClick=(0,N.PK)(this.el.getAttribute("data-hs-overlay-keyboard")||"true"),this.isScrollInsideViewport="inside-viewport"===(0,N.gj)(this.el,"--overlay-scroll-behavior"),this.onScrollInsideViewportClickListener=null;let u=(0,N.gj)(this.el,"--auto-close"),p=(0,N.gj)(this.el,"--auto-close-equality-type"),m=(0,N.gj)(this.el,"--opened");this.autoClose=!isNaN(+u)&&isFinite(+u)?+u:V.LO[u]||null,this.autoCloseEqualityType=null!=p?p:null,this.openedBreakpoint=(!isNaN(+m)&&isFinite(+m)?+m:V.LO[m])||null,this.animationTarget=(null==(a=this==null?void 0:this.el)?void 0:a.querySelector(".hs-overlay-animation-target"))||this.el,this.initialZIndex=parseInt(getComputedStyle(this.el).zIndex,10),this.onElementClickListener=[],this.onElementMinifierClickListener=[],this.initiallyOpened=this.isOpened(),this.init()}elementClick(){let e=()=>{let e={el:this.el,isOpened:!!this.el.classList.contains("open")};this.fireEvent("toggleClicked",e),(0,N.JD)("toggleClicked.hs.overlay",this.el,e)};this.el.classList.contains("opened")?this.close(!1,e):this.open(e)}elementMinifierClick(){let e=()=>{let e={el:this.el,isMinified:!!this.el.classList.contains("minified")};this.fireEvent("toggleMinifierClicked",e),(0,N.JD)("toggleMinifierClicked.hs.overlay",this.el,e)};this.el.classList.contains("minified")?this.minify(!1,e):this.minify(!0,e)}minify(e,t=null){e?(this.el.classList.add("minified"),document.body.classList.add("hs-overlay-minified")):(this.el.classList.remove("minified"),document.body.classList.remove("hs-overlay-minified")),t&&t()}
2overlayClick(e){e.target.id&&e.target.id===this.el.id&&this.isCloseWhenClickInside&&this.hasAbilityToCloseOnBackdropClick&&this.close()}backdropClick(){this.close()}init(){if(this.createCollection(window.$hsOverlayCollection,this),this.isLayoutAffect&&this.openedBreakpoint){let t=e.getInstance(this.el,!0);e.setOpened(this.openedBreakpoint,t)}this.onOverlayClickListener=e=>this.overlayClick(e),this.el.addEventListener("click",this.onOverlayClickListener),this.toggleButtons.length&&this.buildToggleButtons(this.toggleButtons),this.toggleMinifierButtons.length&&this.buildToggleMinifierButtons(),"u">typeof window&&(window.HSAccessibilityObserver||(window.HSAccessibilityObserver=new Q.A),this.setupAccessibility())}buildToggleButtons(e){e.forEach(e=>{this.el.classList.contains("opened")?e.ariaExpanded="true":e.ariaExpanded="false",this.onElementClickListener.push({el:e,fn:()=>this.elementClick()}),e.addEventListener("click",this.onElementClickListener.find(t=>t.el===e).fn)})}buildToggleMinifierButtons(){this.toggleMinifierButtons.forEach(e=>{this.el.classList.contains("minified")?e.ariaExpanded="true":e.ariaExpanded="false",this.onElementMinifierClickListener.push({el:e,fn:()=>this.elementMinifierClick()}),e.addEventListener("click",this.onElementMinifierClickListener.find(t=>t.el===e).fn)})}hideAuto(){let e=parseInt((0,N.gj)(this.el,"--auto-hide","0"));e&&(this.autoHide=setTimeout(()=>{this.close()},e))}checkTimer(){this.autoHide&&(clearTimeout(this.autoHide),this.autoHide=null)}buildBackdrop(){let e=this.el.classList.value.split(" "),t=parseInt(window.getComputedStyle(this.el).getPropertyValue("z-index")),i=this.el.getAttribute("data-hs-overlay-backdrop-container")||!1;this.backdrop=document.createElement("div");let n=`${this.backdropClasses} ${this.backdropExtraClasses}`,s="static"!==(0,N.gj)(this.el,"--overlay-backdrop","true"),o="false"===(0,N.gj)(this.el,"--overlay-backdrop","true");for(let i of(this.backdrop.id=`${this.el.id}-backdrop`,"style"in this.backdrop&&(this.backdrop.style.zIndex=""+(t-1)),e))(i.startsWith("hs-overlay-backdrop-open:")||i.includes(":hs-overlay-backdrop-open:"))&&(n+=` ${i}`);o||(i&&(this.backdrop=document.querySelector(i).cloneNode(!0),this.backdrop.classList.remove("hidden"),n=`${this.backdrop.classList.toString()}`,this.backdrop.classList.value=""),s&&(this.onBackdropClickListener=()=>this.backdropClick(),this.backdrop.addEventListener("click",this.onBackdropClickListener,!0)),this.backdrop.setAttribute("data-hs-overlay-backdrop-template",""),this.backdropParent.appendChild(this.backdrop),setTimeout(()=>{this.backdrop.classList.value=n}))}destroyBackdrop(){let e=document.querySelector(`#${this.el.id}-backdrop`);e&&(this.openNextOverlay&&(e.style.transitionDuration=1.8*parseFloat(window.getComputedStyle(e).transitionDuration.replace(/[^\d.-]/g,""))+"s"),e.classList.add("opacity-0"),(0,N.yd)(e,()=>{e.remove()}))}focusElement(){let e=this.el.querySelector("[autofocus]");if(!e)return!1;e.focus()}getBodyCurrentScrollbarSize(){return Math.max(window.innerWidth-document.documentElement.clientWidth,0)}collectToggleParameters(e){let t={};return e.forEach(e=>{let i=e.getAttribute("data-hs-overlay-options"),n=i?JSON.parse(i):{};t=Object.assign(Object.assign({},t),n)}),t}isElementVisible(){let e=window.getComputedStyle(this.el);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)return!1;let t=this.el.getBoundingClientRect();if(0===t.width||0===t.height)return!1;let i=this.el.parentElement;for(;i;){let e=window.getComputedStyle(i);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)return!1;i=i.parentElement}return!0}isOpened(){return this.el.classList.contains("open")&&!this.el.classList.contains(this.hiddenClass)}open(t=null){window.$hsOverlayCollection||(window.$hsOverlayCollection=[]),this.el.classList.contains("minified")&&this.minify(!1),this.hasDynamicZIndex&&(e.currentZIndex<this.initialZIndex&&(e.currentZIndex=this.initialZIndex),e.currentZIndex++,this.el.style.zIndex=`${e.currentZIndex}`);let i=document.querySelectorAll(".hs-overlay.open"),n=window.$hsOverlayCollection.find(e=>Array.from(i).includes(e.element.el)&&!e.element.isLayoutAffect),s=document.querySelectorAll(`[data-hs-overlay="#${this.el.id}"]`),o="true"!==(0,N.gj)(this.el,"--body-scroll","false");
2if(this.lastFocusedToggle=document.activeElement,this.isClosePrev&&n)return this.openNextOverlay=!0,n.element.close().then(()=>{this.open(),this.openNextOverlay=!1});o&&(this.emulateScrollbarSpace&&(document.body.style.paddingRight=`${this.getBodyCurrentScrollbarSize()}px`),document.body.style.overflow="hidden"),this.buildBackdrop(),this.checkTimer(),this.hideAuto(),s.forEach(e=>{e.ariaExpanded&&(e.ariaExpanded="true")}),this.el.classList.remove(this.hiddenClass),this.el.setAttribute("aria-overlay","true"),this.el.setAttribute("tabindex","-1");let l=()=>{if(this.el.classList.contains("opened"))return!1;this.el.classList.add("open","opened"),this.isLayoutAffect&&document.body.classList.add("hs-overlay-body-open"),!this.initiallyOpened&&this.hasAutofocus&&(this.el.focus({preventScroll:!0}),this.el.style.outline="none"),this.initiallyOpened=!1,this.fireEvent("open",this.el),(0,N.JD)("open.hs.overlay",this.el,this.el),window.HSAccessibilityObserver&&this.accessibilityComponent&&window.HSAccessibilityObserver.updateComponentState(this.accessibilityComponent,!0),this.hasAutofocus&&this.focusElement(),"function"==typeof t&&t(),this.isScrollInsideViewport&&(this.el.style.pointerEvents="auto",this.onScrollInsideViewportClickListener=e=>{e.target===this.el&&this.hasAbilityToCloseOnBackdropClick&&this.close()},this.el.addEventListener("click",this.onScrollInsideViewportClickListener)),this.isElementVisible()&&e.openedItemsQty++};this.isToggleClassesImmediately?l():setTimeout(l,50)}close(t=!1,i=null){window.$hsOverlayCollection||(window.$hsOverlayCollection=[]),this.isElementVisible()&&(e.openedItemsQty=e.openedItemsQty<=0?0:e.openedItemsQty-1),0===e.openedItemsQty&&this.isLayoutAffect&&document.body.classList.remove("hs-overlay-body-open");let n=t=>{if(this.el.classList.contains("open"))return!1;document.querySelectorAll(`[data-hs-overlay="#${this.el.id}"]`).forEach(e=>{e.ariaExpanded&&(e.ariaExpanded="false")}),this.el.classList.add(this.hiddenClass),this.hasDynamicZIndex&&(this.el.style.zIndex=""),this.destroyBackdrop(),this.fireEvent("close",this.el),(0,N.JD)("close.hs.overlay",this.el,this.el),window.HSAccessibilityObserver&&this.accessibilityComponent&&window.HSAccessibilityObserver.updateComponentState(this.accessibilityComponent,!1),window.$hsOverlayCollection.some(e=>e.element.el.classList.contains("opened")&&!e.element.isLayoutAffect)||(document.body.style.overflow="",this.emulateScrollbarSpace&&(document.body.style.paddingRight="")),this.lastFocusedToggle&&(this.lastFocusedToggle.focus(),this.lastFocusedToggle=null),t(this.el),"function"==typeof i&&i(),0===e.openedItemsQty&&(this.isLayoutAffect||window.$hsOverlayCollection.some(e=>e.element.isLayoutAffect&&e.element.el.classList.contains("opened"))||document.body.classList.remove("hs-overlay-body-open"),this.hasDynamicZIndex&&(e.currentZIndex=0))};return new Promise(e=>{this.el.classList.remove("open","opened"),this.el.removeAttribute("aria-overlay"),this.el.removeAttribute("tabindex"),this.el.style.outline="",this.isScrollInsideViewport&&(this.el.style.pointerEvents="",this.onScrollInsideViewportClickListener&&(this.el.removeEventListener("click",this.onScrollInsideViewportClickListener),this.onScrollInsideViewportClickListener=null)),t||this.isToggleClassesImmediately?n(e):(0,N.yd)(this.animationTarget,()=>n(e))})}updateToggles(){let e=Array.from(document.querySelectorAll(`[data-hs-overlay="#${this.el.id}"]`)).filter(e=>!this.toggleButtons.includes(e));e.length&&(this.toggleButtons.push(...e),this.buildToggleButtons(e)),this.toggleButtons=this.toggleButtons.filter(e=>{var t;if(document.contains(e))return!0;let i=null==(t=this.onElementClickListener)?void 0:t.find(t=>t.el===e);return i&&e.removeEventListener("click",i.fn),!1})}destroy(){window.$hsOverlayCollection&&(this.el.classList.remove("open","opened",this.hiddenClass),this.isLayoutAffect&&document.body.classList.remove("hs-overlay-body-open"),this.el.removeEventListener("click",this.onOverlayClickListener),this.onElementClickListener.length&&(this.onElementClickListener.forEach(({el:e,fn:t})=>{e.removeEventListener("click",t)}),this.onElementClickListener=null),this.backdrop&&this.backdrop.removeEventListener("click",this.onBackdropClickListener),this.backdrop&&(this.backdrop.remove(),this.backdrop=null),this.onScrollInsideViewportClickListener&&(this.el.removeEventListener("click",this.onScrollInsideViewportClickListener),this.onScrollInsideViewportClickListener=null),window.$hsOverlayCollection=window.$hsOverlayCollection.filter(({element:e})=>e.el!==this.el))}static findInCollection(t){return window.$hsOverlayCollection&&window.$hsOverlayCollection.find(i=>t instanceof e?i.element.el===t.el:"string"==typeof t?i.element.el===document.querySelector(t):i.element.el===t)||null}static getInstance(e,t){let i="string"==typeof e?document.querySelector(e):e,n=i?.getAttribute("data-hs-overlay")?i.getAttribute("data-hs-overlay"):e,s=window.$hsOverlayCollection.find(e=>e.element.el===("string"==typeof n?document.querySelector(n):n)||e.element.el===("string"==typeof n?document.querySelector(n):n));return s?t?s:s.element.el:null}static autoInit(){window.$hsOverlayCollection||(window.$hsOverlayCollection=[]),window.$hsOverlayCollection&&(window.$hsOverlayCollection=window.$hsOverlayCollection.filter(({element:e})=>document.contains(e.el))),e.openedItemsQty=window.$hsOverlayCollection.filter(({element:e})=>e.el.classList.contains("opened")).length,document.querySelectorAll(".hs-overlay:not(.--prevent-on-load-init)").forEach(t=>{window.$hsOverlayCollection.find(e=>{var i;return(null==(i=e?.element)?void 0:i.el)===t})||new e(t)}),window.$hsOverlayCollection.forEach(({element:e})=>{e.updateToggles()})}static open(t){let i=e.findInCollection(t);
2i&&i.element.el.classList.contains(i.element.hiddenClass)&&i.element.open()}static close(t){let i=e.findInCollection(t);i&&!i.element.el.classList.contains(i.element.hiddenClass)&&i.element.close()}static minify(t,i){let n=e.findInCollection(t);n&&n.element.minify(i)}static setOpened(e,t){document.body.clientWidth>=e?(t.element.el.classList.contains("minified")&&t.element.minify(!1),document.body.classList.add("hs-overlay-body-open"),t.element.open()):t.element.close(!0)}moveFocusWithinOverlay(e,t){if(!this.isOpened()||!this.isTabAccessibilityLimited)return;let i=Array.from(this.el.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(e=>!e.hidden&&"none"!==window.getComputedStyle(e).display);if(0===i.length)return;let n=this.el.querySelector(":focus"),s=n?i.indexOf(n):-1;"prev"===t?s<=0?i[i.length-1].focus():i[s-1].focus():s===i.length-1?i[0].focus():i[s+1].focus(),e.preventDefault()}setupAccessibility(){this.accessibilityComponent=window.HSAccessibilityObserver.registerComponent(this.el,{onEnter:()=>{this.isOpened()||this.open()},onEsc:()=>{this.isOpened()&&this.hasAbilityToCloseOnBackdropClick&&this.close()},onTab:e=>this.moveFocusWithinOverlay(e,"next"),onShiftTab:e=>this.moveFocusWithinOverlay(e,"prev")},this.isOpened(),"Overlay",".hs-overlay"),this.toggleButtons.forEach(e=>{window.HSAccessibilityObserver.registerComponent(e,{onEnter:()=>{this.isOpened()?this.close():this.open()},onEsc:()=>{this.isOpened()&&this.hasAbilityToCloseOnBackdropClick&&this.close()}},this.isOpened(),"Overlay Toggle",`[data-hs-overlay="#${this.el.id}"]`)})}static on(t,i,n){let s=e.findInCollection(i);s&&(s.element.events[t]=n)}};X.openedItemsQty=0,X.currentZIndex=0;var U=X,z=W.A,G=[{key:"accordion",plugin:a,collection:"$hsAccordionCollection"},{key:"carousel",plugin:y,collection:"$hsCarouselCollection"},{key:"collapse",plugin:x,collection:"$hsCollapseCollection"},{key:"dropdown",plugin:q,collection:"$hsDropdownCollection"},{key:"overlay",plugin:z,collection:"$hsOverlayCollection"}],J=e=>"all"===e?G:G.filter(({key:t})=>e.includes(t));window.HSStaticMethods={autoInit(e="all"){J(e).forEach(({plugin:e})=>e?.autoInit?.())},cleanCollection(e="all"){J(e).forEach(({collection:e})=>{window[e]instanceof Array&&(window[e]=[])})}},Object.assign(window,{HSAccordion:a,HSCarousel:y,HSCollapse:x,HSDropdown:q,HSOverlay:z}),window.addEventListener("load",()=>window.HSStaticMethods.autoInit())})();

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.