@orangesk/orange-design-system 2.2.0 → 3.1.0
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/components/Accordion/style.css +1 -1
- package/build/components/Accordion/style.css.map +1 -1
- package/build/components/Card/style.css +1 -1
- package/build/components/Card/style.css.map +1 -1
- package/build/components/Carousel/style.css +1 -1
- package/build/components/Carousel/style.css.map +1 -1
- package/build/components/CarouselHero/style.css +1 -1
- package/build/components/CarouselHero/style.css.map +1 -1
- package/build/components/Cover/style.css +1 -1
- package/build/components/Cover/style.css.map +1 -1
- package/build/components/FeatureAccordion/style.css +1 -1
- package/build/components/FeatureAccordion/style.css.map +1 -1
- package/build/components/Footer/style.css +1 -1
- package/build/components/Footer/style.css.map +1 -1
- package/build/components/Grid/style.css +1 -1
- package/build/components/Grid/style.css.map +1 -1
- package/build/components/IconList/style.css +1 -1
- package/build/components/IconList/style.css.map +1 -1
- package/build/components/Link/style.css +1 -1
- package/build/components/Link/style.css.map +1 -1
- package/build/components/Megamenu/style.css +1 -1
- package/build/components/Megamenu/style.css.map +1 -1
- package/build/components/PromoBanner/style.css +1 -1
- package/build/components/PromoBanner/style.css.map +1 -1
- package/build/components/Timeline/style.css +2 -0
- package/build/components/Timeline/style.css.map +1 -0
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +30 -2
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +3 -0
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.static.d.ts +0 -3
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordionItem.d.ts +2 -1
- package/build/components/types/src/components/Timeline/Timeline.d.ts +13 -0
- package/build/components/types/src/components/Timeline/index.d.ts +2 -0
- package/build/components/types/src/components/index.d.ts +2 -1
- 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/search-index.json +7 -3
- package/build/sprite.svg +1 -1
- package/package.json +8 -8
- package/src/assets/icons/communication-settings.svg +5 -0
- package/src/assets/icons/cookies.svg +4 -0
- package/src/assets/icons/device-mobile-package.svg +6 -0
- package/src/assets/icons/identity-protection.svg +4 -0
- package/src/assets/icons/pictogram-disney--dark.svg +5 -14
- package/src/assets/icons/pictogram-disney.svg +5 -9
- package/src/assets/icons/pictogram-tariffs--dark.svg +4 -8
- package/src/assets/icons/pictogram-tariffs.svg +4 -8
- package/src/components/Accordion/styles/mixins.scss +2 -4
- package/src/components/Card/styles/mixins.scss +2 -0
- package/src/components/Carousel/styles/mixins.scss +0 -1
- package/src/components/CarouselHero/styles/mixins.scss +0 -2
- package/src/components/Cover/styles/mixins.scss +2 -0
- package/src/components/FeatureAccordion/FeatureAccordion.static.ts +3 -71
- package/src/components/FeatureAccordion/FeatureAccordion.tsx +23 -59
- package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +9 -14
- package/src/components/FeatureAccordion/styles/mixins.scss +67 -27
- package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.jsx +9 -0
- package/src/components/Grid/styles/mixins.scss +34 -2
- package/src/components/IconList/styles/mixins.scss +2 -1
- package/src/components/Link/styles/style.scss +8 -0
- package/src/components/PromoBanner/styles/mixins.scss +8 -0
- package/src/components/PromoBanner/styles/style.scss +1 -0
- package/src/components/Timeline/Timeline.tsx +60 -0
- package/src/components/Timeline/index.ts +2 -0
- package/src/components/Timeline/styles/config.scss +25 -0
- package/src/components/Timeline/styles/mixins.scss +102 -0
- package/src/components/Timeline/styles/style.scss +60 -0
- package/src/components/Timeline/tests/Timeline.conformance.test.jsx +29 -0
- package/src/components/Timeline/tests/Timeline.unit.test.jsx +89 -0
- package/src/components/index.ts +2 -0
- package/src/styles/typography/mixins.scss +3 -1
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 null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function a(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:o(t[n])&&o(e[n])&&Object.keys(t[n]).length>0&&a(e[n],t[n])})}const l={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function c(){const e="undefined"!=typeof document?document:{};return a(e,l),e}const d={document:l,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function u(){const e="undefined"!=typeof window?window:{};return a(e,d),e}function h(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function p(e,t=0){return setTimeout(e,t)}function f(){return Date.now()}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function g(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function v(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const i=e[n];if(null!=i&&!g(i)){const e=Object.keys(Object(i)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,s=e.length;n<s;n+=1){const s=e[n],r=Object.getOwnPropertyDescriptor(i,s);void 0!==r&&r.enumerable&&(m(t[s])&&m(i[s])?i[s].__swiper__?t[s]=i[s]:v(t[s],i[s]):!m(t[s])&&m(i[s])?(t[s]={},i[s].__swiper__?t[s]=i[s]:v(t[s],i[s])):t[s]=i[s])}}}return t}function b(e,t,n){e.style.setProperty(t,n)}function y({swiper:e,targetPosition:t,side:n}){const i=u(),s=-e.translate;let r,o=null;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const l=t>s?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,d=()=>{r=(new Date).getTime(),null===o&&(o=r);const l=Math.max(Math.min((r-o)/a,1),0),u=.5-Math.cos(l*Math.PI)/2;let h=s+u*(t-s);if(c(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),c(h,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),void i.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=i.requestAnimationFrame(d)};d()}function w(e,t=""){const n=u(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function _(e){try{return}catch(e){}}function S(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:h(t)),n}function E(e){const t=u(),n=c(),i=e.getBoundingClientRect(),s=n.body,r=e.clientTop||s.clientTop||0,o=e.clientLeft||s.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+a-r,left:i.left+l-o}}function x(e,t){return u().getComputedStyle(e,null).getPropertyValue(t)}function C(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function T(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function A(e,t,n){const i=u();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function k(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function O(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let L,D,M;function P(){return L||(L=function(){const e=u(),t=c();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),L}function I(e={}){return D||(D=function({userAgent:e}={}){const t=P(),n=u(),i=n.navigator.platform,s=e||n.navigator.userAgent,r={ios:!1,android:!1},o=n.screen.width,a=n.screen.height,l=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===i;let f="MacIntel"===i;return!c&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),l&&!p&&(r.os="android",r.android=!0),(c||h||d)&&(r.os="ios",r.ios=!0),r}(e)),D}function N(){return M||(M=function(){const e=u(),t=I();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=i();return{isSafari:n||r,needPerspectiveFix:n,need3dFix:r||s&&t.ios,isWebView:s}}()),M}var R={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;function s(...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;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],i=e.slice(1,e.length),s=t):(n=e[0].events,i=e[0].data,s=e[0].context||t),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}};const z=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},F=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},B=(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(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},H=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},$=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){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)=>{r.includes(t.column)&&H(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)&&H(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)&&H(e,i)};var V={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(x(i,"padding-left")||0,10)-parseInt(x(i,"padding-right")||0,10),n=n-parseInt(x(i,"padding-top")||0,10)-parseInt(x(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=w(s,`.${e.params.slideClass}, swiper-slide`),d=a?e.virtual.slides.length:c.length;let u=[];const h=[],p=[];let f=n.slidesOffsetBefore;"function"==typeof f&&(f=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,v=e.slidesGrid.length,y=e.size-f-m;let _=n.spaceBetween,S=-f,E=0,C=0;if(void 0===y)return;"string"==typeof _&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*y:"string"==typeof _&&(_=parseFloat(_)),e.virtualSize=-_-f-m,c.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(b(i,"--swiper-centered-offset-before",""),b(i,"--swiper-centered-offset-after","")),n.cssMode&&(b(i,"--swiper-slides-offset-before",`${f}px`),b(i,"--swiper-slides-offset-after",`${m}px`));const T=n.grid&&n.grid.rows>1&&e.grid;let k;T?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const O="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<d;i+=1){k=0;const s=c[i];if(!s||(T&&e.grid.updateSlide(i,s,c),"none"!==x(s,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual.slidesPerViewAutoSlideSize&&(k=n.virtual.slidesPerViewAutoSlideSize),k&&s&&(n.roundLengths&&(k=Math.floor(k)),s.style[e.getDirectionLabel("width")]=`${k}px`);else if("auto"===n.slidesPerView){O&&(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)k=e.isHorizontal()?A(s,"width"):A(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)k=e+o+a;else{const{clientWidth:t,offsetWidth:i}=s;k=e+n+r+o+a+(i-t)}}r&&(s.style.transform=r),o&&(s.style.webkitTransform=o),n.roundLengths&&(k=Math.floor(k))}else k=(y-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(k=Math.floor(k)),s&&(s.style[e.getDirectionLabel("width")]=`${k}px`);s&&(s.swiperSlideSize=k),p.push(k),n.centeredSlides?(S=S+k/2+E/2+_,0===E&&0!==i&&(S=S-y/2-_),0===i&&(S=S-y/2-_),Math.abs(S)<.001&&(S=0),n.roundLengths&&(S=Math.floor(S)),C%n.slidesPerGroup===0&&u.push(S),h.push(S)):(n.roundLengths&&(S=Math.floor(S)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&u.push(S),h.push(S),S=S+k+_),e.virtualSize+=k+_,E=k,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+m,r&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+_}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+_}px`),T&&e.grid.updateWrapperSize(k,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?_: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]+_;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)u.push(u[u.length-1]+s)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=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!==_){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]=`${_}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(_||0)}),e-=_;const t=e>y?e-y:0;u=u.map(e=>e<=0?-f:e>t?t+m:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(_||0)}),e-=_,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){b(i,"--swiper-centered-offset-before",-u[0]+"px"),b(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!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==v&&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;n.push(o(e))}else n.push(o(t.activeIndex));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;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(o+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),u=(o-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),h=-(o-c),p=h+t.slidesSizesGrid[e],f=h>=0&&h<=t.size-t.slidesSizesGrid[e],m=h>=0&&h<t.size-1||p>1&&p<=t.size||h<=0&&p>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),z(l,m,n.slideVisibleClass),z(l,f,n.slideFullyVisibleClass),l.progress=s?-d:d,l.originalProgress=s?-u:u}},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,progressLoop:a}=t;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=>w(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){let t=s-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}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=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{F(e,e===l,n.slideActiveClass),F(e,e===d,n.slideNextClass),F(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=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};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&&$(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()}},j={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=u();let i,s,r;const o=function(e){const t=u();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new n.WebKitCSSMatrix("none"===s?"":s)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(s=n.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=n.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}(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();if(0===t)a[e?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return y({swiper:r,targetPosition:-d,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!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}};function q({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 W={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 w=r.virtual&&r.params.virtual.enabled;if((!w||!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;if(0===t)w&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),w&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,w&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return y({swiper:r,targetPosition:n,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const _=N().isSafari;return w&&!s&&_&&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;else{let e;if(r){const t=o*s.params.grid.rows;e=s.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}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=s.params.slidesPerView;"auto"===d?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(s.params.slidesPerView,10)),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;o=s.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}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&&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}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,r=e.getSlideIndexWhenGrid(e.clickedIndex);const o=e.isElement?"swiper-slide":`.${t.slideClass}`,a=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(s):r>(a?(e.slides.length-i)/2-(e.params.grid.rows-1):e.slides.length-i)?(e.loopFix(),r=e.getSlideIndex(w(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),p(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}},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=()=>{w(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},o=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||o)&&(()=>{const e=w(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?S("swiper-slide",[i.slideBlankClass]):S("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({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:i,activeSlideIndex:s,initial:r,byController:o,byMousewheel:a}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:h,params:p}=l,{centeredSlides:f,slidesOffsetBefore:m,slidesOffsetAfter:g,initialSlide:v}=p,b=f||!!m||!!g;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return t&&(b||0!==l.snapIndex?b&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let y=p.slidesPerView;"auto"===y?y=l.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),b&&y%2==0&&(y+=1));const w=p.slidesPerGroupAuto?y:p.slidesPerGroup;let S=b?Math.max(w,Math.ceil(y/2)):w;S%w!==0&&(S+=w-S%w),S+=p.loopAdditionalSlides,l.loopedSlides=S;const E=l.grid&&p.grid&&p.grid.rows>1;(c.length<y+S||"cards"===l.params.effect&&c.length<y+2*S||E&&"row"===p.grid.fill)&&_();const x=[],C=[],T=E?Math.ceil(c.length/p.grid.rows):c.length,A=r&&T-v<y&&!b;let k=A?v:l.activeIndex;void 0===s?s=l.getSlideIndex(c.find(e=>e.classList.contains(p.slideActiveClass))):k=s;const O="next"===n||!n,L="prev"===n||!n;let D=0,M=0;const P=(E?c[s].column:s)+(b&&void 0===i?-y/2+.5:0);if(P<S){D=Math.max(S-P,w);for(let e=0;e<S-P;e+=1){const t=e-Math.floor(e/T)*T;if(E){const e=T-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&x.push(t)}else x.push(T-t-1)}}else if(P+y>T-S){M=Math.max(P-(T-2*S),w),A&&(M=Math.max(M,y-T+v+1));for(let e=0;e<M;e+=1){const t=e-Math.floor(e/T)*T;E?c.forEach((e,n)=>{e.column===t&&C.push(n)}):C.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length<y+2*S&&(C.includes(s)&&C.splice(C.indexOf(s),1),x.includes(s)&&x.splice(x.indexOf(s),1)),L&&x.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),O&&C.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():E&&(x.length>0&&L||C.length>0&&O)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),t)if(x.length>0&&L){if(void 0===e){const e=l.slidesGrid[k],t=l.slidesGrid[k+D]-e;a?l.setTranslate(l.translate-t):(l.slideTo(k+Math.ceil(D),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(i){const e=E?x.length/p.grid.rows:x.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(C.length>0&&O)if(void 0===e){const e=l.slidesGrid[k],t=l.slidesGrid[k-M]-e;a?l.setTranslate(l.translate-t):(l.slideTo(k-M,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=E?C.length/p.grid.rows:C.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!o){const r={slideRealIndex:e,direction:n,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...r,slideTo:e.params.slidesPerView===p.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...r,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&t})}l.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=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=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,n){const i=u(),{params:s}=e,r=s.edgeSwipeDetection,o=s.edgeSwipeThreshold;return!r||!(n<=o||n>=i.innerWidth-o)||"prevent"===r&&(t.preventDefault(),!0)}function Y(e){const t=this;if(t.destroyed)return;const n=c();let i=e;i.originalEvent&&(i=i.originalEvent);const s=t.touchEventsData;if("pointerdown"===i.type){if(null!==s.pointerId&&s.pointerId!==i.pointerId)return;s.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(s.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void G(t,i,i.targetTouches[0].pageX);const{params:r,touches:o,enabled:a}=t;if(!a)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=i.target;if("wrapper"===r.touchEventsTarget&&!function(e,t){const n=u();let i=t.contains(e);return!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=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():[])}}(e,t))),i}(l,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(s.isTouched&&s.isMoved)return;const d=!!r.noSwipingClass&&""!==r.noSwipingClass,h=i.composedPath?i.composedPath():i.path;d&&i.target&&i.target.shadowRoot&&h&&(l=h[0]);const p=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!(!i.target||!i.target.shadowRoot);if(r.noSwiping&&(m?function(e,t=this){return function t(n){if(!n||n===c()||n===u())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(p,l):l.closest(p)))return void(t.allowClick=!0);if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=i.pageX,o.currentY=i.pageY;const g=o.currentX,v=o.currentY;if(!G(t,i,g))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=v,s.touchStartTime=f(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let b=!0;l.matches(s.focusableElements)&&(b=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(s.focusableElements))&&n.activeElement.blur();const y=b&&t.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!y||l.isContentEditable||i.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function X(e){const t=c(),n=this;if(n.destroyed)return;const i=n.touchEventsData,{params:s,touches:r,rtlTranslate:o,enabled:a}=n;if(!a)return;if(!s.simulateTouch&&"mouse"===e.pointerType)return;let l,d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type){if(null!==i.touchId)return;if(d.pointerId!==i.pointerId)return}if("touchmove"===d.type){if(l=[...d.changedTouches].find(e=>e.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=d;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",d));const u=l.pageX,h=l.pageY;if(d.preventedByNestedSwiper)return r.startX=u,void(r.startY=h);if(!n.allowTouchMove)return d.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(r,{startX:u,startY:h,currentX:u,currentY:h}),i.touchStartTime=f()));if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(h<r.startY&&n.translate<=n.maxTranslate()||h>r.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(o&&(u>r.startX&&-n.translate<=n.maxTranslate()||u<r.startX&&-n.translate>=n.minTranslate()))return;if(!o&&(u<r.startX&&n.translate<=n.maxTranslate()||u>r.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==d.target&&"mouse"!==d.pointerType&&t.activeElement.blur(),t.activeElement&&d.target===t.activeElement&&d.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",d),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=u,r.currentY=h;const p=r.currentX-r.startX,m=r.currentY-r.startY;if(n.params.threshold&&Math.sqrt(p**2+m**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&r.currentY===r.startY||n.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:p*p+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",d),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===d.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation();let g=n.isHorizontal()?p:m,v=n.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;s.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),r.diff=g,g*=s.touchRatio,o&&(g=-g,v=-v);const b=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const y=n.params.loop&&!s.cssMode,w="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(y&&w&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!s.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",d)}if((new Date).getTime(),!1!==s._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&b!==n.touchesDirection&&y&&w&&Math.abs(g)>=1)return Object.assign(r,{startX:u,startY:h,currentX:u,currentY:h,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",d),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let _=!0,S=s.resistanceRatio;if(s.touchReleaseOnEdges&&(S=0),g>0?(y&&w&&i.allowThresholdMove&&i.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(_=!1,s.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+g)**S))):g<0&&(y&&w&&i.allowThresholdMove&&i.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===s.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(_=!1,s.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-g)**S))),_&&(d.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(g)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=n.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function K(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let i,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(i=[...s.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(s.pointerId!==n.pointerId)return;i=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&(!["pointercancel","contextmenu"].includes(s.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:r,touches:o,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!r.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=f(),u=d-n.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target,e),t.emit("tap click",s),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=f(),p(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===o.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let h;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,h=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const m=h>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==l[e+t]?(m||h>=l[e]&&h<l[e+t])&&(g=e,v=l[e+t]-l[e]):(m||h>=l[e])&&(g=e,v=l[l.length-1]-l[l.length-2])}let b=null,y=null;r.rewind&&(t.isBeginning?y=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const w=(h-l[g])/v,_=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?b:g+_):t.slideTo(g)),"prev"===t.swipeDirection&&(w>1-r.longSwipesRatio?t.slideTo(g+_):null!==y&&w<0&&Math.abs(w)>r.longSwipesRatio?t.slideTo(y):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==b?b:g+_),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:g)):s.target===t.navigation.nextEl?t.slideTo(g+_):t.slideTo(g)}}function J(){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:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.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 Q(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;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 ee(e){const t=this;t.destroyed||(B(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function te(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ne=(e,t)=>{const n=c(),{params:i,el:s,wrapperEl:r,device:o}=e,a=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",d=t;s&&"string"!=typeof s&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[l]("click",e.onClick,!0),i.cssMode&&r[l]("scroll",e.onScroll),i.updateOnWindowResize?e[d](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",J,!0):e[d]("observerUpdate",J,!0),s[l]("load",e.onLoad,{capture:!0}))},ie=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var se={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=c(),a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:o.querySelector(i.breakpointsBase),d=e.getBreakpoint(r,a,l);if(!d||e.currentBreakpoint===d)return;const u=(d in r?r[d]:void 0)||e.originalParams,h=ie(e,i),p=ie(e,u),f=e.params.grabCursor,m=u.grabCursor,g=i.enabled;h&&!p?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!h&&p&&(s.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!m?e.unsetGrabCursor():!f&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=i[t]&&i[t].enabled,s=u[t]&&u[t].enabled;n&&!s&&e[t].disable(),!n&&s&&e[t].enable()});const b=u.direction&&u.direction!==i.direction,y=i.loop&&(u.slidesPerView!==i.slidesPerView||b),w=i.loop;b&&n&&e.changeDirection(),v(e.params,u);const _=e.params.enabled,S=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!_?e.disable():!g&&_&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",u),n&&(y?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!w&&S?(e.loopCreate(t),e.updateSlides()):w&&!S&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const s=u(),r="window"===t?s.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:r,value:a}=o[e];"window"===t?s.matchMedia(`(min-width: ${a}px)`).matches&&(i=r):a<=n.clientWidth&&(i=r)}return i||"max"}},re={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())}},oe={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};function ae(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}),v(t,n)):v(t,n)):v(t,n)}}const le={eventsEmitter:R,update:V,translate:j,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(),q({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),q({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:W,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=Y.bind(e),e.onTouchMove=X.bind(e),e.onTouchEnd=K.bind(e),e.onDocumentTouchStart=te.bind(e),t.cssMode&&(e.onScroll=Z.bind(e)),e.onClick=Q.bind(e),e.onLoad=ee.bind(e),ne(e,"on")},detachEvents:function(){ne(this,"off")}},breakpoints:se,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:re},ce={};class de{constructor(...e){let t,n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=v({},n),t&&!n.el&&(n.el=t);const i=c();if(n.el&&"string"==typeof n.el&&i.querySelectorAll(n.el).length>1){const e=[];return i.querySelectorAll(n.el).forEach(t=>{const i=v({},n,{el:t});e.push(new de(i))}),e}const s=this;s.__swiper__=!0,s.support=P(),s.device=I({userAgent:n.userAgent}),s.browser=N(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&s.modules.indexOf(e)<0&&s.modules.push(e)});const r={};s.modules.forEach(e=>{e({params:n,swiper:s,extendParams:ae(n,r),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const o=v({},oe,r);return s.params=v({},o,ce,n),s.originalParams=v({},s.params),s.passedParams=v({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach(e=>{s.on(e,s.params.on[e])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.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:s.params.allowSlideNext,allowSlidePrev:s.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:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}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]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=C(w(t,`.${n.slideClass}, swiper-slide`)[0]);return C(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*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=w(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),s=(n.maxTranslate()-i)*e+i;n.translateTo(s,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",t)}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,t=i[a]?Math.ceil(i[a].swiperSlideSize):0;for(let n=a+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>o&&(e=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!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&&B(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&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:e.slides;s=e.slideTo(t.length-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;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):w(n,i())[0];return!s&&t.params.createElements&&(s=S("div",t.params.wrapperClass),n.append(s),w(n,`.${t.params.slideClass}`).forEach(e=>{s.append(e)})),Object.assign(t,{el:n,wrapperEl:s,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===x(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===x(n,"direction")),wrongRTL:"-webkit-box"===x(s,"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+t.virtual.slidesBefore,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?B(t,e):e.addEventListener("load",e=>{B(t,e.target)})}),$(t),t.initialized=!0,$(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),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){v(ce,e)}static get extendedDefaults(){return ce}static get defaults(){return oe}static installModule(e){de.prototype.__modules__||(de.prototype.__modules__=[]);const t=de.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>de.installModule(e)),de):(de.installModule(e),de)}}function ue({swiper:e,extendParams:t,on:n,emit:i}){const s=c(),r=u();function o(t){if(!e.enabled)return;const{rtlTranslate:n}=e;let o=t;o.originalEvent&&(o=o.originalEvent);const a=o.keyCode||o.charCode,l=e.params.keyboard.pageUpDown,c=l&&33===a,d=l&&34===a,u=37===a,h=39===a,p=38===a,f=40===a;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(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey)return;if(s.activeElement&&(s.activeElement.isContentEditable||s.activeElement.nodeName&&("input"===s.activeElement.nodeName.toLowerCase()||"textarea"===s.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(c||d||u||h||p||f)){let t=!1;if(T(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===T(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,s=i.clientWidth,o=i.clientHeight,a=r.innerWidth,l=r.innerHeight,c=E(i);n&&(c.left-=i.scrollLeft);const d=[[c.left,c.top],[c.left+s,c.top],[c.left,c.top+o],[c.left+s,c.top+o]];for(let e=0;e<d.length;e+=1){const n=d[e];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const m=e.params.keyboard.speed;e.isHorizontal()?((c||d||u||h)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),((d||h)&&!n||(c||u)&&n)&&e.slideNext(m),((c||u)&&!n||(d||h)&&n)&&e.slidePrev(m)):((c||d||p||f)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),(d||f)&&e.slideNext(m),(c||p)&&e.slidePrev(m)),i("keyPress",a)}function a(){e.keyboard.enabled||(s.addEventListener("keydown",o),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(s.removeEventListener("keydown",o),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),n("init",()=>{e.params.keyboard.enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:a,disable:l})}function he({swiper:e,extendParams:t,on:n,emit:i}){const s=u();let r;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,a=f();const l=[];function c(){e.enabled&&(e.mouseEntered=!0)}function d(){e.enabled&&(e.mouseEntered=!1)}function h(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&f()-a<e.params.mousewheel.thresholdTime||!(t.delta>=6&&f()-a<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)),a=(new s.Date).getTime(),1))}function m(t){let n=t,s=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const a=e.params.mousewheel;e.params.cssMode&&n.preventDefault();let c=e.el;"container"!==e.params.mousewheel.eventsTarget&&(c=document.querySelector(e.params.mousewheel.eventsTarget));const d=c&&c.contains(n.target);if(!e.mouseEntered&&!d&&!a.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let u=0;const m=e.rtlTranslate?-1:1,g=function(e){let t=0,n=0,i=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,s=10*n,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(i=e.deltaX),e.shiftKey&&!i&&(i=s,s=0),(i||s)&&e.deltaMode&&(1===e.deltaMode?(i*=40,s*=40):(i*=800,s*=800)),i&&!t&&(t=i<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:s}}(n);if(a.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;u=-g.pixelX*m}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;u=-g.pixelY}else u=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY;if(0===u)return!0;a.invert&&(u=-u);let v=e.getTranslate()+u*a.sensitivity;if(v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),s=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),s&&e.params.nested&&n.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:f(),delta:Math.abs(u),direction:Math.sign(u)},s=o&&t.time<o.time+500&&t.delta<=o.delta&&t.direction===o.direction;if(!s){o=void 0;let c=e.getTranslate()+u*a.sensitivity;const d=e.isBeginning,h=e.isEnd;if(c>=e.minTranslate()&&(c=e.minTranslate()),c<=e.maxTranslate()&&(c=e.maxTranslate()),e.setTransition(0),e.setTranslate(c),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!d&&e.isBeginning||!h&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=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&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=u>0?.8:.2;o=t,l.splice(0),r=p(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}r||(r=p(()=>{!e.destroyed&&e.params&&(o=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}if(s||i("scroll",n),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),a.releaseOnEdges&&(c===e.minTranslate()||c===e.maxTranslate()))return!0}}else{const n={time:f(),delta:Math.abs(u),direction:Math.sign(u),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=e.params.mousewheel;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.preventDefault?n.preventDefault():n.returnValue=!1,!1}function g(t){let n=e.el;"container"!==e.params.mousewheel.eventsTarget&&(n=document.querySelector(e.params.mousewheel.eventsTarget)),n[t]("mouseenter",c),n[t]("mouseleave",d),n[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(event,m),!0):!!e.mousewheel.enabled&&(g("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:v,disable:b})}function pe(e,t,n,i){return e.params.createElements&&Object.keys(i).forEach(s=>{if(!n[s]&&!0===n.auto){let r=w(e.el,`.${i[s]}`)[0];r||(r=S("div",i[s]),r.className=i[s],e.el.append(r)),n[s]=r,t[s]=r}}),n}Object.keys(le).forEach(e=>{Object.keys(le[e]).forEach(t=>{de.prototype[t]=le[e][t]})}),de.use([function({swiper:e,on:t,emit:n}){const i=u();let s=null,r=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},a=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==i.ResizeObserver?e&&!e.destroyed&&e.initialized&&(s=new ResizeObserver(t=>{r=i.requestAnimationFrame(()=>{const{width:n,height:i}=e;let s=n,r=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{i&&i!==e.el||(s=n?n.width:(t[0]||t).inlineSize,r=n?n.height:(t[0]||t).blockSize)}),s===n&&r===i||o()})}),s.observe(e.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",a))}),t("destroy",()=>{r&&i.cancelAnimationFrame(r),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",a)})},function({swiper:e,extendParams:t,on:n,emit:i}){const s=[],r=u(),o=(t,n={})=>{const o=new(r.MutationObserver||r.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void i("observerUpdate",t[0]);const n=function(){i("observerUpdate",t[0])};r.requestAnimationFrame?r.requestAnimationFrame(n):r.setTimeout(n,0)});o.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}),s.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=T(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{s.forEach(e=>{e.disconnect()}),s.splice(0,s.length)})}]);const fe='<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>';function me({swiper:e,extendParams:t,on:n,emit:i}){function s(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 r(t,n){const i=e.params.navigation;(t=k(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 o(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return r(n,!1),void r(t,!1);r(n,e.isBeginning&&!e.params.rewind),r(t,e.isEnd&&!e.params.rewind)}function a(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=pe(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=s(t.nextEl),i=s(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i}),n=k(n),i=k(i);const r=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");O(e,fe),n.appendChild(e.querySelector("svg")),e.remove()}n.addEventListener("click","next"===i?l:a)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>r(e,"next")),i.forEach(e=>r(e,"prev"))}function d(){let{nextEl:t,prevEl:n}=e.navigation;t=k(t),n=k(n);const i=(t,n)=>{t.removeEventListener("click","next"===n?l:a),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>i(e,"next")),n.forEach(e=>i(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:fe},n("init",()=>{!1===e.params.navigation.enabled?u():(c(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;t=k(t),n=k(n),e.enabled?o():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:s,prevEl:r}=e.navigation;s=k(s),r=k(r);const o=n.target;let a=r.includes(o)||s.includes(o);if(e.isElement&&!a){const e=n.path||n.composedPath&&n.composedPath();e&&(a=e.find(e=>s.includes(e)||r.includes(e)))}if(e.params.navigation.hideOnClick&&!a){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;s.length?t=s[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(t=r[0].classList.contains(e.params.navigation.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...s,...r].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),o()},disable:u,update:o,init:c,destroy:d})}function ge(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function ve({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.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function l(t,n){const{bulletActiveClass:i}=e.params.pagination;t&&(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${i}-${n}`),(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&t.classList.add(`${i}-${n}-${n}`))}function c(t){const n=t.target.closest(ge(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();const i=C(n)*e.params.slidesPerGroup;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 d(){const t=e.rtl,n=e.params.pagination;if(a())return;let s,c,d=e.pagination.el;d=k(d);const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,h=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,s=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(s=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,s=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a,u,h;if(n.dynamicBullets&&(r=A(i[0],e.isHorizontal()?"width":"height"),d.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=r*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==c&&(o+=s-(c||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),a=Math.max(s-o,0),u=a+(Math.min(i.length,n.dynamicMainBullets)-1),h=(u+a)/2),i.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)i.forEach(t=>{const i=C(t);i===s?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&(i>=a&&i<=u&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===a&&l(t,"prev"),i===u&&l(t,"next"))});else{const t=i[s];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===s?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[a],t=i[u];for(let e=a;e<=u;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));l(e,"prev"),l(t,"next")}}if(n.dynamicBullets){const s=Math.min(i.length,n.dynamicMainBullets+4),o=(r*s-r)/2-h*r,a=t?"right":"left";i.forEach(t=>{t.style[e.isHorizontal()?a:"top"]=`${o}px`})}}d.forEach((t,r)=>{if("fraction"===n.type&&(t.querySelectorAll(ge(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(s+1)}),t.querySelectorAll(ge(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(h)})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const r=(s+1)/h;let o=1,a=1;"horizontal"===i?o=r:a=r,t.querySelectorAll(ge(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(O(t,n.renderCustom(e,s+1,h)),0===r&&i("paginationRender",t)):(0===r&&i("paginationRender",t),i("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function u(){const t=e.params.pagination;if(a())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let s=e.pagination.el;s=k(s);let r="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&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&&O(n,r||""),"bullets"===t.type&&e.pagination.bullets.push(...n.querySelectorAll(ge(t.bulletClass)))}),"custom"!==t.type&&i("paginationRender",s[0])}function h(){e.params.pagination=pe(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n;"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&&0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>T(t,".swiper")[0]===e.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=k(n),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",c),e.enabled||n.classList.add(t.lockClass)}))}function p(){const t=e.params.pagination;if(a())return;let n=e.pagination.el;n&&(n=k(n),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",c))})),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=e.params.pagination;let{el:n}=e.pagination;n=k(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.pagination.enabled?f():(h(),u(),d())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&d()}),n("snapIndexChange",()=>{d()}),n("snapGridLengthChange",()=>{u(),d()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{el:t}=e.pagination;t&&(t=k(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{d()}),n("click",(t,n)=>{const s=n.target,r=k(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&r&&r.length>0&&!s.classList.contains(e.params.pagination.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(e.params.pagination.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=k(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),p()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=k(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),h(),u(),d()},disable:f,render:u,update:d,init:h,destroy:p})}function be({swiper:e,extendParams:t,on:n,emit:i}){const s=c();let r,o,a,l,d=!1,u=null,f=null;function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:n}=e,{dragEl:i,el:s}=t,r=e.params.scrollbar,l=e.params.loop?e.progressLoop:e.progress;let c=o,d=(a-o)*l;n?(d=-d,d>0?(c=o-d,d=0):-d+o>a&&(c=a+d)):d<0?(c=o+d,d=0):d+o>a&&(c=a-d),e.isHorizontal()?(i.style.transform=`translate3d(${d}px, 0, 0)`,i.style.width=`${c}px`):(i.style.transform=`translate3d(0px, ${d}px, 0)`,i.style.height=`${c}px`),r.hide&&(clearTimeout(u),s.style.opacity=1,u=setTimeout(()=>{s.style.opacity=0,s.style.transitionDuration="400ms"},1e3))}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{dragEl:n,el:i}=t;n.style.width="",n.style.height="",a=e.isHorizontal()?i.offsetWidth:i.offsetHeight,l=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),o="auto"===e.params.scrollbar.dragSize?a*l:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n.style.width=`${o}px`:n.style.height=`${o}px`,i.style.display=l>=1?"none":"",e.params.scrollbar.hide&&(i.style.opacity=0),e.params.watchOverflow&&e.enabled&&t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function v(t){return e.isHorizontal()?t.clientX:t.clientY}function b(t){const{scrollbar:n,rtlTranslate:i}=e,{el:s}=n;let l;l=(v(t)-E(s)[e.isHorizontal()?"left":"top"]-(null!==r?r:o/2))/(a-o),l=Math.max(Math.min(l,1),0),i&&(l=1-l);const c=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*l;e.updateProgress(c),e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}function y(t){const n=e.params.scrollbar,{scrollbar:s,wrapperEl:o}=e,{el:a,dragEl:l}=s;d=!0,r=t.target===l?v(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.style.transitionDuration="100ms",l.style.transitionDuration="100ms",b(t),clearTimeout(f),a.style.transitionDuration="0ms",n.hide&&(a.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",t)}function w(t){const{scrollbar:n,wrapperEl:s}=e,{el:r,dragEl:o}=n;d&&(t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1,b(t),s.style.transitionDuration="0ms",r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function _(t){const n=e.params.scrollbar,{scrollbar:s,wrapperEl:r}=e,{el:o}=s;d&&(d=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",r.style.transitionDuration=""),n.hide&&(clearTimeout(f),f=p(()=>{o.style.opacity=0,o.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function x(t){const{scrollbar:n,params:i}=e,r=n.el;if(!r)return;const o=r,a=!!i.passiveListeners&&{passive:!1,capture:!1},l=!!i.passiveListeners&&{passive:!0,capture:!1};if(!o)return;const c="on"===t?"addEventListener":"removeEventListener";o[c]("pointerdown",y,a),s[c]("pointermove",w,a),s[c]("pointerup",_,l)}function C(){const{scrollbar:t,el:n}=e;e.params.scrollbar=pe(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=e.params.scrollbar;if(!i.el)return;let r,o;if("string"==typeof i.el&&e.isElement&&(r=e.el.querySelector(i.el)),r||"string"!=typeof i.el)r||(r=i.el);else if(r=s.querySelectorAll(i.el),!r.length)return;e.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===n.querySelectorAll(i.el).length&&(r=n.querySelector(i.el)),r.length>0&&(r=r[0]),r.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass),r&&(o=r.querySelector(ge(e.params.scrollbar.dragClass)),o||(o=S("div",e.params.scrollbar.dragClass),r.append(o))),Object.assign(t,{el:r,dragEl:o}),i.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&x("on"),r&&r.classList[e.enabled?"remove":"add"](...h(e.params.scrollbar.lockClass))}function T(){const t=e.params.scrollbar,n=e.scrollbar.el;n&&n.classList.remove(...h(e.isHorizontal()?t.horizontalClass:t.verticalClass)),e.params.scrollbar.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=e.params.scrollbar;let{el:n}=e.scrollbar;n=k(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.scrollbar.enabled?A():(C(),g(),m())}),n("update resize observerUpdate lock unlock changeDirection",()=>{g()}),n("setTranslate",()=>{m()}),n("setTransition",(t,n)=>{!function(t){e.params.scrollbar.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"](...h(e.params.scrollbar.lockClass))}),n("destroy",()=>{T()});const A=()=>{e.el.classList.add(...h(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...h(e.params.scrollbar.scrollbarDisabledClass)),T()};Object.assign(e.scrollbar,{enable:()=>{e.el.classList.remove(...h(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...h(e.params.scrollbar.scrollbarDisabledClass)),C(),g(),m()},disable:A,updateSize:g,setTranslate:m,init:C,destroy:T})}function ye({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,r=null,o=(new Date).getTime();function a(e){const t=r;0!==t.length&&O(t,e)}function l(e){(e=k(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){(e=k(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=k(e)).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){(e=k(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){(e=k(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){(e=k(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function m(e){(e=k(e)).forEach(e=>{e.removeAttribute("aria-disabled")})}function g(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y,i=t.target;if(!e.pagination||!e.pagination.el||i!==e.pagination.el&&!e.pagination.el.contains(t.target)||t.target.matches(ge(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=k(e.navigation.prevEl);k(e.navigation.nextEl).includes(i)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(n.lastSlideMessage):a(n.nextSlideMessage)),t.includes(i)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(n.firstSlideMessage):a(n.prevSlideMessage))}e.pagination&&i.matches(ge(e.params.pagination.bulletClass))&&i.click()}}function v(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function b(){return v()&&e.params.pagination.clickable}const y=(e,t,n)=>{l(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n)},w=t=>{s&&s!==t.target&&!s.contains(t.target)&&(i=!0),e.a11y.clicked=!0},_=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},E=e=>{o=(new Date).getTime()},x=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;s=n;const r=e.virtual&&e.params.virtual.enabled,a=(r?parseInt(n.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(n))===e.activeIndex,l=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);a||l||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):r?e.slideTo(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(n)),0),i=!1)}))},T=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&h(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length;t.slideLabelMessage&&e.slides.forEach((i,s)=>{const r=e.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):s;p(i,t.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,n))})};n("beforeInit",()=>{r=S("span",e.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&(()=>{const t=e.params.a11y;e.el.append(r);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,s=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,a,l;o=s,k(i).forEach(e=>{e.setAttribute("id",o)}),t.wrapperLiveRegion&&(a=i,l=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite",(a=k(a)).forEach(e=>{e.setAttribute("aria-live",l)})),T();let{nextEl:d,prevEl:f}=e.navigation?e.navigation:{};d=k(d),f=k(f),d&&d.forEach(e=>y(e,0,t.nextSlideMessage)),f&&f.forEach(e=>y(e,0,t.prevSlideMessage)),b()&&k(e.pagination.el).forEach(e=>{e.addEventListener("keydown",g)}),c().addEventListener("visibilitychange",E),e.el.addEventListener("focus",x,!0),e.el.addEventListener("pointerdown",w,!0),e.el.addEventListener("pointerup",_,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&T()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.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),l(n))),t&&(e.isEnd?(f(t),d(t)):(m(t),l(t)))}()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;v()&&e.pagination.bullets.forEach(n=>{e.params.pagination.clickable&&(l(n),e.params.pagination.renderBullet||(u(n,"button"),p(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,C(n)+1)))),n.matches(ge(e.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),n("destroy",()=>{e.params.a11y.enabled&&function(){r&&r.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=k(t),n=k(n),t&&t.forEach(e=>e.removeEventListener("keydown",g)),n&&n.forEach(e=>e.removeEventListener("keydown",g)),b()&&k(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)}),c().removeEventListener("visibilitychange",E),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",x,!0),e.el.removeEventListener("pointerdown",w,!0),e.el.removeEventListener("pointerup",_,!0))}()})}function we({swiper:e,extendParams:t,on:n,emit:i,params:s}){let r,o;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,d,u,h,p,f,m=s&&s.autoplay?s.autoplay.delay:3e3,g=s&&s.autoplay?s.autoplay.delay:3e3,v=(new Date).getTime();function b(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),f||t.detail&&t.detail.bySwiperTouchMove||C())}const y=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(g=a,l=!1);const t=e.autoplay.paused?a:v+g-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/m),o=requestAnimationFrame(()=>{y()})},w=()=>{let t=e.params.autoplay.delay;const n=(()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],t)return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(n)&&n>0&&(t=n),t},_=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),y();let n=t;void 0===n&&(n=w(),m=n,g=n),a=n;const s=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),i("autoplay")):e.params.autoplay.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")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,s,!0,!0),i("autoplay")),e.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{_()})))};return n>0?(clearTimeout(r),r=setTimeout(()=>{l()},n)):requestAnimationFrame(()=>{l()}),n},S=()=>{v=(new Date).getTime(),e.autoplay.running=!0,_(),i("autoplayStart")},E=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(o),i("autoplayStop")},x=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),t||(p=!0);const s=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):C()};if(e.autoplay.paused=!0,n)return void s();const o=a||e.params.autoplay.delay;a=o-((new Date).getTime()-v),e.isEnd&&a<0&&!e.params.loop||(a<0&&(a=0),s())},C=()=>{e.isEnd&&a<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=(new Date).getTime(),p?(p=!1,_(a)):_(),e.autoplay.paused=!1,i("autoplayResume"))},T=()=>{if(e.destroyed||!e.autoplay.running)return;const t=c();"hidden"===t.visibilityState&&(p=!0,x(!0)),"visible"===t.visibilityState&&C()},A=t=>{"mouse"===t.pointerType&&(p=!0,f=!0,e.animating||e.autoplay.paused||x(!0))},k=t=>{"mouse"===t.pointerType&&(f=!1,e.autoplay.paused&&C())};n("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",A),e.el.addEventListener("pointerleave",k)),c().addEventListener("visibilitychange",T),S())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",A),e.el.removeEventListener("pointerleave",k)),c().removeEventListener("visibilitychange",T),e.autoplay.running&&E()}),n("_freeModeStaticRelease",()=>{(u||p)&&C()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?E():x(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?x(!0,!0):E())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?E():(d=!0,u=!1,p=!1,h=setTimeout(()=>{p=!0,u=!0,x(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&d){if(clearTimeout(h),clearTimeout(r),e.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&e.params.cssMode&&C(),u=!1,d=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(a=w(),m=w())}),Object.assign(e.autoplay,{start:S,stop:E,pause:x,resume:C})}function _e({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 Se="top",Ee="bottom",xe="right",Ce="left",Te="auto",Ae=[Se,Ee,xe,Ce],ke="start",Oe="end",Le="viewport",De="popper",Me=Ae.reduce(function(e,t){return e.concat([t+"-"+ke,t+"-"+Oe])},[]),Pe=[].concat(Ae,[Te]).reduce(function(e,t){return e.concat([t,t+"-"+ke,t+"-"+Oe])},[]),Ie=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Re(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ze(e){return e instanceof Re(e).Element||e instanceof Element}function Fe(e){return e instanceof Re(e).HTMLElement||e instanceof HTMLElement}function Be(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Re(e).ShadowRoot||e instanceof ShadowRoot)}var He={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];Fe(s)&&Ne(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},{});Fe(i)&&Ne(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function $e(e){return e.split("-")[0]}var Ve=Math.max,je=Math.min,qe=Math.round;function We(){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 Ue(){return!/^((?!chrome|android).)*safari/i.test(We())}function Ge(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&Fe(e)&&(s=e.offsetWidth>0&&qe(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&qe(i.height)/e.offsetHeight||1);var o=(ze(e)?Re(e):window).visualViewport,a=!Ue()&&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 Ye(e){var t=Ge(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 Xe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Be(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ke(e){return Re(e).getComputedStyle(e)}function Je(e){return["table","td","th"].indexOf(Ne(e))>=0}function Qe(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ze(e){return"html"===Ne(e)?e:e.assignedSlot||e.parentNode||(Be(e)?e.host:null)||Qe(e)}function et(e){return Fe(e)&&"fixed"!==Ke(e).position?e.offsetParent:null}function tt(e){for(var t=Re(e),n=et(e);n&&Je(n)&&"static"===Ke(n).position;)n=et(n);return n&&("html"===Ne(n)||"body"===Ne(n)&&"static"===Ke(n).position)?t:n||function(e){var t=/firefox/i.test(We());if(/Trident/i.test(We())&&Fe(e)&&"fixed"===Ke(e).position)return null;var n=Ze(e);for(Be(n)&&(n=n.host);Fe(n)&&["html","body"].indexOf(Ne(n))<0;){var i=Ke(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 nt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function it(e,t,n){return Ve(e,je(t,n))}function st(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function rt(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ot={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=$e(n.placement),l=nt(a),c=[Ce,xe].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return st("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:rt(e,Ae))}(s.padding,n),u=Ye(r),h="y"===l?Se:Ce,p="y"===l?Ee:xe,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],g=tt(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=it(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)))&&Xe(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function at(e){return e.split("-")[1]}var lt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ct(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=Ce,w=Se,_=window;if(c){var S=tt(n),E="clientHeight",x="clientWidth";S===Re(n)&&"static"!==Ke(S=Qe(n)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),(s===Se||(s===Ce||s===xe)&&r===Oe)&&(w=Ee,m-=(u&&S===_&&_.visualViewport?_.visualViewport.height:S[E])-i.height,m*=l?1:-1),s!==Ce&&(s!==Se&&s!==Ee||r!==Oe)||(y=xe,p-=(u&&S===_&&_.visualViewport?_.visualViewport.width:S[x])-i.width,p*=l?1:-1)}var C,T=Object.assign({position:a},c&<),A=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:qe(n*s)/s||0,y:qe(i*s)/s||0}}({x:p,y:m},Re(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 dt={passive:!0},ut={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=Re(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,dt)}),a&&l.addEventListener("resize",n.update,dt),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,dt)}),a&&l.removeEventListener("resize",n.update,dt)}},data:{}},ht={left:"right",right:"left",bottom:"top",top:"bottom"};function pt(e){return e.replace(/left|right|bottom|top/g,function(e){return ht[e]})}var ft={start:"end",end:"start"};function mt(e){return e.replace(/start|end/g,function(e){return ft[e]})}function gt(e){var t=Re(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vt(e){return Ge(Qe(e)).left+gt(e).scrollLeft}function bt(e){var t=Ke(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function yt(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Fe(e)&&bt(e)?e:yt(Ze(e))}function wt(e,t){var n;void 0===t&&(t=[]);var i=yt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=Re(i),o=s?[r].concat(r.visualViewport||[],bt(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(wt(Ze(o)))}function _t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function St(e,t,n){return t===Le?_t(function(e,t){var n=Re(e),i=Qe(e),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=Ue();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+vt(e),y:l}}(e,n)):ze(t)?function(e,t){var n=Ge(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):_t(function(e){var t,n=Qe(e),i=gt(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=Ve(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Ve(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+vt(e),l=-i.scrollTop;return"rtl"===Ke(s||n).direction&&(a+=Ve(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(Qe(e)))}function Et(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?$e(s):null,o=s?at(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Se:t={x:a,y:n.y-i.height};break;case Ee:t={x:a,y:n.y+n.height};break;case xe:t={x:n.x+n.width,y:l};break;case Ce:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?nt(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case ke:t[c]=t[c]-(n[d]/2-i[d]/2);break;case Oe:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function xt(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?Le:c,u=n.elementContext,h=void 0===u?De:u,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=st("number"!=typeof g?g:rt(g,Ae)),b=h===De?"reference":De,y=e.rects.popper,w=e.elements[f?b:h],_=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=wt(Ze(e)),n=["absolute","fixed"].indexOf(Ke(e).position)>=0&&Fe(e)?tt(e):e;return ze(n)?t.filter(function(e){return ze(e)&&Xe(e,n)&&"body"!==Ne(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(t,n){var s=St(e,n,i);return t.top=Ve(s.top,t.top),t.right=je(s.right,t.right),t.bottom=je(s.bottom,t.bottom),t.left=Ve(s.left,t.left),t},St(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}(ze(w)?w:w.contextElement||Qe(e.elements.popper),l,d,o),S=Ge(e.elements.reference),E=Et({reference:S,element:y,placement:s}),x=_t(Object.assign({},y,E)),C=h===De?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===De&&A){var k=A[s];Object.keys(T).forEach(function(e){var t=[xe,Ee].indexOf(e)>=0?1:-1,n=[Se,Ee].indexOf(e)>=0?"y":"x";T[e]+=k[n]*t})}return T}function Ct(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?Pe:l,d=at(i),u=d?a?Me:Me.filter(function(e){return at(e)===d}):Ae,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]=xt(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[$e(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Tt={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=$e(g),b=l||(v!==g&&f?function(e){if($e(e)===Te)return[];var t=pt(e);return[mt(e),t,mt(t)]}(g):[pt(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat($e(n)===Te?Ct(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=$e(T),k=at(T)===ke,O=[Se,Ee].indexOf(A)>=0,L=O?"width":"height",D=xt(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),M=O?k?xe:Ce:k?Ee:Se;w[L]>_[L]&&(M=pt(M));var P=pt(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 At(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 kt(e){return[Se,xe,Ee,Ce].some(function(t){return e[t]>=0})}var Ot={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=xt(t,{elementContext:"reference"}),a=xt(t,{altBoundary:!0}),l=At(o,i),c=At(a,s,r),d=kt(l),u=kt(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})}},Lt={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=Pe.reduce(function(e,n){return e[n]=function(e,t,n){var i=$e(e),s=[Ce,Se].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,[Ce,xe].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}},Dt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Et({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Mt={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=xt(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=$e(t.placement),b=at(t.placement),y=!b,w=nt(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?Se:Ce,D="y"===w?Ee:xe,M="y"===w?"height":"width",P=S[w],I=P+g[L],N=P-g[D],R=p?-x[M]/2:0,z=b===ke?E[M]:x[M],F=b===ke?-x[M]:-E[M],B=t.elements.arrow,H=p&&B?Ye(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=it(0,E[M],H[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:F+q+j+T.mainAxis,G=t.elements.arrow&&tt(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=it(p?je(I,P+W-X-Y):I,P,p?Ve(N,K):N);S[w]=J,k[w]=J-P}if(a){var Q,Z="x"===w?Se:Ce,ee="x"===w?Ee:xe,te=S[_],ne="y"===_?"height":"width",ie=te+g[Z],se=te-g[ee],re=-1!==[Se,Ce].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=it(e,t,n);return i>n?n:i}(ae,te,le):it(p?ae:ie,te,p?le:se);S[_]=ce,k[_]=ce-te}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function Pt(e,t,n){void 0===n&&(n=!1);var i,s,r=Fe(t),o=Fe(t)&&function(e){var t=e.getBoundingClientRect(),n=qe(t.width)/e.offsetWidth||1,i=qe(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Qe(t),l=Ge(e,o,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ne(t)||bt(a))&&(c=(i=t)!==Re(i)&&Fe(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:gt(i)),Fe(t)?((d=Ge(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=vt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function It(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 Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function Rt(){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 zt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?Nt:s;return function(e,t,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nt,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:ze(e)?wt(e):e.contextElement?wt(e.contextElement):[],popper:wt(t)};var o,c,h=function(e){var t=It(e);return Ie.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(Rt(t,n)){a.rects={reference:Pt(t,tt(n),"fixed"===a.options.strategy),popper:Ye(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(!Rt(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 Ft=zt({defaultModifiers:[ut,Dt,{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:$e(t.placement),variation:at(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,ct(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,ct(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:{}},He,Lt,Tt,Mt,ot,Ot]});function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht,$t={exports:{}},Vt=(Ht||(Ht=1,$t.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)})}}()),$t.exports),jt=Bt(Vt);function qt(e){return e.charAt(0).toLowerCase()+e.slice(1)}const Wt={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 Ut{element;config;instance;trigger;rootContainer;transitioner;isOpen=!1;ignoreNextBlur=!1;constructor(e,t){return this.element=e,this.config={...Wt,...t},this.config.popperOptions={...Wt.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...Wt.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=Ft(this.trigger,this.element,this.config.popperOptions),this.transitioner=_e({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 Gt="carousel",Yt=`${Gt}__viewport-wrapper`,Xt=`${Gt}__track`,Kt=`${Gt}__slide`,Jt=`${Gt}__pagination-item`,Qt="is-active",Zt=`${Gt}--bleed-right`,en=`.${Gt}__viewport`,tn=`.${Xt}`,nn=`.${Gt}__prev`,sn=`.${Gt}__next`,rn=`.${Gt}__pagination`,on=`.${Gt}__scrollbar`,an=`.${Qt}`,ln={navigation:{nextEl:sn,prevEl:nn},pagination:{el:rn,clickable:!0,bulletClass:Jt,bulletActiveClass:Qt,renderBullet:(e,t)=>`<button aria-label="Page ${e+1}" role="tab" class="${t}" type="button"></button>`},scrollbar:{el:on,draggable:!0,enabled:!0,horizontalClass:`${Gt}__scrollbar-horizontal`,dragClass:`${Gt}__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:Xt,slideClass:Kt,slideActiveClass:Qt,slideNextClass:`${Gt}__slide-next`,slidePrevClass:`${Gt}__slide-prev`};class cn{element;config;viewport;track;instance;carouselId;isScrollbarDragging=!1;externalControlsState=null;resizeObserver;resizeRafId;boundWindowResizeHandler;bleedResizeHandler;static OVERFLOW_EPSILON_PX=1;getViewportWrapper(){return this.element.querySelector(`.${Yt}`)}getSlidesPerView(){return Number(this.instance?.params?.slidesPerView)||1}setScrollbarVisible(e){const t=this.element.querySelector(on);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(Zt)?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>cn.OVERFLOW_EPSILON_PX:this.instance.slides.length>this.getSlidesPerView()}constructor(e,t){return this.element=e,this.config={...ln,...t,scrollbar:{...ln.scrollbar??{},...t?.scrollbar??{},el:this.element.querySelector(on)}},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(Zt);this.instance=new de(this.viewport,{...this.config,watchOverflow:!e&&this.config.watchOverflow,enabled:!1,modules:[me,ve,be,ye,ue,he],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:()=>{this.updateExternalControlsState()},scrollbarDragStart:()=>{this.isScrollbarDragging=!0},scrollbarDragEnd:()=>{this.isScrollbarDragging=!1,this.updateExternalControlsState(!0)}}}),this.updateCarouselEnabledState(),this.element.classList.contains(Zt)&&(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(en),this.track=this.viewport.querySelector(tn);const e=this.element.querySelector(rn);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={navigation:{...this.config.navigation??{},nextEl:this.element.querySelector(sn),prevEl:this.element.querySelector(nn)},pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:Jt,bulletActiveClass:Qt}};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>cn.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(Zt)!==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(Zt,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(an),t=this.track.querySelectorAll(`.${Kt}:not(${an})`);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=Ut.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=Ut.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 dn="carousel-hero",un=`${dn}__slide`,hn=`${dn}__pagination-item`,pn=`${dn}__pagination-svg`,fn=`${dn}__pagination-circle`,mn="is-active",gn="is-playing",vn="is-paused",bn=`.${dn}__viewport`,yn=`.${dn}__prev`,wn=`.${dn}__next`,_n=`.${dn}__play-pause`,Sn=`.${dn}__tabs`,En=`.${dn}__tab`,xn=`.${dn}__pagination`,Cn={pagination:{clickable:!0,bulletClass:hn,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:`${dn}__track`,slideClass:un,slideActiveClass:mn},Tn="carousel-promotions",An=`${Tn}__pagination-item`,kn=`${Tn}__pagination-svg`,On=`${Tn}__pagination-circle`,Ln=`${Tn}--slide-inverted`,Dn="is-autoplay",Mn="is-active",Pn=`.${Tn}__viewport`,In=`.${Tn}__pagination`,Nn={pagination:{el:In,clickable:!0,bulletClass:An,bulletActiveClass:Mn,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:`${Tn}__track`,slideClass:`${Tn}__slide`,slideActiveClass:Mn,autoplay:!1};class Rn{element;config;viewport;instance;interval=0;autoplayTimer;resizeRafId;boundWindowResizeHandler;boundPaginationClickHandler;constructor(e,t){return this.element=e,this.config={...Nn,...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(Dn),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new de(this.viewport,{...this.config,modules:[me,ve,ye,ue,we],on:{slideChange:this.handleSlideChange,init:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()},update:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}}});const t=this.element.querySelector(In);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(Dn),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}handleSlideChange(){this.element.classList.remove(Ln),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(Ln)}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(Pn);const e=this.element.querySelector(In);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:An,bulletActiveClass:Mn}};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(`${In} > *`)).forEach(e=>e.setAttribute("type","button"))}static createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",kn),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",On),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}renderSvgDotsForAnimation(){const e=Array.from(this.element.querySelectorAll(`${In} > *`)),t=Rn.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(In);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 zn={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]}}]}},Fn="toggleTrigger",Bn={activeClass:"is-active",settingsAttr:"data-toggle"};class Hn{constructor(e,t){return this.element=e,this.config={...Bn,...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=$n({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(Fn,{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(Fn,{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,...Hn.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 $n(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 Vn={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]",imageSelector:"[data-feature-accordion-image]"},jn={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."},qn=(e,t)=>{const n=e.split(/\s+/).filter(Boolean);return n.includes(t)?e:[...n,t].join(" ")};var Wn,Un,Gn,Yn,Xn,Kn,Jn,Qn,Zn,ei,ti={},ni=[],ii=/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 ri(e){var t=e.parentNode;t&&t.removeChild(e)}function oi(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?Wn.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 ai(e,o,i,s,null)}function ai(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?++Gn:s};return null==s&&null!=Un.vnode&&Un.vnode(r),r}function li(e){return e.children}function ci(e,t){this.props=e,this.context=t}function di(e,t){if(null==t)return e.__?di(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?di(e):null}function ui(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 ui(e)}}function hi(e){(!e.__d&&(e.__d=!0)&&Yn.push(e)&&!pi.__r++||Kn!==Un.debounceRendering)&&((Kn=Un.debounceRendering)||Xn)(pi)}function pi(){for(var e;pi.__r=Yn.length;)e=Yn.sort(function(e,t){return e.__v.__b-t.__v.__b}),Yn=[],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,Si(o,s,i,t.__n,void 0!==o.ownerSVGElement,null!=s.__h?[r]:null,n,null==r?di(s):r,s.__h),Ei(n,s),s.__e!=r&&ui(s)))})}function fi(e,t,n,i,s,r,o,a,l,c){var d,u,h,p,f,m,g,v=i&&i.__k||ni,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?ai(null,p,null,null,p):Array.isArray(p)?ai(li,{children:p},null,null,null):p.__b>0?ai(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}Si(e,p,h=h||ti,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=mi(p,l,e):l=vi(e,p,h,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=di(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=di(i,d+1)),Ci(v[d],v[d]));if(g)for(d=0;d<g.length;d++)xi(g[d],g[++d],g[++d])}function mi(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?mi(i,t,n):vi(n,i,i,s,i.__e,t));return t}function gi(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){gi(e,t)}):t.push(e)),t}function vi(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 bi(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||ii.test(t)?n:n+"px"}function yi(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||bi(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||bi(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?_i:wi,r):e.removeEventListener(t,r?_i:wi,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 wi(e){this.l[e.type+!1](Un.event?Un.event(e):e)}function _i(e){this.l[e.type+!0](Un.event?Un.event(e):e)}function Si(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=Un.__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 ci(g,b),d.constructor=w,d.render=Ti),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=Un.__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===li&&null==c.key?c.props.children:c,fi(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&&Wn.call(e.childNodes),c=(u=n.props||ti).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||yi(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]||yi(e,r,t[r],n[r],i)}(e,h,u,s,a),d)t.__k=[];else if(f=t.props.children,fi(e,Array.isArray(f)?f:[f],t,n,i,s&&"foreignObject"!==p,r,o,r?r[0]:n.__k&&di(n,0),a),null!=r)for(f=r.length;f--;)null!=r[f]&&ri(r[f]);a||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===p&&!f||"option"===p&&f!==u.value)&&yi(e,"value",f,u.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&yi(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,s,r,o,l);(c=Un.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=r)&&(t.__e=a,t.__h=!!l,r[r.indexOf(a)]=null),Un.__e(e,t,n)}}function Ei(e,t){Un.__c&&Un.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Un.__e(e,t.__v)}})}function xi(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Un.__e(e,n)}}function Ci(e,t,n){var i,s;if(Un.unmount&&Un.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||xi(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Un.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&Ci(i[s],t,"function"!=typeof e.type);n||null==e.__e||ri(e.__e),e.__e=e.__d=void 0}function Ti(e,t,n){return this.constructor(e,n)}function Ai(e,t,n){var i,s;Un.__&&Un.__(e,t),i=t.__k,s=[],Si(t,e=t.__k=oi(li,null,[e]),i||ti,ti,void 0!==t.ownerSVGElement,i?null:t.firstChild?Wn.call(t.childNodes):null,s,i?i.__e:t.firstChild,!1),Ei(s,e)}Wn=ni.slice,Un={__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}},Gn=0,ci.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),hi(this))},ci.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),hi(this))},ci.prototype.render=li,Yn=[],Xn="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pi.__r=0,Jn=0;var ki=0,Oi=[],Li=Un.__b,Di=Un.__r,Mi=Un.diffed,Pi=Un.__c,Ii=Un.unmount;function Ni(e,t){Un.__h&&Un.__h(Zn,e,ki||t),ki=0;var n=Zn.__H||(Zn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ri(e){return ki=1,function(e,t){var n=Ni(Qn++,2);return n.t=e,n.__c||(n.__=[Wi(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=Zn),n.__}(Wi,e)}function zi(e,t){var n=Ni(Qn++,3);!Un.__s&&qi(n.__H,t)&&(n.__=e,n.__H=t,Zn.__H.__h.push(n))}function Fi(e){return ki=5,function(e,t){var n=Ni(Qn++,7);return qi(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function Bi(e){var t=Zn.context[e.__c],n=Ni(Qn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Zn)),t.props.value):e.__}function Hi(){for(var e;e=Oi.shift();)if(e.__P)try{e.__H.__h.forEach(Vi),e.__H.__h.forEach(ji),e.__H.__h=[]}catch(t){e.__H.__h=[],Un.__e(t,e.__v)}}Un.__b=function(e){Zn=null,Li&&Li(e)},Un.__r=function(e){Di&&Di(e),Qn=0;var t=(Zn=e.__c).__H;t&&(t.__h.forEach(Vi),t.__h.forEach(ji),t.__h=[])},Un.diffed=function(e){Mi&&Mi(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Oi.push(t)&&ei===Un.requestAnimationFrame||((ei=Un.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),$i&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);$i&&(t=requestAnimationFrame(n))})(Hi)),Zn=null},Un.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Vi),e.__h=e.__h.filter(function(e){return!e.__||ji(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Un.__e(n,e.__v)}}),Pi&&Pi(e,t)},Un.unmount=function(e){Ii&&Ii(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Vi(e)}catch(e){t=e}}),t&&Un.__e(t,n.__v))};var $i="function"==typeof requestAnimationFrame;function Vi(e){var t=Zn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Zn=t}function ji(e){var t=Zn;e.__c=e.__(),Zn=t}function qi(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Wi(e,t){return"function"==typeof t?t(e):t}function Ui(e,t){for(var n in t)e[n]=t[n];return e}function Gi(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 Yi(e){this.props=e}(Yi.prototype=new ci).isPureReactComponent=!0,Yi.prototype.shouldComponentUpdate=function(e,t){return Gi(this.props,e)||Gi(this.state,t)};var Xi=Un.__b;Un.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xi&&Xi(e)};var Ki="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ji(e){function t(t,n){var i=Ui({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Ki,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Qi=Un.__e;Un.__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);Qi(e,t,n)};var Zi=Un.unmount;function es(){this.__u=0,this.t=null,this.__b=null}function ts(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ns(){this.u=null,this.o=null}Un.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Zi&&Zi(e)},(es.prototype=new ci).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var s=ts(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)},es.prototype.componentWillUnmount=function(){this.t=[]},es.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=Ui({},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&&oi(li,null,e.fallback);return s&&(s.__h=null),[oi(li,null,t.__e?null:e.children),s]};var is=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]}};(ns.prototype=new ci).__e=function(e){var t=this,n=ts(t.__v),i=t.o.get(e);return i[0]++,function(s){var r=function(){t.props.revealOrder?(i.push(s),is(t,e,i)):s()};n?n(r):r()}},ns.prototype.render=function(e){this.u=null,this.o=new Map;var t=gi(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},ns.prototype.componentDidUpdate=ns.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){is(e,n,t)})};var ss="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rs=/^(?: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]/,os="undefined"!=typeof document,as=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};ci.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ci.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ls=Un.event;function cs(){}function ds(){return this.cancelBubble}function us(){return this.defaultPrevented}Un.event=function(e){return ls&&(e=ls(e)),e.persist=cs,e.isPropagationStopped=ds,e.isDefaultPrevented=us,e.nativeEvent=e};var hs={configurable:!0,get:function(){return this.class}},ps=Un.vnode;Un.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];os&&"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)&&!as(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&&rs.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=gi(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=gi(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&&(hs.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",hs))}e.$$typeof=ss,ps&&ps(e)};var fs=Un.__r;Un.__r=function(e){fs&&fs(e),e.__c};var ms={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 gs(...e){return e.join(" ").trim()}var vs={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 bs(e){return e instanceof Date&&!isNaN(e.valueOf())}function ys(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 ws(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 _s(e,t){return!(!bs(e)||!bs(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function Ss(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 Es,xs,Cs=(xs={__c:Es="__cC"+Jn++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[Es]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(hi)},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.__=xs.Consumer.contextType=xs,Ts=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:s,setView:r,handleKeyboardNavigation:o,focusedRef:a,view:l,disabledDayFn:c,locale:d}=Bi(Cs),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}(ys(n,t),ws(i,t))}(l,e));return oi("table",{className:t.table},oi("thead",null,oi("tr",{className:t.tableHeaderRow},u.map(e=>oi("th",{scope:"col",className:t.tableHeaderCell},oi("span",{className:t.srOnly},e.name),oi("span",{"aria-hidden":"true"},e.shortname))))),oi("tbody",null,h.map(e=>oi("tr",{className:t.tableRow},e.map(e=>{const n=i&&_s(e,i),u=_s(e,l),h=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),p=(f=e,_s(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 oi("td",{role:"gridcell",className:t.tableCell},oi("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},oi("span",{className:t.srOnly},b),oi("span",{"aria-hidden":"true"},e.getDate())))})))))},As=Ji(({label:e,value:t,options:n,onChange:i,className:s,elemRef:r,...o},a)=>{const{classes:l}=Bi(Cs);return oi("label",null,oi("span",{className:"sr-only"},e),oi("select",{className:gs(l.select,s),onChange:e=>i(e),ref:a,...o},n?.map(e=>oi("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),ks=As;function Os(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var Ls=Ji((e,t)=>{const{l10n:n,min:i,max:s,view:r,setView:o,classes:a}=Bi(Cs),l=new Date(i).getFullYear(),c=new Date(s).getFullYear();return oi(ks,{label:n.year,options:Os(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})}),Ds=Ls,Ms=()=>{const{l10n:e,view:t,setView:n,classes:i}=Bi(Cs);return oi(ks,{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)}})},Ps=({min:e="1900-01-01",max:t="2100-12-31",classes:n=ms,l10n:i=vs,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]=Ri(s?new Date(s):new Date),[g,v]=Ri(s?new Date(s):void 0),[b,y]=Ri(!1),w=Fi(!0),_=Fi(),S=Fi(),E=Fi(),x=Fi(),C=Fi(),T=Fi();var A,k,O;zi(()=>{l(g),y(!1)},[g]),zi(()=>{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]),zi(()=>{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=Ni(Qn++,4),!Un.__s&&qi(O.__H,k)&&(O.__=A,O.__H=k,Zn.__h.push(O));const L=e=>Ss(e,e.getMonth()-1),D=e=>Ss(e,e.getMonth()+1),M=()=>{y(!b)},P=({type:e,children:t,...n})=>oi(e,n,t&&t.length&&t.map(e=>P(e)));return oi(Cs.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=ys(f,r)},End:()=>{t=ws(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}},oi("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:_}),oi("input",{type:"hidden",id:`${p}-value`,value:c(g),name:h}),oi("button",{type:"button","aria-controls":`${p}-dialog`,onClick:()=>M(),"aria-expanded":b,ref:E,className:n.toggleButton},u&&P(u),u?oi("span",{class:n.srOnly},i.openButton):i.openButton),oi("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:C,tabIndex:"-1"},oi("div",{className:"daypickr__content"},oi("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(o,{month:"long",year:"numeric"})),oi("div",{className:n.header},oi("div",{className:n.yearMonthWrapper},oi(Ds,{ref:x}),oi(Ms,null)),oi("div",{className:n.pagination},oi("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(L(f))}},i.prevMonth),oi("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(D(f))}},i.nextMonth))),oi(Ts,null),oi("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>M(),ref:T},i.closeButton))))},Is=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const s=({type:e,children:t,...n})=>oi(e,n,t&&t.length&&t.map(e=>s(e)));return oi(Cs.Provider,{value:{classes:t,l10n:n}},oi("input",{type:"text",disabled:!0,className:t.input}),oi("button",{type:"button",className:t.toggleButton,disabled:!0},e&&s(e),e?oi("span",{class:t.srOnly},n.openButton):n.openButton))};const Ns={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 Rs(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 zs(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 Rs(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)?Rs(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 Fs=Object.entries,Bs=Object.setPrototypeOf,Hs=Object.isFrozen,$s=Object.getPrototypeOf,Vs=Object.getOwnPropertyDescriptor;let js=Object.freeze,qs=Object.seal,Ws=Object.create,Us="undefined"!=typeof Reflect&&Reflect,Gs=Us.apply,Ys=Us.construct;js||(js=function(e){return e}),qs||(qs=function(e){return e}),Gs||(Gs=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)}),Ys||(Ys=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 Xs=gr(Array.prototype.forEach),Ks=gr(Array.prototype.lastIndexOf),Js=gr(Array.prototype.pop),Qs=gr(Array.prototype.push),Zs=gr(Array.prototype.splice),er=Array.isArray,tr=gr(String.prototype.toLowerCase),nr=gr(String.prototype.toString),ir=gr(String.prototype.match),sr=gr(String.prototype.replace),rr=gr(String.prototype.indexOf),or=gr(String.prototype.trim),ar=gr(Number.prototype.toString),lr=gr(Boolean.prototype.toString),cr="undefined"==typeof BigInt?null:gr(BigInt.prototype.toString),dr="undefined"==typeof Symbol?null:gr(Symbol.prototype.toString),ur=gr(Object.prototype.hasOwnProperty),hr=gr(Object.prototype.toString),pr=gr(RegExp.prototype.test),fr=(mr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ys(mr,t)});var mr;function gr(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 Gs(e,t,i)}}function vr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tr;if(Bs&&Bs(e,null),!er(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=n(s);e!==s&&(Hs(t)||(t[i]=e),s=e)}e[s]=!0}return e}function br(e){for(let t=0;t<e.length;t++)ur(e,t)||(e[t]=null);return e}function yr(e){const t=Ws(null);for(const i of Fs(e)){var n=zs(i,2);const s=n[0],r=n[1];ur(e,s)&&(er(r)?t[s]=br(r):r&&"object"==typeof r&&r.constructor===Object?t[s]=yr(r):t[s]=r)}return t}function wr(e,t){for(;null!==e;){const n=Vs(e,t);if(n){if(n.get)return gr(n.get);if("function"==typeof n.value)return gr(n.value)}e=$s(e)}return function(){return null}}const _r=js(["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"]),Sr=js(["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"]),Er=js(["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"]),xr=js(["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"]),Cr=js(["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"]),Tr=js(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ar=js(["#text"]),kr=js(["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"]),Or=js(["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"]),Lr=js(["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"]),Dr=js(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mr=qs(/{{[\w\W]*|^[\w\W]*}}/g),Pr=qs(/<%[\w\W]*|^[\w\W]*%>/g),Ir=qs(/\${[\w\W]*/g),Nr=qs(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rr=qs(/^aria-[\-\w]+$/),zr=qs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fr=qs(/^(?:\w+script|data):/i),Br=qs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hr=qs(/^html$/i),$r=qs(/^[a-z][.\w]*(-[.\w]+)+$/i),Vr=qs(/<[/\w!]/g),jr=qs(/<[/\w]/g),qr=qs(/<\/no(script|embed|frames)/i),Wr=qs(/\/>/i),Ur=function(){return"undefined"==typeof window?null:window},Gr=function(e,t,n,i){return ur(e,t)&&er(e[t])?vr(i.base?yr(i.base):{},e[t],i.transform):n};var Yr=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ur();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=wr(h,"cloneNode"),f=wr(h,"remove"),m=wr(h,"nextSibling"),g=wr(h,"childNodes"),v=wr(h,"parentNode"),b=wr(h,"shadowRoot"),y=wr(h,"attributes"),w=a&&a.prototype?wr(a.prototype,"nodeType"):null,_=a&&a.prototype?wr(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 fr('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 Fs&&"function"==typeof v&&L&&void 0!==L.createHTMLDocument;const R=Mr,z=Pr,F=Ir,B=Nr,H=Rr,$=Fr,V=Br,j=$r;let q=zr,W=null;const U=vr({},[..._r,...Sr,...Er,...Cr,...Ar]);let G=null;const Y=vr({},[...kr,...Or,...Lr,...Dr]);let X=Object.seal(Ws(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(Ws(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=vr({},["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=vr({},["audio","video","img","source","image","track"]);let Ee=null;const xe=vr({},["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=vr({},[Ce,Te,Ae],nr),Me=js(["mi","mo","mn","ms","mtext"]);let Pe=vr({},Me);const Ie=js(["annotation-xml"]);let Ne=vr({},Ie);const Re=vr({},["title","style","font","a","script"]);let ze=null;const Fe=["application/xhtml+xml","text/html"];let Be=null,He=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(He&&He===e)return;e&&"object"==typeof e||(e={}),e=yr(e),ze=-1===Fe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Be="application/xhtml+xml"===ze?nr:tr,W=Gr(e,"ALLOWED_TAGS",U,{transform:Be}),G=Gr(e,"ALLOWED_ATTR",Y,{transform:Be}),Le=Gr(e,"ALLOWED_NAMESPACES",De,{transform:nr}),Ee=Gr(e,"ADD_URI_SAFE_ATTR",xe,{transform:Be,base:xe}),_e=Gr(e,"ADD_DATA_URI_TAGS",Se,{transform:Be,base:Se}),ye=Gr(e,"FORBID_CONTENTS",we,{transform:Be}),K=Gr(e,"FORBID_TAGS",yr({}),{transform:Be}),J=Gr(e,"FORBID_ATTR",yr({}),{transform:Be}),be=!!ur(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?yr(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 pr(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:zr,ke="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,Pe=ur(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?yr(e.MATHML_TEXT_INTEGRATION_POINTS):vr({},Me),Ne=ur(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?yr(e.HTML_INTEGRATION_POINTS):vr({},Ie);const t=ur(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?yr(e.CUSTOM_ELEMENT_HANDLING):Ws(null);if(X=Ws(null),ur(t,"tagNameCheck")&&Ve(t.tagNameCheck)&&(X.tagNameCheck=t.tagNameCheck),ur(t,"attributeNameCheck")&&Ve(t.attributeNameCheck)&&(X.attributeNameCheck=t.attributeNameCheck),ur(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),qs(X),ie&&(ee=!1),ue&&(de=!0),be&&(W=vr({},Ar),G=Ws(null),!0===be.html&&(vr(W,_r),vr(G,kr)),!0===be.svg&&(vr(W,Sr),vr(G,Or),vr(G,Dr)),!0===be.svgFilters&&(vr(W,Er),vr(G,Or),vr(G,Dr)),!0===be.mathMl&&(vr(W,Cr),vr(G,Lr),vr(G,Dr))),Q.tagCheck=null,Q.attributeCheck=null,ur(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Q.tagCheck=e.ADD_TAGS:er(e.ADD_TAGS)&&(W===U&&(W=yr(W)),vr(W,e.ADD_TAGS,Be))),ur(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Q.attributeCheck=e.ADD_ATTR:er(e.ADD_ATTR)&&(G===Y&&(G=yr(G)),vr(G,e.ADD_ATTR,Be))),ur(e,"ADD_URI_SAFE_ATTR")&&er(e.ADD_URI_SAFE_ATTR)&&vr(Ee,e.ADD_URI_SAFE_ATTR,Be),ur(e,"FORBID_CONTENTS")&&er(e.FORBID_CONTENTS)&&(ye===we&&(ye=yr(ye)),vr(ye,e.FORBID_CONTENTS,Be)),ur(e,"ADD_FORBID_CONTENTS")&&er(e.ADD_FORBID_CONTENTS)&&(ye===we&&(ye=yr(ye)),vr(ye,e.ADD_FORBID_CONTENTS,Be)),ge&&(W["#text"]=!0),re&&vr(W,["html","head","body"]),W.table&&(vr(W,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw fr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw fr('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("")));js&&js(e),He=e},qe=vr({},[...Sr,...Er,...xr]),We=vr({},[...Cr,...Tr]),Ue=function(e){Qs(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(f(e),!v(e))throw fr("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=[];Xs(t,t=>{Qs(e,t)}),Xs(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{Qs(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Qs(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=ir(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=sr(e,R," "),e=sr(e,z," "),sr(e,F," ")},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&&Xs(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&&Xs(e,e=>{e.call(n,t,i,He)})}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)&&pr(Vr,e.textContent)&&pr(Vr,e.innerHTML))||!(!se||e.namespaceURI!==Ae||"style"!==t||!nt(e.firstElementChild))||7===e.nodeType||!(!se||8!==e.nodeType||!pr(jr,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&&pr(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=tr(e.tagName),i=tr(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)&&pr(qr,e.innerHTML))return Ue(e),!0;if(ie&&3===e.nodeType){const t=Qe(e.textContent);e.textContent!==t&&(Qs(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&&pr(B,t));else if(Z&&pr(H,t));else if(s){if(Ee[t]);else if(pr(q,sr(n,V,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==rr(n,"data:")||!_e[e])if(te&&!pr($,sr(n,V,"")));else if(n)return!1}else if(!(at(e)&&(X.tagNameCheck instanceof RegExp&&pr(X.tagNameCheck,e)||X.tagNameCheck instanceof Function&&X.tagNameCheck(e))&&(X.attributeNameCheck instanceof RegExp&&pr(X.attributeNameCheck,t)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(t,e))||"is"===t&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&pr(X.tagNameCheck,n)||X.tagNameCheck instanceof Function&&X.tagNameCheck(n))))return!1;return!0},ot=vr({},["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[tr(e)]&&pr(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):Js(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:or(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===rr(u,me)||(Ye(o,e),u=me+u),se&&pr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&ir(u,"href")?Ye(o,e):n.forceKeepAttr||(!n.keepAttr||!ne&&pr(Wr,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 ar(e);case"boolean":return lr(e);case"bigint":return cr?cr(e):"0";case"symbol":return dr?dr(e):"Symbol()";case"undefined":default:return hr(e);case"function":case"object":{if(null===e)return hr(e);const t=e,n=wr(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:hr(e)}return hr(e)}}}(e)))throw fr("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=yr(W)),N.uponSanitizeAttribute.length>0&&(G=yr(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 fr("root node is forbidden and cannot be sanitized in-place")}if(et(e))throw fr("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 Xs(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&&pr(Hr,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(){He=null,oe=!1,ae=null,le=null,S=E,x=""},n.isValidAttribute=function(e,t,n){He||je({});const i=Be(e),s=Be(t);return rt(i,s,n)},n.addHook=function(e,t){"function"==typeof t&&ur(N,e)&&Qs(N[e],t)},n.removeHook=function(e,t){if(ur(N,e)){if(void 0!==t){const n=Ks(N[e],t);return-1===n?void 0:Zs(N[e],n,1)[0]}return Js(N[e])}},n.removeHooks=function(e){ur(N,e)&&(N[e]=[])},n.removeAllHooks=function(){N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Xr={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 `},Kr={nonEditableInput:!1,min:1,max:999,defaultValue:1};var Jr,Qr;function Zr(e){return"object"==typeof e&&"function"==typeof e.to}function eo(e){e.parentElement.removeChild(e)}function to(e){return null!=e}function no(e){e.preventDefault()}function io(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function so(e,t,n){n>0&&(lo(e,t),setTimeout(function(){co(e,t)},n))}function ro(e){return Math.max(Math.min(e,100),0)}function oo(e){return Array.isArray(e)?e:[e]}function ao(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function lo(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function co(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 uo(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 ho(e,t){return 100/(t-e)}function po(e,t,n){return 100*t/(e[n+1]-e[n])}function fo(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"}(Jr||(Jr={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(Qr||(Qr={}));var mo=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([oo(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]=po(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=fo(n,e),s=e[i-1],r=e[i],o=t[i-1],a=t[i];return o+function(e,t){return po(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([s,r],n)/ho(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=fo(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)*ho(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=fo(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=fo(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=fo(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(ao);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(!io(n="min"===e?0:"max"===e?100:parseFloat(e))||!io(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]=po([this.xVal[e],this.xVal[e+1]],t,0)/ho(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}(),go={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},vo={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"},bo=".__tooltips",yo=".__aria";function wo(e,t){if(!io(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function _o(e,t){if(!io(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function So(e,t){if(!io(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function Eo(e,t){if(!io(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function xo(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 mo(t,e.snap||!1,e.singleStep)}function Co(e,t){if(t=oo(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function To(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Ao(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function ko(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Oo(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 Lo(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 Do(e,t){if(!io(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Mo(e,t){if(!io(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 Po(e,t){var n;if(!io(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&&!io(t[0])&&!io(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 Io(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 No(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");Do(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 Ro(e,t){if(!1!==t)if(!0===t||Zr(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=oo(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!Zr(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function zo(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function Fo(e,t){if(!Zr(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function Bo(e,t){if(!function(e){return Zr(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function Ho(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function $o(e,t){e.documentElement=t}function Vo(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function jo(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 qo(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:go,format:go},n={step:{r:!1,t:wo},keyboardPageMultiplier:{r:!1,t:_o},keyboardMultiplier:{r:!1,t:So},keyboardDefaultStep:{r:!1,t:Eo},start:{r:!0,t:Co},connect:{r:!0,t:Oo},direction:{r:!0,t:Io},snap:{r:!1,t:To},animate:{r:!1,t:Ao},animationDuration:{r:!1,t:ko},range:{r:!0,t:xo},orientation:{r:!1,t:Lo},margin:{r:!1,t:Do},limit:{r:!1,t:Mo},padding:{r:!1,t:Po},behaviour:{r:!0,t:No},ariaFormat:{r:!1,t:Fo},format:{r:!1,t:Bo},tooltips:{r:!1,t:Ro},keyboardSupport:{r:!0,t:Ho},documentElement:{r:!1,t:$o},cssPrefix:{r:!0,t:Vo},cssClasses:{r:!0,t:jo},handleAttributes:{r:!1,t:zo}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:vo,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(s){if(to(e[s])||void 0!==i[s])n[s].t(t,to(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 Wo(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&&lo(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?lo(s,t.cssClasses.handleLower):n===t.handles-1&&lo(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"+bo),l.forEach(function(e){e&&eo(e)}),l=null)}function D(){L(),l=r.map(A),W("update"+bo,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&&(eo(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===Jr.Range||e.mode===Jr.Steps)return p.xVal;if(e.mode===Jr.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===Jr.Positions?M(e.values,e.stepped):e.mode===Jr.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===Jr.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?Qr.LargeValue:S?Qr.SmallValue:Qr.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={})[Qr.None]="",s[Qr.NoValue]=t.cssClasses.valueNormal,s[Qr.LargeValue]=t.cssClasses.valueLarge,s[Qr.SmallValue]=t.cssClasses.valueSub,s),l=((r={})[Qr.None]="",r[Qr.NoValue]=t.cssClasses.markerNormal,r[Qr.LargeValue]=t.cssClasses.markerLarge,r[Qr.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 lo(o,t.cssClasses.pips),lo(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)!==Qr.None){var a=x(o,!1);a.className=u(r,t.cssClasses.marker),a.style[t.style]=e+"%",r>Qr.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||uo(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=uo(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=ro(c),t.dir?100-c:c}function F(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function B(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return H(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 H(e,n){n.handle&&(co(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){_.removeEventListener(e[0],e[1])}),0===v&&(co(h,t.cssClasses.drag),Q(),e.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",no))),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,lo(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,_,H,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",_,F,{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&&lo(h,t.cssClasses.drag),S.addEventListener("selectstart",no,!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||so(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];lo(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===yo||e===bo}(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=ro(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,Oo(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=oo(e),r=void 0===m[0];n=void 0===n||n,t.animate&&!r&&so(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})}lo(c=h,t.cssClasses.target),0===t.dir?lo(c,t.cssClasses.ltr):lo(c,t.cssClasses.rtl),0===t.ort?lo(c,t.cssClasses.horizontal):lo(c,t.cssClasses.vertical),lo(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"+yo),W("update"+yo,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(yo),U(bo),Object.keys(t.cssClasses).forEach(function(e){co(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=qo(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(to(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 Uo=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=Wo(e,qo(t),t);return e.noUiSlider=n,n};const Go={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}},Yo={cycleDuration:4e3,delay:5e3},Xo=":not([inert]):not([inert] *)",Ko=':not([tabindex^="-"])',Jo=":not(:disabled)";var Qo=[`a[href]${Xo}${Ko}`,`area[href]${Xo}${Ko}`,`input:not([type="hidden"]):not([type="radio"])${Xo}${Ko}${Jo}`,`input[type="radio"]${Xo}${Ko}${Jo}`,`select${Xo}${Ko}${Jo}`,`textarea${Xo}${Ko}${Jo}`,`button${Xo}${Ko}${Jo}`,`details${Xo} > summary:first-of-type${Ko}`,`iframe${Xo}${Ko}`,`audio[controls]${Xo}${Ko}`,`video[controls]${Xo}${Ko}`,`[contenteditable]${Xo}${Ko}`,`[tabindex]${Xo}${Ko}`];function Zo(e){(e.querySelector("[autofocus]")||e).focus()}function ea(e,t){if(t&&ia(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=ta(e.shadowRoot,t);for(;n;){const e=ea(n,t);if(e)return e;n=na(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=ea(e,t);if(n)return n}}else{let n=ta(e,t);for(;n;){const e=ea(n,t);if(e)return e;n=na(n,t)}}return!t&&ia(e)?e:null}function ta(e,t){return t?e.firstElementChild:e.lastElementChild}function na(e,t){return t?e.nextElementSibling:e.previousElementSibling}const ia=e=>!e.shadowRoot?.delegatesFocus&&e.matches(Qo.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 ra(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=oa(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function oa(e){return e.assignedSlot||(e.parentNode?oa(e.parentNode):null)}const aa="data-a11y-dialog";class la{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(aa)||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():Zo(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=ra(`[${aa}-show="${this.id}"]`,t),i=ra(`[${aa}-hide="${this.id}"]`,t),s=ra(`[${aa}-hide]`,t)&&ra('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(ra('[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=ea(e,!0);return[t,t?ea(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();ra(`[aria-modal="true"], [${aa}-ignore-focus-trap]`,e)||Zo(this.$el)}}function ca(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new la(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",ca):ca());var da=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[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(","),ua="undefined"==typeof Element,ha=ua?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pa=!ua&&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},fa=function(e){return"INPUT"===e.tagName},ma=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},ga=function(e,t){return!(t.disabled||function(e){return fa(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});if("hidden"===getComputedStyle(e).visibility)return!0;var s=ha.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ha.call(s,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return ma(e)}else{if("function"==typeof i){for(var r=e;e;){var o=e.parentElement,a=pa(e);if(o&&!o.shadowRoot&&!0===i(o))return ma(e);e=e.assignedSlot?e.assignedSlot:o||a===e.ownerDocument?o:a.host}e=r}if(function(e){var t,n,i,s,r=e&&pa(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=pa(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!!ha.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},va=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ha.call(e,da)&&function(e,t){return!(function(e){return function(e){return fa(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||pa(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||!ga(e,t))}(t,e)};const ba="--ods-modal-scrollbar-width",ya="data-lock-scrolltop";class wa{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),wa.moveToModalRoot=wa.moveToModalRoot.bind(this),wa.lockBody=wa.lockBody.bind(this),wa.unlockBody=wa.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}static getInstance(e){return e&&e.ODS_Modal||null}handleShow(e){wa.lockBody(),e&&e.classList.add(this.config.classModalIsOpen);const t=e.querySelector("[data-a11y-dialog-initial-focus]");t&&(va(t)||t.setAttribute("tabindex","-1"),t.focus())}handleHide(e){wa.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&&wa.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new la(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),wa.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(wa.isLocked)return;const n=wa.resolveBodyLockClassName(e,this),i=window.scrollY;document.body.setAttribute(ya,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(ba,`${s}px`),document.body.classList.add(n),wa.isLocked=!0}static unlockBody(e,t){if(!wa.isLocked)return;const n=wa.resolveBodyLockClassName(e,this),i=Number.parseInt(document.body.getAttribute(ya)||"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(ba),document.body.classList.remove(n),window.scrollTo({top:Number.isFinite(i)?i:0,left:0,behavior:"instant"}),wa.isLocked=!1}}const _a={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},Sa={tabSelector:'[role="tab"]'};class Ea{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={...Sa,...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>Ea.SCROLL_EDGE_TOLERANCE,n=this.element.scrollLeft<=Ea.SCROLL_EDGE_TOLERANCE,i=this.element.scrollLeft>=e-Ea.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)<=Ea.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 xa=[{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={...jn,...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=qn(this.config.customInputClassName,"is-invalid")),s&&(this.config.wrapperClassName=qn(this.config.wrapperClassName,"autocomplete__wrapper--search-icon")),r&&(this.config.wrapperClassName=qn(this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"));const a=(await Promise.resolve().then(function(){return ka})).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={...Ns,...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},Ai(oi(Ps,{...o}),r),{destroy(){!function(e){e.__k&&Ai(null,e)}(r),Ai(oi(Is,{...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={...zn,...t},this.config.popperOptions={...zn.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...zn.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=Ft(this.trigger,this.element,this.config.popperOptions),this.transitioner=_e({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:cn,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={...Cn,...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(bn);const e=this.element.querySelector(Sn);e&&(this.tabs=Array.from(e.querySelectorAll(En)))}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(gn))}createSwiper(){const e=this.viewport.querySelectorAll(`.${un}`).length>1;this.instance=new de(this.viewport,{...this.config,modules:[me,ve,ye,ue,we],navigation:{nextEl:this.element.querySelector(wn),prevEl:this.element.querySelector(yn)},pagination:!!e&&{...this.config.pagination,el:this.element.querySelector(xn)},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(_n);e&&(e.removeEventListener("click",this._boundPlayPauseClick),e.addEventListener("click",this._boundPlayPauseClick));const t=this.element.querySelector(yn),n=this.element.querySelector(wn);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(gn),this.element.classList.remove(vn),this.updatePlayPauseIcon(),this.startDotAnimation()}_onAutoplayStop(){this.element.classList.remove(gn),this.element.classList.add(vn),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(mn,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(xn);t&&t.querySelectorAll(`.${hn}`).forEach((t,n)=>{const i=n===e;if(t.classList.toggle("is-active",i),!this.hasAutoplay()){const e=t.querySelector(`.${pn}`);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(Sn);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(_n);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(`.${pn}`);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(`.${pn}`);if(!t)return;const n=t.querySelector("circle");n&&(n.style.animation="none")}),this._dotAnimationJustStarted=!1}_getPaginationButtons(){return Array.from(this.element.querySelectorAll(`${xn} > *`))}_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):mn}_getActiveBulletButton(){const e=this._getActiveBulletClass();return this.element.querySelector(`${xn} .${e}`)}createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",pn),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",fn),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(_n);e&&e.removeEventListener("click",this._boundPlayPauseClick);const t=this.element.querySelector(yn),n=this.element.querySelector(wn);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:Rn,name:"CarouselPromotions",selector:"[data-carousel-promotions]"},{Module:class{element;config;bodies=[];buttons=[];images=[];activeId=null;constructor(e,t){return this.element=e,this.config={...Vn,...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.generateImagesFromDataAttributes(),this.setActive(0),this.buttons.forEach(e=>{e.addEventListener("click",this.onClick)})}generateImagesFromDataAttributes(){const e=this.element.querySelector(".feature-accordion__preview.show-md");if(!e)return;const t=e.querySelectorAll(this.config.imageSelector);t.length>0?this.images=Array.from(t):(this.images=[],this.buttons.forEach(t=>{const n=t.getAttribute("data-image-url"),i=t.getAttribute("data-image-alt")||"",s=t.getAttribute("data-image-srcset");if(!n)return;const r=document.createElement("img");r.setAttribute("data-feature-accordion-image",""),r.src=n,r.alt=i,s&&(r.srcset=s),e.appendChild(r),this.images.push(r);const o=t.getAttribute("aria-controls");if(o){const e=document.getElementById(o);if(e){let t=e.querySelector(".feature-accordion__preview.hide-md");t||(t=document.createElement("div"),t.className="feature-accordion__preview hide-md",e.appendChild(t));const r=document.createElement("img");r.setAttribute("data-feature-accordion-image",""),r.src=n,r.alt=i,r.className="feature-accordion__image--mobile",s&&(r.srcset=s),t.appendChild(r)}}}))}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.activeId=this.buttons[e].getAttribute("id"),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"),$n({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"),$n({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={...Xr,...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(Yr.sanitize(e.name,{ALLOWED_TAGS:[]}),t)).forEach(e=>{this.results.appendChild(Yr.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={...Yo,...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??Yo.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??Yo.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:wa,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], .${Gt}`;return this.element.matches(e)?this.element:this.element.closest(e)}isInsideOrIsCarousel(){return this.getCarouselElement()}getCarouselSlides(){const e=this.getCarouselElement();return e?e.querySelectorAll(`.${Kt}`):[]}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={...Go,...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=jt(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=Uo(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?jt(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={...Kr,...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={..._a,...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(","));$n({element:t,attribute:"aria-expanded"}),i.forEach(e=>{$n({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:Ea,name:"Tabs",selector:"[data-tabs]"},{Module:Hn,name:"Toggle",selector:"[data-toggle]"},{Module:Ut,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=qt(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=xa,window.addEventListener("DOMContentLoaded",()=>{xa.forEach(e=>{window.ODS.modules[e.name]=e.Module,window.ODS.instances[qt(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 Ca,Ta={exports:{}},Aa=(Ca||(Ca=1,window,Ta.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 F=e,B=e;B=B._parentComponent;)(F=B).base=I;I._component=F,I._componentConstructor=F.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(),F=-1===O,B=0===M.length,H=0!==P.length,$=P.length>=g,V=this.props.showNoOptionsFound&&F&&B&&H&&$,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),Ta.exports),ka=e({__proto__:null,default:Bt(Aa)},[Aa]);export{xa 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={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 null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function a(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:o(t[n])&&o(e[n])&&Object.keys(t[n]).length>0&&a(e[n],t[n])})}const l={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function c(){const e="undefined"!=typeof document?document:{};return a(e,l),e}const d={document:l,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function u(){const e="undefined"!=typeof window?window:{};return a(e,d),e}function h(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function p(e,t=0){return setTimeout(e,t)}function f(){return Date.now()}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function g(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function v(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const i=e[n];if(null!=i&&!g(i)){const e=Object.keys(Object(i)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,s=e.length;n<s;n+=1){const s=e[n],r=Object.getOwnPropertyDescriptor(i,s);void 0!==r&&r.enumerable&&(m(t[s])&&m(i[s])?i[s].__swiper__?t[s]=i[s]:v(t[s],i[s]):!m(t[s])&&m(i[s])?(t[s]={},i[s].__swiper__?t[s]=i[s]:v(t[s],i[s])):t[s]=i[s])}}}return t}function b(e,t,n){e.style.setProperty(t,n)}function y({swiper:e,targetPosition:t,side:n}){const i=u(),s=-e.translate;let r,o=null;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const l=t>s?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,d=()=>{r=(new Date).getTime(),null===o&&(o=r);const l=Math.max(Math.min((r-o)/a,1),0),u=.5-Math.cos(l*Math.PI)/2;let h=s+u*(t-s);if(c(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),c(h,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),void i.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=i.requestAnimationFrame(d)};d()}function w(e,t=""){const n=u(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function S(e){try{return}catch(e){}}function _(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:h(t)),n}function E(e){const t=u(),n=c(),i=e.getBoundingClientRect(),s=n.body,r=e.clientTop||s.clientTop||0,o=e.clientLeft||s.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+a-r,left:i.left+l-o}}function x(e,t){return u().getComputedStyle(e,null).getPropertyValue(t)}function C(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function T(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function A(e,t,n){const i=u();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function k(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function O(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let L,D,M;function P(){return L||(L=function(){const e=u(),t=c();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),L}function I(e={}){return D||(D=function({userAgent:e}={}){const t=P(),n=u(),i=n.navigator.platform,s=e||n.navigator.userAgent,r={ios:!1,android:!1},o=n.screen.width,a=n.screen.height,l=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===i;let f="MacIntel"===i;return!c&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),l&&!p&&(r.os="android",r.android=!0),(c||h||d)&&(r.os="ios",r.ios=!0),r}(e)),D}function N(){return M||(M=function(){const e=u(),t=I();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=i();return{isSafari:n||r,needPerspectiveFix:n,need3dFix:r||s&&t.ios,isWebView:s}}()),M}var R={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;function s(...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;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],i=e.slice(1,e.length),s=t):(n=e[0].events,i=e[0].data,s=e[0].context||t),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}};const z=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},F=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},B=(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(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},H=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},$=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){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)=>{r.includes(t.column)&&H(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)&&H(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)&&H(e,i)};var V={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(x(i,"padding-left")||0,10)-parseInt(x(i,"padding-right")||0,10),n=n-parseInt(x(i,"padding-top")||0,10)-parseInt(x(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=w(s,`.${e.params.slideClass}, swiper-slide`),d=a?e.virtual.slides.length:c.length;let u=[];const h=[],p=[];let f=n.slidesOffsetBefore;"function"==typeof f&&(f=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,v=e.slidesGrid.length,y=e.size-f-m;let S=n.spaceBetween,_=-f,E=0,C=0;if(void 0===y)return;"string"==typeof S&&S.indexOf("%")>=0?S=parseFloat(S.replace("%",""))/100*y:"string"==typeof S&&(S=parseFloat(S)),e.virtualSize=-S-f-m,c.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(b(i,"--swiper-centered-offset-before",""),b(i,"--swiper-centered-offset-after","")),n.cssMode&&(b(i,"--swiper-slides-offset-before",`${f}px`),b(i,"--swiper-slides-offset-after",`${m}px`));const T=n.grid&&n.grid.rows>1&&e.grid;let k;T?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const O="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<d;i+=1){k=0;const s=c[i];if(!s||(T&&e.grid.updateSlide(i,s,c),"none"!==x(s,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual.slidesPerViewAutoSlideSize&&(k=n.virtual.slidesPerViewAutoSlideSize),k&&s&&(n.roundLengths&&(k=Math.floor(k)),s.style[e.getDirectionLabel("width")]=`${k}px`);else if("auto"===n.slidesPerView){O&&(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)k=e.isHorizontal()?A(s,"width"):A(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)k=e+o+a;else{const{clientWidth:t,offsetWidth:i}=s;k=e+n+r+o+a+(i-t)}}r&&(s.style.transform=r),o&&(s.style.webkitTransform=o),n.roundLengths&&(k=Math.floor(k))}else k=(y-(n.slidesPerView-1)*S)/n.slidesPerView,n.roundLengths&&(k=Math.floor(k)),s&&(s.style[e.getDirectionLabel("width")]=`${k}px`);s&&(s.swiperSlideSize=k),p.push(k),n.centeredSlides?(_=_+k/2+E/2+S,0===E&&0!==i&&(_=_-y/2-S),0===i&&(_=_-y/2-S),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),C%n.slidesPerGroup===0&&u.push(_),h.push(_)):(n.roundLengths&&(_=Math.floor(_)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&u.push(_),h.push(_),_=_+k+S),e.virtualSize+=k+S,E=k,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+m,r&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+S}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+S}px`),T&&e.grid.updateWrapperSize(k,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?S: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]+S;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)u.push(u[u.length-1]+s)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=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!==S){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]=`${S}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(S||0)}),e-=S;const t=e>y?e-y:0;u=u.map(e=>e<=0?-f:e>t?t+m:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(S||0)}),e-=S,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){b(i,"--swiper-centered-offset-before",-u[0]+"px"),b(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!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==v&&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;n.push(o(e))}else n.push(o(t.activeIndex));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;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(o+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),u=(o-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),h=-(o-c),p=h+t.slidesSizesGrid[e],f=h>=0&&h<=t.size-t.slidesSizesGrid[e],m=h>=0&&h<t.size-1||p>1&&p<=t.size||h<=0&&p>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),z(l,m,n.slideVisibleClass),z(l,f,n.slideFullyVisibleClass),l.progress=s?-d:d,l.originalProgress=s?-u:u}},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,progressLoop:a}=t;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=>w(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){let t=s-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}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=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{F(e,e===l,n.slideActiveClass),F(e,e===d,n.slideNextClass),F(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=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};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&&$(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()}},j={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=u();let i,s,r;const o=function(e){const t=u();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new n.WebKitCSSMatrix("none"===s?"":s)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(s=n.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=n.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}(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();if(0===t)a[e?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return y({swiper:r,targetPosition:-d,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!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}};function q({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 W={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 w=r.virtual&&r.params.virtual.enabled;if((!w||!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;if(0===t)w&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),w&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,w&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return y({swiper:r,targetPosition:n,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const S=N().isSafari;return w&&!s&&S&&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;else{let e;if(r){const t=o*s.params.grid.rows;e=s.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}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=s.params.slidesPerView;"auto"===d?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(s.params.slidesPerView,10)),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;o=s.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}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&&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}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,r=e.getSlideIndexWhenGrid(e.clickedIndex);const o=e.isElement?"swiper-slide":`.${t.slideClass}`,a=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(s):r>(a?(e.slides.length-i)/2-(e.params.grid.rows-1):e.slides.length-i)?(e.loopFix(),r=e.getSlideIndex(w(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),p(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}},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=()=>{w(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},o=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||o)&&(()=>{const e=w(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?_("swiper-slide",[i.slideBlankClass]):_("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides?(d(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()):S(),r()):c?(i.loopAddBlankSlides?(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()):S(),r()):r();const u=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:i,activeSlideIndex:s,initial:r,byController:o,byMousewheel:a}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:h,params:p}=l,{centeredSlides:f,slidesOffsetBefore:m,slidesOffsetAfter:g,initialSlide:v}=p,b=f||!!m||!!g;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return t&&(b||0!==l.snapIndex?b&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let y=p.slidesPerView;"auto"===y?y=l.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),b&&y%2==0&&(y+=1));const w=p.slidesPerGroupAuto?y:p.slidesPerGroup;let _=b?Math.max(w,Math.ceil(y/2)):w;_%w!==0&&(_+=w-_%w),_+=p.loopAdditionalSlides,l.loopedSlides=_;const E=l.grid&&p.grid&&p.grid.rows>1;(c.length<y+_||"cards"===l.params.effect&&c.length<y+2*_||E&&"row"===p.grid.fill)&&S();const x=[],C=[],T=E?Math.ceil(c.length/p.grid.rows):c.length,A=r&&T-v<y&&!b;let k=A?v:l.activeIndex;void 0===s?s=l.getSlideIndex(c.find(e=>e.classList.contains(p.slideActiveClass))):k=s;const O="next"===n||!n,L="prev"===n||!n;let D=0,M=0;const P=(E?c[s].column:s)+(b&&void 0===i?-y/2+.5:0);if(P<_){D=Math.max(_-P,w);for(let e=0;e<_-P;e+=1){const t=e-Math.floor(e/T)*T;if(E){const e=T-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&x.push(t)}else x.push(T-t-1)}}else if(P+y>T-_){M=Math.max(P-(T-2*_),w),A&&(M=Math.max(M,y-T+v+1));for(let e=0;e<M;e+=1){const t=e-Math.floor(e/T)*T;E?c.forEach((e,n)=>{e.column===t&&C.push(n)}):C.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length<y+2*_&&(C.includes(s)&&C.splice(C.indexOf(s),1),x.includes(s)&&x.splice(x.indexOf(s),1)),L&&x.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),O&&C.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():E&&(x.length>0&&L||C.length>0&&O)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),t)if(x.length>0&&L){if(void 0===e){const e=l.slidesGrid[k],t=l.slidesGrid[k+D]-e;a?l.setTranslate(l.translate-t):(l.slideTo(k+Math.ceil(D),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(i){const e=E?x.length/p.grid.rows:x.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(C.length>0&&O)if(void 0===e){const e=l.slidesGrid[k],t=l.slidesGrid[k-M]-e;a?l.setTranslate(l.translate-t):(l.slideTo(k-M,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=E?C.length/p.grid.rows:C.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!o){const r={slideRealIndex:e,direction:n,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...r,slideTo:e.params.slidesPerView===p.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...r,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&t})}l.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=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=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,n){const i=u(),{params:s}=e,r=s.edgeSwipeDetection,o=s.edgeSwipeThreshold;return!r||!(n<=o||n>=i.innerWidth-o)||"prevent"===r&&(t.preventDefault(),!0)}function Y(e){const t=this;if(t.destroyed)return;const n=c();let i=e;i.originalEvent&&(i=i.originalEvent);const s=t.touchEventsData;if("pointerdown"===i.type){if(null!==s.pointerId&&s.pointerId!==i.pointerId)return;s.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(s.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void G(t,i,i.targetTouches[0].pageX);const{params:r,touches:o,enabled:a}=t;if(!a)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=i.target;if("wrapper"===r.touchEventsTarget&&!function(e,t){const n=u();let i=t.contains(e);return!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=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():[])}}(e,t))),i}(l,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(s.isTouched&&s.isMoved)return;const d=!!r.noSwipingClass&&""!==r.noSwipingClass,h=i.composedPath?i.composedPath():i.path;d&&i.target&&i.target.shadowRoot&&h&&(l=h[0]);const p=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!(!i.target||!i.target.shadowRoot);if(r.noSwiping&&(m?function(e,t=this){return function t(n){if(!n||n===c()||n===u())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(p,l):l.closest(p)))return void(t.allowClick=!0);if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=i.pageX,o.currentY=i.pageY;const g=o.currentX,v=o.currentY;if(!G(t,i,g))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=v,s.touchStartTime=f(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let b=!0;l.matches(s.focusableElements)&&(b=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(s.focusableElements))&&n.activeElement.blur();const y=b&&t.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!y||l.isContentEditable||i.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function X(e){const t=c(),n=this;if(n.destroyed)return;const i=n.touchEventsData,{params:s,touches:r,rtlTranslate:o,enabled:a}=n;if(!a)return;if(!s.simulateTouch&&"mouse"===e.pointerType)return;let l,d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type){if(null!==i.touchId)return;if(d.pointerId!==i.pointerId)return}if("touchmove"===d.type){if(l=[...d.changedTouches].find(e=>e.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=d;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",d));const u=l.pageX,h=l.pageY;if(d.preventedByNestedSwiper)return r.startX=u,void(r.startY=h);if(!n.allowTouchMove)return d.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(r,{startX:u,startY:h,currentX:u,currentY:h}),i.touchStartTime=f()));if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(h<r.startY&&n.translate<=n.maxTranslate()||h>r.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(o&&(u>r.startX&&-n.translate<=n.maxTranslate()||u<r.startX&&-n.translate>=n.minTranslate()))return;if(!o&&(u<r.startX&&n.translate<=n.maxTranslate()||u>r.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==d.target&&"mouse"!==d.pointerType&&t.activeElement.blur(),t.activeElement&&d.target===t.activeElement&&d.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",d),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=u,r.currentY=h;const p=r.currentX-r.startX,m=r.currentY-r.startY;if(n.params.threshold&&Math.sqrt(p**2+m**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&r.currentY===r.startY||n.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:p*p+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",d),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===d.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation();let g=n.isHorizontal()?p:m,v=n.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;s.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),r.diff=g,g*=s.touchRatio,o&&(g=-g,v=-v);const b=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const y=n.params.loop&&!s.cssMode,w="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(y&&w&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!s.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",d)}if((new Date).getTime(),!1!==s._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&b!==n.touchesDirection&&y&&w&&Math.abs(g)>=1)return Object.assign(r,{startX:u,startY:h,currentX:u,currentY:h,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",d),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let S=!0,_=s.resistanceRatio;if(s.touchReleaseOnEdges&&(_=0),g>0?(y&&w&&i.allowThresholdMove&&i.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(S=!1,s.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+g)**_))):g<0&&(y&&w&&i.allowThresholdMove&&i.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===s.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(S=!1,s.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-g)**_))),S&&(d.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(g)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=n.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function K(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let i,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(i=[...s.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(s.pointerId!==n.pointerId)return;i=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&(!["pointercancel","contextmenu"].includes(s.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:r,touches:o,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!r.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=f(),u=d-n.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target,e),t.emit("tap click",s),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=f(),p(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===o.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let h;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,h=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const m=h>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==l[e+t]?(m||h>=l[e]&&h<l[e+t])&&(g=e,v=l[e+t]-l[e]):(m||h>=l[e])&&(g=e,v=l[l.length-1]-l[l.length-2])}let b=null,y=null;r.rewind&&(t.isBeginning?y=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const w=(h-l[g])/v,S=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?b:g+S):t.slideTo(g)),"prev"===t.swipeDirection&&(w>1-r.longSwipesRatio?t.slideTo(g+S):null!==y&&w<0&&Math.abs(w)>r.longSwipesRatio?t.slideTo(y):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==b?b:g+S),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:g)):s.target===t.navigation.nextEl?t.slideTo(g+S):t.slideTo(g)}}function J(){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:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.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 Q(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;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 ee(e){const t=this;t.destroyed||(B(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function te(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ne=(e,t)=>{const n=c(),{params:i,el:s,wrapperEl:r,device:o}=e,a=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",d=t;s&&"string"!=typeof s&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[l]("click",e.onClick,!0),i.cssMode&&r[l]("scroll",e.onScroll),i.updateOnWindowResize?e[d](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",J,!0):e[d]("observerUpdate",J,!0),s[l]("load",e.onLoad,{capture:!0}))},ie=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var se={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=c(),a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:o.querySelector(i.breakpointsBase),d=e.getBreakpoint(r,a,l);if(!d||e.currentBreakpoint===d)return;const u=(d in r?r[d]:void 0)||e.originalParams,h=ie(e,i),p=ie(e,u),f=e.params.grabCursor,m=u.grabCursor,g=i.enabled;h&&!p?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!h&&p&&(s.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!m?e.unsetGrabCursor():!f&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=i[t]&&i[t].enabled,s=u[t]&&u[t].enabled;n&&!s&&e[t].disable(),!n&&s&&e[t].enable()});const b=u.direction&&u.direction!==i.direction,y=i.loop&&(u.slidesPerView!==i.slidesPerView||b),w=i.loop;b&&n&&e.changeDirection(),v(e.params,u);const S=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!S?e.disable():!g&&S&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",u),n&&(y?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!w&&_?(e.loopCreate(t),e.updateSlides()):w&&!_&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const s=u(),r="window"===t?s.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:r,value:a}=o[e];"window"===t?s.matchMedia(`(min-width: ${a}px)`).matches&&(i=r):a<=n.clientWidth&&(i=r)}return i||"max"}},re={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())}},oe={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};function ae(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}),v(t,n)):v(t,n)):v(t,n)}}const le={eventsEmitter:R,update:V,translate:j,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(),q({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),q({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:W,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=Y.bind(e),e.onTouchMove=X.bind(e),e.onTouchEnd=K.bind(e),e.onDocumentTouchStart=te.bind(e),t.cssMode&&(e.onScroll=Z.bind(e)),e.onClick=Q.bind(e),e.onLoad=ee.bind(e),ne(e,"on")},detachEvents:function(){ne(this,"off")}},breakpoints:se,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:re},ce={};class de{constructor(...e){let t,n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=v({},n),t&&!n.el&&(n.el=t);const i=c();if(n.el&&"string"==typeof n.el&&i.querySelectorAll(n.el).length>1){const e=[];return i.querySelectorAll(n.el).forEach(t=>{const i=v({},n,{el:t});e.push(new de(i))}),e}const s=this;s.__swiper__=!0,s.support=P(),s.device=I({userAgent:n.userAgent}),s.browser=N(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&s.modules.indexOf(e)<0&&s.modules.push(e)});const r={};s.modules.forEach(e=>{e({params:n,swiper:s,extendParams:ae(n,r),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const o=v({},oe,r);return s.params=v({},o,ce,n),s.originalParams=v({},s.params),s.passedParams=v({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach(e=>{s.on(e,s.params.on[e])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.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:s.params.allowSlideNext,allowSlidePrev:s.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:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}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]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=C(w(t,`.${n.slideClass}, swiper-slide`)[0]);return C(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*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=w(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),s=(n.maxTranslate()-i)*e+i;n.translateTo(s,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",t)}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,t=i[a]?Math.ceil(i[a].swiperSlideSize):0;for(let n=a+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>o&&(e=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!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&&B(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&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:e.slides;s=e.slideTo(t.length-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;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):w(n,i())[0];return!s&&t.params.createElements&&(s=_("div",t.params.wrapperClass),n.append(s),w(n,`.${t.params.slideClass}`).forEach(e=>{s.append(e)})),Object.assign(t,{el:n,wrapperEl:s,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===x(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===x(n,"direction")),wrongRTL:"-webkit-box"===x(s,"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+t.virtual.slidesBefore,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?B(t,e):e.addEventListener("load",e=>{B(t,e.target)})}),$(t),t.initialized=!0,$(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),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){v(ce,e)}static get extendedDefaults(){return ce}static get defaults(){return oe}static installModule(e){de.prototype.__modules__||(de.prototype.__modules__=[]);const t=de.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>de.installModule(e)),de):(de.installModule(e),de)}}function ue({swiper:e,extendParams:t,on:n,emit:i}){const s=c(),r=u();function o(t){if(!e.enabled)return;const{rtlTranslate:n}=e;let o=t;o.originalEvent&&(o=o.originalEvent);const a=o.keyCode||o.charCode,l=e.params.keyboard.pageUpDown,c=l&&33===a,d=l&&34===a,u=37===a,h=39===a,p=38===a,f=40===a;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(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey)return;if(s.activeElement&&(s.activeElement.isContentEditable||s.activeElement.nodeName&&("input"===s.activeElement.nodeName.toLowerCase()||"textarea"===s.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(c||d||u||h||p||f)){let t=!1;if(T(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===T(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,s=i.clientWidth,o=i.clientHeight,a=r.innerWidth,l=r.innerHeight,c=E(i);n&&(c.left-=i.scrollLeft);const d=[[c.left,c.top],[c.left+s,c.top],[c.left,c.top+o],[c.left+s,c.top+o]];for(let e=0;e<d.length;e+=1){const n=d[e];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const m=e.params.keyboard.speed;e.isHorizontal()?((c||d||u||h)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),((d||h)&&!n||(c||u)&&n)&&e.slideNext(m),((c||u)&&!n||(d||h)&&n)&&e.slidePrev(m)):((c||d||p||f)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),(d||f)&&e.slideNext(m),(c||p)&&e.slidePrev(m)),i("keyPress",a)}function a(){e.keyboard.enabled||(s.addEventListener("keydown",o),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(s.removeEventListener("keydown",o),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),n("init",()=>{e.params.keyboard.enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:a,disable:l})}function he({swiper:e,extendParams:t,on:n,emit:i}){const s=u();let r;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,a=f();const l=[];function c(){e.enabled&&(e.mouseEntered=!0)}function d(){e.enabled&&(e.mouseEntered=!1)}function h(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&f()-a<e.params.mousewheel.thresholdTime||!(t.delta>=6&&f()-a<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)),a=(new s.Date).getTime(),1))}function m(t){let n=t,s=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const a=e.params.mousewheel;e.params.cssMode&&n.preventDefault();let c=e.el;"container"!==e.params.mousewheel.eventsTarget&&(c=document.querySelector(e.params.mousewheel.eventsTarget));const d=c&&c.contains(n.target);if(!e.mouseEntered&&!d&&!a.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let u=0;const m=e.rtlTranslate?-1:1,g=function(e){let t=0,n=0,i=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,s=10*n,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(i=e.deltaX),e.shiftKey&&!i&&(i=s,s=0),(i||s)&&e.deltaMode&&(1===e.deltaMode?(i*=40,s*=40):(i*=800,s*=800)),i&&!t&&(t=i<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:s}}(n);if(a.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;u=-g.pixelX*m}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;u=-g.pixelY}else u=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY;if(0===u)return!0;a.invert&&(u=-u);let v=e.getTranslate()+u*a.sensitivity;if(v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),s=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),s&&e.params.nested&&n.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:f(),delta:Math.abs(u),direction:Math.sign(u)},s=o&&t.time<o.time+500&&t.delta<=o.delta&&t.direction===o.direction;if(!s){o=void 0;let c=e.getTranslate()+u*a.sensitivity;const d=e.isBeginning,h=e.isEnd;if(c>=e.minTranslate()&&(c=e.minTranslate()),c<=e.maxTranslate()&&(c=e.maxTranslate()),e.setTransition(0),e.setTranslate(c),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!d&&e.isBeginning||!h&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=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&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=u>0?.8:.2;o=t,l.splice(0),r=p(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}r||(r=p(()=>{!e.destroyed&&e.params&&(o=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}if(s||i("scroll",n),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),a.releaseOnEdges&&(c===e.minTranslate()||c===e.maxTranslate()))return!0}}else{const n={time:f(),delta:Math.abs(u),direction:Math.sign(u),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=e.params.mousewheel;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.preventDefault?n.preventDefault():n.returnValue=!1,!1}function g(t){let n=e.el;"container"!==e.params.mousewheel.eventsTarget&&(n=document.querySelector(e.params.mousewheel.eventsTarget)),n[t]("mouseenter",c),n[t]("mouseleave",d),n[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(event,m),!0):!!e.mousewheel.enabled&&(g("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:v,disable:b})}function pe(e,t,n,i){return e.params.createElements&&Object.keys(i).forEach(s=>{if(!n[s]&&!0===n.auto){let r=w(e.el,`.${i[s]}`)[0];r||(r=_("div",i[s]),r.className=i[s],e.el.append(r)),n[s]=r,t[s]=r}}),n}Object.keys(le).forEach(e=>{Object.keys(le[e]).forEach(t=>{de.prototype[t]=le[e][t]})}),de.use([function({swiper:e,on:t,emit:n}){const i=u();let s=null,r=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},a=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==i.ResizeObserver?e&&!e.destroyed&&e.initialized&&(s=new ResizeObserver(t=>{r=i.requestAnimationFrame(()=>{const{width:n,height:i}=e;let s=n,r=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{i&&i!==e.el||(s=n?n.width:(t[0]||t).inlineSize,r=n?n.height:(t[0]||t).blockSize)}),s===n&&r===i||o()})}),s.observe(e.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",a))}),t("destroy",()=>{r&&i.cancelAnimationFrame(r),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",a)})},function({swiper:e,extendParams:t,on:n,emit:i}){const s=[],r=u(),o=(t,n={})=>{const o=new(r.MutationObserver||r.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void i("observerUpdate",t[0]);const n=function(){i("observerUpdate",t[0])};r.requestAnimationFrame?r.requestAnimationFrame(n):r.setTimeout(n,0)});o.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}),s.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=T(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{s.forEach(e=>{e.disconnect()}),s.splice(0,s.length)})}]);const fe='<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>';function me({swiper:e,extendParams:t,on:n,emit:i}){function s(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 r(t,n){const i=e.params.navigation;(t=k(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 o(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return r(n,!1),void r(t,!1);r(n,e.isBeginning&&!e.params.rewind),r(t,e.isEnd&&!e.params.rewind)}function a(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=pe(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=s(t.nextEl),i=s(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i}),n=k(n),i=k(i);const r=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");O(e,fe),n.appendChild(e.querySelector("svg")),e.remove()}n.addEventListener("click","next"===i?l:a)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>r(e,"next")),i.forEach(e=>r(e,"prev"))}function d(){let{nextEl:t,prevEl:n}=e.navigation;t=k(t),n=k(n);const i=(t,n)=>{t.removeEventListener("click","next"===n?l:a),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>i(e,"next")),n.forEach(e=>i(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:fe},n("init",()=>{!1===e.params.navigation.enabled?u():(c(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;t=k(t),n=k(n),e.enabled?o():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:s,prevEl:r}=e.navigation;s=k(s),r=k(r);const o=n.target;let a=r.includes(o)||s.includes(o);if(e.isElement&&!a){const e=n.path||n.composedPath&&n.composedPath();e&&(a=e.find(e=>s.includes(e)||r.includes(e)))}if(e.params.navigation.hideOnClick&&!a){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;s.length?t=s[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(t=r[0].classList.contains(e.params.navigation.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...s,...r].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),o()},disable:u,update:o,init:c,destroy:d})}function ge(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function ve({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.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function l(t,n){const{bulletActiveClass:i}=e.params.pagination;t&&(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${i}-${n}`),(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&t.classList.add(`${i}-${n}-${n}`))}function c(t){const n=t.target.closest(ge(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();const i=C(n)*e.params.slidesPerGroup;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 d(){const t=e.rtl,n=e.params.pagination;if(a())return;let s,c,d=e.pagination.el;d=k(d);const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,h=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,s=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(s=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,s=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a,u,h;if(n.dynamicBullets&&(r=A(i[0],e.isHorizontal()?"width":"height"),d.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=r*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==c&&(o+=s-(c||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),a=Math.max(s-o,0),u=a+(Math.min(i.length,n.dynamicMainBullets)-1),h=(u+a)/2),i.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)i.forEach(t=>{const i=C(t);i===s?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&(i>=a&&i<=u&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===a&&l(t,"prev"),i===u&&l(t,"next"))});else{const t=i[s];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===s?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[a],t=i[u];for(let e=a;e<=u;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));l(e,"prev"),l(t,"next")}}if(n.dynamicBullets){const s=Math.min(i.length,n.dynamicMainBullets+4),o=(r*s-r)/2-h*r,a=t?"right":"left";i.forEach(t=>{t.style[e.isHorizontal()?a:"top"]=`${o}px`})}}d.forEach((t,r)=>{if("fraction"===n.type&&(t.querySelectorAll(ge(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(s+1)}),t.querySelectorAll(ge(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(h)})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const r=(s+1)/h;let o=1,a=1;"horizontal"===i?o=r:a=r,t.querySelectorAll(ge(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(O(t,n.renderCustom(e,s+1,h)),0===r&&i("paginationRender",t)):(0===r&&i("paginationRender",t),i("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function u(){const t=e.params.pagination;if(a())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let s=e.pagination.el;s=k(s);let r="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&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&&O(n,r||""),"bullets"===t.type&&e.pagination.bullets.push(...n.querySelectorAll(ge(t.bulletClass)))}),"custom"!==t.type&&i("paginationRender",s[0])}function h(){e.params.pagination=pe(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n;"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&&0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>T(t,".swiper")[0]===e.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=k(n),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",c),e.enabled||n.classList.add(t.lockClass)}))}function p(){const t=e.params.pagination;if(a())return;let n=e.pagination.el;n&&(n=k(n),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",c))})),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=e.params.pagination;let{el:n}=e.pagination;n=k(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.pagination.enabled?f():(h(),u(),d())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&d()}),n("snapIndexChange",()=>{d()}),n("snapGridLengthChange",()=>{u(),d()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{el:t}=e.pagination;t&&(t=k(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{d()}),n("click",(t,n)=>{const s=n.target,r=k(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&r&&r.length>0&&!s.classList.contains(e.params.pagination.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(e.params.pagination.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=k(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),p()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=k(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),h(),u(),d()},disable:f,render:u,update:d,init:h,destroy:p})}function be({swiper:e,extendParams:t,on:n,emit:i}){const s=c();let r,o,a,l,d=!1,u=null,f=null;function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:n}=e,{dragEl:i,el:s}=t,r=e.params.scrollbar,l=e.params.loop?e.progressLoop:e.progress;let c=o,d=(a-o)*l;n?(d=-d,d>0?(c=o-d,d=0):-d+o>a&&(c=a+d)):d<0?(c=o+d,d=0):d+o>a&&(c=a-d),e.isHorizontal()?(i.style.transform=`translate3d(${d}px, 0, 0)`,i.style.width=`${c}px`):(i.style.transform=`translate3d(0px, ${d}px, 0)`,i.style.height=`${c}px`),r.hide&&(clearTimeout(u),s.style.opacity=1,u=setTimeout(()=>{s.style.opacity=0,s.style.transitionDuration="400ms"},1e3))}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{dragEl:n,el:i}=t;n.style.width="",n.style.height="",a=e.isHorizontal()?i.offsetWidth:i.offsetHeight,l=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),o="auto"===e.params.scrollbar.dragSize?a*l:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n.style.width=`${o}px`:n.style.height=`${o}px`,i.style.display=l>=1?"none":"",e.params.scrollbar.hide&&(i.style.opacity=0),e.params.watchOverflow&&e.enabled&&t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function v(t){return e.isHorizontal()?t.clientX:t.clientY}function b(t){const{scrollbar:n,rtlTranslate:i}=e,{el:s}=n;let l;l=(v(t)-E(s)[e.isHorizontal()?"left":"top"]-(null!==r?r:o/2))/(a-o),l=Math.max(Math.min(l,1),0),i&&(l=1-l);const c=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*l;e.updateProgress(c),e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}function y(t){const n=e.params.scrollbar,{scrollbar:s,wrapperEl:o}=e,{el:a,dragEl:l}=s;d=!0,r=t.target===l?v(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.style.transitionDuration="100ms",l.style.transitionDuration="100ms",b(t),clearTimeout(f),a.style.transitionDuration="0ms",n.hide&&(a.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",t)}function w(t){const{scrollbar:n,wrapperEl:s}=e,{el:r,dragEl:o}=n;d&&(t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1,b(t),s.style.transitionDuration="0ms",r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function S(t){const n=e.params.scrollbar,{scrollbar:s,wrapperEl:r}=e,{el:o}=s;d&&(d=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",r.style.transitionDuration=""),n.hide&&(clearTimeout(f),f=p(()=>{o.style.opacity=0,o.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function x(t){const{scrollbar:n,params:i}=e,r=n.el;if(!r)return;const o=r,a=!!i.passiveListeners&&{passive:!1,capture:!1},l=!!i.passiveListeners&&{passive:!0,capture:!1};if(!o)return;const c="on"===t?"addEventListener":"removeEventListener";o[c]("pointerdown",y,a),s[c]("pointermove",w,a),s[c]("pointerup",S,l)}function C(){const{scrollbar:t,el:n}=e;e.params.scrollbar=pe(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=e.params.scrollbar;if(!i.el)return;let r,o;if("string"==typeof i.el&&e.isElement&&(r=e.el.querySelector(i.el)),r||"string"!=typeof i.el)r||(r=i.el);else if(r=s.querySelectorAll(i.el),!r.length)return;e.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===n.querySelectorAll(i.el).length&&(r=n.querySelector(i.el)),r.length>0&&(r=r[0]),r.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass),r&&(o=r.querySelector(ge(e.params.scrollbar.dragClass)),o||(o=_("div",e.params.scrollbar.dragClass),r.append(o))),Object.assign(t,{el:r,dragEl:o}),i.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&x("on"),r&&r.classList[e.enabled?"remove":"add"](...h(e.params.scrollbar.lockClass))}function T(){const t=e.params.scrollbar,n=e.scrollbar.el;n&&n.classList.remove(...h(e.isHorizontal()?t.horizontalClass:t.verticalClass)),e.params.scrollbar.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=e.params.scrollbar;let{el:n}=e.scrollbar;n=k(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.scrollbar.enabled?A():(C(),g(),m())}),n("update resize observerUpdate lock unlock changeDirection",()=>{g()}),n("setTranslate",()=>{m()}),n("setTransition",(t,n)=>{!function(t){e.params.scrollbar.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"](...h(e.params.scrollbar.lockClass))}),n("destroy",()=>{T()});const A=()=>{e.el.classList.add(...h(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...h(e.params.scrollbar.scrollbarDisabledClass)),T()};Object.assign(e.scrollbar,{enable:()=>{e.el.classList.remove(...h(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...h(e.params.scrollbar.scrollbarDisabledClass)),C(),g(),m()},disable:A,updateSize:g,setTranslate:m,init:C,destroy:T})}function ye({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,r=null,o=(new Date).getTime();function a(e){const t=r;0!==t.length&&O(t,e)}function l(e){(e=k(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){(e=k(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=k(e)).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){(e=k(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){(e=k(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){(e=k(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function m(e){(e=k(e)).forEach(e=>{e.removeAttribute("aria-disabled")})}function g(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y,i=t.target;if(!e.pagination||!e.pagination.el||i!==e.pagination.el&&!e.pagination.el.contains(t.target)||t.target.matches(ge(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=k(e.navigation.prevEl);k(e.navigation.nextEl).includes(i)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(n.lastSlideMessage):a(n.nextSlideMessage)),t.includes(i)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(n.firstSlideMessage):a(n.prevSlideMessage))}e.pagination&&i.matches(ge(e.params.pagination.bulletClass))&&i.click()}}function v(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function b(){return v()&&e.params.pagination.clickable}const y=(e,t,n)=>{l(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n)},w=t=>{s&&s!==t.target&&!s.contains(t.target)&&(i=!0),e.a11y.clicked=!0},S=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},E=e=>{o=(new Date).getTime()},x=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;s=n;const r=e.virtual&&e.params.virtual.enabled,a=(r?parseInt(n.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(n))===e.activeIndex,l=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);a||l||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):r?e.slideTo(e.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(n)),0),i=!1)}))},T=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&h(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length;t.slideLabelMessage&&e.slides.forEach((i,s)=>{const r=e.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):s;p(i,t.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,n))})};n("beforeInit",()=>{r=_("span",e.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&(()=>{const t=e.params.a11y;e.el.append(r);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,s=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,a,l;o=s,k(i).forEach(e=>{e.setAttribute("id",o)}),t.wrapperLiveRegion&&(a=i,l=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite",(a=k(a)).forEach(e=>{e.setAttribute("aria-live",l)})),T();let{nextEl:d,prevEl:f}=e.navigation?e.navigation:{};d=k(d),f=k(f),d&&d.forEach(e=>y(e,0,t.nextSlideMessage)),f&&f.forEach(e=>y(e,0,t.prevSlideMessage)),b()&&k(e.pagination.el).forEach(e=>{e.addEventListener("keydown",g)}),c().addEventListener("visibilitychange",E),e.el.addEventListener("focus",x,!0),e.el.addEventListener("pointerdown",w,!0),e.el.addEventListener("pointerup",S,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&T()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.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),l(n))),t&&(e.isEnd?(f(t),d(t)):(m(t),l(t)))}()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;v()&&e.pagination.bullets.forEach(n=>{e.params.pagination.clickable&&(l(n),e.params.pagination.renderBullet||(u(n,"button"),p(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,C(n)+1)))),n.matches(ge(e.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),n("destroy",()=>{e.params.a11y.enabled&&function(){r&&r.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=k(t),n=k(n),t&&t.forEach(e=>e.removeEventListener("keydown",g)),n&&n.forEach(e=>e.removeEventListener("keydown",g)),b()&&k(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)}),c().removeEventListener("visibilitychange",E),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",x,!0),e.el.removeEventListener("pointerdown",w,!0),e.el.removeEventListener("pointerup",S,!0))}()})}function we({swiper:e,extendParams:t,on:n,emit:i,params:s}){let r,o;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,d,u,h,p,f,m=s&&s.autoplay?s.autoplay.delay:3e3,g=s&&s.autoplay?s.autoplay.delay:3e3,v=(new Date).getTime();function b(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),f||t.detail&&t.detail.bySwiperTouchMove||C())}const y=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(g=a,l=!1);const t=e.autoplay.paused?a:v+g-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/m),o=requestAnimationFrame(()=>{y()})},w=()=>{let t=e.params.autoplay.delay;const n=(()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],t)return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(n)&&n>0&&(t=n),t},S=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),y();let n=t;void 0===n&&(n=w(),m=n,g=n),a=n;const s=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),i("autoplay")):e.params.autoplay.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")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,s,!0,!0),i("autoplay")),e.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{S()})))};return n>0?(clearTimeout(r),r=setTimeout(()=>{l()},n)):requestAnimationFrame(()=>{l()}),n},_=()=>{v=(new Date).getTime(),e.autoplay.running=!0,S(),i("autoplayStart")},E=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(o),i("autoplayStop")},x=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),t||(p=!0);const s=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):C()};if(e.autoplay.paused=!0,n)return void s();const o=a||e.params.autoplay.delay;a=o-((new Date).getTime()-v),e.isEnd&&a<0&&!e.params.loop||(a<0&&(a=0),s())},C=()=>{e.isEnd&&a<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=(new Date).getTime(),p?(p=!1,S(a)):S(),e.autoplay.paused=!1,i("autoplayResume"))},T=()=>{if(e.destroyed||!e.autoplay.running)return;const t=c();"hidden"===t.visibilityState&&(p=!0,x(!0)),"visible"===t.visibilityState&&C()},A=t=>{"mouse"===t.pointerType&&(p=!0,f=!0,e.animating||e.autoplay.paused||x(!0))},k=t=>{"mouse"===t.pointerType&&(f=!1,e.autoplay.paused&&C())};n("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",A),e.el.addEventListener("pointerleave",k)),c().addEventListener("visibilitychange",T),_())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",A),e.el.removeEventListener("pointerleave",k)),c().removeEventListener("visibilitychange",T),e.autoplay.running&&E()}),n("_freeModeStaticRelease",()=>{(u||p)&&C()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?E():x(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?x(!0,!0):E())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?E():(d=!0,u=!1,p=!1,h=setTimeout(()=>{p=!0,u=!0,x(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&d){if(clearTimeout(h),clearTimeout(r),e.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&e.params.cssMode&&C(),u=!1,d=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(a=w(),m=w())}),Object.assign(e.autoplay,{start:_,stop:E,pause:x,resume:C})}function Se({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 _e="top",Ee="bottom",xe="right",Ce="left",Te="auto",Ae=[_e,Ee,xe,Ce],ke="start",Oe="end",Le="viewport",De="popper",Me=Ae.reduce(function(e,t){return e.concat([t+"-"+ke,t+"-"+Oe])},[]),Pe=[].concat(Ae,[Te]).reduce(function(e,t){return e.concat([t,t+"-"+ke,t+"-"+Oe])},[]),Ie=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Re(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ze(e){return e instanceof Re(e).Element||e instanceof Element}function Fe(e){return e instanceof Re(e).HTMLElement||e instanceof HTMLElement}function Be(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Re(e).ShadowRoot||e instanceof ShadowRoot)}var He={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];Fe(s)&&Ne(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},{});Fe(i)&&Ne(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function $e(e){return e.split("-")[0]}var Ve=Math.max,je=Math.min,qe=Math.round;function We(){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 Ue(){return!/^((?!chrome|android).)*safari/i.test(We())}function Ge(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&Fe(e)&&(s=e.offsetWidth>0&&qe(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&qe(i.height)/e.offsetHeight||1);var o=(ze(e)?Re(e):window).visualViewport,a=!Ue()&&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 Ye(e){var t=Ge(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 Xe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Be(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ke(e){return Re(e).getComputedStyle(e)}function Je(e){return["table","td","th"].indexOf(Ne(e))>=0}function Qe(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ze(e){return"html"===Ne(e)?e:e.assignedSlot||e.parentNode||(Be(e)?e.host:null)||Qe(e)}function et(e){return Fe(e)&&"fixed"!==Ke(e).position?e.offsetParent:null}function tt(e){for(var t=Re(e),n=et(e);n&&Je(n)&&"static"===Ke(n).position;)n=et(n);return n&&("html"===Ne(n)||"body"===Ne(n)&&"static"===Ke(n).position)?t:n||function(e){var t=/firefox/i.test(We());if(/Trident/i.test(We())&&Fe(e)&&"fixed"===Ke(e).position)return null;var n=Ze(e);for(Be(n)&&(n=n.host);Fe(n)&&["html","body"].indexOf(Ne(n))<0;){var i=Ke(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 nt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function it(e,t,n){return Ve(e,je(t,n))}function st(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function rt(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ot={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=$e(n.placement),l=nt(a),c=[Ce,xe].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return st("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:rt(e,Ae))}(s.padding,n),u=Ye(r),h="y"===l?_e:Ce,p="y"===l?Ee:xe,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],g=tt(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],S=v/2-u[c]/2+b,_=it(y,S,w),E=l;n.modifiersData[i]=((t={})[E]=_,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)))&&Xe(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function at(e){return e.split("-")[1]}var lt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ct(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=Ce,w=_e,S=window;if(c){var _=tt(n),E="clientHeight",x="clientWidth";_===Re(n)&&"static"!==Ke(_=Qe(n)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),(s===_e||(s===Ce||s===xe)&&r===Oe)&&(w=Ee,m-=(u&&_===S&&S.visualViewport?S.visualViewport.height:_[E])-i.height,m*=l?1:-1),s!==Ce&&(s!==_e&&s!==Ee||r!==Oe)||(y=xe,p-=(u&&_===S&&S.visualViewport?S.visualViewport.width:_[x])-i.width,p*=l?1:-1)}var C,T=Object.assign({position:a},c&<),A=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:qe(n*s)/s||0,y:qe(i*s)/s||0}}({x:p,y:m},Re(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=(S.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 dt={passive:!0},ut={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=Re(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,dt)}),a&&l.addEventListener("resize",n.update,dt),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,dt)}),a&&l.removeEventListener("resize",n.update,dt)}},data:{}},ht={left:"right",right:"left",bottom:"top",top:"bottom"};function pt(e){return e.replace(/left|right|bottom|top/g,function(e){return ht[e]})}var ft={start:"end",end:"start"};function mt(e){return e.replace(/start|end/g,function(e){return ft[e]})}function gt(e){var t=Re(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vt(e){return Ge(Qe(e)).left+gt(e).scrollLeft}function bt(e){var t=Ke(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function yt(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Fe(e)&&bt(e)?e:yt(Ze(e))}function wt(e,t){var n;void 0===t&&(t=[]);var i=yt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=Re(i),o=s?[r].concat(r.visualViewport||[],bt(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(wt(Ze(o)))}function St(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _t(e,t,n){return t===Le?St(function(e,t){var n=Re(e),i=Qe(e),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=Ue();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+vt(e),y:l}}(e,n)):ze(t)?function(e,t){var n=Ge(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):St(function(e){var t,n=Qe(e),i=gt(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=Ve(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Ve(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+vt(e),l=-i.scrollTop;return"rtl"===Ke(s||n).direction&&(a+=Ve(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(Qe(e)))}function Et(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?$e(s):null,o=s?at(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case _e:t={x:a,y:n.y-i.height};break;case Ee:t={x:a,y:n.y+n.height};break;case xe:t={x:n.x+n.width,y:l};break;case Ce:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?nt(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case ke:t[c]=t[c]-(n[d]/2-i[d]/2);break;case Oe:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function xt(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?Le:c,u=n.elementContext,h=void 0===u?De:u,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=st("number"!=typeof g?g:rt(g,Ae)),b=h===De?"reference":De,y=e.rects.popper,w=e.elements[f?b:h],S=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=wt(Ze(e)),n=["absolute","fixed"].indexOf(Ke(e).position)>=0&&Fe(e)?tt(e):e;return ze(n)?t.filter(function(e){return ze(e)&&Xe(e,n)&&"body"!==Ne(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(t,n){var s=_t(e,n,i);return t.top=Ve(s.top,t.top),t.right=je(s.right,t.right),t.bottom=je(s.bottom,t.bottom),t.left=Ve(s.left,t.left),t},_t(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}(ze(w)?w:w.contextElement||Qe(e.elements.popper),l,d,o),_=Ge(e.elements.reference),E=Et({reference:_,element:y,placement:s}),x=St(Object.assign({},y,E)),C=h===De?x:_,T={top:S.top-C.top+v.top,bottom:C.bottom-S.bottom+v.bottom,left:S.left-C.left+v.left,right:C.right-S.right+v.right},A=e.modifiersData.offset;if(h===De&&A){var k=A[s];Object.keys(T).forEach(function(e){var t=[xe,Ee].indexOf(e)>=0?1:-1,n=[_e,Ee].indexOf(e)>=0?"y":"x";T[e]+=k[n]*t})}return T}function Ct(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?Pe:l,d=at(i),u=d?a?Me:Me.filter(function(e){return at(e)===d}):Ae,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]=xt(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[$e(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Tt={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=$e(g),b=l||(v!==g&&f?function(e){if($e(e)===Te)return[];var t=pt(e);return[mt(e),t,mt(t)]}(g):[pt(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat($e(n)===Te?Ct(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,S=t.rects.popper,_=new Map,E=!0,x=y[0],C=0;C<y.length;C++){var T=y[C],A=$e(T),k=at(T)===ke,O=[_e,Ee].indexOf(A)>=0,L=O?"width":"height",D=xt(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),M=O?k?xe:Ce:k?Ee:_e;w[L]>S[L]&&(M=pt(M));var P=pt(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}_.set(T,I)}if(E)for(var N=function(e){var t=y.find(function(t){var n=_.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 At(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 kt(e){return[_e,xe,Ee,Ce].some(function(t){return e[t]>=0})}var Ot={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=xt(t,{elementContext:"reference"}),a=xt(t,{altBoundary:!0}),l=At(o,i),c=At(a,s,r),d=kt(l),u=kt(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})}},Lt={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=Pe.reduce(function(e,n){return e[n]=function(e,t,n){var i=$e(e),s=[Ce,_e].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,[Ce,xe].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}},Dt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Et({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Mt={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=xt(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=$e(t.placement),b=at(t.placement),y=!b,w=nt(v),S="x"===w?"y":"x",_=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(_){if(r){var O,L="y"===w?_e:Ce,D="y"===w?Ee:xe,M="y"===w?"height":"width",P=_[w],I=P+g[L],N=P-g[D],R=p?-x[M]/2:0,z=b===ke?E[M]:x[M],F=b===ke?-x[M]:-E[M],B=t.elements.arrow,H=p&&B?Ye(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=it(0,E[M],H[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:F+q+j+T.mainAxis,G=t.elements.arrow&&tt(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=it(p?je(I,P+W-X-Y):I,P,p?Ve(N,K):N);_[w]=J,k[w]=J-P}if(a){var Q,Z="x"===w?_e:Ce,ee="x"===w?Ee:xe,te=_[S],ne="y"===S?"height":"width",ie=te+g[Z],se=te-g[ee],re=-1!==[_e,Ce].indexOf(v),oe=null!=(Q=null==A?void 0:A[S])?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=it(e,t,n);return i>n?n:i}(ae,te,le):it(p?ae:ie,te,p?le:se);_[S]=ce,k[S]=ce-te}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function Pt(e,t,n){void 0===n&&(n=!1);var i,s,r=Fe(t),o=Fe(t)&&function(e){var t=e.getBoundingClientRect(),n=qe(t.width)/e.offsetWidth||1,i=qe(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Qe(t),l=Ge(e,o,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ne(t)||bt(a))&&(c=(i=t)!==Re(i)&&Fe(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:gt(i)),Fe(t)?((d=Ge(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=vt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function It(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 Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function Rt(){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 zt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?Nt:s;return function(e,t,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nt,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:ze(e)?wt(e):e.contextElement?wt(e.contextElement):[],popper:wt(t)};var o,c,h=function(e){var t=It(e);return Ie.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(Rt(t,n)){a.rects={reference:Pt(t,tt(n),"fixed"===a.options.strategy),popper:Ye(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(!Rt(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 Ft=zt({defaultModifiers:[ut,Dt,{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:$e(t.placement),variation:at(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,ct(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,ct(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:{}},He,Lt,Tt,Mt,ot,Ot]});function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht,$t={exports:{}},Vt=(Ht||(Ht=1,$t.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="",S="";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&&(S+=c),r&&(S+=r),f&&d&&(S+=d),S+=g,S+=w,o&&(S+=o),u&&(S=u(S,y)),S)}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)})}}()),$t.exports),jt=Bt(Vt);function qt(e){return e.charAt(0).toLowerCase()+e.slice(1)}const Wt={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 Ut{element;config;instance;trigger;rootContainer;transitioner;isOpen=!1;ignoreNextBlur=!1;constructor(e,t){return this.element=e,this.config={...Wt,...t},this.config.popperOptions={...Wt.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...Wt.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=Ft(this.trigger,this.element,this.config.popperOptions),this.transitioner=Se({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 Gt="carousel",Yt=`${Gt}__viewport-wrapper`,Xt=`${Gt}__track`,Kt=`${Gt}__slide`,Jt=`${Gt}__pagination-item`,Qt="is-active",Zt=`${Gt}--bleed-right`,en=`.${Gt}__viewport`,tn=`.${Xt}`,nn=`.${Gt}__prev`,sn=`.${Gt}__next`,rn=`.${Gt}__pagination`,on=`.${Gt}__scrollbar`,an=`.${Qt}`,ln={navigation:{nextEl:sn,prevEl:nn},pagination:{el:rn,clickable:!0,bulletClass:Jt,bulletActiveClass:Qt,renderBullet:(e,t)=>`<button aria-label="Page ${e+1}" role="tab" class="${t}" type="button"></button>`},scrollbar:{el:on,draggable:!0,enabled:!0,horizontalClass:`${Gt}__scrollbar-horizontal`,dragClass:`${Gt}__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:Xt,slideClass:Kt,slideActiveClass:Qt,slideNextClass:`${Gt}__slide-next`,slidePrevClass:`${Gt}__slide-prev`};class cn{element;config;viewport;track;instance;carouselId;isScrollbarDragging=!1;externalControlsState=null;resizeObserver;resizeRafId;boundWindowResizeHandler;bleedResizeHandler;static OVERFLOW_EPSILON_PX=1;getViewportWrapper(){return this.element.querySelector(`.${Yt}`)}getSlidesPerView(){return Number(this.instance?.params?.slidesPerView)||1}setScrollbarVisible(e){const t=this.element.querySelector(on);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(Zt)?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>cn.OVERFLOW_EPSILON_PX:this.instance.slides.length>this.getSlidesPerView()}constructor(e,t){return this.element=e,this.config={...ln,...t,scrollbar:{...ln.scrollbar??{},...t?.scrollbar??{},el:this.element.querySelector(on)}},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(Zt);this.instance=new de(this.viewport,{...this.config,watchOverflow:!e&&this.config.watchOverflow,enabled:!1,modules:[me,ve,be,ye,ue,he],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:()=>{this.updateExternalControlsState()},scrollbarDragStart:()=>{this.isScrollbarDragging=!0},scrollbarDragEnd:()=>{this.isScrollbarDragging=!1,this.updateExternalControlsState(!0)}}}),this.updateCarouselEnabledState(),this.element.classList.contains(Zt)&&(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(en),this.track=this.viewport.querySelector(tn);const e=this.element.querySelector(rn);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={navigation:{...this.config.navigation??{},nextEl:this.element.querySelector(sn),prevEl:this.element.querySelector(nn)},pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:Jt,bulletActiveClass:Qt}};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>cn.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(Zt)!==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(Zt,m);const S=f?void 0:t;this.instance.params.width=S,this.instance.originalParams&&(this.instance.originalParams.width=S),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(an),t=this.track.querySelectorAll(`.${Kt}:not(${an})`);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=Ut.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=Ut.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 dn="carousel-hero",un=`${dn}__slide`,hn=`${dn}__pagination-item`,pn=`${dn}__pagination-svg`,fn=`${dn}__pagination-circle`,mn="is-active",gn="is-playing",vn="is-paused",bn=`.${dn}__viewport`,yn=`.${dn}__prev`,wn=`.${dn}__next`,Sn=`.${dn}__play-pause`,_n=`.${dn}__tabs`,En=`.${dn}__tab`,xn=`.${dn}__pagination`,Cn={pagination:{clickable:!0,bulletClass:hn,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:`${dn}__track`,slideClass:un,slideActiveClass:mn},Tn="carousel-promotions",An=`${Tn}__pagination-item`,kn=`${Tn}__pagination-svg`,On=`${Tn}__pagination-circle`,Ln=`${Tn}--slide-inverted`,Dn="is-autoplay",Mn="is-active",Pn=`.${Tn}__viewport`,In=`.${Tn}__pagination`,Nn={pagination:{el:In,clickable:!0,bulletClass:An,bulletActiveClass:Mn,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:`${Tn}__track`,slideClass:`${Tn}__slide`,slideActiveClass:Mn,autoplay:!1};class Rn{element;config;viewport;instance;interval=0;autoplayTimer;resizeRafId;boundWindowResizeHandler;boundPaginationClickHandler;constructor(e,t){return this.element=e,this.config={...Nn,...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(Dn),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new de(this.viewport,{...this.config,modules:[me,ve,ye,ue,we],on:{slideChange:this.handleSlideChange,init:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()},update:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}}});const t=this.element.querySelector(In);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(Dn),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}handleSlideChange(){this.element.classList.remove(Ln),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(Ln)}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(Pn);const e=this.element.querySelector(In);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:An,bulletActiveClass:Mn}};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(`${In} > *`)).forEach(e=>e.setAttribute("type","button"))}static createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",kn),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",On),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}renderSvgDotsForAnimation(){const e=Array.from(this.element.querySelectorAll(`${In} > *`)),t=Rn.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(In);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 zn={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]}}]}},Fn="toggleTrigger",Bn={activeClass:"is-active",settingsAttr:"data-toggle"};class Hn{constructor(e,t){return this.element=e,this.config={...Bn,...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=$n({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(Fn,{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(Fn,{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,...Hn.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 $n(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 Vn={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]"},jn={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."},qn=(e,t)=>{const n=e.split(/\s+/).filter(Boolean);return n.includes(t)?e:[...n,t].join(" ")};var Wn,Un,Gn,Yn,Xn,Kn,Jn,Qn,Zn,ei,ti={},ni=[],ii=/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 ri(e){var t=e.parentNode;t&&t.removeChild(e)}function oi(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?Wn.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 ai(e,o,i,s,null)}function ai(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?++Gn:s};return null==s&&null!=Un.vnode&&Un.vnode(r),r}function li(e){return e.children}function ci(e,t){this.props=e,this.context=t}function di(e,t){if(null==t)return e.__?di(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?di(e):null}function ui(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 ui(e)}}function hi(e){(!e.__d&&(e.__d=!0)&&Yn.push(e)&&!pi.__r++||Kn!==Un.debounceRendering)&&((Kn=Un.debounceRendering)||Xn)(pi)}function pi(){for(var e;pi.__r=Yn.length;)e=Yn.sort(function(e,t){return e.__v.__b-t.__v.__b}),Yn=[],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,_i(o,s,i,t.__n,void 0!==o.ownerSVGElement,null!=s.__h?[r]:null,n,null==r?di(s):r,s.__h),Ei(n,s),s.__e!=r&&ui(s)))})}function fi(e,t,n,i,s,r,o,a,l,c){var d,u,h,p,f,m,g,v=i&&i.__k||ni,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?ai(null,p,null,null,p):Array.isArray(p)?ai(li,{children:p},null,null,null):p.__b>0?ai(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}_i(e,p,h=h||ti,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=mi(p,l,e):l=vi(e,p,h,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=di(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=di(i,d+1)),Ci(v[d],v[d]));if(g)for(d=0;d<g.length;d++)xi(g[d],g[++d],g[++d])}function mi(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?mi(i,t,n):vi(n,i,i,s,i.__e,t));return t}function gi(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){gi(e,t)}):t.push(e)),t}function vi(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 bi(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||ii.test(t)?n:n+"px"}function yi(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||bi(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||bi(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?Si:wi,r):e.removeEventListener(t,r?Si:wi,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 wi(e){this.l[e.type+!1](Un.event?Un.event(e):e)}function Si(e){this.l[e.type+!0](Un.event?Un.event(e):e)}function _i(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=Un.__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 ci(g,b),d.constructor=w,d.render=Ti),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=Un.__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===li&&null==c.key?c.props.children:c,fi(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&&Wn.call(e.childNodes),c=(u=n.props||ti).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||yi(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]||yi(e,r,t[r],n[r],i)}(e,h,u,s,a),d)t.__k=[];else if(f=t.props.children,fi(e,Array.isArray(f)?f:[f],t,n,i,s&&"foreignObject"!==p,r,o,r?r[0]:n.__k&&di(n,0),a),null!=r)for(f=r.length;f--;)null!=r[f]&&ri(r[f]);a||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===p&&!f||"option"===p&&f!==u.value)&&yi(e,"value",f,u.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&yi(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,s,r,o,l);(c=Un.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=r)&&(t.__e=a,t.__h=!!l,r[r.indexOf(a)]=null),Un.__e(e,t,n)}}function Ei(e,t){Un.__c&&Un.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Un.__e(e,t.__v)}})}function xi(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Un.__e(e,n)}}function Ci(e,t,n){var i,s;if(Un.unmount&&Un.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||xi(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Un.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&Ci(i[s],t,"function"!=typeof e.type);n||null==e.__e||ri(e.__e),e.__e=e.__d=void 0}function Ti(e,t,n){return this.constructor(e,n)}function Ai(e,t,n){var i,s;Un.__&&Un.__(e,t),i=t.__k,s=[],_i(t,e=t.__k=oi(li,null,[e]),i||ti,ti,void 0!==t.ownerSVGElement,i?null:t.firstChild?Wn.call(t.childNodes):null,s,i?i.__e:t.firstChild,!1),Ei(s,e)}Wn=ni.slice,Un={__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}},Gn=0,ci.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),hi(this))},ci.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),hi(this))},ci.prototype.render=li,Yn=[],Xn="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pi.__r=0,Jn=0;var ki=0,Oi=[],Li=Un.__b,Di=Un.__r,Mi=Un.diffed,Pi=Un.__c,Ii=Un.unmount;function Ni(e,t){Un.__h&&Un.__h(Zn,e,ki||t),ki=0;var n=Zn.__H||(Zn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ri(e){return ki=1,function(e,t){var n=Ni(Qn++,2);return n.t=e,n.__c||(n.__=[Wi(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=Zn),n.__}(Wi,e)}function zi(e,t){var n=Ni(Qn++,3);!Un.__s&&qi(n.__H,t)&&(n.__=e,n.__H=t,Zn.__H.__h.push(n))}function Fi(e){return ki=5,function(e,t){var n=Ni(Qn++,7);return qi(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function Bi(e){var t=Zn.context[e.__c],n=Ni(Qn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Zn)),t.props.value):e.__}function Hi(){for(var e;e=Oi.shift();)if(e.__P)try{e.__H.__h.forEach(Vi),e.__H.__h.forEach(ji),e.__H.__h=[]}catch(t){e.__H.__h=[],Un.__e(t,e.__v)}}Un.__b=function(e){Zn=null,Li&&Li(e)},Un.__r=function(e){Di&&Di(e),Qn=0;var t=(Zn=e.__c).__H;t&&(t.__h.forEach(Vi),t.__h.forEach(ji),t.__h=[])},Un.diffed=function(e){Mi&&Mi(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Oi.push(t)&&ei===Un.requestAnimationFrame||((ei=Un.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),$i&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);$i&&(t=requestAnimationFrame(n))})(Hi)),Zn=null},Un.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Vi),e.__h=e.__h.filter(function(e){return!e.__||ji(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Un.__e(n,e.__v)}}),Pi&&Pi(e,t)},Un.unmount=function(e){Ii&&Ii(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Vi(e)}catch(e){t=e}}),t&&Un.__e(t,n.__v))};var $i="function"==typeof requestAnimationFrame;function Vi(e){var t=Zn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Zn=t}function ji(e){var t=Zn;e.__c=e.__(),Zn=t}function qi(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Wi(e,t){return"function"==typeof t?t(e):t}function Ui(e,t){for(var n in t)e[n]=t[n];return e}function Gi(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 Yi(e){this.props=e}(Yi.prototype=new ci).isPureReactComponent=!0,Yi.prototype.shouldComponentUpdate=function(e,t){return Gi(this.props,e)||Gi(this.state,t)};var Xi=Un.__b;Un.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xi&&Xi(e)};var Ki="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ji(e){function t(t,n){var i=Ui({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Ki,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Qi=Un.__e;Un.__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);Qi(e,t,n)};var Zi=Un.unmount;function es(){this.__u=0,this.t=null,this.__b=null}function ts(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ns(){this.u=null,this.o=null}Un.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Zi&&Zi(e)},(es.prototype=new ci).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var s=ts(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)},es.prototype.componentWillUnmount=function(){this.t=[]},es.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=Ui({},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&&oi(li,null,e.fallback);return s&&(s.__h=null),[oi(li,null,t.__e?null:e.children),s]};var is=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]}};(ns.prototype=new ci).__e=function(e){var t=this,n=ts(t.__v),i=t.o.get(e);return i[0]++,function(s){var r=function(){t.props.revealOrder?(i.push(s),is(t,e,i)):s()};n?n(r):r()}},ns.prototype.render=function(e){this.u=null,this.o=new Map;var t=gi(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},ns.prototype.componentDidUpdate=ns.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){is(e,n,t)})};var ss="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rs=/^(?: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]/,os="undefined"!=typeof document,as=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};ci.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ci.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ls=Un.event;function cs(){}function ds(){return this.cancelBubble}function us(){return this.defaultPrevented}Un.event=function(e){return ls&&(e=ls(e)),e.persist=cs,e.isPropagationStopped=ds,e.isDefaultPrevented=us,e.nativeEvent=e};var hs={configurable:!0,get:function(){return this.class}},ps=Un.vnode;Un.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];os&&"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)&&!as(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&&rs.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=gi(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=gi(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&&(hs.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",hs))}e.$$typeof=ss,ps&&ps(e)};var fs=Un.__r;Un.__r=function(e){fs&&fs(e),e.__c};var ms={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 gs(...e){return e.join(" ").trim()}var vs={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 bs(e){return e instanceof Date&&!isNaN(e.valueOf())}function ys(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 ws(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 Ss(e,t){return!(!bs(e)||!bs(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function _s(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 Es,xs,Cs=(xs={__c:Es="__cC"+Jn++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[Es]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(hi)},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.__=xs.Consumer.contextType=xs,Ts=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:s,setView:r,handleKeyboardNavigation:o,focusedRef:a,view:l,disabledDayFn:c,locale:d}=Bi(Cs),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}(ys(n,t),ws(i,t))}(l,e));return oi("table",{className:t.table},oi("thead",null,oi("tr",{className:t.tableHeaderRow},u.map(e=>oi("th",{scope:"col",className:t.tableHeaderCell},oi("span",{className:t.srOnly},e.name),oi("span",{"aria-hidden":"true"},e.shortname))))),oi("tbody",null,h.map(e=>oi("tr",{className:t.tableRow},e.map(e=>{const n=i&&Ss(e,i),u=Ss(e,l),h=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),p=(f=e,Ss(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 oi("td",{role:"gridcell",className:t.tableCell},oi("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},oi("span",{className:t.srOnly},b),oi("span",{"aria-hidden":"true"},e.getDate())))})))))},As=Ji(({label:e,value:t,options:n,onChange:i,className:s,elemRef:r,...o},a)=>{const{classes:l}=Bi(Cs);return oi("label",null,oi("span",{className:"sr-only"},e),oi("select",{className:gs(l.select,s),onChange:e=>i(e),ref:a,...o},n?.map(e=>oi("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),ks=As;function Os(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var Ls=Ji((e,t)=>{const{l10n:n,min:i,max:s,view:r,setView:o,classes:a}=Bi(Cs),l=new Date(i).getFullYear(),c=new Date(s).getFullYear();return oi(ks,{label:n.year,options:Os(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})}),Ds=Ls,Ms=()=>{const{l10n:e,view:t,setView:n,classes:i}=Bi(Cs);return oi(ks,{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)}})},Ps=({min:e="1900-01-01",max:t="2100-12-31",classes:n=ms,l10n:i=vs,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]=Ri(s?new Date(s):new Date),[g,v]=Ri(s?new Date(s):void 0),[b,y]=Ri(!1),w=Fi(!0),S=Fi(),_=Fi(),E=Fi(),x=Fi(),C=Fi(),T=Fi();var A,k,O;zi(()=>{l(g),y(!1)},[g]),zi(()=>{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]),zi(()=>{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===S.current||w.current?w.current=!1:E.current.focus()},k=[b,x.current,E.current,S.current],O=Ni(Qn++,4),!Un.__s&&qi(O.__H,k)&&(O.__=A,O.__H=k,Zn.__h.push(O));const L=e=>_s(e,e.getMonth()-1),D=e=>_s(e,e.getMonth()+1),M=()=>{y(!b)},P=({type:e,children:t,...n})=>oi(e,n,t&&t.length&&t.map(e=>P(e)));return oi(Cs.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=ys(f,r)},End:()=>{t=ws(f,r)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{_.current.focus()},0))},focusedRef:_,disabledDayFn:a,locale:o}},oi("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:S}),oi("input",{type:"hidden",id:`${p}-value`,value:c(g),name:h}),oi("button",{type:"button","aria-controls":`${p}-dialog`,onClick:()=>M(),"aria-expanded":b,ref:E,className:n.toggleButton},u&&P(u),u?oi("span",{class:n.srOnly},i.openButton):i.openButton),oi("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:C,tabIndex:"-1"},oi("div",{className:"daypickr__content"},oi("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(o,{month:"long",year:"numeric"})),oi("div",{className:n.header},oi("div",{className:n.yearMonthWrapper},oi(Ds,{ref:x}),oi(Ms,null)),oi("div",{className:n.pagination},oi("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(L(f))}},i.prevMonth),oi("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(D(f))}},i.nextMonth))),oi(Ts,null),oi("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>M(),ref:T},i.closeButton))))},Is=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const s=({type:e,children:t,...n})=>oi(e,n,t&&t.length&&t.map(e=>s(e)));return oi(Cs.Provider,{value:{classes:t,l10n:n}},oi("input",{type:"text",disabled:!0,className:t.input}),oi("button",{type:"button",className:t.toggleButton,disabled:!0},e&&s(e),e?oi("span",{class:t.srOnly},n.openButton):n.openButton))};const Ns={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 Rs(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 zs(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 Rs(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)?Rs(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 Fs=Object.entries,Bs=Object.setPrototypeOf,Hs=Object.isFrozen,$s=Object.getPrototypeOf,Vs=Object.getOwnPropertyDescriptor;let js=Object.freeze,qs=Object.seal,Ws=Object.create,Us="undefined"!=typeof Reflect&&Reflect,Gs=Us.apply,Ys=Us.construct;js||(js=function(e){return e}),qs||(qs=function(e){return e}),Gs||(Gs=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)}),Ys||(Ys=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 Xs=gr(Array.prototype.forEach),Ks=gr(Array.prototype.lastIndexOf),Js=gr(Array.prototype.pop),Qs=gr(Array.prototype.push),Zs=gr(Array.prototype.splice),er=Array.isArray,tr=gr(String.prototype.toLowerCase),nr=gr(String.prototype.toString),ir=gr(String.prototype.match),sr=gr(String.prototype.replace),rr=gr(String.prototype.indexOf),or=gr(String.prototype.trim),ar=gr(Number.prototype.toString),lr=gr(Boolean.prototype.toString),cr="undefined"==typeof BigInt?null:gr(BigInt.prototype.toString),dr="undefined"==typeof Symbol?null:gr(Symbol.prototype.toString),ur=gr(Object.prototype.hasOwnProperty),hr=gr(Object.prototype.toString),pr=gr(RegExp.prototype.test),fr=(mr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ys(mr,t)});var mr;function gr(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 Gs(e,t,i)}}function vr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tr;if(Bs&&Bs(e,null),!er(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=n(s);e!==s&&(Hs(t)||(t[i]=e),s=e)}e[s]=!0}return e}function br(e){for(let t=0;t<e.length;t++)ur(e,t)||(e[t]=null);return e}function yr(e){const t=Ws(null);for(const i of Fs(e)){var n=zs(i,2);const s=n[0],r=n[1];ur(e,s)&&(er(r)?t[s]=br(r):r&&"object"==typeof r&&r.constructor===Object?t[s]=yr(r):t[s]=r)}return t}function wr(e,t){for(;null!==e;){const n=Vs(e,t);if(n){if(n.get)return gr(n.get);if("function"==typeof n.value)return gr(n.value)}e=$s(e)}return function(){return null}}const Sr=js(["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"]),_r=js(["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"]),Er=js(["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"]),xr=js(["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"]),Cr=js(["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"]),Tr=js(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ar=js(["#text"]),kr=js(["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"]),Or=js(["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"]),Lr=js(["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"]),Dr=js(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mr=qs(/{{[\w\W]*|^[\w\W]*}}/g),Pr=qs(/<%[\w\W]*|^[\w\W]*%>/g),Ir=qs(/\${[\w\W]*/g),Nr=qs(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rr=qs(/^aria-[\-\w]+$/),zr=qs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fr=qs(/^(?:\w+script|data):/i),Br=qs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hr=qs(/^html$/i),$r=qs(/^[a-z][.\w]*(-[.\w]+)+$/i),Vr=qs(/<[/\w!]/g),jr=qs(/<[/\w]/g),qr=qs(/<\/no(script|embed|frames)/i),Wr=qs(/\/>/i),Ur=function(){return"undefined"==typeof window?null:window},Gr=function(e,t,n,i){return ur(e,t)&&er(e[t])?vr(i.base?yr(i.base):{},e[t],i.transform):n};var Yr=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ur();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=wr(h,"cloneNode"),f=wr(h,"remove"),m=wr(h,"nextSibling"),g=wr(h,"childNodes"),v=wr(h,"parentNode"),b=wr(h,"shadowRoot"),y=wr(h,"attributes"),w=a&&a.prototype?wr(a.prototype,"nodeType"):null,S=a&&a.prototype?wr(a.prototype,"nodeName"):null;if("function"==typeof o){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let _,E,x="",C=!1,T=0;const A=function(){if(T>0)throw fr('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 _.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 Fs&&"function"==typeof v&&L&&void 0!==L.createHTMLDocument;const R=Mr,z=Pr,F=Ir,B=Nr,H=Rr,$=Fr,V=Br,j=$r;let q=zr,W=null;const U=vr({},[...Sr,..._r,...Er,...Cr,...Ar]);let G=null;const Y=vr({},[...kr,...Or,...Lr,...Dr]);let X=Object.seal(Ws(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(Ws(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=vr({},["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 Se=null;const _e=vr({},["audio","video","img","source","image","track"]);let Ee=null;const xe=vr({},["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=vr({},[Ce,Te,Ae],nr),Me=js(["mi","mo","mn","ms","mtext"]);let Pe=vr({},Me);const Ie=js(["annotation-xml"]);let Ne=vr({},Ie);const Re=vr({},["title","style","font","a","script"]);let ze=null;const Fe=["application/xhtml+xml","text/html"];let Be=null,He=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(He&&He===e)return;e&&"object"==typeof e||(e={}),e=yr(e),ze=-1===Fe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Be="application/xhtml+xml"===ze?nr:tr,W=Gr(e,"ALLOWED_TAGS",U,{transform:Be}),G=Gr(e,"ALLOWED_ATTR",Y,{transform:Be}),Le=Gr(e,"ALLOWED_NAMESPACES",De,{transform:nr}),Ee=Gr(e,"ADD_URI_SAFE_ATTR",xe,{transform:Be,base:xe}),Se=Gr(e,"ADD_DATA_URI_TAGS",_e,{transform:Be,base:_e}),ye=Gr(e,"FORBID_CONTENTS",we,{transform:Be}),K=Gr(e,"FORBID_TAGS",yr({}),{transform:Be}),J=Gr(e,"FORBID_ATTR",yr({}),{transform:Be}),be=!!ur(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?yr(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 pr(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:zr,ke="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,Pe=ur(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?yr(e.MATHML_TEXT_INTEGRATION_POINTS):vr({},Me),Ne=ur(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?yr(e.HTML_INTEGRATION_POINTS):vr({},Ie);const t=ur(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?yr(e.CUSTOM_ELEMENT_HANDLING):Ws(null);if(X=Ws(null),ur(t,"tagNameCheck")&&Ve(t.tagNameCheck)&&(X.tagNameCheck=t.tagNameCheck),ur(t,"attributeNameCheck")&&Ve(t.attributeNameCheck)&&(X.attributeNameCheck=t.attributeNameCheck),ur(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),qs(X),ie&&(ee=!1),ue&&(de=!0),be&&(W=vr({},Ar),G=Ws(null),!0===be.html&&(vr(W,Sr),vr(G,kr)),!0===be.svg&&(vr(W,_r),vr(G,Or),vr(G,Dr)),!0===be.svgFilters&&(vr(W,Er),vr(G,Or),vr(G,Dr)),!0===be.mathMl&&(vr(W,Cr),vr(G,Lr),vr(G,Dr))),Q.tagCheck=null,Q.attributeCheck=null,ur(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Q.tagCheck=e.ADD_TAGS:er(e.ADD_TAGS)&&(W===U&&(W=yr(W)),vr(W,e.ADD_TAGS,Be))),ur(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Q.attributeCheck=e.ADD_ATTR:er(e.ADD_ATTR)&&(G===Y&&(G=yr(G)),vr(G,e.ADD_ATTR,Be))),ur(e,"ADD_URI_SAFE_ATTR")&&er(e.ADD_URI_SAFE_ATTR)&&vr(Ee,e.ADD_URI_SAFE_ATTR,Be),ur(e,"FORBID_CONTENTS")&&er(e.FORBID_CONTENTS)&&(ye===we&&(ye=yr(ye)),vr(ye,e.FORBID_CONTENTS,Be)),ur(e,"ADD_FORBID_CONTENTS")&&er(e.ADD_FORBID_CONTENTS)&&(ye===we&&(ye=yr(ye)),vr(ye,e.ADD_FORBID_CONTENTS,Be)),ge&&(W["#text"]=!0),re&&vr(W,["html","head","body"]),W.table&&(vr(W,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw fr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw fr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=_;_=e.TRUSTED_TYPES_POLICY;try{x=k("")}catch(e){throw _=t,e}}else null===e.TRUSTED_TYPES_POLICY?(_=void 0,x=""):(void 0===_&&(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),_=E),_&&"string"==typeof x&&(x=k("")));js&&js(e),He=e},qe=vr({},[..._r,...Er,...xr]),We=vr({},[...Cr,...Tr]),Ue=function(e){Qs(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(f(e),!v(e))throw fr("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=[];Xs(t,t=>{Qs(e,t)}),Xs(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{Qs(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Qs(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=ir(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=_?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=sr(e,R," "),e=sr(e,z," "),sr(e,F," ")},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&&Xs(s,e=>{tt(e.content)&&Ze(e.content)})},et=function(e){const t=S?S(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&&Xs(e,e=>{e.call(n,t,i,He)})}const st=function(e){if(it(N.beforeSanitizeElements,e,null),et(e))return Ue(e),!0;const t=Be(S?S(e):e.nodeName);if(it(N.uponSanitizeElement,e,{tagName:t,allowedTags:W}),function(e,t){return!!(se&&e.hasChildNodes()&&!nt(e.firstElementChild)&&pr(Vr,e.textContent)&&pr(Vr,e.innerHTML))||!(!se||e.namespaceURI!==Ae||"style"!==t||!nt(e.firstElementChild))||7===e.nodeType||!(!se||8!==e.nodeType||!pr(jr,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&&pr(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=tr(e.tagName),i=tr(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)&&pr(qr,e.innerHTML))return Ue(e),!0;if(ie&&3===e.nodeType){const t=Qe(e.textContent);e.textContent!==t&&(Qs(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&&pr(B,t));else if(Z&&pr(H,t));else if(s){if(Ee[t]);else if(pr(q,sr(n,V,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==rr(n,"data:")||!Se[e])if(te&&!pr($,sr(n,V,"")));else if(n)return!1}else if(!(at(e)&&(X.tagNameCheck instanceof RegExp&&pr(X.tagNameCheck,e)||X.tagNameCheck instanceof Function&&X.tagNameCheck(e))&&(X.attributeNameCheck instanceof RegExp&&pr(X.attributeNameCheck,t)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(t,e))||"is"===t&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&pr(X.tagNameCheck,n)||X.tagNameCheck instanceof Function&&X.tagNameCheck(n))))return!1;return!0},ot=vr({},["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[tr(e)]&&pr(j,e)},lt=function(e,t,n,i){if(_&&"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 _.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):Js(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:or(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===rr(u,me)||(Ye(o,e),u=me+u),se&&pr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&ir(u,"href")?Ye(o,e):n.forceKeepAttr||(!n.keepAttr||!ne&&pr(Wr,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=S?S(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 ar(e);case"boolean":return lr(e);case"bigint":return cr?cr(e):"0";case"symbol":return dr?dr(e):"Symbol()";case"undefined":default:return hr(e);case"function":case"object":{if(null===e)return hr(e);const t=e,n=wr(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:hr(e)}return hr(e)}}}(e)))throw fr("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=yr(W)),N.uponSanitizeAttribute.length>0&&(G=yr(G)),n.removed=[];const l=ve&&"string"!=typeof e&&nt(e);if(l){const t=S?S(e):e.nodeName;if("string"==typeof t){const e=Be(t);if(!W[e]||K[e])throw fr("root node is forbidden and cannot be sanitized in-place")}if(et(e))throw fr("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 _&&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 Xs(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&&pr(Hr,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),ie&&(d=Qe(d)),_&&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(){He=null,oe=!1,ae=null,le=null,_=E,x=""},n.isValidAttribute=function(e,t,n){He||je({});const i=Be(e),s=Be(t);return rt(i,s,n)},n.addHook=function(e,t){"function"==typeof t&&ur(N,e)&&Qs(N[e],t)},n.removeHook=function(e,t){if(ur(N,e)){if(void 0!==t){const n=Ks(N[e],t);return-1===n?void 0:Zs(N[e],n,1)[0]}return Js(N[e])}},n.removeHooks=function(e){ur(N,e)&&(N[e]=[])},n.removeAllHooks=function(){N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Xr={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 `},Kr={nonEditableInput:!1,min:1,max:999,defaultValue:1};var Jr,Qr;function Zr(e){return"object"==typeof e&&"function"==typeof e.to}function eo(e){e.parentElement.removeChild(e)}function to(e){return null!=e}function no(e){e.preventDefault()}function io(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function so(e,t,n){n>0&&(lo(e,t),setTimeout(function(){co(e,t)},n))}function ro(e){return Math.max(Math.min(e,100),0)}function oo(e){return Array.isArray(e)?e:[e]}function ao(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function lo(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function co(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 uo(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 ho(e,t){return 100/(t-e)}function po(e,t,n){return 100*t/(e[n+1]-e[n])}function fo(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"}(Jr||(Jr={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(Qr||(Qr={}));var mo=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([oo(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]=po(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=fo(n,e),s=e[i-1],r=e[i],o=t[i-1],a=t[i];return o+function(e,t){return po(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([s,r],n)/ho(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=fo(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)*ho(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=fo(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=fo(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=fo(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(ao);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(!io(n="min"===e?0:"max"===e?100:parseFloat(e))||!io(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]=po([this.xVal[e],this.xVal[e+1]],t,0)/ho(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}(),go={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},vo={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"},bo=".__tooltips",yo=".__aria";function wo(e,t){if(!io(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function So(e,t){if(!io(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function _o(e,t){if(!io(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function Eo(e,t){if(!io(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function xo(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 mo(t,e.snap||!1,e.singleStep)}function Co(e,t){if(t=oo(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function To(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Ao(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function ko(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Oo(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 Lo(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 Do(e,t){if(!io(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Mo(e,t){if(!io(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 Po(e,t){var n;if(!io(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&&!io(t[0])&&!io(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 Io(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 No(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");Do(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 Ro(e,t){if(!1!==t)if(!0===t||Zr(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=oo(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!Zr(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function zo(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function Fo(e,t){if(!Zr(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function Bo(e,t){if(!function(e){return Zr(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function Ho(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function $o(e,t){e.documentElement=t}function Vo(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function jo(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 qo(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:go,format:go},n={step:{r:!1,t:wo},keyboardPageMultiplier:{r:!1,t:So},keyboardMultiplier:{r:!1,t:_o},keyboardDefaultStep:{r:!1,t:Eo},start:{r:!0,t:Co},connect:{r:!0,t:Oo},direction:{r:!0,t:Io},snap:{r:!1,t:To},animate:{r:!1,t:Ao},animationDuration:{r:!1,t:ko},range:{r:!0,t:xo},orientation:{r:!1,t:Lo},margin:{r:!1,t:Do},limit:{r:!1,t:Mo},padding:{r:!1,t:Po},behaviour:{r:!0,t:No},ariaFormat:{r:!1,t:Fo},format:{r:!1,t:Bo},tooltips:{r:!1,t:Ro},keyboardSupport:{r:!0,t:Ho},documentElement:{r:!1,t:$o},cssPrefix:{r:!0,t:Vo},cssClasses:{r:!0,t:jo},handleAttributes:{r:!1,t:zo}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:vo,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(s){if(to(e[s])||void 0!==i[s])n[s].t(t,to(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 Wo(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,S=t.documentElement||w.documentElement,_=w.body,E="rtl"===w.dir||1===t.ort?0:100;function x(e,t){var n=w.createElement("div");return t&&lo(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?lo(s,t.cssClasses.handleLower):n===t.handles-1&&lo(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"+bo),l.forEach(function(e){e&&eo(e)}),l=null)}function D(){L(),l=r.map(A),W("update"+bo,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&&(eo(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===Jr.Range||e.mode===Jr.Steps)return p.xVal;if(e.mode===Jr.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===Jr.Positions?M(e.values,e.stepped):e.mode===Jr.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,S=i[r+1],_=e.mode===Jr.Steps;for(_&&(o=p.xNumSteps[r]),o||(o=S-w),void 0===S&&(S=w),o=Math.max(o,1e-7),d=w;d<=S;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?Qr.LargeValue:_?Qr.SmallValue:Qr.NoValue,!r&&a&&d!==S&&(g=0),d===S&&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={})[Qr.None]="",s[Qr.NoValue]=t.cssClasses.valueNormal,s[Qr.LargeValue]=t.cssClasses.valueLarge,s[Qr.SmallValue]=t.cssClasses.valueSub,s),l=((r={})[Qr.None]="",r[Qr.NoValue]=t.cssClasses.markerNormal,r[Qr.LargeValue]=t.cssClasses.markerLarge,r[Qr.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 lo(o,t.cssClasses.pips),lo(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)!==Qr.None){var a=x(o,!1);a.className=u(r,t.cssClasses.marker),a.style[t.style]=e+"%",r>Qr.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||uo(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=uo(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=ro(c),t.dir?100-c:c}function F(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function B(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return H(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 H(e,n){n.handle&&(co(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){S.removeEventListener(e[0],e[1])}),0===v&&(co(h,t.cssClasses.drag),Q(),e.cursor&&(_.style.cursor="",_.removeEventListener("selectstart",no))),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,lo(i,t.cssClasses.active)),e.stopPropagation();var s=[],o=R(d.move,S,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,S,H,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",S,F,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers});s.push.apply(s,o.concat(a,l)),e.cursor&&(_.style.cursor=getComputedStyle(e.target).cursor,r.length>1&&lo(h,t.cssClasses.drag),_.addEventListener("selectstart",no,!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||so(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];lo(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===yo||e===bo}(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=ro(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,Oo(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=oo(e),r=void 0===m[0];n=void 0===n||n,t.animate&&!r&&so(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})}lo(c=h,t.cssClasses.target),0===t.dir?lo(c,t.cssClasses.ltr):lo(c,t.cssClasses.rtl),0===t.ort?lo(c,t.cssClasses.horizontal):lo(c,t.cssClasses.vertical),lo(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"+yo),W("update"+yo,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(yo),U(bo),Object.keys(t.cssClasses).forEach(function(e){co(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=qo(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(to(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 Uo=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=Wo(e,qo(t),t);return e.noUiSlider=n,n};const Go={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}},Yo={cycleDuration:4e3,delay:5e3},Xo=":not([inert]):not([inert] *)",Ko=':not([tabindex^="-"])',Jo=":not(:disabled)";var Qo=[`a[href]${Xo}${Ko}`,`area[href]${Xo}${Ko}`,`input:not([type="hidden"]):not([type="radio"])${Xo}${Ko}${Jo}`,`input[type="radio"]${Xo}${Ko}${Jo}`,`select${Xo}${Ko}${Jo}`,`textarea${Xo}${Ko}${Jo}`,`button${Xo}${Ko}${Jo}`,`details${Xo} > summary:first-of-type${Ko}`,`iframe${Xo}${Ko}`,`audio[controls]${Xo}${Ko}`,`video[controls]${Xo}${Ko}`,`[contenteditable]${Xo}${Ko}`,`[tabindex]${Xo}${Ko}`];function Zo(e){(e.querySelector("[autofocus]")||e).focus()}function ea(e,t){if(t&&ia(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=ta(e.shadowRoot,t);for(;n;){const e=ea(n,t);if(e)return e;n=na(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=ea(e,t);if(n)return n}}else{let n=ta(e,t);for(;n;){const e=ea(n,t);if(e)return e;n=na(n,t)}}return!t&&ia(e)?e:null}function ta(e,t){return t?e.firstElementChild:e.lastElementChild}function na(e,t){return t?e.nextElementSibling:e.previousElementSibling}const ia=e=>!e.shadowRoot?.delegatesFocus&&e.matches(Qo.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 ra(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=oa(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function oa(e){return e.assignedSlot||(e.parentNode?oa(e.parentNode):null)}const aa="data-a11y-dialog";class la{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(aa)||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():Zo(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=ra(`[${aa}-show="${this.id}"]`,t),i=ra(`[${aa}-hide="${this.id}"]`,t),s=ra(`[${aa}-hide]`,t)&&ra('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(ra('[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=ea(e,!0);return[t,t?ea(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();ra(`[aria-modal="true"], [${aa}-ignore-focus-trap]`,e)||Zo(this.$el)}}function ca(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new la(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",ca):ca());var da=["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(","),ua="undefined"==typeof Element,ha=ua?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pa=!ua&&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},fa=function(e){return"INPUT"===e.tagName},ma=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},ga=function(e,t){return!(t.disabled||function(e){return fa(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=ha.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ha.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return ma(e)}else{if("function"==typeof i){for(var o=e;e;){var a=e.parentElement,l=pa(e);if(a&&!a.shadowRoot&&!0===i(a))return ma(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&&pa(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=pa(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!!ha.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},va=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ha.call(e,da)&&function(e,t){return!(function(e){return function(e){return fa(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||pa(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||!ga(e,t))}(t,e)};const ba="--ods-modal-scrollbar-width",ya="data-lock-scrolltop";class wa{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),wa.moveToModalRoot=wa.moveToModalRoot.bind(this),wa.lockBody=wa.lockBody.bind(this),wa.unlockBody=wa.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}static getInstance(e){return e&&e.ODS_Modal||null}handleShow(e){wa.lockBody(),e&&e.classList.add(this.config.classModalIsOpen);const t=e.querySelector("[data-a11y-dialog-initial-focus]");t&&(va(t)||t.setAttribute("tabindex","-1"),t.focus())}handleHide(e){wa.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&&wa.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new la(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),wa.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(wa.isLocked)return;const n=wa.resolveBodyLockClassName(e,this),i=window.scrollY;document.body.setAttribute(ya,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(ba,`${s}px`),document.body.classList.add(n),wa.isLocked=!0}static unlockBody(e,t){if(!wa.isLocked)return;const n=wa.resolveBodyLockClassName(e,this),i=Number.parseInt(document.body.getAttribute(ya)||"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(ba),document.body.classList.remove(n),window.scrollTo({top:Number.isFinite(i)?i:0,left:0,behavior:"instant"}),wa.isLocked=!1}}const Sa={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},_a={tabSelector:'[role="tab"]'};class Ea{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={..._a,...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>Ea.SCROLL_EDGE_TOLERANCE,n=this.element.scrollLeft<=Ea.SCROLL_EDGE_TOLERANCE,i=this.element.scrollLeft>=e-Ea.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)<=Ea.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 xa=[{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={...jn,...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=qn(this.config.customInputClassName,"is-invalid")),s&&(this.config.wrapperClassName=qn(this.config.wrapperClassName,"autocomplete__wrapper--search-icon")),r&&(this.config.wrapperClassName=qn(this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"));const a=(await Promise.resolve().then(function(){return ka})).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={...Ns,...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},Ai(oi(Ps,{...o}),r),{destroy(){!function(e){e.__k&&Ai(null,e)}(r),Ai(oi(Is,{...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={...zn,...t},this.config.popperOptions={...zn.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...zn.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=Ft(this.trigger,this.element,this.config.popperOptions),this.transitioner=Se({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:cn,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={...Cn,...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(bn);const e=this.element.querySelector(_n);e&&(this.tabs=Array.from(e.querySelectorAll(En)))}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(gn))}createSwiper(){const e=this.viewport.querySelectorAll(`.${un}`).length>1;this.instance=new de(this.viewport,{...this.config,modules:[me,ve,ye,ue,we],navigation:{nextEl:this.element.querySelector(wn),prevEl:this.element.querySelector(yn)},pagination:!!e&&{...this.config.pagination,el:this.element.querySelector(xn)},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(Sn);e&&(e.removeEventListener("click",this._boundPlayPauseClick),e.addEventListener("click",this._boundPlayPauseClick));const t=this.element.querySelector(yn),n=this.element.querySelector(wn);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(gn),this.element.classList.remove(vn),this.updatePlayPauseIcon(),this.startDotAnimation()}_onAutoplayStop(){this.element.classList.remove(gn),this.element.classList.add(vn),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(mn,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(xn);t&&t.querySelectorAll(`.${hn}`).forEach((t,n)=>{const i=n===e;if(t.classList.toggle("is-active",i),!this.hasAutoplay()){const e=t.querySelector(`.${pn}`);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(_n);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(Sn);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(`.${pn}`);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(`.${pn}`);if(!t)return;const n=t.querySelector("circle");n&&(n.style.animation="none")}),this._dotAnimationJustStarted=!1}_getPaginationButtons(){return Array.from(this.element.querySelectorAll(`${xn} > *`))}_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):mn}_getActiveBulletButton(){const e=this._getActiveBulletClass();return this.element.querySelector(`${xn} .${e}`)}createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",pn),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",fn),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(Sn);e&&e.removeEventListener("click",this._boundPlayPauseClick);const t=this.element.querySelector(yn),n=this.element.querySelector(wn);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:Rn,name:"CarouselPromotions",selector:"[data-carousel-promotions]"},{Module:class{element;config;bodies=[];buttons=[];images=[];constructor(e,t){return this.element=e,this.config={...Vn,...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"),$n({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"),$n({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={...Xr,...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(Yr.sanitize(e.name,{ALLOWED_TAGS:[]}),t)).forEach(e=>{this.results.appendChild(Yr.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={...Yo,...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??Yo.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??Yo.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:wa,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], .${Gt}`;return this.element.matches(e)?this.element:this.element.closest(e)}isInsideOrIsCarousel(){return this.getCarouselElement()}getCarouselSlides(){const e=this.getCarouselElement();return e?e.querySelectorAll(`.${Kt}`):[]}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={...Go,...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=jt(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=Uo(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?jt(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={...Kr,...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={...Sa,...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(","));$n({element:t,attribute:"aria-expanded"}),i.forEach(e=>{$n({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:Ea,name:"Tabs",selector:"[data-tabs]"},{Module:Hn,name:"Toggle",selector:"[data-toggle]"},{Module:Ut,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=qt(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=xa,window.addEventListener("DOMContentLoaded",()=>{xa.forEach(e=>{window.ODS.modules[e.name]=e.Module,window.ODS.instances[qt(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 Ca,Ta={exports:{}},Aa=(Ca||(Ca=1,window,Ta.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]={}),S=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&&S[d]!=h&&(S[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=[],S=0,_=!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=_;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(_="svg"===a||"foreignObject"!==a&&_,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,_),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,S=0,_=t?t.length:0;if(0!==w)for(var E=0;E<w;E++){var x=p[E],A=x.__preactattr_;null!=(k=_&&A?x._component?x._component.__key:A.key:null)?(b++,g[k]=x):(A||(void 0!==x.splitText?!s||x.nodeValue.trim():s))&&(f[S++]=x)}if(0!==_)for(E=0;E<_;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<S)for(r=y;r<S;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===S-1&&S--,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<=S;)void 0!==(c=f[S--])&&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,_);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],_)}(r,t.attributes,c),_=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),--S||(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 F=e,B=e;B=B._parentComponent;)(F=B).base=I;I._component=F,I._componentConstructor=F.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);S||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),--S||(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),S=0,_=n?p(t,w):l?p(t,0):void 0;S<w;S++)if((h||S in b)&&(g=y(m=b[S],S,v),e))if(n)_[S]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:_.push(m)}else if(d)return!1;return u?-1:c||d?d:_}}},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,S=n.tNoResults,_=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(),F=-1===O,B=0===M.length,H=0!==P.length,$=P.length>=g,V=this.props.showNoOptionsFound&&F&&B&&H&&$,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:_,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"},S())),(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),Ta.exports),ka=e({__proto__:null,default:Bt(Aa)},[Aa]);export{xa as moduleSelectorPairs};
|
|
2
2
|
//# sourceMappingURL=scripts.js.map
|