@orangesk/cms-templates 1.0.0-beta.34 → 1.0.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/blog-post-cover.png +0 -0
- package/build/assets/iphone-17.png +0 -0
- package/build/assets/market-lokator.png +0 -0
- package/build/assets/microsoft-365.png +0 -0
- package/build/assets/online-ochrana-b2c.png +0 -0
- package/build/assets/prima-volba.png +0 -0
- package/build/assets/samsung-hero-xxl.png +0 -0
- package/build/assets/soc-ako-sluzba.png +0 -0
- package/build/assets/tlacove-spravy.png +0 -0
- package/build/changelog/index.html +97 -3
- package/build/components/ContactFormB2B/index.html +1 -1
- package/build/index.html +2 -2
- package/build/lib/base.css +1 -1
- package/build/lib/base.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/footer.css +1 -1
- package/build/lib/footer.css.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/lib/tsconfig.tsbuildinfo +1 -1
- package/build/lib/utilities.css +1 -1
- package/build/lib/utilities.css.map +1 -1
- package/build/pages/basic-page-about-the-brand/index.html +1 -1
- package/build/pages/basic-page-gdpr/index.html +1 -1
- package/build/pages/blog-homepage-clovek/index.html +1 -1
- package/build/pages/blog-news-clovek/index.html +1 -1
- package/build/pages/blog-post-clovek/index.html +1 -1
- package/build/pages/business-trends-homepage/index.html +1 -1
- package/build/pages/business-trends-news/index.html +1 -1
- package/build/pages/business-trends-post/index.html +1 -1
- package/build/pages/career-at-orange/index.html +1 -1
- package/build/pages/components/basic/index.html +2 -2
- package/build/pages/components/benefit-section/index.html +4 -4
- package/build/pages/components/cards-section/index.html +2 -2
- package/build/pages/components/hero/index.html +3 -3
- package/build/pages/components/process-section/index.html +2 -2
- package/build/pages/components/promo-banner/index.html +5 -5
- package/build/pages/components/tiles-section/index.html +3 -3
- package/build/pages/device-lp-b2b/index.html +1 -1
- package/build/pages/device-lp-b2c/index.html +1 -1
- package/build/pages/device-lp-dvojicky-b2b/index.html +1 -1
- package/build/pages/device-lp-dvojicky-b2c/index.html +1 -1
- package/build/pages/digital-invoice/index.html +1 -1
- package/build/pages/help-and-support-b2b/index.html +1 -1
- package/build/pages/help-and-support-b2c/index.html +1 -1
- package/build/pages/homepage-b2b/index.html +1 -1
- package/build/pages/homepage-b2c/index.html +1 -1
- package/build/pages/increased-invoice/index.html +1 -1
- package/build/pages/invoices-and-payments/index.html +1 -1
- package/build/pages/job-offer-detail/index.html +1 -1
- package/build/pages/manuals-and-settings/index.html +1 -1
- package/build/pages/manuals-and-settings-general-template/index.html +1 -1
- package/build/pages/navody-a-nastavenia-apple-ios-16/index.html +1 -1
- package/build/pages/orange-tv-box/index.html +1 -1
- package/build/pages/press-and-news-releases/index.html +1 -1
- package/build/pages/press-and-news-releases-post/index.html +1 -1
- package/build/pages/press-center-docs-library/index.html +1 -1
- package/build/pages/press-center-general-terms/index.html +1 -1
- package/build/pages/press-center-informations-for-customers/index.html +1 -1
- package/build/pages/pricelist/index.html +1 -1
- package/build/pages/pricelist-tariff/index.html +1 -1
- package/build/pages/product-page-b2b-market-locator/index.html +1 -1
- package/build/pages/product-page-b2b-microsoft-365/index.html +1 -1
- package/build/pages/product-page-b2b-soc-as-a-service/index.html +1 -1
- package/build/pages/product-page-b2c-equipment-insurance/index.html +1 -1
- package/build/pages/product-page-b2c-online-security/index.html +1 -1
- package/build/pages/product-page-b2c-prima-volba/index.html +1 -1
- package/build/pages/roaming-b2b/index.html +1 -1
- package/build/pages/roaming-b2c/index.html +1 -1
- package/build/pages/roaming-b2c-detail/index.html +1 -1
- package/build/pages/roaming-b2c-overview/index.html +1 -1
- package/build/pages/signpost-insurance/index.html +1 -1
- package/build/pages/signpost-products-and-services/index.html +1 -1
- package/build/pages/tv-first-aid/index.html +1 -1
- package/build/pages/work-on-central/index.html +1 -1
- package/build/readme/index.html +1 -1
- package/build/shame.css +0 -18
- package/build/sprite.svg +1 -1
- package/package.json +12 -12
package/build/lib/scripts.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const t={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]};class n{constructor(e,t={direction:"horizontal"}){this.elems=e,this.config=t,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)}init(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}destroy(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}update(e){this.elems=e}onKeydown(e){const n=this.elems.indexOf(document.activeElement);(t.ARROWUP.includes(e.key)||t.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(t.ARROWLEFT.includes(e.key)||t.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((t.ARROWDOWN.includes(e.key)||t.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),n>=0&&n<this.elems.length-1?this.elems[n+1].focus():this.elems[0].focus()),(t.ARROWUP.includes(e.key)||t.ARROWLEFT.includes(e.key))&&(e.preventDefault(),n>=1?this.elems[n-1].focus():this.elems[this.elems.length-1].focus()),t.TAB.includes(e.key)&&this.destroy())}}const i={buttonSelector:"[data-accordion-toggle]"};class s{static MODAL_OPEN_BODY_CLASS="has-modal";static STICKY_FLOAT_TOLERANCE=3;static SCROLLSPY_CENTER_BUFFER=50;static TOP_SECTION_THRESHOLD=100;static DRAG_START_THRESHOLD=6;static SCROLL_END_DEBOUNCE_MS=150;static SCROLL_EDGE_TOLERANCE=1;static SCROLL_ALIGNMENT_TOLERANCE=1;static MAX_SCROLL_CORRECTIONS=2;element;contentLeftElement;megamenuElement;resizeObserver;supportsScrollEnd;anchorClickHandler;scrollHandler;scrollSpyHandler;scrollEndHandler;scrollEndFallbackHandler;resizeHandler;mouseDownHandler;dragStartHandler;dragMoveHandler;dragEndHandler;horizontalScrollHandler;nativeDragStartHandler;isAutoScrolling=!1;isPointerDown=!1;isDraggingNav=!1;suppressClick=!1;dragStartX=0;dragStartScrollLeft=0;scrollTimeout=null;scrollEndFallbackTimeout=null;navLinks=null;sections=[];currentPath;lastActiveIndex=0;autoScrollTargetId=null;autoScrollCorrectionCount=0;lastStickyOffset=0;modalClassObserver=null;modalStateHandler;isForcedFixed=!1;wasStickyFloating=!1;forcedFixedTop=0;forcedFixedLeft=0;fixedFlowPlaceholder=null;originalInlineStyles=null;constructor(e){return this.element=e,this.contentLeftElement=null,this.megamenuElement=null,this.resizeObserver=null,this.supportsScrollEnd="onscrollend"in window,this.isAutoScrolling=!1,this.currentPath=window.location.pathname,this.anchorClickHandler=this.handleAnchorClick.bind(this),this.scrollHandler=this.updateStickyPosition.bind(this),this.scrollSpyHandler=this.handleScrollSpy.bind(this),this.scrollEndHandler=this.handleScrollEnd.bind(this),this.scrollEndFallbackHandler=this.handleScrollEndFallback.bind(this),this.resizeHandler=this.handleResize.bind(this),this.mouseDownHandler=this.handleMouseDown.bind(this),this.dragStartHandler=this.handleDragStart.bind(this),this.dragMoveHandler=this.handleDragMove.bind(this),this.dragEndHandler=this.handleDragEnd.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.nativeDragStartHandler=this.handleNativeDragStart.bind(this),this.modalStateHandler=this.handleModalStateChange.bind(this),this.element.ODS_AnchorNavigation=this,this.init(),this}static getInstance(e){return e&&e.ODS_AnchorNavigation?e.ODS_AnchorNavigation:null}findMegamenuElement(){return document.querySelector("[data-megamenu]")}getMegamenuOffsetHeight(){return this.megamenuElement?.offsetHeight||0}updateStickyPosition(){if(this.isForcedFixed)return;if(!this.megamenuElement)return;const e=this.getMegamenuOffsetHeight(),t=e!==this.lastStickyOffset;if(this.lastStickyOffset=e,this.element.style.top=`${e}px`,this.updateStickyFloatingState(),!t||!this.isAutoScrolling||!this.autoScrollTargetId||this.autoScrollCorrectionCount>=s.MAX_SCROLL_CORRECTIONS)return;const n=document.getElementById(this.autoScrollTargetId);n&&(this.autoScrollCorrectionCount+=1,this.scrollToSection(n,"smooth"))}setupMegamenuObserver(){if(this.megamenuElement=this.findMegamenuElement(),!this.megamenuElement)return this.lastStickyOffset=0,void(this.element.style.top="0px");this.updateStickyPosition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.resizeObserver=new ResizeObserver(this.updateStickyPosition.bind(this)),this.resizeObserver.observe(this.megamenuElement)}setupScrollSpy(){document.documentElement.style.setProperty("--extra-scroll-margin",this.element.offsetHeight+"px"),this.navLinks=this.element.querySelectorAll(".anchor-navigation__item"),this.sections=Array.from(this.navLinks||[]).map(e=>e.getAttribute("href")).filter(e=>e?.includes("#")).map(e=>document.getElementById(e.split("#")[1])).filter(Boolean),this.teardownScrollSpyListeners(),this.element.addEventListener("click",this.anchorClickHandler),this.element.addEventListener("mousedown",this.mouseDownHandler),window.addEventListener("scroll",this.scrollSpyHandler,{passive:!0}),this.supportsScrollEnd?window.addEventListener("scrollend",this.scrollEndHandler):window.addEventListener("scroll",this.scrollEndFallbackHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),this.initScrollSpy(),this.alignInitialHashIfNeeded()}teardownScrollSpyListeners(){this.element.removeEventListener("click",this.anchorClickHandler),this.element.removeEventListener("mousedown",this.mouseDownHandler),window.removeEventListener("scroll",this.scrollSpyHandler),window.removeEventListener("resize",this.resizeHandler),this.supportsScrollEnd?window.removeEventListener("scrollend",this.scrollEndHandler):window.removeEventListener("scroll",this.scrollEndFallbackHandler),this.scrollEndFallbackTimeout&&(clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=null)}handleMouseDown(e){if(0!==e.button)return;const t=e.target;t&&this.element.contains(t)&&(t.closest("a, button, input, select, textarea, label, [role='button'], [contenteditable='true']")||e.preventDefault())}handleAnchorClick(e){if(this.suppressClick)return e.preventDefault(),e.stopPropagation(),void(this.suppressClick=!1);const t=e.target,n=t?.closest(".anchor-navigation__item");if(!n||!this.element.contains(n))return;e.preventDefault();const i=n.getAttribute("href");if(!i||!i.includes("#"))return;const s=i.split("#")[1],r=document.getElementById(s);if(!r)return;this.startAutoScroll(s),n.blur(),this.scrollToSection(r,"smooth");const o=`${window.location.pathname}${window.location.search}#${s}`;window.history.pushState(null,"",o),this.initScrollSpy(s)}getHashSectionId(){const e=window.location.hash;if(!e||e.length<=1)return null;let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}return t||null}startAutoScroll(e){this.isAutoScrolling=!0,this.autoScrollTargetId=e,this.autoScrollCorrectionCount=0}resetAutoScrollState(){this.isAutoScrolling=!1,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0}tryCorrectAutoScrollAlignment(){if(!this.autoScrollTargetId)return!0;const e=document.getElementById(this.autoScrollTargetId);if(!e)return!0;const t=this.getTargetTop(e);if(Math.abs(window.scrollY-t)<=s.SCROLL_ALIGNMENT_TOLERANCE)return!0;if(this.autoScrollCorrectionCount>=s.MAX_SCROLL_CORRECTIONS)return!0;this.autoScrollCorrectionCount+=1;const n=1===this.autoScrollCorrectionCount?"smooth":"auto";return this.scrollToSection(e,n),!1}getTotalStickyOffset(){return(this.megamenuElement?this.megamenuElement.offsetHeight:0)+this.element.offsetHeight}getConfiguredScrollPaddingTop(){const e=window.getComputedStyle(document.documentElement).scrollPaddingTop,t=Number.parseFloat(e);return Number.isFinite(t)&&t>0?t:0}getEffectiveScrollOffset(){const e=this.getConfiguredScrollPaddingTop();return e>0?e:this.getTotalStickyOffset()}getTargetTop(e){const t=e.getBoundingClientRect().top+window.scrollY-this.getEffectiveScrollOffset();return Math.max(0,t)}scrollToSection(e,t){window.scrollTo({top:this.getTargetTop(e),behavior:t})}alignInitialHashIfNeeded(){const e=this.getHashSectionId();if(!e)return;const t=document.getElementById(e);t&&(this.startAutoScroll(e),requestAnimationFrame(()=>{this.scrollToSection(t,"auto"),requestAnimationFrame(()=>{this.handleScrollEnd()})}))}initScrollSpy(e=null){if(!this.navLinks||!this.sections.length)return;let t,n=-1;if(this.navLinks.forEach(e=>e.classList.remove("is-active")),e)t=document.getElementById(e)||void 0,t&&(n=this.sections.findIndex(t=>t.id===e));else{const e=this.getEffectiveScrollOffset(),i=window.scrollY+e+s.SCROLLSPY_CENTER_BUFFER;for(let e=0;e<this.sections.length;e++){const s=this.sections[e],{top:r,height:o}=s.getBoundingClientRect(),a=r+window.scrollY;if(i>=a&&i<a+o){t=s,n=e;break}}}if(t||(window.scrollY<=s.TOP_SECTION_THRESHOLD?(n=0,t=this.sections[0]):(n=this.lastActiveIndex,t=this.sections[n])),n>=0&&(this.lastActiveIndex=n),t){const n=t.getAttribute("id");let i=this.element.querySelector(`.anchor-navigation__item[href="#${n}"]`);if(i||(i=this.element.querySelector(`.anchor-navigation__item[href="${this.currentPath}#${n}"]`)),i||(i=Array.from(this.navLinks).find(e=>{const t=e.getAttribute("href");return t&&t.endsWith(`#${n}`)})),i){i.classList.add("is-active");const t=this.element.querySelector(".anchor-navigation__content-left");t&&this.scrollActiveLinkIntoView(t,i,Boolean(e))}}}scrollActiveLinkIntoView(e,t,n=!1){const i=Math.max(0,e.scrollWidth-e.clientWidth),r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),a=o.left-r.left+e.scrollLeft+o.width/2-e.clientWidth/2,l=window.innerWidth<768?"auto":"smooth",c=Math.min(i,Math.max(0,a)),d=Math.abs(e.scrollLeft-c)<=s.SCROLL_ALIGNMENT_TOLERANCE;!n&&d||("function"!=typeof e.scrollTo?e.scrollLeft=c:e.scrollTo({left:c,behavior:l}))}setupDragScroll(){this.teardownDragScroll(),this.contentLeftElement=this.element.querySelector(".anchor-navigation__content-left"),this.contentLeftElement&&(this.contentLeftElement.addEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.addEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),this.updateDragState(),this.updateHorizontalOverflowState())}teardownDragScroll(){this.contentLeftElement&&(this.contentLeftElement.removeEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.removeEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.removeEventListener("scroll",this.horizontalScrollHandler),this.contentLeftElement.classList.remove("is-draggable","is-dragging")),window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement=null,this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=0,this.dragStartScrollLeft=0}updateDragState(){if(!this.contentLeftElement)return;const e="function"==typeof window.matchMedia?window.matchMedia("(pointer: fine)"):null,t=!e||e.matches,n=this.contentLeftElement.scrollWidth>this.contentLeftElement.clientWidth,i=t&&n;this.contentLeftElement.classList.toggle("is-draggable",i),i||(this.contentLeftElement.classList.remove("is-dragging"),this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler)),this.updateHorizontalOverflowState()}updateHorizontalOverflowState(){if(!this.contentLeftElement)return;const e=this.element.querySelector(".anchor-navigation__content");if(!e)return;const t=this.contentLeftElement.scrollWidth-this.contentLeftElement.clientWidth,n=t>s.SCROLL_EDGE_TOLERANCE,i=this.contentLeftElement.scrollLeft<=s.SCROLL_EDGE_TOLERANCE,r=this.contentLeftElement.scrollLeft>=t-s.SCROLL_EDGE_TOLERANCE;e.classList.toggle("has-left-overflow",n&&!i),e.classList.toggle("has-right-overflow",n&&!r)}handleDragStart(e){0===e.button&&this.contentLeftElement&&this.contentLeftElement.classList.contains("is-draggable")&&(this.isPointerDown=!0,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=e.clientX,this.dragStartScrollLeft=this.contentLeftElement.scrollLeft,window.addEventListener("mousemove",this.dragMoveHandler),window.addEventListener("mouseup",this.dragEndHandler))}handleDragMove(e){if(!this.isPointerDown||!this.contentLeftElement)return;const t=e.clientX-this.dragStartX;!this.isDraggingNav&&Math.abs(t)>=s.DRAG_START_THRESHOLD&&(this.isDraggingNav=!0,this.suppressClick=!0,this.contentLeftElement.classList.add("is-dragging")),this.isDraggingNav&&(e.preventDefault(),this.contentLeftElement.scrollLeft=this.dragStartScrollLeft-t)}handleDragEnd(){if(!this.isPointerDown)return;this.isPointerDown=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement&&this.contentLeftElement.classList.remove("is-dragging");const e=this.isDraggingNav;this.isDraggingNav=!1,e&&window.setTimeout(()=>{this.suppressClick=!1},0)}handleNativeDragStart(e){this.contentLeftElement?.classList.contains("is-draggable")&&e.preventDefault()}handleScrollEndFallback(){this.scrollEndFallbackTimeout&&clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=setTimeout(()=>{this.handleScrollEnd()},s.SCROLL_END_DEBOUNCE_MS)}handleResize(){if(this.isForcedFixed){const e=this.element.parentElement?.getBoundingClientRect(),t=this.getMegamenuOffsetHeight();e&&(this.forcedFixedLeft=Math.round(e.left),this.element.style.width=`${Math.round(e.width)}px`),t>0&&(this.forcedFixedTop=t),this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`)}else this.updateStickyFloatingState();this.initScrollSpy(),this.updateDragState(),this.updateHorizontalOverflowState()}isAnyModalOpen(){return document.body.classList.contains(s.MODAL_OPEN_BODY_CLASS)}isCurrentlyStickyFloating(){if(!this.megamenuElement)return!1;const e=this.getMegamenuOffsetHeight();return this.element.getBoundingClientRect().top<=e+s.STICKY_FLOAT_TOLERANCE}updateStickyFloatingState(){this.isAnyModalOpen()||this.isForcedFixed||(this.wasStickyFloating=this.isCurrentlyStickyFloating())}ensureFixedFlowPlaceholder(){this.fixedFlowPlaceholder||(this.fixedFlowPlaceholder=document.createElement("div"),this.fixedFlowPlaceholder.setAttribute("aria-hidden","true"),this.fixedFlowPlaceholder.style.width="100%",this.fixedFlowPlaceholder.style.pointerEvents="none",this.fixedFlowPlaceholder.style.visibility="hidden",this.element.insertAdjacentElement("afterend",this.fixedFlowPlaceholder)),this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`}removeFixedFlowPlaceholder(){this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.remove(),this.fixedFlowPlaceholder=null)}applyFixedPosition(){if(this.isForcedFixed)return;const e=this.element.getBoundingClientRect(),t=this.element.parentElement?.getBoundingClientRect(),n=this.getMegamenuOffsetHeight();this.originalInlineStyles={position:this.element.style.position,top:this.element.style.top,left:this.element.style.left,right:this.element.style.right,width:this.element.style.width},this.forcedFixedTop=n>0?n:Math.max(0,Math.round(e.top)),this.forcedFixedLeft=Math.max(0,Math.round(t?.left??e.left));const i=Math.round(t?.width??e.width);this.element.style.position="fixed",this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.element.style.right="",this.element.style.width=`${i}px`,this.ensureFixedFlowPlaceholder(),this.isForcedFixed=!0}restoreStickyPosition(e=!0){if(!this.isForcedFixed)return;const t=this.originalInlineStyles;this.element.style.position=t?.position||"",this.element.style.top=t?.top||"",this.element.style.left=t?.left||"",this.element.style.right=t?.right||"",this.element.style.width=t?.width||"",this.resetFixedPositionState(),e&&(this.updateStickyPosition(),this.initScrollSpy())}handleModalStateChange(){this.isAnyModalOpen()?(this.isForcedFixed||this.wasStickyFloating)&&this.applyFixedPosition():(this.restoreStickyPosition(!1),this.updateStickyFloatingState())}setupModalObserver(){this.updateStickyFloatingState(),this.handleModalStateChange(),document.body&&"undefined"!=typeof MutationObserver&&(this.modalClassObserver=new MutationObserver(this.modalStateHandler),this.modalClassObserver.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}teardownModalObserver(){this.modalClassObserver&&(this.modalClassObserver.disconnect(),this.modalClassObserver=null)}teardownMegamenuObserver(){window.removeEventListener("scroll",this.scrollHandler),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}clearAutoScrollTimers(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)}resetFixedPositionState(){this.originalInlineStyles=null,this.isForcedFixed=!1,this.wasStickyFloating=!1,this.forcedFixedTop=0,this.forcedFixedLeft=0,this.removeFixedFlowPlaceholder()}resetNavigationState(){this.megamenuElement=null,this.lastStickyOffset=0,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0,this.resetFixedPositionState()}handleScrollSpy(){this.isAutoScrolling?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.handleScrollEnd()},s.SCROLL_END_DEBOUNCE_MS)):this.initScrollSpy()}handleScrollEnd(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.tryCorrectAutoScrollAlignment()&&(this.resetAutoScrollState(),this.initScrollSpy())}init(){this.setupMegamenuObserver(),this.setupScrollSpy(),this.setupDragScroll(),this.setupModalObserver()}destroy(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.element.style.top="",this.resetNavigationState(),this.element.ODS_AnchorNavigation=null}update(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.resetNavigationState(),this.init()}}const r={controlSelector:".block-action__control",indicatorSelector:".block-action__indicator",activeClass:"is-indicating"};function o(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function a(e,t=0){return setTimeout(e,t)}function l(){return Date.now()}function c(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function d(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||!!e&&"object"==typeof e&&(1===e.nodeType||11===e.nodeType)}function u(e,...t){const n=Object(e);for(let e=0;e<t.length;e+=1){const i=t[e];if(null==i||d(i))continue;const s=i,r=Object.keys(Object(s)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(const e of r){const t=Object.getOwnPropertyDescriptor(s,e);if(!t||!t.enumerable)continue;const i=s[e];c(n[e])&&c(i)?i.__swiper__?n[e]=i:u(n[e],i):!c(n[e])&&c(i)?(n[e]={},i.__swiper__?n[e]=i:u(n[e],i)):n[e]=i}}return n}function h(e,t,n){e.style.setProperty(t,n)}function p(e,t=""){const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function f(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:o(t)),n}function m(e){const t=e.getBoundingClientRect();return{top:t.top+window.scrollY-(e.clientTop||0),left:t.left+window.scrollX-(e.clientLeft||0)}}function g(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function v(e){if(e&&e.parentNode)return[...e.parentNode.children].indexOf(e)}function b(e,t){const n=[];let i=e.parentElement;for(;i;)t&&!i.matches(t)||n.push(i),i=i.parentElement;return n}function y(e,t,n){{const n=window.getComputedStyle(e,null);return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getPropertyValue("width"===t?"margin-left":"margin-bottom"))}}function w(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function _(e,t=""){const n=globalThis.trustedTypes;e.innerHTML=void 0!==n?n.createPolicy("html",{createHTML:e=>e}).createHTML(t):t}let S,E,x;function C(){return S||(S="undefined"==typeof window?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}),S}function T(e={}){return E||(E=function({userAgent:e}={}){if("undefined"==typeof window)return{ios:!1,android:!1};const t=C(),n=navigator.platform,i=e||navigator.userAgent,s={ios:!1,android:!1},r=/(Android);?[\s/]+([\d.]+)?/.test(i),o=/(iPhone\sOS|iOS|iPod)/.test(i),a=/iPad/.test(i),l="MacIntel"===n&&t.touch&&navigator.maxTouchPoints>1,c=a||l;return r&&!("Win32"===n)&&(s.os="android",s.android=!0),(c||o)&&(s.os="ios",s.ios=!0),s}(e)),E}function A(){return x||(x=function(){if("undefined"==typeof window)return{isSafari:!1,isWebView:!1,need3dFix:!1};const e=T(),t=navigator.userAgent,n=t.toLowerCase(),i=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);return{isSafari:i,isWebView:s,need3dFix:i||s&&e.ios}}()),x}const k=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(n.shadowRoot){const t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},O=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},L=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){const n=s,r=[n-t];return r.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{void 0!==t.column&&r.includes(t.column)&&O(e,n)})}const r=s+i-1;if(e.params.rewind||e.params.loop)for(let i=s-t;i<=r+t;i+=1){const t=(i%n+n)%n;(t<s||t>r)&&O(e,t)}else for(let i=Math.max(s-t,0);i<=Math.min(r+t,n-1);i+=1)i!==s&&(i>r||i<s)&&O(e,i)},D=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);var M={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,a=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:document.querySelector(i.breakpointsBase),l=e.getBreakpoint(r,o,a);if(!l||e.currentBreakpoint===l)return;const c=(l in r?r[l]:void 0)||e.originalParams,d=D(e,i),h=D(e,c),p=e.params.grabCursor,f=c.grabCursor,m=i.enabled;d&&!h?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&h&&(s.classList.add(`${i.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!f?e.unsetGrabCursor():!p&&f&&e.setGrabCursor();const g=(e,t)=>e[t];["navigation","pagination","scrollbar"].forEach(t=>{const n=g(c,t);if(void 0===n)return;const s=g(i,t),r="object"==typeof s&&null!==s&&s.enabled,o="object"==typeof n&&null!==n&&n.enabled,a=e[t];r&&!o&&a?.disable?.(),!r&&o&&a?.enable?.()});const v=c.direction&&c.direction!==i.direction,b=i.loop&&(c.slidesPerView!==i.slidesPerView||v),y=i.loop;v&&n&&e.changeDirection(),u(e.params,c);const w=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!w?e.disable():!m&&w&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),n&&(b?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&_?(e.loopCreate(t),e.updateSlides()):y&&!_&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const s="window"===t?window.innerHeight:n.clientHeight,r=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}});r.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<r.length;e+=1){const{point:s,value:o}=r[e];"window"===t?window.matchMedia(`(min-width: ${o}px)`).matches&&(i=s):o<=n.clientWidth&&(i=s)}return i||"max"}},P={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:r}=e,o=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};const I={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};var N={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=function(...n){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(i,n)};return s.__emitterProxy=t,i.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,s;if("string"==typeof e[0]||Array.isArray(e[0]))n=e[0],i=e.slice(1,e.length),s=t;else{const r=e[0];n=r.events,i=r.data??[],s=r.context||t}return i.unshift(s),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(s,i)})}),t}};function R(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function z(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}function H(e){const t=this;t.destroyed||(k(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function B(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=e,o=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a)e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=o?e.virtual.slides.length:e.slides.length;e.slideTo(t-1,0,!1,!0)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){const t=e.autoplay;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function F(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function $(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let i=e.originalEvent??e;if("touchend"===i.type||"touchcancel"===i.type){const e=[...i.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:s,touches:r,rtlTranslate:o,slidesGrid:c,enabled:d}=t;if(!d)return;if(!s.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);s.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=l(),h=u-n.touchStartTime;if(t.allowClick){const e=i.path??(i.composedPath&&i.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit("tap click",i),h<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=l(),a(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=s.followFinger?o?t.translate:-t.translate:-(n.currentTranslate??0),s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const f=p>=-t.maxTranslate()&&!t.params.loop;let m=0,g=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==c[e+t]?(f||p>=c[e]&&p<c[e+t])&&(m=e,g=c[e+t]-c[e]):(f||p>=c[e])&&(m=e,g=c[c.length-1]-c[c.length-2])}let v=null,b=null;s.rewind&&(t.isBeginning?b=s.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(p-c[m])/g,w=m<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?v:m+w):t.slideTo(m)),"prev"===t.swipeDirection&&(y>1-s.longSwipesRatio?t.slideTo(m+w):null!==b&&y<0&&Math.abs(y)>s.longSwipesRatio?t.slideTo(b):t.slideTo(m))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==v?v:m+w),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:m)):i.target===t.navigation.nextEl?t.slideTo(m+w):t.slideTo(m)}}function V(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData,{params:i,touches:s,rtlTranslate:r,enabled:o}=t;if(!o)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;const a=e,c=a.originalEvent??a;if("pointermove"===c.type){if(null!==n.touchId)return;if(c.pointerId!==n.pointerId)return}let d;if("touchmove"===c.type){const e=[...c.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;d=e}else d=c;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",c));const u=d.pageX,h=d.pageY;if(c.preventedByNestedSwiper)return s.startX=u,void(s.startY=h);if(!t.allowTouchMove)return c.target.matches(n.focusableElements)||(t.allowClick=!1),void(n.isTouched&&(Object.assign(s,{startX:u,startY:h,currentX:u,currentY:h}),n.touchStartTime=l()));if(i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(h<s.startY&&t.translate<=t.maxTranslate()||h>s.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(r&&(u>s.startX&&-t.translate<=t.maxTranslate()||u<s.startX&&-t.translate>=t.minTranslate()))return;if(!r&&(u<s.startX&&t.translate<=t.maxTranslate()||u>s.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==c.target&&"mouse"!==c.pointerType&&document.activeElement.blur(),document.activeElement&&c.target===document.activeElement&&c.target.matches(n.focusableElements))return n.isMoved=!0,void(t.allowClick=!1);n.allowTouchCallbacks&&t.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=h;const p=s.currentX-s.startX,f=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(p**2+f**2)<t.params.threshold)return;if(void 0===n.isScrolling){let e;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:p*p+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,n.isScrolling=t.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",c),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===c.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;t.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let m=t.isHorizontal()?p:f,g=t.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(m=Math.abs(m)*(r?1:-1),g=Math.abs(g)*(r?1:-1)),s.diff=m,m*=i.touchRatio,r&&(m=-m,g=-g);const v=t.touchesDirection;t.swipeDirection=m>0?"prev":"next",t.touchesDirection=g>0?"prev":"next";const b=t.params.loop&&!i.cssMode,y="next"===t.touchesDirection&&t.allowSlideNext||"prev"===t.touchesDirection&&t.allowSlidePrev;if(!n.isMoved){if(b&&y&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==i._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&v!==t.touchesDirection&&b&&y&&Math.abs(m)>=1)return Object.assign(s,{startX:u,startY:h,currentX:u,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);t.emit("sliderMove",c),n.isMoved=!0;const w=n.startTranslate??0;n.currentTranslate=m+w;let _=!0,S=i.resistanceRatio;if(i.touchReleaseOnEdges&&(S=0),m>0?(b&&y&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(_=!1,i.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+w+m)**S))):m<0&&(b&&y&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-("auto"===i.slidesPerView?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(i.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(_=!1,i.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-w-m)**S))),_&&(c.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&(n.currentTranslate??0)<w&&(n.currentTranslate=w),!t.allowSlidePrev&&"prev"===t.swipeDirection&&(n.currentTranslate??0)>w&&(n.currentTranslate=w),t.allowSlidePrev||t.allowSlideNext||(n.currentTranslate=w),i.threshold>0){if(!(Math.abs(m)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&t.freeMode||i.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function j(e,t,n){const{params:i}=e,s=i.edgeSwipeDetection,r=i.edgeSwipeThreshold;return!s||!(n<=r||n>=window.innerWidth-r)||"prevent"===s&&(t.preventDefault(),!0)}function q(e){const t=this;if(t.destroyed)return;const n=e.originalEvent??e,i=t.touchEventsData;if("pointerdown"===n.type){const e=n;if(null!==i.pointerId&&i.pointerId!==e.pointerId)return;i.pointerId=e.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(i.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void j(t,n,n.targetTouches[0].pageX);const{params:s,touches:r,enabled:o}=t;if(!o)return;if(!s.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let a=n.target;if("wrapper"===s.touchEventsTarget&&!function(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}return!1}(e,t))),n}(a,t.wrapperEl))return;const c=n;if("number"==typeof c.which&&3===c.which)return;if("number"==typeof c.button&&c.button>0)return;if(i.isTouched&&i.isMoved)return;const d=!!s.noSwipingClass&&""!==s.noSwipingClass,u=n.composedPath?n.composedPath():n.path;d&&n.target&&n.target.shadowRoot&&u&&(a=u[0]);const h=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!(!n.target||!n.target.shadowRoot);if(s.noSwiping&&(p?(f=h,function e(t){if(!t||t===document||t===window)return null;let n=t;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(f);if(!i&&!n.getRootNode)return null;const s=n.getRootNode();return i||e(s.host)}(a)):a.closest(h)))return void(t.allowClick=!0);var f;if(s.swipeHandler&&"string"==typeof s.swipeHandler&&!a.closest(s.swipeHandler))return;const m=n;r.currentX=m.pageX,r.currentY=m.pageY;const g=r.currentX,v=r.currentY;if(!j(t,n,g))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=g,r.startY=v,i.touchStartTime=l(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let b=!0;a.matches(i.focusableElements)&&(b=!1,"SELECT"===a.nodeName&&(i.isTouched=!1)),document.activeElement&&document.activeElement.matches(i.focusableElements)&&document.activeElement!==a&&("mouse"===m.pointerType||"mouse"!==m.pointerType&&!a.matches(i.focusableElements))&&document.activeElement.blur();const y=b&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!y||a.isContentEditable||n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}const W=(e,t)=>{const{params:n,el:i,wrapperEl:s,device:r}=e,o=!!n.nested,a="on"===t?"addEventListener":"removeEventListener",l=t;if(!i||"string"==typeof i)return;document[a]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),i[a]("touchstart",e.onTouchStart,{passive:!1}),i[a]("pointerdown",e.onTouchStart,{passive:!1}),document[a]("touchmove",e.onTouchMove,{passive:!1,capture:o}),document[a]("pointermove",e.onTouchMove,{passive:!1,capture:o}),document[a]("touchend",e.onTouchEnd,{passive:!0}),document[a]("pointerup",e.onTouchEnd,{passive:!0}),document[a]("pointercancel",e.onTouchEnd,{passive:!0}),document[a]("touchcancel",e.onTouchEnd,{passive:!0}),document[a]("pointerout",e.onTouchEnd,{passive:!0}),document[a]("pointerleave",e.onTouchEnd,{passive:!0}),document[a]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[a]("click",e.onClick,!0),n.cssMode&&s[a]("scroll",e.onScroll);const c=t=>{e[l](t,B,!0)};n.updateOnWindowResize?c(r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate"):c("observerUpdate"),i[a]("load",e.onLoad,{capture:!0})};var U={loopCreate:function(e,t){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual?.enabled)return;const r=()=>{p(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",String(t))})},o=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||o)&&(()=>{const e=p(s,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const a=i.slidesPerGroup*(o?i.grid.rows:1),l=n.slides.length%a!==0,c=o&&n.slides.length%i.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?f("swiper-slide",[i.slideBlankClass]):f("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides&&(d(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()),r()):c?(i.loopAddBlankSlides&&(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()),r()):r();const u=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function(e={}){const{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:r,initial:o,byController:a,byMousewheel:l}=e;let c=r;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:u,allowSlidePrev:h,allowSlideNext:p,slidesEl:f,params:m}=d,{centeredSlides:g,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:y}=m,w=g||!!v||!!b;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&m.virtual?.enabled){if(n){const e=d.virtual.slides.length,t=d.virtual.slidesBefore??0;w||0!==d.snapIndex?w&&d.snapIndex<m.slidesPerView?d.slideTo(e+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(t,0,!1,!0):d.slideTo(e,0,!1,!0)}return d.allowSlidePrev=h,d.allowSlideNext=p,void d.emit("loopFix")}let _=m.slidesPerView;"auto"===_?_=d.slidesPerViewDynamic():(_=Math.ceil(parseFloat(String(m.slidesPerView))),w&&_%2==0&&(_+=1));const S=m.slidesPerGroupAuto?_:m.slidesPerGroup;let E=w?Math.max(S,Math.ceil(_/2)):S;E%S!==0&&(E+=S-E%S),E+=m.loopAdditionalSlides,d.loopedSlides=E;const x=d.grid&&m.grid&&m.grid.rows>1;u.length<_+E||"cards"===d.params.effect&&u.length<_+2*E||x&&m.grid.fill;const C=[],T=[],A=x?Math.ceil(u.length/m.grid.rows):u.length,k=o&&A-y<_&&!w;let O=k?y:d.activeIndex;void 0===c?c=d.getSlideIndex(u.find(e=>e.classList.contains(m.slideActiveClass))):O=c;const L="next"===i||!i,D="prev"===i||!i;let M=0,P=0;const I=(x?u[c].column??0:c)+(w&&void 0===s?-_/2+.5:0);if(I<E){M=Math.max(E-I,S);for(let e=0;e<E-I;e+=1){const t=e-Math.floor(e/A)*A;if(x){const e=A-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&C.push(t)}else C.push(A-t-1)}}else if(I+_>A-E){P=Math.max(I-(A-2*E),S),k&&(P=Math.max(P,_-A+y+1));for(let e=0;e<P;e+=1){const t=e-Math.floor(e/A)*A;x?u.forEach((e,n)=>{e.column===t&&T.push(n)}):T.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),"cards"===d.params.effect&&u.length<_+2*E&&(T.includes(c)&&T.splice(T.indexOf(c),1),C.includes(c)&&C.splice(C.indexOf(c),1)),D&&C.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,f.prepend(t),t.swiperLoopMoveDOM=!1}),L&&T.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,f.append(t),t.swiperLoopMoveDOM=!1}),d.recalcSlides(),"auto"===m.slidesPerView?d.updateSlides():x&&(C.length>0&&D||T.length>0&&L)&&d.slides.forEach((e,t)=>{d.grid.updateSlide(t,e,d.slides)}),m.watchSlidesProgress&&d.updateSlidesOffset(),n)if(C.length>0&&D){if(void 0===t){const e=d.slidesGrid[O],t=d.slidesGrid[O+M]-e;l?d.setTranslate(d.translate-t):(d.slideTo(O+Math.ceil(M),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(s){const e=x?C.length/m.grid.rows:C.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(T.length>0&&L)if(void 0===t){const e=d.slidesGrid[O],t=d.slidesGrid[O-P]-e;l?d.setTranslate(d.translate-t):(d.slideTo(O-P,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=x?T.length/m.grid.rows:T.length;d.slideTo(d.activeIndex-e,0,!1,!0)}d.allowSlidePrev=h,d.allowSlideNext=p;const N=d.controller?.control;if(N&&!a){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:c,byController:!0};Array.isArray(N)?N.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&n})}):N instanceof d.constructor&&N.params.loop&&N.loopFix({...e,slideTo:N.params.slidesPerView===m.slidesPerView&&n})}d.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual?.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=e,n=void 0===t.swiperSlideIndex?Number(e.getAttribute("data-swiper-slide-index")):t.swiperSlideIndex;i[n]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function G(e,t){return function(n={}){const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in s?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),u(t,n)):u(t,n)):u(t,n)}}var Y={slideTo:function(e=0,t,n=!0,i,s){"string"==typeof e&&(e=parseInt(e,10));const r=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:f}=r;if(!f&&!i&&!s||r.destroyed||r.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const m=Math.min(r.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?o=e:t>=n&&t<i&&(o=e+1):t>=n&&(o=e)}if(r.initialized&&o!==u){if(!r.allowSlideNext&&(h?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(u||0)!==o)return!1}let b;o!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=o>u?"next":o<u?"prev":"reset";const y=r.virtual&&r.params.virtual?.enabled;if((!y||!s)&&(h&&-v===r.translate||!h&&v===r.translate))return r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(n,b),r.transitionEnd(n,b)),!1;if(a.cssMode){const e=r.isHorizontal(),n=h?v:-v;return 0===t?(y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&(r.params.initialSlide??0)>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})):p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"}),!0}const w=A().isSafari;return y&&!s&&w&&r.isElement&&r.virtual.update(!1,!1,o),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,b),0===t?r.transitionEnd(n,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let o=e;if(s.params.loop)if(s.virtual&&s.params.virtual?.enabled)o+=s.virtual.slidesBefore??0;else{let e;if(r){const t=o*s.params.grid.rows,n=s.slides.find(e=>Number(e.getAttribute("data-swiper-slide-index"))===t);e=n?.column??0}else e=s.getSlideIndexByData(o);const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n,slidesOffsetBefore:a,slidesOffsetAfter:l}=s.params,c=n||!!a||!!l;let d;"auto"===s.params.slidesPerView?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(String(s.params.slidesPerView))),c&&d%2==0&&(d+=1));let u=t-e<d;if(c&&(u=u||e<Math.ceil(d/2)),i&&c&&"auto"!==s.params.slidesPerView&&!r&&(u=!1),u){const n=c?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?s.realIndex:void 0})}if(r){const e=o*s.params.grid.rows,t=s.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e);o=t?.column??0}else o=s.getSlideIndexByData(o)}return requestAnimationFrame(()=>{s.slideTo(o,t,n,i)}),s},slideNext:function(e,t=!0,n){const i=this,{enabled:s,params:r,animating:o}=i;if(!s||i.destroyed)return i;void 0===e&&(e=i.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<r.slidesPerGroupSkip?1:a,c=i.virtual&&r.virtual?.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return r.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const i=this,{params:s,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&s.virtual?.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(a?i.translate:-i.translate),p=r.map(e=>u(e)),f=s.freeMode&&s.freeMode.enabled;let m=r[p.indexOf(h)-1];if(void 0===m&&(s.cssMode||f)){let e;r.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(m=f?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=o.indexOf(m),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual?.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,e,t,n)}),!0):i.slideTo(g,e,t,n)},slideReset:function(e,t=!0,n){const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,i=.5){const s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const e=s.snapGrid[a];l-e>(s.snapGrid[a+1]-e)*i&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[a-1];l-e<=(s.snapGrid[a]-e)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n,clickedSlide:i,clickedIndex:s}=e;if(void 0===i||void 0===s)return;const r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let o,l=e.getSlideIndexWhenGrid(s);const c=e.isElement?"swiper-slide":`.${t.slideClass}`,d=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;o=parseInt(i.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(o):l>(d?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),l=e.getSlideIndex(p(n,`${c}[data-swiper-slide-index="${o}"]`)[0]),a(()=>{e.slideTo(l)})):e.slideTo(l)}else e.slideTo(l)}};function X({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:s,previousIndex:r}=e;let o=n;o||(o=s>r?"next":s<r?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===o?e.emit(`slideResetTransition${i}`):t&&s!==r&&(e.emit(`slideChangeTransition${i}`),"next"===o?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}var K={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=function(e,t="x"){const n=function(e){return window.getComputedStyle(e,null)}(e),i=n.transform||n.webkitTransform;if(!i||"none"===i)return 0;const s=new DOMMatrixReadOnly(i);return"x"===t?s.m41:s.m42}(s,e);return r+=this.cssOverflowAdjustment(),n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:r,progress:o}=n;let a,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();a=0===d?0:(e-n.minTranslate())/d,a!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,i=!0,s){const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,r.updateProgress(d),o.cssMode){const e=r.isHorizontal();return 0===t?a[e?"scrollLeft":"scrollTop"]=-d:a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"}),!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};const J=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Q=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};var Z={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(g(i,"padding-left")||"0",10)-parseInt(g(i,"padding-right")||"0",10),n=n-parseInt(g(i,"padding-top")||"0",10)-parseInt(g(i,"padding-bottom")||"0",10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||"0")}const n=e.params,{wrapperEl:i,slidesEl:s,rtlTranslate:r,wrongRTL:o}=e,a=!(!e.virtual||!n.virtual?.enabled),l=a?e.virtual.slides.length:e.slides.length,c=p(s,`.${e.params.slideClass}, swiper-slide`),d=a?e.virtual.slides.length:c.length;let u=[];const f=[],m=[],v=t=>"function"==typeof t?t.call(e):t,b=v(n.slidesOffsetBefore),w=v(n.slidesOffsetAfter),_=e.snapGrid.length,S=e.slidesGrid.length,E=e.size-b-w;let x=n.spaceBetween,C=-b,T=0,A=0;if(void 0===E)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*E:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x-b-w,c.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(h(i,"--swiper-centered-offset-before",""),h(i,"--swiper-centered-offset-after","")),n.cssMode&&(h(i,"--swiper-slides-offset-before",`${b}px`),h(i,"--swiper-slides-offset-after",`${w}px`));const k=n.grid&&n.grid.rows>1&&e.grid;k?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let O=0;const L="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>{const t=n.breakpoints[e];return void 0!==t?.slidesPerView}).length>0;for(let i=0;i<d;i+=1){O=0;const s=c[i];if(!s||(k&&e.grid.updateSlide(i,s,c),"none"!==g(s,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual?.slidesPerViewAutoSlideSize&&(O=n.virtual.slidesPerViewAutoSlideSize),O&&s&&(n.roundLengths&&(O=Math.floor(O)),s.style[e.getDirectionLabel("width")]=`${O}px`);else if("auto"===n.slidesPerView){L&&(s.style[e.getDirectionLabel("width")]="");const i=getComputedStyle(s),r=s.style.transform,o=s.style.webkitTransform;if(r&&(s.style.transform="none"),o&&(s.style.webkitTransform="none"),n.roundLengths)O=e.isHorizontal()?y(s,"width"):y(s,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),r=t(i,"padding-right"),o=t(i,"margin-left"),a=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)O=e+o+a;else{const{clientWidth:t,offsetWidth:i}=s;O=e+n+r+o+a+(i-t)}}r&&(s.style.transform=r),o&&(s.style.webkitTransform=o),n.roundLengths&&(O=Math.floor(O))}else O=(E-(n.slidesPerView-1)*x)/n.slidesPerView,n.roundLengths&&(O=Math.floor(O)),s&&(s.style[e.getDirectionLabel("width")]=`${O}px`);s&&(s.swiperSlideSize=O),m.push(O),n.centeredSlides?(C=C+O/2+T/2+x,0===T&&0!==i&&(C=C-E/2-x),0===i&&(C=C-E/2-x),Math.abs(C)<.001&&(C=0),n.roundLengths&&(C=Math.floor(C)),A%n.slidesPerGroup===0&&u.push(C),f.push(C)):(n.roundLengths&&(C=Math.floor(C)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0&&u.push(C),f.push(C),C=C+O+x),e.virtualSize+=O+x,T=O,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,E)+w,r&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+x}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),k&&e.grid.updateWrapperSize(O,u),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,i=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let s=u.length;if(i){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=m.length-1;n>=0&&(t+=m[n]+(n<m.length-1?x:0),t<=E);n-=1)e=m.length-n}else e=Math.floor(n.slidesPerView);s=Math.max(d-e,0)}const r=[];for(let t=0;t<u.length;t+=1){let o=u[t];n.roundLengths&&(o=Math.floor(o)),i?t<=s&&r.push(o):u[t]<=e.virtualSize-E&&r.push(o)}u=r,Math.floor(e.virtualSize-E)-Math.floor(u[u.length-1])>1&&(i||u.push(e.virtualSize-E))}if(a&&n.loop){const t=m[0]+x,i=(e.virtual.slidesBefore??0)+(e.virtual.slidesAfter??0);if(n.slidesPerGroup>1){const e=Math.ceil(i/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let t=0;t<e;t+=1)u.push(u[u.length-1]+s)}for(let s=0;s<i;s+=1)1===n.slidesPerGroup&&u.push(u[u.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===u.length&&(u=[0]),0!==x){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${x}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(x||0)}),e-=x;const t=e>E?e-E:0;u=u.map(e=>e<=0?-b:e>t?t+w:e)}if(n.centerInsufficientSlides){let e=0;if(m.forEach(t=>{e+=t+(x||0)}),e-=x,e<E){const t=(E-e)/2;u.forEach((e,n)=>{u[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:f,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){h(i,"--swiper-centered-offset-before",-u[0]+"px"),h(i,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==l&&e.emit("slidesLengthChange"),u.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==S&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(a||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual?.enabled;let s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;const r=o(e);r&&n.push(r)}else{const e=o(t.activeIndex);e&&n.push(e)}for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:i,rtlTranslate:s,snapGrid:r}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;s&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset??0);const d=l.swiperSlideSize??0,u=(o+(n.centeredSlides?t.minTranslate():0)-c)/(d+a),h=(o-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(d+a),p=-(o-c),f=p+t.slidesSizesGrid[e],m=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||f>1&&f<=t.size||p<=0&&f>=t.size;g&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),Q(l,g,n.slideVisibleClass),Q(l,m,n.slideFullyVisibleClass),l.progress=s?-u:u,l.originalProgress=s?-h:h}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:o}=t,a=t.progressLoop;const l=r,c=o;if(0===i)s=0,r=!0,o=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;r=n||s<=0,o=a||s>=1,n&&(s=0),a&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],r=t.slidesGrid[i],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=s?(l-s)/o:(l+o-r)/o,a>1&&(a-=1)}Object.assign(t,{progress:s,progressLoop:a,isBeginning:r,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,r=!(!e.virtual||!n.virtual?.enabled),o=e.grid&&n.grid&&n.grid.rows>1,a=e=>p(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){const t=e.virtual.slides;let n=s-(e.virtual.slidesBefore??0);n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),l=a(`[data-swiper-slide-index="${n}"]`)}else l=a(`[data-swiper-slide-index="${s}"]`);else o?(l=t.find(e=>e.column===s),d=t.find(e=>e.column===s+1),c=t.find(e=>e.column===s-1)):l=t[s];l&&(o||(d=function(e,t){const n=[];let i=e.nextElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.nextElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];let i=e.previousElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.previousElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{J(e,e===l,n.slideActiveClass),J(e,e===d,n.slideNextClass),J(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:o,snapIndex:a}=t;let l,c=e;const d=e=>{const n=t.virtual.slides;let i=e-(t.virtual.slidesBefore??0);return i<0&&(i=n.length+i),i>=n.length&&(i-=n.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?s=e:i>=t[e]&&i<t[e+1]&&(s=e+1):i>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual?.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let h;if(t.virtual&&s.virtual?.enabled)h=s.loop?d(c):c;else if(u){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&L(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)});let r,o=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){o=!0,r=e;break}if(!s||!o)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};const ee={eventsEmitter:N,update:Z,translate:K,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),X({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),X({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:Y,loop:U,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=q.bind(e),e.onTouchMove=V.bind(e),e.onTouchEnd=$.bind(e),e.onDocumentTouchStart=z.bind(e),t.cssMode&&(e.onScroll=F.bind(e)),e.onClick=R.bind(e),e.onLoad=H.bind(e),W(e,"on")},detachEvents:function(){W(this,"off")}},breakpoints:M,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:P},te={};class ne{static extendedDefaults;static defaults;constructor(...e){let t,n;if(1===e.length&&null!==e[0]&&"object"==typeof e[0]&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=u({},n),t&&!n.el&&(n.el=t),n.el&&"string"==typeof n.el&&"undefined"!=typeof document&&document.querySelectorAll(n.el).length>1){const e=[];return document.querySelectorAll(n.el).forEach(t=>{const i=u({},n,{el:t});e.push(new ne(i))}),e}const i=this;i.__swiper__=!0,i.support=C(),i.device=T({userAgent:n.userAgent??void 0}),i.browser=A(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{const t=e;"function"==typeof t&&i.modules.indexOf(t)<0&&i.modules.push(t)});const s={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:G(n,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const r=u({},I,s);if(i.params=u({},r,te,n),i.originalParams=u({},i.params),i.passedParams=u({},n),i.params&&i.params.on){const e=i.params.on;Object.keys(e).forEach(t=>{const n=e[t];n&&i.on(t,n)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}isHorizontal(){return"horizontal"===this.params.direction}isVertical(){return"vertical"===this.params.direction}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=v(p(t,`.${n.slideClass}, swiper-slide`)[0]);return v(e)-(i??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=p(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),i=(this.maxTranslate()-n)*e+n;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const e=this.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(this.params.containerModifierClass));this.emit("_containerClasses",e.join(" "))}getSlideClasses(e){return this.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(this.params.slideClass)).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const e=[];this.slides.forEach(t=>{const n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit("_slideClass",t,n)}),this.emit("_slideClasses",e)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:r,size:o,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e=i[a]?Math.ceil(i[a].swiperSlideSize??0):0,t=!1;for(let n=a+1;n<i.length;n+=1)i[n]&&!t&&(e+=Math.ceil(i[n].swiperSlideSize??0),l+=1,e>o&&(t=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!t&&(e+=i[n].swiperSlideSize??0,l+=1,e>o&&(t=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1)(t?s[e]+r[e]-s[a]<o:s[e]-s[a]<o)&&(l+=1);else for(let e=a-1;e>=0;e-=1)s[a]-s[e]<o&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&k(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode?.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual?.enabled?e.virtual.slides.length:e.slides.length;s=e.slideTo(t-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;if("undefined"==typeof document)return!1;const n=e??t.params.el;let i=null;if("string"==typeof n?i=document.querySelector(n):n instanceof HTMLElement&&(i=n),!i)return!1;i.swiper=t;const s=i.parentNode;s&&s.host&&s.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=i&&i.shadowRoot?i.shadowRoot.querySelector(r()):p(i,r())[0];!o&&t.params.createElements&&(o=f("div",t.params.wrapperClass),i.append(o),p(i,`.${t.params.slideClass}`).forEach(e=>{o.append(e)}));const a=t.isElement?i.parentNode.host:null;return Object.assign(t,{el:i,wrapperEl:o,slidesEl:t.isElement&&!a.slideSlots?a:o,hostEl:t.isElement?a:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===g(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===g(i,"direction")),wrongRTL:"-webkit-box"===g(o,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual?.enabled?t.slideTo((t.params.initialSlide??0)+(t.virtual.slidesBefore??0),0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?k(t,e):e.addEventListener("load",e=>{k(t,e.target)})}),L(t),t.initialized=!0,L(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:i,el:s,wrapperEl:r,slides:o}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),a=n,Object.keys(a).forEach(e=>{try{a[e]=null}catch{}try{delete a[e]}catch{}})),n.destroyed=!0),null;var a}static extendDefaults(e){u(te,e)}static installModule(e){ne.prototype.__modules__||(ne.prototype.__modules__=[]);const t=ne.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>ne.installModule(e)),ne):(ne.installModule(e),ne)}}Object.defineProperty(ne,"extendedDefaults",{get:()=>te}),Object.defineProperty(ne,"defaults",{get:()=>I});const ie=ee,se=ne.prototype;Object.keys(ie).forEach(e=>{const t=ie[e];Object.keys(t).forEach(e=>{se[e]=t[e]})}),ne.use([({swiper:e,on:t,emit:n})=>{let i=null,s=null;const r=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==window.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{s=window.requestAnimationFrame(()=>{const{width:n,height:i}=e;let s=n,o=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{if(i&&i!==e.el)return;const r=Array.isArray(t)?t[0]:t;s=n?n.width:r.inlineSize,o=n?n.height:r.blockSize}),s===n&&o===i||r()})}),i.observe(e.el)):(window.addEventListener("resize",r),window.addEventListener("orientationchange",o))}),t("destroy",()=>{s&&window.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",o)})},({swiper:e,extendParams:t,on:n})=>{const i=[],s=(t,n={})=>{const s=window.MutationObserver||window.WebkitMutationObserver;if(!s)return;const r=new s(t=>{if(e.__preventObserver__)return;if(1===t.length)return void e.emit("observerUpdate",t[0]);const n=function(){e.emit("observerUpdate",t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});r.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),i.push(r)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=b(e.hostEl);for(let e=0;e<t.length;e+=1)s(t[e])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const re=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.keyboard}function r(t){if(!e.enabled)return;const{rtlTranslate:n}=e,r="originalEvent"in t&&t.originalEvent?t.originalEvent:t,o=r.keyCode||r.charCode,a=s(),l=!!a.pageUpDown,c=l&&33===o,d=l&&34===o,u=37===o,h=39===o,p=38===o,f=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&h||e.isVertical()&&f||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&p||c))return!1;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const g=document.activeElement;if(g&&(g.isContentEditable||g.nodeName&&("input"===g.nodeName.toLowerCase()||"textarea"===g.nodeName.toLowerCase())))return;if(a.onlyInViewport&&(c||d||u||h||p||f)){let t=!1;if(b(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===b(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,s=i.clientWidth,r=i.clientHeight,o=window.innerWidth,a=window.innerHeight,l=m(i);n&&(l.left-=i.scrollLeft);const c=[[l.left,l.top],[l.left+s,l.top],[l.left,l.top+r],[l.left+s,l.top+r]];for(let e=0;e<c.length;e+=1){const n=c[e];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=a){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const v=a.speed;e.isHorizontal()?((c||d||u||h)&&r.cancelable&&r.preventDefault(),((d||h)&&!n||(c||u)&&n)&&e.slideNext(v),((c||u)&&!n||(d||h)&&n)&&e.slidePrev(v)):((c||d||p||f)&&r.cancelable&&r.preventDefault(),(d||f)&&e.slideNext(v),(c||p)&&e.slidePrev(v)),i("keyPress",o)}function o(){e.keyboard.enabled||(document.addEventListener("keydown",r),e.keyboard.enabled=!0)}function a(){e.keyboard.enabled&&(document.removeEventListener("keydown",r),e.keyboard.enabled=!1)}t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),e.keyboard={enabled:!1,enable:o,disable:a},n("init",()=>{s().enabled&&o()}),n("destroy",()=>{e.keyboard.enabled&&a()})},oe=({swiper:e,extendParams:t,on:n,emit:i})=>{let s;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});let r,o=l(),c=!1;const d=[];function u(){return e.params.mousewheel}function h(){e.enabled&&(c=!0)}function p(){e.enabled&&(c=!1)}function f(t){const n=u();return!(n.thresholdDelta&&t.delta<n.thresholdDelta||n.thresholdTime&&l()-o<n.thresholdTime||!(t.delta>=6&&l()-o<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),i("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),i("scroll",t.raw)),o=(new window.Date).getTime(),1))}function m(t){let n="originalEvent"in t&&t.originalEvent?t.originalEvent:t,o=!0;if(!e.enabled)return!1;const h=u();if(t.target.closest(`.${h.noMousewheelClass}`))return!1;e.params.cssMode&&n.preventDefault();let p=e.el;"container"!==h.eventsTarget&&(p=document.querySelector(h.eventsTarget));const m=p&&p.contains(n.target);if(!c&&!m&&!h.releaseOnEdges)return!0;let g=0;const v=e.rtlTranslate?-1:1,b=function(e){const t=e;let n=0,i=0,s=0,r=0;return void 0!==t.detail&&(i=t.detail),void 0!==t.wheelDelta&&(i=-t.wheelDelta/120),void 0!==t.wheelDeltaY&&(i=-t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(n=-t.wheelDeltaX/120),void 0!==t.axis&&void 0!==t.HORIZONTAL_AXIS&&t.axis===t.HORIZONTAL_AXIS&&(n=i,i=0),s=10*n,r=10*i,void 0!==t.deltaY&&(r=t.deltaY),void 0!==t.deltaX&&(s=t.deltaX),t.shiftKey&&!s&&(s=r,r=0),(s||r)&&t.deltaMode&&(1===t.deltaMode?(s*=40,r*=40):(s*=800,r*=800)),s&&!n&&(n=s<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:n,spinY:i,pixelX:s,pixelY:r}}(n);if(h.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(b.pixelX)>Math.abs(b.pixelY)))return!0;g=-b.pixelX*v}else{if(!(Math.abs(b.pixelY)>Math.abs(b.pixelX)))return!0;g=-b.pixelY}else g=Math.abs(b.pixelX)>Math.abs(b.pixelY)?-b.pixelX*v:-b.pixelY;if(0===g)return!0;h.invert&&(g=-g);let y=e.getTranslate()+g*(h.sensitivity??1);y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),o=!!e.params.loop||!(y===e.minTranslate()||y===e.maxTranslate()),o&&e.params.nested&&n.stopPropagation();const w=e.params.freeMode;if(e.params.freeMode&&w?.enabled){const t={time:l(),delta:Math.abs(g),direction:Math.sign(g)},o=r&&t.time<r.time+500&&t.delta<=r.delta&&t.direction===r.direction;if(!o){r=void 0;let l=e.getTranslate()+g*(h.sensitivity??1);const c=e.isBeginning,u=e.isEnd;if(l>=e.minTranslate()&&(l=e.minTranslate()),l<=e.maxTranslate()&&(l=e.maxTranslate()),e.setTransition(0),e.setTranslate(l),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),w?.sticky){clearTimeout(s),s=void 0,d.length>=15&&d.shift();const n=d.length?d[d.length-1]:void 0,i=d[0];if(d.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))d.splice(0);else if(d.length>=15&&i&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=g>0?.8:.2;r=t,d.splice(0),s=a(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}s||(s=a(()=>{!e.destroyed&&e.params&&(r=t,d.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}o||i("scroll",n);const p=e.params.autoplay;if(e.params.autoplay&&p?.disableOnInteraction&&e.autoplay.stop(),h.releaseOnEdges&&(l===e.minTranslate()||l===e.maxTranslate()))return!0}}else{const n={time:l(),delta:Math.abs(g),direction:Math.sign(g),raw:t};d.length>=2&&d.shift();const i=d.length?d[d.length-1]:void 0;if(d.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&f(n):f(n),function(t){const n=u();if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.cancelable&&n.preventDefault(),!1}function g(t){const n=u();let i=e.el;"container"!==n.eventsTarget&&(i=document.querySelector(n.eventsTarget)),i[t]("mouseenter",h),i[t]("mouseleave",p),i[t]("wheel",m)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):!e.mousewheel.enabled&&(g("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener("wheel",m),!0):!!e.mousewheel.enabled&&(g("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{const t=u();!t.enabled&&e.params.cssMode&&b(),t.enabled&&v()}),e.mousewheel={enabled:!1,enable:v,disable:b},n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&b()})};function ae(e,t,n,i){const s=n??{},r=t??{};return e.params.createElements&&Object.keys(i).forEach(t=>{if(!s[t]&&!0===s.auto){let n=p(e.el,`.${i[t]}`)[0];n||(n=f("div",i[t]),n.className=i[t],e.el.append(n)),s[t]=n,r[t]=n}}),s}const le='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>',ce=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.navigation}function r(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const i=s();w(t).forEach(t=>{t&&(t.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function d(){e.params.navigation=ae(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const t=s();if(!t.nextEl&&!t.prevEl)return;const n=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i});const o=w(n),a=w(i),d=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");_(e,le);const t=e.querySelector("svg");t&&n.appendChild(t),e.remove()}n.addEventListener("click","next"===i?c:l)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};o.forEach(e=>d(e,"next")),a.forEach(e=>d(e,"prev"))}function u(){const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=w(n),o=w(i),a=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.disabledClass.split(" "))};r.forEach(e=>a(e,"next")),o.forEach(e=>a(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:le},n("init",()=>{!1===s().enabled?h():(d(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=w(n),o=w(i);e.enabled?a():[...r,...o].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n("click",(t,n)=>{const r=s(),{nextEl:o,prevEl:a}=e.navigation,l=w(o),c=w(a),d=n.target;let u=c.includes(d)||l.includes(d);if(e.isElement&&!u){const e=n.composedPath?n.composedPath():[];e.length&&(u=e.find(e=>l.includes(e)||c.includes(e)))}if(r.hideOnClick&&!u){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===d||e.pagination.el.contains(d)))return;let t;l.length?t=l[0].classList.contains(r.hiddenClass):c.length&&(t=c[0].classList.contains(r.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...l,...c].filter(e=>!!e).forEach(e=>e.classList.toggle(r.hiddenClass))}});const h=()=>{const t=s();e.el.classList.add(...t.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{const t=s();e.el.classList.remove(...t.navigationDisabledClass.split(" ")),d(),a()},disable:h,update:a,init:d,destroy:u})};function de(e=""){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const ue=e=>!!e.virtual&&!!e.params.virtual?.enabled,he=({swiper:e,extendParams:t,on:n,emit:i})=>{const s="swiper-pagination";let r;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let o=0;function a(){return e.params.pagination}function l(){return!a().el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(e,t){const{bulletActiveClass:n}=a();if(!e)return;let i=e[("prev"===t?"previous":"next")+"ElementSibling"];i&&(i.classList.add(`${n}-${t}`),i=i[("prev"===t?"previous":"next")+"ElementSibling"],i&&i.classList.add(`${n}-${t}-${t}`))}function d(t){const n=t.target.closest(de(a().bulletClass));if(!n)return;t.preventDefault();const i=(v(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===i)return;const t=(s=e.realIndex,r=i,(r%=o=e.slides.length)===1+(s%=o)?"next":r===s-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i);var s,r,o}function u(){const t=e.rtl,n=a();if(l())return;const s=w(e.pagination.el);let d,u;const h=ue(e)?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(h/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,d=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):void 0!==e.snapIndex?(d=e.snapIndex,u=e.previousSnapIndex):(u=e.previousIndex||0,d=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a=0,l=0,h=0;if(n.dynamicBullets){r=y(i[0],e.isHorizontal()?"width":"height");const t=e.isHorizontal()?"width":"height";s.forEach(e=>{e.style[t]=(r??0)*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==u&&(o+=d-(u||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),a=Math.max(d-o,0),l=a+(Math.min(i.length,n.dynamicMainBullets)-1),h=(l+a)/2}if(i.forEach(e=>{const t=["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):[e]);e.classList.remove(...t)}),s.length>1)i.forEach(t=>{const i=v(t);i===d?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&void 0!==i&&(i>=a&&i<=l&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===a&&c(t,"prev"),i===l&&c(t,"next"))});else{const t=i[d];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===d?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[a],t=i[l];for(let e=a;e<=l;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const s=Math.min(i.length,n.dynamicMainBullets+4),o=((r??0)*s-(r??0))/2-h*(r??0),a=t?"right":"left",l=e.isHorizontal()?a:"top";i.forEach(e=>{e.style[l]=`${o}px`})}}s.forEach((t,s)=>{if("fraction"===n.type&&(t.querySelectorAll(de(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(d+1))}),t.querySelectorAll(de(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(d+1)/p;let r=1,o=1;"horizontal"===i?r=s:o=s,t.querySelectorAll(de(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(_(t,n.renderCustom(e,d+1,p)),0===s&&i("paginationRender",t)):(0===s&&i("paginationRender",t),i("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function h(){const t=a();if(l())return;const n=e.params.grid,s=ue(e)?e.virtual.slides.length:e.grid&&n?.rows&&n.rows>1?e.slides.length/Math.ceil(n.rows):e.slides.length,r=w(e.pagination.el);let o="";if("bullets"===t.type){let n=e.params.loop?Math.ceil(s/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&(e=>!!e.params.freeMode?.enabled)(e)&&n>s&&(n=s);for(let i=0;i<n;i+=1)t.renderBullet?o+=t.renderBullet.call(e,i,t.bulletClass):o+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],r.forEach(n=>{"custom"!==t.type&&_(n,o||""),"bullets"===t.type&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(de(t.bulletClass))))}),"custom"!==t.type&&i("paginationRender",r[0])}function p(){e.params.pagination=ae(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=a();if(!t.el)return;let n;if("string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&(!Array.isArray(n)||0!==n.length)){if(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){const t=n.find(t=>b(t,".swiper")[0]===e.el);t&&(n=t)}Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),w(n).forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",d),e.enabled||n.classList.add(t.lockClass)})}}function f(){const t=a();if(l())return;const n=e.pagination.el;n&&w(n).forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",d))}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=a();w(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===a().enabled?m():(p(),h(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{h(),u()}),n("destroy",()=>{f()}),n("enable disable",()=>{const{el:t}=e.pagination;if(t){const n=a();w(t).forEach(t=>t.classList[e.enabled?"remove":"add"](n.lockClass))}}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const s=n.target,r=w(e.pagination.el),o=a();if(o.el&&o.hideOnClick&&r&&r.length>0&&!s.classList.contains(o.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=r[0].classList.contains(o.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.forEach(e=>e.classList.toggle(o.hiddenClass))}});const m=()=>{const t=a();e.el.classList.add(t.paginationDisabledClass);const{el:n}=e.pagination;n&&w(n).forEach(e=>e.classList.add(t.paginationDisabledClass)),f()};Object.assign(e.pagination,{enable:()=>{const t=a();e.el.classList.remove(t.paginationDisabledClass);const{el:n}=e.pagination;n&&w(n).forEach(e=>e.classList.remove(t.paginationDisabledClass)),p(),h(),u()},disable:m,render:h,update:u,init:p,destroy:f})},pe=({swiper:e,extendParams:t,on:n,emit:i})=>{let s=!1,r=null,l=null,c=0,d=0,u=0,h=0;function p(){return e.params.scrollbar}function g(){const t=p();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n,rtlTranslate:i}=e,{dragEl:s,el:o}=n,a=e.params.loop?e.progressLoop??0:e.progress;let l=d,c=(u-d)*a;i?(c=-c,c>0?(l=d-c,c=0):-c+d>u&&(l=u+c)):c<0?(l=d+c,c=0):c+d>u&&(l=u-c),e.isHorizontal()?(s.style.transform=`translate3d(${c}px, 0, 0)`,s.style.width=`${l}px`):(s.style.transform=`translate3d(0px, ${c}px, 0)`,s.style.height=`${l}px`),t.hide&&(r&&clearTimeout(r),o.style.opacity="1",r=setTimeout(()=>{o.style.opacity="0",o.style.transitionDuration="400ms"},1e3))}function v(){const t=p();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n}=e,{dragEl:i,el:s}=n;i.style.width="",i.style.height="",u=e.isHorizontal()?s.offsetWidth:s.offsetHeight,h=e.size/(e.virtualSize+(e.params.slidesOffsetBefore??0)-(e.params.centeredSlides?e.snapGrid[0]:0)),d="auto"===t.dragSize?u*h:parseInt(String(t.dragSize),10),e.isHorizontal()?i.style.width=`${d}px`:i.style.height=`${d}px`,s.style.display=h>=1?"none":"",t.hide&&(s.style.opacity="0"),e.params.watchOverflow&&e.enabled&&n.el.classList[e.isLocked?"add":"remove"](t.lockClass)}function b(t){return e.isHorizontal()?t.clientX??t.touches?.[0]?.clientX??0:t.clientY??t.touches?.[0]?.clientY??0}function y(t){const{scrollbar:n,rtlTranslate:i}=e,{el:s}=n;let r;r=(b(t)-m(s)[e.isHorizontal()?"left":"top"]-(null!==c?c:d/2))/(u-d),r=Math.max(Math.min(r,1),0),i&&(r=1-r);const o=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(o),e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}function _(t){const n=p(),{scrollbar:r,wrapperEl:o}=e,{el:a,dragEl:d}=r;s=!0,c=t.target===d?b(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.style.transitionDuration="100ms",d.style.transitionDuration="100ms",y(t),l&&clearTimeout(l),a.style.transitionDuration="0ms",n.hide&&(a.style.opacity="1"),e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="none"),i("scrollbarDragStart",t)}function S(t){const{scrollbar:n,wrapperEl:r}=e,{el:o,dragEl:a}=n;s&&(t.cancelable&&t.preventDefault(),y(t),r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",a.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function E(t){const n=p(),{scrollbar:r,wrapperEl:o}=e,{el:c}=r;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="",o.style.transitionDuration=""),n.hide&&(l&&clearTimeout(l),l=a(()=>{c.style.opacity="0",c.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function x(t){const{scrollbar:n,params:i}=e,s=n.el;if(!s)return;const r=!!i.passiveListeners&&{passive:!1,capture:!1},o=!!i.passiveListeners&&{passive:!0,capture:!1},a="on"===t?"addEventListener":"removeEventListener";s[a]("pointerdown",_,r),document[a]("pointermove",S,r),document[a]("pointerup",E,o)}function C(){const{scrollbar:t,el:n}=e;e.params.scrollbar=ae(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=p();if(!i.el)return;let s;if(s="string"==typeof i.el&&e.isElement?e.el.querySelector(i.el):i.el,s||"string"!=typeof i.el)s||(s=i.el);else if(s=document.querySelectorAll(i.el),!s.length)return;e.params.uniqueNavElements&&"string"==typeof i.el&&s.length>1&&1===n.querySelectorAll(i.el).length&&(s=n.querySelector(i.el)),s.length>0&&(s=s[0]);const r=s;r.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass);let a=null;r&&(a=r.querySelector(de(i.dragClass)),a||(a=f("div",i.dragClass),r.append(a))),Object.assign(t,{el:r,dragEl:a}),i.draggable&&p().el&&e.scrollbar.el&&x("on"),r&&r.classList[e.enabled?"remove":"add"](...o(i.lockClass))}function T(){const t=p(),n=e.scrollbar.el;n&&n.classList.remove(...o(e.isHorizontal()?t.horizontalClass:t.verticalClass)),p().el&&e.scrollbar.el&&x("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null},n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const t=p();w(e.scrollbar.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===p().enabled?A():(C(),v(),g())}),n("update resize observerUpdate lock unlock changeDirection",()=>{v()}),n("setTranslate",()=>{g()}),n("setTransition",(t,n)=>{!function(t){p().el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(n)}),n("enable disable",()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](...o(p().lockClass))}),n("destroy",()=>{T()});const A=()=>{const t=p();e.el.classList.add(...o(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...o(t.scrollbarDisabledClass)),T()};Object.assign(e.scrollbar,{enable:()=>{const t=p();e.el.classList.remove(...o(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...o(t.scrollbarDisabledClass)),C(),v(),g()},disable:A,updateSize:v,setTranslate:g,init:C,destroy:T})},fe=({swiper:e,extendParams:t,on:n})=>{t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,s=null,r=!1,o=(new Date).getTime();function a(){return e.params.a11y}function l(e){s&&e&&_(s,e)}function c(e){w(e).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){w(e).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){w(e).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){w(e).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){w(e).forEach(e=>{e.setAttribute("aria-label",t)})}function m(e){w(e).forEach(e=>{e.setAttribute("aria-disabled","true")})}function g(e){w(e).forEach(e=>{e.removeAttribute("aria-disabled")})}function b(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=a(),i=e.params.pagination,s=t.target;if(!e.pagination||!e.pagination.el||s!==e.pagination.el&&!e.pagination.el.contains(s)||s.matches(de(i?.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=w(e.navigation.prevEl);w(e.navigation.nextEl).includes(s)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),t.includes(s)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}e.pagination&&s.matches(de(i?.bulletClass))&&s.click()}}function y(){return!!(e.pagination&&e.pagination.bullets&&e.pagination.bullets.length)}function S(){const t=e.params.pagination;return y()&&!!t?.clickable}const E=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",b)),p(e,n)},x=t=>{i&&i!==t.target&&!i.contains(t.target)&&(r=!0),e.a11y.clicked=!0},C=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},T=e=>{o=(new Date).getTime()},A=t=>{const n=a();if(e.a11y.clicked||!n.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const s=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!s||!e.slides.includes(s))return;i=s;const l=(e=>!!e.virtual&&!!e.params.virtual?.enabled)(e),c=(l?parseInt(s.getAttribute("data-swiper-slide-index")||"0",10):e.slides.indexOf(s))===e.activeIndex,d=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(s);if(c||d)return;const u=t.sourceCapabilities;u&&u.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):l?e.slideTo(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(s)),0),r=!1)}))},k=()=>{const t=a();t.itemRoleDescriptionMessage&&h(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length,i=t.slideLabelMessage;i&&e.slides.forEach((t,s)=>{const r=e.params.loop?parseInt(t.getAttribute("data-swiper-slide-index")||"0",10):s;p(t,i.replace(/\{\{index\}\}/,String(r+1)).replace(/\{\{slidesLength\}\}/,String(n)))})};n("beforeInit",()=>{s=f("span",a().notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{a().enabled&&(()=>{const t=a();s&&e.el.append(s);const n=e.el;t.containerRoleDescriptionMessage&&h(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const i=e.wrapperEl,r=String(t.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`);var o,l,c;if(o=r,w(i).forEach(e=>{e.setAttribute("id",o)}),t.wrapperLiveRegion){const t=e.params.autoplay;l=i,c=e.params.autoplay&&t?.enabled?"off":"polite",w(l).forEach(e=>{e.setAttribute("aria-live",c)})}k();const d=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},f=w(d.nextEl),m=w(d.prevEl);f&&f.forEach(e=>E(e,0,t.nextSlideMessage)),m&&m.forEach(e=>E(e,0,t.prevSlideMessage)),S()&&w(e.pagination.el).forEach(e=>{e.addEventListener("keydown",b)}),document.addEventListener("visibilitychange",T),e.el.addEventListener("focus",A,!0),e.el.addEventListener("pointerdown",x,!0),e.el.addEventListener("pointerup",C,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{a().enabled&&k()}),n("fromEdge toEdge afterInit lock unlock",()=>{a().enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(m(n),d(n)):(g(n),c(n))),t&&(e.isEnd?(m(t),d(t)):(g(t),c(t)))}()}),n("paginationUpdate",()=>{a().enabled&&function(){const t=a();if(!y())return;const n=e.params.pagination;e.pagination.bullets.forEach(e=>{n.clickable&&(c(e),n.renderBullet||(u(e,"button"),p(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,String((v(e)??0)+1))))),e.matches(de(n.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),n("destroy",()=>{a().enabled&&function(){s&&s.remove();const t=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},n=w(t.nextEl),i=w(t.prevEl);n&&n.forEach(e=>e.removeEventListener("keydown",b)),i&&i.forEach(e=>e.removeEventListener("keydown",b)),S()&&w(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",b)}),document.removeEventListener("visibilitychange",T),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",A,!0),e.el.removeEventListener("pointerdown",x,!0),e.el.removeEventListener("pointerup",C,!0))}()})},me=({swiper:e,extendParams:t,on:n,emit:i,params:s})=>{function r(){return e.params.autoplay}e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});const o="object"==typeof s.autoplay&&s.autoplay&&"number"==typeof s.autoplay.delay?s.autoplay.delay:3e3;let a,l,c,d=o,u=o,h=0,p=(new Date).getTime(),f=!1,m=!1,g=!1,v=!1,b=!1;function y(t){if(!e||e.destroyed||!e.wrapperEl)return;if(t.target!==e.wrapperEl)return;e.wrapperEl.removeEventListener("transitionend",y);const n=t.detail;b||n&&n.bySwiperTouchMove||T()}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=h,f=!1);const t=e.autoplay.paused?h:p+u-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/d),l=requestAnimationFrame(()=>{w()})},_=()=>{let t=r().delay;const n=(()=>{let t;const n=!!e.params.virtual?.enabled;if(t=e.virtual&&n?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;const i=t.getAttribute("data-swiper-autoplay");return null!=i?parseInt(i,10):void 0})();return"number"==typeof n&&!Number.isNaN(n)&&n>0&&(t=n),t},S=t=>{if(e.destroyed||!e.autoplay.running)return 0;void 0!==l&&cancelAnimationFrame(l),w();let n=t;void 0===n&&(n=_(),d=n,u=n),h=n;const s=e.params.speed,o=()=>{if(!e||e.destroyed)return;const t=r();t.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(e.slides.length-1,s,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(0,s,!0,!0),i("autoplay")),e.params.cssMode&&(p=(new Date).getTime(),requestAnimationFrame(()=>{S()}))};return n>0?(void 0!==a&&clearTimeout(a),a=setTimeout(()=>{o()},n)):requestAnimationFrame(()=>{o()}),n},E=()=>(p=(new Date).getTime(),e.autoplay.running=!0,S(),i("autoplayStart"),!0),x=()=>(e.autoplay.running=!1,void 0!==a&&clearTimeout(a),void 0!==l&&cancelAnimationFrame(l),i("autoplayStop"),!0),C=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;void 0!==a&&clearTimeout(a),t||(v=!0);const s=()=>{i("autoplayPause"),r().waitForTransition?e.wrapperEl.addEventListener("transitionend",y):T()};if(e.autoplay.paused=!0,n)return void s();const o=h||r().delay;h=o-((new Date).getTime()-p),e.isEnd&&h<0&&!e.params.loop||(h<0&&(h=0),s())},T=()=>{e.isEnd&&h<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=(new Date).getTime(),v?(v=!1,S(h)):S(),e.autoplay.paused=!1,i("autoplayResume"))},A=()=>{!e.destroyed&&e.autoplay.running&&("hidden"===document.visibilityState&&(v=!0,C(!0)),"visible"===document.visibilityState&&T())},k=t=>{"mouse"===t.pointerType&&(v=!0,b=!0,e.animating||e.autoplay.paused||C(!0))},O=t=>{"mouse"===t.pointerType&&(b=!1,e.autoplay.paused&&T())};n("init",()=>{r().enabled&&(r().pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",O)),document.addEventListener("visibilitychange",A),E())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",O)),document.removeEventListener("visibilitychange",A),e.autoplay.running&&x()}),n("_freeModeStaticRelease",()=>{(g||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{r().disableOnInteraction?x():C(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!r().disableOnInteraction?C(!0,!0):x())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(r().disableOnInteraction?x():(m=!0,g=!1,v=!1,c=setTimeout(()=>{v=!0,g=!0,C(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&m){if(void 0!==c&&clearTimeout(c),void 0!==a&&clearTimeout(a),r().disableOnInteraction)return g=!1,void(m=!1);g&&e.params.cssMode&&T(),g=!1,m=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(h=_(),d=_())}),Object.assign(e.autoplay,{start:E,stop:x,pause:C,resume:T})};function ge({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:s="hidden",displayValue:r="block"}){if("timeout"===n&&"number"!=typeof i)return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const o=t=>{t.target===e&&(a(),e.removeEventListener("transitionend",o))},a=()=>{"display"===s?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",o),this.timeout&&clearTimeout(this.timeout),"display"===s?e.style.display=r:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",o):"timeout"===n?this.timeout=setTimeout(()=>{a()},i):a(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,s=[...e.classList].includes(t);return n||i||!s},timeout:null}}var ve="top",be="bottom",ye="right",we="left",_e="auto",Se=[ve,be,ye,we],Ee="start",xe="end",Ce="viewport",Te="popper",Ae=Se.reduce(function(e,t){return e.concat([t+"-"+Ee,t+"-"+xe])},[]),ke=[].concat(Se,[_e]).reduce(function(e,t){return e.concat([t,t+"-"+Ee,t+"-"+xe])},[]),Oe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Le(e){return e?(e.nodeName||"").toLowerCase():null}function De(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Me(e){return e instanceof De(e).Element||e instanceof Element}function Pe(e){return e instanceof De(e).HTMLElement||e instanceof HTMLElement}function Ie(e){return"undefined"!=typeof ShadowRoot&&(e instanceof De(e).ShadowRoot||e instanceof ShadowRoot)}var Ne={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];Pe(s)&&Le(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Pe(i)&&Le(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function Re(e){return e.split("-")[0]}var ze=Math.max,He=Math.min,Be=Math.round;function Fe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $e(){return!/^((?!chrome|android).)*safari/i.test(Fe())}function Ve(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&Pe(e)&&(s=e.offsetWidth>0&&Be(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Be(i.height)/e.offsetHeight||1);var o=(Me(e)?De(e):window).visualViewport,a=!$e()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/s,c=(i.top+(a&&o?o.offsetTop:0))/r,d=i.width/s,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function je(e){var t=Ve(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function qe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ie(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function We(e){return De(e).getComputedStyle(e)}function Ue(e){return["table","td","th"].indexOf(Le(e))>=0}function Ge(e){return((Me(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ye(e){return"html"===Le(e)?e:e.assignedSlot||e.parentNode||(Ie(e)?e.host:null)||Ge(e)}function Xe(e){return Pe(e)&&"fixed"!==We(e).position?e.offsetParent:null}function Ke(e){for(var t=De(e),n=Xe(e);n&&Ue(n)&&"static"===We(n).position;)n=Xe(n);return n&&("html"===Le(n)||"body"===Le(n)&&"static"===We(n).position)?t:n||function(e){var t=/firefox/i.test(Fe());if(/Trident/i.test(Fe())&&Pe(e)&&"fixed"===We(e).position)return null;var n=Ye(e);for(Ie(n)&&(n=n.host);Pe(n)&&["html","body"].indexOf(Le(n))<0;){var i=We(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Je(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qe(e,t,n){return ze(e,He(t,n))}function Ze(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function et(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var tt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Re(n.placement),l=Je(a),c=[we,ye].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return Ze("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:et(e,Se))}(s.padding,n),u=je(r),h="y"===l?ve:we,p="y"===l?be:ye,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],g=Ke(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,y=d[h],w=v-u[c]-d[p],_=v/2-u[c]/2+b,S=Qe(y,_,w),E=l;n.modifiersData[i]=((t={})[E]=S,t.centerOffset=S-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&qe(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nt(e){return e.split("-")[1]}var it={top:"auto",right:"auto",bottom:"auto",left:"auto"};function st(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,m=void 0===f?0:f,g="function"==typeof d?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=we,w=ve,_=window;if(c){var S=Ke(n),E="clientHeight",x="clientWidth";S===De(n)&&"static"!==We(S=Ge(n)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),(s===ve||(s===we||s===ye)&&r===xe)&&(w=be,m-=(u&&S===_&&_.visualViewport?_.visualViewport.height:S[E])-i.height,m*=l?1:-1),s!==we&&(s!==ve&&s!==be||r!==xe)||(y=ye,p-=(u&&S===_&&_.visualViewport?_.visualViewport.width:S[x])-i.width,p*=l?1:-1)}var C,T=Object.assign({position:a},c&&it),A=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Be(n*s)/s||0,y:Be(i*s)/s||0}}({x:p,y:m},De(n)):{x:p,y:m};return p=A.x,m=A.y,l?Object.assign({},T,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},T,((t={})[w]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var rt={passive:!0},ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,l=De(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,rt)}),a&&l.addEventListener("resize",n.update,rt),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,rt)}),a&&l.removeEventListener("resize",n.update,rt)}},data:{}},at={left:"right",right:"left",bottom:"top",top:"bottom"};function lt(e){return e.replace(/left|right|bottom|top/g,function(e){return at[e]})}var ct={start:"end",end:"start"};function dt(e){return e.replace(/start|end/g,function(e){return ct[e]})}function ut(e){var t=De(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ht(e){return Ve(Ge(e)).left+ut(e).scrollLeft}function pt(e){var t=We(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function ft(e){return["html","body","#document"].indexOf(Le(e))>=0?e.ownerDocument.body:Pe(e)&&pt(e)?e:ft(Ye(e))}function mt(e,t){var n;void 0===t&&(t=[]);var i=ft(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=De(i),o=s?[r].concat(r.visualViewport||[],pt(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(mt(Ye(o)))}function gt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vt(e,t,n){return t===Ce?gt(function(e,t){var n=De(e),i=Ge(e),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=$e();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+ht(e),y:l}}(e,n)):Me(t)?function(e,t){var n=Ve(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):gt(function(e){var t,n=Ge(e),i=ut(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=ze(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ze(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+ht(e),l=-i.scrollTop;return"rtl"===We(s||n).direction&&(a+=ze(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(Ge(e)))}function bt(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?Re(s):null,o=s?nt(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case ve:t={x:a,y:n.y-i.height};break;case be:t={x:a,y:n.y+n.height};break;case ye:t={x:n.x+n.width,y:l};break;case we:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?Je(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case Ee:t[c]=t[c]-(n[d]/2-i[d]/2);break;case xe:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function yt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,o=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?Ce:c,u=n.elementContext,h=void 0===u?Te:u,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=Ze("number"!=typeof g?g:et(g,Se)),b=h===Te?"reference":Te,y=e.rects.popper,w=e.elements[f?b:h],_=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=mt(Ye(e)),n=["absolute","fixed"].indexOf(We(e).position)>=0&&Pe(e)?Ke(e):e;return Me(n)?t.filter(function(e){return Me(e)&&qe(e,n)&&"body"!==Le(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(t,n){var s=vt(e,n,i);return t.top=ze(s.top,t.top),t.right=He(s.right,t.right),t.bottom=He(s.bottom,t.bottom),t.left=ze(s.left,t.left),t},vt(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Me(w)?w:w.contextElement||Ge(e.elements.popper),l,d,o),S=Ve(e.elements.reference),E=bt({reference:S,element:y,placement:s}),x=gt(Object.assign({},y,E)),C=h===Te?x:S,T={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},A=e.modifiersData.offset;if(h===Te&&A){var k=A[s];Object.keys(T).forEach(function(e){var t=[ye,be].indexOf(e)>=0?1:-1,n=[ve,be].indexOf(e)>=0?"y":"x";T[e]+=k[n]*t})}return T}function wt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ke:l,d=nt(i),u=d?a?Ae:Ae.filter(function(e){return nt(e)===d}):Se,h=u.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=u);var p=h.reduce(function(t,n){return t[n]=yt(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[Re(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var _t={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Re(g),b=l||(v!==g&&f?function(e){if(Re(e)===_e)return[];var t=lt(e);return[dt(e),t,dt(t)]}(g):[lt(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat(Re(n)===_e?wt(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,_=t.rects.popper,S=new Map,E=!0,x=y[0],C=0;C<y.length;C++){var T=y[C],A=Re(T),k=nt(T)===Ee,O=[ve,be].indexOf(A)>=0,L=O?"width":"height",D=yt(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),M=O?k?ye:we:k?be:ve;w[L]>_[L]&&(M=lt(M));var P=lt(M),I=[];if(r&&I.push(D[A]<=0),a&&I.push(D[M]<=0,D[P]<=0),I.every(function(e){return e})){x=T,E=!1;break}S.set(T,I)}if(E)for(var N=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},R=f?3:1;R>0&&"break"!==N(R);R--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function St(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Et(e){return[ve,ye,be,we].some(function(t){return e[t]>=0})}var xt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=yt(t,{elementContext:"reference"}),a=yt(t,{altBoundary:!0}),l=St(o,i),c=St(a,s,r),d=Et(l),u=Et(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},Ct={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,o=ke.reduce(function(e,n){return e[n]=function(e,t,n){var i=Re(e),s=[we,ve].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[we,ye].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,r),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},Tt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=bt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=yt(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=Re(t.placement),b=nt(t.placement),y=!b,w=Je(v),_="x"===w?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(r){var O,L="y"===w?ve:we,D="y"===w?be:ye,M="y"===w?"height":"width",P=S[w],I=P+g[L],N=P-g[D],R=p?-x[M]/2:0,z=b===Ee?E[M]:x[M],H=b===Ee?-x[M]:-E[M],B=t.elements.arrow,F=p&&B?je(B):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=$[L],j=$[D],q=Qe(0,E[M],F[M]),W=y?E[M]/2-R-q-V-T.mainAxis:z-q-V-T.mainAxis,U=y?-E[M]/2+R+q+j+T.mainAxis:H+q+j+T.mainAxis,G=t.elements.arrow&&Ke(t.elements.arrow),Y=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,X=null!=(O=null==A?void 0:A[w])?O:0,K=P+U-X,J=Qe(p?He(I,P+W-X-Y):I,P,p?ze(N,K):N);S[w]=J,k[w]=J-P}if(a){var Q,Z="x"===w?ve:we,ee="x"===w?be:ye,te=S[_],ne="y"===_?"height":"width",ie=te+g[Z],se=te-g[ee],re=-1!==[ve,we].indexOf(v),oe=null!=(Q=null==A?void 0:A[_])?Q:0,ae=re?ie:te-E[ne]-x[ne]-oe+T.altAxis,le=re?te+E[ne]+x[ne]-oe-T.altAxis:se,ce=p&&re?function(e,t,n){var i=Qe(e,t,n);return i>n?n:i}(ae,te,le):Qe(p?ae:ie,te,p?le:se);S[_]=ce,k[_]=ce-te}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function kt(e,t,n){void 0===n&&(n=!1);var i,s,r=Pe(t),o=Pe(t)&&function(e){var t=e.getBoundingClientRect(),n=Be(t.width)/e.offsetWidth||1,i=Be(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Ge(t),l=Ve(e,o,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==Le(t)||pt(a))&&(c=(i=t)!==De(i)&&Pe(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ut(i)),Pe(t)?((d=Ve(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=ht(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Ot(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var Lt={placement:"bottom",modifiers:[],strategy:"absolute"};function Dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Mt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?Lt:s;return function(e,t,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lt,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:Me(e)?mt(e):e.contextElement?mt(e.contextElement):[],popper:mt(t)};var o,c,h=function(e){var t=Ot(e);return Oe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((o=[].concat(i,a.options.modifiers),c=o.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=h.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:a,name:t,instance:d,options:i});l.push(r||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Dt(t,n)){a.rects={reference:kt(t,Ke(n),"fixed"===a.options.strategy),popper:je(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],r=s.fn,o=s.options,l=void 0===o?{}:o,u=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(s())})})),o}),destroy:function(){u(),c=!0}};if(!Dt(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var Pt=Mt({defaultModifiers:[ot,Tt,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:Re(t.placement),variation:nt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ne,Ct,_t,At,tt,xt]});function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nt,Rt={exports:{}},zt=(Nt||(Nt=1,Rt.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function s(e){return"number"==typeof e&&isFinite(e)}function r(e,n,i,r,o,a,l,c,d,u,h,p){var f,m,g,v,b,y=p,w="",_="";return a&&(p=a(p)),!!s(p)&&(!1!==e&&0===parseFloat(p.toFixed(e))&&(p=0),p<0&&(f=!0,p=Math.abs(p)),!1!==e&&(b=e,v=(v=p).toString().split("e"),p=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+b:b)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-b:-b))).toFixed(b)),-1!==(p=p.toString()).indexOf(".")?(g=(m=p.split("."))[0],i&&(w=i+m[1])):g=p,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),f&&c&&(_+=c),r&&(_+=r),f&&d&&(_+=d),_+=g,_+=w,o&&(_+=o),u&&(_=u(_,y)),_)}function o(e,t,i,r,o,a,l,c,d,u,h,p){var f,m="";return h&&(p=h(p)),!(!p||"string"!=typeof p)&&(c&&n(p,c)&&(p=p.replace(c,""),f=!0),r&&n(p,r)&&(p=p.replace(r,"")),d&&n(p,d)&&(p=p.replace(d,""),f=!0),o&&function(e,t){return e.slice(-1*t.length)===t}(p,o)&&(p=p.slice(0,-1*o.length)),t&&(p=p.split(t).join("")),i&&(p=p.replace(i,".")),f&&(m+="-"),""!==(m=(m+=p).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!s(m)&&m))}function a(t,n,i){var s,r=[];for(s=0;s<e.length;s+=1)r.push(t[e[s]]);return r.push(i),n.apply("",r)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,s,r,o={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(r=t[s=e[n]]))"negative"!==s||o.negativeBefore?"mark"===s&&"."!==o.thousand?o[s]=".":o[s]=!1:o[s]="-";else if("decimals"===s){if(!(r>=0&&r<8))throw new Error(s);o[s]=r}else if("encoder"===s||"decoder"===s||"edit"===s||"undo"===s){if("function"!=typeof r)throw new Error(s);o[s]=r}else{if("string"!=typeof r)throw new Error(s);o[s]=r}return i(o,"mark","thousand"),i(o,"prefix","negative"),i(o,"prefix","negativeBefore"),o}(n),this.to=function(e){return a(n,r,e)},this.from=function(e){return a(n,o,e)})}}()),Rt.exports),Ht=It(zt);function Bt(e){return e.charAt(0).toLowerCase()+e.slice(1)}const Ft={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:({placement:e})=>e.includes("start")?[-10,0]:e.includes("end")?[10,0]:[0,0]}}]}};class $t{element;config;instance;trigger;rootContainer;transitioner;isOpen=!1;ignoreNextBlur=!1;constructor(e,t){return this.element=e,this.config={...Ft,...t},this.config.popperOptions={...Ft.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...Ft.popperOptions.modifiers,...t?.popperOptions?.modifiers||[]],this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onDialogMouseDown=this.onDialogMouseDown.bind(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.element.ODS_Tooltip=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}wrapLastWordAndButton(){if(!this.element.hasAttribute("data-tooltip-keep-with-text"))return;const e=this.trigger.previousSibling;if(!e||e.nodeType!==Node.TEXT_NODE)return;const t=(e.textContent?.trim()||"").split(" "),n=t.pop(),i=t.join(" ");e.textContent=i+" ";const s=document.createElement("span");s.className="text-nowrap",s.innerHTML=`${n} ${this.trigger.outerHTML}`,this.trigger.parentNode?.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}init(){this.trigger=document.querySelector(`[data-tooltip-trigger][aria-describedby=${this.element.getAttribute("id")}]`),this.trigger,this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer&&this.rootContainer.appendChild(this.element);const e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=Pt(this.trigger,this.element,this.config.popperOptions),this.transitioner=ge({element:this.element,visibleClass:"is-visible"}),this.element.addEventListener("mousedown",this.onDialogMouseDown),this.trigger.addEventListener("click",this.handleVisibility),this.trigger.addEventListener("keydown",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}onDialogMouseDown(){this.ignoreNextBlur=!0}onDocumentClick(e){const t=e.target;t&&(this.trigger.contains(t)||this.element.contains(t)||this.hide())}handleVisibility(e){if("click"!==e.type)if("keydown"!==e.type){if("blur"===e.type){if(this.ignoreNextBlur)return void(this.ignoreNextBlur=!1);this.hide()}}else this.onKeydown(e);else this.toggle()}onKeydown(e){if(("Enter"===e.key||" "===e.key)&&"BUTTON"!==this.trigger.tagName)return e.preventDefault(),void this.toggle();t.ESC.includes(e.key)&&this.hide()}toggle(){this.isOpen?this.hide():this.show()}show(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.isOpen=!0,this.instance.forceUpdate(),document.addEventListener("click",this.onDocumentClick)}hide(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),this.isOpen=!1,document.removeEventListener("click",this.onDocumentClick)}update(){this.instance.forceUpdate()}destroy(){this.element.removeEventListener("mousedown",this.onDialogMouseDown),this.trigger.removeEventListener("click",this.handleVisibility),this.trigger.removeEventListener("keydown",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),document.removeEventListener("click",this.onDocumentClick),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}const Vt="carousel",jt=`${Vt}__viewport-wrapper`,qt=`${Vt}__track`,Wt=`${Vt}__slide`,Ut=`${Vt}__pagination-item`,Gt="is-active",Yt=`${Vt}--bleed-right`,Xt=`.${Vt}__viewport`,Kt=`.${qt}`,Jt=`.${Vt}__prev`,Qt=`.${Vt}__next`,Zt=`.${Vt}__pagination`,en=`.${Vt}__scrollbar`,tn=`.${Gt}`,nn={navigation:{nextEl:Qt,prevEl:Jt},pagination:{el:Zt,clickable:!0,bulletClass:Ut,bulletActiveClass:Gt,renderBullet:(e,t)=>`<button aria-label="Page ${e+1}" role="tab" class="${t}" type="button"></button>`},scrollbar:{el:en,draggable:!0,enabled:!0,horizontalClass:`${Vt}__scrollbar-horizontal`,dragClass:`${Vt}__scrollbar-drag`,hide:!1},slidesPerView:1.2,spaceBetween:20,mousewheel:{forceToAxis:!0,sensitivity:1},a11y:{enabled:!0,scrollOnFocus:!1,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},loop:!1,cssMode:!1,direction:"horizontal",breakpoints:{1240:{slidesPerView:1.6}},wrapperClass:qt,slideClass:Wt,slideActiveClass:Gt,slideNextClass:`${Vt}__slide-next`,slidePrevClass:`${Vt}__slide-prev`};class sn{element;config;viewport;track;instance;carouselId;isScrollbarDragging=!1;externalControlsState=null;resizeObserver;resizeRafId;boundWindowResizeHandler;bleedResizeHandler;static OVERFLOW_EPSILON_PX=1;getViewportWrapper(){return this.element.querySelector(`.${jt}`)}getSlidesPerView(){return Number(this.instance?.params?.slidesPerView)||1}setScrollbarVisible(e){const t=this.element.querySelector(en);t&&(t.style.display=e?"":"none")}getSlidesContentWidth(){if(!this.instance)return this.track?.scrollWidth||0;const e=Array.from(this.instance.slides),t=e.reduce((e,t)=>e+t.offsetWidth,0),n=Number(this.instance.params?.spaceBetween)||0,i=t+Math.max(e.length-1,0)*n;return t<=0||i<=0?this.track?.scrollWidth||0:i}getOverflowWidth(e){const t=this.element.classList.contains(Yt)?this.element.clientWidth||e?.clientWidth||0:this.viewport?.clientWidth||0;return t<=0?0:this.getSlidesContentWidth()-t}hasScrollableContent(e){if(!this.instance||!this.instance.params)return!1;const t=this.getOverflowWidth(e);return 0!==t?t>sn.OVERFLOW_EPSILON_PX:this.instance.slides.length>this.getSlidesPerView()}constructor(e,t){return this.element=e,this.config={...nn,...t,scrollbar:{...nn.scrollbar??{},...t?.scrollbar??{},el:this.element.querySelector(en)}},this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(()=>{this.init()}),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions();const e=this.element.classList.contains(Yt);this.instance=new ne(this.viewport,{...this.config,watchOverflow:!e&&this.config.watchOverflow,enabled:!1,modules:[ce,he,pe,fe,re,oe],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:()=>{this.updateExternalControlsState()},scrollbarDragStart:()=>{this.isScrollbarDragging=!0},scrollbarDragEnd:()=>{this.isScrollbarDragging=!1,this.updateExternalControlsState(!0)}}}),this.updateCarouselEnabledState(),this.element.classList.contains(Yt)&&(this.adjustConfigForBleedRight(),this.fixBleedRightScrollbar()),this.syncScrollbar(),this.instance&&"function"==typeof this.instance.on&&this.instance.on("resize",()=>{this.updateCarouselEnabledState()}),this.observeVisibilityChanges(),window.addEventListener("resize",this.boundWindowResizeHandler),this.initExternalControls(),requestAnimationFrame(()=>{this.instance&&this.instance.update()})}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.bleedResizeHandler?.(),this.updateExternalControlsState(),this.instance.scrollbar?.updateSize()))})}syncScrollbar(){requestAnimationFrame(()=>{this.instance?.scrollbar&&this.instance.scrollbar.updateSize()})}observeVisibilityChanges(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(()=>{this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.instance.scrollbar?.updateSize()))}),this.resizeObserver.observe(this.viewport))}fixBleedRightScrollbar(){const e=()=>{const e=this.getViewportWrapper(),t=this.instance?.scrollbar,n=this.instance;if(!(e&&t&&t.dragEl&&n))return;if(!this.hasScrollableContent(e))return void this.setScrollbarVisible(!1);this.setScrollbarVisible(!0);const i=t.el.offsetWidth,s=this.instance?.width||this.element.clientWidth||e.clientWidth,r=this.getSlidesContentWidth(),o="function"==typeof n.minTranslate?n.minTranslate():0,a="function"==typeof n.maxTranslate?n.maxTranslate():0,l=Math.max(Math.abs(a-o),0),c=Math.max(r,s+l),d=(c>0?Math.min(s/c,1):1)*i,u=Math.max(d,30);t.dragEl.style.width=`${u}px`,t.dragEl.style.display="";const h=Math.min(Math.max(n.progress||0,0),1)*Math.max(i-u,0);t.dragEl.style.transform=`translate3d(${h}px, 0, 0)`};requestAnimationFrame(()=>{requestAnimationFrame(e)}),this.instance.on("progress",e),this.instance.on("slideChange",e),this.instance.on("resize",e),this.instance.on("update",e),this.instance.on("setTranslate",e)}getElements(){this.viewport=this.element.querySelector(Xt),this.track=this.viewport.querySelector(Kt);const e=this.element.querySelector(Zt);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={navigation:{...this.config.navigation??{},nextEl:this.element.querySelector(Qt),prevEl:this.element.querySelector(Jt)},pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:Ut,bulletActiveClass:Gt}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}updateCarouselEnabledState(){if(!this.instance||!this.instance.params)return;const e=this.getViewportWrapper();this.hasScrollableContent(e||void 0)?this.instance.enable():this.instance.disable(),this.setScrollbarVisible(this.instance.enabled)}applyBleedInsets(e){if(!this.instance||!this.instance.params)return;const t=this.element.clientWidth||e.clientWidth||0,n=document.documentElement?.clientWidth||window.innerWidth||0,i=e.getBoundingClientRect(),s=this.element.getBoundingClientRect(),r=s.left>0?s.left:i.left,o=Math.max(Math.floor(r),0),a=Math.max(Math.floor(n),t,0),l=-o,c=Math.max(a-o,t,0),d=this.getSlidesContentWidth(),u=d-t,h=this.getSlidesPerView(),p=this.instance.slides.length,f=!(d>0?u>sn.OVERFLOW_EPSILON_PX:p>h),m=!f,g=f?"100%":`${c}px`,v=f?"0px":`${o}px`,b=f?"100%":`${a}px`,y=f?"0px":`${l}px`,w=this.element.classList.contains(Yt)!==m||this.instance.params.width!==(f?void 0:t)||this.element.style.getPropertyValue("--carousel-bleed-viewport-width")!==g||this.element.style.getPropertyValue("--carousel-bleed-margin-left")!==v||this.element.style.getPropertyValue("--carousel-bleed-shell-width")!==b||this.element.style.getPropertyValue("--carousel-bleed-shell-margin-left")!==y;this.element.classList.toggle(Yt,m);const _=f?void 0:t;this.instance.params.width=_,this.instance.originalParams&&(this.instance.originalParams.width=_),this.instance.params.slidesOffsetBefore=0,this.instance.params.slidesOffsetAfter=0,this.element.style.setProperty("--carousel-bleed-viewport-width",g),this.element.style.setProperty("--carousel-bleed-margin-left",v),this.element.style.setProperty("--carousel-bleed-shell-width",b),this.element.style.setProperty("--carousel-bleed-shell-margin-left",y),w&&this.instance.update(),this.updateCarouselEnabledState()}adjustConfigForBleedRight(){requestAnimationFrame(()=>{if(!this.instance)return;const e=this.getViewportWrapper();if(!e)return;const t=()=>{this.applyBleedInsets(e)};this.bleedResizeHandler=t,t(),this.instance.on("resize",t)})}handleSlideChange(){const e=this.track.querySelector(tn),t=this.track.querySelectorAll(`.${Wt}:not(${tn})`);e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t),this.updateExternalControlsState()}updateTooltipPosition(e){const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=$t.getInstance(n);i&&i.update()})}hideAllTooltips(e){e.forEach(e=>{const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=$t.getInstance(n);i&&(i.hide(),e.blur())})})}initExternalControls(){const e=this.element.dataset.carouselId||this.element.id;e&&(this.carouselId=e,document.querySelectorAll(`[data-carousel-controls="${e}"]`).forEach(e=>{const t=e;if(t.hasAttribute("data-carousel-initialized"))return;t._carouselClickHandler&&t.removeEventListener("click",t._carouselClickHandler);const n=t.dataset.carouselAction,i=e=>{e.preventDefault(),t.hasAttribute("disabled")||("next"===n?this.slideNext():"prev"===n&&this.slidePrev())};"next"!==n&&"prev"!==n||(t.addEventListener("click",i),t.setAttribute("aria-label","next"===n?("object"==typeof this.config.a11y?this.config.a11y?.nextSlideMessage:void 0)||"Nasledujúci snímok":("object"==typeof this.config.a11y?this.config.a11y?.prevSlideMessage:void 0)||"Predchádzajúci snímok"),t.setAttribute("type","button"),t._carouselClickHandler=i),t.setAttribute("data-carousel-initialized","true")}),this.updateExternalControlsState())}updateExternalControlsState(e=!1){if(!this.carouselId||!this.instance)return;if(!this.instance.params)return;if(this.isScrollbarDragging&&!e)return;const t=!this.instance.enabled,n=t||this.instance.isBeginning,i=t||this.instance.isEnd;this.externalControlsState={isAtStart:n,isAtEnd:i},this.applyExternalControlsState(this.externalControlsState)}applyExternalControlsState(e){const{isAtStart:t,isAtEnd:n}=e,i=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="prev"]`),s=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="next"]`);i.forEach(e=>{const n=e;t?(n.setAttribute("disabled",""),n.setAttribute("aria-disabled","true"),n.style.cursor="not-allowed"):(n.removeAttribute("disabled"),n.setAttribute("aria-disabled","false"),n.style.cursor="pointer")}),s.forEach(e=>{const t=e;n?(t.setAttribute("disabled",""),t.setAttribute("aria-disabled","true"),t.style.cursor="not-allowed"):(t.removeAttribute("disabled"),t.setAttribute("aria-disabled","false"),t.style.cursor="pointer")})}slideNext(){this.instance&&this.instance.slideNext()}slidePrev(){this.instance&&this.instance.slidePrev()}getActiveIndex(){return this.instance?this.instance.activeIndex:0}onSlideChange(e){this.instance&&this.instance.on("slideChange",()=>{e(this.instance.activeIndex)})}destroy(){this.carouselId&&document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"]`).forEach(e=>{const t=e;t._carouselClickHandler&&(t.removeEventListener("click",t._carouselClickHandler),delete t._carouselClickHandler),t.removeAttribute("data-carousel-initialized")}),window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.bleedResizeHandler&&(this.instance.off("resize",this.bleedResizeHandler),this.bleedResizeHandler=void 0),this.instance&&this.instance.destroy(),this.isScrollbarDragging=!1,this.externalControlsState=null,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.element.ODS_Carousel===this&&delete this.element.ODS_Carousel}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}static getInstanceById(e){const t=document.querySelector(`[data-carousel-id="${e}"]`)||document.getElementById(e);return t?this.getInstance(t):null}}const rn="carousel-hero",on=`${rn}__slide`,an=`${rn}__pagination-item`,ln=`${rn}__pagination-svg`,cn=`${rn}__pagination-circle`,dn="is-active",un="is-playing",hn="is-paused",pn=`.${rn}__viewport`,fn=`.${rn}__prev`,mn=`.${rn}__next`,gn=`.${rn}__play-pause`,vn=`.${rn}__tabs`,bn=`.${rn}__tab`,yn=`.${rn}__pagination`,wn={pagination:{clickable:!0,bulletClass:an,bulletActiveClass:"is-active",renderBullet:function(e,t){return`<button type="button" class="${t}" aria-label="Prejsť na snímok ${e+1}"></button>`}},slidesPerView:1,loop:!1,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",containerMessage:"Hero carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},wrapperClass:`${rn}__track`,slideClass:on,slideActiveClass:dn},_n="carousel-promotions",Sn=`${_n}__pagination-item`,En=`${_n}__pagination-svg`,xn=`${_n}__pagination-circle`,Cn=`${_n}--slide-inverted`,Tn="is-autoplay",An="is-active",kn=`.${_n}__viewport`,On=`.${_n}__pagination`,Ln={pagination:{el:On,clickable:!0,bulletClass:Sn,bulletActiveClass:An,renderBullet:(e,t)=>`<button aria-label="Stránka ${e+1}" role="tab" class="${t}" type="button"></button>`},slidesPerView:1,loop:!0,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},cssMode:!1,direction:"horizontal",wrapperClass:`${_n}__track`,slideClass:`${_n}__slide`,slideActiveClass:An,autoplay:!1};class Dn{element;config;viewport;instance;interval=0;autoplayTimer;resizeRafId;boundWindowResizeHandler;boundPaginationClickHandler;constructor(e,t){return this.element=e,this.config={...Ln,...t},this.interval=0,this.handleSlideChange=this.handleSlideChange.bind(this),this.scrollToNextSlide=this.scrollToNextSlide.bind(this),this.autoplayAnimationEnd=this.autoplayAnimationEnd.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.boundPaginationClickHandler=this.handlePaginationClick.bind(this),this.element.ODS_CarouselPromotions=this,this.init(),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));const e=this.isIntervalValid();e?(this.element.classList.add(Tn),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new ne(this.viewport,{...this.config,modules:[ce,he,fe,re,me],on:{slideChange:this.handleSlideChange,init:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()},update:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}}});const t=this.element.querySelector(On);t&&e&&(t.addEventListener("animationend",this.autoplayAnimationEnd),t.addEventListener("click",this.boundPaginationClickHandler)),window.addEventListener("resize",this.boundWindowResizeHandler)}handlePaginationClick(){this.stopAutoplay()}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()))})}stopAutoplay(){this.interval=0,this.element.classList.remove(Tn),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}handleSlideChange(){this.element.classList.remove(Cn),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(Cn)}autoplayAnimationEnd(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}get isAutoplayEnabled(){return this.interval>0}isIntervalValid(){const e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}scrollToNextSlide(){if(!this.instance||!this.instance.slides)return;const e=this.instance.slides.length;if(e<=0)return;const t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}getElements(){this.viewport=this.element.querySelector(kn);const e=this.element.querySelector(On);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:Sn,bulletActiveClass:An}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}fixPaginationButtonType(){Array.from(this.element.querySelectorAll(`${On} > *`)).forEach(e=>e.setAttribute("type","button"))}static createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",En),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);const n=document.createElementNS(e,"circle");return n.setAttribute("class",xn),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}renderSvgDotsForAnimation(){const e=Array.from(this.element.querySelectorAll(`${On} > *`)),t=Dn.createSvgDot();t.querySelector("circle").style.animationDuration=`${this.interval}ms`,e.forEach(e=>{e.innerHTML="",e.appendChild(t.cloneNode(!0))})}destroy(){window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0);const e=this.element.querySelector(On);e&&(e.removeEventListener("animationend",this.autoplayAnimationEnd),e.removeEventListener("click",this.boundPaginationClickHandler)),this.instance&&this.instance.destroy(),this.element.ODS_CarouselPromotions===this&&delete this.element.ODS_CarouselPromotions}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}}const Mn={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},Pn="toggleTrigger",In={activeClass:"is-active",settingsAttr:"data-toggle"};class Nn{constructor(e,t){return this.element=e,this.config={...In,...t},this.settings=[],this.targets=[],this.hasClickOutside=!1,this.handleClick=this.handleClick.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.element.ODS_Toggle=this,this.init(),this}doToggle(e){const{dispatchEvent:t=!0}=e,{element:n,attribute:i,value:s,action:r}=e,o={...e},a={trigger:this.element,element:n};let l=i,c=n,d=s;"icon"===l&&(l="xlink:href",c=n.querySelector("use")),"text"===l&&(c=n.querySelector("[data-toggle-text-target]")||n),void 0===d&&(d=!1);const u=Rn({element:c,attribute:l,action:r,value:d,dispatchEvent:t,eventDetail:a});return null!==u&&(o.value=u),o}init(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),this.element.addEventListener("click",this.handleClick),this.hasClickOutside&&document.addEventListener("click",this.handleClickOutside),this.targets}handleClick(){this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(Pn,{bubbles:!0}))}handleClickOutside(e){const t=e.target;this.element.contains(t)||this.targets.some(e=>e.element.contains(t))||this.targets.some(e=>"class"===e.attribute&&"string"==typeof e.value?e.element.classList.contains(e.value):"hidden"===e.attribute&&!e.element.hasAttribute("hidden"))&&(this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(Pn,{bubbles:!0})))}destroy(){this.element.removeEventListener("click",this.handleClick),this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside),this.settings=[],this.targets=[],this.hasClickOutside=!1}update(){this.removeNonExistentTargets(),this.addNewTargets();const e=this.hasClickOutside;this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),!e&&this.hasClickOutside?document.addEventListener("click",this.handleClickOutside):e&&!this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside)}static getTargetElementsFromString({target:e,trigger:t}){const n=e.trim();return"self"===n?[t]:"parent"===n?[t.parentNode]:"previous"===n?[t.previousElementSibling]:"next"===n?[t.nextElementSibling]:"string"==typeof n?Array.from(document.querySelectorAll(n)):[]}parseSettings(){const e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls");let n=[];try{e&&(n=JSON.parse(e))}catch(e){}return t&&(n=[...this.element.getAttribute("aria-expanded")?[{target:"self",attribute:"aria-expanded"}]:[],{target:t.split(" ").map(e=>`#${e}`).join(","),attribute:"hidden"},...Array.isArray(n)?n:[]]),n}setupTargets(){const e=this.element;return this.settings.reduce((t,n)=>n&&n.target?[...t,...n.target.split(",").reduce((t,i)=>[...t,...Nn.getTargetElementsFromString({target:i,trigger:e}).map(e=>({...n,element:e}))],[])]:t,[])}removeNonExistentTargets(){this.targets=this.targets.filter(e=>document.contains(e.element))}addNewTargets(){const e=this.setupTargets().filter(e=>!this.targets.find(t=>t.element===e.element&&t.action===e.action));this.targets=[...this.targets,...e]}static getInstance(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}function Rn(e){const{element:t,attribute:n,action:i,value:s,dispatchEvent:r=!0,eventDetail:o}=e;let a=null;if(!(t&&t instanceof Element))return a;if("focus"===i&&setTimeout(()=>t.focus(),20),"click"===i&&t.click(),"class"===n&&"string"==typeof s&&(t.classList.toggle(s),a=s),"text"===n){const e=t.textContent;t.textContent=s?.toString()||"",a=e}return"class"!==n&&"text"!==n&&void 0===i&&(a=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):s?t.setAttribute(n,String(s)):t.setAttribute(n,String(!("true"===a)))),r&&t.dispatchEvent(new CustomEvent("toggle",{detail:o,bubbles:!0})),a}const zn={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]"},Hn={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tClearButton:()=>"Vymazať text",tAssistiveHint:()=>"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."},Bn=(e,t)=>{const n=e.split(/\s+/).filter(Boolean);return n.includes(t)?e:[...n,t].join(" ")};var Fn,$n,Vn,jn,qn,Wn,Un,Gn,Yn,Xn,Kn={},Jn=[],Qn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Zn(e,t){for(var n in t)e[n]=t[n];return e}function ei(e){var t=e.parentNode;t&&t.removeChild(e)}function ti(e,t,n){var i,s,r,o={};for(r in t)"key"==r?i=t[r]:"ref"==r?s=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?Fn.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===o[r]&&(o[r]=e.defaultProps[r]);return ni(e,o,i,s,null)}function ni(e,t,n,i,s){var r={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++Vn:s};return null==s&&null!=$n.vnode&&$n.vnode(r),r}function ii(e){return e.children}function si(e,t){this.props=e,this.context=t}function ri(e,t){if(null==t)return e.__?ri(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?ri(e):null}function oi(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return oi(e)}}function ai(e){(!e.__d&&(e.__d=!0)&&jn.push(e)&&!li.__r++||Wn!==$n.debounceRendering)&&((Wn=$n.debounceRendering)||qn)(li)}function li(){for(var e;li.__r=jn.length;)e=jn.sort(function(e,t){return e.__v.__b-t.__v.__b}),jn=[],e.some(function(e){var t,n,i,s,r,o;e.__d&&(r=(s=(t=e).__v).__e,(o=t.__P)&&(n=[],(i=Zn({},s)).__v=s.__v+1,vi(o,s,i,t.__n,void 0!==o.ownerSVGElement,null!=s.__h?[r]:null,n,null==r?ri(s):r,s.__h),bi(n,s),s.__e!=r&&oi(s)))})}function ci(e,t,n,i,s,r,o,a,l,c){var d,u,h,p,f,m,g,v=i&&i.__k||Jn,b=v.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?ni(null,p,null,null,p):Array.isArray(p)?ni(ii,{children:p},null,null,null):p.__b>0?ni(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=v[d])||h&&p.key==h.key&&p.type===h.type)v[d]=void 0;else for(u=0;u<b;u++){if((h=v[u])&&p.key==h.key&&p.type===h.type){v[u]=void 0;break}h=null}vi(e,p,h=h||Kn,s,r,o,a,l,c),f=p.__e,(u=p.ref)&&h.ref!=u&&(g||(g=[]),h.ref&&g.push(h.ref,null,p),g.push(u,p.__c||f,p)),null!=f?(null==m&&(m=f),"function"==typeof p.type&&p.__k===h.__k?p.__d=l=di(p,l,e):l=hi(e,p,h,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=ri(h))}for(n.__e=m,d=b;d--;)null!=v[d]&&("function"==typeof n.type&&null!=v[d].__e&&v[d].__e==n.__d&&(n.__d=ri(i,d+1)),wi(v[d],v[d]));if(g)for(d=0;d<g.length;d++)yi(g[d],g[++d],g[++d])}function di(e,t,n){for(var i,s=e.__k,r=0;s&&r<s.length;r++)(i=s[r])&&(i.__=e,t="function"==typeof i.type?di(i,t,n):hi(n,i,i,s,i.__e,t));return t}function ui(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){ui(e,t)}):t.push(e)),t}function hi(e,t,n,i,s,r){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||s!=r||null==s.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(s),o=null;else{for(a=r,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==s)break e;e.insertBefore(s,r),o=r}return void 0!==o?o:s.nextSibling}function pi(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||Qn.test(t)?n:n+"px"}function fi(e,t,n,i,s){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||pi(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||pi(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i||e.addEventListener(t,r?gi:mi,r):e.removeEventListener(t,r?gi:mi,r);else if("dangerouslySetInnerHTML"!==t){if(s)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function mi(e){this.l[e.type+!1]($n.event?$n.event(e):e)}function gi(e){this.l[e.type+!0]($n.event?$n.event(e):e)}function vi(e,t,n,i,s,r,o,a,l){var c,d,u,h,p,f,m,g,v,b,y,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,r=[a]),(c=$n.__b)&&c(t);try{e:if("function"==typeof w){if(g=t.props,v=(c=w.contextType)&&i[c.__c],b=c?v?v.props.value:c.__:i,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(g,b):(t.__c=d=new si(g,b),d.constructor=w,d.render=_i),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=b,d.__n=i,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=w.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Zn({},d.__s)),Zn(d.__s,w.getDerivedStateFromProps(g,d.__s))),h=d.props,p=d.state,u)null==w.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==w.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,b)||t.__v===n.__v){d.props=g,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,p,f)})}d.context=b,d.props=g,d.state=d.__s,(c=$n.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=Zn(Zn({},i),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(f=d.getSnapshotBeforeUpdate(h,p)),y=null!=c&&c.type===ii&&null==c.key?c.props.children:c,ci(e,Array.isArray(y)?y:[y],t,n,i,s,r,o,a,l),d.base=t.__e,t.__h=null,d.__h.length&&o.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,s,r,o,a){var l,c,d,u=n.props,h=t.props,p=t.type,f=0;if("svg"===p&&(s=!0),null!=r)for(;f<r.length;f++)if((l=r[f])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){e=l,r[f]=null;break}if(null==e){if(null===p)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),r=null,a=!1}if(null===p)u===h||a&&e.data===h||(e.data=h);else{if(r=r&&Fn.call(e.childNodes),c=(u=n.props||Kn).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(null!=r)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,i,s){var r;for(r in n)"children"===r||"key"===r||r in t||fi(e,r,null,n[r],i);for(r in t)s&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||fi(e,r,t[r],n[r],i)}(e,h,u,s,a),d)t.__k=[];else if(f=t.props.children,ci(e,Array.isArray(f)?f:[f],t,n,i,s&&"foreignObject"!==p,r,o,r?r[0]:n.__k&&ri(n,0),a),null!=r)for(f=r.length;f--;)null!=r[f]&&ei(r[f]);a||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===p&&!f||"option"===p&&f!==u.value)&&fi(e,"value",f,u.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&fi(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,s,r,o,l);(c=$n.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=r)&&(t.__e=a,t.__h=!!l,r[r.indexOf(a)]=null),$n.__e(e,t,n)}}function bi(e,t){$n.__c&&$n.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){$n.__e(e,t.__v)}})}function yi(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){$n.__e(e,n)}}function wi(e,t,n){var i,s;if($n.unmount&&$n.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||yi(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){$n.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&wi(i[s],t,"function"!=typeof e.type);n||null==e.__e||ei(e.__e),e.__e=e.__d=void 0}function _i(e,t,n){return this.constructor(e,n)}function Si(e,t,n){var i,s;$n.__&&$n.__(e,t),i=t.__k,s=[],vi(t,e=t.__k=ti(ii,null,[e]),i||Kn,Kn,void 0!==t.ownerSVGElement,i?null:t.firstChild?Fn.call(t.childNodes):null,s,i?i.__e:t.firstChild,!1),bi(s,e)}Fn=Jn.slice,$n={__e:function(e,t){for(var n,i,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},Vn=0,si.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Zn({},this.state),"function"==typeof e&&(e=e(Zn({},n),this.props)),e&&Zn(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),ai(this))},si.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ai(this))},si.prototype.render=ii,jn=[],qn="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,li.__r=0,Un=0;var Ei=0,xi=[],Ci=$n.__b,Ti=$n.__r,Ai=$n.diffed,ki=$n.__c,Oi=$n.unmount;function Li(e,t){$n.__h&&$n.__h(Yn,e,Ei||t),Ei=0;var n=Yn.__H||(Yn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Di(e){return Ei=1,function(e,t){var n=Li(Gn++,2);return n.t=e,n.__c||(n.__=[Fi(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=Yn),n.__}(Fi,e)}function Mi(e,t){var n=Li(Gn++,3);!$n.__s&&Bi(n.__H,t)&&(n.__=e,n.__H=t,Yn.__H.__h.push(n))}function Pi(e){return Ei=5,function(e,t){var n=Li(Gn++,7);return Bi(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function Ii(e){var t=Yn.context[e.__c],n=Li(Gn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Yn)),t.props.value):e.__}function Ni(){for(var e;e=xi.shift();)if(e.__P)try{e.__H.__h.forEach(zi),e.__H.__h.forEach(Hi),e.__H.__h=[]}catch(t){e.__H.__h=[],$n.__e(t,e.__v)}}$n.__b=function(e){Yn=null,Ci&&Ci(e)},$n.__r=function(e){Ti&&Ti(e),Gn=0;var t=(Yn=e.__c).__H;t&&(t.__h.forEach(zi),t.__h.forEach(Hi),t.__h=[])},$n.diffed=function(e){Ai&&Ai(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==xi.push(t)&&Xn===$n.requestAnimationFrame||((Xn=$n.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),Ri&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Ri&&(t=requestAnimationFrame(n))})(Ni)),Yn=null},$n.__c=function(e,t){t.some(function(e){try{e.__h.forEach(zi),e.__h=e.__h.filter(function(e){return!e.__||Hi(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],$n.__e(n,e.__v)}}),ki&&ki(e,t)},$n.unmount=function(e){Oi&&Oi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{zi(e)}catch(e){t=e}}),t&&$n.__e(t,n.__v))};var Ri="function"==typeof requestAnimationFrame;function zi(e){var t=Yn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Yn=t}function Hi(e){var t=Yn;e.__c=e.__(),Yn=t}function Bi(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Fi(e,t){return"function"==typeof t?t(e):t}function $i(e,t){for(var n in t)e[n]=t[n];return e}function Vi(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function ji(e){this.props=e}(ji.prototype=new si).isPureReactComponent=!0,ji.prototype.shouldComponentUpdate=function(e,t){return Vi(this.props,e)||Vi(this.state,t)};var qi=$n.__b;$n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),qi&&qi(e)};var Wi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ui(e){function t(t,n){var i=$i({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Wi,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Gi=$n.__e;$n.__e=function(e,t,n){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Gi(e,t,n)};var Yi=$n.unmount;function Xi(){this.__u=0,this.t=null,this.__b=null}function Ki(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Ji(){this.u=null,this.o=null}$n.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Yi&&Yi(e)},(Xi.prototype=new si).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var s=Ki(i.__v),r=!1,o=function(){r||(r=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(o,o)},Xi.prototype.componentWillUnmount=function(){this.t=[]},Xi.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=$i({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var s=t.__e&&ti(ii,null,e.fallback);return s&&(s.__h=null),[ti(ii,null,t.__e?null:e.children),s]};var Qi=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Ji.prototype=new si).__e=function(e){var t=this,n=Ki(t.__v),i=t.o.get(e);return i[0]++,function(s){var r=function(){t.props.revealOrder?(i.push(s),Qi(t,e,i)):s()};n?n(r):r()}},Ji.prototype.render=function(e){this.u=null,this.o=new Map;var t=ui(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ji.prototype.componentDidUpdate=Ji.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Qi(e,n,t)})};var Zi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,es=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ts="undefined"!=typeof document,ns=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};si.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(si.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var is=$n.event;function ss(){}function rs(){return this.cancelBubble}function os(){return this.defaultPrevented}$n.event=function(e){return is&&(e=is(e)),e.persist=ss,e.isPropagationStopped=rs,e.isDefaultPrevented=os,e.nativeEvent=e};var as={configurable:!0,get:function(){return this.class}},ls=$n.vnode;$n.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var s=-1===t.indexOf("-");for(var r in i={},n){var o=n[r];ts&&"children"===r&&"noscript"===t||"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!ns(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():s&&es.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=ui(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=ui(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(as.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",as))}e.$$typeof=Zi,ls&&ls(e)};var cs=$n.__r;$n.__r=function(e){cs&&cs(e),e.__c};var ds={wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination",nextMonthButton:"daypickr__button--pagination-next",prevMonthButton:"daypickr__button--pagination-prev",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",closeButton:"daypickr__button--close",toggleButton:"daypickr__button--toggle"};function us(...e){return e.join(" ").trim()}var hs={prevMonth:"previous month",nextMonth:"next month",month:"Month",year:"Year",weekdays:[{name:"Sunday",shortname:"Su"},{name:"Monday",shortname:"Mo"},{name:"Tuesday",shortname:"Tu"},{name:"Wednesday",shortname:"We"},{name:"Thursday",shortname:"Th"},{name:"Friday",shortname:"Fr"},{name:"Saturday",shortname:"Sa"}],months:["January","February","March","April","May","June","July","August","September","October","November","December"],openButton:"Choose date",closeButton:"Close"};function ps(e){return e instanceof Date&&!isNaN(e.valueOf())}function fs(e,t=1){const n=new Date(e),i=e.getDay(),s=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-s))}function ms(e,t=1){const n=new Date(e),i=n.getDay(),s=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+s))}function gs(e,t){return!(!ps(e)||!ps(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function vs(e,t){const n=new Date(e).setMonth(t),i=new Date(e.getFullYear(),t+1,0).getTime();return n>i?new Date(i):new Date(n)}var bs,ys,ws=(ys={__c:bs="__cC"+Un++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[bs]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(ai)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=ys.Consumer.contextType=ys,_s=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:s,setView:r,handleKeyboardNavigation:o,focusedRef:a,view:l,disabledDayFn:c,locale:d}=Ii(ws),u=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),h=function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(function(e,t){const n=new Date(e);n.setDate(1);const i=new Date(e);return i.setMonth(e.getMonth()+1,0),function(e,t){const n=[];let i=e;for(;i.getTime()<t.getTime();)n.push(new Date(i)),i=new Date(i.setDate(i.getDate()+1));return n.push(new Date(i)),n}(fs(n,t),ms(i,t))}(l,e));return ti("table",{className:t.table},ti("thead",null,ti("tr",{className:t.tableHeaderRow},u.map(e=>ti("th",{scope:"col",className:t.tableHeaderCell},ti("span",{className:t.srOnly},e.name),ti("span",{"aria-hidden":"true"},e.shortname))))),ti("tbody",null,h.map(e=>ti("tr",{className:t.tableRow},e.map(e=>{const n=i&&gs(e,i),u=gs(e,l),h=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),p=(f=e,gs(new Date,f)?t.isToday:void 0);var f;const m=n?t.isSelected:void 0,g=[t.dayButton,p,m],v=u?"0":"-1",b=e.toLocaleDateString(d),y=u?a:void 0;return ti("td",{role:"gridcell",className:t.tableCell},ti("button",{className:g.join(" "),type:"button",onClick:()=>{h||(s(e),r(e))},tabindex:v,onKeyUp:o,ref:y,"aria-disabled":h,"aria-label":b,"aria-selected":n},ti("span",{className:t.srOnly},b),ti("span",{"aria-hidden":"true"},e.getDate())))})))))},Ss=Ui(({label:e,value:t,options:n,onChange:i,className:s,elemRef:r,...o},a)=>{const{classes:l}=Ii(ws);return ti("label",null,ti("span",{className:"sr-only"},e),ti("select",{className:us(l.select,s),onChange:e=>i(e),ref:a,...o},n?.map(e=>ti("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),Es=Ss;function xs(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var Cs=Ui((e,t)=>{const{l10n:n,min:i,max:s,view:r,setView:o,classes:a}=Ii(ws),l=new Date(i).getFullYear(),c=new Date(s).getFullYear();return ti(Es,{label:n.year,options:xs(l,c),value:r.getFullYear(),className:a.yearSelect,onChange:e=>{const t=new Date(r);t.setFullYear(parseInt(e.target.value,10)),o(t)},ref:t,...e})}),Ts=Cs,As=()=>{const{l10n:e,view:t,setView:n,classes:i}=Ii(ws);return ti(Es,{label:e.month,value:t.getMonth(),className:i.monthSelect,options:e.months?.map((e,t)=>({value:t,text:e})),onChange:e=>{const i=new Date(t);i.setMonth(parseInt(e.target.value,10)),n(i)}})},ks=({min:e="1900-01-01",max:t="2100-12-31",classes:n=ds,l10n:i=hs,selectedDay:s,firstDayOfWeek:r=1,locale:o={},disabledDayFn:a=()=>{},onSelect:l=()=>{},formatDate:c=e=>function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e),parseDate:d=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:u,name:h,id:p})=>{const[f,m]=Di(s?new Date(s):new Date),[g,v]=Di(s?new Date(s):void 0),[b,y]=Di(!1),w=Pi(!0),_=Pi(),S=Pi(),E=Pi(),x=Pi(),C=Pi(),T=Pi();var A,k,O;Mi(()=>{l(g),y(!1)},[g]),Mi(()=>{const e=e=>{"Tab"===e.key&&b&&(e.shiftKey||document.activeElement!==T.current||(e.preventDefault(),x.current.focus()),!e.shiftKey||document.activeElement!==x.current&&document.activeElement!==C.current||(e.preventDefault(),T.current.focus()))},t=e=>{"Escape"===e.key&&b&&y(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[b,T.current,x.current]),Mi(()=>{const e=e=>{!C.current.contains(e.target)&&b&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[b,C.current]),A=()=>{b?C.current.focus():document.activeElement===_.current||w.current?w.current=!1:E.current.focus()},k=[b,x.current,E.current,_.current],O=Li(Gn++,4),!$n.__s&&Bi(O.__H,k)&&(O.__=A,O.__H=k,Yn.__h.push(O));const L=e=>vs(e,e.getMonth()-1),D=e=>vs(e,e.getMonth()+1),M=()=>{y(!b)},P=({type:e,children:t,...n})=>ti(e,n,t&&t.length&&t.map(e=>P(e)));return ti(ws.Provider,{value:{firstDayOfWeek:r,classes:n,l10n:i,min:e,max:t,view:f,setView:m,selected:g,setSelected:v,handleKeyboardNavigation:e=>{let t=new Date(f);const n={ArrowLeft:()=>{t.setDate(f.getDate()-1)},ArrowRight:()=>{t.setDate(f.getDate()+1)},ArrowUp:()=>{t.setDate(f.getDate()-7)},ArrowDown:()=>{t.setDate(f.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(f.getFullYear()-1):t=L(f)},PageDown:()=>{e.shiftKey?t.setFullYear(f.getFullYear()+1):t=D(f)},Home:()=>{t=fs(f,r)},End:()=>{t=ms(f,r)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{S.current.focus()},0))},focusedRef:S,disabledDayFn:a,locale:o}},ti("input",{id:`${p}-input`,type:"text",className:n.input,value:g&&g.toLocaleDateString(o),onChange:e=>(e=>{""===e.target.value&&v(void 0);const t=d(e.target.value);if(t)return m(t),v(t)})(e),ref:_}),ti("input",{type:"hidden",id:`${p}-value`,value:c(g),name:h}),ti("button",{type:"button","aria-controls":`${p}-dialog`,onClick:()=>M(),"aria-expanded":b,ref:E,className:n.toggleButton},u&&P(u),u?ti("span",{class:n.srOnly},i.openButton):i.openButton),ti("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:C,tabIndex:"-1"},ti("div",{className:"daypickr__content"},ti("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(o,{month:"long",year:"numeric"})),ti("div",{className:n.header},ti("div",{className:n.yearMonthWrapper},ti(Ts,{ref:x}),ti(As,null)),ti("div",{className:n.pagination},ti("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(L(f))}},i.prevMonth),ti("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(D(f))}},i.nextMonth))),ti(_s,null),ti("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>M(),ref:T},i.closeButton))))},Os=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const s=({type:e,children:t,...n})=>ti(e,n,t&&t.length&&t.map(e=>s(e)));return ti(ws.Provider,{value:{classes:t,l10n:n}},ti("input",{type:"text",disabled:!0,className:t.input}),ti("button",{type:"button",className:t.toggleButton,disabled:!0},e&&s(e),e?ti("span",{class:t.srOnly},n.openButton):n.openButton))};const Ls={locale:"sk",classes:{wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",selectDisplay:"daypickr__select-display",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination ",nextMonthButton:"daypickr__button--pagination-next btn btn--ghost btn--square btn--small",prevMonthButton:"daypickr__button--pagination-prev btn btn--ghost btn--square btn--small",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",input:"form-group__item text-input",closeButton:"daypickr__button--close btn mb-none",toggleButton:"form-group__item btn btn--square"},firstDayOfWeek:1,l10n:{prevMonth:"predchádzajúci mesiac",nextMonth:"nasledujúci mesiac",month:"Mesiac",year:"Rok",weekdays:[{name:"Nedeľa",shortname:"Ne"},{name:"Pondelok",shortname:"Po"},{name:"Utorok",shortname:"Ut"},{name:"Streda",shortname:"St"},{name:"Štvrtok",shortname:"Št"},{name:"Piatok",shortname:"Pi"},{name:"Sobota",shortname:"So"}],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],openButton:"Vyberte dátum",closeButton:"Zatvoriť"},parseDate:e=>{const t=e.match(/(\d{1,2})\. ?(\d{1,2})\. ?(\d{4})/);return!!t&&new Date(Number(t[3]),Number(t[2])-1,Number(t[1]))},calendarIcon:{type:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",className:"icon icon--medium",children:[{type:"path",d:"M800 175H700v-37.5a37.5 37.5 0 0 0-75 0V175H350v-37.5a37.5 37.5 0 0 0-75 0V175H100v625a75 75 0 0 0 75 75h700V250a75 75 0 0 0-75-75zM300 825H187.4a37.5 37.5 0 0 1-37.5-37.6V700H300v125zm0-150H150V550h150v125zm0-150H150V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zm225 562.4H325V700h150v125zm0-149.9H325V550h150v125zm0-150H325V400h150v125zm175 300H500V700h150v125zm0-150H500V550h150v125zm0-150H500V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zM825 675H675V550h150v125zm0-150H675V400h112.5a37.5 37.5 0 0 1 37.5 37.4V525z","fill-rule":"evenodd"}]}};function Ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Ms(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,s,r,o,a=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(i=r.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw s}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ds(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ds(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ps=Object.entries,Is=Object.setPrototypeOf,Ns=Object.isFrozen,Rs=Object.getPrototypeOf,zs=Object.getOwnPropertyDescriptor;let Hs=Object.freeze,Bs=Object.seal,Fs=Object.create,$s="undefined"!=typeof Reflect&&Reflect,Vs=$s.apply,js=$s.construct;Hs||(Hs=function(e){return e}),Bs||(Bs=function(e){return e}),Vs||(Vs=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return e.apply(t,i)}),js||(js=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const qs=ur(Array.prototype.forEach),Ws=ur(Array.prototype.lastIndexOf),Us=ur(Array.prototype.pop),Gs=ur(Array.prototype.push),Ys=ur(Array.prototype.splice),Xs=Array.isArray,Ks=ur(String.prototype.toLowerCase),Js=ur(String.prototype.toString),Qs=ur(String.prototype.match),Zs=ur(String.prototype.replace),er=ur(String.prototype.indexOf),tr=ur(String.prototype.trim),nr=ur(Number.prototype.toString),ir=ur(Boolean.prototype.toString),sr="undefined"==typeof BigInt?null:ur(BigInt.prototype.toString),rr="undefined"==typeof Symbol?null:ur(Symbol.prototype.toString),or=ur(Object.prototype.hasOwnProperty),ar=ur(Object.prototype.toString),lr=ur(RegExp.prototype.test),cr=(dr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return js(dr,t)});var dr;function ur(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return Vs(e,t,i)}}function hr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ks;if(Is&&Is(e,null),!Xs(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=n(s);e!==s&&(Ns(t)||(t[i]=e),s=e)}e[s]=!0}return e}function pr(e){for(let t=0;t<e.length;t++)or(e,t)||(e[t]=null);return e}function fr(e){const t=Fs(null);for(const i of Ps(e)){var n=Ms(i,2);const s=n[0],r=n[1];or(e,s)&&(Xs(r)?t[s]=pr(r):r&&"object"==typeof r&&r.constructor===Object?t[s]=fr(r):t[s]=r)}return t}function mr(e,t){for(;null!==e;){const n=zs(e,t);if(n){if(n.get)return ur(n.get);if("function"==typeof n.value)return ur(n.value)}e=Rs(e)}return function(){return null}}const gr=Hs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vr=Hs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),br=Hs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yr=Hs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wr=Hs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),_r=Hs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Sr=Hs(["#text"]),Er=Hs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),xr=Hs(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Cr=Hs(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tr=Hs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ar=Bs(/{{[\w\W]*|^[\w\W]*}}/g),kr=Bs(/<%[\w\W]*|^[\w\W]*%>/g),Or=Bs(/\${[\w\W]*/g),Lr=Bs(/^data-[\-\w.\u00B7-\uFFFF]+$/),Dr=Bs(/^aria-[\-\w]+$/),Mr=Bs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Pr=Bs(/^(?:\w+script|data):/i),Ir=Bs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nr=Bs(/^html$/i),Rr=Bs(/^[a-z][.\w]*(-[.\w]+)+$/i),zr=Bs(/<[/\w!]/g),Hr=Bs(/<[/\w]/g),Br=Bs(/<\/no(script|embed|frames)/i),Fr=Bs(/\/>/i),$r=function(){return"undefined"==typeof window?null:window},Vr=function(e,t,n,i){return or(e,t)&&Xs(e[t])?hr(i.base?fr(i.base):{},e[t],i.transform):n};var jr=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$r();const n=t=>e(t);if(n.version="3.4.11",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let i=t.document;const s=i,r=s.currentScript;t.DocumentFragment;const o=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,h=l.prototype,p=mr(h,"cloneNode"),f=mr(h,"remove"),m=mr(h,"nextSibling"),g=mr(h,"childNodes"),v=mr(h,"parentNode"),b=mr(h,"shadowRoot"),y=mr(h,"attributes"),w=a&&a.prototype?mr(a.prototype,"nodeType"):null,_=a&&a.prototype?mr(a.prototype,"nodeName"):null;if("function"==typeof o){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let S,E,x="",C=!1,T=0;const A=function(){if(T>0)throw cr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},k=function(e){A(),T++;try{return S.createHTML(e)}finally{T--}},O=i,L=O.implementation,D=O.createNodeIterator,M=O.createDocumentFragment,P=O.getElementsByTagName,I=s.importNode;let N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Ps&&"function"==typeof v&&L&&void 0!==L.createHTMLDocument;const R=Ar,z=kr,H=Or,B=Lr,F=Dr,$=Pr,V=Ir,j=Rr;let q=Mr,W=null;const U=hr({},[...gr,...vr,...br,...wr,...Sr]);let G=null;const Y=hr({},[...Er,...xr,...Cr,...Tr]);let X=Object.seal(Fs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,J=null;const Q=Object.seal(Fs(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Z=!0,ee=!0,te=!1,ne=!0,ie=!1,se=!0,re=!1,oe=!1,ae=null,le=null,ce=!1,de=!1,ue=!1,he=!1,pe=!0,fe=!1;const me="user-content-";let ge=!0,ve=!1,be={},ye=null;const we=hr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _e=null;const Se=hr({},["audio","video","img","source","image","track"]);let Ee=null;const xe=hr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let ke=Ae,Oe=!1,Le=null;const De=hr({},[Ce,Te,Ae],Js),Me=Hs(["mi","mo","mn","ms","mtext"]);let Pe=hr({},Me);const Ie=Hs(["annotation-xml"]);let Ne=hr({},Ie);const Re=hr({},["title","style","font","a","script"]);let ze=null;const He=["application/xhtml+xml","text/html"];let Be=null,Fe=null;const $e=i.createElement("form"),Ve=function(e){return e instanceof RegExp||e instanceof Function},je=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Fe&&Fe===e)return;e&&"object"==typeof e||(e={}),e=fr(e),ze=-1===He.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Be="application/xhtml+xml"===ze?Js:Ks,W=Vr(e,"ALLOWED_TAGS",U,{transform:Be}),G=Vr(e,"ALLOWED_ATTR",Y,{transform:Be}),Le=Vr(e,"ALLOWED_NAMESPACES",De,{transform:Js}),Ee=Vr(e,"ADD_URI_SAFE_ATTR",xe,{transform:Be,base:xe}),_e=Vr(e,"ADD_DATA_URI_TAGS",Se,{transform:Be,base:Se}),ye=Vr(e,"FORBID_CONTENTS",we,{transform:Be}),K=Vr(e,"FORBID_TAGS",fr({}),{transform:Be}),J=Vr(e,"FORBID_ATTR",fr({}),{transform:Be}),be=!!or(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?fr(e.USE_PROFILES):e.USE_PROFILES),Z=!1!==e.ALLOW_ARIA_ATTR,ee=!1!==e.ALLOW_DATA_ATTR,te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ie=e.SAFE_FOR_TEMPLATES||!1,se=!1!==e.SAFE_FOR_XML,re=e.WHOLE_DOCUMENT||!1,de=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,he=e.RETURN_TRUSTED_TYPE||!1,ce=e.FORCE_BODY||!1,pe=!1!==e.SANITIZE_DOM,fe=e.SANITIZE_NAMED_PROPS||!1,ge=!1!==e.KEEP_CONTENT,ve=e.IN_PLACE||!1,q=function(e){try{return lr(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Mr,ke="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,Pe=or(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?fr(e.MATHML_TEXT_INTEGRATION_POINTS):hr({},Me),Ne=or(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?fr(e.HTML_INTEGRATION_POINTS):hr({},Ie);const t=or(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?fr(e.CUSTOM_ELEMENT_HANDLING):Fs(null);if(X=Fs(null),or(t,"tagNameCheck")&&Ve(t.tagNameCheck)&&(X.tagNameCheck=t.tagNameCheck),or(t,"attributeNameCheck")&&Ve(t.attributeNameCheck)&&(X.attributeNameCheck=t.attributeNameCheck),or(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Bs(X),ie&&(ee=!1),ue&&(de=!0),be&&(W=hr({},Sr),G=Fs(null),!0===be.html&&(hr(W,gr),hr(G,Er)),!0===be.svg&&(hr(W,vr),hr(G,xr),hr(G,Tr)),!0===be.svgFilters&&(hr(W,br),hr(G,xr),hr(G,Tr)),!0===be.mathMl&&(hr(W,wr),hr(G,Cr),hr(G,Tr))),Q.tagCheck=null,Q.attributeCheck=null,or(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Q.tagCheck=e.ADD_TAGS:Xs(e.ADD_TAGS)&&(W===U&&(W=fr(W)),hr(W,e.ADD_TAGS,Be))),or(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Q.attributeCheck=e.ADD_ATTR:Xs(e.ADD_ATTR)&&(G===Y&&(G=fr(G)),hr(G,e.ADD_ATTR,Be))),or(e,"ADD_URI_SAFE_ATTR")&&Xs(e.ADD_URI_SAFE_ATTR)&&hr(Ee,e.ADD_URI_SAFE_ATTR,Be),or(e,"FORBID_CONTENTS")&&Xs(e.FORBID_CONTENTS)&&(ye===we&&(ye=fr(ye)),hr(ye,e.FORBID_CONTENTS,Be)),or(e,"ADD_FORBID_CONTENTS")&&Xs(e.ADD_FORBID_CONTENTS)&&(ye===we&&(ye=fr(ye)),hr(ye,e.ADD_FORBID_CONTENTS,Be)),ge&&(W["#text"]=!0),re&&hr(W,["html","head","body"]),W.table&&(hr(W,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw cr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw cr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=S;S=e.TRUSTED_TYPES_POLICY;try{x=k("")}catch(e){throw S=t,e}}else null===e.TRUSTED_TYPES_POLICY?(S=void 0,x=""):(void 0===S&&(C||(E=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(u,r),C=!0),S=E),S&&"string"==typeof x&&(x=k("")));Hs&&Hs(e),Fe=e},qe=hr({},[...vr,...br,...yr]),We=hr({},[...wr,..._r]),Ue=function(e){Gs(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(f(e),!v(e))throw cr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ge=function(e){const t=g(e);if(t){const e=[];qs(t,t=>{Gs(e,t)}),qs(e,e=>{try{f(e)}catch(e){}})}const n=y(e);if(n)for(let t=n.length-1;t>=0;--t){const i=n[t],s=i&&i.name;if("string"==typeof s)try{e.removeAttribute(s)}catch(e){}}},Ye=function(e,t){try{Gs(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Gs(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(de||ue)try{Ue(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Xe=function(e){const t=y(e);if(t)for(let n=t.length-1;n>=0;--n){const i=t[n],s=i&&i.name;if("string"==typeof s&&!G[Be(s)])try{e.removeAttribute(s)}catch(e){}}},Ke=function(e){let t=null,n=null;if(ce)e="<remove></remove>"+e;else{const t=Qs(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ze&&ke===Ae&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=S?k(e):e;if(ke===Ae)try{t=(new d).parseFromString(s,ze)}catch(e){}if(!t||!t.documentElement){t=L.createDocument(ke,"template",null);try{t.documentElement.innerHTML=Oe?x:s}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),ke===Ae?P.call(t,re?"html":"body")[0]:re?t.documentElement:r},Je=function(e){return D.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Qe=function(e){return e=Zs(e,R," "),e=Zs(e,z," "),Zs(e,H," ")},Ze=function(e){var t;e.normalize();const n=D.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let i=n.nextNode();for(;i;)i.data=Qe(i.data),i=n.nextNode();const s=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");s&&qs(s,e=>{tt(e.content)&&Ze(e.content)})},et=function(e){const t=_?_(e):null;return"string"==typeof t&&"form"===Be(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==y(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==w(e)||e.childNodes!==g(e))},tt=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return 11===w(e)}catch(e){return!1}},nt=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(e){return!1}};function it(e,t,i){0!==e.length&&qs(e,e=>{e.call(n,t,i,Fe)})}const st=function(e){if(it(N.beforeSanitizeElements,e,null),et(e))return Ue(e),!0;const t=Be(_?_(e):e.nodeName);if(it(N.uponSanitizeElement,e,{tagName:t,allowedTags:W}),function(e,t){return!!(se&&e.hasChildNodes()&&!nt(e.firstElementChild)&&lr(zr,e.textContent)&&lr(zr,e.innerHTML))||!(!se||e.namespaceURI!==Ae||"style"!==t||!nt(e.firstElementChild))||7===e.nodeType||!(!se||8!==e.nodeType||!lr(Hr,e.data))}(e,t))return Ue(e),!0;if(K[t]||!(Q.tagCheck instanceof Function&&Q.tagCheck(t))&&!W[t])return function(e,t){if(!K[t]&&at(t)){if(X.tagNameCheck instanceof RegExp&&lr(X.tagNameCheck,t))return!1;if(X.tagNameCheck instanceof Function&&X.tagNameCheck(t))return!1}if(ge&&!ye[t]){const t=v(e),n=g(e);if(n&&t)for(let i=n.length-1;i>=0;--i){const s=ve?n[i]:p(n[i],!0);t.insertBefore(s,m(e))}}return Ue(e),!0}(e,t);if(1===(w?w(e):e.nodeType)&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:ke,tagName:"template"});const n=Ks(e.tagName),i=Ks(t.tagName);return!!Le[e.namespaceURI]&&(e.namespaceURI===Te?function(e,t,n){return t.namespaceURI===Ae?"svg"===e:t.namespaceURI===Ce?"svg"===e&&("annotation-xml"===n||Pe[n]):Boolean(qe[e])}(n,t,i):e.namespaceURI===Ce?function(e,t,n){return t.namespaceURI===Ae?"math"===e:t.namespaceURI===Te?"math"===e&&Ne[n]:Boolean(We[e])}(n,t,i):e.namespaceURI===Ae?function(e,t,n){return!(t.namespaceURI===Te&&!Ne[n])&&!(t.namespaceURI===Ce&&!Pe[n])&&!We[e]&&(Re[e]||!qe[e])}(n,t,i):!("application/xhtml+xml"!==ze||!Le[e.namespaceURI]))}(e))return Ue(e),!0;if(("noscript"===t||"noembed"===t||"noframes"===t)&&lr(Br,e.innerHTML))return Ue(e),!0;if(ie&&3===e.nodeType){const t=Qe(e.textContent);e.textContent!==t&&(Gs(n.removed,{element:e.cloneNode()}),e.textContent=t)}return it(N.afterSanitizeElements,e,null),!1},rt=function(e,t,n){if(J[t])return!1;if(pe&&("id"===t||"name"===t)&&(n in i||n in $e))return!1;const s=G[t]||Q.attributeCheck instanceof Function&&Q.attributeCheck(t,e);if(ee&&lr(B,t));else if(Z&&lr(F,t));else if(s){if(Ee[t]);else if(lr(q,Zs(n,V,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==er(n,"data:")||!_e[e])if(te&&!lr($,Zs(n,V,"")));else if(n)return!1}else if(!(at(e)&&(X.tagNameCheck instanceof RegExp&&lr(X.tagNameCheck,e)||X.tagNameCheck instanceof Function&&X.tagNameCheck(e))&&(X.attributeNameCheck instanceof RegExp&&lr(X.attributeNameCheck,t)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(t,e))||"is"===t&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&lr(X.tagNameCheck,n)||X.tagNameCheck instanceof Function&&X.tagNameCheck(n))))return!1;return!0},ot=hr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),at=function(e){return!ot[Ks(e)]&&lr(j,e)},lt=function(e,t,n,i){if(S&&"object"==typeof u&&"function"==typeof u.getAttributeType&&!n)switch(u.getAttributeType(e,t)){case"TrustedHTML":return k(i);case"TrustedScriptURL":return function(e){A(),T++;try{return S.createScriptURL(e)}finally{T--}}(i)}return i},ct=function(e,t,i,s){try{i?e.setAttributeNS(i,t,s):e.setAttribute(t,s),et(e)?Ue(e):Us(n.removed)}catch(n){Ye(t,e)}},dt=function(e){it(N.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||et(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let i=t.length;const s=Be(e.nodeName);for(;i--;){const r=t[i],o=r.name,a=r.namespaceURI,l=r.value,c=Be(o),d=l;let u="value"===o?d:tr(d);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,it(N.uponSanitizeAttribute,e,n),u=n.attrValue,!fe||"id"!==c&&"name"!==c||0===er(u,me)||(Ye(o,e),u=me+u),se&&lr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&Qs(u,"href")?Ye(o,e):n.forceKeepAttr||(!n.keepAttr||!ne&&lr(Fr,u)?Ye(o,e):(ie&&(u=Qe(u)),rt(s,c,u)?(u=lt(s,c,a,u),u!==d&&ct(e,o,a,u)):Ye(o,e)))}it(N.afterSanitizeAttributes,e,null)},ut=function(e){let t=null;const n=Je(e);for(it(N.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(it(N.uponSanitizeShadowNode,t,null),st(t),dt(t),tt(t.content)&&ut(t.content),1===(w?w(t):t.nodeType)){const e=b(t);tt(e)&&(ht(e),ut(e))}it(N.afterSanitizeShadowDOM,e,null)},ht=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){ut(e.shadow);continue}const n=e.node,i=1===(w?w(n):n.nodeType),s=g(n);if(s)for(let e=s.length-1;e>=0;--e)t.push({node:s[e],shadow:null});if(i){const e=_?_(n):null;if("string"==typeof e&&"template"===Be(e)){const e=n.content;tt(e)&&t.push({node:e,shadow:null})}}if(i){const e=b(n);tt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,o=null,a=null;if(Oe=!e,Oe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!nt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return nr(e);case"boolean":return ir(e);case"bigint":return sr?sr(e):"0";case"symbol":return rr?rr(e):"Symbol()";case"undefined":default:return ar(e);case"function":case"object":{if(null===e)return ar(e);const t=e,n=mr(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:ar(e)}return ar(e)}}}(e)))throw cr("dirty is not a string, aborting");if(!n.isSupported)return e;oe?(W=ae,G=le):je(t),(N.uponSanitizeElement.length>0||N.uponSanitizeAttribute.length>0)&&(W=fr(W)),N.uponSanitizeAttribute.length>0&&(G=fr(G)),n.removed=[];const l=ve&&"string"!=typeof e&&nt(e);if(l){const t=_?_(e):e.nodeName;if("string"==typeof t){const e=Be(t);if(!W[e]||K[e])throw cr("root node is forbidden and cannot be sanitized in-place")}if(et(e))throw cr("root node is clobbered and cannot be sanitized in-place");try{ht(e)}catch(t){throw Ge(e),t}}else if(nt(e))i=Ke("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r),ht(r);else{if(!de&&!ie&&!re&&-1===e.indexOf("<"))return S&&he?k(e):e;if(i=Ke(e),!i)return de?null:he?x:""}i&&ce&&Ue(i.firstChild);const c=Je(l?e:i);try{for(;o=c.nextNode();)st(o),dt(o),tt(o.content)&&ut(o.content)}catch(t){throw l&&Ge(e),t}if(l)return qs(n.removed,e=>{e.element&&function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(w?w(e):e.nodeType)&&Xe(e);const n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}}(e.element)}),ie&&Ze(e),e;if(de){if(ie&&Ze(i),ue)for(a=M.call(i.ownerDocument);i.firstChild;)a.appendChild(i.firstChild);else a=i;return(G.shadowroot||G.shadowrootmode)&&(a=I.call(s,a,!0)),a}let d=re?i.outerHTML:i.innerHTML;return re&&W["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&lr(Nr,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),ie&&(d=Qe(d)),S&&he?k(d):d},n.setConfig=function(){je(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),oe=!0,ae=W,le=G},n.clearConfig=function(){Fe=null,oe=!1,ae=null,le=null,S=E,x=""},n.isValidAttribute=function(e,t,n){Fe||je({});const i=Be(e),s=Be(t);return rt(i,s,n)},n.addHook=function(e,t){"function"==typeof t&&or(N,e)&&Gs(N[e],t)},n.removeHook=function(e,t){if(or(N,e)){if(void 0!==t){const n=Ws(N[e],t);return-1===n?void 0:Ys(N[e],n,1)[0]}return Us(N[e])}},n.removeHooks=function(e){or(N,e)&&(N[e]=[])},n.removeAllHooks=function(){N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const qr={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:(e,t)=>`\n <li>${e} <button type="button" data-file-delete="${t}" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ${e}</span>\n </button>\n </li>\n `},Wr={nonEditableInput:!1,min:1,max:999,defaultValue:1};var Ur,Gr;function Yr(e){return"object"==typeof e&&"function"==typeof e.to}function Xr(e){e.parentElement.removeChild(e)}function Kr(e){return null!=e}function Jr(e){e.preventDefault()}function Qr(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function Zr(e,t,n){n>0&&(io(e,t),setTimeout(function(){so(e,t)},n))}function eo(e){return Math.max(Math.min(e,100),0)}function to(e){return Array.isArray(e)?e:[e]}function no(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function io(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function so(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function ro(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function oo(e,t){return 100/(t-e)}function ao(e,t,n){return 100*t/(e[n+1]-e[n])}function lo(e,t){for(var n=1;e>=t[n];)n+=1;return n}!function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(Ur||(Ur={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(Gr||(Gr={}));var co=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var s=[];for(Object.keys(e).forEach(function(t){s.push([to(e[t]),t])}),s.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<s.length;i++)this.handleEntryPoint(s[i][1],s[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=ao(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,s=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[s+1];)s++;else e===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);n||e!==this.xPct[s+1]||s++,null===t&&(t=[]);var r=1,o=t[s],a=0,l=0,c=0,d=0;for(i=n?(e-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):(this.xPct[s+1]-e)/(this.xPct[s+1]-this.xPct[s]);o>0;)a=this.xPct[s+1+d]-this.xPct[s+d],t[s+d]*r+100-100*i>100?(l=a*i,r=(o-100*i)/t[s+d],i=1):(l=t[s+d]*a/100*r,r=0),n?(c-=l,this.xPct.length+d>=1&&d--):(c+=l,this.xPct.length-d>=1&&d++),o=t[s+d]*r;return e+c},e.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=lo(n,e),s=e[i-1],r=e[i],o=t[i-1],a=t[i];return o+function(e,t){return ao(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([s,r],n)/oo(o,a)}(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=lo(n,t),s=e[i-1],r=e[i],o=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([s,r],(n-o)*oo(o,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var s=lo(i,e),r=e[s-1],o=e[s];return n?i-r>(o-r)/2?o:r:t[s-1]?e[s-1]+function(e,t){return Math.round(e/t)*t}(i-e[s-1],t[s-1]):i}(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=lo(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=lo(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(no);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!Qr(n="min"===e?0:"max"===e?100:parseFloat(e))||!Qr(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=ao([this.xVal[e],this.xVal[e+1]],t,0)/oo(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=s}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),uo={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},ho={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},po=".__tooltips",fo=".__aria";function mo(e,t){if(!Qr(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function go(e,t){if(!Qr(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function vo(e,t){if(!Qr(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function bo(e,t){if(!Qr(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function yo(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new co(t,e.snap||!1,e.singleStep)}function wo(e,t){if(t=to(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function _o(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function So(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function Eo(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function xo(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function Co(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function To(e,t){if(!Qr(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Ao(e,t){if(!Qr(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ko(e,t){var n;if(!Qr(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!Qr(t[0])&&!Qr(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],s=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Oo(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function Lo(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,s=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,o=t.indexOf("hover")>=0,a=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,d=t.indexOf("smooth-steps")>=0;if(s){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");To(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||r,drag:i,dragAll:c,smoothSteps:d,fixed:s,snap:r,hover:o,unconstrained:a,invertConnects:l}}function Do(e,t){if(!1!==t)if(!0===t||Yr(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=to(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!Yr(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function Mo(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function Po(e,t){if(!Yr(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function Io(e,t){if(!function(e){return Yr(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function No(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function Ro(e,t){e.documentElement=t}function zo(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function Ho(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function Bo(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:uo,format:uo},n={step:{r:!1,t:mo},keyboardPageMultiplier:{r:!1,t:go},keyboardMultiplier:{r:!1,t:vo},keyboardDefaultStep:{r:!1,t:bo},start:{r:!0,t:wo},connect:{r:!0,t:xo},direction:{r:!0,t:Oo},snap:{r:!1,t:_o},animate:{r:!1,t:So},animationDuration:{r:!1,t:Eo},range:{r:!0,t:yo},orientation:{r:!1,t:Co},margin:{r:!1,t:To},limit:{r:!1,t:Ao},padding:{r:!1,t:ko},behaviour:{r:!0,t:Lo},ariaFormat:{r:!1,t:Po},format:{r:!1,t:Io},tooltips:{r:!1,t:Do},keyboardSupport:{r:!0,t:No},documentElement:{r:!1,t:Ro},cssPrefix:{r:!0,t:zo},cssClasses:{r:!0,t:Ho},handleAttributes:{r:!1,t:Mo}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:ho,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(s){if(Kr(e[s])||void 0!==i[s])n[s].t(t,Kr(e[s])?e[s]:i[s]);else if(n[s].r)throw new Error("noUiSlider: '"+s+"' is required.")}),t.pips=e.pips;var s=document.createElement("div"),r=void 0!==s.style.msTransform,o=void 0!==s.style.transform;return t.transformRule=o?"transform":r?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function Fo(e,t,n){var i,s,r,o,a,l,c,d=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},u=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),h=e,p=t.spectrum,f=[],m=[],g=[],v=0,b={},y=!1,w=e.ownerDocument,_=t.documentElement||w.documentElement,S=w.body,E="rtl"===w.dir||1===t.ort?0:100;function x(e,t){var n=w.createElement("div");return t&&io(n,t),e.appendChild(n),n}function C(e,n){var i=x(e,t.cssClasses.origin),s=x(i,t.cssClasses.handle);if(x(s,t.cssClasses.touchArea),s.setAttribute("data-handle",String(n)),t.keyboardSupport&&(s.setAttribute("tabindex","0"),s.addEventListener("keydown",function(e){return function(e,n){if(k()||O(n))return!1;var i=["Left","Right"],s=["Down","Up"],r=["PageDown","PageUp"],o=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(s.reverse(),r.reverse());var a,l=e.key.replace("Arrow",""),c=l===r[0],d=l===r[1],u=l===s[0]||l===i[0]||c,h=l===s[1]||l===i[1]||d,g=l===o[1];if(!(u||h||l===o[0]||g))return!0;if(e.preventDefault(),h||u){var v=u?0:1,b=se(n)[v];if(null===b)return!1;!1===b&&(b=p.getDefaultStep(m[n],u,t.keyboardDefaultStep)),b*=d||c?t.keyboardPageMultiplier:t.keyboardMultiplier,b=Math.max(b,1e-7),b*=u?-1:1,a=f[n]+b}else a=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return Z(n,p.toStepping(a),!0,!0),G("slide",n),G("update",n),G("change",n),G("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var r=t.handleAttributes[n];Object.keys(r).forEach(function(e){s.setAttribute(e,r[e])})}return s.setAttribute("role","slider"),s.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?io(s,t.cssClasses.handleLower):n===t.handles-1&&io(s,t.cssClasses.handleUpper),i.handle=s,i}function T(e,n){return!!n&&x(e,t.cssClasses.connect)}function A(e,n){return!(!t.tooltips||!t.tooltips[n])&&x(e.firstChild,t.cssClasses.tooltip)}function k(){return h.hasAttribute("disabled")}function O(e){return r[e].hasAttribute("disabled")}function L(){l&&(U("update"+po),l.forEach(function(e){e&&Xr(e)}),l=null)}function D(){L(),l=r.map(A),W("update"+po,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var s=e[n];!0!==t.tooltips[n]&&(s=t.tooltips[n].to(i[n])),l[n].innerHTML=s}})}function M(e,t){return e.map(function(e){return p.fromStepping(t?p.getStep(e):e)})}function P(){a&&(Xr(a),a=null)}function I(e){P();var n=function(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===Ur.Range||e.mode===Ur.Steps)return p.xVal;if(e.mode===Ur.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),M(i,e.stepped)}return e.mode===Ur.Positions?M(e.values,e.stepped):e.mode===Ur.Values?e.stepped?e.values.map(function(e){return p.fromStepping(p.getStep(p.toStepping(e)))}):e.values:[]}(e),s={},r=p.xVal[0],o=p.xVal[p.xVal.length-1],a=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}),i[0]!==r&&(i.unshift(r),a=!0),i[i.length-1]!==o&&(i.push(o),l=!0),i.forEach(function(n,r){var o,d,u,h,f,m,g,v,b,y,w=n,_=i[r+1],S=e.mode===Ur.Steps;for(S&&(o=p.xNumSteps[r]),o||(o=_-w),void 0===_&&(_=w),o=Math.max(o,1e-7),d=w;d<=_;d=t(d,o)){for(v=(f=(h=p.toStepping(d))-c)/(e.density||1),y=f/(b=Math.round(v)),u=1;u<=b;u+=1)s[(m=c+u*y).toFixed(5)]=[p.fromStepping(m),0];g=i.indexOf(d)>-1?Gr.LargeValue:S?Gr.SmallValue:Gr.NoValue,!r&&a&&d!==_&&(g=0),d===_&&l||(s[h.toFixed(5)]=[d,g]),c=h}}),s}(e),i=e.filter,s=e.format||{to:function(e){return String(Math.round(e))}};return a=h.appendChild(function(e,n,i){var s,r,o=w.createElement("div"),a=((s={})[Gr.None]="",s[Gr.NoValue]=t.cssClasses.valueNormal,s[Gr.LargeValue]=t.cssClasses.valueLarge,s[Gr.SmallValue]=t.cssClasses.valueSub,s),l=((r={})[Gr.None]="",r[Gr.NoValue]=t.cssClasses.markerNormal,r[Gr.LargeValue]=t.cssClasses.markerLarge,r[Gr.SmallValue]=t.cssClasses.markerSub,r),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],d=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function u(e,n){var i=n===t.cssClasses.value,s=i?a:l;return n+" "+(i?c:d)[t.ort]+" "+s[e]}return io(o,t.cssClasses.pips),io(o,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(s){!function(e,s,r){if((r=n?n(s,r):r)!==Gr.None){var a=x(o,!1);a.className=u(r,t.cssClasses.marker),a.style[t.style]=e+"%",r>Gr.NoValue&&((a=x(o,!1)).className=u(r,t.cssClasses.value),a.setAttribute("data-value",String(s)),a.style[t.style]=e+"%",a.innerHTML=String(i.to(s)))}}(s,e[s][0],e[s][1])}),o}(n,i,s))}function N(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function R(e,n,i,s){var r=function(r){var o,a,l=function(e,t,n){var i=0===e.type.indexOf("touch"),s=0===e.type.indexOf("mouse"),r=0===e.type.indexOf("pointer"),o=0,a=0;if(0===e.type.indexOf("MSPointer")&&(r=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;o=c[0].pageX,a=c[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,l);if(!d)return!1;o=d.pageX,a=d.pageY}}return t=t||ro(w),(s||r)&&(o=e.clientX+t.x,a=e.clientY+t.y),e.pageOffset=t,e.points=[o,a],e.cursor=s||r,e}(r,s.pageOffset,s.target||n);return!!l&&!(k()&&!s.doNotReject)&&(o=h,a=t.cssClasses.tap,!((o.classList?o.classList.contains(a):new RegExp("\\b"+a+"\\b").test(o.className))&&!s.doNotReject)&&!(e===d.start&&void 0!==l.buttons&&l.buttons>1)&&(!s.hover||!l.buttons)&&(u||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,s)))},o=[];return e.split(" ").forEach(function(e){n.addEventListener(e,r,!!u&&{passive:!0}),o.push([e,r])}),o}function z(e){var n,s,r,o,a,l,c=100*(e-(n=i,s=t.ort,r=n.getBoundingClientRect(),a=(o=n.ownerDocument).documentElement,l=ro(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),s?r.top+l.y-a.clientTop:r.left+l.x-a.clientLeft))/N();return c=eo(c),t.dir?100-c:c}function H(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&F(e,t)}function B(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return F(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);K(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function F(e,n){n.handle&&(so(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){_.removeEventListener(e[0],e[1])}),0===v&&(so(h,t.cssClasses.drag),Q(),e.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",Jr))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){Z(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){G("update",e)})),n.handleNumbers.forEach(function(e){G("change",e),G("set",e),G("end",e)})}function $(e,n){if(!n.handleNumbers.some(O)){var i;1===n.handleNumbers.length&&(i=r[n.handleNumbers[0]].children[0],v+=1,io(i,t.cssClasses.active)),e.stopPropagation();var s=[],o=R(d.move,_,B,{target:e.target,handle:i,connect:n.connect,listeners:s,startCalcPoint:e.calcPoint,baseSize:N(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),a=R(d.end,_,F,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",_,H,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers});s.push.apply(s,o.concat(a,l)),e.cursor&&(S.style.cursor=getComputedStyle(e.target).cursor,r.length>1&&io(h,t.cssClasses.drag),S.addEventListener("selectstart",Jr,!1)),n.handleNumbers.forEach(function(e){G("start",e)})}}function V(e){e.stopPropagation();var n=z(e.calcPoint),i=function(e){var t=100,n=!1;return r.forEach(function(i,s){if(!O(s)){var r=m[s],o=Math.abs(r-e);(o<t||o<=t&&e>r||100===o&&100===t)&&(n=s,t=o)}}),n}(n);!1!==i&&(t.events.snap||Zr(h,t.cssClasses.tap,t.animationDuration),Z(i,n,!0,!0),Q(),G("slide",i,!0),G("update",i,!0),t.events.snap?$(e,{handleNumbers:[i]}):(G("change",i,!0),G("set",i,!0)))}function j(e){var t=z(e.calcPoint),n=p.getStep(t),i=p.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(oe,i)})})}function q(e){e.fixed||r.forEach(function(e,t){R(d.start,e.children[0],$,{handleNumbers:[t]})}),e.tap&&R(d.start,i,V,{}),e.hover&&R(d.move,i,j,{hover:!0}),e.drag&&o.forEach(function(n,i){if(!1!==n&&0!==i&&i!==o.length-1){var s=r[i-1],a=r[i],l=[n],c=[s,a],u=[i-1,i];io(n,t.cssClasses.draggable),e.fixed&&(l.push(s.children[0]),l.push(a.children[0])),e.dragAll&&(c=r,u=g),l.forEach(function(e){R(d.start,e,$,{handles:c,handleNumbers:u,connect:n})})}})}function W(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&r.forEach(function(e,t){G("update",t)})}function U(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],s=e.substring(i.length);t&&t!==i||n&&n!==s||function(e){return e===fo||e===po}(s)&&n!==s||delete b[e]})}function G(e,n,i){Object.keys(b).forEach(function(s){var r=s.split(".")[0];e===r&&b[s].forEach(function(e){e.call(oe,f.map(t.format.to),n,f.slice(),i||!1,m.slice(),oe)})})}function Y(e,n,i,s,o,a,l){var c;return r.length>1&&!t.events.unconstrained&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),o&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),r.length>1&&t.limit&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),o&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=p.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===r.length-1&&(c=p.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=p.getStep(i)),!((i=eo(i))===e[n]&&!a)&&i}function X(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function K(e,n,i,s,r){var o=i.slice(),a=s[0],l=t.events.smoothSteps,c=[!e,e],d=[e,!e];s=s.slice(),e&&s.reverse(),s.length>1?s.forEach(function(e,t){var i=Y(o,e,o[e]+n,c[t],d[t],!1,l);!1===i?n=0:(n=i-o[e],o[e]=i)}):c=d=[!0];var u=!1;s.forEach(function(e,t){u=Z(e,i[e]+n,c[t],d[t],!1,l)||u}),u&&(s.forEach(function(e){G("update",e),G("slide",e)}),null!=r&&G("drag",a))}function J(e,n){return t.dir?100-e-n:e}function Q(){g.forEach(function(e){var t=m[e]>50?-1:1,n=3+(r.length+t*e);r[e].style.zIndex=String(n)})}function Z(e,n,i,s,o,a){return o||(n=Y(m,e,n,i,s,!1,a)),!1!==n&&(function(e,n){m[e]=n,f[e]=p.fromStepping(n);var i="translate("+X(J(n,0)-E+"%","0")+")";if(r[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var s=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!s)return y=!y,xo(t,t.connect.map(function(e){return!e})),void re()}ee(e),ee(e+1),y&&(ee(e-1),ee(e+2))}(e,n),!0)}function ee(e){if(o[e]){var n=m.slice();y&&n.sort(function(e,t){return e-t});var i=0,s=100;0!==e&&(i=n[e-1]),e!==o.length-1&&(s=n[e]);var r=s-i,a="translate("+X(J(i,r)+"%","0")+")",l="scale("+X(r/100,"1")+")";o[e].style[t.transformRule]=a+" "+l}}function te(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=p.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function ne(e,n,i){var s=to(e),r=void 0===m[0];n=void 0===n||n,t.animate&&!r&&Zr(h,t.cssClasses.tap,t.animationDuration),g.forEach(function(e){Z(e,te(s[e],e),!0,!1,i)});var o=1===g.length?0:1;if(r&&p.hasNoSize()&&(i=!0,m[0]=0,g.length>1)){var a=100/(g.length-1);g.forEach(function(e){m[e]=e*a})}for(;o<g.length;++o)g.forEach(function(e){Z(e,m[e],!0,!0,i)});Q(),g.forEach(function(e){G("update",e),null!==s[e]&&n&&G("set",e)})}function ie(e){if(void 0===e&&(e=!1),e)return 1===f.length?f[0]:f.slice(0);var n=f.map(t.format.to);return 1===n.length?n[0]:n}function se(e){var n=m[e],i=p.getNearbySteps(n),s=f[e],r=i.thisStep.step,o=null;if(t.snap)return[s-i.stepBefore.startValue||null,i.stepAfter.startValue-s||null];!1!==r&&s+r>i.stepAfter.startValue&&(r=i.stepAfter.startValue-s),o=s>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&s-i.stepBefore.highestStep,100===n?r=null:0===n&&(o=null);var a=p.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(a))),null!==o&&!1!==o&&(o=Number(o.toFixed(a))),[o,r]}function re(){for(;s.firstChild;)s.removeChild(s.firstChild);for(var e=0;e<=t.handles;e++)o[e]=T(s,t.connect[e]),ee(e);q({drag:t.events.drag,fixed:!0})}io(c=h,t.cssClasses.target),0===t.dir?io(c,t.cssClasses.ltr):io(c,t.cssClasses.rtl),0===t.ort?io(c,t.cssClasses.horizontal):io(c,t.cssClasses.vertical),io(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=x(c,t.cssClasses.base),function(e,n){s=x(n,t.cssClasses.connects),r=[],(o=[]).push(T(s,e[0]));for(var i=0;i<t.handles;i++)r.push(C(n,i)),g[i]=i,o.push(T(s,e[i+1]))}(t.connect,i),q(t.events),ne(t.start),t.pips&&I(t.pips),t.tooltips&&D(),U("update"+fo),W("update"+fo,function(e,n,i,s,o){g.forEach(function(e){var n=r[e],s=Y(m,e,0,!0,!0,!0),a=Y(m,e,100,!0,!0,!0),l=o[e],c=String(t.ariaFormat.to(i[e]));s=p.fromStepping(s).toFixed(1),a=p.fromStepping(a).toFixed(1),l=p.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",s),n.children[0].setAttribute("aria-valuemax",a),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var oe={destroy:function(){for(U(fo),U(po),Object.keys(t.cssClasses).forEach(function(e){so(h,t.cssClasses[e])});h.firstChild;)h.removeChild(h.firstChild);delete h.noUiSlider},steps:function(){return g.map(se)},on:W,off:U,get:ie,set:ne,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<g.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Z(e,te(t,e),!0,!0,i),G("update",e),n&&G("set",e)},reset:function(e){ne(t.start,e)},disable:function(e){null!=e?(r[e].setAttribute("disabled",""),r[e].handle.removeAttribute("tabindex")):(h.setAttribute("disabled",""),r.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(r[e].removeAttribute("disabled"),r[e].handle.setAttribute("tabindex","0")):(h.removeAttribute("disabled"),r.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){K(e,t,m,n)},options:n,updateOptions:function(e,i){var s=ie(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];r.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var o=Bo(n);r.forEach(function(n){void 0!==e[n]&&(t[n]=o[n])}),p=o.spectrum,t.margin=o.margin,t.limit=o.limit,t.padding=o.padding,t.pips?I(t.pips):P(),t.tooltips?D():L(),m=[],ne(Kr(e.start)?e.start:s,i),e.connect&&re()},target:h,removePips:P,removeTooltips:L,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return r},pips:I};return oe}var $o=function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=Fo(e,Bo(t),t);return e.noUiSlider=n,n};const Vo={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},jo={cycleDuration:4e3,delay:5e3},qo=":not([inert]):not([inert] *)",Wo=':not([tabindex^="-"])',Uo=":not(:disabled)";var Go=[`a[href]${qo}${Wo}`,`area[href]${qo}${Wo}`,`input:not([type="hidden"]):not([type="radio"])${qo}${Wo}${Uo}`,`input[type="radio"]${qo}${Wo}${Uo}`,`select${qo}${Wo}${Uo}`,`textarea${qo}${Wo}${Uo}`,`button${qo}${Wo}${Uo}`,`details${qo} > summary:first-of-type${Wo}`,`iframe${qo}${Wo}`,`audio[controls]${qo}${Wo}`,`video[controls]${qo}${Wo}`,`[contenteditable]${qo}${Wo}`,`[tabindex]${qo}${Wo}`];function Yo(e){(e.querySelector("[autofocus]")||e).focus()}function Xo(e,t){if(t&&Qo(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=Ko(e.shadowRoot,t);for(;n;){const e=Xo(n,t);if(e)return e;n=Jo(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=Xo(e,t);if(n)return n}}else{let n=Ko(e,t);for(;n;){const e=Xo(n,t);if(e)return e;n=Jo(n,t)}}return!t&&Qo(e)?e:null}function Ko(e,t){return t?e.firstElementChild:e.lastElementChild}function Jo(e,t){return t?e.nextElementSibling:e.previousElementSibling}const Qo=e=>!e.shadowRoot?.delegatesFocus&&e.matches(Go.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function Zo(e=document){const t=e.activeElement;return t?t.shadowRoot?Zo(t.shadowRoot)||document.activeElement:t:null}function ea(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=ta(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function ta(e){return e.assignedSlot||(e.parentNode?ta(e.parentNode):null)}const na="data-a11y-dialog";class ia{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(na)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=Zo(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():Yo(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=ea(`[${na}-show="${this.id}"]`,t),i=ea(`[${na}-hide="${this.id}"]`,t),s=ea(`[${na}-hide]`,t)&&ea('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(ea('[aria-modal="true"]',Zo())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[n,i]=function(e){const t=Xo(e,!0);return[t,t?Xo(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const s=Zo();t.shiftKey&&s===n?(i.focus(),t.preventDefault()):t.shiftKey||s!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=Zo();ea(`[aria-modal="true"], [${na}-ignore-focus-trap]`,e)||Yo(this.$el)}}function sa(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new ia(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",sa):sa());var ra=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),oa="undefined"==typeof Element,aa=oa?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,la=!oa&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ca=function(e){return"INPUT"===e.tagName},da=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},ua=function(e,t){return!(t.disabled||function(e){return ca(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var s=getComputedStyle(e).visibility;if("hidden"===s||"collapse"===s)return!0;var r=aa.call(e,"details>summary:first-of-type")?e.parentElement:e;if(aa.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return da(e)}else{if("function"==typeof i){for(var o=e;e;){var a=e.parentElement,l=la(e);if(a&&!a.shadowRoot&&!0===i(a))return da(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=o}if(function(e){var t,n,i,s,r=e&&la(e),o=null===(t=r)||void 0===t?void 0:t.host,a=!1;if(r&&r!==e)for(a=!!(null!==(n=o)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(o)||null!=e&&null!==(s=e.ownerDocument)&&void 0!==s&&s.contains(e));!a&&o;){var l,c,d;a=!(null===(c=o=null===(l=r=la(o))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(o))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!aa.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},ha=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==aa.call(e,ra)&&function(e,t){return!(function(e){return function(e){return ca(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||la(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return!1}var s=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!s||s===e}(e)}(t)||function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex}(t)<0||!ua(e,t))}(t,e)};const pa="--ods-modal-scrollbar-width",fa="data-lock-scrolltop";class ma{element;config;instance;constructor(e,t){return this.element=e,this.config={classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals",...t},this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),ma.moveToModalRoot=ma.moveToModalRoot.bind(this),ma.lockBody=ma.lockBody.bind(this),ma.unlockBody=ma.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}static getInstance(e){return e&&e.ODS_Modal||null}handleShow(e){ma.lockBody(),e&&e.classList.add(this.config.classModalIsOpen);const t=e.querySelector("[data-a11y-dialog-initial-focus]");t&&(ha(t)||t.setAttribute("tabindex","-1"),t.focus())}handleHide(e){ma.unlockBody(),e&&e.classList.remove(this.config.classModalIsOpen)}show(){this.instance.show()}hide(){this.instance.hide()}headerFirstItemSpacing(){const e=this.element.querySelector(".modal__header");if(e){const t=e.classList.contains("modal__header--no-spacing"),n=Array.from(e.children).find(e=>!e.classList.contains("btn"));n&&!t&&(n.style.marginRight="40px")}}init(){this.config.modalsRoot&&!this.config.disablePortal&&ma.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new ia(this.element),this.instance.on("show",e=>{const t=e.currentTarget;this.handleShow(t)}),this.instance.on("hide",e=>{const t=e.currentTarget;this.handleHide(t)}),this.headerFirstItemSpacing()}destroy(){if(this.instance){this.instance.hide();const e=this.instance;document.removeEventListener("click",e.handleTriggerClicks,!0),document.body.removeEventListener("focus",e.maintainFocus,!0),this.element.removeEventListener("keydown",e.bindKeypress,!0),ma.unlockBody()}this.element.ODS_Modal=this}update(){this.destroy(),this.init()}static moveToModalRoot(e,t){t&&t.appendChild(e)}static isLocked=!1;static resolveBodyLockClassName(e,t){const n=t;return e||n?.config?.classModalIsOpenBody||"has-modal"}static lockBody(e,t){if(ma.isLocked)return;const n=ma.resolveBodyLockClassName(e,this),i=window.scrollY;document.body.setAttribute(fa,i.toString());const s=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${i}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight=`${s}px`,document.body.style.setProperty(pa,`${s}px`),document.body.classList.add(n),ma.isLocked=!0}static unlockBody(e,t){if(!ma.isLocked)return;const n=ma.resolveBodyLockClassName(e,this),i=Number.parseInt(document.body.getAttribute(fa)||"0",10);document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.style.removeProperty(pa),document.body.classList.remove(n),window.scrollTo({top:Number.isFinite(i)?i:0,left:0,behavior:"instant"}),ma.isLocked=!1}}const ga={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},va={tabSelector:'[role="tab"]'};class ba{static SCROLL_ALIGNMENT_TOLERANCE=1;static SCROLL_EDGE_TOLERANCE=1;element;config;tabs;tabPanels;activeTabIndex;rovingTabindex;resizeObserver;horizontalScrollHandler;resizeHandler;viewportElement;constructor(e,t){return this.element=e,this.config={...va,...t},this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.resizeObserver=null,this.viewportElement=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.resizeHandler=this.updateHorizontalOverflowState.bind(this),this.element.ODS_Tabs=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}init(){this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map((e,t)=>{const n=e.getAttribute("aria-controls");return this.tabPanels.push(n?document.getElementById(n):null),e.addEventListener("click",this.handleClick),e.addEventListener("focus",this.handleTabFocus),this.isSelected(e)&&(this.activeTabIndex=t),e}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new n(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.setActiveTab(this.activeTabIndex):this.tabs.length>0&&this.activateNthTab(0),this.setupOverflowObserver()}destroy(){this.teardownOverflowObserver(),this.tabs.map(e=>(e.removeEventListener("click",this.handleClick),e.removeEventListener("focus",this.handleTabFocus),e)),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}setupOverflowObserver(){this.teardownOverflowObserver(),this.viewportElement=this.element.parentElement?.classList.contains("tab-list__viewport")?this.element.parentElement:null,this.element.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.resizeHandler),this.resizeObserver.observe(this.element),this.tabs.forEach(e=>this.resizeObserver?.observe(e))),this.updateHorizontalOverflowState()}teardownOverflowObserver(){this.element.removeEventListener("scroll",this.horizontalScrollHandler),window.removeEventListener("resize",this.resizeHandler),this.viewportElement&&(this.viewportElement.classList.remove("has-left-overflow","has-right-overflow"),this.viewportElement=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}updateHorizontalOverflowState(){if(!this.viewportElement)return;const e=this.element.scrollWidth-this.element.clientWidth,t=e>ba.SCROLL_EDGE_TOLERANCE,n=this.element.scrollLeft<=ba.SCROLL_EDGE_TOLERANCE,i=this.element.scrollLeft>=e-ba.SCROLL_EDGE_TOLERANCE;this.viewportElement.classList.toggle("has-left-overflow",t&&!n),this.viewportElement.classList.toggle("has-right-overflow",t&&!i)}update(){this.destroy(),this.init()}isActive=e=>!!e&&!e.hasAttribute("hidden");isSelected=e=>"true"===e.getAttribute("aria-selected");setActiveTab(e,t=!1){this.tabs.map((t,n)=>n===e?(this.activeTabIndex=n,this.toggleTab(t,"on")):this.toggleTab(t,"off")),this.tabPanels.map((t,n)=>n===e?this.toggleTabPanel(t,"on"):this.toggleTabPanel(t,"off"));const n=this.tabs[e];n&&this.scrollTabIntoView(n,t)}scrollTabIntoView(e,t=!1){const n=Math.max(0,this.element.scrollWidth-this.element.clientWidth),i=this.element.getBoundingClientRect(),s=e.getBoundingClientRect(),r=s.left-i.left+this.element.scrollLeft+s.width/2-this.element.clientWidth/2,o=window.innerWidth<768?"auto":"smooth",a=Math.min(n,Math.max(0,r)),l=Math.abs(this.element.scrollLeft-a)<=ba.SCROLL_ALIGNMENT_TOLERANCE;!t&&l||("function"!=typeof this.element.scrollTo?(this.element.scrollLeft=a,this.updateHorizontalOverflowState()):this.element.scrollTo({left:a,behavior:o}))}handleClick(e){const t=e.currentTarget;if(t.hasAttribute("aria-disabled"))return void e.preventDefault();const n=this.tabs.findIndex(e=>e===t);n>=0&&this.setActiveTab(n,!0)}toggleTab(e,t){const n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}toggleTabPanel(e,t){if(!e)return;const n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}activateNthTab(e){this.setActiveTab(e,!0)}handleTabFocus(e){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init();const t=e.currentTarget;t&&this.shouldCenterFocusedTab(t)&&this.scrollTabIntoView(t)}shouldCenterFocusedTab(e){if("function"!=typeof e.matches)return!0;try{return e.matches(":focus-visible")}catch{return!0}}}const ya=[{Module:class{element;config;rovingTabindex;buttons;constructor(e,t){return this.element=e,this.config={...i,...t},this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this}onFocus(e){this.rovingTabindex.isActive||this.rovingTabindex.init();const t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}toggleAccordionItem(e){const t=e.getAttribute("aria-controls"),n=t?this.element.querySelector(`#${t}`):null;if(!n)return;const i=!("true"===e.getAttribute("aria-expanded"));e.setAttribute("aria-expanded",String(i)),i?(n.removeAttribute("hidden"),this.scrollTriggerIntoModalView(e)):n.setAttribute("hidden","")}scrollTriggerIntoModalView(e){const t=e.closest(".modal__dialog");if(!t)return;const n=()=>{const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.getStickyHeaderOffset(t),r=i.top-n.top+t.scrollTop-s-8;t.scrollTo({top:Math.max(0,r),behavior:"smooth"})};"function"!=typeof window.requestAnimationFrame?setTimeout(n,0):window.requestAnimationFrame(n)}getStickyHeaderOffset(e){const t=e.querySelector(".modal__header");if(!t)return 0;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return Math.max(0,i.bottom-n.top)}init(){this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new n(this.buttons,{direction:"vertical"}),this.buttons.forEach(e=>{e.addEventListener("focus",this.onFocus),e.addEventListener("click",this.onClick)})}onClick(e){const t=e.currentTarget;this.toggleAccordionItem(t)}destroy(){this.rovingTabindex.destroy(),this.buttons.forEach(e=>{e.removeEventListener("focus",this.onFocus),e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}},name:"Accordion",selector:"[data-accordion]"},{Module:s,name:"AnchorNavigation",selector:"[data-anchor-navigation]"},{Module:class{element;config;instance;teardownClearButton;constructor(e,t){return this.element=e,this.config={...Hn,...t},this.onPageshow=this.onPageshow.bind(this),this.onClearButtonClick=this.onClearButtonClick.bind(this),this.instance=null,this.teardownClearButton=null,this.element.ODS_Autocomplete=this,this.init().catch(()=>{}),this}async init(){const e=this.element.getAttribute("data-autocomplete-config");let t={};if(e)try{t=JSON.parse(e)}catch{}this.config={...this.config,...t};const n=(this.config.customInputClassName||"").split(/\s+/).filter(Boolean),i=this.config.wrapperClassName.split(/\s+/).filter(Boolean),s=n.includes("input--search-icon")||i.includes("autocomplete__wrapper--search-icon"),r=n.includes("input--search-icon-with-placeholder")||i.includes("autocomplete__wrapper--search-icon-with-placeholder"),o=this.element.classList.contains("is-invalid");this.config.customInputClassName=n.filter(e=>"input--search-icon"!==e&&"input--search-icon-with-placeholder"!==e).join(" "),o&&(this.config.customInputClassName=Bn(this.config.customInputClassName,"is-invalid")),s&&(this.config.wrapperClassName=Bn(this.config.wrapperClassName,"autocomplete__wrapper--search-icon")),r&&(this.config.wrapperClassName=Bn(this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"));const a=(await Promise.resolve().then(function(){return Ea})).default;"SELECT"===this.element.tagName?a.enhanceSelectElement({selectElement:this.element,...this.config}):a({element:this.element,...this.config}),this.initEnhancedControls(r),window.addEventListener("pageshow",this.onPageshow)}getWrapper(){if("SELECT"===this.element.tagName){const e=this.element.previousElementSibling;return e instanceof HTMLElement?e.classList.contains("autocomplete__wrapper")?e:e.querySelector(".autocomplete__wrapper"):null}return this.element.querySelector(".autocomplete__wrapper")}getInput(){return this.getWrapper()?.querySelector(".autocomplete__input")??null}initEnhancedControls(e,t=10){this.getInput()?(this.syncInputState(),e&&this.initClearButton()):t>0&&window.setTimeout(()=>this.initEnhancedControls(e,t-1),0)}syncInputState(){const e=this.getInput();e&&(this.element.classList.contains("is-invalid")&&(e.classList.add("is-invalid"),e.setAttribute("aria-invalid","true")),this.element instanceof HTMLSelectElement&&this.element.disabled&&(e.disabled=!0))}initClearButton(){this.teardownClearButton?.();const e=this.getWrapper(),t=this.getInput();if(!e||!t)return;const n=document.createElement("button");n.type="button",n.className="autocomplete__clear",n.setAttribute("aria-label",this.config.tClearButton());const i=()=>{n.hidden=t.disabled||0===t.value.length},s=()=>{window.setTimeout(i,0)};n.addEventListener("mousedown",this.preventDefault),n.addEventListener("keydown",this.stopPropagation),n.addEventListener("click",this.onClearButtonClick),t.addEventListener("input",i),t.addEventListener("change",i),e.addEventListener("click",s),e.addEventListener("keyup",s),i(),e.appendChild(n),this.teardownClearButton=()=>{n.removeEventListener("mousedown",this.preventDefault),n.removeEventListener("keydown",this.stopPropagation),n.removeEventListener("click",this.onClearButtonClick),t.removeEventListener("input",i),t.removeEventListener("change",i),e.removeEventListener("click",s),e.removeEventListener("keyup",s),n.remove()}}preventDefault(e){e.preventDefault()}stopPropagation(e){e.stopPropagation()}onClearButtonClick(){const e=this.getInput();if(e){if(e.value="",e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),this.element instanceof HTMLSelectElement){const e=Array.from(this.element.options).find(e=>""===e.value);e?e.selected=!0:this.element.selectedIndex=-1,this.element.dispatchEvent(new Event("change",{bubbles:!0}))}this.config.onConfirm?.(""),e.focus()}}onPageshow(e){e.persisted&&window&&window.location.reload()}destroy(){this.teardownClearButton?.(),this.teardownClearButton=null,window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}update(){this.destroy(),this.init().catch(()=>{})}static getInstance(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}},name:"Autocomplete",selector:"[data-autocomplete]"},{Module:class{element;config;instance;constructor(e,t){return this.element=e,this.config={...Ls,...t},this.init(),this.element.ODS_DatePicker=this,this}init(){const e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days");let n={};if(e)try{n=JSON.parse(e)}catch{n={}}this.config={...this.config,...n,...t&&{disabledDayFn:e=>!t.split(",").includes(function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e))}};const i=this.element.getAttribute("data-datepicker-id")||void 0,s=this.element.getAttribute("data-datepicker-name")||i;var r,o;this.instance=(r=this.element,o={id:i,name:s,...this.config},Si(ti(ks,{...o}),r),{destroy(){!function(e){e.__k&&Si(null,e)}(r),Si(ti(Os,{...o}),r)}})}destroy(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}},name:"DatePicker",selector:"[data-datepicker]"},{Module:class{element;config;trigger;instance;transitioner;focusableElements;constructor(e,t={}){return e.ODS_Dropdown?e.ODS_Dropdown:(this.element=e,this.config={...Mn,...t},this.config.popperOptions={...Mn.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...Mn.popperOptions.modifiers||[],...t?.popperOptions?.modifiers||[]],this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)}static getInstance(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}init(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));const e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=Pt(this.trigger,this.element,this.config.popperOptions),this.transitioner=ge({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}handleVisibility(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}handleClick(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}handleKeyPress(e){if(t.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}show(){this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=()=>this.update()}hide(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}update(){this.instance.forceUpdate()}destroy(){this.trigger.removeEventListener("click",this.handleVisibility,!0),this.hide(),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}},name:"Dropdown",selector:"[data-dropdown]"},{Module:class{element;constructor(e){this.element=e,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()}toggle(){const e=this.element.getAttribute("data-toggle-group");e&&this.syncGroup(e)}syncGroup(e){const t=this.element.open;document.querySelectorAll(`[data-toggle-group="${e}"][data-expander]`).forEach(e=>{e!==this.element&&e.open!==t&&(e.open=t)})}init(){this.element.addEventListener("toggle",this.toggle)}update(){this.destroy(),this.init()}destroy(){this.element.removeEventListener("toggle",this.toggle)}static getInstance(e){return e&&e.ODS_Expander?e.ODS_Expander:null}},name:"Expander",selector:"[data-expander]"},{Module:class{element;config;controlElement=null;indicatorElements=[];constructor(e,t){return this.element=e,this.config={...r,...t},this.highlightIndicators=this.highlightIndicators.bind(this),this.unhighlightIndicators=this.unhighlightIndicators.bind(this),this.element.ODS_BlockAction=this,this.init(),this}init(){this.controlElement=this.element.querySelector(this.config.controlSelector),this.indicatorElements=Array.from(this.element.querySelectorAll(this.config.indicatorSelector)),!this.controlElement||this.indicatorElements.length<1||(this.controlElement.addEventListener("mouseenter",this.highlightIndicators),this.controlElement.addEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.addEventListener("focus",this.highlightIndicators),this.controlElement.addEventListener("blur",this.unhighlightIndicators))}highlightIndicators(){this.indicatorElements.forEach(e=>e.classList.add(this.config.activeClass))}unhighlightIndicators(){this.indicatorElements.forEach(e=>e.classList.remove(this.config.activeClass))}destroy(){this.indicatorElements.forEach(e=>e.classList.remove(this.config.activeClass)),this.controlElement&&(this.controlElement.removeEventListener("mouseenter",this.highlightIndicators),this.controlElement.removeEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.removeEventListener("focus",this.highlightIndicators),this.controlElement.removeEventListener("blur",this.unhighlightIndicators)),this.controlElement=null,this.indicatorElements=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_BlockAction?e.ODS_BlockAction:null}},name:"BlockAction",selector:"[data-block-action]"},{Module:sn,name:"Carousel",selector:"[data-carousel]"},{Module:class{element;config;viewport;instance;tabs=[];_dotAnimationJustStarted=!1;_isDragging=!1;resizeRafId;_boundTabClick;_boundPrevClick;_boundNextClick;_boundPlayPauseClick;_boundWindowResize;constructor(e,t){return this.element=e,this.config={...wn,...t},this.element.ODS_CarouselHero=this,this._boundTabClick=this._onTabClick.bind(this),this._boundPrevClick=this._onUserNavigation.bind(this),this._boundNextClick=this._onUserNavigation.bind(this),this._boundPlayPauseClick=this._onPlayPauseClick.bind(this),this._boundWindowResize=this._onWindowResize.bind(this),this.init(),this}init(){this.getElements(),this.setupConfig(),this.createSwiper(),this.setupEventListeners(),this.renderPaginationDots(),this.updateStates(),this.updatePlayPauseIcon(),this.hasAutoplay()&&this.isAutoplayRunning()&&this.startDotAnimation(),window.addEventListener("resize",this._boundWindowResize)}_onWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateStates(),this.updatePlayPauseIcon()))})}getElements(){this.viewport=this.element.querySelector(pn);const e=this.element.querySelector(vn);e&&(this.tabs=Array.from(e.querySelectorAll(bn)))}setupConfig(){const e=this.element.hasAttribute("data-interval")&&parseInt(this.element.getAttribute("data-interval"))||0;if("object"==typeof this.config.a11y&&null!==this.config.a11y&&(this.config.a11y={...this.config.a11y,slideRole:this.tabs.length>0?"tabpanel":"group"}),this.element.hasAttribute("data-swiper-options"))try{const e=JSON.parse(this.element.getAttribute("data-swiper-options"));this.config={...this.config,...e}}catch(e){}this.config.loop=!1,this.config.rewind=!0,e>=1e3&&(this.config.autoplay={delay:e,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0,stopOnLastSlide:!1},this.element.classList.add(un))}createSwiper(){const e=this.viewport.querySelectorAll(`.${on}`).length>1;this.instance=new ne(this.viewport,{...this.config,modules:[ce,he,fe,re,me],navigation:{nextEl:this.element.querySelector(mn),prevEl:this.element.querySelector(fn)},pagination:!!e&&{...this.config.pagination,el:this.element.querySelector(yn)},on:{slideChange:()=>{this.updateStates(),this.isAutoplayRunning()?this.restartDotAnimation():this.stopDotAnimation()},autoplayStart:()=>{this._onAutoplayStart()},autoplayStop:()=>{this._onAutoplayStop()},touchStart:()=>{this._isDragging=!0,this._stopAutoplayIfRunning()},touchEnd:()=>{this._isDragging=!1}}}),this.updatePlayPauseIcon()}setupEventListeners(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick),e.addEventListener("click",this._boundTabClick)});const e=this.element.querySelector(gn);e&&(e.removeEventListener("click",this._boundPlayPauseClick),e.addEventListener("click",this._boundPlayPauseClick));const t=this.element.querySelector(fn),n=this.element.querySelector(mn);t&&(t.removeEventListener("click",this._boundPrevClick),t.addEventListener("click",this._boundPrevClick)),n&&(n.removeEventListener("click",this._boundNextClick),n.addEventListener("click",this._boundNextClick))}_onUserNavigation(){this._stopAutoplayIfRunning(),this.stopDotAnimation()}_onTabClick(e){e.preventDefault();const t=e.currentTarget,n=this.tabs.indexOf(t);-1!==n&&n!==this.instance?.realIndex&&(this._onUserNavigation(),this.goToSlide(n))}_onPlayPauseClick(){this.toggleAutoplay()}isAutoplayRunning(){return!(!this.instance?.autoplay||!this.instance.autoplay.running)}_stopAutoplayIfRunning(){this.isAutoplayRunning()&&this.instance.autoplay.stop()}_onAutoplayStart(){this.element.classList.add(un),this.element.classList.remove(hn),this.updatePlayPauseIcon(),this.startDotAnimation()}_onAutoplayStop(){this.element.classList.remove(un),this.element.classList.add(hn),this.updatePlayPauseIcon(),this.stopDotAnimation()}toggleAutoplay(){this.instance&&this.instance.autoplay&&(this.isAutoplayRunning()?this.instance.autoplay.stop():(this.updateStates(),setTimeout(()=>{this.instance&&this.instance.autoplay&&this.instance.autoplay.start()},10)))}goToSlide(e){this.instance&&this.instance.realIndex!==e&&(this.instance.params.loop?this.instance.slideToLoop(e):this.instance.slideTo(e))}updateStates(){if(!this.instance)return;const e=this.instance.realIndex??this.instance.activeIndex??0;this.tabs.forEach((t,n)=>{const i=n===e;t.classList.toggle(dn,i),t.setAttribute("aria-selected",String(i)),t.setAttribute("tabindex",i?"0":"-1")}),this.scrollActiveTabIntoView(e),this.updatePaginationBullets(e)}updatePaginationBullets(e){const t=this.element.querySelector(yn);t&&t.querySelectorAll(`.${an}`).forEach((t,n)=>{const i=n===e;if(t.classList.toggle("is-active",i),!this.hasAutoplay()){const e=t.querySelector(`.${ln}`);e&&(e.style.display=i?"block":"none")}})}scrollActiveTabIntoView(e){if(!this.tabs.length||e<0||e>=this.tabs.length)return;const t=this.tabs[e],n=this.element.querySelector(vn);if(!n||!t)return;const i=n.getBoundingClientRect(),s=t.getBoundingClientRect(),r=i.width-56;if(s.right>i.left+r||s.left<i.left){const e=s.left-i.left-r/2+s.width/2;n.scrollBy({left:e,behavior:"smooth"})}}updatePlayPauseIcon(){const e=this.element.querySelector(gn);if(!e)return;const t=e.querySelector("use");if(t){const e=this.isAutoplayRunning()?"pause":"play",n=t.getAttribute("xlink:href")||"";if(!n.endsWith(`#${e}`)){const i=n.replace(/#[\w-]+$/,`#${e}`);t.setAttribute("xlink:href",i)}}}renderPaginationDots(){this._getPaginationButtons().forEach(e=>{const t=this.createSvgDot();e.innerHTML="",e.appendChild(t)})}startDotAnimation(e=!1){if(!this.hasAutoplay())return;if(!e&&!this.isAutoplayRunning())return;if(this._dotAnimationJustStarted)return;this._dotAnimationJustStarted=!0;const t=this._getActiveBulletButton();if(!t)return void(this._dotAnimationJustStarted=!1);const n=t.querySelector(`.${ln}`);if(!n)return void(this._dotAnimationJustStarted=!1);const i=n.querySelector("circle");if(!i)return void(this._dotAnimationJustStarted=!1);const s=this.getAnimationDuration();i.style.animation="none",t.offsetHeight,i.style.animation=`countdown linear ${s}ms 1 forwards`,this._dotAnimationJustStarted=!1}restartDotAnimation(){this.stopDotAnimation(),setTimeout(()=>{this.startDotAnimation()},50)}stopDotAnimation(){this._getPaginationButtons().forEach(e=>{const t=e.querySelector(`.${ln}`);if(!t)return;const n=t.querySelector("circle");n&&(n.style.animation="none")}),this._dotAnimationJustStarted=!1}_getPaginationButtons(){return Array.from(this.element.querySelectorAll(`${yn} > *`))}_getActiveBulletClass(){const e=this.instance?.params?.pagination;if(e&&"object"==typeof e&&e.bulletActiveClass)return String(e.bulletActiveClass);const t=this.config.pagination;return t&&"object"==typeof t&&t.bulletActiveClass?String(t.bulletActiveClass):dn}_getActiveBulletButton(){const e=this._getActiveBulletClass();return this.element.querySelector(`${yn} .${e}`)}createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",ln),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12");const n=document.createElementNS(e,"circle");return n.setAttribute("class",cn),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}hasAutoplay(){return!!(this.config.autoplay&&"object"==typeof this.config.autoplay&&this.config.autoplay.delay>=1e3)}getAnimationDuration(){return this.config.autoplay?.delay||0}destroy(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick)});const e=this.element.querySelector(gn);e&&e.removeEventListener("click",this._boundPlayPauseClick);const t=this.element.querySelector(fn),n=this.element.querySelector(mn);t&&t.removeEventListener("click",this._boundPrevClick),n&&n.removeEventListener("click",this._boundNextClick),window.removeEventListener("resize",this._boundWindowResize),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.instance.destroy(!0,!0),delete this.element.ODS_CarouselHero}static getInstance(e){return e.ODS_CarouselHero||null}},name:"CarouselHero",selector:"[data-carousel-hero]"},{Module:Dn,name:"CarouselPromotions",selector:"[data-carousel-promotions]"},{Module:class{element;config;bodies=[];buttons=[];images=[];constructor(e,t){return this.element=e,this.config={...zn,...t},this.element.ODS_FeatureAccordion=this,this.init(),this}init(){this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll("[data-feature-accordion-image]")),this.setActive(0),this.buttons.forEach(e=>{e.addEventListener("click",this.onClick)})}onClick=e=>{const t=e.currentTarget,n=this.buttons.indexOf(t);this.setActive(n)};setActive(e){if(e<0||e>=this.buttons.length)return;this.bodies.forEach(e=>{e.setAttribute("hidden",""),e.classList.remove("is-active")}),this.buttons.forEach(e=>{const t=e.closest(".feature-accordion__item");t?.classList.remove("is-active"),Rn({element:e,attribute:"aria-expanded",value:"false"})});const t=this.buttons[e],n=t.getAttribute("aria-controls"),i=n?document.getElementById(n):null,s=t.closest(".feature-accordion__item");i&&(i.removeAttribute("hidden"),i.classList.add("is-active")),s&&s.classList.add("is-active"),Rn({element:t,attribute:"aria-expanded",value:"true"}),this.images.forEach((t,n)=>{t.classList.toggle("hide",n!==e)})}destroy(){this.buttons.forEach(e=>{e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}},name:"FeatureAccordion",selector:"[data-feature-accordion]"},{Module:class{element;config;input;files;results;removeButtons;constructor(e,t){return this.element=e,this.config={...qr,...t},this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this}init(){this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.preventDefaults,!1),document.body.addEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.addEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}onInputChange(){return!(!this.input||!this.results)&&(this.files=Array.from(this.input.files??[]),!!this.files&&(this.results.innerHTML="",this.files.map((e,t)=>this.config.fileTemplate(jr.sanitize(e.name,{ALLOWED_TAGS:[]}),t)).forEach(e=>{this.results.appendChild(jr.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(e=>e.addEventListener("click",this.onRemoveButtonClick))))}onDrop(e){this.input&&(this.input.files=e?.dataTransfer?.files||(new DataTransfer).files,this.onInputChange())}onRemoveButtonClick(e){if(!this.input)return;const t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(e=>t.items.add(e)),this.input.files=t.files,this.onInputChange()}highlight(){this.element.classList.add(this.config.dragDropClassname)}unhighlight(){this.element.classList.remove(this.config.dragDropClassname)}preventDefaults(e){e.preventDefault(),e.stopPropagation()}destroy(){this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.preventDefaults,!1),document.body.removeEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.removeEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}update(){this.destroy(),this.init()}},name:"File",selector:"[data-file-input]"},{Module:class{element;config;interval;delay;currentMessageIndex;messages;constructor(e,t){this.element=e,this.config={...jo,...t},this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()}initBody(){const e=this.element.getAttribute("data-loader-messages");this.messages=e?JSON.parse(e):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,this.config.cycleDuration??jo.cycleDuration))}init(){this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(()=>{this.element.parentNode&&this.element.parentNode instanceof HTMLElement&&this.element.parentNode.classList.remove("hide"),this.initBody()},this.config.delay??jo.delay):this.initBody()}destroy(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}cycleMessages(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}static getInstance(e){return e&&e.ODS_Loader?e.ODS_Loader:null}},name:"Loader",selector:"[data-loader]"},{Module:ma,name:"Modal",selector:"[data-modal]"},{Module:class{constructor(e){this.element=e,this.children=null,this.updateHeight=this.updateHeight.bind(this),this.element.ODS_SameHeight=this,this.intervalId=null,this.init()}temporarilyShowHiddenElements(){this.originalDisplayStates=[],this.children.forEach(e=>{const t=e.closest('[role="tabpanel"]'),n=e.closest('[role="dialog"]');t&&t.hasAttribute("hidden")&&(this.originalDisplayStates.push({element:t,display:t.style.display}),t.style.display="block",t.removeAttribute("hidden")),n&&n.hasAttribute("aria-hidden")&&(this.originalDisplayStates.push({element:n,display:n.style.display}),n.style.display="block",n.removeAttribute("aria-hidden"))})}restoreHiddenElements(){this.originalDisplayStates.forEach(({element:e,display:t})=>{e.style.display=t,"tabpanel"===e.getAttribute("role")?e.setAttribute("hidden",!0):"dialog"===e.getAttribute("role")&&e.setAttribute("aria-hidden",!0)})}getCarouselElement(){const e=`[data-carousel], .${Vt}`;return this.element.matches(e)?this.element:this.element.closest(e)}isInsideOrIsCarousel(){return this.getCarouselElement()}getCarouselSlides(){const e=this.getCarouselElement();return e?e.querySelectorAll(`.${Wt}`):[]}updateHeight(){this.temporarilyShowHiddenElements();const e=this.element.querySelectorAll('[data-same-height-child="true"]');e.forEach(e=>{e.style.height&&(e.style.height="")});const t=this.groupElementsByTypeAndPosition(e),n=this.isInsideOrIsCarousel();for(const[e,i]of Object.entries(t))i.length&&this.groupElementsIntoRows(i,n).forEach(e=>{if(e.length>1){const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})}else e.forEach(e=>{e.style.height&&(e.style.height=null)})});this.restoreHiddenElements()}groupElementsIntoRows(e,t){if(t)return[e];const n=[];let i=[],s=e[0].getBoundingClientRect().top;for(const t of e){const e=t.getBoundingClientRect().top;e===s?i.push(t):(n.push(i),i=[t],s=e)}return n.push(i),n}groupElementsByTypeAndPosition(e){const t={};return e.forEach(e=>{const n=e.getAttribute("data-same-height-group")||"default";t[n]||(t[n]=[]),t[n].push(e)}),t}init(){this.children=this.element.querySelectorAll('[data-same-height-child="true"]');const e=[];this.children.forEach(t=>{t.querySelectorAll("img").forEach(t=>{t.complete||e.push(t)})});const t=this.isInsideOrIsCarousel(),n=()=>{t?this.waitForCarouselThenUpdate(t):this.updateHeight()};0===e.length?n():this.waitForImagesToLoad(e,n),window.addEventListener("resize",this.updateHeight),t&&this.setupCarouselListeners(t)}waitForCarouselThenUpdate(e){e.ODS_Carousel?.instance?requestAnimationFrame(()=>{this.updateHeight()}):setTimeout(()=>this.waitForCarouselThenUpdate(e),50)}waitForImagesToLoad(e,t){let n=0;this.intervalId=setInterval(()=>{let i=!1;e.forEach((e,t,n)=>{e.complete&&(n.splice(t,1),i=!0)}),i&&this.updateHeight&&t(),(++n>=15||0===e.length)&&(e.length&&this.updateHeight&&t(),window.clearInterval(this.intervalId))},400)}setupCarouselListeners(e){if(e.ODS_Carousel?.instance){const{instance:t}=e.ODS_Carousel;["resize","update","slideChange"].forEach(e=>{t.on(e,()=>{requestAnimationFrame(()=>{this.updateHeight()})})})}else setTimeout(()=>this.setupCarouselListeners(e),50)}update(){this.destroy(),this.init()}destroy(){window.removeEventListener("resize",this.updateHeight),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}static getInstance(e){return e?.ODS_SameHeight||null}},name:"SameHeight",selector:"[data-same-height]"},{Module:class{element;config;instance;inputs;outputs;constructor(e,t){return this.element=e,this.config={...Vo,...t},this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this}init(){const e=this.element.getAttribute("data-rangeslider-config");let t={};if(e)try{t=JSON.parse(e)}catch{}if(this.config={...this.config,...t},this.config.format=Ht(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,this.instance?.destroy&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=$o(this.element,this.config),this.inputs=Array.from(document.querySelectorAll(`input[name^=${this.element.getAttribute("id")}-]`)),this.outputs=this.inputs.map(e=>{const t=document.getElementById(`${e.getAttribute("id")}-output`);if(t){const e=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&e?Ht(JSON.parse(e)):void 0}}return!1}),this.instance.on("update",(e,t)=>{this.handleSliderUpdate(e.map(String),t)})}update(){this.instance?.destroy(),this.init()}destroy(){this.instance?.off("update"),this.instance?.destroy(),this.element.ODS_RangeSlider=null}static getInstance(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}handleSliderUpdate=(e,t)=>{const n=e[t];if(this.inputs[t]&&(this.inputs[t].value=n),this.outputs[t]){const e=this.outputs[t];e&&e.format?e.element.innerText=e.format.to(this.config.format.from(n)):e&&(e.element.innerText=n)}}},name:"RangeSlider",selector:"[data-rangeslider]"},{Module:class{element;config;input;numberDisplay;add;remove;constructor(e,t){this.element=e,this.config={...Wr,...t},this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()}handleInputClick(){this.input&&this.input.select()}handleButtonState(){const{min:e,max:t}=this.config,n=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);this.add&&"number"==typeof t&&n>=t?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof e&&n<=e?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}handleInputChange(e){const{min:t,max:n}=this.config,i=e.target;i&&(t&&Number(i.value)<=t&&(i.value=String(t)),n&&Number(i.value)>=n&&(i.value=String(n)))}handleButtonClick(e){const{min:t,max:n}=this.config,i=e.target;let s=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);if(i.classList.contains("input-stepper__button--minus")){if(t&&s<=t){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s-=1}if(i.classList.contains("input-stepper__button--plus")){if(n&&s>=n){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(s):this.numberDisplay&&(this.numberDisplay.textContent=String(s)),this.handleButtonState()}init(){const e=this.element.getAttribute("data-inputstepper");let t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch{t={}}this.config={...this.config,...t},this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");const{defaultValue:n}=this.config;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}update(){this.destroy(),this.init()}destroy(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}static getInstance(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}},name:"InputStepper",selector:"[data-inputstepper]"},{Module:class{element;config;expandButtons;scrollableContainer;resizeObserver;constructor(e,t){return this.element=e,this.config={...ga,...t},this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(e=>{if(!this.scrollableContainer)return;const t=this.scrollableContainer.getBoundingClientRect();e.forEach(e=>{e.contentRect.width>t.width?this.scrollableContainer?.setAttribute("tabindex","0"):this.scrollableContainer?.removeAttribute("tabindex")})}),this.init(),this}addRole(e,t){Array.from(this.element.querySelectorAll(e)).forEach(e=>{e.setAttribute("role",t)})}addARIA(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){}}onExpandClick(e){const t=e.currentTarget,n=t.getAttribute("aria-controls")??"",i=this.element.querySelectorAll(n.split(" ").map(e=>`#${e}`).join(","));Rn({element:t,attribute:"aria-expanded"}),i.forEach(e=>{Rn({element:e,attribute:"hidden"})})}init(){this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(e=>{e.addEventListener("click",this.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}maybeInitScrollable(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}destroy(){this.expandButtons.forEach(e=>{e.removeEventListener("click",this.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Table?e.ODS_Table:null}},name:"Table",selector:"[data-table]"},{Module:ba,name:"Tabs",selector:"[data-tabs]"},{Module:Nn,name:"Toggle",selector:"[data-toggle]"},{Module:$t,name:"Tooltip",selector:"[data-tooltip]"}];window.ODS=window.ODS||{modules:{},instances:{},moduleSelectorPairs:{}},window.ODS.initModulesWithin=function(e){const t={};return window.ODS.moduleSelectorPairs.forEach(n=>{const i=Bt(n.name),s=Array.from(e.querySelectorAll(n.selector)),r=`ODS_${n.name}`,o=s.filter(e=>!e[r]);window&&window.ODS&&window.ODS.instances[i]&&(window.ODS.instances[i]=window.ODS.instances[i].filter(e=>{const t=document.contains(e.element);return t||e.destroy?.(),t}),window.ODS.instances[i].forEach(e=>{o.forEach((t,n)=>{t.isSameNode(e.element)&&o.splice(n,1)})})),o.length&&(Array.isArray(window.ODS.instances[i])||(window.ODS.instances[i]=[]),t[i]=o.map(e=>new n.Module(e)),window.ODS.instances[i]=[...window.ODS.instances[i],...t[i]])}),t},window.ODS.destroyModulesWithin=function(e,t=!1){const n={};return Object.keys(window.ODS.instances).forEach(i=>{window.ODS.instances[i].forEach(s=>{"object"!=typeof n[i]&&(n[i]=[]);let r=e.contains(s.element);"modal"===i?r=s.instance?._openers.every(t=>e.contains(t)):"tooltip"===i&&(r=e.contains(s.trigger)),r&&(s.destroy(),n[i].push(s)),r&&t&&["modal","tooltip"].includes(i)&&s.element.remove()}),window.ODS.instances[i]=window.ODS.instances[i].filter(e=>!n[i].includes(e))}),n},window.ODS.moduleSelectorPairs=ya,window.addEventListener("DOMContentLoaded",()=>{ya.forEach(e=>{window.ODS.modules[e.name]=e.Module,window.ODS.instances[Bt(e.name)]=function(e,t,n={}){return Array.from(document.querySelectorAll(t)).map(t=>new e(t,n))}(e.Module,e.selector)}),window.dispatchEvent(new Event("ODSLoaded"))});var wa,_a={exports:{}},Sa=(wa||(wa=1,window,_a.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var i=n(1),s=n(6),r=n(7),o=n(16),a=n(18),l="prototype",c=function(e,t,n){var d,u,h,p,f=e&c.F,m=e&c.G,g=e&c.S,v=e&c.P,b=e&c.B,y=m?i:g?i[t]||(i[t]={}):(i[t]||{})[l],w=m?s:s[t]||(s[t]={}),_=w[l]||(w[l]={});for(d in m&&(n=t),n)h=((u=!f&&y&&void 0!==y[d])?y:n)[d],p=b&&u?a(h,i):v&&"function"==typeof h?a(Function.call,h):h,y&&o(y,d,h,e&c.U),w[d]!=h&&r(w,d,p),v&&_[d]!=h&&(_[d]=h)};i.core=s,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return a}),n.d(t,"createElement",function(){return a}),n.d(t,"cloneElement",function(){return d}),n.d(t,"Component",function(){return I}),n.d(t,"render",function(){return N}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return s});var i=function(){},s={},r=[],o=[];function a(e,t){var n,a,l,c,d=o;for(c=arguments.length;2<c--;)r.push(arguments[c]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((a=r.pop())&&void 0!==a.pop)for(c=a.length;c--;)r.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&n?d[d.length-1]+=a:d===o?d=[a]:d.push(a),n=l;var u=new i;return u.nodeName=e,u.children=d,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(u),u}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function d(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==h.push(e)&&(s.debounceRendering||c)(f)}function f(){var e,t=h;for(h=[];e=t.pop();)e._dirty&&M(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||s)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var r in n)r in i||(e.style[r]="");for(var r in i)e.style[r]="number"==typeof i[r]&&!1===u.test(r)?i[r]+"px":i[r]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,o):e.removeEventListener(t,y,o),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var w=[],_=0,S=!1,E=!1;function x(){for(var e;e=w.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,n,i,s){var r=e,o=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),T(e,!0))),r.__preactattr_=!0,r;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,i){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!i||s._component)?(D(s,c,3,n,i),e=s.base):(r&&!a&&(P(r),e=o=null),s=O(t.nodeName,c,n),e&&!s.nextBase&&(s.nextBase=e,o=null),D(s,c,1,n,i),e=s.base,o&&e!==o&&(o._component=null,T(o,!1))),e}(e,t,n,i);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!m(e,a))&&(r=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,S),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),T(e,!0)}var l=r.firstChild,c=r.__preactattr_,d=t.children;if(null==c){c=r.__preactattr_={};for(var u=r.attributes,h=u.length;h--;)c[u[h].name]=u[h].value}return!E&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&function(e,t,n,i,s){var r,o,a,l,c,d,u,h,p=e.childNodes,f=[],g={},b=0,y=0,w=p.length,_=0,S=t?t.length:0;if(0!==w)for(var E=0;E<w;E++){var x=p[E],A=x.__preactattr_;null!=(k=S&&A?x._component?x._component.__key:A.key:null)?(b++,g[k]=x):(A||(void 0!==x.splitText?!s||x.nodeValue.trim():s))&&(f[_++]=x)}if(0!==S)for(E=0;E<S;E++){var k;if(c=null,null!=(k=(l=t[E]).key))b&&void 0!==g[k]&&(c=g[k],g[k]=void 0,b--);else if(y<_)for(r=y;r<_;r++)if(void 0!==f[r]&&(d=o=f[r],h=s,"string"==typeof(u=l)||"number"==typeof u?void 0!==d.splitText:"string"==typeof u.nodeName?!d._componentConstructor&&m(d,u.nodeName):h||d._componentConstructor===u.nodeName)){c=o,f[r]=void 0,r===_-1&&_--,r===y&&y++;break}c=C(c,l,n,i),a=p[E],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?v(a):e.insertBefore(c,a))}if(b)for(var E in g)void 0!==g[E]&&T(g[E],!1);for(;y<=_;)void 0!==(c=f[_--])&&T(c,!1)}(r,d,n,i,E||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,S);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],S)}(r,t.attributes,c),S=o,r}function T(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||v(e),A(e))}function A(e){for(e=e.lastChild;e;){var t=e.previousSibling;T(e,!0),e=t}}var k=[];function O(e,t,n){var i,s=k.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),I.call(i,t,n)):((i=new I(t,n)).constructor=e,i.render=L);s--;)if(k[s].constructor===e)return i.nextBase=k[s].nextBase,k.splice(s,1),i;return i}function L(e,t,n){return this.constructor(e,n)}function D(e,t,n,i,r){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===s.syncComponentUpdates&&e.base?p(e):M(e,1,r)),e.__ref&&e.__ref(e))}function M(e,t,n,i){if(!e._disable){var r,o,a,c=e.props,d=e.state,u=e.context,h=e.prevProps||c,p=e.prevState||d,f=e.prevContext||u,m=e.base,v=e.nextBase,b=m||v,y=e._component,A=!1,k=f;if(e.constructor.getDerivedStateFromProps&&(d=l(l({},d),e.constructor.getDerivedStateFromProps(c,d)),e.state=d),m&&(e.props=h,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,d,u)?A=!0:e.componentWillUpdate&&e.componentWillUpdate(c,d,u),e.props=c,e.state=d,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!A){r=e.render(c,d,u),e.getChildContext&&(u=l(l({},u),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(k=e.getSnapshotBeforeUpdate(h,p));var L,I,N=r&&r.nodeName;if("function"==typeof N){var R=g(r);(o=y)&&o.constructor===N&&R.key==o.__key?D(o,R,1,u,!1):(L=o,e._component=o=O(N,R,u),o.nextBase=o.nextBase||v,o._parentComponent=e,D(o,R,0,u,!1),M(o,1,n,!0)),I=o.base}else a=b,(L=y)&&(a=e._component=null),(b||1===t)&&(a&&(a._component=null),I=function(e,t,n,i,s,r){_++||(S=null!=s&&void 0!==s.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=C(e,t,n,i,r);return s&&o.parentNode!==s&&s.appendChild(o),--_||(E=!1),o}(a,r,u,n||!m,b&&b.parentNode,!0));if(b&&I!==b&&o!==y){var z=b.parentNode;z&&I!==z&&(z.replaceChild(I,b),L||(b._component=null,T(b,!1)))}if(L&&P(L),(e.base=I)&&!i){for(var H=e,B=e;B=B._parentComponent;)(H=B).base=I;I._component=H,I._componentConstructor=H.constructor}}for(!m||n?w.unshift(e):A||(e.componentDidUpdate&&e.componentDidUpdate(h,p,k),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);_||i||x()}}function P(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),v(e.nextBase=t),k.push(e),A(t)),e.__ref&&e.__ref(null)}function I(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,n){return function(e,t,n,i,s,r){_++||(S=null!=s&&void 0!==s.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=C(e,t,n,i,r);return s&&o.parentNode!==s&&s.appendChild(o),--_||(E=!1,x()),o}(n,e,{},!1,t,!1)}l(I.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),M(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:d,Component:I,render:N,rerender:f,options:s};t.default=R},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),s=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),s=n(38),r=n(39),o=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),s)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),s=n(1).document,r=i(s)&&i(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,n){var i=n(1),s=n(7),r=n(17),o=n(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||s(n,"name",t)),e[t]!==n&&(l&&(r(n,o)||s(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:s(e,t,n):(delete e[t],s(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[o]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,s){return e.call(t,n,i,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),s=n(28);e.exports=Object.keys||function(e){return i(e,s)}},function(e,t,n){var i=n(11),s=n(12);e.exports=function(e){return i(s(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),s=n(24),r=n(43);e.exports=function(e){return function(t,n,o){var a,l=i(t),c=s(l.length),d=r(o,c);if(e&&n!=n){for(;d<c;)if((a=l[d++])!=a)return!0}else for(;d<c;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var i=n(25),s=Math.min;e.exports=function(e){return 0<e?s(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),s=n(10);e.exports=function(e){return i[e]||(i[e]=s(e))}},function(e,t,n){var i=n(6),s=n(1),r="__core-js_shared__",o=s[r]||(s[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||n(3)&&i(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),s=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(18),s=n(11),r=n(29),o=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,d=4==e,u=6==e,h=5==e||u,p=t||a;return function(t,a,f){for(var m,g,v=r(t),b=s(v),y=i(a,f,3),w=o(b.length),_=0,S=n?p(t,w):l?p(t,0):void 0;_<w;_++)if((h||_ in b)&&(g=y(m=b[_],_,v),e))if(n)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:S.push(m)}else if(d)return!1;return u?-1:c||d?d:S}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),s=n(10),r=n(1).Symbol,o="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=o&&r[e]||(o?r:s)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),s=n(23)(!1),r=[].indexOf,o=!!r&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(o||!n(13)(r)),"Array",{indexOf:function(e){return o?r.apply(this,arguments)||0:s(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),s=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function r(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=o(e.source)),(0,i.render)((0,i.createElement)(s.default,e),e.element)}var o=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};r.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options.selectedIndex,i=0<=n?e.selectElement.options[n]:null;e.defaultValue=i?i.textContent||i.innerText:""}if(void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0),void 0===e.autocomplete){var s=e.selectElement.getAttribute("autocomplete");null!==s&&(e.autocomplete=s)}var o=document.createElement("div");e.selectElement.parentNode.insertBefore(o,e.selectElement),r(Object.assign({},e,{element:o})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=r;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,s;if(t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!i(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),s=n(45),r=n(46),o=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=o(e),l=arguments.length,c=1,d=s.f,u=r.f;c<l;)for(var h,p=a(arguments[c++]),f=d?i(p).concat(d(p)):i(p),m=f.length,g=0;g<m;)u.call(p,h=f[g++])&&(n[h]=p[h]);return n}:l},function(e,t,n){var i=n(17),s=n(21),r=n(23)(!1),o=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=s(e),l=0,c=[];for(n in a)n!=o&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?s(e+t,0):r(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),s=n(33),r=n(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),s=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),s=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function d(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var u=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,s=t.focused!==n;s&&!i&&this.elementReferences[n].focus();var r=-1===n,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[n];a.setSelectionRange(0,a.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,s=n.query,r=n.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(i[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,s=n.menuOpen,r=n.options,o=n.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&a||!c&&!l){var u=s&&d()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(r[o])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,s=t.options,r=t.query,o=t.selected,a=0<=n;if(d()&&!e.relatedTarget&&!a&&this.hasAutoselect()){var l=this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!a){var c=i&&d(),u=d()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:c,query:u})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,s=n.source,r=n.showAllValues,o=this.state.searchOnInteraction,a=this.hasAutoselect(),l=e.target.value,c=0===l.length,d=o||this.state.query.length!==l.length,u=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),r||!c&&d&&u?s(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:a&&n?0:-1,validChoiceMade:!1}})}):!c&&u||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!i&&n.length>=r&&0<s.length;o?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,s=n.options,r=n.selected;r!==s.length-1&&i&&this.handleOptionFocus(r+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,r=n.cssNamespace,o=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,u=n.menuClassName,h=n.displayMenu,p=n.enterKeyHint,f=n.autocomplete,m=n.id,g=n.minLength,v=n.name,b=n.placeholder,y=n.required,w=n.showAllValues,_=n.tNoResults,S=n.tStatusQueryTooShort,E=n.tStatusNoResults,x=n.tStatusSelectedOption,C=n.tStatusResults,T=n.tAssistiveHint,A=n.dropdownArrow,k=this.state,O=k.focused,L=k.hovered,D=k.menuOpen,M=k.options,P=k.query,I=k.selected,N=k.ariaHint,R=k.validChoiceMade,z=this.hasAutoselect(),H=-1===O,B=0===M.length,F=0!==P.length,$=P.length>=g,V=this.props.showNoOptionsFound&&H&&B&&F&&$,j=r+"__wrapper"+(l?" "+l:""),q=r+"__input",W=null!==O?" "+q+"--focused":"",U=this.props.showAllValues?" "+q+"--show-all-values":" "+q+"--default",G=r+"__dropdown-arrow-down",Y=-1!==O&&null!==O,X=r+"__menu",K=X+"--"+h,J=X+"--"+(D||V?"visible":"hidden"),Q=r+"__option",Z=r+"__hint",ee=this.templateInputValue(M[I]),te=ee&&0===ee.toLowerCase().indexOf(P.toLowerCase())&&z?P+ee.substr(P.length):"",ne=m+"__assistiveHint",ie=N?{"aria-describedby":ne}:null;return w&&"string"==typeof(e=A({className:G}))&&(e=(0,i.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:j,onKeyDown:this.handleKeyDown},(0,i.createElement)(s.default,{id:m,length:M.length,queryLength:P.length,minQueryLength:g,selectedOption:this.templateInputValue(M[I]),selectedOptionIndex:I,validChoiceMade:R,isInFocus:null!==this.state.focused,tQueryTooShort:S,tNoResults:E,tSelectedOption:x,tResults:C}),te&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Z,readonly:!0,tabIndex:"-1",value:te})),(0,i.createElement)("input",a({enterkeyhint:p||(d()&&this.hasAutoselect()?"done":""),"aria-expanded":D?"true":"false","aria-activedescendant":!!Y&&m+"__option--"+O,"aria-owns":m+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ie,{autoComplete:f,className:""+q+W+U+(o?" "+o:""),id:m,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:b,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:y,value:P})),e,(0,i.createElement)("ul",{className:X+" "+K+" "+J+(u?" "+u:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:m+"__listbox",role:"listbox"},M.map(function(e,n){var s=(-1===O?I===n:O===n)&&null===L?" "+Q+"--focused":"",r=n%2?" "+Q+"--odd":"",o=d()?"<span id="+m+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+M.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":O===n?"true":"false",className:""+Q+s+r+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+o},id:m+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":M.length})}),V&&(0,i.createElement)("li",{className:Q+(c?" "+c:"")+" "+Q+"--no-results"},_())),(0,i.createElement)("span",{id:ne,style:{display:"none"}},T()))},t}(i.Component);(t.default=u).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",autocomplete:"off",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:r.default}},function(e,t,n){var i=n(9),s=n(53),r=n(28),o=n(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=r.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[o]=e):n=c(),void 0===t?n:s(n,t)}},function(e,t,n){var i=n(8),s=n(9),r=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,o=r(t),a=o.length,l=0;l<a;)i.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),s=n(2),r=n(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1),l=function(){var i=n.concat(o.call(arguments));return this instanceof l?function(e,t,n){if(!(t in a)){for(var i=[],s=0;s<t;s++)i[s]="a["+s+"]";a[t]=Function("F,a","return new F("+i.join(",")+")")}return a[t](e,n)}(t,i.length,i):r(t,i,e)};return s(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),s=null==n?void 0:n[t];return void 0!==s?s.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),s=n(16),r=n(4),o=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),c=n(o,l,""[e]),d=c[0],u=c[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(s(String.prototype,e,d),i(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),s=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,s=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,s)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,s=t.length,r=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,d=t.tNoResults,u=t.tSelectedOption,h=t.tResults,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,v=r<o,b=0===s,y=a?u(a,s,l):"";return e=v?c(o):b?d():h(s,y),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":e))},t}(i.Component);(t.default=s).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default),_a.exports),Ea=e({__proto__:null,default:It(Sa)},[Sa]);export{ya as moduleSelectorPairs};
|
|
1
|
+
function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const t="countdown",n=`${t}__value`,i="is-flipping",s="data-countdown-unit",r=`.${t}__announcement`,o=`.${t}__unit`,a=`.${t}__label`,l=`[${s}]`,c=[`.${t}__top .${n}`,`.${t}__leaf-front .${n}`,`.${t}__leaf-back .${n}`,`.${t}__bottom .${n}`].join(", "),d=["days","hours","minutes","seconds"],u={days:864e5,hours:36e5,minutes:6e4,seconds:1e3},h=e=>e?.length?d.filter(t=>e.includes(t)):[...d],p=(e,t)=>"string"==typeof e&&e.trim()?{many:e,few:e,one:e}:e&&"object"==typeof e&&"string"==typeof e.many&&"string"==typeof e.few&&"string"==typeof e.one?e:t,f=(e,t)=>{const n=(e=>{const t=new Date(e).getTime();return Number.isNaN(t)?0:t})(e);let i=Math.max(0,n-Date.now());const s={days:0,hours:0,minutes:0,seconds:0};return t.forEach(e=>{const t=Math.floor(i/u[e]);s[e]=t,i-=t*u[e]}),s};class m{element;config;liveRegion;timerId;observer;instanceKey;defaultConfig;constructor(e,t,n){this.element=e,this.defaultConfig=n.defaultConfig,this.instanceKey=n.instanceKey,this.config={...n.defaultConfig,...t??{}},this.liveRegion=null,this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.element[this.instanceKey]=this}readDataConfig(){const e=this.element.getAttribute("data-countdown-config");if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}getLiveRegion(){return this.element.querySelector(r)}scheduleNextTick(){this.stop();const e=1e3-Date.now()%1e3||1e3;this.timerId=window.setTimeout(this.tick,e)}tick(){this.render(),this.scheduleNextTick()}setupObserver(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.start():this.stop()})}),this.observer.observe(this.element)):this.start()}init(){const e=this.readDataConfig();this.config={...this.defaultConfig,...e,...this.config},this.liveRegion=this.getLiveRegion(),this.collectElements(),this.render(),this.setupObserver()}start(){this.render(),this.scheduleNextTick()}stop(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)}update(e){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.config={...this.config,...e??{}},this.init()}destroy(){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.element[this.instanceKey]=null}}const g={many:"d",few:"d",one:"d"},v={days:g,hours:"h",minutes:"m",seconds:"s"},b={targetDate:"",units:["days","hours","minutes","seconds"],labels:v},y=(e,t)=>"days"===e?p(t.days,g).many:t[e],w={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]};class _{constructor(e,t={direction:"horizontal"}){this.elems=e,this.config=t,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)}init(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}destroy(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}update(e){this.elems=e}onKeydown(e){const t=this.elems.indexOf(document.activeElement);(w.ARROWUP.includes(e.key)||w.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(w.ARROWLEFT.includes(e.key)||w.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((w.ARROWDOWN.includes(e.key)||w.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(w.ARROWUP.includes(e.key)||w.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),w.TAB.includes(e.key)&&this.destroy())}}const S={buttonSelector:"[data-accordion-toggle]"};class E{static MODAL_OPEN_BODY_CLASS="has-modal";static STICKY_FLOAT_TOLERANCE=3;static SCROLLSPY_CENTER_BUFFER=50;static TOP_SECTION_THRESHOLD=100;static DRAG_START_THRESHOLD=6;static SCROLL_END_DEBOUNCE_MS=150;static SCROLL_EDGE_TOLERANCE=1;static SCROLL_ALIGNMENT_TOLERANCE=1;static MAX_SCROLL_CORRECTIONS=2;element;contentLeftElement;megamenuElement;resizeObserver;supportsScrollEnd;anchorClickHandler;scrollHandler;scrollSpyHandler;scrollEndHandler;scrollEndFallbackHandler;resizeHandler;mouseDownHandler;dragStartHandler;dragMoveHandler;dragEndHandler;horizontalScrollHandler;nativeDragStartHandler;isAutoScrolling=!1;isPointerDown=!1;isDraggingNav=!1;suppressClick=!1;dragStartX=0;dragStartScrollLeft=0;scrollTimeout=null;scrollEndFallbackTimeout=null;navLinks=null;sections=[];currentPath;lastActiveIndex=0;autoScrollTargetId=null;autoScrollCorrectionCount=0;lastStickyOffset=0;modalClassObserver=null;modalStateHandler;isForcedFixed=!1;wasStickyFloating=!1;forcedFixedTop=0;forcedFixedLeft=0;fixedFlowPlaceholder=null;originalInlineStyles=null;constructor(e){return this.element=e,this.contentLeftElement=null,this.megamenuElement=null,this.resizeObserver=null,this.supportsScrollEnd="onscrollend"in window,this.isAutoScrolling=!1,this.currentPath=window.location.pathname,this.anchorClickHandler=this.handleAnchorClick.bind(this),this.scrollHandler=this.updateStickyPosition.bind(this),this.scrollSpyHandler=this.handleScrollSpy.bind(this),this.scrollEndHandler=this.handleScrollEnd.bind(this),this.scrollEndFallbackHandler=this.handleScrollEndFallback.bind(this),this.resizeHandler=this.handleResize.bind(this),this.mouseDownHandler=this.handleMouseDown.bind(this),this.dragStartHandler=this.handleDragStart.bind(this),this.dragMoveHandler=this.handleDragMove.bind(this),this.dragEndHandler=this.handleDragEnd.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.nativeDragStartHandler=this.handleNativeDragStart.bind(this),this.modalStateHandler=this.handleModalStateChange.bind(this),this.element.ODS_AnchorNavigation=this,this.init(),this}static getInstance(e){return e&&e.ODS_AnchorNavigation?e.ODS_AnchorNavigation:null}findMegamenuElement(){return document.querySelector("[data-megamenu]")}getMegamenuOffsetHeight(){return this.megamenuElement?.offsetHeight||0}updateStickyPosition(){if(this.isForcedFixed)return;if(!this.megamenuElement)return;const e=this.getMegamenuOffsetHeight(),t=e!==this.lastStickyOffset;if(this.lastStickyOffset=e,this.element.style.top=`${e}px`,this.updateStickyFloatingState(),!t||!this.isAutoScrolling||!this.autoScrollTargetId||this.autoScrollCorrectionCount>=E.MAX_SCROLL_CORRECTIONS)return;const n=document.getElementById(this.autoScrollTargetId);n&&(this.autoScrollCorrectionCount+=1,this.scrollToSection(n,"smooth"))}setupMegamenuObserver(){if(this.megamenuElement=this.findMegamenuElement(),!this.megamenuElement)return this.lastStickyOffset=0,void(this.element.style.top="0px");this.updateStickyPosition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.resizeObserver=new ResizeObserver(this.updateStickyPosition.bind(this)),this.resizeObserver.observe(this.megamenuElement)}setupScrollSpy(){document.documentElement.style.setProperty("--extra-scroll-margin",this.element.offsetHeight+"px"),this.navLinks=this.element.querySelectorAll(".anchor-navigation__item"),this.sections=Array.from(this.navLinks||[]).map(e=>e.getAttribute("href")).filter(e=>e?.includes("#")).map(e=>document.getElementById(e.split("#")[1])).filter(Boolean),this.teardownScrollSpyListeners(),this.element.addEventListener("click",this.anchorClickHandler),this.element.addEventListener("mousedown",this.mouseDownHandler),window.addEventListener("scroll",this.scrollSpyHandler,{passive:!0}),this.supportsScrollEnd?window.addEventListener("scrollend",this.scrollEndHandler):window.addEventListener("scroll",this.scrollEndFallbackHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),this.initScrollSpy(),this.alignInitialHashIfNeeded()}teardownScrollSpyListeners(){this.element.removeEventListener("click",this.anchorClickHandler),this.element.removeEventListener("mousedown",this.mouseDownHandler),window.removeEventListener("scroll",this.scrollSpyHandler),window.removeEventListener("resize",this.resizeHandler),this.supportsScrollEnd?window.removeEventListener("scrollend",this.scrollEndHandler):window.removeEventListener("scroll",this.scrollEndFallbackHandler),this.scrollEndFallbackTimeout&&(clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=null)}handleMouseDown(e){if(0!==e.button)return;const t=e.target;t&&this.element.contains(t)&&(t.closest("a, button, input, select, textarea, label, [role='button'], [contenteditable='true']")||e.preventDefault())}handleAnchorClick(e){if(this.suppressClick)return e.preventDefault(),e.stopPropagation(),void(this.suppressClick=!1);const t=e.target,n=t?.closest(".anchor-navigation__item");if(!n||!this.element.contains(n))return;e.preventDefault();const i=n.getAttribute("href");if(!i||!i.includes("#"))return;const s=i.split("#")[1],r=document.getElementById(s);if(!r)return;this.startAutoScroll(s),n.blur(),this.scrollToSection(r,"smooth");const o=`${window.location.pathname}${window.location.search}#${s}`;window.history.pushState(null,"",o),this.initScrollSpy(s)}getHashSectionId(){const e=window.location.hash;if(!e||e.length<=1)return null;let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}return t||null}startAutoScroll(e){this.isAutoScrolling=!0,this.autoScrollTargetId=e,this.autoScrollCorrectionCount=0}resetAutoScrollState(){this.isAutoScrolling=!1,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0}tryCorrectAutoScrollAlignment(){if(!this.autoScrollTargetId)return!0;const e=document.getElementById(this.autoScrollTargetId);if(!e)return!0;const t=this.getTargetTop(e);if(Math.abs(window.scrollY-t)<=E.SCROLL_ALIGNMENT_TOLERANCE)return!0;if(this.autoScrollCorrectionCount>=E.MAX_SCROLL_CORRECTIONS)return!0;this.autoScrollCorrectionCount+=1;const n=1===this.autoScrollCorrectionCount?"smooth":"auto";return this.scrollToSection(e,n),!1}getTotalStickyOffset(){return(this.megamenuElement?this.megamenuElement.offsetHeight:0)+this.element.offsetHeight}getConfiguredScrollPaddingTop(){const e=window.getComputedStyle(document.documentElement).scrollPaddingTop,t=Number.parseFloat(e);return Number.isFinite(t)&&t>0?t:0}getEffectiveScrollOffset(){const e=this.getConfiguredScrollPaddingTop();return e>0?e:this.getTotalStickyOffset()}getTargetTop(e){const t=e.getBoundingClientRect().top+window.scrollY-this.getEffectiveScrollOffset();return Math.max(0,t)}scrollToSection(e,t){window.scrollTo({top:this.getTargetTop(e),behavior:t})}alignInitialHashIfNeeded(){const e=this.getHashSectionId();if(!e)return;const t=document.getElementById(e);t&&(this.startAutoScroll(e),requestAnimationFrame(()=>{this.scrollToSection(t,"auto"),requestAnimationFrame(()=>{this.handleScrollEnd()})}))}initScrollSpy(e=null){if(!this.navLinks||!this.sections.length)return;let t,n=-1;if(this.navLinks.forEach(e=>e.classList.remove("is-active")),e)t=document.getElementById(e)||void 0,t&&(n=this.sections.findIndex(t=>t.id===e));else{const e=this.getEffectiveScrollOffset(),i=window.scrollY+e+E.SCROLLSPY_CENTER_BUFFER;for(let e=0;e<this.sections.length;e++){const s=this.sections[e],{top:r,height:o}=s.getBoundingClientRect(),a=r+window.scrollY;if(i>=a&&i<a+o){t=s,n=e;break}}}if(t||(window.scrollY<=E.TOP_SECTION_THRESHOLD?(n=0,t=this.sections[0]):(n=this.lastActiveIndex,t=this.sections[n])),n>=0&&(this.lastActiveIndex=n),t){const n=t.getAttribute("id");let i=this.element.querySelector(`.anchor-navigation__item[href="#${n}"]`);if(i||(i=this.element.querySelector(`.anchor-navigation__item[href="${this.currentPath}#${n}"]`)),i||(i=Array.from(this.navLinks).find(e=>{const t=e.getAttribute("href");return t&&t.endsWith(`#${n}`)})),i){i.classList.add("is-active");const t=this.element.querySelector(".anchor-navigation__content-left");t&&this.scrollActiveLinkIntoView(t,i,Boolean(e))}}}scrollActiveLinkIntoView(e,t,n=!1){const i=Math.max(0,e.scrollWidth-e.clientWidth),s=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=r.left-s.left+e.scrollLeft+r.width/2-e.clientWidth/2,a=window.innerWidth<768?"auto":"smooth",l=Math.min(i,Math.max(0,o)),c=Math.abs(e.scrollLeft-l)<=E.SCROLL_ALIGNMENT_TOLERANCE;!n&&c||("function"!=typeof e.scrollTo?e.scrollLeft=l:e.scrollTo({left:l,behavior:a}))}setupDragScroll(){this.teardownDragScroll(),this.contentLeftElement=this.element.querySelector(".anchor-navigation__content-left"),this.contentLeftElement&&(this.contentLeftElement.addEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.addEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),this.updateDragState(),this.updateHorizontalOverflowState())}teardownDragScroll(){this.contentLeftElement&&(this.contentLeftElement.removeEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.removeEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.removeEventListener("scroll",this.horizontalScrollHandler),this.contentLeftElement.classList.remove("is-draggable","is-dragging")),window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement=null,this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=0,this.dragStartScrollLeft=0}updateDragState(){if(!this.contentLeftElement)return;const e="function"==typeof window.matchMedia?window.matchMedia("(pointer: fine)"):null,t=!e||e.matches,n=this.contentLeftElement.scrollWidth>this.contentLeftElement.clientWidth,i=t&&n;this.contentLeftElement.classList.toggle("is-draggable",i),i||(this.contentLeftElement.classList.remove("is-dragging"),this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler)),this.updateHorizontalOverflowState()}updateHorizontalOverflowState(){if(!this.contentLeftElement)return;const e=this.element.querySelector(".anchor-navigation__content");if(!e)return;const t=this.contentLeftElement.scrollWidth-this.contentLeftElement.clientWidth,n=t>E.SCROLL_EDGE_TOLERANCE,i=this.contentLeftElement.scrollLeft<=E.SCROLL_EDGE_TOLERANCE,s=this.contentLeftElement.scrollLeft>=t-E.SCROLL_EDGE_TOLERANCE;e.classList.toggle("has-left-overflow",n&&!i),e.classList.toggle("has-right-overflow",n&&!s)}handleDragStart(e){0===e.button&&this.contentLeftElement&&this.contentLeftElement.classList.contains("is-draggable")&&(this.isPointerDown=!0,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=e.clientX,this.dragStartScrollLeft=this.contentLeftElement.scrollLeft,window.addEventListener("mousemove",this.dragMoveHandler),window.addEventListener("mouseup",this.dragEndHandler))}handleDragMove(e){if(!this.isPointerDown||!this.contentLeftElement)return;const t=e.clientX-this.dragStartX;!this.isDraggingNav&&Math.abs(t)>=E.DRAG_START_THRESHOLD&&(this.isDraggingNav=!0,this.suppressClick=!0,this.contentLeftElement.classList.add("is-dragging")),this.isDraggingNav&&(e.preventDefault(),this.contentLeftElement.scrollLeft=this.dragStartScrollLeft-t)}handleDragEnd(){if(!this.isPointerDown)return;this.isPointerDown=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement&&this.contentLeftElement.classList.remove("is-dragging");const e=this.isDraggingNav;this.isDraggingNav=!1,e&&window.setTimeout(()=>{this.suppressClick=!1},0)}handleNativeDragStart(e){this.contentLeftElement?.classList.contains("is-draggable")&&e.preventDefault()}handleScrollEndFallback(){this.scrollEndFallbackTimeout&&clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=setTimeout(()=>{this.handleScrollEnd()},E.SCROLL_END_DEBOUNCE_MS)}handleResize(){if(this.isForcedFixed){const e=this.element.parentElement?.getBoundingClientRect(),t=this.getMegamenuOffsetHeight();e&&(this.forcedFixedLeft=Math.round(e.left),this.element.style.width=`${Math.round(e.width)}px`),t>0&&(this.forcedFixedTop=t),this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`)}else this.updateStickyFloatingState();this.initScrollSpy(),this.updateDragState(),this.updateHorizontalOverflowState()}isAnyModalOpen(){return document.body.classList.contains(E.MODAL_OPEN_BODY_CLASS)}isCurrentlyStickyFloating(){if(!this.megamenuElement)return!1;const e=this.getMegamenuOffsetHeight();return this.element.getBoundingClientRect().top<=e+E.STICKY_FLOAT_TOLERANCE}updateStickyFloatingState(){this.isAnyModalOpen()||this.isForcedFixed||(this.wasStickyFloating=this.isCurrentlyStickyFloating())}ensureFixedFlowPlaceholder(){this.fixedFlowPlaceholder||(this.fixedFlowPlaceholder=document.createElement("div"),this.fixedFlowPlaceholder.setAttribute("aria-hidden","true"),this.fixedFlowPlaceholder.style.width="100%",this.fixedFlowPlaceholder.style.pointerEvents="none",this.fixedFlowPlaceholder.style.visibility="hidden",this.element.insertAdjacentElement("afterend",this.fixedFlowPlaceholder)),this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`}removeFixedFlowPlaceholder(){this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.remove(),this.fixedFlowPlaceholder=null)}applyFixedPosition(){if(this.isForcedFixed)return;const e=this.element.getBoundingClientRect(),t=this.element.parentElement?.getBoundingClientRect(),n=this.getMegamenuOffsetHeight();this.originalInlineStyles={position:this.element.style.position,top:this.element.style.top,left:this.element.style.left,right:this.element.style.right,width:this.element.style.width},this.forcedFixedTop=n>0?n:Math.max(0,Math.round(e.top)),this.forcedFixedLeft=Math.max(0,Math.round(t?.left??e.left));const i=Math.round(t?.width??e.width);this.element.style.position="fixed",this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.element.style.right="",this.element.style.width=`${i}px`,this.ensureFixedFlowPlaceholder(),this.isForcedFixed=!0}restoreStickyPosition(e=!0){if(!this.isForcedFixed)return;const t=this.originalInlineStyles;this.element.style.position=t?.position||"",this.element.style.top=t?.top||"",this.element.style.left=t?.left||"",this.element.style.right=t?.right||"",this.element.style.width=t?.width||"",this.resetFixedPositionState(),e&&(this.updateStickyPosition(),this.initScrollSpy())}handleModalStateChange(){this.isAnyModalOpen()?(this.isForcedFixed||this.wasStickyFloating)&&this.applyFixedPosition():(this.restoreStickyPosition(!1),this.updateStickyFloatingState())}setupModalObserver(){this.updateStickyFloatingState(),this.handleModalStateChange(),document.body&&"undefined"!=typeof MutationObserver&&(this.modalClassObserver=new MutationObserver(this.modalStateHandler),this.modalClassObserver.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}teardownModalObserver(){this.modalClassObserver&&(this.modalClassObserver.disconnect(),this.modalClassObserver=null)}teardownMegamenuObserver(){window.removeEventListener("scroll",this.scrollHandler),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}clearAutoScrollTimers(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)}resetFixedPositionState(){this.originalInlineStyles=null,this.isForcedFixed=!1,this.wasStickyFloating=!1,this.forcedFixedTop=0,this.forcedFixedLeft=0,this.removeFixedFlowPlaceholder()}resetNavigationState(){this.megamenuElement=null,this.lastStickyOffset=0,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0,this.resetFixedPositionState()}handleScrollSpy(){this.isAutoScrolling?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.handleScrollEnd()},E.SCROLL_END_DEBOUNCE_MS)):this.initScrollSpy()}handleScrollEnd(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.tryCorrectAutoScrollAlignment()&&(this.resetAutoScrollState(),this.initScrollSpy())}init(){this.setupMegamenuObserver(),this.setupScrollSpy(),this.setupDragScroll(),this.setupModalObserver()}destroy(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.element.style.top="",this.resetNavigationState(),this.element.ODS_AnchorNavigation=null}update(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.resetNavigationState(),this.init()}}const x={controlSelector:".block-action__control",indicatorSelector:".block-action__indicator",activeClass:"is-indicating"};function C(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function T(e,t=0){return setTimeout(e,t)}function A(){return Date.now()}function k(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function O(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||!!e&&"object"==typeof e&&(1===e.nodeType||11===e.nodeType)}function L(e,...t){const n=Object(e);for(let e=0;e<t.length;e+=1){const i=t[e];if(null==i||O(i))continue;const s=i,r=Object.keys(Object(s)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(const e of r){const t=Object.getOwnPropertyDescriptor(s,e);if(!t||!t.enumerable)continue;const i=s[e];k(n[e])&&k(i)?i.__swiper__?n[e]=i:L(n[e],i):!k(n[e])&&k(i)?(n[e]={},i.__swiper__?n[e]=i:L(n[e],i)):n[e]=i}}return n}function D(e,t,n){e.style.setProperty(t,n)}function M(e,t=""){const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function P(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:C(t)),n}function I(e){const t=e.getBoundingClientRect();return{top:t.top+window.scrollY-(e.clientTop||0),left:t.left+window.scrollX-(e.clientLeft||0)}}function N(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function R(e){if(e&&e.parentNode)return[...e.parentNode.children].indexOf(e)}function z(e,t){const n=[];let i=e.parentElement;for(;i;)t&&!i.matches(t)||n.push(i),i=i.parentElement;return n}function H(e,t,n){{const n=window.getComputedStyle(e,null);return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getPropertyValue("width"===t?"margin-left":"margin-bottom"))}}function F(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function B(e,t=""){const n=globalThis.trustedTypes;e.innerHTML=void 0!==n?n.createPolicy("html",{createHTML:e=>e}).createHTML(t):t}let $,V,j;function q(){return $||($="undefined"==typeof window?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}),$}function W(e={}){return V||(V=function({userAgent:e}={}){if("undefined"==typeof window)return{ios:!1,android:!1};const t=q(),n=navigator.platform,i=e||navigator.userAgent,s={ios:!1,android:!1},r=/(Android);?[\s/]+([\d.]+)?/.test(i),o=/(iPhone\sOS|iOS|iPod)/.test(i),a=/iPad/.test(i),l="MacIntel"===n&&t.touch&&navigator.maxTouchPoints>1,c=a||l;return r&&!("Win32"===n)&&(s.os="android",s.android=!0),(c||o)&&(s.os="ios",s.ios=!0),s}(e)),V}function U(){return j||(j=function(){if("undefined"==typeof window)return{isSafari:!1,isWebView:!1,need3dFix:!1};const e=W(),t=navigator.userAgent,n=t.toLowerCase(),i=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);return{isSafari:i,isWebView:s,need3dFix:i||s&&e.ios}}()),j}const G=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(n.shadowRoot){const t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},Y=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},X=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){const n=s,r=[n-t];return r.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{void 0!==t.column&&r.includes(t.column)&&Y(e,n)})}const r=s+i-1;if(e.params.rewind||e.params.loop)for(let i=s-t;i<=r+t;i+=1){const t=(i%n+n)%n;(t<s||t>r)&&Y(e,t)}else for(let i=Math.max(s-t,0);i<=Math.min(r+t,n-1);i+=1)i!==s&&(i>r||i<s)&&Y(e,i)},K=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);var J={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,a=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:document.querySelector(i.breakpointsBase),l=e.getBreakpoint(r,o,a);if(!l||e.currentBreakpoint===l)return;const c=(l in r?r[l]:void 0)||e.originalParams,d=K(e,i),u=K(e,c),h=e.params.grabCursor,p=c.grabCursor,f=i.enabled;d&&!u?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&u&&(s.classList.add(`${i.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!p?e.unsetGrabCursor():!h&&p&&e.setGrabCursor();const m=(e,t)=>e[t];["navigation","pagination","scrollbar"].forEach(t=>{const n=m(c,t);if(void 0===n)return;const s=m(i,t),r="object"==typeof s&&null!==s&&s.enabled,o="object"==typeof n&&null!==n&&n.enabled,a=e[t];r&&!o&&a?.disable?.(),!r&&o&&a?.enable?.()});const g=c.direction&&c.direction!==i.direction,v=i.loop&&(c.slidesPerView!==i.slidesPerView||g),b=i.loop;g&&n&&e.changeDirection(),L(e.params,c);const y=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&w?(e.loopCreate(t),e.updateSlides()):b&&!w&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const s="window"===t?window.innerHeight:n.clientHeight,r=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}});r.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<r.length;e+=1){const{point:s,value:o}=r[e];"window"===t?window.matchMedia(`(min-width: ${o}px)`).matches&&(i=s):o<=n.clientWidth&&(i=s)}return i||"max"}},Q={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:r}=e,o=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};const Z={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};var ee={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=function(...n){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(i,n)};return s.__emitterProxy=t,i.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,s;if("string"==typeof e[0]||Array.isArray(e[0]))n=e[0],i=e.slice(1,e.length),s=t;else{const r=e[0];n=r.events,i=r.data??[],s=r.context||t}return i.unshift(s),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(s,i)})}),t}};function te(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ne(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}function ie(e){const t=this;t.destroyed||(G(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function se(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=e,o=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a)e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=o?e.virtual.slides.length:e.slides.length;e.slideTo(t-1,0,!1,!0)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){const t=e.autoplay;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function re(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function oe(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let i=e.originalEvent??e;if("touchend"===i.type||"touchcancel"===i.type){const e=[...i.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:s,touches:r,rtlTranslate:o,slidesGrid:a,enabled:l}=t;if(!l)return;if(!s.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);s.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=A(),d=c-n.touchStartTime;if(t.allowClick){const e=i.path??(i.composedPath&&i.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit("tap click",i),d<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=A(),T(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let u;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=s.followFinger?o?t.translate:-t.translate:-(n.currentTranslate??0),s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});const h=u>=-t.maxTranslate()&&!t.params.loop;let p=0,f=t.slidesSizesGrid[0];for(let e=0;e<a.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==a[e+t]?(h||u>=a[e]&&u<a[e+t])&&(p=e,f=a[e+t]-a[e]):(h||u>=a[e])&&(p=e,f=a[a.length-1]-a[a.length-2])}let m=null,g=null;s.rewind&&(t.isBeginning?g=s.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const v=(u-a[p])/f,b=p<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?m:p+b):t.slideTo(p)),"prev"===t.swipeDirection&&(v>1-s.longSwipesRatio?t.slideTo(p+b):null!==g&&v<0&&Math.abs(v)>s.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==m?m:p+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:p)):i.target===t.navigation.nextEl?t.slideTo(p+b):t.slideTo(p)}}function ae(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData,{params:i,touches:s,rtlTranslate:r,enabled:o}=t;if(!o)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;const a=e,l=a.originalEvent??a;if("pointermove"===l.type){if(null!==n.touchId)return;if(l.pointerId!==n.pointerId)return}let c;if("touchmove"===l.type){const e=[...l.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;c=e}else c=l;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",l));const d=c.pageX,u=c.pageY;if(l.preventedByNestedSwiper)return s.startX=d,void(s.startY=u);if(!t.allowTouchMove)return l.target.matches(n.focusableElements)||(t.allowClick=!1),void(n.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),n.touchStartTime=A()));if(i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(u<s.startY&&t.translate<=t.maxTranslate()||u>s.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(r&&(d>s.startX&&-t.translate<=t.maxTranslate()||d<s.startX&&-t.translate>=t.minTranslate()))return;if(!r&&(d<s.startX&&t.translate<=t.maxTranslate()||d>s.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==l.target&&"mouse"!==l.pointerType&&document.activeElement.blur(),document.activeElement&&l.target===document.activeElement&&l.target.matches(n.focusableElements))return n.isMoved=!0,void(t.allowClick=!1);n.allowTouchCallbacks&&t.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const h=s.currentX-s.startX,p=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(h**2+p**2)<t.params.threshold)return;if(void 0===n.isScrolling){let e;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,n.isScrolling=t.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",l),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===l.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;t.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let f=t.isHorizontal()?h:p,m=t.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(f=Math.abs(f)*(r?1:-1),m=Math.abs(m)*(r?1:-1)),s.diff=f,f*=i.touchRatio,r&&(f=-f,m=-m);const g=t.touchesDirection;t.swipeDirection=f>0?"prev":"next",t.touchesDirection=m>0?"prev":"next";const v=t.params.loop&&!i.cssMode,b="next"===t.touchesDirection&&t.allowSlideNext||"prev"===t.touchesDirection&&t.allowSlidePrev;if(!n.isMoved){if(v&&b&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}if((new Date).getTime(),!1!==i._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&g!==t.touchesDirection&&v&&b&&Math.abs(f)>=1)return Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);t.emit("sliderMove",l),n.isMoved=!0;const y=n.startTranslate??0;n.currentTranslate=f+y;let w=!0,_=i.resistanceRatio;if(i.touchReleaseOnEdges&&(_=0),f>0?(v&&b&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(w=!1,i.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+y+f)**_))):f<0&&(v&&b&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-("auto"===i.slidesPerView?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(i.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(w=!1,i.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-y-f)**_))),w&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&(n.currentTranslate??0)<y&&(n.currentTranslate=y),!t.allowSlidePrev&&"prev"===t.swipeDirection&&(n.currentTranslate??0)>y&&(n.currentTranslate=y),t.allowSlidePrev||t.allowSlideNext||(n.currentTranslate=y),i.threshold>0){if(!(Math.abs(f)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&t.freeMode||i.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function le(e,t,n){const{params:i}=e,s=i.edgeSwipeDetection,r=i.edgeSwipeThreshold;return!s||!(n<=r||n>=window.innerWidth-r)||"prevent"===s&&(t.preventDefault(),!0)}function ce(e){const t=this;if(t.destroyed)return;const n=e.originalEvent??e,i=t.touchEventsData;if("pointerdown"===n.type){const e=n;if(null!==i.pointerId&&i.pointerId!==e.pointerId)return;i.pointerId=e.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(i.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void le(t,n,n.targetTouches[0].pageX);const{params:s,touches:r,enabled:o}=t;if(!o)return;if(!s.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let a=n.target;if("wrapper"===s.touchEventsTarget&&!function(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}return!1}(e,t))),n}(a,t.wrapperEl))return;const l=n;if("number"==typeof l.which&&3===l.which)return;if("number"==typeof l.button&&l.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!s.noSwipingClass&&""!==s.noSwipingClass,d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(a=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!(!n.target||!n.target.shadowRoot);if(s.noSwiping&&(h?(p=u,function e(t){if(!t||t===document||t===window)return null;let n=t;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(p);if(!i&&!n.getRootNode)return null;const s=n.getRootNode();return i||e(s.host)}(a)):a.closest(u)))return void(t.allowClick=!0);var p;if(s.swipeHandler&&"string"==typeof s.swipeHandler&&!a.closest(s.swipeHandler))return;const f=n;r.currentX=f.pageX,r.currentY=f.pageY;const m=r.currentX,g=r.currentY;if(!le(t,n,m))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=m,r.startY=g,i.touchStartTime=A(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let v=!0;a.matches(i.focusableElements)&&(v=!1,"SELECT"===a.nodeName&&(i.isTouched=!1)),document.activeElement&&document.activeElement.matches(i.focusableElements)&&document.activeElement!==a&&("mouse"===f.pointerType||"mouse"!==f.pointerType&&!a.matches(i.focusableElements))&&document.activeElement.blur();const b=v&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!b||a.isContentEditable||n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}const de=(e,t)=>{const{params:n,el:i,wrapperEl:s,device:r}=e,o=!!n.nested,a="on"===t?"addEventListener":"removeEventListener",l=t;if(!i||"string"==typeof i)return;document[a]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),i[a]("touchstart",e.onTouchStart,{passive:!1}),i[a]("pointerdown",e.onTouchStart,{passive:!1}),document[a]("touchmove",e.onTouchMove,{passive:!1,capture:o}),document[a]("pointermove",e.onTouchMove,{passive:!1,capture:o}),document[a]("touchend",e.onTouchEnd,{passive:!0}),document[a]("pointerup",e.onTouchEnd,{passive:!0}),document[a]("pointercancel",e.onTouchEnd,{passive:!0}),document[a]("touchcancel",e.onTouchEnd,{passive:!0}),document[a]("pointerout",e.onTouchEnd,{passive:!0}),document[a]("pointerleave",e.onTouchEnd,{passive:!0}),document[a]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[a]("click",e.onClick,!0),n.cssMode&&s[a]("scroll",e.onScroll);const c=t=>{e[l](t,se,!0)};n.updateOnWindowResize?c(r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate"):c("observerUpdate"),i[a]("load",e.onLoad,{capture:!0})};var ue={loopCreate:function(e,t){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual?.enabled)return;const r=()=>{M(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",String(t))})},o=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||o)&&(()=>{const e=M(s,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const a=i.slidesPerGroup*(o?i.grid.rows:1),l=n.slides.length%a!==0,c=o&&n.slides.length%i.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?P("swiper-slide",[i.slideBlankClass]):P("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides&&(d(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()),r()):c?(i.loopAddBlankSlides&&(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()),r()):r();const u=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function(e={}){const{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:r,initial:o,byController:a,byMousewheel:l}=e;let c=r;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:u,allowSlidePrev:h,allowSlideNext:p,slidesEl:f,params:m}=d,{centeredSlides:g,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:y}=m,w=g||!!v||!!b;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&m.virtual?.enabled){if(n){const e=d.virtual.slides.length,t=d.virtual.slidesBefore??0;w||0!==d.snapIndex?w&&d.snapIndex<m.slidesPerView?d.slideTo(e+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(t,0,!1,!0):d.slideTo(e,0,!1,!0)}return d.allowSlidePrev=h,d.allowSlideNext=p,void d.emit("loopFix")}let _=m.slidesPerView;"auto"===_?_=d.slidesPerViewDynamic():(_=Math.ceil(parseFloat(String(m.slidesPerView))),w&&_%2==0&&(_+=1));const S=m.slidesPerGroupAuto?_:m.slidesPerGroup;let E=w?Math.max(S,Math.ceil(_/2)):S;E%S!==0&&(E+=S-E%S),E+=m.loopAdditionalSlides,d.loopedSlides=E;const x=d.grid&&m.grid&&m.grid.rows>1;u.length<_+E||"cards"===d.params.effect&&u.length<_+2*E||x&&m.grid.fill;const C=[],T=[],A=x?Math.ceil(u.length/m.grid.rows):u.length,k=o&&A-y<_&&!w;let O=k?y:d.activeIndex;void 0===c?c=d.getSlideIndex(u.find(e=>e.classList.contains(m.slideActiveClass))):O=c;const L="next"===i||!i,D="prev"===i||!i;let M=0,P=0;const I=(x?u[c].column??0:c)+(w&&void 0===s?-_/2+.5:0);if(I<E){M=Math.max(E-I,S);for(let e=0;e<E-I;e+=1){const t=e-Math.floor(e/A)*A;if(x){const e=A-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&C.push(t)}else C.push(A-t-1)}}else if(I+_>A-E){P=Math.max(I-(A-2*E),S),k&&(P=Math.max(P,_-A+y+1));for(let e=0;e<P;e+=1){const t=e-Math.floor(e/A)*A;x?u.forEach((e,n)=>{e.column===t&&T.push(n)}):T.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),"cards"===d.params.effect&&u.length<_+2*E&&(T.includes(c)&&T.splice(T.indexOf(c),1),C.includes(c)&&C.splice(C.indexOf(c),1)),D&&C.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,f.prepend(t),t.swiperLoopMoveDOM=!1}),L&&T.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,f.append(t),t.swiperLoopMoveDOM=!1}),d.recalcSlides(),"auto"===m.slidesPerView?d.updateSlides():x&&(C.length>0&&D||T.length>0&&L)&&d.slides.forEach((e,t)=>{d.grid.updateSlide(t,e,d.slides)}),m.watchSlidesProgress&&d.updateSlidesOffset(),n)if(C.length>0&&D){if(void 0===t){const e=d.slidesGrid[O],t=d.slidesGrid[O+M]-e;l?d.setTranslate(d.translate-t):(d.slideTo(O+Math.ceil(M),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(s){const e=x?C.length/m.grid.rows:C.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(T.length>0&&L)if(void 0===t){const e=d.slidesGrid[O],t=d.slidesGrid[O-P]-e;l?d.setTranslate(d.translate-t):(d.slideTo(O-P,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=x?T.length/m.grid.rows:T.length;d.slideTo(d.activeIndex-e,0,!1,!0)}d.allowSlidePrev=h,d.allowSlideNext=p;const N=d.controller?.control;if(N&&!a){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:c,byController:!0};Array.isArray(N)?N.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&n})}):N instanceof d.constructor&&N.params.loop&&N.loopFix({...e,slideTo:N.params.slidesPerView===m.slidesPerView&&n})}d.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual?.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=e,n=void 0===t.swiperSlideIndex?Number(e.getAttribute("data-swiper-slide-index")):t.swiperSlideIndex;i[n]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function he(e,t){return function(n={}){const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in s?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),L(t,n)):L(t,n)):L(t,n)}}var pe={slideTo:function(e=0,t,n=!0,i,s){"string"==typeof e&&(e=parseInt(e,10));const r=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:f}=r;if(!f&&!i&&!s||r.destroyed||r.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const m=Math.min(r.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?o=e:t>=n&&t<i&&(o=e+1):t>=n&&(o=e)}if(r.initialized&&o!==u){if(!r.allowSlideNext&&(h?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(u||0)!==o)return!1}let b;o!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=o>u?"next":o<u?"prev":"reset";const y=r.virtual&&r.params.virtual?.enabled;if((!y||!s)&&(h&&-v===r.translate||!h&&v===r.translate))return r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(n,b),r.transitionEnd(n,b)),!1;if(a.cssMode){const e=r.isHorizontal(),n=h?v:-v;return 0===t?(y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&(r.params.initialSlide??0)>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})):p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"}),!0}const w=U().isSafari;return y&&!s&&w&&r.isElement&&r.virtual.update(!1,!1,o),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,b),0===t?r.transitionEnd(n,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let o=e;if(s.params.loop)if(s.virtual&&s.params.virtual?.enabled)o+=s.virtual.slidesBefore??0;else{let e;if(r){const t=o*s.params.grid.rows,n=s.slides.find(e=>Number(e.getAttribute("data-swiper-slide-index"))===t);e=n?.column??0}else e=s.getSlideIndexByData(o);const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n,slidesOffsetBefore:a,slidesOffsetAfter:l}=s.params,c=n||!!a||!!l;let d;"auto"===s.params.slidesPerView?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(String(s.params.slidesPerView))),c&&d%2==0&&(d+=1));let u=t-e<d;if(c&&(u=u||e<Math.ceil(d/2)),i&&c&&"auto"!==s.params.slidesPerView&&!r&&(u=!1),u){const n=c?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?s.realIndex:void 0})}if(r){const e=o*s.params.grid.rows,t=s.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e);o=t?.column??0}else o=s.getSlideIndexByData(o)}return requestAnimationFrame(()=>{s.slideTo(o,t,n,i)}),s},slideNext:function(e,t=!0,n){const i=this,{enabled:s,params:r,animating:o}=i;if(!s||i.destroyed)return i;void 0===e&&(e=i.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<r.slidesPerGroupSkip?1:a,c=i.virtual&&r.virtual?.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return r.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const i=this,{params:s,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&s.virtual?.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(a?i.translate:-i.translate),p=r.map(e=>u(e)),f=s.freeMode&&s.freeMode.enabled;let m=r[p.indexOf(h)-1];if(void 0===m&&(s.cssMode||f)){let e;r.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(m=f?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=o.indexOf(m),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual?.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,e,t,n)}),!0):i.slideTo(g,e,t,n)},slideReset:function(e,t=!0,n){const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,i=.5){const s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const e=s.snapGrid[a];l-e>(s.snapGrid[a+1]-e)*i&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[a-1];l-e<=(s.snapGrid[a]-e)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n,clickedSlide:i,clickedIndex:s}=e;if(void 0===i||void 0===s)return;const r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let o,a=e.getSlideIndexWhenGrid(s);const l=e.isElement?"swiper-slide":`.${t.slideClass}`,c=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;o=parseInt(i.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(o):a>(c?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),a=e.getSlideIndex(M(n,`${l}[data-swiper-slide-index="${o}"]`)[0]),T(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}};function fe({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:s,previousIndex:r}=e;let o=n;o||(o=s>r?"next":s<r?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===o?e.emit(`slideResetTransition${i}`):t&&s!==r&&(e.emit(`slideChangeTransition${i}`),"next"===o?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}var me={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=function(e,t="x"){const n=function(e){return window.getComputedStyle(e,null)}(e),i=n.transform||n.webkitTransform;if(!i||"none"===i)return 0;const s=new DOMMatrixReadOnly(i);return"x"===t?s.m41:s.m42}(s,e);return r+=this.cssOverflowAdjustment(),n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:r,progress:o}=n;let a,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();a=0===d?0:(e-n.minTranslate())/d,a!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,i=!0,s){const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,r.updateProgress(d),o.cssMode){const e=r.isHorizontal();return 0===t?a[e?"scrollLeft":"scrollTop"]=-d:a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"}),!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};const ge=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},ve=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};var be={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(N(i,"padding-left")||"0",10)-parseInt(N(i,"padding-right")||"0",10),n=n-parseInt(N(i,"padding-top")||"0",10)-parseInt(N(i,"padding-bottom")||"0",10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||"0")}const n=e.params,{wrapperEl:i,slidesEl:s,rtlTranslate:r,wrongRTL:o}=e,a=!(!e.virtual||!n.virtual?.enabled),l=a?e.virtual.slides.length:e.slides.length,c=M(s,`.${e.params.slideClass}, swiper-slide`),d=a?e.virtual.slides.length:c.length;let u=[];const h=[],p=[],f=t=>"function"==typeof t?t.call(e):t,m=f(n.slidesOffsetBefore),g=f(n.slidesOffsetAfter),v=e.snapGrid.length,b=e.slidesGrid.length,y=e.size-m-g;let w=n.spaceBetween,_=-m,S=0,E=0;if(void 0===y)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*y:"string"==typeof w&&(w=parseFloat(w)),e.virtualSize=-w-m-g,c.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(D(i,"--swiper-centered-offset-before",""),D(i,"--swiper-centered-offset-after","")),n.cssMode&&(D(i,"--swiper-slides-offset-before",`${m}px`),D(i,"--swiper-slides-offset-after",`${g}px`));const x=n.grid&&n.grid.rows>1&&e.grid;x?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let C=0;const T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>{const t=n.breakpoints[e];return void 0!==t?.slidesPerView}).length>0;for(let i=0;i<d;i+=1){C=0;const s=c[i];if(!s||(x&&e.grid.updateSlide(i,s,c),"none"!==N(s,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual?.slidesPerViewAutoSlideSize&&(C=n.virtual.slidesPerViewAutoSlideSize),C&&s&&(n.roundLengths&&(C=Math.floor(C)),s.style[e.getDirectionLabel("width")]=`${C}px`);else if("auto"===n.slidesPerView){T&&(s.style[e.getDirectionLabel("width")]="");const i=getComputedStyle(s),r=s.style.transform,o=s.style.webkitTransform;if(r&&(s.style.transform="none"),o&&(s.style.webkitTransform="none"),n.roundLengths)C=e.isHorizontal()?H(s,"width"):H(s,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),r=t(i,"padding-right"),o=t(i,"margin-left"),a=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=e+o+a;else{const{clientWidth:t,offsetWidth:i}=s;C=e+n+r+o+a+(i-t)}}r&&(s.style.transform=r),o&&(s.style.webkitTransform=o),n.roundLengths&&(C=Math.floor(C))}else C=(y-(n.slidesPerView-1)*w)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),s&&(s.style[e.getDirectionLabel("width")]=`${C}px`);s&&(s.swiperSlideSize=C),p.push(C),n.centeredSlides?(_=_+C/2+S/2+w,0===S&&0!==i&&(_=_-y/2-w),0===i&&(_=_-y/2-w),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),E%n.slidesPerGroup===0&&u.push(_),h.push(_)):(n.roundLengths&&(_=Math.floor(_)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&u.push(_),h.push(_),_=_+C+w),e.virtualSize+=C+w,S=C,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+g,r&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+w}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`),x&&e.grid.updateWrapperSize(C,u),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,i=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let s=u.length;if(i){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?w:0),t<=y);n-=1)e=p.length-n}else e=Math.floor(n.slidesPerView);s=Math.max(d-e,0)}const r=[];for(let t=0;t<u.length;t+=1){let o=u[t];n.roundLengths&&(o=Math.floor(o)),i?t<=s&&r.push(o):u[t]<=e.virtualSize-y&&r.push(o)}u=r,Math.floor(e.virtualSize-y)-Math.floor(u[u.length-1])>1&&(i||u.push(e.virtualSize-y))}if(a&&n.loop){const t=p[0]+w,i=(e.virtual.slidesBefore??0)+(e.virtual.slidesAfter??0);if(n.slidesPerGroup>1){const e=Math.ceil(i/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let t=0;t<e;t+=1)u.push(u[u.length-1]+s)}for(let s=0;s<i;s+=1)1===n.slidesPerGroup&&u.push(u[u.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===u.length&&(u=[0]),0!==w){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${w}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(w||0)}),e-=w;const t=e>y?e-y:0;u=u.map(e=>e<=0?-m:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(w||0)}),e-=w,e<y){const t=(y-e)/2;u.forEach((e,n)=>{u[n]=e-t}),h.forEach((e,n)=>{h[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){D(i,"--swiper-centered-offset-before",-u[0]+"px"),D(i,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==l&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(a||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual?.enabled;let s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;const r=o(e);r&&n.push(r)}else{const e=o(t.activeIndex);e&&n.push(e)}for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:i,rtlTranslate:s,snapGrid:r}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;s&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset??0);const d=l.swiperSlideSize??0,u=(o+(n.centeredSlides?t.minTranslate():0)-c)/(d+a),h=(o-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(d+a),p=-(o-c),f=p+t.slidesSizesGrid[e],m=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||f>1&&f<=t.size||p<=0&&f>=t.size;g&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),ve(l,g,n.slideVisibleClass),ve(l,m,n.slideFullyVisibleClass),l.progress=s?-u:u,l.originalProgress=s?-h:h}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:o}=t,a=t.progressLoop;const l=r,c=o;if(0===i)s=0,r=!0,o=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;r=n||s<=0,o=a||s>=1,n&&(s=0),a&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],r=t.slidesGrid[i],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=s?(l-s)/o:(l+o-r)/o,a>1&&(a-=1)}Object.assign(t,{progress:s,progressLoop:a,isBeginning:r,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,r=!(!e.virtual||!n.virtual?.enabled),o=e.grid&&n.grid&&n.grid.rows>1,a=e=>M(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){const t=e.virtual.slides;let n=s-(e.virtual.slidesBefore??0);n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),l=a(`[data-swiper-slide-index="${n}"]`)}else l=a(`[data-swiper-slide-index="${s}"]`);else o?(l=t.find(e=>e.column===s),d=t.find(e=>e.column===s+1),c=t.find(e=>e.column===s-1)):l=t[s];l&&(o||(d=function(e,t){const n=[];let i=e.nextElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.nextElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];let i=e.previousElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.previousElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{ge(e,e===l,n.slideActiveClass),ge(e,e===d,n.slideNextClass),ge(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:o,snapIndex:a}=t;let l,c=e;const d=e=>{const n=t.virtual.slides;let i=e-(t.virtual.slidesBefore??0);return i<0&&(i=n.length+i),i>=n.length&&(i-=n.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?s=e:i>=t[e]&&i<t[e+1]&&(s=e+1):i>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual?.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let h;if(t.virtual&&s.virtual?.enabled)h=s.loop?d(c):c;else if(u){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&X(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)});let r,o=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){o=!0,r=e;break}if(!s||!o)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};const ye={eventsEmitter:ee,update:be,translate:me,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),fe({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),fe({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:pe,loop:ue,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=ce.bind(e),e.onTouchMove=ae.bind(e),e.onTouchEnd=oe.bind(e),e.onDocumentTouchStart=ne.bind(e),t.cssMode&&(e.onScroll=re.bind(e)),e.onClick=te.bind(e),e.onLoad=ie.bind(e),de(e,"on")},detachEvents:function(){de(this,"off")}},breakpoints:J,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:Q},we={};class _e{static extendedDefaults;static defaults;constructor(...e){let t,n;if(1===e.length&&null!==e[0]&&"object"==typeof e[0]&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=L({},n),t&&!n.el&&(n.el=t),n.el&&"string"==typeof n.el&&"undefined"!=typeof document&&document.querySelectorAll(n.el).length>1){const e=[];return document.querySelectorAll(n.el).forEach(t=>{const i=L({},n,{el:t});e.push(new _e(i))}),e}const i=this;i.__swiper__=!0,i.support=q(),i.device=W({userAgent:n.userAgent??void 0}),i.browser=U(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{const t=e;"function"==typeof t&&i.modules.indexOf(t)<0&&i.modules.push(t)});const s={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:he(n,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const r=L({},Z,s);if(i.params=L({},r,we,n),i.originalParams=L({},i.params),i.passedParams=L({},n),i.params&&i.params.on){const e=i.params.on;Object.keys(e).forEach(t=>{const n=e[t];n&&i.on(t,n)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}isHorizontal(){return"horizontal"===this.params.direction}isVertical(){return"vertical"===this.params.direction}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=R(M(t,`.${n.slideClass}, swiper-slide`)[0]);return R(e)-(i??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=M(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),i=(this.maxTranslate()-n)*e+n;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const e=this.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(this.params.containerModifierClass));this.emit("_containerClasses",e.join(" "))}getSlideClasses(e){return this.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(this.params.slideClass)).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const e=[];this.slides.forEach(t=>{const n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit("_slideClass",t,n)}),this.emit("_slideClasses",e)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:r,size:o,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(!o)return l;if(n.centeredSlides){let e=i[a]?Math.ceil(i[a].swiperSlideSize??0):0,t=!1;for(let n=a+1;n<i.length;n+=1)i[n]&&!t&&(e+=Math.ceil(i[n].swiperSlideSize??0),l+=1,e>o&&(t=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!t&&(e+=i[n].swiperSlideSize??0,l+=1,e>o&&(t=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1)(t?s[e]+r[e]-s[a]<o:s[e]-s[a]<o)&&(l+=1);else for(let e=a-1;e>=0;e-=1)s[a]-s[e]<o&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&G(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode?.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual?.enabled?e.virtual.slides.length:e.slides.length;s=e.slideTo(t-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;if("undefined"==typeof document)return!1;const n=e??t.params.el;let i=null;if("string"==typeof n?i=document.querySelector(n):n instanceof HTMLElement&&(i=n),!i)return!1;i.swiper=t;const s=i.parentNode;s&&s.host&&s.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=i&&i.shadowRoot?i.shadowRoot.querySelector(r()):M(i,r())[0];!o&&t.params.createElements&&(o=P("div",t.params.wrapperClass),i.append(o),M(i,`.${t.params.slideClass}`).forEach(e=>{o.append(e)}));const a=t.isElement?i.parentNode.host:null;return Object.assign(t,{el:i,wrapperEl:o,slidesEl:t.isElement&&!a.slideSlots?a:o,hostEl:t.isElement?a:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===N(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===N(i,"direction")),wrongRTL:"-webkit-box"===N(o,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual?.enabled?t.slideTo((t.params.initialSlide??0)+(t.virtual.slidesBefore??0),0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?G(t,e):e.addEventListener("load",e=>{G(t,e.target)})}),X(t),t.initialized=!0,X(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:i,el:s,wrapperEl:r,slides:o}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),a=n,Object.keys(a).forEach(e=>{try{a[e]=null}catch{}try{delete a[e]}catch{}})),n.destroyed=!0),null;var a}static extendDefaults(e){L(we,e)}static installModule(e){_e.prototype.__modules__||(_e.prototype.__modules__=[]);const t=_e.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>_e.installModule(e)),_e):(_e.installModule(e),_e)}}Object.defineProperty(_e,"extendedDefaults",{get:()=>we}),Object.defineProperty(_e,"defaults",{get:()=>Z});const Se=ye,Ee=_e.prototype;Object.keys(Se).forEach(e=>{const t=Se[e];Object.keys(t).forEach(e=>{Ee[e]=t[e]})}),_e.use([({swiper:e,on:t,emit:n})=>{let i=null,s=null;const r=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==window.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{s=window.requestAnimationFrame(()=>{const{width:n,height:i}=e;let s=n,o=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{if(i&&i!==e.el)return;const r=Array.isArray(t)?t[0]:t;s=n?n.width:r.inlineSize,o=n?n.height:r.blockSize}),s===n&&o===i||r()})}),i.observe(e.el)):(window.addEventListener("resize",r),window.addEventListener("orientationchange",o))}),t("destroy",()=>{s&&window.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",o)})},({swiper:e,extendParams:t,on:n})=>{const i=[],s=(t,n={})=>{const s=window.MutationObserver||window.WebkitMutationObserver;if(!s)return;const r=new s(t=>{if(e.__preventObserver__)return;if(1===t.length)return void e.emit("observerUpdate",t[0]);const n=function(){e.emit("observerUpdate",t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});r.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),i.push(r)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=z(e.hostEl);for(let e=0;e<t.length;e+=1)s(t[e])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const xe=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.keyboard}function r(t){if(!e.enabled)return;const{rtlTranslate:n}=e,r="originalEvent"in t&&t.originalEvent?t.originalEvent:t,o=r.keyCode||r.charCode,a=s(),l=!!a.pageUpDown,c=l&&33===o,d=l&&34===o,u=37===o,h=39===o,p=38===o,f=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&h||e.isVertical()&&f||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&p||c))return!1;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const m=document.activeElement;if(m&&(m.isContentEditable||m.nodeName&&("input"===m.nodeName.toLowerCase()||"textarea"===m.nodeName.toLowerCase())))return;if(a.onlyInViewport&&(c||d||u||h||p||f)){let t=!1;if(z(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===z(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,s=i.clientWidth,r=i.clientHeight,o=window.innerWidth,a=window.innerHeight,l=I(i);n&&(l.left-=i.scrollLeft);const c=[[l.left,l.top],[l.left+s,l.top],[l.left,l.top+r],[l.left+s,l.top+r]];for(let e=0;e<c.length;e+=1){const n=c[e];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=a){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const g=a.speed;e.isHorizontal()?((c||d||u||h)&&r.cancelable&&r.preventDefault(),((d||h)&&!n||(c||u)&&n)&&e.slideNext(g),((c||u)&&!n||(d||h)&&n)&&e.slidePrev(g)):((c||d||p||f)&&r.cancelable&&r.preventDefault(),(d||f)&&e.slideNext(g),(c||p)&&e.slidePrev(g)),i("keyPress",o)}function o(){e.keyboard.enabled||(document.addEventListener("keydown",r),e.keyboard.enabled=!0)}function a(){e.keyboard.enabled&&(document.removeEventListener("keydown",r),e.keyboard.enabled=!1)}t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),e.keyboard={enabled:!1,enable:o,disable:a},n("init",()=>{s().enabled&&o()}),n("destroy",()=>{e.keyboard.enabled&&a()})},Ce=({swiper:e,extendParams:t,on:n,emit:i})=>{let s;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});let r,o=A(),a=!1;const l=[];function c(){return e.params.mousewheel}function d(){e.enabled&&(a=!0)}function u(){e.enabled&&(a=!1)}function h(t){const n=c();return!(n.thresholdDelta&&t.delta<n.thresholdDelta||n.thresholdTime&&A()-o<n.thresholdTime||!(t.delta>=6&&A()-o<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),i("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),i("scroll",t.raw)),o=(new window.Date).getTime(),1))}function p(t){let n="originalEvent"in t&&t.originalEvent?t.originalEvent:t,o=!0;if(!e.enabled)return!1;const d=c();if(t.target.closest(`.${d.noMousewheelClass}`))return!1;e.params.cssMode&&n.preventDefault();let u=e.el;"container"!==d.eventsTarget&&(u=document.querySelector(d.eventsTarget));const p=u&&u.contains(n.target);if(!a&&!p&&!d.releaseOnEdges)return!0;let f=0;const m=e.rtlTranslate?-1:1,g=function(e){const t=e;let n=0,i=0,s=0,r=0;return void 0!==t.detail&&(i=t.detail),void 0!==t.wheelDelta&&(i=-t.wheelDelta/120),void 0!==t.wheelDeltaY&&(i=-t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(n=-t.wheelDeltaX/120),void 0!==t.axis&&void 0!==t.HORIZONTAL_AXIS&&t.axis===t.HORIZONTAL_AXIS&&(n=i,i=0),s=10*n,r=10*i,void 0!==t.deltaY&&(r=t.deltaY),void 0!==t.deltaX&&(s=t.deltaX),t.shiftKey&&!s&&(s=r,r=0),(s||r)&&t.deltaMode&&(1===t.deltaMode?(s*=40,r*=40):(s*=800,r*=800)),s&&!n&&(n=s<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:n,spinY:i,pixelX:s,pixelY:r}}(n);if(d.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;f=-g.pixelX*m}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;f=-g.pixelY}else f=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY;if(0===f)return!0;d.invert&&(f=-f);let v=e.getTranslate()+f*(d.sensitivity??1);v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),o=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),o&&e.params.nested&&n.stopPropagation();const b=e.params.freeMode;if(e.params.freeMode&&b?.enabled){const t={time:A(),delta:Math.abs(f),direction:Math.sign(f)},o=r&&t.time<r.time+500&&t.delta<=r.delta&&t.direction===r.direction;if(!o){r=void 0;let a=e.getTranslate()+f*(d.sensitivity??1);const c=e.isBeginning,u=e.isEnd;if(a>=e.minTranslate()&&(a=e.minTranslate()),a<=e.maxTranslate()&&(a=e.maxTranslate()),e.setTransition(0),e.setTranslate(a),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),b?.sticky){clearTimeout(s),s=void 0,l.length>=15&&l.shift();const n=l.length?l[l.length-1]:void 0,i=l[0];if(l.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))l.splice(0);else if(l.length>=15&&i&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=f>0?.8:.2;r=t,l.splice(0),s=T(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}s||(s=T(()=>{!e.destroyed&&e.params&&(r=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}o||i("scroll",n);const h=e.params.autoplay;if(e.params.autoplay&&h?.disableOnInteraction&&e.autoplay.stop(),d.releaseOnEdges&&(a===e.minTranslate()||a===e.maxTranslate()))return!0}}else{const n={time:A(),delta:Math.abs(f),direction:Math.sign(f),raw:t};l.length>=2&&l.shift();const i=l.length?l[l.length-1]:void 0;if(l.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&h(n):h(n),function(t){const n=c();if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.cancelable&&n.preventDefault(),!1}function f(t){const n=c();let i=e.el;"container"!==n.eventsTarget&&(i=document.querySelector(n.eventsTarget)),i[t]("mouseenter",d),i[t]("mouseleave",u),i[t]("wheel",p)}function m(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",p),!0):!e.mousewheel.enabled&&(f("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener("wheel",p),!0):!!e.mousewheel.enabled&&(f("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{const t=c();!t.enabled&&e.params.cssMode&&g(),t.enabled&&m()}),e.mousewheel={enabled:!1,enable:m,disable:g},n("destroy",()=>{e.params.cssMode&&m(),e.mousewheel.enabled&&g()})};function Te(e,t,n,i){const s=n??{},r=t??{};return e.params.createElements&&Object.keys(i).forEach(t=>{if(!s[t]&&!0===s.auto){let n=M(e.el,`.${i[t]}`)[0];n||(n=P("div",i[t]),n.className=i[t],e.el.append(n)),s[t]=n,r[t]=n}}),s}const Ae='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>',ke=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.navigation}function r(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const i=s();F(t).forEach(t=>{t&&(t.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function d(){e.params.navigation=Te(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const t=s();if(!t.nextEl&&!t.prevEl)return;const n=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i});const o=F(n),a=F(i),d=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");B(e,Ae);const t=e.querySelector("svg");t&&n.appendChild(t),e.remove()}n.addEventListener("click","next"===i?c:l)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};o.forEach(e=>d(e,"next")),a.forEach(e=>d(e,"prev"))}function u(){const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=F(n),o=F(i),a=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.disabledClass.split(" "))};r.forEach(e=>a(e,"next")),o.forEach(e=>a(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Ae},n("init",()=>{!1===s().enabled?h():(d(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=F(n),o=F(i);e.enabled?a():[...r,...o].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n("click",(t,n)=>{const r=s(),{nextEl:o,prevEl:a}=e.navigation,l=F(o),c=F(a),d=n.target;let u=c.includes(d)||l.includes(d);if(e.isElement&&!u){const e=n.composedPath?n.composedPath():[];e.length&&(u=e.find(e=>l.includes(e)||c.includes(e)))}if(r.hideOnClick&&!u){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===d||e.pagination.el.contains(d)))return;let t;l.length?t=l[0].classList.contains(r.hiddenClass):c.length&&(t=c[0].classList.contains(r.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...l,...c].filter(e=>!!e).forEach(e=>e.classList.toggle(r.hiddenClass))}});const h=()=>{const t=s();e.el.classList.add(...t.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{const t=s();e.el.classList.remove(...t.navigationDisabledClass.split(" ")),d(),a()},disable:h,update:a,init:d,destroy:u})};function Oe(e=""){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const Le=e=>{if((e=>!!e.virtual&&!!e.params.virtual?.enabled)(e))return e.virtual.slides.length;const t=e.params.grid?.rows;return e.grid&&t&&t>1?e.slides.length/Math.ceil(t):e.slides.length},De=({swiper:e,extendParams:t,on:n,emit:i})=>{const s="swiper-pagination";let r;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let o=0;function a(){return e.params.pagination}function l(){return!a().el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(e,t){const{bulletActiveClass:n}=a();if(!e)return;let i=e[("prev"===t?"previous":"next")+"ElementSibling"];i&&(i.classList.add(`${n}-${t}`),i=i[("prev"===t?"previous":"next")+"ElementSibling"],i&&i.classList.add(`${n}-${t}-${t}`))}function d(t){const n=t.target.closest(Oe(a().bulletClass));if(!n)return;t.preventDefault();const i=(R(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===i)return;const t=(s=e.realIndex,r=i,(r%=o=e.slides.length)===1+(s%=o)?"next":r===s-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i);var s,r,o}function u(){const t=e.rtl,n=a();if(l())return;const s=F(e.pagination.el);let d,u;const h=Le(e),p=e.params.loop?Math.ceil(h/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,d=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):void 0!==e.snapIndex?(d=e.snapIndex,u=e.previousSnapIndex):(u=e.previousIndex||0,d=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a=0,l=0,h=0;if(n.dynamicBullets){r=H(i[0],e.isHorizontal()?"width":"height");const t=e.isHorizontal()?"width":"height";s.forEach(e=>{e.style[t]=(r??0)*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==u&&(o+=d-(u||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),a=Math.max(d-o,0),l=a+(Math.min(i.length,n.dynamicMainBullets)-1),h=(l+a)/2}if(i.forEach(e=>{const t=["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):[e]);e.classList.remove(...t)}),s.length>1)i.forEach(t=>{const i=R(t);i===d?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&void 0!==i&&(i>=a&&i<=l&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===a&&c(t,"prev"),i===l&&c(t,"next"))});else{const t=i[d];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===d?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[a],t=i[l];for(let e=a;e<=l;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const s=Math.min(i.length,n.dynamicMainBullets+4),o=((r??0)*s-(r??0))/2-h*(r??0),a=t?"right":"left",l=e.isHorizontal()?a:"top";i.forEach(e=>{e.style[l]=`${o}px`})}}s.forEach((t,s)=>{if("fraction"===n.type&&(t.querySelectorAll(Oe(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(d+1))}),t.querySelectorAll(Oe(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(d+1)/p;let r=1,o=1;"horizontal"===i?r=s:o=s,t.querySelectorAll(Oe(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(B(t,n.renderCustom(e,d+1,p)),0===s&&i("paginationRender",t)):(0===s&&i("paginationRender",t),i("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function h(){const t=a();if(l())return;const n=Le(e),s=F(e.pagination.el);let r="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&(e=>!!e.params.freeMode?.enabled)(e)&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?r+=t.renderBullet.call(e,n,t.bulletClass):r+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],s.forEach(n=>{"custom"!==t.type&&B(n,r||""),"bullets"===t.type&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(Oe(t.bulletClass))))}),"custom"!==t.type&&i("paginationRender",s[0])}function p(){e.params.pagination=Te(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=a();if(!t.el)return;let n;if("string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&(!Array.isArray(n)||0!==n.length)){if(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){const t=n.find(t=>z(t,".swiper")[0]===e.el);t&&(n=t)}Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),F(n).forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",d),e.enabled||n.classList.add(t.lockClass)})}}function f(){const t=a();if(l())return;const n=e.pagination.el;n&&F(n).forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",d))}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=a();F(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===a().enabled?m():(p(),h(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{h(),u()}),n("destroy",()=>{f()}),n("enable disable",()=>{const{el:t}=e.pagination;if(t){const n=a();F(t).forEach(t=>t.classList[e.enabled?"remove":"add"](n.lockClass))}}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const s=n.target,r=F(e.pagination.el),o=a();if(o.el&&o.hideOnClick&&r&&r.length>0&&!s.classList.contains(o.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=r[0].classList.contains(o.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.forEach(e=>e.classList.toggle(o.hiddenClass))}});const m=()=>{const t=a();e.el.classList.add(t.paginationDisabledClass);const{el:n}=e.pagination;n&&F(n).forEach(e=>e.classList.add(t.paginationDisabledClass)),f()};Object.assign(e.pagination,{enable:()=>{const t=a();e.el.classList.remove(t.paginationDisabledClass);const{el:n}=e.pagination;n&&F(n).forEach(e=>e.classList.remove(t.paginationDisabledClass)),p(),h(),u()},disable:m,render:h,update:u,init:p,destroy:f})},Me=({swiper:e,extendParams:t,on:n,emit:i})=>{let s=!1,r=null,o=null,a=0,l=0,c=0,d=0;function u(){return e.params.scrollbar}function h(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n,rtlTranslate:i}=e,{dragEl:s,el:o}=n,a=e.params.loop?e.progressLoop??0:e.progress;let d=l,h=(c-l)*a;i?(h=-h,h>0?(d=l-h,h=0):-h+l>c&&(d=c+h)):h<0?(d=l+h,h=0):h+l>c&&(d=c-h),e.isHorizontal()?(s.style.transform=`translate3d(${h}px, 0, 0)`,s.style.width=`${d}px`):(s.style.transform=`translate3d(0px, ${h}px, 0)`,s.style.height=`${d}px`),t.hide&&(r&&clearTimeout(r),o.style.opacity="1",r=setTimeout(()=>{o.style.opacity="0",o.style.transitionDuration="400ms"},1e3))}function p(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n}=e,{dragEl:i,el:s}=n;i.style.width="",i.style.height="",c=e.isHorizontal()?s.offsetWidth:s.offsetHeight,d=e.size/(e.virtualSize+(e.params.slidesOffsetBefore??0)-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===t.dragSize?c*d:parseInt(String(t.dragSize),10),e.isHorizontal()?i.style.width=`${l}px`:i.style.height=`${l}px`,s.style.display=d>=1?"none":"",t.hide&&(s.style.opacity="0"),e.params.watchOverflow&&e.enabled&&n.el.classList[e.isLocked?"add":"remove"](t.lockClass)}function f(t){return e.isHorizontal()?t.clientX??t.touches?.[0]?.clientX??0:t.clientY??t.touches?.[0]?.clientY??0}function m(t){const{scrollbar:n,rtlTranslate:i}=e,{el:s}=n;let r;r=(f(t)-I(s)[e.isHorizontal()?"left":"top"]-(null!==a?a:l/2))/(c-l),r=Math.max(Math.min(r,1),0),i&&(r=1-r);const o=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(o),e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}function g(t){const n=u(),{scrollbar:r,wrapperEl:l}=e,{el:c,dragEl:d}=r;s=!0,a=t.target===d?f(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),l.style.transitionDuration="100ms",d.style.transitionDuration="100ms",m(t),o&&clearTimeout(o),c.style.transitionDuration="0ms",n.hide&&(c.style.opacity="1"),e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="none"),i("scrollbarDragStart",t)}function v(t){const{scrollbar:n,wrapperEl:r}=e,{el:o,dragEl:a}=n;s&&(t.cancelable&&t.preventDefault(),m(t),r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",a.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function b(t){const n=u(),{scrollbar:r,wrapperEl:a}=e,{el:l}=r;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="",a.style.transitionDuration=""),n.hide&&(o&&clearTimeout(o),o=T(()=>{l.style.opacity="0",l.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function y(t){const{scrollbar:n,params:i}=e,s=n.el;if(!s)return;const r=!!i.passiveListeners&&{passive:!1,capture:!1},o=!!i.passiveListeners&&{passive:!0,capture:!1},a="on"===t?"addEventListener":"removeEventListener";s[a]("pointerdown",g,r),document[a]("pointermove",v,r),document[a]("pointerup",b,o)}function w(){const{scrollbar:t,el:n}=e;e.params.scrollbar=Te(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=u();if(!i.el)return;let s;if("string"==typeof i.el&&e.isElement&&(s=e.el.querySelector(i.el)),s||"string"!=typeof i.el)s||(s=i.el);else if(s=document.querySelectorAll(i.el),!s.length)return;e.params.uniqueNavElements&&"string"==typeof i.el&&s.length>1&&1===n.querySelectorAll(i.el).length&&(s=n.querySelector(i.el)),s.length>0&&(s=s[0]);const r=s;r.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass);let o=null;r&&(o=r.querySelector(Oe(i.dragClass)),o||(o=P("div",i.dragClass),r.append(o))),Object.assign(t,{el:r,dragEl:o}),i.draggable&&u().el&&e.scrollbar.el&&y("on"),r&&r.classList[e.enabled?"remove":"add"](...C(i.lockClass))}function _(){const t=u(),n=e.scrollbar.el;n&&n.classList.remove(...C(e.isHorizontal()?t.horizontalClass:t.verticalClass)),u().el&&e.scrollbar.el&&y("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null},n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const t=u();F(e.scrollbar.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===u().enabled?S():(w(),p(),h())}),n("update resize observerUpdate lock unlock changeDirection",()=>{p()}),n("setTranslate",()=>{h()}),n("setTransition",(t,n)=>{!function(t){u().el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(n)}),n("enable disable",()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](...C(u().lockClass))}),n("destroy",()=>{_()});const S=()=>{const t=u();e.el.classList.add(...C(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...C(t.scrollbarDisabledClass)),_()};Object.assign(e.scrollbar,{enable:()=>{const t=u();e.el.classList.remove(...C(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...C(t.scrollbarDisabledClass)),w(),p(),h()},disable:S,updateSize:p,setTranslate:h,init:w,destroy:_})},Pe=({swiper:e,extendParams:t,on:n})=>{t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,s=null,r=!1,o=(new Date).getTime();function a(){return e.params.a11y}function l(e){s&&e&&B(s,e)}function c(e){F(e).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){F(e).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){F(e).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){F(e).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){F(e).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){F(e).forEach(e=>{e.setAttribute("aria-disabled","true")})}function m(e){F(e).forEach(e=>{e.removeAttribute("aria-disabled")})}function g(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=a(),i=e.params.pagination,s=t.target;if(!e.pagination||!e.pagination.el||s!==e.pagination.el&&!e.pagination.el.contains(s)||s.matches(Oe(i?.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=F(e.navigation.prevEl);F(e.navigation.nextEl).includes(s)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),t.includes(s)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}e.pagination&&s.matches(Oe(i?.bulletClass))&&s.click()}}function v(){return!!(e.pagination&&e.pagination.bullets&&e.pagination.bullets.length)}function b(){const t=e.params.pagination;return v()&&!!t?.clickable}const y=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n)},w=t=>{i&&i!==t.target&&!i.contains(t.target)&&(r=!0),e.a11y.clicked=!0},_=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},S=e=>{o=(new Date).getTime()},E=t=>{const n=a();if(e.a11y.clicked||!n.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const s=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!s||!e.slides.includes(s))return;i=s;const l=(e=>!!e.virtual&&!!e.params.virtual?.enabled)(e),c=(l?parseInt(s.getAttribute("data-swiper-slide-index")||"0",10):e.slides.indexOf(s))===e.activeIndex,d=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(s);if(c||d)return;const u=t.sourceCapabilities;u&&u.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):l?e.slideTo(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(s)),0),r=!1)}))},x=()=>{const t=a();t.itemRoleDescriptionMessage&&h(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length,i=t.slideLabelMessage;i&&e.slides.forEach((t,s)=>{const r=e.params.loop?parseInt(t.getAttribute("data-swiper-slide-index")||"0",10):s;p(t,i.replace(/\{\{index\}\}/,String(r+1)).replace(/\{\{slidesLength\}\}/,String(n)))})};n("beforeInit",()=>{s=P("span",a().notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{a().enabled&&(()=>{const t=a();s&&e.el.append(s);const n=e.el;t.containerRoleDescriptionMessage&&h(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const i=e.wrapperEl,r=String(t.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`);var o,l,c;if(o=r,F(i).forEach(e=>{e.setAttribute("id",o)}),t.wrapperLiveRegion){const t=e.params.autoplay;l=i,c=e.params.autoplay&&t?.enabled?"off":"polite",F(l).forEach(e=>{e.setAttribute("aria-live",c)})}x();const d=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},f=F(d.nextEl),m=F(d.prevEl);f&&f.forEach(e=>y(e,0,t.nextSlideMessage)),m&&m.forEach(e=>y(e,0,t.prevSlideMessage)),b()&&F(e.pagination.el).forEach(e=>{e.addEventListener("keydown",g)}),document.addEventListener("visibilitychange",S),e.el.addEventListener("focus",E,!0),e.el.addEventListener("pointerdown",w,!0),e.el.addEventListener("pointerup",_,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{a().enabled&&x()}),n("fromEdge toEdge afterInit lock unlock",()=>{a().enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(f(n),d(n)):(m(n),c(n))),t&&(e.isEnd?(f(t),d(t)):(m(t),c(t)))}()}),n("paginationUpdate",()=>{a().enabled&&function(){const t=a();if(!v())return;const n=e.params.pagination;e.pagination.bullets.forEach(e=>{n.clickable&&(c(e),n.renderBullet||(u(e,"button"),p(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,String((R(e)??0)+1))))),e.matches(Oe(n.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),n("destroy",()=>{a().enabled&&function(){s&&s.remove();const t=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},n=F(t.nextEl),i=F(t.prevEl);n&&n.forEach(e=>e.removeEventListener("keydown",g)),i&&i.forEach(e=>e.removeEventListener("keydown",g)),b()&&F(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)}),document.removeEventListener("visibilitychange",S),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",E,!0),e.el.removeEventListener("pointerdown",w,!0),e.el.removeEventListener("pointerup",_,!0))}()})},Ie=({swiper:e,extendParams:t,on:n,emit:i,params:s})=>{function r(){return e.params.autoplay}e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});const o="object"==typeof s.autoplay&&s.autoplay&&"number"==typeof s.autoplay.delay?s.autoplay.delay:3e3;let a,l,c,d=o,u=o,h=0,p=(new Date).getTime(),f=!1,m=!1,g=!1,v=!1,b=!1;function y(t){if(!e||e.destroyed||!e.wrapperEl)return;if(t.target!==e.wrapperEl)return;e.wrapperEl.removeEventListener("transitionend",y);const n=t.detail;b||n&&n.bySwiperTouchMove||T()}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=h,f=!1);const t=e.autoplay.paused?h:p+u-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/d),l=requestAnimationFrame(()=>{w()})},_=()=>{let t=r().delay;const n=(()=>{let t;const n=!!e.params.virtual?.enabled;if(t=e.virtual&&n?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;const i=t.getAttribute("data-swiper-autoplay");return null!=i?parseInt(i,10):void 0})();return"number"==typeof n&&!Number.isNaN(n)&&n>0&&(t=n),t},S=t=>{if(e.destroyed||!e.autoplay.running)return 0;void 0!==l&&cancelAnimationFrame(l),w();let n=t;void 0===n&&(n=_(),d=n,u=n),h=n;const s=e.params.speed,o=()=>{if(!e||e.destroyed)return;const t=r();t.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(e.slides.length-1,s,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(0,s,!0,!0),i("autoplay")),e.params.cssMode&&(p=(new Date).getTime(),requestAnimationFrame(()=>{S()}))};return n>0?(void 0!==a&&clearTimeout(a),a=setTimeout(()=>{o()},n)):requestAnimationFrame(()=>{o()}),n},E=()=>(p=(new Date).getTime(),e.autoplay.running=!0,S(),i("autoplayStart"),!0),x=()=>(e.autoplay.running=!1,void 0!==a&&clearTimeout(a),void 0!==l&&cancelAnimationFrame(l),i("autoplayStop"),!0),C=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;void 0!==a&&clearTimeout(a),t||(v=!0);const s=()=>{i("autoplayPause"),r().waitForTransition?e.wrapperEl.addEventListener("transitionend",y):T()};if(e.autoplay.paused=!0,n)return void s();const o=h||r().delay;h=o-((new Date).getTime()-p),e.isEnd&&h<0&&!e.params.loop||(h<0&&(h=0),s())},T=()=>{e.isEnd&&h<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=(new Date).getTime(),v?(v=!1,S(h)):S(),e.autoplay.paused=!1,i("autoplayResume"))},A=()=>{!e.destroyed&&e.autoplay.running&&("hidden"===document.visibilityState&&(v=!0,C(!0)),"visible"===document.visibilityState&&T())},k=t=>{"mouse"===t.pointerType&&(v=!0,b=!0,e.animating||e.autoplay.paused||C(!0))},O=t=>{"mouse"===t.pointerType&&(b=!1,e.autoplay.paused&&T())};n("init",()=>{r().enabled&&(r().pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",O)),document.addEventListener("visibilitychange",A),E())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",O)),document.removeEventListener("visibilitychange",A),e.autoplay.running&&x()}),n("_freeModeStaticRelease",()=>{(g||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{r().disableOnInteraction?x():C(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!r().disableOnInteraction?C(!0,!0):x())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(r().disableOnInteraction?x():(m=!0,g=!1,v=!1,c=setTimeout(()=>{v=!0,g=!0,C(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&m){if(void 0!==c&&clearTimeout(c),void 0!==a&&clearTimeout(a),r().disableOnInteraction)return g=!1,void(m=!1);g&&e.params.cssMode&&T(),g=!1,m=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(h=_(),d=_())}),Object.assign(e.autoplay,{start:E,stop:x,pause:C,resume:T})};function Ne({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:s="hidden",displayValue:r="block"}){if("timeout"===n&&"number"!=typeof i)return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const o=t=>{t.target===e&&(a(),e.removeEventListener("transitionend",o))},a=()=>{"display"===s?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",o),this.timeout&&clearTimeout(this.timeout),"display"===s?e.style.display=r:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",o):"timeout"===n?this.timeout=setTimeout(()=>{a()},i):a(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,s=[...e.classList].includes(t);return n||i||!s},timeout:null}}var Re="top",ze="bottom",He="right",Fe="left",Be="auto",$e=[Re,ze,He,Fe],Ve="start",je="end",qe="viewport",We="popper",Ue=$e.reduce(function(e,t){return e.concat([t+"-"+Ve,t+"-"+je])},[]),Ge=[].concat($e,[Be]).reduce(function(e,t){return e.concat([t,t+"-"+Ve,t+"-"+je])},[]),Ye=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xe(e){return e?(e.nodeName||"").toLowerCase():null}function Ke(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Je(e){return e instanceof Ke(e).Element||e instanceof Element}function Qe(e){return e instanceof Ke(e).HTMLElement||e instanceof HTMLElement}function Ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ke(e).ShadowRoot||e instanceof ShadowRoot)}var et={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];Qe(s)&&Xe(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Qe(i)&&Xe(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function tt(e){return e.split("-")[0]}var nt=Math.max,it=Math.min,st=Math.round;function rt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ot(){return!/^((?!chrome|android).)*safari/i.test(rt())}function at(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&Qe(e)&&(s=e.offsetWidth>0&&st(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&st(i.height)/e.offsetHeight||1);var o=(Je(e)?Ke(e):window).visualViewport,a=!ot()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/s,c=(i.top+(a&&o?o.offsetTop:0))/r,d=i.width/s,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function lt(e){var t=at(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function ct(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ze(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function dt(e){return Ke(e).getComputedStyle(e)}function ut(e){return["table","td","th"].indexOf(Xe(e))>=0}function ht(e){return((Je(e)?e.ownerDocument:e.document)||window.document).documentElement}function pt(e){return"html"===Xe(e)?e:e.assignedSlot||e.parentNode||(Ze(e)?e.host:null)||ht(e)}function ft(e){return Qe(e)&&"fixed"!==dt(e).position?e.offsetParent:null}function mt(e){for(var t=Ke(e),n=ft(e);n&&ut(n)&&"static"===dt(n).position;)n=ft(n);return n&&("html"===Xe(n)||"body"===Xe(n)&&"static"===dt(n).position)?t:n||function(e){var t=/firefox/i.test(rt());if(/Trident/i.test(rt())&&Qe(e)&&"fixed"===dt(e).position)return null;var n=pt(e);for(Ze(n)&&(n=n.host);Qe(n)&&["html","body"].indexOf(Xe(n))<0;){var i=dt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function gt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vt(e,t,n){return nt(e,it(t,n))}function bt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function yt(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var wt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=tt(n.placement),l=gt(a),c=[Fe,He].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return bt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:yt(e,$e))}(s.padding,n),u=lt(r),h="y"===l?Re:Fe,p="y"===l?ze:He,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],g=mt(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,y=d[h],w=v-u[c]-d[p],_=v/2-u[c]/2+b,S=vt(y,_,w),E=l;n.modifiersData[i]=((t={})[E]=S,t.centerOffset=S-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&ct(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _t(e){return e.split("-")[1]}var St={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Et(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,m=void 0===f?0:f,g="function"==typeof d?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=Fe,w=Re,_=window;if(c){var S=mt(n),E="clientHeight",x="clientWidth";S===Ke(n)&&"static"!==dt(S=ht(n)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),(s===Re||(s===Fe||s===He)&&r===je)&&(w=ze,m-=(u&&S===_&&_.visualViewport?_.visualViewport.height:S[E])-i.height,m*=l?1:-1),s!==Fe&&(s!==Re&&s!==ze||r!==je)||(y=He,p-=(u&&S===_&&_.visualViewport?_.visualViewport.width:S[x])-i.width,p*=l?1:-1)}var C,T=Object.assign({position:a},c&&St),A=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:st(n*s)/s||0,y:st(i*s)/s||0}}({x:p,y:m},Ke(n)):{x:p,y:m};return p=A.x,m=A.y,l?Object.assign({},T,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},T,((t={})[w]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var xt={passive:!0},Ct={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,l=Ke(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,xt)}),a&&l.addEventListener("resize",n.update,xt),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,xt)}),a&&l.removeEventListener("resize",n.update,xt)}},data:{}},Tt={left:"right",right:"left",bottom:"top",top:"bottom"};function At(e){return e.replace(/left|right|bottom|top/g,function(e){return Tt[e]})}var kt={start:"end",end:"start"};function Ot(e){return e.replace(/start|end/g,function(e){return kt[e]})}function Lt(e){var t=Ke(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dt(e){return at(ht(e)).left+Lt(e).scrollLeft}function Mt(e){var t=dt(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function Pt(e){return["html","body","#document"].indexOf(Xe(e))>=0?e.ownerDocument.body:Qe(e)&&Mt(e)?e:Pt(pt(e))}function It(e,t){var n;void 0===t&&(t=[]);var i=Pt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=Ke(i),o=s?[r].concat(r.visualViewport||[],Mt(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(It(pt(o)))}function Nt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rt(e,t,n){return t===qe?Nt(function(e,t){var n=Ke(e),i=ht(e),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=ot();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Dt(e),y:l}}(e,n)):Je(t)?function(e,t){var n=at(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Nt(function(e){var t,n=ht(e),i=Lt(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=nt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=nt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Dt(e),l=-i.scrollTop;return"rtl"===dt(s||n).direction&&(a+=nt(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(ht(e)))}function zt(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?tt(s):null,o=s?_t(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Re:t={x:a,y:n.y-i.height};break;case ze:t={x:a,y:n.y+n.height};break;case He:t={x:n.x+n.width,y:l};break;case Fe:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?gt(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case Ve:t[c]=t[c]-(n[d]/2-i[d]/2);break;case je:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function Ht(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,o=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?qe:c,u=n.elementContext,h=void 0===u?We:u,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=bt("number"!=typeof g?g:yt(g,$e)),b=h===We?"reference":We,y=e.rects.popper,w=e.elements[f?b:h],_=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=It(pt(e)),n=["absolute","fixed"].indexOf(dt(e).position)>=0&&Qe(e)?mt(e):e;return Je(n)?t.filter(function(e){return Je(e)&&ct(e,n)&&"body"!==Xe(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(t,n){var s=Rt(e,n,i);return t.top=nt(s.top,t.top),t.right=it(s.right,t.right),t.bottom=it(s.bottom,t.bottom),t.left=nt(s.left,t.left),t},Rt(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Je(w)?w:w.contextElement||ht(e.elements.popper),l,d,o),S=at(e.elements.reference),E=zt({reference:S,element:y,placement:s}),x=Nt(Object.assign({},y,E)),C=h===We?x:S,T={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},A=e.modifiersData.offset;if(h===We&&A){var k=A[s];Object.keys(T).forEach(function(e){var t=[He,ze].indexOf(e)>=0?1:-1,n=[Re,ze].indexOf(e)>=0?"y":"x";T[e]+=k[n]*t})}return T}function Ft(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ge:l,d=_t(i),u=d?a?Ue:Ue.filter(function(e){return _t(e)===d}):$e,h=u.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=u);var p=h.reduce(function(t,n){return t[n]=Ht(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[tt(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Bt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=tt(g),b=l||(v!==g&&f?function(e){if(tt(e)===Be)return[];var t=At(e);return[Ot(e),t,Ot(t)]}(g):[At(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat(tt(n)===Be?Ft(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,_=t.rects.popper,S=new Map,E=!0,x=y[0],C=0;C<y.length;C++){var T=y[C],A=tt(T),k=_t(T)===Ve,O=[Re,ze].indexOf(A)>=0,L=O?"width":"height",D=Ht(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),M=O?k?He:Fe:k?ze:Re;w[L]>_[L]&&(M=At(M));var P=At(M),I=[];if(r&&I.push(D[A]<=0),a&&I.push(D[M]<=0,D[P]<=0),I.every(function(e){return e})){x=T,E=!1;break}S.set(T,I)}if(E)for(var N=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},R=f?3:1;R>0&&"break"!==N(R);R--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $t(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vt(e){return[Re,He,ze,Fe].some(function(t){return e[t]>=0})}var jt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Ht(t,{elementContext:"reference"}),a=Ht(t,{altBoundary:!0}),l=$t(o,i),c=$t(a,s,r),d=Vt(l),u=Vt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},qt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,o=Ge.reduce(function(e,n){return e[n]=function(e,t,n){var i=tt(e),s=[Fe,Re].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Fe,He].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,r),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},Wt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=zt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Ut={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=Ht(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=tt(t.placement),b=_t(t.placement),y=!b,w=gt(v),_="x"===w?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(r){var O,L="y"===w?Re:Fe,D="y"===w?ze:He,M="y"===w?"height":"width",P=S[w],I=P+g[L],N=P-g[D],R=p?-x[M]/2:0,z=b===Ve?E[M]:x[M],H=b===Ve?-x[M]:-E[M],F=t.elements.arrow,B=p&&F?lt(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=$[L],j=$[D],q=vt(0,E[M],B[M]),W=y?E[M]/2-R-q-V-T.mainAxis:z-q-V-T.mainAxis,U=y?-E[M]/2+R+q+j+T.mainAxis:H+q+j+T.mainAxis,G=t.elements.arrow&&mt(t.elements.arrow),Y=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,X=null!=(O=null==A?void 0:A[w])?O:0,K=P+U-X,J=vt(p?it(I,P+W-X-Y):I,P,p?nt(N,K):N);S[w]=J,k[w]=J-P}if(a){var Q,Z="x"===w?Re:Fe,ee="x"===w?ze:He,te=S[_],ne="y"===_?"height":"width",ie=te+g[Z],se=te-g[ee],re=-1!==[Re,Fe].indexOf(v),oe=null!=(Q=null==A?void 0:A[_])?Q:0,ae=re?ie:te-E[ne]-x[ne]-oe+T.altAxis,le=re?te+E[ne]+x[ne]-oe-T.altAxis:se,ce=p&&re?function(e,t,n){var i=vt(e,t,n);return i>n?n:i}(ae,te,le):vt(p?ae:ie,te,p?le:se);S[_]=ce,k[_]=ce-te}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function Gt(e,t,n){void 0===n&&(n=!1);var i,s,r=Qe(t),o=Qe(t)&&function(e){var t=e.getBoundingClientRect(),n=st(t.width)/e.offsetWidth||1,i=st(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=ht(t),l=at(e,o,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==Xe(t)||Mt(a))&&(c=(i=t)!==Ke(i)&&Qe(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Lt(i)),Qe(t)?((d=at(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Dt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Yt(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var Xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Jt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?Xt:s;return function(e,t,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xt,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:Je(e)?It(e):e.contextElement?It(e.contextElement):[],popper:It(t)};var o,c,h=function(e){var t=Yt(e);return Ye.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((o=[].concat(i,a.options.modifiers),c=o.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=h.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:a,name:t,instance:d,options:i});l.push(r||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Kt(t,n)){a.rects={reference:Gt(t,mt(n),"fixed"===a.options.strategy),popper:lt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],r=s.fn,o=s.options,l=void 0===o?{}:o,u=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(s())})})),o}),destroy:function(){u(),c=!0}};if(!Kt(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var Qt=Jt({defaultModifiers:[Ct,Wt,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:tt(t.placement),variation:_t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Et(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Et(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},et,qt,Bt,Ut,wt,jt]});function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var en,tn={exports:{}},nn=(en||(en=1,tn.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function s(e){return"number"==typeof e&&isFinite(e)}function r(e,n,i,r,o,a,l,c,d,u,h,p){var f,m,g,v,b,y=p,w="",_="";return a&&(p=a(p)),!!s(p)&&(!1!==e&&0===parseFloat(p.toFixed(e))&&(p=0),p<0&&(f=!0,p=Math.abs(p)),!1!==e&&(b=e,v=(v=p).toString().split("e"),p=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+b:b)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-b:-b))).toFixed(b)),-1!==(p=p.toString()).indexOf(".")?(g=(m=p.split("."))[0],i&&(w=i+m[1])):g=p,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),f&&c&&(_+=c),r&&(_+=r),f&&d&&(_+=d),_+=g,_+=w,o&&(_+=o),u&&(_=u(_,y)),_)}function o(e,t,i,r,o,a,l,c,d,u,h,p){var f,m="";return h&&(p=h(p)),!(!p||"string"!=typeof p)&&(c&&n(p,c)&&(p=p.replace(c,""),f=!0),r&&n(p,r)&&(p=p.replace(r,"")),d&&n(p,d)&&(p=p.replace(d,""),f=!0),o&&function(e,t){return e.slice(-1*t.length)===t}(p,o)&&(p=p.slice(0,-1*o.length)),t&&(p=p.split(t).join("")),i&&(p=p.replace(i,".")),f&&(m+="-"),""!==(m=(m+=p).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!s(m)&&m))}function a(t,n,i){var s,r=[];for(s=0;s<e.length;s+=1)r.push(t[e[s]]);return r.push(i),n.apply("",r)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,s,r,o={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(r=t[s=e[n]]))"negative"!==s||o.negativeBefore?"mark"===s&&"."!==o.thousand?o[s]=".":o[s]=!1:o[s]="-";else if("decimals"===s){if(!(r>=0&&r<8))throw new Error(s);o[s]=r}else if("encoder"===s||"decoder"===s||"edit"===s||"undo"===s){if("function"!=typeof r)throw new Error(s);o[s]=r}else{if("string"!=typeof r)throw new Error(s);o[s]=r}return i(o,"mark","thousand"),i(o,"prefix","negative"),i(o,"prefix","negativeBefore"),o}(n),this.to=function(e){return a(n,r,e)},this.from=function(e){return a(n,o,e)})}}()),tn.exports),sn=Zt(nn);function rn(e){return e.charAt(0).toLowerCase()+e.slice(1)}const on={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:({placement:e})=>e.includes("start")?[-10,0]:e.includes("end")?[10,0]:[0,0]}}]}};class an{element;config;instance;trigger;rootContainer;transitioner;isOpen=!1;ignoreNextBlur=!1;constructor(e,t){return this.element=e,this.config={...on,...t},this.config.popperOptions={...on.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...on.popperOptions.modifiers,...t?.popperOptions?.modifiers||[]],this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onDialogMouseDown=this.onDialogMouseDown.bind(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.element.ODS_Tooltip=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}wrapLastWordAndButton(){if(!this.element.hasAttribute("data-tooltip-keep-with-text"))return;const e=this.trigger.previousSibling;if(!e||e.nodeType!==Node.TEXT_NODE)return;const t=(e.textContent?.trim()||"").split(" "),n=t.pop(),i=t.join(" ");e.textContent=i+" ";const s=document.createElement("span");s.className="text-nowrap",s.innerHTML=`${n} ${this.trigger.outerHTML}`,this.trigger.parentNode?.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}init(){this.trigger=document.querySelector(`[data-tooltip-trigger][aria-describedby=${this.element.getAttribute("id")}]`),this.trigger,this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer&&this.rootContainer.appendChild(this.element);const e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=Ne({element:this.element,visibleClass:"is-visible"}),this.element.addEventListener("mousedown",this.onDialogMouseDown),this.trigger.addEventListener("click",this.handleVisibility),this.trigger.addEventListener("keydown",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}onDialogMouseDown(){this.ignoreNextBlur=!0}onDocumentClick(e){const t=e.target;t&&(this.trigger.contains(t)||this.element.contains(t)||this.hide())}handleVisibility(e){if("click"!==e.type)if("keydown"!==e.type){if("blur"===e.type){if(this.ignoreNextBlur)return void(this.ignoreNextBlur=!1);this.hide()}}else this.onKeydown(e);else this.toggle()}onKeydown(e){if(("Enter"===e.key||" "===e.key)&&"BUTTON"!==this.trigger.tagName)return e.preventDefault(),void this.toggle();w.ESC.includes(e.key)&&this.hide()}toggle(){this.isOpen?this.hide():this.show()}show(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.isOpen=!0,this.instance.forceUpdate(),document.addEventListener("click",this.onDocumentClick)}hide(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),this.isOpen=!1,document.removeEventListener("click",this.onDocumentClick)}update(){this.instance.forceUpdate()}destroy(){this.element.removeEventListener("mousedown",this.onDialogMouseDown),this.trigger.removeEventListener("click",this.handleVisibility),this.trigger.removeEventListener("keydown",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),document.removeEventListener("click",this.onDocumentClick),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}const ln="carousel",cn=`${ln}__viewport-wrapper`,dn=`${ln}__track`,un=`${ln}__slide`,hn=`${ln}__pagination-item`,pn="is-active",fn=`${ln}--bleed-right`,mn=`.${ln}__viewport`,gn=`.${dn}`,vn=`.${ln}__prev`,bn=`.${ln}__next`,yn=`.${ln}__pagination`,wn=`.${ln}__scrollbar`,_n=`.${pn}`,Sn={navigation:{nextEl:bn,prevEl:vn},pagination:{el:yn,clickable:!0,bulletClass:hn,bulletActiveClass:pn,renderBullet:(e,t)=>`<button aria-label="Page ${e+1}" role="tab" class="${t}" type="button"></button>`},scrollbar:{el:wn,draggable:!0,enabled:!0,horizontalClass:`${ln}__scrollbar-horizontal`,dragClass:`${ln}__scrollbar-drag`,hide:!1},slidesPerView:1.2,spaceBetween:20,mousewheel:{forceToAxis:!0,sensitivity:1},a11y:{enabled:!0,scrollOnFocus:!1,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},loop:!1,cssMode:!1,direction:"horizontal",breakpoints:{1240:{slidesPerView:1.6}},wrapperClass:dn,slideClass:un,slideActiveClass:pn,slideNextClass:`${ln}__slide-next`,slidePrevClass:`${ln}__slide-prev`};class En{element;config;viewport;track;instance;carouselId;isScrollbarDragging=!1;externalControlsState=null;resizeObserver;resizeRafId;boundWindowResizeHandler;bleedResizeHandler;static OVERFLOW_EPSILON_PX=1;getViewportWrapper(){return this.element.querySelector(`.${cn}`)}getSlidesPerView(){return Number(this.instance?.params?.slidesPerView)||1}setScrollbarVisible(e){const t=this.element.querySelector(wn);t&&(t.style.display=e?"":"none")}getSlidesContentWidth(){if(!this.instance)return this.track?.scrollWidth||0;const e=Array.from(this.instance.slides),t=e.reduce((e,t)=>e+t.offsetWidth,0),n=Number(this.instance.params?.spaceBetween)||0,i=t+Math.max(e.length-1,0)*n;return t<=0||i<=0?this.track?.scrollWidth||0:i}getOverflowWidth(e){const t=this.element.classList.contains(fn)?this.element.clientWidth||e?.clientWidth||0:this.viewport?.clientWidth||0;return t<=0?0:this.getSlidesContentWidth()-t}hasScrollableContent(e){if(!this.instance||!this.instance.params)return!1;const t=this.getOverflowWidth(e);return 0!==t?t>En.OVERFLOW_EPSILON_PX:this.instance.slides.length>this.getSlidesPerView()}constructor(e,t){const n=e.querySelector(wn),i="object"==typeof t?.scrollbar&&null!==t.scrollbar?t.scrollbar:void 0,s="object"==typeof Sn.scrollbar&&null!==Sn.scrollbar?Sn.scrollbar:void 0;return this.element=e,this.config={...Sn,...t,scrollbar:{...Sn.scrollbar??{},...t?.scrollbar??{},el:n,enabled:!!n&&(i?.enabled??s?.enabled)}},this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(()=>{this.init()}),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions();const e=this.element.classList.contains(fn);this.instance=new _e(this.viewport,{...this.config,watchOverflow:!e&&this.config.watchOverflow,enabled:!1,modules:[ke,De,Me,Pe,xe,Ce],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:()=>{this.updateExternalControlsState()},scrollbarDragStart:()=>{this.isScrollbarDragging=!0},scrollbarDragEnd:()=>{this.isScrollbarDragging=!1,this.updateExternalControlsState(!0)}}}),this.updateCarouselEnabledState(),this.element.classList.contains(fn)&&(this.adjustConfigForBleedRight(),this.fixBleedRightScrollbar()),this.syncScrollbar(),this.instance&&"function"==typeof this.instance.on&&this.instance.on("resize",()=>{this.updateCarouselEnabledState()}),this.observeVisibilityChanges(),window.addEventListener("resize",this.boundWindowResizeHandler),this.initExternalControls(),requestAnimationFrame(()=>{this.instance&&this.instance.update()})}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.bleedResizeHandler?.(),this.updateExternalControlsState(),this.instance.scrollbar?.updateSize()))})}syncScrollbar(){requestAnimationFrame(()=>{this.instance?.scrollbar&&this.instance.scrollbar.updateSize()})}observeVisibilityChanges(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(()=>{this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.instance.scrollbar?.updateSize()))}),this.resizeObserver.observe(this.viewport))}fixBleedRightScrollbar(){const e=()=>{const e=this.getViewportWrapper(),t=this.instance?.scrollbar,n=this.instance;if(!(e&&t&&t.dragEl&&n))return;if(!this.hasScrollableContent(e))return void this.setScrollbarVisible(!1);this.setScrollbarVisible(!0);const i=t.el.offsetWidth,s=this.instance?.width||this.element.clientWidth||e.clientWidth,r=this.getSlidesContentWidth(),o="function"==typeof n.minTranslate?n.minTranslate():0,a="function"==typeof n.maxTranslate?n.maxTranslate():0,l=Math.max(Math.abs(a-o),0),c=Math.max(r,s+l),d=(c>0?Math.min(s/c,1):1)*i,u=Math.max(d,30);t.dragEl.style.width=`${u}px`,t.dragEl.style.display="";const h=Math.min(Math.max(n.progress||0,0),1)*Math.max(i-u,0);t.dragEl.style.transform=`translate3d(${h}px, 0, 0)`};requestAnimationFrame(()=>{requestAnimationFrame(e)}),this.instance.on("progress",e),this.instance.on("slideChange",e),this.instance.on("resize",e),this.instance.on("update",e),this.instance.on("setTranslate",e)}getElements(){this.viewport=this.element.querySelector(mn),this.track=this.viewport.querySelector(gn);const e=this.element.querySelector(yn);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={navigation:{...this.config.navigation??{},nextEl:this.element.querySelector(bn),prevEl:this.element.querySelector(vn)},pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:hn,bulletActiveClass:pn}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}updateCarouselEnabledState(){if(!this.instance||!this.instance.params)return;const e=this.getViewportWrapper();this.hasScrollableContent(e||void 0)?this.instance.enable():this.instance.disable(),this.setScrollbarVisible(this.instance.enabled)}applyBleedInsets(e){if(!this.instance||!this.instance.params)return;const t=this.element.clientWidth||e.clientWidth||0,n=document.documentElement?.clientWidth||window.innerWidth||0,i=e.getBoundingClientRect(),s=this.element.getBoundingClientRect(),r=s.left>0?s.left:i.left,o=Math.max(Math.floor(r),0),a=Math.max(Math.floor(n),t,0),l=-o,c=Math.max(a-o,t,0),d=this.getSlidesContentWidth(),u=d-t,h=this.getSlidesPerView(),p=this.instance.slides.length,f=!(d>0?u>En.OVERFLOW_EPSILON_PX:p>h),m=!f,g=f?"100%":`${c}px`,v=f?"0px":`${o}px`,b=f?"100%":`${a}px`,y=f?"0px":`${l}px`,w=this.element.classList.contains(fn)!==m||this.instance.params.width!==(f?void 0:t)||this.element.style.getPropertyValue("--carousel-bleed-viewport-width")!==g||this.element.style.getPropertyValue("--carousel-bleed-margin-left")!==v||this.element.style.getPropertyValue("--carousel-bleed-shell-width")!==b||this.element.style.getPropertyValue("--carousel-bleed-shell-margin-left")!==y;this.element.classList.toggle(fn,m);const _=f?void 0:t;this.instance.params.width=_,this.instance.originalParams&&(this.instance.originalParams.width=_),this.instance.params.slidesOffsetBefore=0,this.instance.params.slidesOffsetAfter=0,this.element.style.setProperty("--carousel-bleed-viewport-width",g),this.element.style.setProperty("--carousel-bleed-margin-left",v),this.element.style.setProperty("--carousel-bleed-shell-width",b),this.element.style.setProperty("--carousel-bleed-shell-margin-left",y),w&&this.instance.update(),this.updateCarouselEnabledState()}adjustConfigForBleedRight(){requestAnimationFrame(()=>{if(!this.instance)return;const e=this.getViewportWrapper();if(!e)return;const t=()=>{this.applyBleedInsets(e)};this.bleedResizeHandler=t,t(),this.instance.on("resize",t)})}handleSlideChange(){const e=this.track.querySelector(_n),t=this.track.querySelectorAll(`.${un}:not(${_n})`);e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t),this.updateExternalControlsState()}updateTooltipPosition(e){const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=an.getInstance(n);i&&i.update()})}hideAllTooltips(e){e.forEach(e=>{const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=an.getInstance(n);i&&(i.hide(),e.blur())})})}initExternalControls(){const e=this.element.dataset.carouselId||this.element.id;e&&(this.carouselId=e,document.querySelectorAll(`[data-carousel-controls="${e}"]`).forEach(e=>{const t=e;if(t.hasAttribute("data-carousel-initialized"))return;t._carouselClickHandler&&t.removeEventListener("click",t._carouselClickHandler);const n=t.dataset.carouselAction,i=e=>{e.preventDefault(),t.hasAttribute("disabled")||("next"===n?this.slideNext():"prev"===n&&this.slidePrev())};"next"!==n&&"prev"!==n||(t.addEventListener("click",i),t.setAttribute("aria-label","next"===n?("object"==typeof this.config.a11y?this.config.a11y?.nextSlideMessage:void 0)||"Nasledujúci snímok":("object"==typeof this.config.a11y?this.config.a11y?.prevSlideMessage:void 0)||"Predchádzajúci snímok"),t.setAttribute("type","button"),t._carouselClickHandler=i),t.setAttribute("data-carousel-initialized","true")}),this.updateExternalControlsState())}updateExternalControlsState(e=!1){if(!this.carouselId||!this.instance)return;if(!this.instance.params)return;if(this.isScrollbarDragging&&!e)return;const t=!this.instance.enabled,n=t||this.instance.isBeginning,i=t||this.instance.isEnd;this.externalControlsState={isAtStart:n,isAtEnd:i},this.applyExternalControlsState(this.externalControlsState)}applyExternalControlsState(e){const{isAtStart:t,isAtEnd:n}=e,i=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="prev"]`),s=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="next"]`);i.forEach(e=>{const n=e;t?(n.setAttribute("disabled",""),n.setAttribute("aria-disabled","true"),n.style.cursor="not-allowed"):(n.removeAttribute("disabled"),n.setAttribute("aria-disabled","false"),n.style.cursor="pointer")}),s.forEach(e=>{const t=e;n?(t.setAttribute("disabled",""),t.setAttribute("aria-disabled","true"),t.style.cursor="not-allowed"):(t.removeAttribute("disabled"),t.setAttribute("aria-disabled","false"),t.style.cursor="pointer")})}slideNext(){this.instance&&this.instance.slideNext()}slidePrev(){this.instance&&this.instance.slidePrev()}getActiveIndex(){return this.instance?this.instance.activeIndex:0}onSlideChange(e){this.instance&&this.instance.on("slideChange",()=>{e(this.instance.activeIndex)})}destroy(){this.carouselId&&document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"]`).forEach(e=>{const t=e;t._carouselClickHandler&&(t.removeEventListener("click",t._carouselClickHandler),delete t._carouselClickHandler),t.removeAttribute("data-carousel-initialized")}),window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.bleedResizeHandler&&(this.instance.off("resize",this.bleedResizeHandler),this.bleedResizeHandler=void 0),this.instance&&this.instance.destroy(),this.isScrollbarDragging=!1,this.externalControlsState=null,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.element.ODS_Carousel===this&&delete this.element.ODS_Carousel}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}static getInstanceById(e){const t=document.querySelector(`[data-carousel-id="${e}"]`)||document.getElementById(e);return t?this.getInstance(t):null}}const xn="carousel-hero",Cn=`${xn}__slide`,Tn=`${xn}__pagination-item`,An=`${xn}__pagination-svg`,kn=`${xn}__pagination-circle`,On="is-active",Ln="is-playing",Dn="is-paused",Mn=`.${xn}__viewport`,Pn=`.${xn}__prev`,In=`.${xn}__next`,Nn=`.${xn}__play-pause`,Rn=`.${xn}__tabs`,zn=`.${xn}__tab`,Hn=`.${xn}__pagination`,Fn={pagination:{clickable:!0,bulletClass:Tn,bulletActiveClass:"is-active",renderBullet:function(e,t){return`<button type="button" class="${t}" aria-label="Prejsť na snímok ${e+1}"></button>`}},slidesPerView:1,loop:!1,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",containerMessage:"Hero carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},wrapperClass:`${xn}__track`,slideClass:Cn,slideActiveClass:On},Bn="carousel-promotions",$n=`${Bn}__pagination-item`,Vn=`${Bn}__pagination-svg`,jn=`${Bn}__pagination-circle`,qn=`${Bn}--slide-inverted`,Wn="is-autoplay",Un="is-active",Gn=`.${Bn}__viewport`,Yn=`.${Bn}__pagination`,Xn={pagination:{el:Yn,clickable:!0,bulletClass:$n,bulletActiveClass:Un,renderBullet:(e,t)=>`<button aria-label="Stránka ${e+1}" role="tab" class="${t}" type="button"></button>`},slidesPerView:1,loop:!0,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},cssMode:!1,direction:"horizontal",wrapperClass:`${Bn}__track`,slideClass:`${Bn}__slide`,slideActiveClass:Un,autoplay:!1};class Kn{element;config;viewport;instance;interval=0;autoplayTimer;resizeRafId;boundWindowResizeHandler;boundPaginationClickHandler;constructor(e,t){return this.element=e,this.config={...Xn,...t},this.interval=0,this.handleSlideChange=this.handleSlideChange.bind(this),this.scrollToNextSlide=this.scrollToNextSlide.bind(this),this.autoplayAnimationEnd=this.autoplayAnimationEnd.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.boundPaginationClickHandler=this.handlePaginationClick.bind(this),this.element.ODS_CarouselPromotions=this,this.init(),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));const e=this.isIntervalValid();e?(this.element.classList.add(Wn),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new _e(this.viewport,{...this.config,modules:[ke,De,Pe,xe,Ie],on:{slideChange:this.handleSlideChange,init:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()},update:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}}});const t=this.element.querySelector(Yn);t&&e&&(t.addEventListener("animationend",this.autoplayAnimationEnd),t.addEventListener("click",this.boundPaginationClickHandler)),window.addEventListener("resize",this.boundWindowResizeHandler)}handlePaginationClick(){this.stopAutoplay()}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()))})}stopAutoplay(){this.interval=0,this.element.classList.remove(Wn),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}handleSlideChange(){this.element.classList.remove(qn),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(qn)}autoplayAnimationEnd(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}get isAutoplayEnabled(){return this.interval>0}isIntervalValid(){const e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}scrollToNextSlide(){if(!this.instance||!this.instance.slides)return;const e=this.instance.slides.length;if(e<=0)return;const t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}getElements(){this.viewport=this.element.querySelector(Gn);const e=this.element.querySelector(Yn);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:$n,bulletActiveClass:Un}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}fixPaginationButtonType(){Array.from(this.element.querySelectorAll(`${Yn} > *`)).forEach(e=>e.setAttribute("type","button"))}static createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",Vn),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);const n=document.createElementNS(e,"circle");return n.setAttribute("class",jn),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}renderSvgDotsForAnimation(){const e=Array.from(this.element.querySelectorAll(`${Yn} > *`)),t=Kn.createSvgDot();t.querySelector("circle").style.animationDuration=`${this.interval}ms`,e.forEach(e=>{e.innerHTML="",e.appendChild(t.cloneNode(!0))})}destroy(){window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0);const e=this.element.querySelector(Yn);e&&(e.removeEventListener("animationend",this.autoplayAnimationEnd),e.removeEventListener("click",this.boundPaginationClickHandler)),this.instance&&this.instance.destroy(),this.element.ODS_CarouselPromotions===this&&delete this.element.ODS_CarouselPromotions}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}}const Jn={many:"dni",few:"dni",one:"deň"},Qn={days:Jn,hours:"hod",minutes:"min",seconds:"sek"},Zn={targetDate:"",units:[...d],labels:Qn},ei=(e,t,n)=>{if("days"!==e)return n[e];const{many:i,few:s,one:r}=p(n.days,Jn);return 1===t?r:t>=2&&t<=4?s:i},ti={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},ni="toggleTrigger",ii={activeClass:"is-active",settingsAttr:"data-toggle"};class si{constructor(e,t){return this.element=e,this.config={...ii,...t},this.settings=[],this.targets=[],this.hasClickOutside=!1,this.handleClick=this.handleClick.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.element.ODS_Toggle=this,this.init(),this}doToggle(e){const{dispatchEvent:t=!0}=e,{element:n,attribute:i,value:s,action:r}=e,o={...e},a={trigger:this.element,element:n};let l=i,c=n,d=s;"icon"===l&&(l="xlink:href",c=n.querySelector("use")),"text"===l&&(c=n.querySelector("[data-toggle-text-target]")||n),void 0===d&&(d=!1);const u=ri({element:c,attribute:l,action:r,value:d,dispatchEvent:t,eventDetail:a});return null!==u&&(o.value=u),o}init(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),this.element.addEventListener("click",this.handleClick),this.hasClickOutside&&document.addEventListener("click",this.handleClickOutside),this.targets}handleClick(){this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(ni,{bubbles:!0}))}handleClickOutside(e){const t=e.target;this.element.contains(t)||this.targets.some(e=>e.element.contains(t))||this.targets.some(e=>"class"===e.attribute&&"string"==typeof e.value?e.element.classList.contains(e.value):"hidden"===e.attribute&&!e.element.hasAttribute("hidden"))&&(this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(ni,{bubbles:!0})))}destroy(){this.element.removeEventListener("click",this.handleClick),this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside),this.settings=[],this.targets=[],this.hasClickOutside=!1}update(){this.removeNonExistentTargets(),this.addNewTargets();const e=this.hasClickOutside;this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),!e&&this.hasClickOutside?document.addEventListener("click",this.handleClickOutside):e&&!this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside)}static getTargetElementsFromString({target:e,trigger:t}){const n=e.trim();return"self"===n?[t]:"parent"===n?[t.parentNode]:"previous"===n?[t.previousElementSibling]:"next"===n?[t.nextElementSibling]:"string"==typeof n?Array.from(document.querySelectorAll(n)):[]}parseSettings(){const e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls");let n=[];try{e&&(n=JSON.parse(e))}catch(e){}return t&&(n=[...this.element.getAttribute("aria-expanded")?[{target:"self",attribute:"aria-expanded"}]:[],{target:t.split(" ").map(e=>`#${e}`).join(","),attribute:"hidden"},...Array.isArray(n)?n:[]]),n}setupTargets(){const e=this.element;return this.settings.reduce((t,n)=>n&&n.target?[...t,...n.target.split(",").reduce((t,i)=>[...t,...si.getTargetElementsFromString({target:i,trigger:e}).map(e=>({...n,element:e}))],[])]:t,[])}removeNonExistentTargets(){this.targets=this.targets.filter(e=>document.contains(e.element))}addNewTargets(){const e=this.setupTargets().filter(e=>!this.targets.find(t=>t.element===e.element&&t.action===e.action));this.targets=[...this.targets,...e]}static getInstance(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}function ri(e){const{element:t,attribute:n,action:i,value:s,dispatchEvent:r=!0,eventDetail:o}=e;let a=null;if(!(t&&t instanceof Element))return a;if("focus"===i&&setTimeout(()=>t.focus(),20),"click"===i&&t.click(),"class"===n&&"string"==typeof s&&(t.classList.toggle(s),a=s),"text"===n){const e=t.textContent;t.textContent=s?.toString()||"",a=e}return"class"!==n&&"text"!==n&&void 0===i&&(a=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):s?t.setAttribute(n,String(s)):t.setAttribute(n,String(!("true"===a)))),r&&t.dispatchEvent(new CustomEvent("toggle",{detail:o,bubbles:!0})),a}const oi={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]"},ai={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tClearButton:()=>"Vymazať text",tAssistiveHint:()=>"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."},li=(e,t)=>{const n=e.split(/\s+/).filter(Boolean);return n.includes(t)?e:[...n,t].join(" ")};var ci,di,ui,hi,pi,fi,mi,gi,vi,bi,yi={},wi=[],_i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Si(e,t){for(var n in t)e[n]=t[n];return e}function Ei(e){var t=e.parentNode;t&&t.removeChild(e)}function xi(e,t,n){var i,s,r,o={};for(r in t)"key"==r?i=t[r]:"ref"==r?s=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?ci.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===o[r]&&(o[r]=e.defaultProps[r]);return Ci(e,o,i,s,null)}function Ci(e,t,n,i,s){var r={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++ui:s};return null==s&&null!=di.vnode&&di.vnode(r),r}function Ti(e){return e.children}function Ai(e,t){this.props=e,this.context=t}function ki(e,t){if(null==t)return e.__?ki(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?ki(e):null}function Oi(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Oi(e)}}function Li(e){(!e.__d&&(e.__d=!0)&&hi.push(e)&&!Di.__r++||fi!==di.debounceRendering)&&((fi=di.debounceRendering)||pi)(Di)}function Di(){for(var e;Di.__r=hi.length;)e=hi.sort(function(e,t){return e.__v.__b-t.__v.__b}),hi=[],e.some(function(e){var t,n,i,s,r,o;e.__d&&(r=(s=(t=e).__v).__e,(o=t.__P)&&(n=[],(i=Si({},s)).__v=s.__v+1,Bi(o,s,i,t.__n,void 0!==o.ownerSVGElement,null!=s.__h?[r]:null,n,null==r?ki(s):r,s.__h),$i(n,s),s.__e!=r&&Oi(s)))})}function Mi(e,t,n,i,s,r,o,a,l,c){var d,u,h,p,f,m,g,v=i&&i.__k||wi,b=v.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?Ci(null,p,null,null,p):Array.isArray(p)?Ci(Ti,{children:p},null,null,null):p.__b>0?Ci(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=v[d])||h&&p.key==h.key&&p.type===h.type)v[d]=void 0;else for(u=0;u<b;u++){if((h=v[u])&&p.key==h.key&&p.type===h.type){v[u]=void 0;break}h=null}Bi(e,p,h=h||yi,s,r,o,a,l,c),f=p.__e,(u=p.ref)&&h.ref!=u&&(g||(g=[]),h.ref&&g.push(h.ref,null,p),g.push(u,p.__c||f,p)),null!=f?(null==m&&(m=f),"function"==typeof p.type&&p.__k===h.__k?p.__d=l=Pi(p,l,e):l=Ni(e,p,h,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=ki(h))}for(n.__e=m,d=b;d--;)null!=v[d]&&("function"==typeof n.type&&null!=v[d].__e&&v[d].__e==n.__d&&(n.__d=ki(i,d+1)),ji(v[d],v[d]));if(g)for(d=0;d<g.length;d++)Vi(g[d],g[++d],g[++d])}function Pi(e,t,n){for(var i,s=e.__k,r=0;s&&r<s.length;r++)(i=s[r])&&(i.__=e,t="function"==typeof i.type?Pi(i,t,n):Ni(n,i,i,s,i.__e,t));return t}function Ii(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){Ii(e,t)}):t.push(e)),t}function Ni(e,t,n,i,s,r){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||s!=r||null==s.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(s),o=null;else{for(a=r,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==s)break e;e.insertBefore(s,r),o=r}return void 0!==o?o:s.nextSibling}function Ri(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||_i.test(t)?n:n+"px"}function zi(e,t,n,i,s){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||Ri(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||Ri(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i||e.addEventListener(t,r?Fi:Hi,r):e.removeEventListener(t,r?Fi:Hi,r);else if("dangerouslySetInnerHTML"!==t){if(s)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Hi(e){this.l[e.type+!1](di.event?di.event(e):e)}function Fi(e){this.l[e.type+!0](di.event?di.event(e):e)}function Bi(e,t,n,i,s,r,o,a,l){var c,d,u,h,p,f,m,g,v,b,y,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,r=[a]),(c=di.__b)&&c(t);try{e:if("function"==typeof w){if(g=t.props,v=(c=w.contextType)&&i[c.__c],b=c?v?v.props.value:c.__:i,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(g,b):(t.__c=d=new Ai(g,b),d.constructor=w,d.render=qi),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=b,d.__n=i,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=w.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Si({},d.__s)),Si(d.__s,w.getDerivedStateFromProps(g,d.__s))),h=d.props,p=d.state,u)null==w.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==w.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,b)||t.__v===n.__v){d.props=g,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,p,f)})}d.context=b,d.props=g,d.state=d.__s,(c=di.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=Si(Si({},i),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(f=d.getSnapshotBeforeUpdate(h,p)),y=null!=c&&c.type===Ti&&null==c.key?c.props.children:c,Mi(e,Array.isArray(y)?y:[y],t,n,i,s,r,o,a,l),d.base=t.__e,t.__h=null,d.__h.length&&o.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,s,r,o,a){var l,c,d,u=n.props,h=t.props,p=t.type,f=0;if("svg"===p&&(s=!0),null!=r)for(;f<r.length;f++)if((l=r[f])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){e=l,r[f]=null;break}if(null==e){if(null===p)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),r=null,a=!1}if(null===p)u===h||a&&e.data===h||(e.data=h);else{if(r=r&&ci.call(e.childNodes),c=(u=n.props||yi).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(null!=r)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,i,s){var r;for(r in n)"children"===r||"key"===r||r in t||zi(e,r,null,n[r],i);for(r in t)s&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||zi(e,r,t[r],n[r],i)}(e,h,u,s,a),d)t.__k=[];else if(f=t.props.children,Mi(e,Array.isArray(f)?f:[f],t,n,i,s&&"foreignObject"!==p,r,o,r?r[0]:n.__k&&ki(n,0),a),null!=r)for(f=r.length;f--;)null!=r[f]&&Ei(r[f]);a||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===p&&!f||"option"===p&&f!==u.value)&&zi(e,"value",f,u.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&zi(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,s,r,o,l);(c=di.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=r)&&(t.__e=a,t.__h=!!l,r[r.indexOf(a)]=null),di.__e(e,t,n)}}function $i(e,t){di.__c&&di.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){di.__e(e,t.__v)}})}function Vi(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){di.__e(e,n)}}function ji(e,t,n){var i,s;if(di.unmount&&di.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Vi(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){di.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&ji(i[s],t,"function"!=typeof e.type);n||null==e.__e||Ei(e.__e),e.__e=e.__d=void 0}function qi(e,t,n){return this.constructor(e,n)}function Wi(e,t,n){var i,s;di.__&&di.__(e,t),i=t.__k,s=[],Bi(t,e=t.__k=xi(Ti,null,[e]),i||yi,yi,void 0!==t.ownerSVGElement,i?null:t.firstChild?ci.call(t.childNodes):null,s,i?i.__e:t.firstChild,!1),$i(s,e)}ci=wi.slice,di={__e:function(e,t){for(var n,i,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},ui=0,Ai.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Si({},this.state),"function"==typeof e&&(e=e(Si({},n),this.props)),e&&Si(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Li(this))},Ai.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Li(this))},Ai.prototype.render=Ti,hi=[],pi="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Di.__r=0,mi=0;var Ui=0,Gi=[],Yi=di.__b,Xi=di.__r,Ki=di.diffed,Ji=di.__c,Qi=di.unmount;function Zi(e,t){di.__h&&di.__h(vi,e,Ui||t),Ui=0;var n=vi.__H||(vi.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function es(e){return Ui=1,function(e,t){var n=Zi(gi++,2);return n.t=e,n.__c||(n.__=[cs(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=vi),n.__}(cs,e)}function ts(e,t){var n=Zi(gi++,3);!di.__s&&ls(n.__H,t)&&(n.__=e,n.__H=t,vi.__H.__h.push(n))}function ns(e){return Ui=5,function(e,t){var n=Zi(gi++,7);return ls(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function is(e){var t=vi.context[e.__c],n=Zi(gi++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(vi)),t.props.value):e.__}function ss(){for(var e;e=Gi.shift();)if(e.__P)try{e.__H.__h.forEach(os),e.__H.__h.forEach(as),e.__H.__h=[]}catch(t){e.__H.__h=[],di.__e(t,e.__v)}}di.__b=function(e){vi=null,Yi&&Yi(e)},di.__r=function(e){Xi&&Xi(e),gi=0;var t=(vi=e.__c).__H;t&&(t.__h.forEach(os),t.__h.forEach(as),t.__h=[])},di.diffed=function(e){Ki&&Ki(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Gi.push(t)&&bi===di.requestAnimationFrame||((bi=di.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),rs&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);rs&&(t=requestAnimationFrame(n))})(ss)),vi=null},di.__c=function(e,t){t.some(function(e){try{e.__h.forEach(os),e.__h=e.__h.filter(function(e){return!e.__||as(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],di.__e(n,e.__v)}}),Ji&&Ji(e,t)},di.unmount=function(e){Qi&&Qi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{os(e)}catch(e){t=e}}),t&&di.__e(t,n.__v))};var rs="function"==typeof requestAnimationFrame;function os(e){var t=vi,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),vi=t}function as(e){var t=vi;e.__c=e.__(),vi=t}function ls(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function cs(e,t){return"function"==typeof t?t(e):t}function ds(e,t){for(var n in t)e[n]=t[n];return e}function us(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function hs(e){this.props=e}(hs.prototype=new Ai).isPureReactComponent=!0,hs.prototype.shouldComponentUpdate=function(e,t){return us(this.props,e)||us(this.state,t)};var ps=di.__b;di.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ps&&ps(e)};var fs="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ms(e){function t(t,n){var i=ds({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=fs,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var gs=di.__e;di.__e=function(e,t,n){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);gs(e,t,n)};var vs=di.unmount;function bs(){this.__u=0,this.t=null,this.__b=null}function ys(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ws(){this.u=null,this.o=null}di.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),vs&&vs(e)},(bs.prototype=new Ai).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var s=ys(i.__v),r=!1,o=function(){r||(r=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(o,o)},bs.prototype.componentWillUnmount=function(){this.t=[]},bs.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=ds({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var s=t.__e&&xi(Ti,null,e.fallback);return s&&(s.__h=null),[xi(Ti,null,t.__e?null:e.children),s]};var _s=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(ws.prototype=new Ai).__e=function(e){var t=this,n=ys(t.__v),i=t.o.get(e);return i[0]++,function(s){var r=function(){t.props.revealOrder?(i.push(s),_s(t,e,i)):s()};n?n(r):r()}},ws.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ii(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ws.prototype.componentDidUpdate=ws.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){_s(e,n,t)})};var Ss="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Es=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,xs="undefined"!=typeof document,Cs=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Ai.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ai.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ts=di.event;function As(){}function ks(){return this.cancelBubble}function Os(){return this.defaultPrevented}di.event=function(e){return Ts&&(e=Ts(e)),e.persist=As,e.isPropagationStopped=ks,e.isDefaultPrevented=Os,e.nativeEvent=e};var Ls={configurable:!0,get:function(){return this.class}},Ds=di.vnode;di.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var s=-1===t.indexOf("-");for(var r in i={},n){var o=n[r];xs&&"children"===r&&"noscript"===t||"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!Cs(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():s&&Es.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Ii(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=Ii(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(Ls.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Ls))}e.$$typeof=Ss,Ds&&Ds(e)};var Ms=di.__r;di.__r=function(e){Ms&&Ms(e),e.__c};var Ps={wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination",nextMonthButton:"daypickr__button--pagination-next",prevMonthButton:"daypickr__button--pagination-prev",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",closeButton:"daypickr__button--close",toggleButton:"daypickr__button--toggle"};function Is(...e){return e.join(" ").trim()}var Ns={prevMonth:"previous month",nextMonth:"next month",month:"Month",year:"Year",weekdays:[{name:"Sunday",shortname:"Su"},{name:"Monday",shortname:"Mo"},{name:"Tuesday",shortname:"Tu"},{name:"Wednesday",shortname:"We"},{name:"Thursday",shortname:"Th"},{name:"Friday",shortname:"Fr"},{name:"Saturday",shortname:"Sa"}],months:["January","February","March","April","May","June","July","August","September","October","November","December"],openButton:"Choose date",closeButton:"Close"};function Rs(e){return e instanceof Date&&!isNaN(e.valueOf())}function zs(e,t=1){const n=new Date(e),i=e.getDay(),s=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-s))}function Hs(e,t=1){const n=new Date(e),i=n.getDay(),s=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+s))}function Fs(e,t){return!(!Rs(e)||!Rs(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function Bs(e,t){const n=new Date(e).setMonth(t),i=new Date(e.getFullYear(),t+1,0).getTime();return n>i?new Date(i):new Date(n)}var $s,Vs,js=(Vs={__c:$s="__cC"+mi++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[$s]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Li)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=Vs.Consumer.contextType=Vs,qs=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:s,setView:r,handleKeyboardNavigation:o,focusedRef:a,view:l,disabledDayFn:c,locale:d}=is(js),u=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),h=function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(function(e,t){const n=new Date(e);n.setDate(1);const i=new Date(e);return i.setMonth(e.getMonth()+1,0),function(e,t){const n=[];let i=e;for(;i.getTime()<t.getTime();)n.push(new Date(i)),i=new Date(i.setDate(i.getDate()+1));return n.push(new Date(i)),n}(zs(n,t),Hs(i,t))}(l,e));return xi("table",{className:t.table},xi("thead",null,xi("tr",{className:t.tableHeaderRow},u.map(e=>xi("th",{scope:"col",className:t.tableHeaderCell},xi("span",{className:t.srOnly},e.name),xi("span",{"aria-hidden":"true"},e.shortname))))),xi("tbody",null,h.map(e=>xi("tr",{className:t.tableRow},e.map(e=>{const n=i&&Fs(e,i),u=Fs(e,l),h=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),p=(f=e,Fs(new Date,f)?t.isToday:void 0);var f;const m=n?t.isSelected:void 0,g=[t.dayButton,p,m],v=u?"0":"-1",b=e.toLocaleDateString(d),y=u?a:void 0;return xi("td",{role:"gridcell",className:t.tableCell},xi("button",{className:g.join(" "),type:"button",onClick:()=>{h||(s(e),r(e))},tabindex:v,onKeyUp:o,ref:y,"aria-disabled":h,"aria-label":b,"aria-selected":n},xi("span",{className:t.srOnly},b),xi("span",{"aria-hidden":"true"},e.getDate())))})))))},Ws=ms(({label:e,value:t,options:n,onChange:i,className:s,elemRef:r,...o},a)=>{const{classes:l}=is(js);return xi("label",null,xi("span",{className:"sr-only"},e),xi("select",{className:Is(l.select,s),onChange:e=>i(e),ref:a,...o},n?.map(e=>xi("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),Us=Ws;function Gs(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var Ys=ms((e,t)=>{const{l10n:n,min:i,max:s,view:r,setView:o,classes:a}=is(js),l=new Date(i).getFullYear(),c=new Date(s).getFullYear();return xi(Us,{label:n.year,options:Gs(l,c),value:r.getFullYear(),className:a.yearSelect,onChange:e=>{const t=new Date(r);t.setFullYear(parseInt(e.target.value,10)),o(t)},ref:t,...e})}),Xs=Ys,Ks=()=>{const{l10n:e,view:t,setView:n,classes:i}=is(js);return xi(Us,{label:e.month,value:t.getMonth(),className:i.monthSelect,options:e.months?.map((e,t)=>({value:t,text:e})),onChange:e=>{const i=new Date(t);i.setMonth(parseInt(e.target.value,10)),n(i)}})},Js=({min:e="1900-01-01",max:t="2100-12-31",classes:n=Ps,l10n:i=Ns,selectedDay:s,firstDayOfWeek:r=1,locale:o={},disabledDayFn:a=()=>{},onSelect:l=()=>{},formatDate:c=e=>function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e),parseDate:d=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:u,name:h,id:p})=>{const[f,m]=es(s?new Date(s):new Date),[g,v]=es(s?new Date(s):void 0),[b,y]=es(!1),w=ns(!0),_=ns(),S=ns(),E=ns(),x=ns(),C=ns(),T=ns();var A,k,O;ts(()=>{l(g),y(!1)},[g]),ts(()=>{const e=e=>{"Tab"===e.key&&b&&(e.shiftKey||document.activeElement!==T.current||(e.preventDefault(),x.current.focus()),!e.shiftKey||document.activeElement!==x.current&&document.activeElement!==C.current||(e.preventDefault(),T.current.focus()))},t=e=>{"Escape"===e.key&&b&&y(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[b,T.current,x.current]),ts(()=>{const e=e=>{!C.current.contains(e.target)&&b&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[b,C.current]),A=()=>{b?C.current.focus():document.activeElement===_.current||w.current?w.current=!1:E.current.focus()},k=[b,x.current,E.current,_.current],O=Zi(gi++,4),!di.__s&&ls(O.__H,k)&&(O.__=A,O.__H=k,vi.__h.push(O));const L=e=>Bs(e,e.getMonth()-1),D=e=>Bs(e,e.getMonth()+1),M=()=>{y(!b)},P=({type:e,children:t,...n})=>xi(e,n,t&&t.length&&t.map(e=>P(e)));return xi(js.Provider,{value:{firstDayOfWeek:r,classes:n,l10n:i,min:e,max:t,view:f,setView:m,selected:g,setSelected:v,handleKeyboardNavigation:e=>{let t=new Date(f);const n={ArrowLeft:()=>{t.setDate(f.getDate()-1)},ArrowRight:()=>{t.setDate(f.getDate()+1)},ArrowUp:()=>{t.setDate(f.getDate()-7)},ArrowDown:()=>{t.setDate(f.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(f.getFullYear()-1):t=L(f)},PageDown:()=>{e.shiftKey?t.setFullYear(f.getFullYear()+1):t=D(f)},Home:()=>{t=zs(f,r)},End:()=>{t=Hs(f,r)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{S.current.focus()},0))},focusedRef:S,disabledDayFn:a,locale:o}},xi("input",{id:`${p}-input`,type:"text",className:n.input,value:g&&g.toLocaleDateString(o),onChange:e=>(e=>{""===e.target.value&&v(void 0);const t=d(e.target.value);if(t)return m(t),v(t)})(e),ref:_}),xi("input",{type:"hidden",id:`${p}-value`,value:c(g),name:h}),xi("button",{type:"button","aria-controls":`${p}-dialog`,onClick:()=>M(),"aria-expanded":b,ref:E,className:n.toggleButton},u&&P(u),u?xi("span",{class:n.srOnly},i.openButton):i.openButton),xi("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:C,tabIndex:"-1"},xi("div",{className:"daypickr__content"},xi("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(o,{month:"long",year:"numeric"})),xi("div",{className:n.header},xi("div",{className:n.yearMonthWrapper},xi(Xs,{ref:x}),xi(Ks,null)),xi("div",{className:n.pagination},xi("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(L(f))}},i.prevMonth),xi("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(D(f))}},i.nextMonth))),xi(qs,null),xi("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>M(),ref:T},i.closeButton))))},Qs=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const s=({type:e,children:t,...n})=>xi(e,n,t&&t.length&&t.map(e=>s(e)));return xi(js.Provider,{value:{classes:t,l10n:n}},xi("input",{type:"text",disabled:!0,className:t.input}),xi("button",{type:"button",className:t.toggleButton,disabled:!0},e&&s(e),e?xi("span",{class:t.srOnly},n.openButton):n.openButton))};const Zs={locale:"sk",classes:{wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",selectDisplay:"daypickr__select-display",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination ",nextMonthButton:"daypickr__button--pagination-next btn btn--ghost btn--square btn--small",prevMonthButton:"daypickr__button--pagination-prev btn btn--ghost btn--square btn--small",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",input:"form-group__item text-input",closeButton:"daypickr__button--close btn mb-none",toggleButton:"form-group__item btn btn--square"},firstDayOfWeek:1,l10n:{prevMonth:"predchádzajúci mesiac",nextMonth:"nasledujúci mesiac",month:"Mesiac",year:"Rok",weekdays:[{name:"Nedeľa",shortname:"Ne"},{name:"Pondelok",shortname:"Po"},{name:"Utorok",shortname:"Ut"},{name:"Streda",shortname:"St"},{name:"Štvrtok",shortname:"Št"},{name:"Piatok",shortname:"Pi"},{name:"Sobota",shortname:"So"}],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],openButton:"Vyberte dátum",closeButton:"Zatvoriť"},parseDate:e=>{const t=e.match(/(\d{1,2})\. ?(\d{1,2})\. ?(\d{4})/);return!!t&&new Date(Number(t[3]),Number(t[2])-1,Number(t[1]))},calendarIcon:{type:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",className:"icon icon--medium",children:[{type:"path",d:"M800 175H700v-37.5a37.5 37.5 0 0 0-75 0V175H350v-37.5a37.5 37.5 0 0 0-75 0V175H100v625a75 75 0 0 0 75 75h700V250a75 75 0 0 0-75-75zM300 825H187.4a37.5 37.5 0 0 1-37.5-37.6V700H300v125zm0-150H150V550h150v125zm0-150H150V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zm225 562.4H325V700h150v125zm0-149.9H325V550h150v125zm0-150H325V400h150v125zm175 300H500V700h150v125zm0-150H500V550h150v125zm0-150H500V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zM825 675H675V550h150v125zm0-150H675V400h112.5a37.5 37.5 0 0 1 37.5 37.4V525z","fill-rule":"evenodd"}]}};function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function tr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,s,r,o,a=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(i=r.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw s}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return er(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?er(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const nr=Object.entries,ir=Object.setPrototypeOf,sr=Object.isFrozen,rr=Object.getPrototypeOf,or=Object.getOwnPropertyDescriptor;let ar=Object.freeze,lr=Object.seal,cr=Object.create,dr="undefined"!=typeof Reflect&&Reflect,ur=dr.apply,hr=dr.construct;ar||(ar=function(e){return e}),lr||(lr=function(e){return e}),ur||(ur=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return e.apply(t,i)}),hr||(hr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const pr=Ir(Array.prototype.forEach),fr=Ir(Array.prototype.lastIndexOf),mr=Ir(Array.prototype.pop),gr=Ir(Array.prototype.push),vr=Ir(Array.prototype.splice),br=Array.isArray,yr=Ir(String.prototype.toLowerCase),wr=Ir(String.prototype.toString),_r=Ir(String.prototype.match),Sr=Ir(String.prototype.replace),Er=Ir(String.prototype.indexOf),xr=Ir(String.prototype.trim),Cr=Ir(Number.prototype.toString),Tr=Ir(Boolean.prototype.toString),Ar="undefined"==typeof BigInt?null:Ir(BigInt.prototype.toString),kr="undefined"==typeof Symbol?null:Ir(Symbol.prototype.toString),Or=Ir(Object.prototype.hasOwnProperty),Lr=Ir(Object.prototype.toString),Dr=Ir(RegExp.prototype.test),Mr=(Pr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hr(Pr,t)});var Pr;function Ir(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return ur(e,t,i)}}function Nr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yr;if(ir&&ir(e,null),!br(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=n(s);e!==s&&(sr(t)||(t[i]=e),s=e)}e[s]=!0}return e}function Rr(e){for(let t=0;t<e.length;t++)Or(e,t)||(e[t]=null);return e}function zr(e){const t=cr(null);for(const i of nr(e)){var n=tr(i,2);const s=n[0],r=n[1];Or(e,s)&&(br(r)?t[s]=Rr(r):r&&"object"==typeof r&&r.constructor===Object?t[s]=zr(r):t[s]=r)}return t}function Hr(e,t){for(;null!==e;){const n=or(e,t);if(n){if(n.get)return Ir(n.get);if("function"==typeof n.value)return Ir(n.value)}e=rr(e)}return function(){return null}}const Fr=ar(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Br=ar(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$r=ar(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Vr=ar(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),jr=ar(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),qr=ar(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Wr=ar(["#text"]),Ur=ar(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Gr=ar(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Yr=ar(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xr=ar(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kr=lr(/{{[\w\W]*|^[\w\W]*}}/g),Jr=lr(/<%[\w\W]*|^[\w\W]*%>/g),Qr=lr(/\${[\w\W]*/g),Zr=lr(/^data-[\-\w.\u00B7-\uFFFF]+$/),eo=lr(/^aria-[\-\w]+$/),to=lr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),no=lr(/^(?:\w+script|data):/i),io=lr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),so=lr(/^html$/i),ro=lr(/^[a-z][.\w]*(-[.\w]+)+$/i),oo=lr(/<[/\w!]/g),ao=lr(/<[/\w]/g),lo=lr(/<\/no(script|embed|frames)/i),co=lr(/\/>/i),uo=function(){return"undefined"==typeof window?null:window},ho=function(e,t,n,i){return Or(e,t)&&br(e[t])?Nr(i.base?zr(i.base):{},e[t],i.transform):n};var po=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uo();const n=t=>e(t);if(n.version="3.4.12",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let i=t.document;const s=i,r=s.currentScript;t.DocumentFragment;const o=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,h=l.prototype,p=Hr(h,"cloneNode"),f=Hr(h,"remove"),m=Hr(h,"nextSibling"),g=Hr(h,"childNodes"),v=Hr(h,"parentNode"),b=Hr(h,"shadowRoot"),y=Hr(h,"attributes"),w=a&&a.prototype?Hr(a.prototype,"nodeType"):null,_=a&&a.prototype?Hr(a.prototype,"nodeName"):null;if("function"==typeof o){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let S,E,x="",C=!1,T=0;const A=function(){if(T>0)throw Mr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},k=function(e){A(),T++;try{return S.createHTML(e)}finally{T--}},O=i,L=O.implementation,D=O.createNodeIterator,M=O.createDocumentFragment,P=O.getElementsByTagName,I=s.importNode;let N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof nr&&"function"==typeof v&&L&&void 0!==L.createHTMLDocument;const R=Kr,z=Jr,H=Qr,F=Zr,B=eo,$=no,V=io,j=ro;let q=to,W=null;const U=Nr({},[...Fr,...Br,...$r,...jr,...Wr]);let G=null;const Y=Nr({},[...Ur,...Gr,...Yr,...Xr]);let X=Object.seal(cr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,J=null;const Q=Object.seal(cr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Z=!0,ee=!0,te=!1,ne=!0,ie=!1,se=!0,re=!1,oe=!1,ae=null,le=null,ce=!1,de=!1,ue=!1,he=!1,pe=!0,fe=!1;const me="user-content-";let ge=!0,ve=!1,be={},ye=null;const we=Nr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _e=null;const Se=Nr({},["audio","video","img","source","image","track"]);let Ee=null;const xe=Nr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let ke=Ae,Oe=!1,Le=null;const De=Nr({},[Ce,Te,Ae],wr),Me=ar(["mi","mo","mn","ms","mtext"]);let Pe=Nr({},Me);const Ie=ar(["annotation-xml"]);let Ne=Nr({},Ie);const Re=Nr({},["title","style","font","a","script"]);let ze=null;const He=["application/xhtml+xml","text/html"];let Fe=null,Be=null;const $e=i.createElement("form"),Ve=function(e){return e instanceof RegExp||e instanceof Function},je=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Be&&Be===e)return;e&&"object"==typeof e||(e={}),e=zr(e),ze=-1===He.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Fe="application/xhtml+xml"===ze?wr:yr,W=ho(e,"ALLOWED_TAGS",U,{transform:Fe}),G=ho(e,"ALLOWED_ATTR",Y,{transform:Fe}),Le=ho(e,"ALLOWED_NAMESPACES",De,{transform:wr}),Ee=ho(e,"ADD_URI_SAFE_ATTR",xe,{transform:Fe,base:xe}),_e=ho(e,"ADD_DATA_URI_TAGS",Se,{transform:Fe,base:Se}),ye=ho(e,"FORBID_CONTENTS",we,{transform:Fe}),K=ho(e,"FORBID_TAGS",zr({}),{transform:Fe}),J=ho(e,"FORBID_ATTR",zr({}),{transform:Fe}),be=!!Or(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?zr(e.USE_PROFILES):e.USE_PROFILES),Z=!1!==e.ALLOW_ARIA_ATTR,ee=!1!==e.ALLOW_DATA_ATTR,te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ie=e.SAFE_FOR_TEMPLATES||!1,se=!1!==e.SAFE_FOR_XML,re=e.WHOLE_DOCUMENT||!1,de=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,he=e.RETURN_TRUSTED_TYPE||!1,ce=e.FORCE_BODY||!1,pe=!1!==e.SANITIZE_DOM,fe=e.SANITIZE_NAMED_PROPS||!1,ge=!1!==e.KEEP_CONTENT,ve=e.IN_PLACE||!1,q=function(e){try{return Dr(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:to,ke="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,Pe=Or(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?zr(e.MATHML_TEXT_INTEGRATION_POINTS):Nr({},Me),Ne=Or(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?zr(e.HTML_INTEGRATION_POINTS):Nr({},Ie);const t=Or(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?zr(e.CUSTOM_ELEMENT_HANDLING):cr(null);if(X=cr(null),Or(t,"tagNameCheck")&&Ve(t.tagNameCheck)&&(X.tagNameCheck=t.tagNameCheck),Or(t,"attributeNameCheck")&&Ve(t.attributeNameCheck)&&(X.attributeNameCheck=t.attributeNameCheck),Or(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),lr(X),ie&&(ee=!1),ue&&(de=!0),be&&(W=Nr({},Wr),G=cr(null),!0===be.html&&(Nr(W,Fr),Nr(G,Ur)),!0===be.svg&&(Nr(W,Br),Nr(G,Gr),Nr(G,Xr)),!0===be.svgFilters&&(Nr(W,$r),Nr(G,Gr),Nr(G,Xr)),!0===be.mathMl&&(Nr(W,jr),Nr(G,Yr),Nr(G,Xr))),Q.tagCheck=null,Q.attributeCheck=null,Or(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Q.tagCheck=e.ADD_TAGS:br(e.ADD_TAGS)&&(W===U&&(W=zr(W)),Nr(W,e.ADD_TAGS,Fe))),Or(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Q.attributeCheck=e.ADD_ATTR:br(e.ADD_ATTR)&&(G===Y&&(G=zr(G)),Nr(G,e.ADD_ATTR,Fe))),Or(e,"ADD_URI_SAFE_ATTR")&&br(e.ADD_URI_SAFE_ATTR)&&Nr(Ee,e.ADD_URI_SAFE_ATTR,Fe),Or(e,"FORBID_CONTENTS")&&br(e.FORBID_CONTENTS)&&(ye===we&&(ye=zr(ye)),Nr(ye,e.FORBID_CONTENTS,Fe)),Or(e,"ADD_FORBID_CONTENTS")&&br(e.ADD_FORBID_CONTENTS)&&(ye===we&&(ye=zr(ye)),Nr(ye,e.ADD_FORBID_CONTENTS,Fe)),ge&&(W["#text"]=!0),re&&Nr(W,["html","head","body"]),W.table&&(Nr(W,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Mr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Mr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=S;S=e.TRUSTED_TYPES_POLICY;try{x=k("")}catch(e){throw S=t,e}}else null===e.TRUSTED_TYPES_POLICY?(S=void 0,x=""):(void 0===S&&(C||(E=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(u,r),C=!0),S=E),S&&"string"==typeof x&&(x=k("")));ar&&ar(e),Be=e},qe=Nr({},[...Br,...$r,...Vr]),We=Nr({},[...jr,...qr]),Ue=function(e){gr(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(f(e),!v(e))throw Mr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ge=function(e){Ke(e);const t=g(e);if(t){const e=[];pr(t,t=>{gr(e,t)}),pr(e,e=>{try{f(e)}catch(e){}})}const n=y(e);if(n)for(let t=n.length-1;t>=0;--t){const i=n[t],s=i&&i.name;if("string"==typeof s)try{e.removeAttribute(s)}catch(e){}}},Ye=function(e,t){try{gr(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){gr(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(de||ue)try{Ue(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Xe=function(e){const t=y(e);if(t)for(let n=t.length-1;n>=0;--n){const i=t[n],s=i&&i.name;if("string"==typeof s&&!G[Fe(s)])try{e.removeAttribute(s)}catch(e){}}},Ke=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(w?w(e):e.nodeType)&&Xe(e);const n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Je=function(e){let t=null,n=null;if(ce)e="<remove></remove>"+e;else{const t=_r(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ze&&ke===Ae&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=S?k(e):e;if(ke===Ae)try{t=(new d).parseFromString(s,ze)}catch(e){}if(!t||!t.documentElement){t=L.createDocument(ke,"template",null);try{t.documentElement.innerHTML=Oe?x:s}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),ke===Ae?P.call(t,re?"html":"body")[0]:re?t.documentElement:r},Qe=function(e){return D.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ze=function(e){return e=Sr(e,R," "),e=Sr(e,z," "),Sr(e,H," ")},et=function(e){var t;e.normalize();const n=D.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let i=n.nextNode();for(;i;)i.data=Ze(i.data),i=n.nextNode();const s=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");s&&pr(s,e=>{nt(e.content)&&et(e.content)})},tt=function(e){const t=_?_(e):null;return"string"==typeof t&&"form"===Fe(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==y(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==w(e)||e.childNodes!==g(e))},nt=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return 11===w(e)}catch(e){return!1}},it=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(e){return!1}};function st(e,t,i){0!==e.length&&pr(e,e=>{e.call(n,t,i,Be)})}const rt=function(e,t){if(st(N.beforeSanitizeElements,e,null),e!==t&&null===v(e))return!0;if(tt(e))return Ue(e),!0;const i=Fe(_?_(e):e.nodeName);if(st(N.uponSanitizeElement,e,{tagName:i,allowedTags:W}),e!==t&&null===v(e))return!0;if(function(e,t){return!!(se&&e.hasChildNodes()&&!it(e.firstElementChild)&&Dr(oo,e.textContent)&&Dr(oo,e.innerHTML))||!(!se||e.namespaceURI!==Ae||"style"!==t||!it(e.firstElementChild))||7===e.nodeType||!(!se||8!==e.nodeType||!Dr(ao,e.data))}(e,i))return Ue(e),!0;if(K[i]||!(Q.tagCheck instanceof Function&&Q.tagCheck(i))&&!W[i]){const t=function(e,t){if(!K[t]&<(t)){if(X.tagNameCheck instanceof RegExp&&Dr(X.tagNameCheck,t))return!1;if(X.tagNameCheck instanceof Function&&X.tagNameCheck(t))return!1}if(ge&&!ye[t]){const t=v(e),n=g(e);if(n&&t)for(let i=n.length-1;i>=0;--i){const s=ve?n[i]:p(n[i],!0);t.insertBefore(s,m(e))}}return Ue(e),!0}(e,i);return!1===t&&st(N.afterSanitizeElements,e,null),t}if(1===(w?w(e):e.nodeType)&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:ke,tagName:"template"});const n=yr(e.tagName),i=yr(t.tagName);return!!Le[e.namespaceURI]&&(e.namespaceURI===Te?function(e,t,n){return t.namespaceURI===Ae?"svg"===e:t.namespaceURI===Ce?"svg"===e&&("annotation-xml"===n||Pe[n]):Boolean(qe[e])}(n,t,i):e.namespaceURI===Ce?function(e,t,n){return t.namespaceURI===Ae?"math"===e:t.namespaceURI===Te?"math"===e&&Ne[n]:Boolean(We[e])}(n,t,i):e.namespaceURI===Ae?function(e,t,n){return!(t.namespaceURI===Te&&!Ne[n])&&!(t.namespaceURI===Ce&&!Pe[n])&&!We[e]&&(Re[e]||!qe[e])}(n,t,i):!("application/xhtml+xml"!==ze||!Le[e.namespaceURI]))}(e))return Ue(e),!0;if(("noscript"===i||"noembed"===i||"noframes"===i)&&Dr(lo,e.innerHTML))return Ue(e),!0;if(ie&&3===e.nodeType){const t=Ze(e.textContent);e.textContent!==t&&(gr(n.removed,{element:e.cloneNode()}),e.textContent=t)}return st(N.afterSanitizeElements,e,null),!1},ot=function(e,t,n){if(J[t])return!1;if(se&&"patchsrc"===t)return!1;if(se&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(pe&&("id"===t||"name"===t)&&(n in i||n in $e))return!1;const s=G[t]||Q.attributeCheck instanceof Function&&Q.attributeCheck(t,e);if(ee&&Dr(F,t));else if(Z&&Dr(B,t));else if(s){if(Ee[t]);else if(Dr(q,Sr(n,V,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Er(n,"data:")||!_e[e])if(te&&!Dr($,Sr(n,V,"")));else if(n)return!1}else if(!(lt(e)&&(X.tagNameCheck instanceof RegExp&&Dr(X.tagNameCheck,e)||X.tagNameCheck instanceof Function&&X.tagNameCheck(e))&&(X.attributeNameCheck instanceof RegExp&&Dr(X.attributeNameCheck,t)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(t,e))||"is"===t&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&Dr(X.tagNameCheck,n)||X.tagNameCheck instanceof Function&&X.tagNameCheck(n))))return!1;return!0},at=Nr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),lt=function(e){return!at[yr(e)]&&Dr(j,e)},ct=function(e,t,n,i){if(S&&"object"==typeof u&&"function"==typeof u.getAttributeType&&!n)switch(u.getAttributeType(e,t)){case"TrustedHTML":return k(i);case"TrustedScriptURL":return function(e){A(),T++;try{return S.createScriptURL(e)}finally{T--}}(i)}return i},dt=function(e,t,i,s){try{i?e.setAttributeNS(i,t,s):e.setAttribute(t,s),tt(e)?Ue(e):mr(n.removed)}catch(n){Ye(t,e)}},ut=function(e){st(N.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||tt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let i=t.length;const s=Fe(e.nodeName);for(;i--;){const r=t[i],o=r.name,a=r.namespaceURI,l=r.value,c=Fe(o),d=l;let u="value"===o?d:xr(d);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,st(N.uponSanitizeAttribute,e,n),u=n.attrValue,!fe||"id"!==c&&"name"!==c||0===Er(u,me)||(Ye(o,e),u=me+u),se&&Dr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&_r(u,"href")?Ye(o,e):n.forceKeepAttr||(!n.keepAttr||!ne&&Dr(co,u)?Ye(o,e):(ie&&(u=Ze(u)),ot(s,c,u)?(u=ct(s,c,a,u),u!==d&&dt(e,o,a,u)):Ye(o,e)))}st(N.afterSanitizeAttributes,e,null)},ht=function(e){let t=null;const n=Qe(e);for(st(N.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(st(N.uponSanitizeShadowNode,t,null),rt(t,e),ut(t),nt(t.content)&&ht(t.content),1===(w?w(t):t.nodeType)){const e=b(t);nt(e)&&(pt(e),ht(e))}st(N.afterSanitizeShadowDOM,e,null)},pt=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){ht(e.shadow);continue}const n=e.node,i=1===(w?w(n):n.nodeType),s=g(n);if(s)for(let e=s.length-1;e>=0;--e)t.push({node:s[e],shadow:null});if(i){const e=_?_(n):null;if("string"==typeof e&&"template"===Fe(e)){const e=n.content;nt(e)&&t.push({node:e,shadow:null})}}if(i){const e=b(n);nt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,o=null,a=null;if(Oe=!e,Oe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!it(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Cr(e);case"boolean":return Tr(e);case"bigint":return Ar?Ar(e):"0";case"symbol":return kr?kr(e):"Symbol()";case"undefined":default:return Lr(e);case"function":case"object":{if(null===e)return Lr(e);const t=e,n=Hr(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:Lr(e)}return Lr(e)}}}(e)))throw Mr("dirty is not a string, aborting");if(!n.isSupported)return e;oe?(W=ae,G=le):je(t),(N.uponSanitizeElement.length>0||N.uponSanitizeAttribute.length>0)&&(W=zr(W)),N.uponSanitizeAttribute.length>0&&(G=zr(G)),n.removed=[];const l=ve&&"string"!=typeof e&&it(e);if(l){!function(e){if(!se)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=w?w(e):e.nodeType;if(7===n||8===n&&Dr(ao,e.data)){try{f(e)}catch(e){}continue}if(1===n){const t=e,n=Fe(_?_(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const i=g(e);if(i)for(let e=i.length-1;e>=0;--e)t.push(i[e])}}(e);const t=_?_(e):e.nodeName;if("string"==typeof t){const n=Fe(t);if(!W[n]||K[n])throw Ge(e),Mr("root node is forbidden and cannot be sanitized in-place")}if(tt(e))throw Ge(e),Mr("root node is clobbered and cannot be sanitized in-place");try{pt(e)}catch(t){throw Ge(e),t}}else if(it(e))i=Je("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r),pt(r);else{if(!de&&!ie&&!re&&-1===e.indexOf("<"))return S&&he?k(e):e;if(i=Je(e),!i)return de?null:he?x:""}i&&ce&&Ue(i.firstChild);const c=l?e:i,d=Qe(c);try{for(;o=d.nextNode();)rt(o,c),ut(o),nt(o.content)&&ht(o.content)}catch(t){throw l&&(Ge(e),pr(n.removed,e=>{e.element&&Ke(e.element)})),t}if(l)return pr(n.removed,e=>{e.element&&Ke(e.element)}),ie&&et(e),e;if(de){if(ie&&et(i),ue)for(a=M.call(i.ownerDocument);i.firstChild;)a.appendChild(i.firstChild);else a=i;return(G.shadowroot||G.shadowrootmode)&&(a=I.call(s,a,!0)),a}let u=re?i.outerHTML:i.innerHTML;return re&&W["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Dr(so,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),ie&&(u=Ze(u)),S&&he?k(u):u},n.setConfig=function(){je(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),oe=!0,ae=W,le=G},n.clearConfig=function(){Be=null,oe=!1,ae=null,le=null,S=E,x=""},n.isValidAttribute=function(e,t,n){Be||je({});const i=Fe(e),s=Fe(t);return ot(i,s,n)},n.addHook=function(e,t){"function"==typeof t&&Or(N,e)&&gr(N[e],t)},n.removeHook=function(e,t){if(Or(N,e)){if(void 0!==t){const n=fr(N[e],t);return-1===n?void 0:vr(N[e],n,1)[0]}return mr(N[e])}},n.removeHooks=function(e){Or(N,e)&&(N[e]=[])},n.removeAllHooks=function(){N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const fo={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:(e,t)=>`\n <li>${e} <button type="button" data-file-delete="${t}" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ${e}</span>\n </button>\n </li>\n `},mo={nonEditableInput:!1,min:1,max:999,defaultValue:1};var go,vo;function bo(e){return"object"==typeof e&&"function"==typeof e.to}function yo(e){e.parentElement.removeChild(e)}function wo(e){return null!=e}function _o(e){e.preventDefault()}function So(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function Eo(e,t,n){n>0&&(Ao(e,t),setTimeout(function(){ko(e,t)},n))}function xo(e){return Math.max(Math.min(e,100),0)}function Co(e){return Array.isArray(e)?e:[e]}function To(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function Ao(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function ko(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function Oo(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function Lo(e,t){return 100/(t-e)}function Do(e,t,n){return 100*t/(e[n+1]-e[n])}function Mo(e,t){for(var n=1;e>=t[n];)n+=1;return n}!function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(go||(go={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(vo||(vo={}));var Po=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var s=[];for(Object.keys(e).forEach(function(t){s.push([Co(e[t]),t])}),s.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<s.length;i++)this.handleEntryPoint(s[i][1],s[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=Do(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,s=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[s+1];)s++;else e===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);n||e!==this.xPct[s+1]||s++,null===t&&(t=[]);var r=1,o=t[s],a=0,l=0,c=0,d=0;for(i=n?(e-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):(this.xPct[s+1]-e)/(this.xPct[s+1]-this.xPct[s]);o>0;)a=this.xPct[s+1+d]-this.xPct[s+d],t[s+d]*r+100-100*i>100?(l=a*i,r=(o-100*i)/t[s+d],i=1):(l=t[s+d]*a/100*r,r=0),n?(c-=l,this.xPct.length+d>=1&&d--):(c+=l,this.xPct.length-d>=1&&d++),o=t[s+d]*r;return e+c},e.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=Mo(n,e),s=e[i-1],r=e[i],o=t[i-1],a=t[i];return o+function(e,t){return Do(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([s,r],n)/Lo(o,a)}(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=Mo(n,t),s=e[i-1],r=e[i],o=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([s,r],(n-o)*Lo(o,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var s=Mo(i,e),r=e[s-1],o=e[s];return n?i-r>(o-r)/2?o:r:t[s-1]?e[s-1]+function(e,t){return Math.round(e/t)*t}(i-e[s-1],t[s-1]):i}(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=Mo(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=Mo(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(To);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!So(n="min"===e?0:"max"===e?100:parseFloat(e))||!So(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=Do([this.xVal[e],this.xVal[e+1]],t,0)/Lo(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=s}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),Io={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},No={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Ro=".__tooltips",zo=".__aria";function Ho(e,t){if(!So(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function Fo(e,t){if(!So(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function Bo(e,t){if(!So(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function $o(e,t){if(!So(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function Vo(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Po(t,e.snap||!1,e.singleStep)}function jo(e,t){if(t=Co(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function qo(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Wo(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function Uo(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Go(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function Yo(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Xo(e,t){if(!So(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Ko(e,t){if(!So(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function Jo(e,t){var n;if(!So(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!So(t[0])&&!So(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],s=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Qo(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function Zo(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,s=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,o=t.indexOf("hover")>=0,a=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,d=t.indexOf("smooth-steps")>=0;if(s){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Xo(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||r,drag:i,dragAll:c,smoothSteps:d,fixed:s,snap:r,hover:o,unconstrained:a,invertConnects:l}}function ea(e,t){if(!1!==t)if(!0===t||bo(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=Co(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!bo(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function ta(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function na(e,t){if(!bo(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function ia(e,t){if(!function(e){return bo(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function sa(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function ra(e,t){e.documentElement=t}function oa(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function aa(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function la(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Io,format:Io},n={step:{r:!1,t:Ho},keyboardPageMultiplier:{r:!1,t:Fo},keyboardMultiplier:{r:!1,t:Bo},keyboardDefaultStep:{r:!1,t:$o},start:{r:!0,t:jo},connect:{r:!0,t:Go},direction:{r:!0,t:Qo},snap:{r:!1,t:qo},animate:{r:!1,t:Wo},animationDuration:{r:!1,t:Uo},range:{r:!0,t:Vo},orientation:{r:!1,t:Yo},margin:{r:!1,t:Xo},limit:{r:!1,t:Ko},padding:{r:!1,t:Jo},behaviour:{r:!0,t:Zo},ariaFormat:{r:!1,t:na},format:{r:!1,t:ia},tooltips:{r:!1,t:ea},keyboardSupport:{r:!0,t:sa},documentElement:{r:!1,t:ra},cssPrefix:{r:!0,t:oa},cssClasses:{r:!0,t:aa},handleAttributes:{r:!1,t:ta}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:No,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(s){if(wo(e[s])||void 0!==i[s])n[s].t(t,wo(e[s])?e[s]:i[s]);else if(n[s].r)throw new Error("noUiSlider: '"+s+"' is required.")}),t.pips=e.pips;var s=document.createElement("div"),r=void 0!==s.style.msTransform,o=void 0!==s.style.transform;return t.transformRule=o?"transform":r?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function ca(e,t,n){var i,s,r,o,a,l,c,d=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},u=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),h=e,p=t.spectrum,f=[],m=[],g=[],v=0,b={},y=!1,w=e.ownerDocument,_=t.documentElement||w.documentElement,S=w.body,E="rtl"===w.dir||1===t.ort?0:100;function x(e,t){var n=w.createElement("div");return t&&Ao(n,t),e.appendChild(n),n}function C(e,n){var i=x(e,t.cssClasses.origin),s=x(i,t.cssClasses.handle);if(x(s,t.cssClasses.touchArea),s.setAttribute("data-handle",String(n)),t.keyboardSupport&&(s.setAttribute("tabindex","0"),s.addEventListener("keydown",function(e){return function(e,n){if(k()||O(n))return!1;var i=["Left","Right"],s=["Down","Up"],r=["PageDown","PageUp"],o=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(s.reverse(),r.reverse());var a,l=e.key.replace("Arrow",""),c=l===r[0],d=l===r[1],u=l===s[0]||l===i[0]||c,h=l===s[1]||l===i[1]||d,g=l===o[1];if(!(u||h||l===o[0]||g))return!0;if(e.preventDefault(),h||u){var v=u?0:1,b=se(n)[v];if(null===b)return!1;!1===b&&(b=p.getDefaultStep(m[n],u,t.keyboardDefaultStep)),b*=d||c?t.keyboardPageMultiplier:t.keyboardMultiplier,b=Math.max(b,1e-7),b*=u?-1:1,a=f[n]+b}else a=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return Z(n,p.toStepping(a),!0,!0),G("slide",n),G("update",n),G("change",n),G("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var r=t.handleAttributes[n];Object.keys(r).forEach(function(e){s.setAttribute(e,r[e])})}return s.setAttribute("role","slider"),s.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?Ao(s,t.cssClasses.handleLower):n===t.handles-1&&Ao(s,t.cssClasses.handleUpper),i.handle=s,i}function T(e,n){return!!n&&x(e,t.cssClasses.connect)}function A(e,n){return!(!t.tooltips||!t.tooltips[n])&&x(e.firstChild,t.cssClasses.tooltip)}function k(){return h.hasAttribute("disabled")}function O(e){return r[e].hasAttribute("disabled")}function L(){l&&(U("update"+Ro),l.forEach(function(e){e&&yo(e)}),l=null)}function D(){L(),l=r.map(A),W("update"+Ro,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var s=e[n];!0!==t.tooltips[n]&&(s=t.tooltips[n].to(i[n])),l[n].innerHTML=s}})}function M(e,t){return e.map(function(e){return p.fromStepping(t?p.getStep(e):e)})}function P(){a&&(yo(a),a=null)}function I(e){P();var n=function(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===go.Range||e.mode===go.Steps)return p.xVal;if(e.mode===go.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),M(i,e.stepped)}return e.mode===go.Positions?M(e.values,e.stepped):e.mode===go.Values?e.stepped?e.values.map(function(e){return p.fromStepping(p.getStep(p.toStepping(e)))}):e.values:[]}(e),s={},r=p.xVal[0],o=p.xVal[p.xVal.length-1],a=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}),i[0]!==r&&(i.unshift(r),a=!0),i[i.length-1]!==o&&(i.push(o),l=!0),i.forEach(function(n,r){var o,d,u,h,f,m,g,v,b,y,w=n,_=i[r+1],S=e.mode===go.Steps;for(S&&(o=p.xNumSteps[r]),o||(o=_-w),void 0===_&&(_=w),o=Math.max(o,1e-7),d=w;d<=_;d=t(d,o)){for(v=(f=(h=p.toStepping(d))-c)/(e.density||1),y=f/(b=Math.round(v)),u=1;u<=b;u+=1)s[(m=c+u*y).toFixed(5)]=[p.fromStepping(m),0];g=i.indexOf(d)>-1?vo.LargeValue:S?vo.SmallValue:vo.NoValue,!r&&a&&d!==_&&(g=0),d===_&&l||(s[h.toFixed(5)]=[d,g]),c=h}}),s}(e),i=e.filter,s=e.format||{to:function(e){return String(Math.round(e))}};return a=h.appendChild(function(e,n,i){var s,r,o=w.createElement("div"),a=((s={})[vo.None]="",s[vo.NoValue]=t.cssClasses.valueNormal,s[vo.LargeValue]=t.cssClasses.valueLarge,s[vo.SmallValue]=t.cssClasses.valueSub,s),l=((r={})[vo.None]="",r[vo.NoValue]=t.cssClasses.markerNormal,r[vo.LargeValue]=t.cssClasses.markerLarge,r[vo.SmallValue]=t.cssClasses.markerSub,r),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],d=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function u(e,n){var i=n===t.cssClasses.value,s=i?a:l;return n+" "+(i?c:d)[t.ort]+" "+s[e]}return Ao(o,t.cssClasses.pips),Ao(o,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(s){!function(e,s,r){if((r=n?n(s,r):r)!==vo.None){var a=x(o,!1);a.className=u(r,t.cssClasses.marker),a.style[t.style]=e+"%",r>vo.NoValue&&((a=x(o,!1)).className=u(r,t.cssClasses.value),a.setAttribute("data-value",String(s)),a.style[t.style]=e+"%",a.innerHTML=String(i.to(s)))}}(s,e[s][0],e[s][1])}),o}(n,i,s))}function N(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function R(e,n,i,s){var r=function(r){var o,a,l=function(e,t,n){var i=0===e.type.indexOf("touch"),s=0===e.type.indexOf("mouse"),r=0===e.type.indexOf("pointer"),o=0,a=0;if(0===e.type.indexOf("MSPointer")&&(r=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;o=c[0].pageX,a=c[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,l);if(!d)return!1;o=d.pageX,a=d.pageY}}return t=t||Oo(w),(s||r)&&(o=e.clientX+t.x,a=e.clientY+t.y),e.pageOffset=t,e.points=[o,a],e.cursor=s||r,e}(r,s.pageOffset,s.target||n);return!!l&&!(k()&&!s.doNotReject)&&(o=h,a=t.cssClasses.tap,!((o.classList?o.classList.contains(a):new RegExp("\\b"+a+"\\b").test(o.className))&&!s.doNotReject)&&!(e===d.start&&void 0!==l.buttons&&l.buttons>1)&&(!s.hover||!l.buttons)&&(u||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,s)))},o=[];return e.split(" ").forEach(function(e){n.addEventListener(e,r,!!u&&{passive:!0}),o.push([e,r])}),o}function z(e){var n,s,r,o,a,l,c=100*(e-(n=i,s=t.ort,r=n.getBoundingClientRect(),a=(o=n.ownerDocument).documentElement,l=Oo(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),s?r.top+l.y-a.clientTop:r.left+l.x-a.clientLeft))/N();return c=xo(c),t.dir?100-c:c}function H(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&B(e,t)}function F(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return B(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);K(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function B(e,n){n.handle&&(ko(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){_.removeEventListener(e[0],e[1])}),0===v&&(ko(h,t.cssClasses.drag),Q(),e.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",_o))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){Z(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){G("update",e)})),n.handleNumbers.forEach(function(e){G("change",e),G("set",e),G("end",e)})}function $(e,n){if(!n.handleNumbers.some(O)){var i;1===n.handleNumbers.length&&(i=r[n.handleNumbers[0]].children[0],v+=1,Ao(i,t.cssClasses.active)),e.stopPropagation();var s=[],o=R(d.move,_,F,{target:e.target,handle:i,connect:n.connect,listeners:s,startCalcPoint:e.calcPoint,baseSize:N(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),a=R(d.end,_,B,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",_,H,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers});s.push.apply(s,o.concat(a,l)),e.cursor&&(S.style.cursor=getComputedStyle(e.target).cursor,r.length>1&&Ao(h,t.cssClasses.drag),S.addEventListener("selectstart",_o,!1)),n.handleNumbers.forEach(function(e){G("start",e)})}}function V(e){e.stopPropagation();var n=z(e.calcPoint),i=function(e){var t=100,n=!1;return r.forEach(function(i,s){if(!O(s)){var r=m[s],o=Math.abs(r-e);(o<t||o<=t&&e>r||100===o&&100===t)&&(n=s,t=o)}}),n}(n);!1!==i&&(t.events.snap||Eo(h,t.cssClasses.tap,t.animationDuration),Z(i,n,!0,!0),Q(),G("slide",i,!0),G("update",i,!0),t.events.snap?$(e,{handleNumbers:[i]}):(G("change",i,!0),G("set",i,!0)))}function j(e){var t=z(e.calcPoint),n=p.getStep(t),i=p.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(oe,i)})})}function q(e){e.fixed||r.forEach(function(e,t){R(d.start,e.children[0],$,{handleNumbers:[t]})}),e.tap&&R(d.start,i,V,{}),e.hover&&R(d.move,i,j,{hover:!0}),e.drag&&o.forEach(function(n,i){if(!1!==n&&0!==i&&i!==o.length-1){var s=r[i-1],a=r[i],l=[n],c=[s,a],u=[i-1,i];Ao(n,t.cssClasses.draggable),e.fixed&&(l.push(s.children[0]),l.push(a.children[0])),e.dragAll&&(c=r,u=g),l.forEach(function(e){R(d.start,e,$,{handles:c,handleNumbers:u,connect:n})})}})}function W(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&r.forEach(function(e,t){G("update",t)})}function U(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],s=e.substring(i.length);t&&t!==i||n&&n!==s||function(e){return e===zo||e===Ro}(s)&&n!==s||delete b[e]})}function G(e,n,i){Object.keys(b).forEach(function(s){var r=s.split(".")[0];e===r&&b[s].forEach(function(e){e.call(oe,f.map(t.format.to),n,f.slice(),i||!1,m.slice(),oe)})})}function Y(e,n,i,s,o,a,l){var c;return r.length>1&&!t.events.unconstrained&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),o&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),r.length>1&&t.limit&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),o&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=p.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===r.length-1&&(c=p.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=p.getStep(i)),!((i=xo(i))===e[n]&&!a)&&i}function X(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function K(e,n,i,s,r){var o=i.slice(),a=s[0],l=t.events.smoothSteps,c=[!e,e],d=[e,!e];s=s.slice(),e&&s.reverse(),s.length>1?s.forEach(function(e,t){var i=Y(o,e,o[e]+n,c[t],d[t],!1,l);!1===i?n=0:(n=i-o[e],o[e]=i)}):c=d=[!0];var u=!1;s.forEach(function(e,t){u=Z(e,i[e]+n,c[t],d[t],!1,l)||u}),u&&(s.forEach(function(e){G("update",e),G("slide",e)}),null!=r&&G("drag",a))}function J(e,n){return t.dir?100-e-n:e}function Q(){g.forEach(function(e){var t=m[e]>50?-1:1,n=3+(r.length+t*e);r[e].style.zIndex=String(n)})}function Z(e,n,i,s,o,a){return o||(n=Y(m,e,n,i,s,!1,a)),!1!==n&&(function(e,n){m[e]=n,f[e]=p.fromStepping(n);var i="translate("+X(J(n,0)-E+"%","0")+")";if(r[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var s=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!s)return y=!y,Go(t,t.connect.map(function(e){return!e})),void re()}ee(e),ee(e+1),y&&(ee(e-1),ee(e+2))}(e,n),!0)}function ee(e){if(o[e]){var n=m.slice();y&&n.sort(function(e,t){return e-t});var i=0,s=100;0!==e&&(i=n[e-1]),e!==o.length-1&&(s=n[e]);var r=s-i,a="translate("+X(J(i,r)+"%","0")+")",l="scale("+X(r/100,"1")+")";o[e].style[t.transformRule]=a+" "+l}}function te(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=p.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function ne(e,n,i){var s=Co(e),r=void 0===m[0];n=void 0===n||n,t.animate&&!r&&Eo(h,t.cssClasses.tap,t.animationDuration),g.forEach(function(e){Z(e,te(s[e],e),!0,!1,i)});var o=1===g.length?0:1;if(r&&p.hasNoSize()&&(i=!0,m[0]=0,g.length>1)){var a=100/(g.length-1);g.forEach(function(e){m[e]=e*a})}for(;o<g.length;++o)g.forEach(function(e){Z(e,m[e],!0,!0,i)});Q(),g.forEach(function(e){G("update",e),null!==s[e]&&n&&G("set",e)})}function ie(e){if(void 0===e&&(e=!1),e)return 1===f.length?f[0]:f.slice(0);var n=f.map(t.format.to);return 1===n.length?n[0]:n}function se(e){var n=m[e],i=p.getNearbySteps(n),s=f[e],r=i.thisStep.step,o=null;if(t.snap)return[s-i.stepBefore.startValue||null,i.stepAfter.startValue-s||null];!1!==r&&s+r>i.stepAfter.startValue&&(r=i.stepAfter.startValue-s),o=s>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&s-i.stepBefore.highestStep,100===n?r=null:0===n&&(o=null);var a=p.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(a))),null!==o&&!1!==o&&(o=Number(o.toFixed(a))),[o,r]}function re(){for(;s.firstChild;)s.removeChild(s.firstChild);for(var e=0;e<=t.handles;e++)o[e]=T(s,t.connect[e]),ee(e);q({drag:t.events.drag,fixed:!0})}Ao(c=h,t.cssClasses.target),0===t.dir?Ao(c,t.cssClasses.ltr):Ao(c,t.cssClasses.rtl),0===t.ort?Ao(c,t.cssClasses.horizontal):Ao(c,t.cssClasses.vertical),Ao(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=x(c,t.cssClasses.base),function(e,n){s=x(n,t.cssClasses.connects),r=[],(o=[]).push(T(s,e[0]));for(var i=0;i<t.handles;i++)r.push(C(n,i)),g[i]=i,o.push(T(s,e[i+1]))}(t.connect,i),q(t.events),ne(t.start),t.pips&&I(t.pips),t.tooltips&&D(),U("update"+zo),W("update"+zo,function(e,n,i,s,o){g.forEach(function(e){var n=r[e],s=Y(m,e,0,!0,!0,!0),a=Y(m,e,100,!0,!0,!0),l=o[e],c=String(t.ariaFormat.to(i[e]));s=p.fromStepping(s).toFixed(1),a=p.fromStepping(a).toFixed(1),l=p.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",s),n.children[0].setAttribute("aria-valuemax",a),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var oe={destroy:function(){for(U(zo),U(Ro),Object.keys(t.cssClasses).forEach(function(e){ko(h,t.cssClasses[e])});h.firstChild;)h.removeChild(h.firstChild);delete h.noUiSlider},steps:function(){return g.map(se)},on:W,off:U,get:ie,set:ne,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<g.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Z(e,te(t,e),!0,!0,i),G("update",e),n&&G("set",e)},reset:function(e){ne(t.start,e)},disable:function(e){null!=e?(r[e].setAttribute("disabled",""),r[e].handle.removeAttribute("tabindex")):(h.setAttribute("disabled",""),r.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(r[e].removeAttribute("disabled"),r[e].handle.setAttribute("tabindex","0")):(h.removeAttribute("disabled"),r.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){K(e,t,m,n)},options:n,updateOptions:function(e,i){var s=ie(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];r.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var o=la(n);r.forEach(function(n){void 0!==e[n]&&(t[n]=o[n])}),p=o.spectrum,t.margin=o.margin,t.limit=o.limit,t.padding=o.padding,t.pips?I(t.pips):P(),t.tooltips?D():L(),m=[],ne(wo(e.start)?e.start:s,i),e.connect&&re()},target:h,removePips:P,removeTooltips:L,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return r},pips:I};return oe}var da=function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=ca(e,la(t),t);return e.noUiSlider=n,n};const ua={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},ha={cycleDuration:4e3,delay:5e3},pa=":not([inert]):not([inert] *)",fa=':not([tabindex^="-"])',ma=":not(:disabled)";var ga=[`a[href]${pa}${fa}`,`area[href]${pa}${fa}`,`input:not([type="hidden"]):not([type="radio"])${pa}${fa}${ma}`,`input[type="radio"]${pa}${fa}${ma}`,`select${pa}${fa}${ma}`,`textarea${pa}${fa}${ma}`,`button${pa}${fa}${ma}`,`details${pa} > summary:first-of-type${fa}`,`iframe${pa}${fa}`,`audio[controls]${pa}${fa}`,`video[controls]${pa}${fa}`,`[contenteditable]${pa}${fa}`,`[tabindex]${pa}${fa}`];function va(e){(e.querySelector("[autofocus]")||e).focus()}function ba(e,t){if(t&&_a(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=ya(e.shadowRoot,t);for(;n;){const e=ba(n,t);if(e)return e;n=wa(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=ba(e,t);if(n)return n}}else{let n=ya(e,t);for(;n;){const e=ba(n,t);if(e)return e;n=wa(n,t)}}return!t&&_a(e)?e:null}function ya(e,t){return t?e.firstElementChild:e.lastElementChild}function wa(e,t){return t?e.nextElementSibling:e.previousElementSibling}const _a=e=>!e.shadowRoot?.delegatesFocus&&e.matches(ga.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function Sa(e=document){const t=e.activeElement;return t?t.shadowRoot?Sa(t.shadowRoot)||document.activeElement:t:null}function Ea(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=xa(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function xa(e){return e.assignedSlot||(e.parentNode?xa(e.parentNode):null)}const Ca="data-a11y-dialog";class Ta{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(Ca)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=Sa(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():va(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=Ea(`[${Ca}-show="${this.id}"]`,t),i=Ea(`[${Ca}-hide="${this.id}"]`,t),s=Ea(`[${Ca}-hide]`,t)&&Ea('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(Ea('[aria-modal="true"]',Sa())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[n,i]=function(e){const t=ba(e,!0);return[t,t?ba(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const s=Sa();t.shiftKey&&s===n?(i.focus(),t.preventDefault()):t.shiftKey||s!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=Sa();Ea(`[aria-modal="true"], [${Ca}-ignore-focus-trap]`,e)||va(this.$el)}}function Aa(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new Ta(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",Aa):Aa());var ka=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Oa="undefined"==typeof Element,La=Oa?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Da=!Oa&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Ma=function(e){return"INPUT"===e.tagName},Pa=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},Ia=function(e,t){return!(t.disabled||function(e){return Ma(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var s=getComputedStyle(e).visibility;if("hidden"===s||"collapse"===s)return!0;var r=La.call(e,"details>summary:first-of-type")?e.parentElement:e;if(La.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Pa(e)}else{if("function"==typeof i){for(var o=e;e;){var a=e.parentElement,l=Da(e);if(a&&!a.shadowRoot&&!0===i(a))return Pa(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=o}if(function(e){var t,n,i,s,r=e&&Da(e),o=null===(t=r)||void 0===t?void 0:t.host,a=!1;if(r&&r!==e)for(a=!!(null!==(n=o)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(o)||null!=e&&null!==(s=e.ownerDocument)&&void 0!==s&&s.contains(e));!a&&o;){var l,c,d;a=!(null===(c=o=null===(l=r=Da(o))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(o))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!La.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},Na=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==La.call(e,ka)&&function(e,t){return!(function(e){return function(e){return Ma(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Da(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return!1}var s=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!s||s===e}(e)}(t)||function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex}(t)<0||!Ia(e,t))}(t,e)};const Ra="--ods-modal-scrollbar-width",za="data-lock-scrolltop";class Ha{element;config;instance;constructor(e,t){return this.element=e,this.config={classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals",...t},this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),Ha.moveToModalRoot=Ha.moveToModalRoot.bind(this),Ha.lockBody=Ha.lockBody.bind(this),Ha.unlockBody=Ha.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}static getInstance(e){return e&&e.ODS_Modal||null}handleShow(e){Ha.lockBody(),e&&e.classList.add(this.config.classModalIsOpen);const t=e.querySelector("[data-a11y-dialog-initial-focus]");t&&(Na(t)||t.setAttribute("tabindex","-1"),t.focus())}handleHide(e){Ha.unlockBody(),e&&e.classList.remove(this.config.classModalIsOpen)}show(){this.instance.show()}hide(){this.instance.hide()}headerFirstItemSpacing(){const e=this.element.querySelector(".modal__header");if(e){const t=e.classList.contains("modal__header--no-spacing"),n=Array.from(e.children).find(e=>!e.classList.contains("btn"));n&&!t&&(n.style.marginRight="40px")}}init(){this.config.modalsRoot&&!this.config.disablePortal&&Ha.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new Ta(this.element),this.instance.on("show",e=>{const t=e.currentTarget;this.handleShow(t)}),this.instance.on("hide",e=>{const t=e.currentTarget;this.handleHide(t)}),this.headerFirstItemSpacing()}destroy(){if(this.instance){this.instance.hide();const e=this.instance;document.removeEventListener("click",e.handleTriggerClicks,!0),document.body.removeEventListener("focus",e.maintainFocus,!0),this.element.removeEventListener("keydown",e.bindKeypress,!0),Ha.unlockBody()}this.element.ODS_Modal=this}update(){this.destroy(),this.init()}static moveToModalRoot(e,t){t&&t.appendChild(e)}static isLocked=!1;static resolveBodyLockClassName(e,t){const n=t;return e||n?.config?.classModalIsOpenBody||"has-modal"}static lockBody(e,t){if(Ha.isLocked)return;const n=Ha.resolveBodyLockClassName(e,this),i=window.scrollY;document.body.setAttribute(za,i.toString());const s=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${i}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight=`${s}px`,document.body.style.setProperty(Ra,`${s}px`),document.body.classList.add(n),Ha.isLocked=!0}static unlockBody(e,t){if(!Ha.isLocked)return;const n=Ha.resolveBodyLockClassName(e,this),i=Number.parseInt(document.body.getAttribute(za)||"0",10);document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.style.removeProperty(Ra),document.body.classList.remove(n),window.scrollTo({top:Number.isFinite(i)?i:0,left:0,behavior:"instant"}),Ha.isLocked=!1}}const Fa={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},Ba={tabSelector:'[role="tab"]'};class $a{static SCROLL_ALIGNMENT_TOLERANCE=1;static SCROLL_EDGE_TOLERANCE=1;element;config;tabs;tabPanels;activeTabIndex;rovingTabindex;resizeObserver;horizontalScrollHandler;resizeHandler;viewportElement;constructor(e,t){return this.element=e,this.config={...Ba,...t},this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.resizeObserver=null,this.viewportElement=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.resizeHandler=this.updateHorizontalOverflowState.bind(this),this.element.ODS_Tabs=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}init(){this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map((e,t)=>{const n=e.getAttribute("aria-controls");return this.tabPanels.push(n?document.getElementById(n):null),e.addEventListener("click",this.handleClick),e.addEventListener("focus",this.handleTabFocus),this.isSelected(e)&&(this.activeTabIndex=t),e}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new _(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.setActiveTab(this.activeTabIndex):this.tabs.length>0&&this.activateNthTab(0),this.setupOverflowObserver()}destroy(){this.teardownOverflowObserver(),this.tabs.map(e=>(e.removeEventListener("click",this.handleClick),e.removeEventListener("focus",this.handleTabFocus),e)),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}setupOverflowObserver(){this.teardownOverflowObserver(),this.viewportElement=this.element.parentElement?.classList.contains("tab-list__viewport")?this.element.parentElement:null,this.element.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.resizeHandler),this.resizeObserver.observe(this.element),this.tabs.forEach(e=>this.resizeObserver?.observe(e))),this.updateHorizontalOverflowState()}teardownOverflowObserver(){this.element.removeEventListener("scroll",this.horizontalScrollHandler),window.removeEventListener("resize",this.resizeHandler),this.viewportElement&&(this.viewportElement.classList.remove("has-left-overflow","has-right-overflow"),this.viewportElement=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}updateHorizontalOverflowState(){if(!this.viewportElement)return;const e=this.element.scrollWidth-this.element.clientWidth,t=e>$a.SCROLL_EDGE_TOLERANCE,n=this.element.scrollLeft<=$a.SCROLL_EDGE_TOLERANCE,i=this.element.scrollLeft>=e-$a.SCROLL_EDGE_TOLERANCE;this.viewportElement.classList.toggle("has-left-overflow",t&&!n),this.viewportElement.classList.toggle("has-right-overflow",t&&!i)}update(){this.destroy(),this.init()}isActive=e=>!!e&&!e.hasAttribute("hidden");isSelected=e=>"true"===e.getAttribute("aria-selected");setActiveTab(e,t=!1){this.tabs.map((t,n)=>n===e?(this.activeTabIndex=n,this.toggleTab(t,"on")):this.toggleTab(t,"off")),this.tabPanels.map((t,n)=>n===e?this.toggleTabPanel(t,"on"):this.toggleTabPanel(t,"off"));const n=this.tabs[e];n&&this.scrollTabIntoView(n,t)}scrollTabIntoView(e,t=!1){const n=Math.max(0,this.element.scrollWidth-this.element.clientWidth),i=this.element.getBoundingClientRect(),s=e.getBoundingClientRect(),r=s.left-i.left+this.element.scrollLeft+s.width/2-this.element.clientWidth/2,o=window.innerWidth<768?"auto":"smooth",a=Math.min(n,Math.max(0,r)),l=Math.abs(this.element.scrollLeft-a)<=$a.SCROLL_ALIGNMENT_TOLERANCE;!t&&l||("function"!=typeof this.element.scrollTo?(this.element.scrollLeft=a,this.updateHorizontalOverflowState()):this.element.scrollTo({left:a,behavior:o}))}handleClick(e){const t=e.currentTarget;if(t.hasAttribute("aria-disabled"))return void e.preventDefault();const n=this.tabs.findIndex(e=>e===t);n>=0&&this.setActiveTab(n,!0)}toggleTab(e,t){const n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}toggleTabPanel(e,t){if(!e)return;const n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}activateNthTab(e){this.setActiveTab(e,!0)}handleTabFocus(e){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init();const t=e.currentTarget;t&&this.shouldCenterFocusedTab(t)&&this.scrollTabIntoView(t)}shouldCenterFocusedTab(e){if("function"!=typeof e.matches)return!0;try{return e.matches(":focus-visible")}catch{return!0}}}const Va=[{Module:class{element;config;rovingTabindex;buttons;constructor(e,t){return this.element=e,this.config={...S,...t},this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this}onFocus(e){this.rovingTabindex.isActive||this.rovingTabindex.init();const t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}toggleAccordionItem(e){const t=e.getAttribute("aria-controls"),n=t?this.element.querySelector(`#${t}`):null;if(!n)return;const i=!("true"===e.getAttribute("aria-expanded"));e.setAttribute("aria-expanded",String(i)),i?(n.removeAttribute("hidden"),this.scrollTriggerIntoModalView(e)):n.setAttribute("hidden","")}scrollTriggerIntoModalView(e){const t=e.closest(".modal__dialog");if(!t)return;const n=()=>{const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.getStickyHeaderOffset(t),r=i.top-n.top+t.scrollTop-s-8;t.scrollTo({top:Math.max(0,r),behavior:"smooth"})};"function"!=typeof window.requestAnimationFrame?setTimeout(n,0):window.requestAnimationFrame(n)}getStickyHeaderOffset(e){const t=e.querySelector(".modal__header");if(!t)return 0;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return Math.max(0,i.bottom-n.top)}init(){this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new _(this.buttons,{direction:"vertical"}),this.buttons.forEach(e=>{e.addEventListener("focus",this.onFocus),e.addEventListener("click",this.onClick)})}onClick(e){const t=e.currentTarget;this.toggleAccordionItem(t)}destroy(){this.rovingTabindex.destroy(),this.buttons.forEach(e=>{e.removeEventListener("focus",this.onFocus),e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}},name:"Accordion",selector:"[data-accordion]"},{Module:E,name:"AnchorNavigation",selector:"[data-anchor-navigation]"},{Module:class{element;config;instance;teardownClearButton;constructor(e,t){return this.element=e,this.config={...ai,...t},this.onPageshow=this.onPageshow.bind(this),this.onClearButtonClick=this.onClearButtonClick.bind(this),this.instance=null,this.teardownClearButton=null,this.element.ODS_Autocomplete=this,this.init().catch(()=>{}),this}async init(){const e=this.element.getAttribute("data-autocomplete-config");let t={};if(e)try{t=JSON.parse(e)}catch{}this.config={...this.config,...t};const n=(this.config.customInputClassName||"").split(/\s+/).filter(Boolean),i=this.config.wrapperClassName.split(/\s+/).filter(Boolean),s=n.includes("input--search-icon")||i.includes("autocomplete__wrapper--search-icon"),r=n.includes("input--search-icon-with-placeholder")||i.includes("autocomplete__wrapper--search-icon-with-placeholder"),o=this.element.classList.contains("is-invalid");this.config.customInputClassName=n.filter(e=>"input--search-icon"!==e&&"input--search-icon-with-placeholder"!==e).join(" "),o&&(this.config.customInputClassName=li(this.config.customInputClassName,"is-invalid")),s&&(this.config.wrapperClassName=li(this.config.wrapperClassName,"autocomplete__wrapper--search-icon")),r&&(this.config.wrapperClassName=li(this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"));const a=(await Promise.resolve().then(function(){return Ua})).default;"SELECT"===this.element.tagName?a.enhanceSelectElement({selectElement:this.element,...this.config}):a({element:this.element,...this.config}),this.initEnhancedControls(r),window.addEventListener("pageshow",this.onPageshow)}getWrapper(){if("SELECT"===this.element.tagName){const e=this.element.previousElementSibling;return(e=>{if(!e)return!1;const t=e.ownerDocument?.defaultView?.HTMLElement;return t?e instanceof t:e.nodeType===Node.ELEMENT_NODE})(e)?e.classList.contains("autocomplete__wrapper")?e:e.querySelector(".autocomplete__wrapper"):null}return this.element.querySelector(".autocomplete__wrapper")}getInput(){return this.getWrapper()?.querySelector(".autocomplete__input")??null}initEnhancedControls(e,t=10){this.getInput()?(this.syncInputState(),e&&this.initClearButton()):t>0&&window.setTimeout(()=>this.initEnhancedControls(e,t-1),0)}syncInputState(){const e=this.getInput();e&&(this.element.classList.contains("is-invalid")&&(e.classList.add("is-invalid"),e.setAttribute("aria-invalid","true")),this.element instanceof HTMLSelectElement&&this.element.disabled&&(e.disabled=!0))}initClearButton(){this.teardownClearButton?.();const e=this.getWrapper(),t=this.getInput();if(!e||!t)return;const n=document.createElement("button");n.type="button",n.className="autocomplete__clear",n.setAttribute("aria-label",this.config.tClearButton());const i=()=>{n.hidden=t.disabled||0===t.value.length},s=()=>{window.setTimeout(i,0)};n.addEventListener("mousedown",this.preventDefault),n.addEventListener("keydown",this.stopPropagation),n.addEventListener("click",this.onClearButtonClick),t.addEventListener("input",i),t.addEventListener("change",i),e.addEventListener("click",s),e.addEventListener("keyup",s),i(),e.appendChild(n),this.teardownClearButton=()=>{n.removeEventListener("mousedown",this.preventDefault),n.removeEventListener("keydown",this.stopPropagation),n.removeEventListener("click",this.onClearButtonClick),t.removeEventListener("input",i),t.removeEventListener("change",i),e.removeEventListener("click",s),e.removeEventListener("keyup",s),n.remove()}}preventDefault(e){e.preventDefault()}stopPropagation(e){e.stopPropagation()}onClearButtonClick(){const e=this.getInput();if(e){if(e.value="",e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),this.element instanceof HTMLSelectElement){const e=Array.from(this.element.options).find(e=>""===e.value);e?e.selected=!0:this.element.selectedIndex=-1,this.element.dispatchEvent(new Event("change",{bubbles:!0}))}this.config.onConfirm?.(""),e.focus()}}onPageshow(e){e.persisted&&window&&window.location.reload()}destroy(){this.teardownClearButton?.(),this.teardownClearButton=null,window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}update(){this.destroy(),this.init().catch(()=>{})}static getInstance(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}},name:"Autocomplete",selector:"[data-autocomplete]"},{Module:class{element;config;instance;constructor(e,t){return this.element=e,this.config={...Zs,...t},this.init(),this.element.ODS_DatePicker=this,this}init(){const e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days");let n={};if(e)try{n=JSON.parse(e)}catch{n={}}this.config={...this.config,...n,...t&&{disabledDayFn:e=>!t.split(",").includes(function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e))}};const i=this.element.getAttribute("data-datepicker-id")||void 0,s=this.element.getAttribute("data-datepicker-name")||i;var r,o;this.instance=(r=this.element,o={id:i,name:s,...this.config},Wi(xi(Js,{...o}),r),{destroy(){!function(e){e.__k&&Wi(null,e)}(r),Wi(xi(Qs,{...o}),r)}})}destroy(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}},name:"DatePicker",selector:"[data-datepicker]"},{Module:class{element;config;trigger;instance;transitioner;focusableElements;constructor(e,t={}){return e.ODS_Dropdown?e.ODS_Dropdown:(this.element=e,this.config={...ti,...t},this.config.popperOptions={...ti.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...ti.popperOptions.modifiers||[],...t?.popperOptions?.modifiers||[]],this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)}static getInstance(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}init(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));const e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=Ne({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}handleVisibility(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}handleClick(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}handleKeyPress(e){if(w.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}show(){this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=()=>this.update()}hide(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}update(){this.instance.forceUpdate()}destroy(){this.trigger.removeEventListener("click",this.handleVisibility,!0),this.hide(),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}},name:"Dropdown",selector:"[data-dropdown]"},{Module:class{element;constructor(e){this.element=e,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()}toggle(){const e=this.element.getAttribute("data-toggle-group");e&&this.syncGroup(e)}syncGroup(e){const t=this.element.open;document.querySelectorAll(`[data-toggle-group="${e}"][data-expander]`).forEach(e=>{e!==this.element&&e.open!==t&&(e.open=t)})}init(){this.element.addEventListener("toggle",this.toggle)}update(){this.destroy(),this.init()}destroy(){this.element.removeEventListener("toggle",this.toggle)}static getInstance(e){return e&&e.ODS_Expander?e.ODS_Expander:null}},name:"Expander",selector:"[data-expander]"},{Module:class{element;config;controlElement=null;indicatorElements=[];constructor(e,t){return this.element=e,this.config={...x,...t},this.highlightIndicators=this.highlightIndicators.bind(this),this.unhighlightIndicators=this.unhighlightIndicators.bind(this),this.element.ODS_BlockAction=this,this.init(),this}init(){this.controlElement=this.element.querySelector(this.config.controlSelector),this.indicatorElements=Array.from(this.element.querySelectorAll(this.config.indicatorSelector)),!this.controlElement||this.indicatorElements.length<1||(this.controlElement.addEventListener("mouseenter",this.highlightIndicators),this.controlElement.addEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.addEventListener("focus",this.highlightIndicators),this.controlElement.addEventListener("blur",this.unhighlightIndicators))}highlightIndicators(){this.indicatorElements.forEach(e=>e.classList.add(this.config.activeClass))}unhighlightIndicators(){this.indicatorElements.forEach(e=>e.classList.remove(this.config.activeClass))}destroy(){this.indicatorElements.forEach(e=>e.classList.remove(this.config.activeClass)),this.controlElement&&(this.controlElement.removeEventListener("mouseenter",this.highlightIndicators),this.controlElement.removeEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.removeEventListener("focus",this.highlightIndicators),this.controlElement.removeEventListener("blur",this.unhighlightIndicators)),this.controlElement=null,this.indicatorElements=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_BlockAction?e.ODS_BlockAction:null}},name:"BlockAction",selector:"[data-block-action]"},{Module:En,name:"Carousel",selector:"[data-carousel]"},{Module:class{element;config;viewport;instance;tabs=[];_dotAnimationJustStarted=!1;_isDragging=!1;resizeRafId;_boundTabClick;_boundPrevClick;_boundNextClick;_boundPlayPauseClick;_boundWindowResize;constructor(e,t){return this.element=e,this.config={...Fn,...t},this.element.ODS_CarouselHero=this,this._boundTabClick=this._onTabClick.bind(this),this._boundPrevClick=this._onUserNavigation.bind(this),this._boundNextClick=this._onUserNavigation.bind(this),this._boundPlayPauseClick=this._onPlayPauseClick.bind(this),this._boundWindowResize=this._onWindowResize.bind(this),this.init(),this}init(){this.getElements(),this.setupConfig(),this.createSwiper(),this.setupEventListeners(),this.renderPaginationDots(),this.updateStates(),this.updatePlayPauseIcon(),this.hasAutoplay()&&this.isAutoplayRunning()&&this.startDotAnimation(),window.addEventListener("resize",this._boundWindowResize)}_onWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateStates(),this.updatePlayPauseIcon()))})}getElements(){this.viewport=this.element.querySelector(Mn);const e=this.element.querySelector(Rn);e&&(this.tabs=Array.from(e.querySelectorAll(zn)))}setupConfig(){const e=this.element.hasAttribute("data-interval")&&parseInt(this.element.getAttribute("data-interval"))||0;if("object"==typeof this.config.a11y&&null!==this.config.a11y&&(this.config.a11y={...this.config.a11y,slideRole:this.tabs.length>0?"tabpanel":"group"}),this.element.hasAttribute("data-swiper-options"))try{const e=JSON.parse(this.element.getAttribute("data-swiper-options"));this.config={...this.config,...e}}catch(e){}this.config.loop=!1,this.config.rewind=!0,e>=1e3&&(this.config.autoplay={delay:e,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0,stopOnLastSlide:!1},this.element.classList.add(Ln))}createSwiper(){const e=this.viewport.querySelectorAll(`.${Cn}`).length>1;this.instance=new _e(this.viewport,{...this.config,modules:[ke,De,Pe,xe,Ie],navigation:{nextEl:this.element.querySelector(In),prevEl:this.element.querySelector(Pn)},pagination:!!e&&{...this.config.pagination,el:this.element.querySelector(Hn)},on:{slideChange:()=>{this.updateStates(),this.isAutoplayRunning()?this.restartDotAnimation():this.stopDotAnimation()},autoplayStart:()=>{this._onAutoplayStart()},autoplayStop:()=>{this._onAutoplayStop()},touchStart:()=>{this._isDragging=!0,this._stopAutoplayIfRunning()},touchEnd:()=>{this._isDragging=!1}}}),this.updatePlayPauseIcon()}setupEventListeners(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick),e.addEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Nn);e&&(e.removeEventListener("click",this._boundPlayPauseClick),e.addEventListener("click",this._boundPlayPauseClick));const t=this.element.querySelector(Pn),n=this.element.querySelector(In);t&&(t.removeEventListener("click",this._boundPrevClick),t.addEventListener("click",this._boundPrevClick)),n&&(n.removeEventListener("click",this._boundNextClick),n.addEventListener("click",this._boundNextClick))}_onUserNavigation(){this._stopAutoplayIfRunning(),this.stopDotAnimation()}_onTabClick(e){e.preventDefault();const t=e.currentTarget,n=this.tabs.indexOf(t);-1!==n&&n!==this.instance?.realIndex&&(this._onUserNavigation(),this.goToSlide(n))}_onPlayPauseClick(){this.toggleAutoplay()}isAutoplayRunning(){return!(!this.instance?.autoplay||!this.instance.autoplay.running)}_stopAutoplayIfRunning(){this.isAutoplayRunning()&&this.instance.autoplay.stop()}_onAutoplayStart(){this.element.classList.add(Ln),this.element.classList.remove(Dn),this.updatePlayPauseIcon(),this.startDotAnimation()}_onAutoplayStop(){this.element.classList.remove(Ln),this.element.classList.add(Dn),this.updatePlayPauseIcon(),this.stopDotAnimation()}toggleAutoplay(){this.instance&&this.instance.autoplay&&(this.isAutoplayRunning()?this.instance.autoplay.stop():(this.updateStates(),setTimeout(()=>{this.instance&&this.instance.autoplay&&this.instance.autoplay.start()},10)))}goToSlide(e){this.instance&&this.instance.realIndex!==e&&(this.instance.params.loop?this.instance.slideToLoop(e):this.instance.slideTo(e))}updateStates(){if(!this.instance)return;const e=this.instance.realIndex??this.instance.activeIndex??0;this.tabs.forEach((t,n)=>{const i=n===e;t.classList.toggle(On,i),t.setAttribute("aria-selected",String(i)),t.setAttribute("tabindex",i?"0":"-1")}),this.scrollActiveTabIntoView(e),this.updatePaginationBullets(e)}updatePaginationBullets(e){const t=this.element.querySelector(Hn);t&&t.querySelectorAll(`.${Tn}`).forEach((t,n)=>{const i=n===e;if(t.classList.toggle("is-active",i),!this.hasAutoplay()){const e=t.querySelector(`.${An}`);e&&(e.style.display=i?"block":"none")}})}scrollActiveTabIntoView(e){if(!this.tabs.length||e<0||e>=this.tabs.length)return;const t=this.tabs[e],n=this.element.querySelector(Rn);if(!n||!t)return;const i=n.getBoundingClientRect(),s=t.getBoundingClientRect(),r=i.width-56;if(s.right>i.left+r||s.left<i.left){const e=s.left-i.left-r/2+s.width/2;n.scrollBy({left:e,behavior:"smooth"})}}updatePlayPauseIcon(){const e=this.element.querySelector(Nn);if(!e)return;const t=e.querySelector("use");if(t){const e=this.isAutoplayRunning()?"pause":"play",n=t.getAttribute("xlink:href")||"";if(!n.endsWith(`#${e}`)){const i=n.replace(/#[\w-]+$/,`#${e}`);t.setAttribute("xlink:href",i)}}}renderPaginationDots(){this._getPaginationButtons().forEach(e=>{const t=this.createSvgDot();e.innerHTML="",e.appendChild(t)})}startDotAnimation(e=!1){if(!this.hasAutoplay())return;if(!e&&!this.isAutoplayRunning())return;if(this._dotAnimationJustStarted)return;this._dotAnimationJustStarted=!0;const t=this._getActiveBulletButton();if(!t)return void(this._dotAnimationJustStarted=!1);const n=t.querySelector(`.${An}`);if(!n)return void(this._dotAnimationJustStarted=!1);const i=n.querySelector("circle");if(!i)return void(this._dotAnimationJustStarted=!1);const s=this.getAnimationDuration();i.style.animation="none",t.offsetHeight,i.style.animation=`countdown linear ${s}ms 1 forwards`,this._dotAnimationJustStarted=!1}restartDotAnimation(){this.stopDotAnimation(),setTimeout(()=>{this.startDotAnimation()},50)}stopDotAnimation(){this._getPaginationButtons().forEach(e=>{const t=e.querySelector(`.${An}`);if(!t)return;const n=t.querySelector("circle");n&&(n.style.animation="none")}),this._dotAnimationJustStarted=!1}_getPaginationButtons(){return Array.from(this.element.querySelectorAll(`${Hn} > *`))}_getActiveBulletClass(){const e=this.instance?.params?.pagination;if(e&&"object"==typeof e&&e.bulletActiveClass)return String(e.bulletActiveClass);const t=this.config.pagination;return t&&"object"==typeof t&&t.bulletActiveClass?String(t.bulletActiveClass):On}_getActiveBulletButton(){const e=this._getActiveBulletClass();return this.element.querySelector(`${Hn} .${e}`)}createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",An),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12");const n=document.createElementNS(e,"circle");return n.setAttribute("class",kn),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}hasAutoplay(){return!!(this.config.autoplay&&"object"==typeof this.config.autoplay&&this.config.autoplay.delay>=1e3)}getAnimationDuration(){return this.config.autoplay?.delay||0}destroy(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Nn);e&&e.removeEventListener("click",this._boundPlayPauseClick);const t=this.element.querySelector(Pn),n=this.element.querySelector(In);t&&t.removeEventListener("click",this._boundPrevClick),n&&n.removeEventListener("click",this._boundNextClick),window.removeEventListener("resize",this._boundWindowResize),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.instance.destroy(!0,!0),delete this.element.ODS_CarouselHero}static getInstance(e){return e.ODS_CarouselHero||null}},name:"CarouselHero",selector:"[data-carousel-hero]"},{Module:Kn,name:"CarouselPromotions",selector:"[data-carousel-promotions]"},{Module:class extends m{leaves;constructor(e,t){super(e,t,{defaultConfig:Zn,instanceKey:"ODS_Countdown"}),this.leaves=new Map,this.init()}getLabels(){return{...Qn,...this.config.labels??{},days:p(this.config.labels?.days,Jn)}}collectElements(){this.leaves.clear();const e=h(this.config.units);Array.from(this.element.querySelectorAll(o)).forEach(t=>{const n=t.getAttribute(s);n&&e.includes(n)&&this.leaves.set(n,{element:t,unit:n,labels:Array.from(t.querySelectorAll(c)),isFlipping:!1})})}setLeafValue(e,t){e.labels.forEach(e=>{e.replaceChildren(document.createTextNode(t))})}flipLeaf(e,t){const[n,s,r,o]=e.labels;n&&s&&r&&o&&(n.textContent?e.isFlipping||n.textContent===t||(e.flipTimeoutId&&window.clearTimeout(e.flipTimeoutId),e.isFlipping=!0,n.replaceChildren(document.createTextNode(t)),r.replaceChildren(document.createTextNode(t)),e.element.classList.add(i),e.flipTimeoutId=window.setTimeout(()=>{s.replaceChildren(document.createTextNode(t)),o.replaceChildren(document.createTextNode(t)),e.element.classList.remove(i),e.isFlipping=!1,e.flipTimeoutId=void 0},600)):this.setLeafValue(e,t))}render(){const e=h(this.config.units),t=this.getLabels(),n=f(this.config.targetDate,e);if(e.forEach(e=>{const i=this.leaves.get(e);if(!i)return;const s=n[e],r=ei(e,s,t);this.flipLeaf(i,(e=>String(Math.max(0,e)).padStart(2,"0"))(s));const o=i.element.querySelector(a);o&&(o.textContent=r)}),this.liveRegion){const i=e.map(e=>`${n[e]} ${ei(e,n[e],t)}`).join(", ");this.liveRegion.textContent=i}}destroyElements(){this.leaves.forEach(e=>{e.flipTimeoutId&&(window.clearTimeout(e.flipTimeoutId),e.flipTimeoutId=void 0),e.isFlipping=!1,e.element.classList.remove(i)})}static getInstance(e){return e&&e.ODS_Countdown?e.ODS_Countdown:null}},name:"Countdown",selector:"[data-countdown]"},{Module:class extends m{units;constructor(e,t){super(e,t,{defaultConfig:b,instanceKey:"ODS_CountdownTag"}),this.units=new Map,this.init()}getLabels(){return{...v,...this.config.labels??{},days:p(this.config.labels?.days,g)}}collectElements(){this.units.clear();const e=h(this.config.units);Array.from(this.element.querySelectorAll(l)).forEach(t=>{const n=t.getAttribute(s);n&&e.includes(n)&&this.units.set(n,{element:t,unit:n,valueElement:t.querySelector("[data-countdown-tag-value]")})})}render(){const e=h(this.config.units),t=this.getLabels(),n=f(this.config.targetDate,e);e.forEach(e=>{const i=this.units.get(e);if(!i)return;const s=n[e];i.valueElement&&(i.valueElement.textContent=(e=>e<100?String(Math.max(0,e)).padStart(2,"0"):String(Math.max(0,e)))(s));const r=i.element.querySelector(".countdown-tag__label");r&&(r.textContent=y(e,t))}),this.liveRegion&&(this.liveRegion.textContent=e.map(e=>`${n[e]} ${y(e,t)}`).join(", "))}destroyElements(){}static getInstance(e){return e&&e.ODS_CountdownTag?e.ODS_CountdownTag:null}},name:"CountdownTag",selector:"[data-countdown-tag]"},{Module:class{element;config;bodies=[];buttons=[];images=[];constructor(e,t){return this.element=e,this.config={...oi,...t},this.element.ODS_FeatureAccordion=this,this.init(),this}init(){this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll("[data-feature-accordion-image]")),this.setActive(0),this.buttons.forEach(e=>{e.addEventListener("click",this.onClick)})}onClick=e=>{const t=e.currentTarget,n=this.buttons.indexOf(t);this.setActive(n)};setActive(e){if(e<0||e>=this.buttons.length)return;this.bodies.forEach(e=>{e.setAttribute("hidden",""),e.classList.remove("is-active")}),this.buttons.forEach(e=>{const t=e.closest(".feature-accordion__item");t?.classList.remove("is-active"),ri({element:e,attribute:"aria-expanded",value:"false"})});const t=this.buttons[e],n=t.getAttribute("aria-controls"),i=n?document.getElementById(n):null,s=t.closest(".feature-accordion__item");i&&(i.removeAttribute("hidden"),i.classList.add("is-active")),s&&s.classList.add("is-active"),ri({element:t,attribute:"aria-expanded",value:"true"}),this.images.forEach((t,n)=>{t.classList.toggle("hide",n!==e)})}destroy(){this.buttons.forEach(e=>{e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}},name:"FeatureAccordion",selector:"[data-feature-accordion]"},{Module:class{element;config;input;files;results;removeButtons;constructor(e,t){return this.element=e,this.config={...fo,...t},this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this}init(){this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.preventDefaults,!1),document.body.addEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.addEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}onInputChange(){return!(!this.input||!this.results)&&(this.files=Array.from(this.input.files??[]),!!this.files&&(this.results.innerHTML="",this.files.map((e,t)=>this.config.fileTemplate(po.sanitize(e.name,{ALLOWED_TAGS:[]}),t)).forEach(e=>{this.results.appendChild(po.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(e=>e.addEventListener("click",this.onRemoveButtonClick))))}onDrop(e){this.input&&(this.input.files=e?.dataTransfer?.files||(new DataTransfer).files,this.onInputChange())}onRemoveButtonClick(e){if(!this.input)return;const t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(e=>t.items.add(e)),this.input.files=t.files,this.onInputChange()}highlight(){this.element.classList.add(this.config.dragDropClassname)}unhighlight(){this.element.classList.remove(this.config.dragDropClassname)}preventDefaults(e){e.preventDefault(),e.stopPropagation()}destroy(){this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.preventDefaults,!1),document.body.removeEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.removeEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}update(){this.destroy(),this.init()}},name:"File",selector:"[data-file-input]"},{Module:class{element;config;interval;delay;currentMessageIndex;messages;constructor(e,t){this.element=e,this.config={...ha,...t},this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()}initBody(){const e=this.element.getAttribute("data-loader-messages");this.messages=e?JSON.parse(e):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,this.config.cycleDuration??ha.cycleDuration))}init(){this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(()=>{this.element.parentNode&&this.element.parentNode instanceof HTMLElement&&this.element.parentNode.classList.remove("hide"),this.initBody()},this.config.delay??ha.delay):this.initBody()}destroy(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}cycleMessages(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}static getInstance(e){return e&&e.ODS_Loader?e.ODS_Loader:null}},name:"Loader",selector:"[data-loader]"},{Module:Ha,name:"Modal",selector:"[data-modal]"},{Module:class{constructor(e){this.element=e,this.children=null,this.updateHeight=this.updateHeight.bind(this),this.element.ODS_SameHeight=this,this.intervalId=null,this.init()}temporarilyShowHiddenElements(){this.originalDisplayStates=[],this.children.forEach(e=>{const t=e.closest('[role="tabpanel"]'),n=e.closest('[role="dialog"]');t&&t.hasAttribute("hidden")&&(this.originalDisplayStates.push({element:t,display:t.style.display}),t.style.display="block",t.removeAttribute("hidden")),n&&n.hasAttribute("aria-hidden")&&(this.originalDisplayStates.push({element:n,display:n.style.display}),n.style.display="block",n.removeAttribute("aria-hidden"))})}restoreHiddenElements(){this.originalDisplayStates.forEach(({element:e,display:t})=>{e.style.display=t,"tabpanel"===e.getAttribute("role")?e.setAttribute("hidden",!0):"dialog"===e.getAttribute("role")&&e.setAttribute("aria-hidden",!0)})}getCarouselElement(){const e=`[data-carousel], .${ln}`;return this.element.matches(e)?this.element:this.element.closest(e)}isInsideOrIsCarousel(){return this.getCarouselElement()}getCarouselSlides(){const e=this.getCarouselElement();return e?e.querySelectorAll(`.${un}`):[]}updateHeight(){this.temporarilyShowHiddenElements();const e=this.element.querySelectorAll('[data-same-height-child="true"]');e.forEach(e=>{e.style.height&&(e.style.height="")});const t=this.groupElementsByTypeAndPosition(e),n=this.isInsideOrIsCarousel();for(const[e,i]of Object.entries(t))i.length&&this.groupElementsIntoRows(i,n).forEach(e=>{if(e.length>1){const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})}else e.forEach(e=>{e.style.height&&(e.style.height=null)})});this.restoreHiddenElements()}groupElementsIntoRows(e,t){if(t)return[e];const n=[];let i=[],s=e[0].getBoundingClientRect().top;for(const t of e){const e=t.getBoundingClientRect().top;e===s?i.push(t):(n.push(i),i=[t],s=e)}return n.push(i),n}groupElementsByTypeAndPosition(e){const t={};return e.forEach(e=>{const n=e.getAttribute("data-same-height-group")||"default";t[n]||(t[n]=[]),t[n].push(e)}),t}init(){this.children=this.element.querySelectorAll('[data-same-height-child="true"]');const e=[];this.children.forEach(t=>{t.querySelectorAll("img").forEach(t=>{t.complete||e.push(t)})});const t=this.isInsideOrIsCarousel(),n=()=>{t?this.waitForCarouselThenUpdate(t):this.updateHeight()};0===e.length?n():this.waitForImagesToLoad(e,n),window.addEventListener("resize",this.updateHeight),t&&this.setupCarouselListeners(t)}waitForCarouselThenUpdate(e){e.ODS_Carousel?.instance?requestAnimationFrame(()=>{this.updateHeight()}):setTimeout(()=>this.waitForCarouselThenUpdate(e),50)}waitForImagesToLoad(e,t){let n=0;this.intervalId=setInterval(()=>{let i=!1;e.forEach((e,t,n)=>{e.complete&&(n.splice(t,1),i=!0)}),i&&this.updateHeight&&t(),(++n>=15||0===e.length)&&(e.length&&this.updateHeight&&t(),window.clearInterval(this.intervalId))},400)}setupCarouselListeners(e){if(e.ODS_Carousel?.instance){const{instance:t}=e.ODS_Carousel;["resize","update","slideChange"].forEach(e=>{t.on(e,()=>{requestAnimationFrame(()=>{this.updateHeight()})})})}else setTimeout(()=>this.setupCarouselListeners(e),50)}update(){this.destroy(),this.init()}destroy(){window.removeEventListener("resize",this.updateHeight),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}static getInstance(e){return e?.ODS_SameHeight||null}},name:"SameHeight",selector:"[data-same-height]"},{Module:class{element;config;instance;inputs;outputs;constructor(e,t){return this.element=e,this.config={...ua,...t},this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this}init(){const e=this.element.getAttribute("data-rangeslider-config");let t={};if(e)try{t=JSON.parse(e)}catch{}if(this.config={...this.config,...t},this.config.format=sn(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,this.instance?.destroy&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=da(this.element,this.config),this.inputs=Array.from(document.querySelectorAll(`input[name^=${this.element.getAttribute("id")}-]`)),this.outputs=this.inputs.map(e=>{const t=document.getElementById(`${e.getAttribute("id")}-output`);if(t){const e=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&e?sn(JSON.parse(e)):void 0}}return!1}),this.instance.on("update",(e,t)=>{this.handleSliderUpdate(e.map(String),t)})}update(){this.instance?.destroy(),this.init()}destroy(){this.instance?.off("update"),this.instance?.destroy(),this.element.ODS_RangeSlider=null}static getInstance(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}handleSliderUpdate=(e,t)=>{const n=e[t];if(this.inputs[t]&&(this.inputs[t].value=n),this.outputs[t]){const e=this.outputs[t];e&&e.format?e.element.innerText=e.format.to(this.config.format.from(n)):e&&(e.element.innerText=n)}}},name:"RangeSlider",selector:"[data-rangeslider]"},{Module:class{element;config;input;numberDisplay;add;remove;constructor(e,t){this.element=e,this.config={...mo,...t},this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()}handleInputClick(){this.input&&this.input.select()}handleButtonState(){const{min:e,max:t}=this.config,n=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);this.add&&"number"==typeof t&&n>=t?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof e&&n<=e?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}handleInputChange(e){const{min:t,max:n}=this.config,i=e.target;i&&(t&&Number(i.value)<=t&&(i.value=String(t)),n&&Number(i.value)>=n&&(i.value=String(n)))}handleButtonClick(e){const{min:t,max:n}=this.config,i=e.target;let s=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);if(i.classList.contains("input-stepper__button--minus")){if(t&&s<=t){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s-=1}if(i.classList.contains("input-stepper__button--plus")){if(n&&s>=n){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(s):this.numberDisplay&&(this.numberDisplay.textContent=String(s)),this.handleButtonState()}init(){const e=this.element.getAttribute("data-inputstepper");let t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch{t={}}this.config={...this.config,...t},this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");const{defaultValue:n}=this.config;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}update(){this.destroy(),this.init()}destroy(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}static getInstance(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}},name:"InputStepper",selector:"[data-inputstepper]"},{Module:class{element;config;expandButtons;scrollableContainer;resizeObserver;constructor(e,t){return this.element=e,this.config={...Fa,...t},this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(e=>{if(!this.scrollableContainer)return;const t=this.scrollableContainer.getBoundingClientRect();e.forEach(e=>{e.contentRect.width>t.width?this.scrollableContainer?.setAttribute("tabindex","0"):this.scrollableContainer?.removeAttribute("tabindex")})}),this.init(),this}addRole(e,t){Array.from(this.element.querySelectorAll(e)).forEach(e=>{e.setAttribute("role",t)})}addARIA(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){}}onExpandClick(e){const t=e.currentTarget,n=t.getAttribute("aria-controls")??"",i=this.element.querySelectorAll(n.split(" ").map(e=>`#${e}`).join(","));ri({element:t,attribute:"aria-expanded"}),i.forEach(e=>{ri({element:e,attribute:"hidden"})})}init(){this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(e=>{e.addEventListener("click",this.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}maybeInitScrollable(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}destroy(){this.expandButtons.forEach(e=>{e.removeEventListener("click",this.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Table?e.ODS_Table:null}},name:"Table",selector:"[data-table]"},{Module:$a,name:"Tabs",selector:"[data-tabs]"},{Module:si,name:"Toggle",selector:"[data-toggle]"},{Module:an,name:"Tooltip",selector:"[data-tooltip]"}];window.ODS=window.ODS||{modules:{},instances:{},moduleSelectorPairs:{}},window.ODS.initModulesWithin=function(e){const t={};return window.ODS.moduleSelectorPairs.forEach(n=>{const i=rn(n.name),s=Array.from(e.querySelectorAll(n.selector)),r=`ODS_${n.name}`,o=s.filter(e=>!e[r]);window&&window.ODS&&window.ODS.instances[i]&&(window.ODS.instances[i]=window.ODS.instances[i].filter(e=>{const t=document.contains(e.element);return t||e.destroy?.(),t}),window.ODS.instances[i].forEach(e=>{o.forEach((t,n)=>{t.isSameNode(e.element)&&o.splice(n,1)})})),o.length&&(Array.isArray(window.ODS.instances[i])||(window.ODS.instances[i]=[]),t[i]=o.map(e=>new n.Module(e)),window.ODS.instances[i]=[...window.ODS.instances[i],...t[i]])}),t},window.ODS.destroyModulesWithin=function(e,t=!1){const n={};return Object.keys(window.ODS.instances).forEach(i=>{window.ODS.instances[i].forEach(s=>{"object"!=typeof n[i]&&(n[i]=[]);let r=e.contains(s.element);"modal"===i?r=s.instance?._openers.every(t=>e.contains(t)):"tooltip"===i&&(r=e.contains(s.trigger)),r&&(s.destroy(),n[i].push(s)),r&&t&&["modal","tooltip"].includes(i)&&s.element.remove()}),window.ODS.instances[i]=window.ODS.instances[i].filter(e=>!n[i].includes(e))}),n},window.ODS.moduleSelectorPairs=Va,window.addEventListener("DOMContentLoaded",()=>{Va.forEach(e=>{window.ODS.modules[e.name]=e.Module,window.ODS.instances[rn(e.name)]=function(e,t,n={}){return Array.from(document.querySelectorAll(t)).map(t=>new e(t,n))}(e.Module,e.selector)}),window.dispatchEvent(new Event("ODSLoaded"))});var ja,qa={exports:{}},Wa=(ja||(ja=1,window,qa.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var i=n(1),s=n(6),r=n(7),o=n(16),a=n(18),l="prototype",c=function(e,t,n){var d,u,h,p,f=e&c.F,m=e&c.G,g=e&c.S,v=e&c.P,b=e&c.B,y=m?i:g?i[t]||(i[t]={}):(i[t]||{})[l],w=m?s:s[t]||(s[t]={}),_=w[l]||(w[l]={});for(d in m&&(n=t),n)h=((u=!f&&y&&void 0!==y[d])?y:n)[d],p=b&&u?a(h,i):v&&"function"==typeof h?a(Function.call,h):h,y&&o(y,d,h,e&c.U),w[d]!=h&&r(w,d,p),v&&_[d]!=h&&(_[d]=h)};i.core=s,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return a}),n.d(t,"createElement",function(){return a}),n.d(t,"cloneElement",function(){return d}),n.d(t,"Component",function(){return I}),n.d(t,"render",function(){return N}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return s});var i=function(){},s={},r=[],o=[];function a(e,t){var n,a,l,c,d=o;for(c=arguments.length;2<c--;)r.push(arguments[c]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((a=r.pop())&&void 0!==a.pop)for(c=a.length;c--;)r.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&n?d[d.length-1]+=a:d===o?d=[a]:d.push(a),n=l;var u=new i;return u.nodeName=e,u.children=d,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(u),u}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function d(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==h.push(e)&&(s.debounceRendering||c)(f)}function f(){var e,t=h;for(h=[];e=t.pop();)e._dirty&&M(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||s)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var r in n)r in i||(e.style[r]="");for(var r in i)e.style[r]="number"==typeof i[r]&&!1===u.test(r)?i[r]+"px":i[r]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,o):e.removeEventListener(t,y,o),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var w=[],_=0,S=!1,E=!1;function x(){for(var e;e=w.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,n,i,s){var r=e,o=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),T(e,!0))),r.__preactattr_=!0,r;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,i){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!i||s._component)?(D(s,c,3,n,i),e=s.base):(r&&!a&&(P(r),e=o=null),s=O(t.nodeName,c,n),e&&!s.nextBase&&(s.nextBase=e,o=null),D(s,c,1,n,i),e=s.base,o&&e!==o&&(o._component=null,T(o,!1))),e}(e,t,n,i);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!m(e,a))&&(r=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,S),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),T(e,!0)}var l=r.firstChild,c=r.__preactattr_,d=t.children;if(null==c){c=r.__preactattr_={};for(var u=r.attributes,h=u.length;h--;)c[u[h].name]=u[h].value}return!E&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&function(e,t,n,i,s){var r,o,a,l,c,d,u,h,p=e.childNodes,f=[],g={},b=0,y=0,w=p.length,_=0,S=t?t.length:0;if(0!==w)for(var E=0;E<w;E++){var x=p[E],A=x.__preactattr_;null!=(k=S&&A?x._component?x._component.__key:A.key:null)?(b++,g[k]=x):(A||(void 0!==x.splitText?!s||x.nodeValue.trim():s))&&(f[_++]=x)}if(0!==S)for(E=0;E<S;E++){var k;if(c=null,null!=(k=(l=t[E]).key))b&&void 0!==g[k]&&(c=g[k],g[k]=void 0,b--);else if(y<_)for(r=y;r<_;r++)if(void 0!==f[r]&&(d=o=f[r],h=s,"string"==typeof(u=l)||"number"==typeof u?void 0!==d.splitText:"string"==typeof u.nodeName?!d._componentConstructor&&m(d,u.nodeName):h||d._componentConstructor===u.nodeName)){c=o,f[r]=void 0,r===_-1&&_--,r===y&&y++;break}c=C(c,l,n,i),a=p[E],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?v(a):e.insertBefore(c,a))}if(b)for(var E in g)void 0!==g[E]&&T(g[E],!1);for(;y<=_;)void 0!==(c=f[_--])&&T(c,!1)}(r,d,n,i,E||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,S);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],S)}(r,t.attributes,c),S=o,r}function T(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||v(e),A(e))}function A(e){for(e=e.lastChild;e;){var t=e.previousSibling;T(e,!0),e=t}}var k=[];function O(e,t,n){var i,s=k.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),I.call(i,t,n)):((i=new I(t,n)).constructor=e,i.render=L);s--;)if(k[s].constructor===e)return i.nextBase=k[s].nextBase,k.splice(s,1),i;return i}function L(e,t,n){return this.constructor(e,n)}function D(e,t,n,i,r){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===s.syncComponentUpdates&&e.base?p(e):M(e,1,r)),e.__ref&&e.__ref(e))}function M(e,t,n,i){if(!e._disable){var r,o,a,c=e.props,d=e.state,u=e.context,h=e.prevProps||c,p=e.prevState||d,f=e.prevContext||u,m=e.base,v=e.nextBase,b=m||v,y=e._component,A=!1,k=f;if(e.constructor.getDerivedStateFromProps&&(d=l(l({},d),e.constructor.getDerivedStateFromProps(c,d)),e.state=d),m&&(e.props=h,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,d,u)?A=!0:e.componentWillUpdate&&e.componentWillUpdate(c,d,u),e.props=c,e.state=d,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!A){r=e.render(c,d,u),e.getChildContext&&(u=l(l({},u),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(k=e.getSnapshotBeforeUpdate(h,p));var L,I,N=r&&r.nodeName;if("function"==typeof N){var R=g(r);(o=y)&&o.constructor===N&&R.key==o.__key?D(o,R,1,u,!1):(L=o,e._component=o=O(N,R,u),o.nextBase=o.nextBase||v,o._parentComponent=e,D(o,R,0,u,!1),M(o,1,n,!0)),I=o.base}else a=b,(L=y)&&(a=e._component=null),(b||1===t)&&(a&&(a._component=null),I=function(e,t,n,i,s,r){_++||(S=null!=s&&void 0!==s.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=C(e,t,n,i,r);return s&&o.parentNode!==s&&s.appendChild(o),--_||(E=!1),o}(a,r,u,n||!m,b&&b.parentNode,!0));if(b&&I!==b&&o!==y){var z=b.parentNode;z&&I!==z&&(z.replaceChild(I,b),L||(b._component=null,T(b,!1)))}if(L&&P(L),(e.base=I)&&!i){for(var H=e,F=e;F=F._parentComponent;)(H=F).base=I;I._component=H,I._componentConstructor=H.constructor}}for(!m||n?w.unshift(e):A||(e.componentDidUpdate&&e.componentDidUpdate(h,p,k),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);_||i||x()}}function P(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),v(e.nextBase=t),k.push(e),A(t)),e.__ref&&e.__ref(null)}function I(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,n){return function(e,t,n,i,s,r){_++||(S=null!=s&&void 0!==s.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=C(e,t,n,i,r);return s&&o.parentNode!==s&&s.appendChild(o),--_||(E=!1,x()),o}(n,e,{},!1,t,!1)}l(I.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),M(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:d,Component:I,render:N,rerender:f,options:s};t.default=R},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),s=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),s=n(38),r=n(39),o=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),s)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),s=n(1).document,r=i(s)&&i(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,n){var i=n(1),s=n(7),r=n(17),o=n(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||s(n,"name",t)),e[t]!==n&&(l&&(r(n,o)||s(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:s(e,t,n):(delete e[t],s(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[o]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,s){return e.call(t,n,i,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),s=n(28);e.exports=Object.keys||function(e){return i(e,s)}},function(e,t,n){var i=n(11),s=n(12);e.exports=function(e){return i(s(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),s=n(24),r=n(43);e.exports=function(e){return function(t,n,o){var a,l=i(t),c=s(l.length),d=r(o,c);if(e&&n!=n){for(;d<c;)if((a=l[d++])!=a)return!0}else for(;d<c;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var i=n(25),s=Math.min;e.exports=function(e){return 0<e?s(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),s=n(10);e.exports=function(e){return i[e]||(i[e]=s(e))}},function(e,t,n){var i=n(6),s=n(1),r="__core-js_shared__",o=s[r]||(s[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||n(3)&&i(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),s=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(18),s=n(11),r=n(29),o=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,d=4==e,u=6==e,h=5==e||u,p=t||a;return function(t,a,f){for(var m,g,v=r(t),b=s(v),y=i(a,f,3),w=o(b.length),_=0,S=n?p(t,w):l?p(t,0):void 0;_<w;_++)if((h||_ in b)&&(g=y(m=b[_],_,v),e))if(n)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:S.push(m)}else if(d)return!1;return u?-1:c||d?d:S}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),s=n(10),r=n(1).Symbol,o="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=o&&r[e]||(o?r:s)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),s=n(23)(!1),r=[].indexOf,o=!!r&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(o||!n(13)(r)),"Array",{indexOf:function(e){return o?r.apply(this,arguments)||0:s(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),s=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function r(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=o(e.source)),(0,i.render)((0,i.createElement)(s.default,e),e.element)}var o=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};r.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options.selectedIndex,i=0<=n?e.selectElement.options[n]:null;e.defaultValue=i?i.textContent||i.innerText:""}if(void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0),void 0===e.autocomplete){var s=e.selectElement.getAttribute("autocomplete");null!==s&&(e.autocomplete=s)}var o=document.createElement("div");e.selectElement.parentNode.insertBefore(o,e.selectElement),r(Object.assign({},e,{element:o})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=r;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,s;if(t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!i(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),s=n(45),r=n(46),o=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=o(e),l=arguments.length,c=1,d=s.f,u=r.f;c<l;)for(var h,p=a(arguments[c++]),f=d?i(p).concat(d(p)):i(p),m=f.length,g=0;g<m;)u.call(p,h=f[g++])&&(n[h]=p[h]);return n}:l},function(e,t,n){var i=n(17),s=n(21),r=n(23)(!1),o=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=s(e),l=0,c=[];for(n in a)n!=o&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?s(e+t,0):r(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),s=n(33),r=n(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),s=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),s=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function d(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var u=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,s=t.focused!==n;s&&!i&&this.elementReferences[n].focus();var r=-1===n,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[n];a.setSelectionRange(0,a.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,s=n.query,r=n.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(i[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,s=n.menuOpen,r=n.options,o=n.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&a||!c&&!l){var u=s&&d()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(r[o])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,s=t.options,r=t.query,o=t.selected,a=0<=n;if(d()&&!e.relatedTarget&&!a&&this.hasAutoselect()){var l=this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!a){var c=i&&d(),u=d()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:c,query:u})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,s=n.source,r=n.showAllValues,o=this.state.searchOnInteraction,a=this.hasAutoselect(),l=e.target.value,c=0===l.length,d=o||this.state.query.length!==l.length,u=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),r||!c&&d&&u?s(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:a&&n?0:-1,validChoiceMade:!1}})}):!c&&u||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!i&&n.length>=r&&0<s.length;o?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,s=n.options,r=n.selected;r!==s.length-1&&i&&this.handleOptionFocus(r+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,r=n.cssNamespace,o=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,u=n.menuClassName,h=n.displayMenu,p=n.enterKeyHint,f=n.autocomplete,m=n.id,g=n.minLength,v=n.name,b=n.placeholder,y=n.required,w=n.showAllValues,_=n.tNoResults,S=n.tStatusQueryTooShort,E=n.tStatusNoResults,x=n.tStatusSelectedOption,C=n.tStatusResults,T=n.tAssistiveHint,A=n.dropdownArrow,k=this.state,O=k.focused,L=k.hovered,D=k.menuOpen,M=k.options,P=k.query,I=k.selected,N=k.ariaHint,R=k.validChoiceMade,z=this.hasAutoselect(),H=-1===O,F=0===M.length,B=0!==P.length,$=P.length>=g,V=this.props.showNoOptionsFound&&H&&F&&B&&$,j=r+"__wrapper"+(l?" "+l:""),q=r+"__input",W=null!==O?" "+q+"--focused":"",U=this.props.showAllValues?" "+q+"--show-all-values":" "+q+"--default",G=r+"__dropdown-arrow-down",Y=-1!==O&&null!==O,X=r+"__menu",K=X+"--"+h,J=X+"--"+(D||V?"visible":"hidden"),Q=r+"__option",Z=r+"__hint",ee=this.templateInputValue(M[I]),te=ee&&0===ee.toLowerCase().indexOf(P.toLowerCase())&&z?P+ee.substr(P.length):"",ne=m+"__assistiveHint",ie=N?{"aria-describedby":ne}:null;return w&&"string"==typeof(e=A({className:G}))&&(e=(0,i.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:j,onKeyDown:this.handleKeyDown},(0,i.createElement)(s.default,{id:m,length:M.length,queryLength:P.length,minQueryLength:g,selectedOption:this.templateInputValue(M[I]),selectedOptionIndex:I,validChoiceMade:R,isInFocus:null!==this.state.focused,tQueryTooShort:S,tNoResults:E,tSelectedOption:x,tResults:C}),te&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Z,readonly:!0,tabIndex:"-1",value:te})),(0,i.createElement)("input",a({enterkeyhint:p||(d()&&this.hasAutoselect()?"done":""),"aria-expanded":D?"true":"false","aria-activedescendant":!!Y&&m+"__option--"+O,"aria-owns":m+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ie,{autoComplete:f,className:""+q+W+U+(o?" "+o:""),id:m,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:b,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:y,value:P})),e,(0,i.createElement)("ul",{className:X+" "+K+" "+J+(u?" "+u:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:m+"__listbox",role:"listbox"},M.map(function(e,n){var s=(-1===O?I===n:O===n)&&null===L?" "+Q+"--focused":"",r=n%2?" "+Q+"--odd":"",o=d()?"<span id="+m+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+M.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":O===n?"true":"false",className:""+Q+s+r+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+o},id:m+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":M.length})}),V&&(0,i.createElement)("li",{className:Q+(c?" "+c:"")+" "+Q+"--no-results"},_())),(0,i.createElement)("span",{id:ne,style:{display:"none"}},T()))},t}(i.Component);(t.default=u).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",autocomplete:"off",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:r.default}},function(e,t,n){var i=n(9),s=n(53),r=n(28),o=n(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=r.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[o]=e):n=c(),void 0===t?n:s(n,t)}},function(e,t,n){var i=n(8),s=n(9),r=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,o=r(t),a=o.length,l=0;l<a;)i.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),s=n(2),r=n(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1),l=function(){var i=n.concat(o.call(arguments));return this instanceof l?function(e,t,n){if(!(t in a)){for(var i=[],s=0;s<t;s++)i[s]="a["+s+"]";a[t]=Function("F,a","return new F("+i.join(",")+")")}return a[t](e,n)}(t,i.length,i):r(t,i,e)};return s(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),s=null==n?void 0:n[t];return void 0!==s?s.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),s=n(16),r=n(4),o=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),c=n(o,l,""[e]),d=c[0],u=c[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(s(String.prototype,e,d),i(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),s=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,s=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,s)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,s=t.length,r=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,d=t.tNoResults,u=t.tSelectedOption,h=t.tResults,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,v=r<o,b=0===s,y=a?u(a,s,l):"";return e=v?c(o):b?d():h(s,y),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":e))},t}(i.Component);(t.default=s).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default),qa.exports),Ua=e({__proto__:null,default:Zt(Wa)},[Wa]);export{Va as moduleSelectorPairs};
|
|
2
2
|
//# sourceMappingURL=scripts.js.map
|