1(()=>{var __webpack_modules__={8418:()=>{Alpine.data("adDataLoader",(function(e){var t=e.zoneId,n=e.masterId,r=e.directCode,i=e.adoceanServer,o=e.tags,s=e.identCodes;return{zoneId:t,masterId:n,directCode:r,adoceanServer:i,tags:o,identCodes:s,waitForMaster:function(e){return window.neonMasters&&window.neonMasters[e]?Promise.resolve():new Promise((function(t){var n=function(i){i.detail&&i.detail.id===e&&(window.removeEventListener("neon:master-ready",n),clearTimeout(r),t())};window.addEventListener("neon:master-ready",n);var r=setTimeout((function(){window.removeEventListener("neon:master-ready",n),t()}),1e4)}))},waitForAdo:function(e){var t=function(){if(window.ado&&"function"==typeof e)return e();setTimeout(t,0)};t()},observeAdImages:function(){new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&("IMG"!==e.tagName||e.hasAttribute("alt")||e.setAttribute("alt","Advertisement"),e.querySelectorAll("img:not([alt])").forEach((function(e){e.setAttribute("alt","Advertisement")})))}))}))})).observe(this.$el,{childList:!0,subtree:!0})},load:function(){var e=this;if(this.$el.classList.remove("lazy"),this.observeAdImages(),this.masterId&&this.zoneId)this.waitForMaster(this.masterId).then((function(){e.waitForAdo((function(){ado.slave(e.zoneId,{myMaster:e.masterId})}))}));else{if(this.zoneId){var t={id:this.zoneId,server:this.adoceanServer};return o&&(t.keys=JSON.parse(o)),s?(t.vars=JSON.parse(s),window.neonFingerprint&&(t.vars.fingerprint=window.neonFingerprint)):window.neonFingerprint&&(t.vars={fingerprint:window.neonFingerprint}),void this.waitForAdo((function(){ado.placement(t)}))}if(this.directCode){var n=document.createRange().createContextualFragment(this.directCode);this.$el.append(n)}}}}}))},2200:()=>{!function(){this.BeforeAfter=function(e,t,n){var r={extraClass:"simple",handleMeasure:null,animEnabled:!0,animDuration:2800,animDelay:0,animEasing:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)}};this.options=u(r,n),this.element=t||document.querySelector(".before-after"),this.statFrame=null,this.init()},this.BeforeAfter.prototype={init:function(){t.call(this),n.call(this),c.call(this),i.call(this)},onDragStart:function(t){t.preventDefault(),e.call(this),this.isDragging=!0},onDrag:function(e){this.isDragging&&(e.preventDefault(),this.leftPos=e.pageX?e.pageX:e.touches[0].pageX,this.requestDrag.call(this))},onDragEnd:function(e){e.preventDefault(),this.isDragging=!1},onTap:function(e){e.preventDefault(),this.startX=this.leftPos,this.destX=e.pageX?e.pageX:e.touches[0].pageX,a.call(this)},requestDrag:function(){requestAnimationFrame(this.drag.bind(this))},drag:function(){this.leftPos<this.minPos?this.leftPos=this.minPos:this.leftPos>this.maxPos&&(this.leftPos=this.maxPos);var e=100*((this.leftPos-this.elementOffset)/this.elementWidth)+"%";this.handleWrapper.style.left=e,this.beforeWrapper.style.width=e}};var e=function(){null!==this.options.handleMeasure&&""!==this.options.handleMeasure&&(this.statFrame=this.element.querySelector(".before-after__as"),this.statFrame.removeAttribute("src"),this.statFrame.setAttribute("src",this.options.handleMeasure))},t=function(){this.element.classList.add(this.options.extraClass),this.handleWrapper=document.createElement("div"),this.handleButton=document.createElement("div"),this.handleWrapper.className="handle",this.handleButton.className="handle__btn",this.element.appendChild(this.handleWrapper),this.handleWrapper.appendChild(this.handleButton),this.beforeWrapper=document.createElement("div"),this.beforeImage=this.element.firstElementChild,this.beforeWrapper.className="before",this.element.insertBefore(this.beforeWrapper,this.beforeImage),this.beforeWrapper.appendChild(this.beforeImage)},n=function(){this.elementWidth=l(this.element,"width"),this.elementOffset=this.element.getBoundingClientRect().left+document.body.scrollLeft,this.beforeImage.style.width=this.elementWidth+"px",this.handleWidth=l(this.handleButton,"width"),this.minPos=this.elementOffset+this.handleWidth/2,this.maxPos=this.elementOffset+this.elementWidth-this.handleWidth/2},r=function(){n.call(this),o.call(this)},i=function(){this.handleWrapper.addEventListener("mousedown",this.onDragStart.bind(this)),this.handleWrapper.addEventListener("touchstart",this.onDragStart.bind(this)),this.element.addEventListener("mousemove",this.onDrag.bind(this)),this.element.addEventListener("touchmove",this.onDrag.bind(this)),this.element.addEventListener("sliderIsVisible",r.bind(this)),"A"!==this.beforeImage.nodeName&&this.element.addEventListener("click",this.onTap.bind(this)),this.handleWrapper.addEventListener("mouseup",this.onDragEnd.bind(this)),this.handleWrapper.addEventListener("touchend",this.onDragEnd.bind(this)),window.addEventListener("resize",n.bind(this))},o=function(){var e,t=null!==(e={before:100,center:50,after:0}[this.element.dataset.start])&&void 0!==e?e:50;this.destX=this.elementWidth/100*t+this.elementOffset,this.destX=this.elementWidth/100*t+this.elementOffset,a.call(this),this.element.classList.add("loaded")},s=function(){var e,t,n=this;this.startX?(this.options.animDuration=100,this.options.animDelay=0,this.options.animEasing=function(e){return 1- --e*e*e*e}):this.startX=this.startPercent>50?this.elementWidth+this.elementOffset:0;var r=function(r){t=(e=r)+n.options.animDuration,i(r)},i=function(r){var o=n.startX+(n.destX-n.startX)*n.options.animEasing((r-e)/n.options.animDuration);n.leftPos=o,n.requestDrag.call(n),r<t?requestAnimationFrame(i):(n.startX=null,n.destX=null)};setTimeout((function(){requestAnimationFrame(r)}),this.options.animDelay)},a=function(){!0===this.options.animEnabled?s.call(this):(this.leftPos=this.destX,this.requestDrag.call(this))},l=function(e,t){return parseInt(window.getComputedStyle(e)[t],10)},c=function(){var e=this;
1this.sliderEvent=new Event("sliderIsVisible"),this.sliderObserver=new MutationObserver((function(){var t=l(e.element,"height");!isNaN(t)&&t>0&&(e.element.dispatchEvent(e.sliderEvent),e.sliderObserver.disconnect())})),this.sliderObserver.observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},u=function(e,t){var n,r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}}(),document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".before-after").forEach((function(e){new BeforeAfter(e.parentNode,e)}))}))},1311:()=>{Alpine.data("cookiePolicy",(function(){return{tableStates:{basicFuncCookies:!1,statFuncCookies:!1,marketFuncCookies:!1,socialFuncCookies:!1},init:function(){var e=this,t=document.querySelectorAll("[data-table]");document.querySelectorAll("#first-row > *").forEach((function(e){e.style.padding="4px",e.style.lineHeight="1.5"})),document.querySelectorAll(".sutiszabalyzat_table_content").forEach((function(e){e.style.overflowX="auto",e.style.fontSize="14px"})),document.querySelectorAll(".index_content tr").forEach((function(e,t){"first-row"!==e.id&&t%2==0&&(e.style.background="#f1f1f1")})),document.querySelectorAll(".sutiszabalyzat_table_content td").forEach((function(e){e.style.padding="4px"})),t.forEach((function(t){var n=t.getAttribute("data-table");e.tableStates[n]=!1}))},toggleTable:function(e){this.tableStates[e]=!this.tableStates[e]}}}))},736:()=>{Alpine.store("carousel",{isLooped:!1,next:function(e,t){e.scrollLeft+=t},prev:function(e,t){e.scrollLeft-=t},_scrollLeft:function(e,t){e.classList.remove("scroll-smooth"),e.scrollLeft=t,e.classList.add("scroll-smooth")},_changeScrollLeftToFirstDuplicatedElement:function(e){this._scrollLeft(e,e.scrollWidth/2)},scroll:function(e){this.isLooped&&(0===e.scrollLeft?this._changeScrollLeftToFirstDuplicatedElement(e):Math.ceil(e.scrollLeft)===e.scrollWidth-e.offsetWidth&&this._scrollLeft(e,e.scrollWidth/2-e.offsetWidth))},initialize:function(e){var t=e.children.length;this.isLooped=t>8,this.isLooped&&this._changeScrollLeftToFirstDuplicatedElement(e)}})},2249:()=>{Alpine.data("dataPrivacyDivany",(function(){return{init:function(){var e=this;if(this.iframe=document.querySelector("iframe"),this.list=document.querySelector("#policies"),window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS())this.disableOnIOS();else{var t=this.list.querySelector("li.actual a");t&&this.isIframeVisible()&&this.loadIframe(t.href),this.list.querySelectorAll("a").forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e.isIframeVisible()?(e.loadIframe(t.href),e.setActiveLink(t)):window.open(t.href,"_blank")}))}))}},isIframeVisible:function(){return this.iframe&&null!==this.iframe.offsetParent},loadIframe:function(e){window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS()?this.disableOnIOS():this.iframe&&(this.iframe.src=e)},disableOnIOS:function(){this.iframe.style.height="0px",this.iframe.style.width="0px"},setActiveLink:function(e){this.list.querySelectorAll("li.actual").forEach((function(e){return e.classList.remove("actual")})),e.parentElement&&e.parentElement.classList.add("actual")}}}))},1551:()=>{Alpine.data("divanyHeader",(function(){return{showMobileMenu:!1,showSearch:!1,mdSize:700,setScrollable:function(){document.body.style.overflow="",document.body.style.touchAction=""},toggleMobileMenu:function(){this.showMobileMenu=!this.showMobileMenu},init:function(){var e=this;this.setScrollable(),window.addEventListener("resize",(function(){window.innerWidth>e.mdSize&&(e.showMobileMenu=!1)}))}}}))},4785:()=>{Alpine.data("quoteAnimation",(function(){return{start:70,stop:40,viewportRoot:"self",includeMarks:!1,authorInactiveClass:"text-tertiary-quote-light",authorActiveClass:"text-secondary",htmlContent:"",hiliteEl:null,nohiliteEl:null,ticking:!1,_resizeHandler:null,renderWithBr:function(e,t){e.innerText="";var n=t.split("\n");n.forEach((function(t,r){e.appendChild(document.createTextNode(t)),r<n.length-1&&e.appendChild(document.createElement("br"))}))},_resolve:function(e){if(!e||"self"===e)return this.$el;if(e.startsWith("closest:")){var t=e.slice(8);return this.$el.closest(t)||this.$el}if(e.startsWith("query:")){var n=e.slice(6);return this.$el.querySelector(n)||this.$el}return this.$el},_readOverrides:function(){var e=this.$el;null!=e.dataset.quoteStart&&(this.start=Number(e.dataset.quoteStart)),null!=e.dataset.quoteStop&&(this.stop=Number(e.dataset.quoteStop
1)),e.dataset.quoteViewportRoot&&(this.viewportRoot=e.dataset.quoteViewportRoot),this.includeMarks="1"===e.dataset.quoteIncludeMarks,e.dataset.quoteAuthorInactiveClass&&(this.authorInactiveClass=e.dataset.quoteAuthorInactiveClass),e.dataset.quoteAuthorActiveClass&&(this.authorActiveClass=e.dataset.quoteAuthorActiveClass)},_updateAuthorColor:function(e,t){if(this.viewportRoot&&"self"!==this.viewportRoot){var n=t.querySelector("[data-quote-author]");n&&(this.authorInactiveClass&&n.classList.toggle(this.authorInactiveClass,!e),this.authorActiveClass&&n.classList.toggle(this.authorActiveClass,e))}},animate:function(){var e=this;this.ticking||(this.ticking=!0,requestAnimationFrame((function(){e.ticking=!1;var t=e._resolve(e.viewportRoot),n=viewportProgress(t,e.start,e.stop),r=Math.round(e.htmlContent.length*n),i=(r=Math.min(e.htmlContent.length,Math.max(0,r)))>=e.htmlContent.length;e._updateAuthorColor(i,t),e.renderWithBr(e.hiliteEl,e.htmlContent.slice(0,r)),e.renderWithBr(e.nohiliteEl,e.htmlContent.slice(r))})))},init:function(){var e=this,t=this.$el;if("1"!==t.dataset.quoteAnimInitialized){t.dataset.quoteAnimInitialized="1",this._readOverrides();var n=t.innerText.trim().replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.includeMarks&&"Q"===t.tagName&&(t.style.quotes="none",n="â".concat(n,"â")),this.htmlContent=n,this.hiliteEl=document.createElement("span"),this.nohiliteEl=document.createElement("span"),this.nohiliteEl.className="text-tertiary-quote-light",this.renderWithBr(this.hiliteEl,this.htmlContent),t.innerText="",t.appendChild(this.hiliteEl),t.appendChild(this.nohiliteEl),this._resizeHandler=function(){return e.animate()},window.addEventListener("resize",this._resizeHandler,{passive:!0}),this.animate()}},destroy:function(){this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null)}}}))},6397:()=>{Alpine.data("scrollableArticleHighlightSection",(function(){return{enabled:!0,isPhone:window.matchMedia("(max-width: 700px)").matches,_onWindowScroll:null,_onContentScroll:null,_onResize:null,travel:0,ticking:!1,clamp:function(e,t,n){return Math.min(n,Math.max(t,e))},init:function(){var e=this;this.enabled=!this.isPhone,this.$nextTick((function(){var t=e.$refs.content;t.classList.add("scroll-start"),t.classList.remove("scroll-end"),e._onContentScroll=function(){return e.updateEdges()},t.addEventListener("scroll",e._onContentScroll,{passive:!0}),e.updateEdges(),e.enabled&&(e._onWindowScroll=function(){return e.syncToWindowScroll()},e._onResize=function(){e.measure(),e.syncToWindowScroll(!0)},window.addEventListener("scroll",e._onWindowScroll,{passive:!0}),window.addEventListener("resize",e._onResize,{passive:!0}),e.measure(),e.syncToWindowScroll(!0))}))},measure:function(){var e=this.$el,t=this.$refs.content,n=this.$refs.container;this.travel=Math.max(0,t.scrollWidth-t.clientWidth);var r=n.offsetHeight;e.style.height="".concat(r+this.travel,"px")},syncToWindowScroll:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.ticking&&!t||(this.ticking=!0,requestAnimationFrame((function(){e.ticking=!1;var t=e.$el,n=e.$refs.content,r=t.getBoundingClientRect().top+window.scrollY,i=window.scrollY-r;n.scrollLeft=e.clamp(i,0,e.travel),e.updateEdges()})))},updateEdges:function(){var e=this.$refs.content,t=e.scrollLeft,n=e.scrollWidth-e.clientWidth;t<5?e.classList.add("scroll-start"):e.classList.remove("scroll-start"),t>n-5?e.classList.add("scroll-end"):e.classList.remove("scroll-end")},destroy:function(){if(this.enabled){var e=this.$refs.content;this._onWindowScroll&&window.removeEventListener("scroll",this._onWindowScroll),this._onResize&&window.removeEventListener("resize",this._onResize),this._onContentScroll&&e.removeEventListener("scroll",this._onContentScroll),this._onWindowScroll=null,this._onResize=null,this._onContentScroll=null}}}}))},4107:()=>{Alpine.data("newsletterSubscription",(function(){return{newsletterBlock:null,recommendationBlock:null,subscribeFormBlock:null,successFormBlock:null,dpiCheck:!1,email:"",subcribeSent:!1,isInvalidEmail:!1,getCsrfToken:function(){return document.querySelector("[name=csrfmiddlewaretoken]").value},isValidEmail:function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},displaySubscriptionForm:function(){this.recommendationBlock.classList.add("hidden"),this.subscribeFormBlock.classList.remove("hidden")},submitSubscribe:function(){var e=this;if(this.isValidEmail(this.email)){if(this.dpiCheck){var t={email:this.email,first_name:document.getElementById("subscriber-fname").value,last_name:document.getElementById("subscriber-lname").value,dpi_check:this.dpiCheck};this.subcribeSent||fetch("/subscribe-to-daily-newsletter/",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":this.getCsrfToken()},body:JSON.stringify(t)}).then((function(t){if(!t.ok)throw new Error("Something went wrong during subscription");return e.subcribeSent=!0,t.json()})).then((function(t){e.subscribeFormBlock.classList.add("hidden"),e.successFormBlock.classList.remove("hidden")}
1)).catch((function(e){console.error("Error:",e)})),this.subscribeFormBlock.classList.add("hidden"),this.successFormBlock.classList.remove("hidden")}}else this.isInvalidEmail=!0},init:function(){this.newsletterBlock=this.$refs.newsletterBlock,this.recommendationBlock=this.$refs.recommendationBlock,this.subscribeFormBlock=this.$refs.subscribeFormBlock,this.successFormBlock=this.$refs.successFormBlock}}}))},5859:()=>{Alpine.data("holdScrollCarousel",(function(){return{speedPxPerSec:750,dir:0,rafId:null,isHolding:!1,lastTs:0,canScrollLeft:!1,canScrollRight:!1,atStart:!0,atEnd:!1,init:function(){var e=this;this.$nextTick((function(){e.updateEdges(),e.updatePadding()})),this._resizeHandler=function(){e.updateEdges(),e.updatePadding()},window.addEventListener("resize",this._resizeHandler,{passive:!0})},destroy:function(){this.stop(),this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null)},get scroller(){return this.$refs.carousel},updatePadding:function(){var e=this.scroller,t=this.$el.querySelector("header");if(e&&t){var n=t.getBoundingClientRect(),r=getComputedStyle(t),i=n.left+parseFloat(r.paddingLeft||0);e.style.paddingLeft=Math.max(0,i)+"px",e.style.paddingRight=Math.max(0,i)+"px"}},updateEdges:function(){var e=this.scroller;if(e){var t=e.scrollWidth-e.clientWidth,n=e.scrollLeft;this.canScrollLeft=n>1,this.canScrollRight=n<t-1,this.atStart=n<=1,this.atEnd=n>=t-1,(this.dir<0&&!this.canScrollLeft||this.dir>0&&!this.canScrollRight)&&this.stop()}},start:function(e,t){var n=this;if(this.dir=e,this.isHolding=!0,this.lastTs=0,this.updateEdges(),!(e<0&&!this.canScrollLeft||e>0&&!this.canScrollRight)){try{var r,i;null===(r=(null==t?void 0:t.currentTarget)||this.$el)||void 0===r||null===(i=r.setPointerCapture)||void 0===i||i.call(r,t.pointerId)}catch(e){}null==this.rafId&&(this.rafId=requestAnimationFrame((function(e){return n.tick(e)})))}},resumeIfHolding:function(e){this.isHolding&&this.start(e)},stop:function(){this.isHolding=!1,this.dir=0,this.lastTs=0,null!=this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null)},tick:function(e){var t=this;if(this.isHolding&&0!==this.dir){this.lastTs||(this.lastTs=e);var n=(e-this.lastTs)/1e3;this.lastTs=e;var r=this.scroller;if(r){var i=this.dir*this.speedPxPerSec*n;r.scrollLeft+=i,this.updateEdges(),this.rafId=requestAnimationFrame((function(e){return t.tick(e)}))}else this.stop()}else this.rafId=null}}}))},4384:()=>{Alpine.data("feminaHeader",(function(){return{showMobileMenu:!1,showSearch:!1,mdSize:728,setScrollable:function(){document.body.style.overflow="",document.body.style.touchAction=""},toggleMobileMenu:function(){this.showMobileMenu=!this.showMobileMenu},init:function(){var e=this;this.setScrollable(),window.addEventListener("resize",(function(){window.innerWidth>e.mdSize&&(e.showMobileMenu=!1)}))}}}))},6446:()=>{Alpine.data("galleryInteraction",(function(){return{showIntro:!1,sidebarHidden:!1,fullscreen:!1,init:function(){var e=this;this.showIntro="true"===this.$el.dataset.showIntro,document.addEventListener("fullscreenchange",(function(){document.fullscreenElement||(e.fullscreen=!1,e.sidebarHidden=!1)}))},toggleSidebar:function(){this.sidebarHidden=!this.sidebarHidden},openSideBar:function(){this.sidebarHidden=!1},toggleFullscreen:function(){this.fullscreen=!this.fullscreen,this.fullscreen?(this.sidebarHidden=!0,document.documentElement.requestFullscreen&&document.documentElement.requestFullscreen()):document.exitFullscreen&&document.exitFullscreen()}}})),Alpine.data("observeSwiperButtonDisabled",(function(){return{isDisabled:!1,observer:null,init:function(){var e=this;this.isDisabled=this.$el.classList.contains("swiper-button-disabled"),this.observer=new MutationObserver((function(){e.isDisabled=e.$el.classList.contains("swiper-button-disabled")})),this.observer.observe(this.$el,{attributes:!0,attributeFilter:["class"]}),this.$el.addEventListener("alpine:destroyed",(function(){var t;null===(t=e.observer)||void 0===t||t.disconnect(),e.observer=null}))}}}))},7107:()=>{var e=document.getElementById("prev-page-button"),t=document.getElementById("next-page-button");(e||t)&&document.addEventListener("keydown",(function(n){var r=document.activeElement;"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&("ArrowLeft"===n.key&&e&&(window.location.href=e.href),"ArrowRight"===n.key&&t&&(window.location.href=t.href))}))},2410:()=>{Alpine.data("dataPrivacy",(function(){return{init:function(){var e=this;if(this.iframe=document.querySelector("iframe"),this.list=document.querySelector("#policies"),window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS())this.disableOnIOS();else{var t=this.list.querySelector("li.actual a");t&&this.loadIframe(t.href),this.list.querySelectorAll("a").forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e.loadIframe(t.href),e.setActiveLink(t)}))}))}},loadIframe:function(e){window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS()?this.disableOnIOS():this.iframe&&(this.iframe.src=e)},disableOnIOS:function(){this.iframe.style.height="0px",this.iframe.style.width="0px"},setActiveLink:function(e){this.list.querySelectorAll("li.actual").forEach((function(e){return e.classList.remove("actual")})),e.parentElement&&e.parentElement.classList.add("actual")}}}))},7394:()=>{Alpine.store("carousel",{isLooped:!1,next:function(e,t){e.scrollLeft+=t},prev:function(e,t){e.scrollLeft-=t},_scrollLeft:function(e,t){e.classList.remove("scroll-smooth"),e.scrollLeft=t,e.classList.add("scroll-smooth")},_changeScrollLeftToFirstDuplicatedElement:function(e){this._scrollLeft(e,e.scrollWidth/2)},scroll:function(e){this.isLooped&&(0===e.scrollLeft?this._changeScrollLeftToFirstDuplicatedElement(e):Math.ceil(e.scrollLeft)===e.scrollWidth-e.offsetWidth&&this._scrollLeft(e,e.scrollWidth/2-e.offsetWidth))},initialize:function(e){var t=e.children.length;this.isLooped=t>8,this.isLooped&&this._changeScrollLeftToFirstDuplicatedElement(e)}})},5347:()=>{Alpine.data("dataPrivacyMediafuture",(function(){return{init:function(){var e=this;if(this.iframe=document.querySelector("iframe"),this.list=document.querySelector("#policies"),window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS())this.disableOnIOS();else{var t=this.list.querySelector("li.actual a");t&&this.isIframeVisible()&&this.loadIframe(t.href),this.list.querySelectorAll("a").forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e.isIframeVisible()?(e.loadIframe(t.href),e.setActiveLink(t)):window.open(t.href,"_blank")}))}))}},isIframeVisible:function(){return this.iframe&&null!==this.iframe.offsetParent},loadIframe:function(e){window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS()?this.disableOnIOS():this.iframe&&(this.iframe.src=e)},disableOnIOS:function(){this.iframe.style.height="0px",this.iframe.style.width="0px"},setActiveLink:function(e){this.list.querySelectorAll("li.actual").forEach((function(e){return e.classList.remove("actual")})),e.parentElement&&e.parentElement.classList.add("actual")}}}))},973:()=>{Alpine.data("mediafutureHeader",(function(){return{showMobileMenu:!1,desktopBr:1440,setScrollable:function(){document.body.style.overflow="",document.body.style.touchAction=""},openMobileMenu:function(){this.showMobileMenu=!0},closeMobileMenu:function(){this.showMobileMenu&&(this.showMobileMenu=!1)},toggleMobileMenu:function(){this.showMobileMenu?this.closeMobileMenu():this.openMobileMenu()},init:function(){var e=this;this.setScrollable(),this._resizeHandler=function(){window.innerWidth>=e.desktopBr&&e.showMobileMenu&&e.closeMobileMenu()},window.addEventListener("resize",this._resizeHandler)},destroy:function(){this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null),this.setScrollable()}}}))},3164:()=>{Alpine.data("menuDotTracker",(function(){return{dotX:0,showDot:!1,hasTransition:!1,isFirstHover:!0,updateDot:function(e){var t=this,n=e.target.closest(".menu-item, .search-dot-target");if(n){var r=this.$el.getBoundingClientRect(),i=n.getBoundingClientRect(),o=this.$refs.dot.offsetWidth,s=0;s=n.classList.contains("menu-item")?i.left-r.left:i.right-r.left-o,this.showDot?this.dotX=s:this.isFirstHover?(this.hasTransition=!1,this.dotX=s,this.showDot=!0,this.isFirstHover=!1,requestAnimationFrame((function(){t.hasTransition=!0}))):(this.hasTransition=!1,this.showDot=!0,requestAnimationFrame((function(){requestAnimationFrame((function(){t.hasTransition=!0,t.dotX=s}))})))}},hideDot:function(){this.showDot=!1,this.hasTransition=!1}}}))},5774:()=>{var e=document.querySelector(".index-social-box"),t=null==e?void 0:e.querySelector(".share-button"),n=null==e?void 0:e.querySelector(".share-box");e&&t&&n&&document.addEventListener("DOMContentLoaded",(function(){t.addEventListener("click",(function(e){e.preventDefault(),n.classList.toggle("open")})),document.addEventListener("click",(function(t){e.contains(t.target)||n.classList.remove("open")})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&n.classList.remove("open")}))}
vendor: 5,662 bytes, line 1
1))},3437:()=>{document.body.addEventListener("htmx:load",(function(e){var t=e.detail.elt;if(t instanceof Element&&t.matches(".poll__state")){var n=t.querySelector(".cf-turnstile");n&&window.turnstile&&!n.querySelector("iframe")&&window.turnstile.render(n,{sitekey:n.dataset.sitekey,responseFieldName:n.dataset.responseFieldName})}})),document.body.addEventListener("htmx:beforeSwap",(function(e){var t=e.detail.target;t instanceof Element&&t.matches(".poll__state")&&400===e.detail.xhr.status&&(e.detail.shouldSwap=!0,e.detail.isError=!1)}))},4818:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";var e=a(),l=e.m(t),u=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,r;return function(i){t||(t={stop:function(){return r(i.a,2)},catch:function(){return i.v},abrupt:function(e,t){return r(i.a,f[e],t)},delegateYield:function(e,o,s){return t.resultName=o,r(i.d,n(e),s)},finish:function(e){return r(i.f,e)}},r=function(e,n,r){i.p=t.prev,i.n=t.next;try{return e(n,r)}finally{t.next=i.n}}),t.resultName&&(t[t.resultName]=i.v,t.resultName=void 0),t.sent=i.v,t.next=i.n;try{return e.call(this,t)}finally{i.p=t.prev,i.n=t.next}}}return(t=function(){return{wrap:function(t,n,r,i){return e.w(h(t),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:e.m,awrap:function(e,t){return new c(e,t)},AsyncIterator:s,async:function(e,t,n,r,s){return(d(t)?o:i)(h(e),t,n,r,s)},keys:r,values:n}})()}function n(t){if(null!=t){var n=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(e(t)+" is not iterable")}function r(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function i(e,t,n,r,i){var s=o(e,t,n,r,i);return s.next().then((function(e){return e.done?e.value:s.next()}))}function o(e,t,n,r,i){return new s(a().w(e,t,n,r),i||Promise)}function s(e,t){function n(r,i,o,s){try{var a=e[r](i),l=a.value;return l instanceof c?t.resolve(l.v).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){a.value=e,o(a)}),(function(e){return n("throw",e,o,s)}))}catch(e){s(e)}}var r;this.next||(l(s.prototype),l(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),l(this,"_invoke",(function(e,i,o){function s(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(s,s):s()}),!0)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return l(u,"_invoke",function(n,r,i){var o,a,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,a=0,l=e,f.n=n,s}};function h(n,r){for(a=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(a=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),a=u,l=p;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(f.n=-1),h(a,l)):f.n=l:f.v=l);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var s={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(l(t={},r,(function(){return this})),t),h=d.prototype=c.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,l(h,"constructor",d),l(d,"constructor",u),u.displayName="GeneratorFunction",l(d,i,"GeneratorFunction"),l(h),l(h,i,"Generator"),l(h,r,(function(){return this})),l(h,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:o,m:p}})()}function l(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}l=function(e,t,n,r){function o(t,n){l(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},l(e,t,n,r)}function c(e,t){this.v=e,this.k=t}function u(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}Alpine.data("searchForm",(function(){return{form:null,search:null,isDesktop:window.matchMedia("(min-width: 1024px)").matches,defaultFrom:null,defaultTo:null,default_from_value:"2020-01-01",default_to_value:new Date,tagSuggestions:[],tagSuggestionsOpen:!1,tagActiveIndex:-1,_tagDebounce:null,_tagAbort:null,lgBreakp
1oint:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--lg-breakpoint")||"1024"),init:function(){var e=this;this.defaultFrom=this.$el.dataset.defaultFromValue||default_from_value,this.defaultTo=this.$el.dataset.defaultToValue||default_to_value,this.form=document.querySelector('form[role="search"]'),this.search=window.innerWidth>=this.lgBreakpoint;var t=window.innerWidth;window.addEventListener("resize",(function(){var n=window.innerWidth;n!==t&&(e.search=n>=e.lgBreakpoint,t=n)}))},resetForm:function(){window.location.href="".concat(window.location.pathname,"?search=")},toggle:function(){window.innerWidth<=this.lgBreakpoint&&(this.search=!this.search)},onTagInput:function(e){var t=this,n=e.target.value.trim();if(this.tagActiveIndex=-1,this._tagDebounce&&clearTimeout(this._tagDebounce),n.length<2)return this.tagSuggestions=[],void(this.tagSuggestionsOpen=!1);this._tagDebounce=setTimeout((function(){return t.fetchTagSuggestions(n)}),150)},fetchTagSuggestions:function(e){var n,r=this;return(n=t().mark((function n(){var i,o;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r._tagAbort&&r._tagAbort.abort(),r._tagAbort=new AbortController,t.prev=2,t.next=5,fetch("/api/tag-autocomplete/?q=".concat(encodeURIComponent(e)),{signal:r._tagAbort.signal,headers:{Accept:"application/json"}});case 5:if((i=t.sent).ok){t.next=8;break}return t.abrupt("return");case 8:return t.next=10,i.json();case 10:o=t.sent,r.tagSuggestions=o.results||[],r.tagSuggestionsOpen=r.tagSuggestions.length>0,t.next=18;break;case 15:t.prev=15,t.t0=t.catch(2),"AbortError"!==t.t0.name&&(r.tagSuggestions=[],r.tagSuggestionsOpen=!1);case 18:case"end":return t.stop()}}),n,null,[[2,15]])})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function s(e){u(o,r,i,s,a,"next",e)}function a(e){u(o,r,i,s,a,"throw",e)}s(void 0)}))})()},selectTag:function(e,t){t&&(t.value=e),this.tagSuggestions=[],this.tagSuggestionsOpen=!1,this.tagActiveIndex=-1},onTagKeydown:function(e){this.tagSuggestionsOpen&&this.tagSuggestions.length&&("ArrowDown"===e.key?(e.preventDefault(),this.tagActiveIndex=(this.tagActiveIndex+1)%this.tagSuggestions.length):"ArrowUp"===e.key?(e.preventDefault(),this.tagActiveIndex=(this.tagActiveIndex-1+this.tagSuggestions.length)%this.tagSuggestions.length):"Enter"===e.key&&this.tagActiveIndex>=0?(e.preventDefault(),this.selectTag(this.tagSuggestions[this.tagActiveIndex],e.target)):"Escape"===e.key&&(this.tagSuggestionsOpen=!1))},closeTagSuggestions:function(){var e=this;setTimeout((function(){e.tagSuggestionsOpen=!1}),150)}}}))},1056:()=>{document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".shadow-host").forEach((function(e){var t=e.getAttribute("data-html-content");t&&(e.attachShadow({mode:"open"}).innerHTML=t)}))}))},9245:()=>{var e=function(e){return"/api/article-like/".concat(e,"/")};Alpine.data("soborsArticleLike",(function(t,n){return{storageKey:"article_liked_".concat(t),likeCount:n||0,liked:!1,init:function(){this.liked="true"===this.readLikedState(),this.refreshLikeCount()},readLikedState:function(){try{return localStorage.getItem(this.storageKey)}catch(e){return null}},storeLikedState:function(){try{localStorage.setItem(this.storageKey,"true")}catch(e){}},refreshLikeCount:function(){var n=this;fetch(e(t),{method:"GET",headers:{Accept:"application/json"}}).then((function(e){return e.ok?e.json():null})).then((function(e){e&&e.success&&(n.likeCount=e.like_count)})).catch((function(){}))},like:function(){var n=this;this.liked||(this.liked=!0,this.likeCount+=1,this.storeLikedState(),fetch(e(t),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((function(e){if(!e.ok)throw new Error("Failed to save the like");return e.json()})).then((function(e){e&&e.success&&(n.likeCount=e.like_count)})).catch((function(){})))}}}))},9063:()=>{document.addEventListener("alpine:init",(function(){Alpine.data("carousel",(function(){return{isLooped:arguments.length>0&&void 0!==arguments[0]&&arguments[0],canScrollLeft:!1,canScrollRight:!1,direction:0,holdTimeoutId:null,rafId:null,lastTimestamp:0,get cardWidth(){var e=this.$refs.carousel;if(!e||!e.firstElementChild)return 0;
1var t=parseFloat(getComputedStyle(e).columnGap)||0;return e.firstElementChild.offsetWidth+t},get loopWidth(){var e=this.$refs.carousel.children,t=e[e.length/2];return t?t.offsetLeft-e[0].offsetLeft:0},canScrollTo:function(e){return e<0?this.canScrollLeft:this.canScrollRight},updateEdges:function(){var e=this.$refs.carousel;if(e){if(this.isLooped)return this.canScrollLeft=!0,void(this.canScrollRight=!0);var t=e.scrollWidth-e.clientWidth;this.canScrollLeft=e.scrollLeft>1,this.canScrollRight=e.scrollLeft<t-1,0===this.direction||this.canScrollTo(this.direction)||this.cancelHold()}},handleLoop:function(){var e=this.$refs.carousel;if(this.isLooped&&e){var t=e.scrollWidth-e.clientWidth;e.scrollLeft<=1?this.jumpTo(e.scrollLeft+this.loopWidth):e.scrollLeft>=t-1&&this.jumpTo(e.scrollLeft-this.loopWidth)}},jumpTo:function(e){var t=this.$refs.carousel,n=t.style.scrollBehavior;t.style.scrollBehavior="auto",t.scrollLeft=e,t.style.scrollBehavior=n},onScroll:function(){this.handleLoop(),this.updateEdges()},stepOnce:function(e){this.$refs.carousel&&this.canScrollTo(e)&&(this.$refs.carousel.scrollLeft+=e*this.cardWidth)},start:function(e,t){var n,r,i=this;this.cancelHold(),this.canScrollTo(e)&&(null===(n=(r=t.currentTarget).setPointerCapture)||void 0===n||n.call(r,t.pointerId),this.direction=e,this.holdTimeoutId=setTimeout((function(){i.holdTimeoutId=null,i.beginContinuousScroll()}),250))},stop:function(){var e=null!==this.holdTimeoutId,t=this.direction;this.cancelHold(),e&&this.stepOnce(t)},beginContinuousScroll:function(){var e=this,t=this.$refs.carousel;t.style.scrollBehavior="auto",t.style.scrollSnapType="none",this.lastTimestamp=0,this.rafId=requestAnimationFrame((function(t){return e.tick(t)}))},cancelHold:function(){null!==this.holdTimeoutId&&(clearTimeout(this.holdTimeoutId),this.holdTimeoutId=null),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null,this.$refs.carousel.style.scrollBehavior="",this.$refs.carousel.style.scrollSnapType=""),this.direction=0},tick:function(e){var t=this;this.lastTimestamp||(this.lastTimestamp=e);var n=(e-this.lastTimestamp)/1e3;this.lastTimestamp=e,this.$refs.carousel.scrollLeft+=750*this.direction*n,this.updateEdges(),null!==this.rafId&&(this.rafId=requestAnimationFrame((function(e){return t.tick(e)})))},init:function(){var e=this;this.$nextTick((function(){e.updateEdges(),e.isLooped&&e.jumpTo(e.loopWidth)})),this._resizeHandler=function(){return e.updateEdges()},window.addEventListener("resize",this._resizeHandler,{passive:!0})},destroy:function(){this.cancelHold(),this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null)}}}))}))},891:()=>{var e="sobors-floating-promo-closed";Alpine.data("soborsFloatingPromo",(function(){return{open:!1,closed:!1,isReadyToNavigate:!1,autoCloseTimer:null,init:function(){var e=this;this.closed=this.readClosedState(),document.addEventListener("touchstart",(function(t){e.open&&!e.$el.contains(t.target)&&e.closePromo()}))},readClosedState:function(){try{return"1"===window.sessionStorage.getItem(e)}catch(e){return!1}},storeClosedState:function(){try{window.sessionStorage.setItem(e,"1")}catch(e){}},handleTouchStart:function(e){var t=this;this.open?this.isReadyToNavigate||e.preventDefault():(e.preventDefault(),this.open=!0,this.isReadyToNavigate=!1,setTimeout((function(){t.isReadyToNavigate=!0}),500),clearTimeout(this.autoCloseTimer),this.autoCloseTimer=setTimeout((function(){return t.closePromo()}),5e3))},closePromo:function(){clearTimeout(this.autoCloseTimer),this.open=!1,this.isReadyToNavigate=!1},hide:function(){this.closePromo(),this.closed=!0,this.storeClosedState()}}}))},4236:()=>{Alpine.data("soborsHeader",(function(){return{showMobileMenu:!1,scrollHappened:!1,headerCollapse:0,tabletSize:728,desktopSize:1430,getMaxHeaderCollapse:function(){return window.innerWidth>=this.desktopSize?55:window.innerWidth>=this.tabletSize?50:0},updateScrollState:function(){var e=Math.max(window.scrollY,0),t=this.getMaxHeaderCollapse();this.headerCollapse=Math.min(e,t),this.scrollHappened=e>0,document.documentElement.style.setProperty("--site-header-collapse","".concat(this.headerCollapse,"px")),document.documentElement.style.setProperty("--site-header-collapse-ratio",t?"".concat(this.headerCollapse/t):"0")},updateHeaderHeight:function(){var e=this.$refs.header.offsetHeight;document.documentElement.style.setProperty("--site-header-height","".concat(e,"px")),document.documentElement.style.setProperty("--site-header-expanded-height","".concat(e+this.headerCollapse,"px"))},setScrollable:function(){document.body.style.overflow="",document.body.style.touchAction=""},setUnScrollable:function(){document.body.style.overflow="hidden",document.body.style.touchAction="none"},openMobileMenu:function(){this.showMobileMenu=!0,this.setUnScrollable()},closeMobileMenu:function(){this.showMobileMenu&&(this.showMobileMenu=!1,this.setScrollable())},toggleMobileMenu:function(){this.showMobileMenu?this.closeMobileMenu():this.openMobileMenu()},init:function(){var e=this;this.updateScrollState(),this._headerResizeObserver=new ResizeObserver((function(){e.updateHeaderHeight()})),this._headerResizeObserver.observe(this.$refs.header),this.$nextTick((function(){e.updateHeaderHeight()})),this._scrollHandler=function(){e.updateScrollState(),e.updateHeaderHeight()},this._resizeHandler=function(){e.updateScrollState(),e.updateHeaderHeight(),window.innerWidth>=e.tabletSize&&e.showMobileMenu&&e.closeMobileMenu()},window.addEventListener("scroll",this._scrollHandler,{passive:!0}),window.addEventListener("resize",this._resizeHandler)},destroy:function(){this._scrollHandler&&(window.removeEventListener("scroll",this._scrollHandler),this._scrollHandler=null),this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null),this._headerResizeObserver&&(this._headerResizeObserver.disconnect(),this._headerResizeObserver=null),this.setScrollable()}}}))},7724:()=>{Alpine.data("soborsMiniHomepageMask",(function(){return{atStart:!0,atEnd:!1,isMobile:!1,init:function(){var e=this;this.$nextTick((function(){return e.updateEdges()}))},updateEdges:function(){this.isMobile=window.innerWidth<728;var e=this.$el.scrollWidth-this.$el.clientWidth,t=this.$el.scrollLeft;this.atStart=t<=1,this.atEnd=t>=e-1},get edgeMaskImage(){if(!this.isMobile)return"none";
vendor: 6,122 bytes, line 1
1var e=this.atStart?"#000":"transparent",t=this.atEnd?"#000":"transparent";return"linear-gradient(90deg, ".concat(e," 0, #000 10%, #000 86%, ").concat(t," 100%)")}}}))},8258:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";var e=a(),l=e.m(t),u=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,r;return function(i){t||(t={stop:function(){return r(i.a,2)},catch:function(){return i.v},abrupt:function(e,t){return r(i.a,f[e],t)},delegateYield:function(e,o,s){return t.resultName=o,r(i.d,n(e),s)},finish:function(e){return r(i.f,e)}},r=function(e,n,r){i.p=t.prev,i.n=t.next;try{return e(n,r)}finally{t.next=i.n}}),t.resultName&&(t[t.resultName]=i.v,t.resultName=void 0),t.sent=i.v,t.next=i.n;try{return e.call(this,t)}finally{i.p=t.prev,i.n=t.next}}}return(t=function(){return{wrap:function(t,n,r,i){return e.w(h(t),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:e.m,awrap:function(e,t){return new c(e,t)},AsyncIterator:s,async:function(e,t,n,r,s){return(d(t)?o:i)(h(e),t,n,r,s)},keys:r,values:n}})()}function n(t){if(null!=t){var n=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(e(t)+" is not iterable")}function r(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function i(e,t,n,r,i){var s=o(e,t,n,r,i);return s.next().then((function(e){return e.done?e.value:s.next()}))}function o(e,t,n,r,i){return new s(a().w(e,t,n,r),i||Promise)}function s(e,t){function n(r,i,o,s){try{var a=e[r](i),l=a.value;return l instanceof c?t.resolve(l.v).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){a.value=e,o(a)}),(function(e){return n("throw",e,o,s)}))}catch(e){s(e)}}var r;this.next||(l(s.prototype),l(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),l(this,"_invoke",(function(e,i,o){function s(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(s,s):s()}),!0)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return l(u,"_invoke",function(n,r,i){var o,a,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,a=0,l=e,f.n=n,s}};function h(n,r){for(a=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(a=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),a=u,l=p;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(f.n=-1),h(a,l)):f.n=l:f.v=l);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var s={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(l(t={},r,(function(){return this})),t),h=d.prototype=c.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,l(h,"constructor",d),l(d,"constructor",u),u.displayName="GeneratorFunction",l(d,i,"GeneratorFunction"),l(h),l(h,i,"Generator"),l(h,r,(function(){return this})),l(h,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:o,m:p}})()}function l(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}l=function(e,t,n,r){function o(t,n){l(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},l(e,t,n,r)}function c(e,t){this.v=e,this.k=t}function u(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Alpine.data("soborsRecipeFinder",(function(){return{include:[],exclude:[],tagId:"",busy:!1,form:null,init:function(){this.include=this.parse(this.$root.dataset.includeNames),this.exclude=this.parse(this.$root.dataset.excludeNames),this.tagId=this.$root.dataset.tagId||"",this.form=this.$root.querySelector("#recipe-finder-form")},parse:function(e){return e?d(new Set(e.split(":::").map((function(e){return e.trim()}
1)).filter(Boolean))):[]},serialize:function(e){return e.join(":::")},changed:function(){var e=this;this.$nextTick((function(){e.form&&e.form.dispatchEvent(new Event("finder-change",{bubbles:!0}))}))},add:function(e,t){var n="include"===t?this.include:this.exclude,r="include"===t?this.exclude:this.include;if(!(n.includes(e)||n.length>=20)){var i=r.indexOf(e);i>=0&&r.splice(i,1),n.push(e),this.changed()}},remove:function(e,t){var n=e.indexOf(t);n<0||(e.splice(n,1),this.changed())},toggle:function(e,t){var n="include"===t?this.include:this.exclude;n.includes(e)?this.remove(n,e):this.add(e,t)},setTag:function(e){this.tagId=e,this.changed()}}})),Alpine.data("soborsIngredientAutocomplete",(function(e){return{query:"",results:[],open:!1,active:-1,controller:null,get inputId(){return"ingredient-".concat(e)},get listId(){return"ingredient-".concat(e,"-results")},close:function(){this.open=!1,this.active=-1},search:function(){var e,n=this;return(e=t().mark((function e(){var r,i,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((i=n.query.trim()).length<2)){e.next=5;break}return n.results=[],n.close(),e.abrupt("return");case 5:return null===(r=n.controller)||void 0===r||r.abort(),n.controller=new AbortController,e.prev=7,e.next=10,fetch("/api/ingredient-autocomplete/?finder_page=".concat(encodeURIComponent(n.$root.closest("[data-finder-page]").dataset.finderPage),"&q=").concat(encodeURIComponent(i)),{signal:n.controller.signal});case 10:return o=e.sent,e.next=13,o.json();case 13:n.results=e.sent.results,n.open=n.results.length>0,n.active=-1,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(7),"AbortError"!==e.t0.name&&n.close();case 21:case"end":return e.stop()}}),e,null,[[7,18]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){u(o,r,i,s,a,"next",e)}function a(e){u(o,r,i,s,a,"throw",e)}s(void 0)}))})()},choose:function(t){this.$dispatch("finder-add",{name:t.label,mode:e}),this.query="",this.close()},keydown:function(e){"ArrowDown"===e.key&&(e.preventDefault(),this.active=Math.min(this.active+1,this.results.length-1)),"ArrowUp"===e.key&&(e.preventDefault(),this.active=Math.max(this.active-1,0)),"Enter"===e.key&&this.active>=0&&(e.preventDefault(),this.choose(this.results[this.active])),"Escape"===e.key&&this.close()}}}))},9932:()=>{Alpine.data("recipeNavigation",(function(){return{showNav:!1,activeSection:null,visibleBlocks:new Set,init:function(){var e=this,t=this.$root,n=t.querySelectorAll('[data-recipe-section="ingredients"]'),r=t.querySelectorAll('[data-recipe-section="cooking"]');new IntersectionObserver((function(t){e.showNav=t[0].isIntersecting}),{threshold:.02}).observe(t);var i=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting?e.visibleBlocks.add(t.target):e.visibleBlocks.delete(t.target)}));var n=!1,r=!1;e.visibleBlocks.forEach((function(e){"ingredients"===e.dataset.recipeSection&&(n=!0),"cooking"===e.dataset.recipeSection&&(r=!0)})),e.activeSection=n?"ingredients":r?"cooking":null}),{rootMargin:"-80px 0px 0px 0px",threshold:.05});n.forEach((function(e){return i.observe(e)})),r.forEach((function(e){return i.observe(e)}))},scrollTo:function(e){var t=this.$root.querySelector('[data-recipe-section="'.concat(e,'"]'));if(t){var n=t.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:n,behavior:"smooth"})}}}}))},502:()=>{Alpine.data("soborsRecipeScaler",(function(e,t,n,r,i){return{type:e,currentShape:"rectangular"===e?"rectangular":"round",portion:parseFloat(t)||1,diameter:parseFloat(n)||22,width:parseFloat(r)||20,height:parseFloat(i)||20,dropdownOpen:!1,basePortion:parseFloat(t)||1,baseDiameter:parseFloat(n)||22,baseWidth:parseFloat(r)||20,baseHeight:parseFloat(i)||20,huFractions:{negyed:.25,egyharmad:1/3,fél:.5,kétharmad:2/3,háromnegyed:.75,másfél:1.5},parsedIngredients:[],init:function(){var e=this;this.$nextTick((function(){e.scanIngredients(),e.updateRecipe()})),this.$watch("portion",(function(){return e.updateRecipe()})),this.$watch("diameter",(function(){return e.updateRecipe()})),this.$watch("width",(function(){return e.updateRecipe()})),this.$watch("height",(function(){return e.updateRecipe()})),this.$watch("currentShape",(function(){return e.updateRecipe()}))},scanIngredients:function(){var e=this,t=document.querySelectorAll(".ingredient-data");this.parsedIngredients=[],t.forEach((function(t){var n=t.dataset.rawQty,r=t.dataset.rawUnit||"",i=t.dataset.rawName,o=null,s=i;if(n&&""!==n.trim())o=e.parseQuantity(n);else{var a=i.indexOf(" ");if(a>-1){var l=i.substring(0,a),c=e.parseQuantity(l);null!==c&&(o=c,s=i.substring(a+1).trim())}}e.parsedIngredients.push({elQty:t.querySelector(".display-qty"),elUnit:t.querySelector(".display-unit"),elName:t.querySelector(".display-name"),baseQty:o,baseUnit:r.trim(),baseName:s})}))},parseQuantity:function(e){if(!e)return null;if(e=e.trim().toLowerCase(),this.huFractions[e])return this.huFractions[e];e=e.replace(",",".");var t=parseFloat(e);return isNaN(t)?null:t},normalizeMeasurement:function(e,t){if(!t)return{qty:e,unit:t};var n=t.toLowerCase(),r=e;return/^(dkg|deka(gramm?)?)$/.test(n)?n="dkg":/^(kg|kil[oó](gramm?)?)$/.test(n)?(r=100*e,n="dkg"):/^(g|gramm?)$/.test(n)?(r=e/10,n="dkg"):/^(dl|deci(liter)?)$/.test(n)?n="dl":/^(l|liter)$/.test(n)?(r=10*e,n="dl"):/^(cl|
1centi?(liter)?)$/.test(n)?(r=e/10,n="dl"):/^(ml|mill?i?(liter)?)$/.test(n)?(r=e/100,n="dl"):/^(teáskanál|kiskanál|tk\.?)$/.test(n)?n="tk.":/^(evÅkanál|ek\.?)$/.test(n)?n="ek.":/^(kávéskanál|mokkáskanál|kk\.?)$/.test(n)&&(n="kk."),{qty:r,unit:n}},optimizeMeasurement:function(e,t){if(!t)return{qty:e,unit:t};var n=e,r=t;return"dkg"===t?e>=100?(n=e/100,r="kg"):e<5&&(n=10*e,r="g"):"dl"===t&&(e>=10?(n=e/10,r="liter"):e<.3?(n=100*e,r="ml"):e<.5&&(n=10*e,r="cl")),{qty:n,unit:r}},formatQuantity:function(e){if(!e)return"";if(e>=.24&&e<=.26)return"negyed";if(e>=.32&&e<=.34)return"egyharmad";if(e>=.49&&e<=.51)return"fél";if(e>=.65&&e<=.67)return"kétharmad";if(e>=.74&&e<=.76)return"háromnegyed";if(e>=1.49&&e<=1.51)return"másfél";return(e>=100?Math.round(e):e>=10?Math.round(2*e)/2:Math.round(10*e)/10).toString().replace(".",",")},updateRecipe:function(){var e=this,t=1;if("portion"===this.type)t=this.portion/this.basePortion;else if("round"===this.type||"rectangular"===this.type){var n=1,r=1;"round"===this.currentShape?(n=Math.PI*Math.pow(this.diameter/2,2),r=Math.PI*Math.pow(this.baseDiameter/2,2)):(n=this.width*this.height,r=this.baseWidth*this.baseHeight),t=n/r}this.parsedIngredients.forEach((function(n){if(null!==n.baseQty){var r=n.baseQty*t,i=e.normalizeMeasurement(r,n.baseUnit),o=e.optimizeMeasurement(i.qty,i.unit);n.elQty&&(n.elQty.textContent=e.formatQuantity(o.qty)+" "),n.elUnit&&(n.elUnit.textContent=o.unit?o.unit+" ":"")}else n.elQty&&(n.elQty.textContent="");n.elName&&(n.elName.textContent=n.baseName)}))},increasePortion:function(){this.portion++},decreasePortion:function(){this.portion>1&&this.portion--},selectShape:function(e){this.currentShape=e,this.dropdownOpen=!1}}})),Alpine.data("soborsIngredientItem",(function(e,t,n){return{storageKey:"recipe_checked_".concat(e,"_").concat(t,"_").concat(n),checked:!1,init:function(){this.checked="true"===localStorage.getItem(this.storageKey)},toggle:function(){this.checked=!this.checked,localStorage.setItem(this.storageKey,this.checked)}}}))},3056:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}Alpine.data("sseNotificationRibbon",(function(){return{notifications:[],STORAGE_KEY:"neon_sse_notifications",LEADER_KEY:"neon_sse_leader",HEARTBEAT_INTERVAL_MS:3e3,LEADER_STALE_MS:15e3,init:function(){var e=this;this.TTL_MS=parseInt(this.$el.dataset.ttl),this.MAX_PAGE_LOADS=parseInt(this.$el.dataset.maxPageloadCount),this.MAX_RIBBON_COUNT=parseInt(this.$el.dataset.maxRibbonCount)||5,this._tabId=Date.now().toString(36)+Math.random().toString(36).slice(2,7),this.loadFromStorage(),window.addEventListener("load",(function(){return e.initSSE()}),{once:!0}),this._onStorage=function(t){t.key===e.STORAGE_KEY&&e.syncFromStorage(),t.key!==e.LEADER_KEY||t.newValue||e.tryBecomeLeader()},window.addEventListener("storage",this._onStorage),this._onUnload=function(){e._isLeader&&(clearInterval(e._heartbeatTimer),localStorage.removeItem(e.LEADER_KEY)),e._eventSource&&e._eventSource.close()},window.addEventListener("beforeunload",this._onUnload)},loadFromStorage:function(){var e=this;try{var t=localStorage.getItem(this.STORAGE_KEY);if(!t)return;var r=JSON.parse(t);if(!Array.isArray(r))return void localStorage.removeItem(this.STORAGE_KEY);var i=Date.now();
1(r=r.filter((function(t){return i-t.timestamp<e.normalizeNotificationTtlMs(t.ttlMs)})).map((function(e){return n(n({},e),{},{remainingLoads:e.remainingLoads-1})})).filter((function(e){return e.remainingLoads>0}))).length>0?(localStorage.setItem(this.STORAGE_KEY,JSON.stringify(r)),this.notifications=this.limitQueue(r),this.notifications.forEach((function(t){return e.trackImpression(t)}))):localStorage.removeItem(this.STORAGE_KEY)}catch(e){localStorage.removeItem(this.STORAGE_KEY)}},syncFromStorage:function(){var e=this;try{var t=localStorage.getItem(this.STORAGE_KEY);if(!t)return void(this.notifications=[]);var n=JSON.parse(t);if(!Array.isArray(n))return void(this.notifications=[]);var r=Date.now();n=n.filter((function(t){return r-t.timestamp<e.normalizeNotificationTtlMs(t.ttlMs)&&t.remainingLoads>0}));var i=new Set(this.notifications.map((function(e){return e.id})));this.notifications=this.limitQueue(n),this.notifications.filter((function(e){return!i.has(e.id)})).forEach((function(t){return e.trackImpression(t)}))}catch(e){this.notifications=[]}},initSSE:function(){this._isLeader=!1,this._endpoint=this.$el.dataset.sseEndpoint,this._endpoint&&this.tryBecomeLeader()},tryBecomeLeader:function(){var e=this;if(this._endpoint&&!this._isLeader){try{var t=localStorage.getItem(this.LEADER_KEY);if(t){var n=JSON.parse(t);if(n.tabId!==this._tabId&&Date.now()-n.heartbeat<this.LEADER_STALE_MS)return}}catch(e){}this.writeHeartbeat();var r=50+Math.floor(150*Math.random());setTimeout((function(){try{var t=localStorage.getItem(e.LEADER_KEY);if(t)if(JSON.parse(t).tabId!==e._tabId)return}catch(e){return}e._isLeader=!0,e.startHeartbeat(),e.openEventSource()}),r)}},writeHeartbeat:function(){try{localStorage.setItem(this.LEADER_KEY,JSON.stringify({tabId:this._tabId,heartbeat:Date.now()}))}catch(e){}},startHeartbeat:function(){var e=this;this._heartbeatTimer=setInterval((function(){if(e._isLeader){try{var t=localStorage.getItem(e.LEADER_KEY);if(t)if(JSON.parse(t).tabId!==e._tabId)return e._isLeader=!1,clearInterval(e._heartbeatTimer),void(e._eventSource&&(e._eventSource.close(),e._eventSource=null))}catch(e){}e.writeHeartbeat()}}),this.HEARTBEAT_INTERVAL_MS)},openEventSource:function(){var e=this;"undefined"!=typeof ReconnectingEventSource&&(this._eventSource=new ReconnectingEventSource(this._endpoint),this._eventSource.addEventListener("message",(function(t){try{var n=JSON.parse(t.data);e.handleNewNotification(n)}catch(e){}})),this._eventSource.addEventListener("stream-reset",(function(e){})))},destroy:function(){this._isLeader&&localStorage.removeItem(this.LEADER_KEY),this._eventSource&&this._eventSource.close(),this._heartbeatTimer&&clearInterval(this._heartbeatTimer),window.removeEventListener("storage",this._onStorage),window.removeEventListener("beforeunload",this._onUnload)},limitQueue:function(e){return e.slice(0,this.MAX_RIBBON_COUNT)},normalizeNotificationTtlMs:function(e){var t="number"==typeof e?e:Number.parseInt(e,10);return Number.isFinite(t)?t:this.TTL_MS},handleNewNotification:function(e){var t={id:Date.now().toString(36)+Math.random().toString(36).slice(2,7),title:e.title||e.text||"",url:e.url||"",timestamp:Date.now(),ttlMs:this.normalizeNotificationTtlMs(e.ttlMs),remainingLoads:this.MAX_PAGE_LOADS},n=[];try{var r=localStorage.getItem(this.STORAGE_KEY);if(r){var i=JSON.parse(r);Array.isArray(i)&&(n=i)}}catch(e){}t.url&&(n=n.filter((function(e){return e.url!==t.url}))),n.unshift(t);try{localStorage.setItem(this.STORAGE_KEY,JSON.stringify(n))}catch(e){}t.url&&(this.notifications=this.notifications.filter((function(e){return e.url!==t.url}))),this.notifications.unshift(t),this.notifications=this.limitQueue(this.notifications),this.trackImpression(t)},trackImpression:function(e){window._paq&&e.url&&_paq.push(["trackContentImpression",e.title,"SitePushRibbon",e.url])},trackClick:function(e){window._paq&&e.url&&_paq.push(["trackContentInteraction","click",e.title,"SitePushRibbon",e.url])},dismiss:function(e){this.notifications=this.notifications.filter((function(t){return t.id!==e}));try{var t=localStorage.getItem(this.STORAGE_KEY);if(!t)return;var n=JSON.parse(t);if(!Array.isArray(n))return void localStorage.removeItem(this.STORAGE_KEY);(n=n.filter((function(t){return t.id!==e}))).length>0?localStorage.setItem(this.STORAGE_KEY,JSON.stringify(n)):localStorage.removeItem(this.STORAGE_KEY)}catch(e){localStorage.removeItem(this.STORAGE_KEY)}}}}))},2607:()=>{function e(){var e=document.querySelectorAll(".wide-gallery"),t=document.querySelector("aside");if(e.length&&t){var n=t.querySelector(":scope > div");if(n){var r=Array.from(n.children);r.forEach((function(e){e.style.marginTop=""}));var i=new Map;r.forEach((function(t){var n=0;e.forEach((function(e){var r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top+n,s=i.bottom+n;if(!(r.bottom<o||r.top>s||r.right<i.left||r.left>i.right)){var a=r.bottom-o+24;n+=a}})),n>0&&(t.style.marginTop="".concat(n,"px"),i.set(t,n))}))}}}window.addEventListener("load",e),window.addEventListener("resize",e),window.addEventListener("load",(function(){var t=document.querySelector("aside");if(t){var n=t.querySelector(":scope > div");if(n)new MutationObserver((function(){e()})).observe(n,{childList:!0,subtree:!0})}}))},4959:()=>{function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Alpine.data("lineHighlight",(function(){return{lines:[],bgColor:"#ffffff",pX:10,pT:6,pB:6,init:function(){var e,t,n,r,i=this;this.bgColor=null!==(e=this.$el.dataset.bgColor)&&void 0!==e?e:"#ffffff",this.pX=Number(null!==(t=this.$el.dataset.px)&&void 0!==t?t:10),this.pT=Number(null!==(n=this.$el.dataset.pt)&&void 0!==n?n:6),this.pB=Number(null!==(r=this.$el.dataset.pb)&&void 0!==r?r:6),this.$nextTick((function(){i.render(),new ResizeObserver((function(){return i.render()})).observe(i.$el)}))},render:function(){var t=this.$refs.tgt;if(t){var n=document.createRange();n.selectNodeContents(t);var r=e(n.getClientRects()).filter((function(e){return e.width>1})),i=this.$el.getBoundingClientRect(),o=[];r.forEach((function(e){var t=e.top-i.top,n=e.bottom-i.top,r=e.left-i.left,s=e.right-i.left,a=o.find((function(e){return t<e.b&&n>e.t}));a?(a.l=Math.min(a.l,r),a.r=Math.max(a.r,s),a.t=Math.min(a.t,t),a.b=Math.max(a.b,n)):o.push({t,b:n,l:r,r:s})})),this.lines=o.sort((function(e,t){return e.t-t.t}))}},bgStyle:function(e,t){var n=this.pX,r=this.pT,i=this.pB,o=this.bgColor,s=0===t,a=t===this.lines.length-1,l=this.lines[t+1],c=Math.floor(e.t-(s?r:0)),u=a?Math.ceil(e.b+i):Math.ceil(l.t),d=Math.floor(e.l-n),f=Math.ceil(e.r+n);return["left: ".concat(d,"px"),"top: ".concat(c,"px"),"width: ".concat(f-d,"px"),"height: ".concat(u-c,"px"),"background-color: ".concat(o),"border-top-right-radius: ".concat(s?"10px":"0")].join("; ")}}}))},6064:()=>{Alpine.data("dataPrivacy",(function(){return{init:function(){var e=this;if(this.iframe=document.querySelector("iframe"),this.list=document.querySelector("#policies"),window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS())this.disableOnIOS();else{var t=this.list.querySelector("li.actual a");t&&this.loadIframe(t.href),this.list.querySelectorAll("a").forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e.loadIframe(t.href),e.setActiveLink(t)}))}))}},loadIframe:function(e){window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS()?this.disableOnIOS():this.iframe&&(this.iframe.src=e)},disableOnIOS:function(){this.iframe.style.height="0px",this.iframe.style.width="0px"},setActiveLink:function(e){this.list.querySelectorAll("li.actual").forEach((function(e){return e.classList.remove("actual")})),e.parentElement&&e.parentElement.classList.add("actual")}}}))},4043:()=>{document.addEventListener("DOMContentLoaded",(function(){var e=0,t=Array.from(document.querySelectorAll("#gallery-thumbs .thumb-item"));if(0!==t.length){var n=document.getElementById("prevPage"),r=document.getElementById("nextPage");n&&n.addEventListener("click",(function(){e>0&&s(e-1)})),r&&r.addEventListener("click",(function(){9*(e+1)<t.length&&s(e+1)}));var i=window.location.pathname.match(/\/(\d+)(?:\/)?\/?$/),o=i?parseInt(i[1],10):1;(isNaN(o)||o<1)&&(o=1),s(Math.floor((o-1)/9))}function s(i){var o=9*i,s=o+9;t.forEach((function(e,t){t>=o&&t<s?(e.classList.remove("hidden","opacity-0"),e.classList.add("opacity-100")):(e.classList.add("opacity-0"),setTimeout((function(){e.classList.add("hidden"),e.classList.remove("opacity-100")}),200))})),n&&(n.disabled=0===i,n.classList.toggle("opacity-50",0===i),n.classList.toggle("cursor-not-allowed",0===i)),r&&(r.disabled=s>=t.length,r.classList.toggle("opacity-50",s>=t.length),r.classList.toggle("cursor-not-allowed",s>=t.length)),e=i}}))},8354:()=>{Alpine.data("header",(function(){return{showMobileMenu:!1,showSearch:!1,mdSize:1024,setScrollable:function(){document.body.style.overflow="",document.body.style.touchAction=""},setUnScrollable:function(){document.body.style.overflow="hidden",document.body.style.touchAction="none"},toggleMobileMenu:function(){this.showMobileMenu=!this.showMobileMenu,this.showMobileMenu?this.setUnScrollable():this.setScrollable()},init:function(){var e=this;window.addEventListener("resize",(function(){window.innerWidth>e.mdSize&&(e.showMobileMenu=!1,e.setScrollable())}))}}}))},6303:()=>{function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}navigator.userAgent.includes("IndexApp")&&window.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll('script[src*="cdn.onesignal.com"]').forEach((function(e){return e.remove()})),document.querySelectorAll('script[src*="cmp.inmobi.com"]').forEach((function(e){return e.remove()})),e(document.scripts).filter((function(e){var t=e.textContent||"";return t.includes("OneSignal")||t.includes("OneSignalDeferred")||t.includes("__tcfapi")||t.includes("cmpStatus")||t.includes("choice.js")||t.includes("InMobi Choice")}
1)).forEach((function(e){return e.remove()}));try{delete window.OneSignalDeferred,delete window.__tcfapi,delete window.__uspapi,delete window.__cmp}catch(e){}}))},2671:()=>{function e(){arguments.length>0&&void 0!==arguments[0]||document;var e=document.querySelectorAll("[data-content-piece]");e.forEach((function(e){e.setAttribute("data-original-content-piece",e.getAttribute("data-content-piece"))})),e.forEach((function(e){for(var t=[],n=e;n;){var r=n.getAttribute("data-original-content-piece");r&&t.unshift(r),n=n.parentElement}var i=t.join(":");e.getAttribute("data-content-piece")!==i&&e.setAttribute("data-content-piece",i)}))}document.addEventListener("DOMContentLoaded",(function(){e()})),window.buildHierarchicalContentPieces=e},4338:()=>{document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".adult-confirmation").forEach((function(e){e.addEventListener("click",(function(){var t=e.closest(".adult-overlay");t&&(t.style.display="none")}))}))}))},1274:()=>{Alpine.data("scrollableList",(function(e){var t=e.cardWidthLg,n=e.cardWidthSm;return{atStart:!0,atEnd:!1,cardWidth:window.innerWidth>1024?t:n,next:function(){this.$refs.scrollableList.scrollLeft+=this.cardWidth,this.updateState()},prev:function(){this.$refs.scrollableList.scrollLeft-=this.cardWidth,this.updateState()},scroll:function(){this.updateState()},init:function(){this.updateState()},updateState:function(){var e=this.$refs.scrollableList;this.atStart=e.scrollLeft<=5,this.atEnd=e.scrollLeft+e.offsetWidth>=e.scrollWidth-5}}}))},8377:()=>{Alpine.data("totalCheck",(function(){return{state:{},init:function(){var e=this;document.querySelectorAll("[data-table]").forEach((function(t){var n=t.getAttribute("data-table");e.state[n]="faq1"==n}))},toggle:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state[e]=!this.state[e],t&&this.state[e]?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")}}}))},3860:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";var e=a(),l=e.m(t),u=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,r;return function(i){t||(t={stop:function(){return r(i.a,2)},catch:function(){return i.v},abrupt:function(e,t){return r(i.a,f[e],t)},delegateYield:function(e,o,s){return t.resultName=o,r(i.d,n(e),s)},finish:function(e){return r(i.f,e)}},r=function(e,n,r){i.p=t.prev,i.n=t.next;try{return e(n,r)}finally{t.next=i.n}}),t.resultName&&(t[t.resultName]=i.v,t.resultName=void 0),t.sent=i.v,t.next=i.n;try{return e.call(this,t)}finally{i.p=t.prev,i.n=t.next}}}return(t=function(){return{wrap:function(t,n,r,i){return e.w(h(t),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:e.m,awrap:function(e,t){return new c(e,t)},AsyncIterator:s,async:function(e,t,n,r,s){return(d(t)?o:i)(h(e),t,n,r,s)},keys:r,values:n}})()}function n(t){if(null!=t){var n=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(e(t)+" is not iterable")}function r(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function i(e,t,n,r,i){var s=o(e,t,n,r,i);return s.next().then((function(e){return e.done?e.value:s.next()}))}function o(e,t,n,r,i){return new s(a().w(e,t,n,r),i||Promise)}function s(e,t){function n(r,i,o,s){try{var a=e[r](i),l=a.value;return l instanceof c?t.resolve(l.v).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){a.value=e,o(a)}),(function(e){return n("throw",e,o,s)}))}catch(e){s(e)}}var r;this.next||(l(s.prototype),l(s.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),l(this,"_invoke",(function(e,i,o){function s(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(s,s):s()}),!0)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return l(u,"_invoke",function(n,r,i){var o,a,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,a=0,l=e,f.n=n,s}};function h(n,r){for(a=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(a=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),a=u,l=p;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(f.n=-1),h(a,l)):f.n=l:f.v=l);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),u}var s={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(l(t={},r,(function(){return this})),t),h=d.prototype=c.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,l(h,"constructor",d),l(d,"constructor",u),u.displayName="GeneratorFunction",l(d,i,"GeneratorFunction"),l(h),l(h,i,"Generator"),l(h,r,(function(){return this})),l(h,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:o,m:p}})()}function l(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}l=function(e,t,n,r){function o(t,n){l(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},l(e,t,n,r)}function c(e,t){this.v=e,this.k=t}function u(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("[data-turnstile-form]").forEach((function(e){e.addEventListener("submit",function(){var n,r=(n=t().mark((function n(r){var i,o,s,a,l,c;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.preventDefault(),o='[name="cf-turnstile-response"]',s=(null===(i=e.querySelector(o))||void 0===i?void 0:i.value)||"",t.prev=3,t.next=6,fetch("/verify-turnstile/",{method:"POST",headers:{"X-CSRFToken":(n="csrftoken",u=void 0,u=document.cookie.match("(^|;)\\s*"+n+"\\s*=\\s*([^;]+)"),u?decodeURIComponent(u[2]):null)},body:new URLSearchParams({turnstile:s})});case 6:return a=t.sent,t.next=9,a.json();case 9:if(!t.sent.valid){t.next=15;break}return(l=e.querySelector(o))&&(l.disabled=!0),e.submit(),t.abrupt("return");case 15:t.next=22;break;case 17:t.prev=17,t.t0=t.catch(3),(c=e.querySelector(o))&&(c.disabled=!0),e.submit();case 22:case"end":return t.stop()}var n,u}),n,null,[[3,17]])})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function s(e){u(o,r,i,s,a,"next",e)}function a(e){u(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return r.apply(this,arguments)}}())}))}))},2499:()=>{Alpine.store("carousel",{isLooped:!1,next:function(e,t){e.scrollLeft+=t},prev:function(e,t){e.scrollLeft-=t},_scrollLeft:function(e,t){e.classList.remove("scroll-smooth"),e.scrollLeft=t,e.classList.add("scroll-smooth")},_changeScrollLeftToFirstDuplicatedElement:function(e){this._scrollLeft(e,e.scrollWidth/2)},scroll:function(e){this.isLooped&&(0===e.scrollLeft?this._changeScrollLeftToFirstDuplicatedElement(e):Math.ceil(e.scrollLeft)===e.scrollWidth-e.offsetWidth&&this._scrollLeft(e,e.scrollWidth/2-e.offsetWidth))},initialize:function(e){var t=e.children.length;this.isLooped=t>8,this.isLooped&&this._changeScrollLeftToFirstDuplicatedElement(e)}})},7986:()=>{Alpine.data("dataPrivacyVelvet",(function(){return{init:function(){var e=this;if(this.iframe=document.querySelector("iframe"),this.list=document.querySelector("#policies"),window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS())this.disableOnIOS();else{var t=this.list.querySelector("li.actual a");t&&this.isIframeVisible()&&this.loadIframe(t.href),this.list.querySelectorAll("a").forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e.isIframeVisible()?(e.loadIframe(t.href),e.setActiveLink(t)):window.open(t.href,"_blank")}))}))}},isIframeVisible:function(){return this.iframe&&null!==this.iframe.offsetParent},loadIframe:function(e){window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS()?this.disableOnIOS():this.iframe&&(this.iframe.src=e)},disableOnIOS:function(){this.iframe.style.height="0px",this.iframe.style.width="0px"},setActiveLink:function(e){this.list.querySelectorAll("li.actual").forEach((function(e){return e.classList.remove("actual")})),e.parentElement&&e.parentElement.classList.add("actual")}}}))},1088:()=>{Alpine.data("velvetHeader",(function(){return{showMobileMenu:!1,mdSize:700,setScrollable:function(){document.body.style.overflow="",document.body.style.touchAction=""},toggleMobileMenu:function(){this.showMobileMenu=!this.showMobileMenu},init:function(){var e=this;this.setScrollable(),window.addEventListener("resize",(function(){window.innerWidth>e.mdSize&&(e.showMobileMenu=!1)}))}}}))},9888:()=>{Alpine.data("quoteAnimation",(function(){return{start:70,stop:40,viewportRoot:"self",includeMarks:!1,authorInactiveClass:"text-tertiary-quote-light",authorActiveClass:"text-secondary",htmlContent:"",hiliteEl:null,nohiliteEl:null,ticking:!1,_resizeHandler:null,renderWithBr:function(e,t){e.innerText="";var n=t.split("\n");
1n.forEach((function(t,r){e.appendChild(document.createTextNode(t)),r<n.length-1&&e.appendChild(document.createElement("br"))}))},_resolve:function(e){if(!e||"self"===e)return this.$el;if(e.startsWith("closest:")){var t=e.slice(8);return this.$el.closest(t)||this.$el}if(e.startsWith("query:")){var n=e.slice(6);return this.$el.querySelector(n)||this.$el}return this.$el},_readOverrides:function(){var e=this.$el;null!=e.dataset.quoteStart&&(this.start=Number(e.dataset.quoteStart)),null!=e.dataset.quoteStop&&(this.stop=Number(e.dataset.quoteStop)),e.dataset.quoteViewportRoot&&(this.viewportRoot=e.dataset.quoteViewportRoot),this.includeMarks="1"===e.dataset.quoteIncludeMarks,e.dataset.quoteAuthorInactiveClass&&(this.authorInactiveClass=e.dataset.quoteAuthorInactiveClass),e.dataset.quoteAuthorActiveClass&&(this.authorActiveClass=e.dataset.quoteAuthorActiveClass)},_updateAuthorColor:function(e,t){if(this.viewportRoot&&"self"!==this.viewportRoot){var n=t.querySelector("[data-quote-author]");n&&(this.authorInactiveClass&&n.classList.toggle(this.authorInactiveClass,!e),this.authorActiveClass&&n.classList.toggle(this.authorActiveClass,e))}},animate:function(){var e=this;this.ticking||(this.ticking=!0,requestAnimationFrame((function(){e.ticking=!1;var t=e._resolve(e.viewportRoot),n=viewportProgress(t,e.start,e.stop),r=Math.round(e.htmlContent.length*n),i=(r=Math.min(e.htmlContent.length,Math.max(0,r)))>=e.htmlContent.length;e._updateAuthorColor(i,t),e.renderWithBr(e.hiliteEl,e.htmlContent.slice(0,r)),e.renderWithBr(e.nohiliteEl,e.htmlContent.slice(r))})))},init:function(){var e=this,t=this.$el;if("1"!==t.dataset.quoteAnimInitialized){t.dataset.quoteAnimInitialized="1",this._readOverrides();var n=t.innerText.trim().replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.includeMarks&&"Q"===t.tagName&&(t.style.quotes="none",n="â".concat(n,"â")),this.htmlContent=n,this.hiliteEl=document.createElement("span"),this.nohiliteEl=document.createElement("span"),this.nohiliteEl.className="text-tertiary-quote-light",this.renderWithBr(this.hiliteEl,this.htmlContent),t.innerText="",t.appendChild(this.hiliteEl),t.appendChild(this.nohiliteEl),this._resizeHandler=function(){return e.animate()},window.addEventListener("resize",this._resizeHandler,{passive:!0}),this.animate()}},destroy:function(){this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null)}}}))},4846:()=>{Alpine.data("scrollableArticleHighlightSection",(function(){return{enabled:!0,isPhone:window.matchMedia("(max-width: 700px)").matches,_onWindowScroll:null,_onContentScroll:null,_onResize:null,travel:0,ticking:!1,clamp:function(e,t,n){return Math.min(n,Math.max(t,e))},init:function(){var e=this;this.enabled=!this.isPhone,this.$nextTick((function(){var t=e.$refs.content;t.classList.add("scroll-start"),t.classList.remove("scroll-end"),e._onContentScroll=function(){return e.updateEdges()},t.addEventListener("scroll",e._onContentScroll,{passive:!0}),e.updateEdges(),e.enabled&&(e._onWindowScroll=function(){return e.syncToWindowScroll()},e._onResize=function(){e.measure(),e.syncToWindowScroll(!0)},window.addEventListener("scroll",e._onWindowScroll,{passive:!0}),window.addEventListener("resize",e._onResize,{passive:!0}),e.measure(),e.syncToWindowScroll(!0))}))},measure:function(){var e=this.$el,t=this.$refs.content,n=this.$refs.container;this.travel=Math.max(0,t.scrollWidth-t.clientWidth);var r=n.offsetHeight;e.style.height="".concat(r+this.travel,"px")},syncToWindowScroll:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.ticking&&!t||(this.ticking=!0,requestAnimationFrame((function(){e.ticking=!1;var t=e.$el,n=e.$refs.content,r=t.getBoundingClientRect().top+window.scrollY,i=window.scrollY-r;n.scrollLeft=e.clamp(i,0,e.travel),e.updateEdges()})))},updateEdges:function(){var e=this.$refs.content,t=e.scrollLeft,n=e.scrollWidth-e.clientWidth;t<5?e.classList.add("scroll-start"):e.classList.remove("scroll-start"),t>n-5?e.classList.add("scroll-end"):e.classList.remove("scroll-end")},destroy:function(){if(this.enabled){var e=this.$refs.content;this._onWindowScroll&&window.removeEventListener("scroll",this._onWindowScroll),this._onResize&&window.removeEventListener("resize",this._onResize),this._onContentScroll&&e.removeEventListener("scroll",this._onContentScroll),this._onWindowScroll=null,this._onResize=null,this._onContentScroll=null}}}}))},6021:()=>{Alpine.store("carousel",{isLooped:!1,next:function(e,t){e.scrollLeft+=t},prev:function(e,t){e.scrollLeft-=t},_scrollLeft:function(e,t){e.classList.remove("scroll-smooth"),e.scrollLeft=t,e.classList.add("scroll-smooth")},_changeScrollLeftToFirstDuplicatedElement:function(e){this._scrollLeft(e,e.scrollWidth/2)},scroll:function(e){this.isLooped&&(0===e.scrollLeft?this._changeScrollLeftToFirstDuplicatedElement(e):Math.ceil(e.scrollLeft)===e.scrollWidth-e.offsetWidth&&this._scrollLeft(e,e.scrollWidth/2-e.offsetWidth))},initialize:function(e){var t=e.children.length;this.isLooped=t>8,this.isLooped&&this._changeScrollLeftToFirstDuplicatedElement(e)}})},806:()=>{Alpine.data("htmlBlockWrapper",(function(){return{resizeIframes:function(){this.$el.querySelectorAll("iframe").forEach((function(e){var t=e.getAttribute("width"),n=e.getAttribute("height");if(t&&n&&!t.includes("%")&&!n.includes("%")){var r=parseFloat(t),i=parseFloat(n),o=getComputedStyle(e);
1if(o){var s=parseFloat(o.width);if(s<r){var a=s/(r/i)+40;e.style.height="".concat(a,"px")}else e.style.height=""}}}))},syncInstagramEmbedHeights:function(){this.$el.querySelectorAll(".instagram-div").forEach((function(e){var t=e.querySelector("bento-instagram");if(t){e.style.transition="height ".concat(300,"ms ease");var n=null,r=null,i=null,o=null,s=null,a=function(){var e;clearInterval(i),clearTimeout(r),null===(e=s)||void 0===e||e.disconnect()};Alpine.onElRemoved(e,(function(){var e;clearTimeout(n),a(),null===(e=o)||void 0===e||e.disconnect()}));var l=function(t){clearTimeout(n),n=setTimeout((function(){var n=t.getBoundingClientRect().height;n>0&&(e.style.height="".concat(n,"px"))}),300)},c=function(e){var t=e.querySelector("iframe");return!!t&&(l(t),(o=new ResizeObserver((function(){return l(t)}))).observe(t),!0)},u=function(e){c(e)?a():(s=new MutationObserver((function(){c(e)&&a()}))).observe(e,{childList:!0,subtree:!0})};customElements.whenDefined("bento-instagram").then((function(){r=setTimeout(a,1e4),t.shadowRoot?u(t.shadowRoot):i=setInterval((function(){var e=t.shadowRoot;e&&(clearInterval(i),u(e))}),100)}))}}))},init:function(){this.resizeIframes(),this.syncInstagramEmbedHeights()}}}))},9588:()=>{Alpine.data("dataPrivacyWlp",(function(){return{init:function(){var e=this;if(this.iframe=document.querySelector("iframe"),this.list=document.querySelector("#policies"),this.list)if(window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS())this.disableOnIOS();else{var t=this.list.querySelector("li.actual a");t&&this.isIframeVisible()&&this.loadIframe(t.href),this.list.querySelectorAll("a").forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e.isIframeVisible()?(e.loadIframe(t.href),e.setActiveLink(t)):window.open(t.href,"_blank")}))}))}},isIframeVisible:function(){return this.iframe&&null!==this.iframe.offsetParent},loadIframe:function(e){window.isSafari&&window.isSafari()&&window.isIOS&&window.isIOS()?this.disableOnIOS():this.iframe&&(this.iframe.src=e)},disableOnIOS:function(){this.iframe.style.height="0px",this.iframe.style.width="0px"},setActiveLink:function(e){this.list.querySelectorAll("li.actual").forEach((function(e){return e.classList.remove("actual")})),e.parentElement&&e.parentElement.classList.add("actual")}}}))},8334:()=>{Alpine.data("welovePlacesHeader",(function(){return{showMobileMenu:!1,mdSize:768,setScrollable:function(){document.body.style.overflow="",document.body.style.touchAction=""},setUnScrollable:function(){document.body.style.overflow="hidden",document.body.style.touchAction="none"},openMobileMenu:function(){this.showMobileMenu=!0,this.setUnScrollable()},closeMobileMenu:function(){this.showMobileMenu&&(this.showMobileMenu=!1,this.setScrollable())},toggleMobileMenu:function(){this.showMobileMenu?this.closeMobileMenu():this.openMobileMenu()},init:function(){var e=this;this._resizeHandler=function(){window.innerWidth>=e.mdSize&&e.showMobileMenu&&e.closeMobileMenu()},window.addEventListener("resize",this._resizeHandler)},destroy:function(){this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null)}}})),Alpine.data("welovePlacesLogoSwap",(function(){return{currentIcon:"love",exitingIcon:null,enteringIcon:null,animationDuration:700,animationPause:150,animationInterval:5e3,intervalId:null,init:function(){var e=this;window.matchMedia("(prefers-reduced-motion: reduce)").matches||(this.intervalId=window.setInterval((function(){e.swapIcons()}),this.animationInterval))},destroy:function(){null!==this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null)},swapIcons:function(){var e=this,t="love"===this.currentIcon?"heart":"love";this.exitingIcon=this.currentIcon,this.enteringIcon=null,window.setTimeout((function(){e.currentIcon=null,e.exitingIcon=null,window.setTimeout((function(){e.enteringIcon=t,window.setTimeout((function(){e.currentIcon=t,e.enteringIcon=null}),e.animationDuration)}),e.animationPause)}),this.animationDuration)},getIconClasses:function(e){return this.currentIcon===e?"translate-y-0 opacity-100":this.exitingIcon===e?"translate-y-full opacity-100":this.enteringIcon===e?"translate-y-0 opacity-100":"translate-y-full opacity-0"}}}))},4037:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var htmx=function(){const htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(e,t){return getInputValues(e,t||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inl
1ineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0},parseInterval:null,_:null,version:"2.0.0"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;const internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map((function(e){return"[hx-"+e+"], [data-hx-"+e+"]"})).join(", "),HEAD_TAG_REGEX=makeTagRegEx("head");function makeTagRegEx(e,t=!1){return new RegExp(`<${e}(\\s[^>]*>|>)([\\s\\S]*?)<\\/${e}>`,t?"gim":"im")}function parseInterval(e){if(null==e)return;let t=NaN;return t="ms"==e.slice(-2)?parseFloat(e.slice(0,-2)):"s"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1)):"m"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1))*60:parseFloat(e),isNaN(t)?void 0:t}function getRawAttribute(e,t){return e instanceof Element&&e.getAttribute(t)}function hasAttribute(e,t){return!!e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function getAttributeValue(e,t){return getRawAttribute(e,t)||getRawAttribute(e,"data-"+t)}function parentElt(e){const t=e.parentElement;return!t&&e.parentNode instanceof ShadowRoot?e.parentNode:t}function getDocument(){return document}function getRootNode(e,t){return e.getRootNode?e.getRootNode({composed:t}):getDocument()}function getClosestMatch(e,t){for(;e&&!t(e);)e=parentElt(e);return e||null}function getAttributeValueWithDisinheritance(e,t,n){const r=getAttributeValue(t,n),i=getAttributeValue(t,"hx-disinherit");var o=getAttributeValue(t,"hx-inherit");if(e!==t){if(htmx.config.disableInheritance)return o&&("*"===o||o.split(" ").indexOf(n)>=0)?r:null;if(i&&("*"===i||i.split(" ").indexOf(n)>=0))return"unset"}return r}function getClosestAttributeValue(e,t){let n=null;if(getClosestMatch(e,(function(r){return!!(n=getAttributeValueWithDisinheritance(e,asElement(r),t))})),"unset"!==n)return n}function matches(e,t){const n=e instanceof Element&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector);return!!n&&n.call(e,t)}function getStartTag(e){const t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);return t?t[1].toLowerCase():""}function parseHTML(e){return(new DOMParser).parseFromString(e,"text/html")}function takeChildrenFor(e,t){for(;t.childNodes.length>0;)e.append(t.childNodes[0])}function duplicateScript(e){const t=getDocument().createElement("script");return forEach(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),t.textContent=e.textContent,t.async=!1,htmx.config.inlineScriptNonce&&(t.nonce=htmx.config.inlineScriptNonce),t}function isJavaScriptScriptNode(e){return e.matches("script")&&("text/javascript"===e.type||"module"===e.type||""===e.type)}function normalizeScriptTags(e){Array.from(e.querySelectorAll("script")).forEac
1h((e=>{if(isJavaScriptScriptNode(e)){const t=duplicateScript(e),n=e.parentNode;try{n.insertBefore(t,e)}catch(e){logError(e)}finally{e.remove()}}}))}function makeFragment(e){const t=e.replace(HEAD_TAG_REGEX,""),n=getStartTag(t);let r;if("html"===n){r=new DocumentFragment;const t=parseHTML(e);takeChildrenFor(r,t.body),r.title=t.title}else if("body"===n){r=new DocumentFragment;const e=parseHTML(t);takeChildrenFor(r,e.body),r.title=e.title}else{const e=parseHTML('<body><template class="internal-htmx-wrapper">'+t+"</template></body>");r=e.querySelector("template").content,r.title=e.title;var i=r.querySelector("title");i&&i.parentNode===r&&(i.remove(),r.title=i.innerText)}return r&&(htmx.config.allowScriptTags?normalizeScriptTags(r):r.querySelectorAll("script").forEach((e=>e.remove()))),r}function maybeCall(e){e&&e()}function isType(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function isFunction(e){return"function"==typeof e}function isRawObject(e){return isType(e,"Object")}function getInternalData(e){const t="htmx-internal-data";let n=e[t];return n||(n=e[t]={}),n}function toArray(e){const t=[];if(e)for(let n=0;n<e.length;n++)t.push(e[n]);return t}function forEach(e,t){if(e)for(let n=0;n<e.length;n++)t(e[n])}function isScrolledIntoView(e){const t=e.getBoundingClientRect(),n=t.top,r=t.bottom;return n<window.innerHeight&&r>=0}function bodyContains(e){const t=e.getRootNode&&e.getRootNode();return t&&t instanceof window.ShadowRoot?getDocument().body.contains(t.host):getDocument().body.contains(e)}function splitOnWhitespace(e){return e.trim().split(/\s+/)}function mergeObjects(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function parseJSON(e){try{return JSON.parse(e)}catch(e){return logError(e),null}}function canAccessLocalStorage(){const e="htmx:localStorageTest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function normalizePath(e){try{const t=new URL(e);return t&&(e=t.pathname+t.search),/^\/$/.test(e)||(e=e.replace(/\/+$/,"")),e}catch(t){return e}}function internalEval(str){return maybeEval(getDocument().body,(function(){return eval(str)}))}function onLoadHelper(e){return htmx.on("htmx:load",(function(t){e(t.detail.elt)}))}function logAll(){htmx.logger=function(e,t,n){console&&console.log(t,e,n)}}function logNone(){htmx.logger=null}function find(e,t){return"string"!=typeof e?e.querySelector(t):find(getDocument(),e)}function findAll(e,t){return"string"!=typeof e?e.querySelectorAll(t):findAll(getDocument(),e)}function getWindow(){return window}function removeElement(e,t){e=resolveTarget(e),t?getWindow().setTimeout((function(){removeElement(e),e=null}),t):parentElt(e).removeChild(e)}function asElement(e){return e instanceof Element?e:null}function asHtmlElement(e){return e instanceof HTMLElement?e:null}function asString(e){return"string"==typeof e?e:null}function asParentNode(e){return e instanceof Element||e instanceof Document||e instanceof DocumentFragment?e:null}function addClassToElement(e,t,n){(e=asElement(resolveTarget(e)))&&(n?getWindow().setTimeout((function(){addClassToElement(e,t),e=null}),n):e.classList&&e.classList.add(t))}function removeClassFromElement(e,t,n){let r=asElement(resolveTarget(e));r&&(n?getWindow().setTimeout((function(){removeClassFromElement(r,t),r=null}),n):r.classList&&(r.classList.remove(t),0===r.classList.length&&r.removeAttribute("class")))}function toggleClassOnElement(e,t){(e=resolveTarget(e)).classList.toggle(t)}function takeClassForElement(e,t){forEach((e=resolveTarget(e)).parentElement.children,(function(e){removeClassFromElement(e,t)})),addClassToElement(asElement(e),t)}function closest(e,t){if((e=asElement(resolveTarget(e)))&&e.closest)return e.closest(t);do{if(null==e||matches(e,t))return e}while(e=e&&asElement(parentElt(e)));return null}function startsWith(e,t){return e.substring(0,t.length)===t}function endsWith(e,t){return e.substring(e.length-t.length)===t}function normalizeSelector(e){const t=e.trim();return startsWith(t,"<")&&endsWith(t,"/>")?t.substring(1,t.length-2):t}function querySelectorAllExt(e,t,n){return e=resolveTarget(e),0===t.indexOf("closest ")?[closest(asElement(e),normalizeSelector(t.substr(8)))]:0===t.indexOf("find ")?[find(asParentNode(e),normalizeSelector(t.substr(5)))]:"next"===t?[asElement(e).nextElementSibling]:0===t.indexOf("next ")?[scanForwardQuery(e,normalizeSelector(t.substr(5)),!!n)]:"previous"===t?[asElement(e).previousElementSibling]:0===t.indexOf("previous ")?[scanBackwardsQuery(e,normalizeSelector(t.substr(9)),!!n)]:"document"===t?[document]:"window"===t?[window]:"body"===t?[document.body]:"root"===t?[getRootNode(e,!!n)]:0===t.indexOf("global ")?querySelectorAllExt(e,t.slice(7),!0):toArray(asParentNode(getRootNode(e,!!n)).querySelectorAll(normalizeSelector(t)))}var scanForwardQuery=function(e,t,n){const r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let t=0;t<r.length;t++){const n=r[t];if(n.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_PRECEDING)return n}},scanBackwardsQuery=function(e,t,n){const r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let t=r.length-1;t>=0;t--){const n=r[t];if(n.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_FOLLOWING)return n}};function querySelectorExt(e,t){return"string"!=typeof e?querySelectorAllExt(e,t)[0]:querySelectorAllExt(getDocument().body,e)[0]}function resolveTarget(e,t){return"string"==typeof e?find(asParentNode(t)||document,e):e}function processEventArgs(e,t,n){return isFunction(t)?{target:getDocument().body,event:asString(e),listener:t}:{target:resolveTarget(e),event:asString(t),listener:n}}function addEventListenerImpl(e,t,n){ready((function(){const r=processEventArgs(e,t,n);r.target.addEventListener(r.event,r.listener)}));return isFunction(t)?t:n}function removeEventListenerImpl(e,t,n){return ready((function(){const r=processEventArgs(e,t,n);r.target.removeEventListener(r.event,r.listener)})),isFunction(t)?t:n}
1const DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(e,t){const n=getClosestAttributeValue(e,t);if(n){if("this"===n)return[findThisElement(e,t)];{const r=querySelectorAllExt(e,n);return 0===r.length?(logError('The selector "'+n+'" on '+t+" returned no matches!"),[DUMMY_ELT]):r}}}function findThisElement(e,t){return asElement(getClosestMatch(e,(function(e){return null!=getAttributeValue(asElement(e),t)})))}function getTarget(e){const t=getClosestAttributeValue(e,"hx-target");if(t)return"this"===t?findThisElement(e,"hx-target"):querySelectorExt(e,t);return getInternalData(e).boosted?getDocument().body:e}function shouldSettleAttribute(e){const t=htmx.config.attributesToSettle;for(let n=0;n<t.length;n++)if(e===t[n])return!0;return!1}function cloneAttributes(e,t){forEach(e.attributes,(function(n){!t.hasAttribute(n.name)&&shouldSettleAttribute(n.name)&&e.removeAttribute(n.name)})),forEach(t.attributes,(function(t){shouldSettleAttribute(t.name)&&e.setAttribute(t.name,t.value)}))}function isInlineSwap(e,t){const n=getExtensions(t);for(let t=0;t<n.length;t++){const r=n[t];try{if(r.isInlineSwap(e))return!0}catch(e){logError(e)}}return"outerHTML"===e}function oobSwap(e,t,n){let r="#"+getRawAttribute(t,"id"),i="outerHTML";"true"===e||(e.indexOf(":")>0?(i=e.substr(0,e.indexOf(":")),r=e.substr(e.indexOf(":")+1,e.length)):i=e);const o=getDocument().querySelectorAll(r);return o?(forEach(o,(function(e){let r;const o=t.cloneNode(!0);r=getDocument().createDocumentFragment(),r.appendChild(o),isInlineSwap(i,e)||(r=asParentNode(o));const s={shouldSwap:!0,target:e,fragment:r};triggerEvent(e,"htmx:oobBeforeSwap",s)&&(e=s.target,s.shouldSwap&&swapWithStyle(i,e,e,r,n),forEach(n.elts,(function(e){triggerEvent(e,"htmx:oobAfterSwap",s)})))})),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:t})),e}function handlePreservedElements(e){forEach(findAll(e,"[hx-preserve], [data-hx-preserve]"),(function(e){const t=getAttributeValue(e,"id"),n=getDocument().getElementById(t);null!=n&&e.parentNode.replaceChild(n,e)}))}function handleAttributes(e,t,n){forEach(t.querySelectorAll("[id]"),(function(t){const r=getRawAttribute(t,"id");if(r&&r.length>0){const i=r.replace("'","\\'"),o=t.tagName.replace(":","\\:"),s=asParentNode(e),a=s&&s.querySelector(o+"[id='"+i+"']");if(a&&a!==s){const e=t.cloneNode();cloneAttributes(t,a),n.tasks.push((function(){cloneAttributes(t,e)}))}}}))}function makeAjaxLoadTask(e){return function(){removeClassFromElement(e,htmx.config.addedClass),processNode(asElement(e)),processFocus(asParentNode(e)),triggerEvent(e,"htmx:load")}}function processFocus(e){const t="[autofocus]",n=asHtmlElement(matches(e,t)?e:e.querySelector(t));null!=n&&n.focus()}function insertNodesBefore(e,t,n,r){for(handleAttributes(e,n,r);n.childNodes.length>0;){const i=n.firstChild;addClassToElement(asElement(i),htmx.config.addedClass),e.insertBefore(i,t),i.nodeType!==Node.TEXT_NODE&&i.nodeType!==Node.COMMENT_NODE&&r.tasks.push(makeAjaxLoadTask(i))}}function stringHash(e,t){let n=0;for(;n<e.length;)t=(t<<5)-t+e.charCodeAt(n++)|0;return t}function attributeHash(e){let t=0;if(e.attributes)for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];r.value&&(t=stringHash(r.name,t),t=stringHash(r.value,t))}return t}function deInitOnHandlers(e){const t=getInternalData(e);if(t.onHandlers){for(let n=0;n<t.onHandlers.length;n++){const r=t.onHandlers[n];removeEventListenerImpl(e,r.event,r.listener)}delete t.onHandlers}}function deInitNode(e){const t=getInternalData(e);t.timeout&&clearTimeout(t.timeout),t.listenerInfos&&forEach(t.listenerInfos,(function(e){e.on&&removeEventListenerImpl(e.on,e.trigger,e.listener)})),deInitOnHandlers(e),forEach(Object.keys(t),(function(e){delete t[e]}))}function cleanUpElement(e){triggerEvent(e,"htmx:beforeCleanupElement"),deInitNode(e),e.children&&forEach(e.children,(function(e){cleanUpElement(e)}))}function swapOuterHTML(e,t,n){let r;const i=e.previousSibling;for(insertNodesBefore(parentElt(e),e,t,n),r=null==i?parentElt(e).firstChild:i.nextSibling,n.elts=n.elts.filter((function(t){return t!==e}));r&&r!==e;)r instanceof Element?(n.elts.push(r),r=r.nextElementSibling):r=null;cleanUpElement(e),e instanceof Element?e.remove():e.parentNode.removeChild(e)}
1function swapAfterBegin(e,t,n){return insertNodesBefore(e,e.firstChild,t,n)}function swapBeforeBegin(e,t,n){return insertNodesBefore(parentElt(e),e,t,n)}function swapBeforeEnd(e,t,n){return insertNodesBefore(e,null,t,n)}function swapAfterEnd(e,t,n){return insertNodesBefore(parentElt(e),e.nextSibling,t,n)}function swapDelete(e){return cleanUpElement(e),parentElt(e).removeChild(e)}function swapInnerHTML(e,t,n){const r=e.firstChild;if(insertNodesBefore(e,r,t,n),r){for(;r.nextSibling;)cleanUpElement(r.nextSibling),e.removeChild(r.nextSibling);cleanUpElement(r),e.removeChild(r)}}function swapWithStyle(e,t,n,r,i){switch(e){case"none":return;case"outerHTML":return void swapOuterHTML(n,r,i);case"afterbegin":return void swapAfterBegin(n,r,i);case"beforebegin":return void swapBeforeBegin(n,r,i);case"beforeend":return void swapBeforeEnd(n,r,i);case"afterend":return void swapAfterEnd(n,r,i);case"delete":return void swapDelete(n);default:var o=getExtensions(t);for(let t=0;t<o.length;t++){const s=o[t];try{const t=s.handleSwap(e,n,r,i);if(t){if(void 0!==t.length)for(let e=0;e<t.length;e++){const n=t[e];n.nodeType!==Node.TEXT_NODE&&n.nodeType!==Node.COMMENT_NODE&&i.tasks.push(makeAjaxLoadTask(n))}return}}catch(e){logError(e)}}"innerHTML"===e?swapInnerHTML(n,r,i):swapWithStyle(htmx.config.defaultSwapStyle,t,n,r,i)}}function findAndSwapOobElements(e,t){forEach(findAll(e,"[hx-swap-oob], [data-hx-swap-oob]"),(function(e){if(htmx.config.allowNestedOobSwaps||null===e.parentElement){const n=getAttributeValue(e,"hx-swap-oob");null!=n&&oobSwap(n,e,t)}else e.removeAttribute("hx-swap-oob"),e.removeAttribute("data-hx-swap-oob")}))}function swap(e,t,n,r){r||(r={}),e=resolveTarget(e);const i=document.activeElement;let o={};try{o={elt:i,start:i?i.selectionStart:null,end:i?i.selectionEnd:null}}catch(e){}const s=makeSettleInfo(e);if("textContent"===n.swapStyle)e.textContent=t;else{let i=makeFragment(t);if(s.title=i.title,r.selectOOB){const e=r.selectOOB.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(":",2);let r=n[0].trim();0===r.indexOf("#")&&(r=r.substring(1));const o=n[1]||"true",a=i.querySelector("#"+r);a&&oobSwap(o,a,s)}}if(findAndSwapOobElements(i,s),forEach(findAll(i,"template"),(function(e){findAndSwapOobElements(e.content,s),0===e.content.childElementCount&&e.remove()})),r.select){const e=getDocument().createDocumentFragment();forEach(i.querySelectorAll(r.select),(function(t){e.appendChild(t)})),i=e}handlePreservedElements(i),swapWithStyle(n.swapStyle,r.contextElement,e,i,s)}if(o.elt&&!bodyContains(o.elt)&&getRawAttribute(o.elt,"id")){const e=document.getElementById(getRawAttribute(o.elt,"id")),t={preventScroll:void 0!==n.focusScroll?!n.focusScroll:!htmx.config.defaultFocusScroll};if(e){if(o.start&&e.setSelectionRange)try{e.setSelectionRange(o.start,o.end)}catch(e){}e.focus(t)}}e.classList.remove(htmx.config.swappingClass),forEach(s.elts,(function(e){e.classList&&e.classList.add(htmx.config.settlingClass),triggerEvent(e,"htmx:afterSwap",r.eventInfo)})),r.afterSwapCallback&&r.afterSwapCallback(),n.ignoreTitle||handleTitle(s.title);const a=function(){if(forEach(s.tasks,(function(e){e.call()})),forEach(s.elts,(function(e){e.classList&&e.classList.remove(htmx.config.settlingClass),triggerEvent(e,"htmx:afterSettle",r.eventInfo)})),r.anchor){const e=asElement(resolveTarget("#"+r.anchor));e&&e.scrollIntoView({block:"start",behavior:"auto"})}updateScrollState(s.elts,n),r.afterSettleCallback&&r.afterSettleCallback()};n.settleDelay>0?getWindow().setTimeout(a,n.settleDelay):a()}function handleTriggerHeader(e,t,n){const r=e.getResponseHeader(t);if(0===r.indexOf("{")){const e=parseJSON(r);for(const t in e)if(e.hasOwnProperty(t)){let r=e[t];isRawObject(r)||(r={value:r}),triggerEvent(n,t,r)}}else{const e=r.split(",");for(let t=0;t<e.length;t++)triggerEvent(n,e[t].trim(),[])}}const WHITESPACE=/\s/,WHITESPACE_OR_COMMA=/[\s,]/,SYMBOL_START=/[_$a-zA-Z]/,SYMBOL_CONT=/[_$a-zA-Z0-9]/,STRINGISH_START=['"',"'","/"],NOT_WHITESPACE=/[^\s]/,COMBINED_SELECTOR_START=/[{(]/,COMBINED_SELECTOR_END=/[})]/;function tokenizeString(e){const t=[];let n=0;for(;n<e.length;){if(SYMBOL_START.exec(e.charAt(n))){for(var r=n;SYMBOL_CONT.exec(e.charAt(n+1));)n++;t.push(e.substr(r,n-r+1))}else if(-1!==STRINGISH_START.indexOf(e.charAt(n))){const i=e.charAt(n);r=n;for(n++;n<e.length&&e.charAt(n)!==i;)"\\"===e.charAt(n)&&n++,n++;t.push(e.substr(r,n-r+1))}else{const r=e.charAt(n);t.push(r)}n++}return t}function isPossibleRelativeReference(e,t,n){return SYMBOL_START.exec(e.charAt(0))&&"true"!==e&&"false"!==e&&"this"!==e&&e!==n&&"."!==t}function maybeGenerateConditional(e,t,n){if("["===t[0]){t.shift();let r=1,i=" return (function("+n+"){ return (",o=null;for(;t.length>0;){const s=t[0];if("]"===s){if(r--,0===r){null===o&&(i+="true"),t.shift(),i+=")})";try{const t=maybeEval(e,(function(){return Function(i)()}),(function(){return!0}));return t.source=i,t}catch(e){return triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:e,source:i}),null}}}else"["===s&&r++;
1isPossibleRelativeReference(s,o,n)?i+="(("+n+"."+s+") ? ("+n+"."+s+") : (window."+s+"))":i+=s,o=t.shift()}}}function consumeUntil(e,t){let n="";for(;e.length>0&&!t.test(e[0]);)n+=e.shift();return n}function consumeCSSSelector(e){let t;return e.length>0&&COMBINED_SELECTOR_START.test(e[0])?(e.shift(),t=consumeUntil(e,COMBINED_SELECTOR_END).trim(),e.shift()):t=consumeUntil(e,WHITESPACE_OR_COMMA),t}const INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(e,t,n){const r=[],i=tokenizeString(t);do{consumeUntil(i,NOT_WHITESPACE);const t=i.length,n=consumeUntil(i,/[,\[\s]/);if(""!==n)if("every"===n){const t={trigger:"every"};consumeUntil(i,NOT_WHITESPACE),t.pollInterval=parseInterval(consumeUntil(i,/[,\[\s]/)),consumeUntil(i,NOT_WHITESPACE),(o=maybeGenerateConditional(e,i,"event"))&&(t.eventFilter=o),r.push(t)}else{const t={trigger:n};var o;for((o=maybeGenerateConditional(e,i,"event"))&&(t.eventFilter=o);i.length>0&&","!==i[0];){consumeUntil(i,NOT_WHITESPACE);const n=i.shift();if("changed"===n)t.changed=!0;else if("once"===n)t.once=!0;else if("consume"===n)t.consume=!0;else if("delay"===n&&":"===i[0])i.shift(),t.delay=parseInterval(consumeUntil(i,WHITESPACE_OR_COMMA));else if("from"===n&&":"===i[0]){if(i.shift(),COMBINED_SELECTOR_START.test(i[0]))var s=consumeCSSSelector(i);else if("closest"===(s=consumeUntil(i,WHITESPACE_OR_COMMA))||"find"===s||"next"===s||"previous"===s){i.shift();const e=consumeCSSSelector(i);e.length>0&&(s+=" "+e)}t.from=s}
1else"target"===n&&":"===i[0]?(i.shift(),t.target=consumeCSSSelector(i)):"throttle"===n&&":"===i[0]?(i.shift(),t.throttle=parseInterval(consumeUntil(i,WHITESPACE_OR_COMMA))):"queue"===n&&":"===i[0]?(i.shift(),t.queue=consumeUntil(i,WHITESPACE_OR_COMMA)):"root"===n&&":"===i[0]?(i.shift(),t[n]=consumeCSSSelector(i)):"threshold"===n&&":"===i[0]?(i.shift(),t[n]=consumeUntil(i,WHITESPACE_OR_COMMA)):triggerErrorEvent(e,"htmx:syntax:error",{token:i.shift()})}r.push(t)}i.length===t&&triggerErrorEvent(e,"htmx:syntax:error",{token:i.shift()}),consumeUntil(i,NOT_WHITESPACE)}while(","===i[0]&&i.shift());return n&&(n[t]=r),r}function getTriggerSpecs(e){const t=getAttributeValue(e,"hx-trigger");let n=[];if(t){const r=htmx.config.triggerSpecsCache;n=r&&r[t]||parseAndCacheTrigger(e,t,r)}return n.length>0?n:matches(e,"form")?[{trigger:"submit"}]:matches(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:matches(e,INPUT_SELECTOR)?[{trigger:"change"}]:[{trigger:"click"}]}function cancelPolling(e){getInternalData(e).cancelled=!0}function processPolling(e,t,n){const r=getInternalData(e);r.timeout=getWindow().setTimeout((function(){bodyContains(e)&&!0!==r.cancelled&&(maybeFilterEvent(n,e,makeEvent("hx:poll:trigger",{triggerSpec:n,target:e}))||t(e),processPolling(e,t,n))}),n.pollInterval)}function isLocalLink(e){return location.hostname===e.hostname&&getRawAttribute(e,"href")&&0!==getRawAttribute(e,"href").indexOf("#")}function eltIsDisabled(e){return closest(e,htmx.config.disableSelector)}function boostElement(e,t,n){if(e instanceof HTMLAnchorElement&&isLocalLink(e)&&(""===e.target||"_self"===e.target)||"FORM"===e.tagName){let r,i;if(t.boosted=!0,"A"===e.tagName)r="get",i=getRawAttribute(e,"href");else{const t=getRawAttribute(e,"method");r=t?t.toLowerCase():"get",i=getRawAttribute(e,"action")}n.forEach((function(n){addEventListener(e,(function(e,t){const n=asElement(e);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(r,i,n,t)}),t,n,!0)}))}}function shouldCancel(e,t){const n=asElement(t);if(!n)return!1;if("submit"===e.type||"click"===e.type){if("FORM"===n.tagName)return!0;if(matches(n,'input[type="submit"], button')&&null!==closest(n,"form"))return!0;if(n instanceof HTMLAnchorElement&&n.href&&("#"===n.getAttribute("href")||0!==n.getAttribute("href").indexOf("#")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(e,t){return getInternalData(e).boosted&&e instanceof HTMLAnchorElement&&"click"===t.type&&(t.ctrlKey||t.metaKey)}function maybeFilterEvent(e,t,n){const r=e.eventFilter;if(r)try{return!0!==r.call(t,n)}catch(e){const t=r.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:e,source:t}),!0}return!1}function addEventListener(e,t,n,r,i){const o=getInternalData(e);let s;s=r.from?querySelectorAllExt(e,r.from):[e],r.changed&&s.forEach((function(e){getInternalData(e).lastValue=e.value})),forEach(s,(function(s){const a=function(n){if(!bodyContains(e))return void s.removeEventListener(r.trigger,a);if(ignoreBoostedAnchorCtrlClick(e,n))return;if((i||shouldCancel(n,e))&&n.preventDefault(),maybeFilterEvent(r,e,n))return;const l=getInternalData(n);if(l.triggerSpec=r,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(e)<0){if(l.handledFor.push(e),r.consume&&n.stopPropagation(),r.target&&n.target&&!matches(asElement(n.target),r.target))return;if(r.once){if(o.triggeredOnce)return;o.triggeredOnce=!0}if(r.changed){const e=getInternalData(s),t=s.value;if(e.lastValue===t)return;e.lastValue=t}if(o.delayed&&clearTimeout(o.delayed),o.throttle)return;r.throttle>0?o.throttle||(t(e,n),o.throttle=getWindow().setTimeout((function(){o.throttle=null}),r.throttle)):r.delay>0?o.delayed=getWindow().setTimeout((function(){t(e,n)}),r.delay):(triggerEvent(e,"htmx:trigger"),t(e,n))}};null==n.listenerInfos&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:r.trigger,listener:a,on:s}),s.addEventListener(r.trigger,a)}))}let windowIsScrolling=!1,scrollHandler=null;function initScrollHandler(){scrollHandler||(scrollHandler=function(){windowIsScrolling=!0},window.addEventListener("scroll",scrollHandler),setInterval((function(){windowIsScrolling&&(windowIsScrolling=!1,forEach(getDocument().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),(function(e){maybeReveal(e)})))}),200))}function maybeReveal(e){if(!hasAttribute(e,"data-hx-revealed")&&isScrolledIntoView(e)){e.setAttribute("data-hx-revealed","true");getInternalData(e).initHash?triggerEvent(e,"revealed"):e.addEventListener("htmx:afterProcessNode",(function(){triggerEvent(e,"revealed")}),{once:!0})}}function loadImmediately(e,t,n,r){const i=function(){n.loaded||(n.loaded=!0,t(e))};r>0?getWindow().setTimeout(i,r):i()}function processVerbs(e,t,n){let r=!1;return forEach(VERBS,(function(i){if(hasAttribute(e,"hx-"+i)){const o=getAttributeValue(e,"hx-"+i);
1r=!0,t.path=o,t.verb=i,n.forEach((function(n){addTriggerHandler(e,n,t,(function(e,t){const n=asElement(e);closest(n,htmx.config.disableSelector)?cleanUpElement(n):issueAjaxRequest(i,o,n,t)}))}))}})),r}function addTriggerHandler(e,t,n,r){if("revealed"===t.trigger)initScrollHandler(),addEventListener(e,r,n,t),maybeReveal(asElement(e));else if("intersect"===t.trigger){const i={};t.root&&(i.root=querySelectorExt(e,t.root)),t.threshold&&(i.threshold=parseFloat(t.threshold));new IntersectionObserver((function(t){for(let n=0;n<t.length;n++){if(t[n].isIntersecting){triggerEvent(e,"intersect");break}}}),i).observe(asElement(e)),addEventListener(asElement(e),r,n,t)}else"load"===t.trigger?maybeFilterEvent(t,e,makeEvent("load",{elt:e}))||loadImmediately(asElement(e),r,n,t.delay):t.pollInterval>0?(n.polling=!0,processPolling(asElement(e),r,t)):addEventListener(e,r,n,t)}function shouldProcessHxOn(e){const t=asElement(e);if(!t)return!1;const n=t.attributes;for(let e=0;e<n.length;e++){const t=n[e].name;if(startsWith(t,"hx-on:")||startsWith(t,"data-hx-on:")||startsWith(t,"hx-on-")||startsWith(t,"data-hx-on-"))return!0}return!1}const HX_ON_QUERY=(new XPathEvaluator).createExpression('.//*[@*[ starts-with(name(), "hx-on:") or starts-with(name(), "data-hx-on:") or starts-with(name(), "hx-on-") or starts-with(name(), "data-hx-on-") ]]');function processHXOnRoot(e,t){shouldProcessHxOn(e)&&t.push(asElement(e));const n=HX_ON_QUERY.evaluate(e);let r=null;for(;r=n.iterateNext();)t.push(asElement(r))}function findHxOnWildcardElements(e){const t=[];if(e instanceof DocumentFragment)for(const n of e.childNodes)processHXOnRoot(n,t);else processHXOnRoot(e,t);return t}function findElementsToProcess(e){if(e.querySelectorAll){const n=", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost]",r=[];for(const e in extensions){const n=extensions[e];if(n.getSelectors){var t=n.getSelectors();t&&r.push(t)}}return e.querySelectorAll(VERB_SELECTOR+n+", form, [type='submit'], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger]"+r.flat().map((e=>", "+e)).join(""))}return[]}function maybeSetLastButtonClicked(e){const t=closest(asElement(e.target),"button, input[type='submit']"),n=getRelatedFormData(e);n&&(n.lastButtonClicked=t)}function maybeUnsetLastButtonClicked(e){const t=getRelatedFormData(e);t&&(t.lastButtonClicked=null)}function getRelatedFormData(e){const t=closest(asElement(e.target),"button, input[type='submit']");if(!t)return;const n=resolveTarget("#"+getRawAttribute(t,"form"),t.getRootNode())||closest(t,"form");return n?getInternalData(n):void 0}function initButtonTracking(e){e.addEventListener("click",maybeSetLastButtonClicked),e.addEventListener("focusin",maybeSetLastButtonClicked),e.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(e,t,n){const r=getInternalData(e);let i;Array.isArray(r.onHandlers)||(r.onHandlers=[]);const o=function(t){maybeEval(e,(function(){eltIsDisabled(e)||(i||(i=new Function("event",n)),i.call(e,t))}))};e.addEventListener(t,o),r.onHandlers.push({event:t,listener:o})}function processHxOnWildcard(e){deInitOnHandlers(e);for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name,r=e.attributes[t].value;if(startsWith(n,"hx-on")||startsWith(n,"data-hx-on")){const t=n.indexOf("-on")+3,i=n.slice(t,t+1);if("-"===i||":"===i){let i=n.slice(t+1);startsWith(i,":")?i="htmx"+i:startsWith(i,"-")?i="htmx:"+i.slice(1):startsWith(i,"htmx-")&&(i="htmx:"+i.slice(5)),addHxOnEventHandler(e,i,r)}}}}function initNode(e){if(closest(e,htmx.config.disableSelector))return void cleanUpElement(e);const t=getInternalData(e);if(t.initHash!==attributeHash(e)){deInitNode(e),t.initHash=attributeHash(e),triggerEvent(e,"htmx:beforeProcessNode"),e.value&&(t.lastValue=e.value);const n=getTriggerSpecs(e);processVerbs(e,t,n)||("true"===getClosestAttributeValue(e,"hx-boost")?boostElement(e,t,n):hasAttribute(e,"hx-trigger")&&n.forEach((function(n){addTriggerHandler(e,n,t,(function(){}))}))),("FORM"===e.tagName||"submit"===getRawAttribute(e,"type")&&hasAttribute(e,"form"))&&initButtonTracking(e),triggerEvent(e,"htmx:afterProcessNode")}}function processNode(e){closest(e=resolveTarget(e),htmx.config.disableSelector)?cleanUpElement(e):(initNode(e),forEach(findElementsToProcess(e),(function(e){initNode(e)}
1)),forEach(findHxOnWildcardElements(e),processHxOnWildcard))}function kebabEventName(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function makeEvent(e,t){let n;return window.CustomEvent&&"function"==typeof window.CustomEvent?n=new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t}):(n=getDocument().createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,t)),n}function triggerErrorEvent(e,t,n){triggerEvent(e,t,mergeObjects({error:t},n))}function ignoreEventForLogging(e){return"htmx:afterProcessNode"===e}function withExtensions(e,t){forEach(getExtensions(e),(function(e){try{t(e)}catch(e){logError(e)}}))}function logError(e){console.error?console.error(e):console.log&&console.log("ERROR: ",e)}function triggerEvent(e,t,n){e=resolveTarget(e),null==n&&(n={}),n.elt=e;const r=makeEvent(t,n);htmx.logger&&!ignoreEventForLogging(t)&&htmx.logger(e,t,n),n.error&&(logError(n.error),triggerEvent(e,"htmx:error",{errorInfo:n}));let i=e.dispatchEvent(r);const o=kebabEventName(t);if(i&&o!==t){const t=makeEvent(o,r.detail);i=i&&e.dispatchEvent(t)}return withExtensions(asElement(e),(function(e){i=i&&!1!==e.onEvent(t,r)&&!r.defaultPrevented})),i}let currentPathForHistory=location.pathname+location.search;function getHistoryElement(){return getDocument().querySelector("[hx-history-elt],[data-hx-history-elt]")||getDocument().body}function saveToHistoryCache(e,t){if(!canAccessLocalStorage())return;const n=cleanInnerHtmlForHistory(t),r=getDocument().title,i=window.scrollY;if(htmx.config.historyCacheSize<=0)return void localStorage.removeItem("htmx-history-cache");e=normalizePath(e);const o=parseJSON(localStorage.getItem("htmx-history-cache"))||[];for(let t=0;t<o.length;t++)if(o[t].url===e){o.splice(t,1);break}const s={url:e,content:n,title:r,scroll:i};for(triggerEvent(getDocument().body,"htmx:historyItemCreated",{item:s,cache:o}),o.push(s);o.length>htmx.config.historyCacheSize;)o.shift();for(;o.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(o));break}catch(e){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:e,cache:o}),o.shift()}}function getCachedHistory(e){if(!canAccessLocalStorage())return null;e=normalizePath(e);const t=parseJSON(localStorage.getItem("htmx-history-cache"))||[];for(let n=0;n<t.length;n++)if(t[n].url===e)return t[n];return null}function cleanInnerHtmlForHistory(e){const t=htmx.config.requestClass,n=e.cloneNode(!0);return forEach(findAll(n,"."+t),(function(e){removeClassFromElement(e,t)})),n.innerHTML}function saveCurrentPageToHistory(){const e=getHistoryElement(),t=currentPathForHistory||location.pathname+location.search;let n;try{n=getDocument().querySelector('[hx-history="false" i],[data-hx-history="false" i]')}catch(e){n=getDocument().querySelector('[hx-history="false"],[data-hx-history="false"]')}n||(triggerEvent(getDocument().body,"htmx:beforeHistorySave",{path:t,historyElt:e}),saveToHistoryCache(t,e)),htmx.config.historyEnabled&&history.replaceState({htmx:!0},getDocument().title,window.location.href)}function pushUrlIntoHistory(e){htmx.config.getCacheBusterParam&&(endsWith(e=e.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),"&")||endsWith(e,"?"))&&(e=e.slice(0,-1)),htmx.config.historyEnabled&&history.pushState({htmx:!0},"",e),currentPathForHistory=e}function replaceUrlInHistory(e){htmx.config.historyEnabled&&history.replaceState({htmx:!0},"",e),currentPathForHistory=e}function settleImmediately(e){forEach(e,(function(e){e.call(void 0)}))}function loadHistoryFromServer(e){const t=new XMLHttpRequest,n={path:e,xhr:t};triggerEvent(getDocument().body,"htmx:historyCacheMiss",n),t.open("GET",e,!0),t.setRequestHeader("HX-Request","true"),t.setRequestHeader("HX-History-Restore-Request","true"),t.setRequestHeader("HX-Current-URL",getDocument().location.href),t.onload=function(){if(this.status>=200&&this.status<400){triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",n);const t=makeFragment(this.response),r=t.querySelector("[hx-history-elt],[data-hx-history-elt]")||t,i=getHistoryElement(),o=makeSettleInfo(i);handleTitle(t.title),swapInnerHTML(i,r,o),settleImmediately(o.tasks),currentPathForHistory=e,triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:this.response})}else triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",n)},t.send()}function restoreHistory(e){saveCurrentPageToHistory();
1const t=getCachedHistory(e=e||location.pathname+location.search);if(t){const n=makeFragment(t.content),r=getHistoryElement(),i=makeSettleInfo(r);handleTitle(n.title),swapInnerHTML(r,n,i),settleImmediately(i.tasks),getWindow().setTimeout((function(){window.scrollTo(0,t.scroll)}),0),currentPathForHistory=e,triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,item:t})}else htmx.config.refreshOnHistoryMiss?window.location.reload(!0):loadHistoryFromServer(e)}function addRequestIndicatorClasses(e){let t=findAttributeTargets(e,"hx-indicator");return null==t&&(t=[e]),forEach(t,(function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)+1,e.classList.add.call(e.classList,htmx.config.requestClass)})),t}function disableElements(e){let t=findAttributeTargets(e,"hx-disabled-elt");return null==t&&(t=[]),forEach(t,(function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)+1,e.setAttribute("disabled","")})),t}function removeRequestIndicators(e,t){forEach(e,(function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.classList.remove.call(e.classList,htmx.config.requestClass)})),forEach(t,(function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.removeAttribute("disabled")}))}function haveSeenNode(e,t){for(let n=0;n<e.length;n++){if(e[n].isSameNode(t))return!0}return!1}function shouldInclude(e){const t=e;return""!==t.name&&null!=t.name&&!t.disabled&&!closest(t,"fieldset[disabled]")&&("button"!==t.type&&"submit"!==t.type&&"image"!==t.tagName&&"reset"!==t.tagName&&"file"!==t.tagName&&("checkbox"!==t.type&&"radio"!==t.type||t.checked))}function addValueToFormData(e,t,n){null!=e&&null!=t&&(Array.isArray(t)?t.forEach((function(t){n.append(e,t)})):n.append(e,t))}function removeValueFromFormData(e,t,n){if(null!=e&&null!=t){let r=n.getAll(e);r=Array.isArray(t)?r.filter((e=>t.indexOf(e)<0)):r.filter((e=>e!==t)),n.delete(e),forEach(r,(t=>n.append(e,t)))}}function processInputValue(e,t,n,r,i){if(null!=r&&!haveSeenNode(e,r)){if(e.push(r),shouldInclude(r)){const e=getRawAttribute(r,"name");let o=r.value;r instanceof HTMLSelectElement&&r.multiple&&(o=toArray(r.querySelectorAll("option:checked")).map((function(e){return e.value}))),r instanceof HTMLInputElement&&r.files&&(o=toArray(r.files)),addValueToFormData(e,o,t),i&&validateElement(r,n)}r instanceof HTMLFormElement&&(forEach(r.elements,(function(r){e.indexOf(r)>=0?removeValueFromFormData(r.name,r.value,t):e.push(r),i&&validateElement(r,n)})),new FormData(r).forEach((function(e,n){e instanceof File&&""===e.name||addValueToFormData(n,e,t)})))}}function validateElement(e,t){const n=e;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(t.push({elt:n,message:n.validationMessage,validity:n.validity}),triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})))}function overrideFormData(e,t){for(const n of t.keys())e.delete(n),t.getAll(n).forEach((function(t){e.append(n,t)}));return e}function getInputValues(e,t){const n=[],r=new FormData,i=new FormData,o=[],s=getInternalData(e);s.lastButtonClicked&&!bodyContains(s.lastButtonClicked)&&(s.lastButtonClicked=null);let a=e instanceof HTMLFormElement&&!0!==e.noValidate||"true"===getAttributeValue(e,"hx-validate");if(s.lastButtonClicked&&(a=a&&!0!==s.lastButtonClicked.formNoValidate),"get"!==t&&processInputValue(n,i,o,closest(e,"form"),a),processInputValue(n,r,o,e,a),s.lastButtonClicked||"BUTTON"===e.tagName||"INPUT"===e.tagName&&"submit"===getRawAttribute(e,"type")){const t=s.lastButtonClicked||e;addValueToFormData(getRawAttribute(t,"name"),t.value,i)}return forEach(findAttributeTargets(e,"hx-include"),(function(e){processInputValue(n,r,o,asElement(e),a),matches(e,"form")||forEach(asParentNode(e).querySelectorAll(INPUT_SELECTOR),(function(e){processInputValue(n,r,o,e,a)}))})),overrideFormData(r,i),{errors:o,formData:r,values:formDataProxy(r)}}function appendParam(e,t,n){""!==e&&(e+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));const r=encodeURIComponent(n);return e+=encodeURIComponent(t)+"="+r}function urlEncode(e){e=formDataFromObject(e);let t="";return e.forEach((function(e,n){t=appendParam(t,n,e)})),t}function getHeaders(e,t,n){const r={"HX-Request":"true","HX-Trigger":getRawAttribute(e,"id"),"HX-Trigger-Name":getRawAttribute(e,"name"),"HX-Target":getAttributeValue(t,"id"),"HX-Current-URL":getDocument().location.href};return getValuesForElement(e,"hx-headers",!1,r),void 0!==n&&(r["HX-Prompt"]=n),getInternalData(e).boosted&&(r["HX-Boosted"]="true"),r}function filterValues(e,t){const n=getClosestAttributeValue(t,"hx-params");if(n){if("none"===n)return new FormData;if("*"===n)return e;if(0===n.indexOf("not "))return forEach(n.substr(4).split(","),(function(t){t=t.trim(),e.delete(t)})),e;{const t=new FormData;return forEach(n.split(","),(function(n){n=n.trim(),e.has(n)&&e.getAll(n).forEac
1h((function(e){t.append(n,e)}))})),t}}return e}function isAnchorLink(e){return!!getRawAttribute(e,"href")&&getRawAttribute(e,"href").indexOf("#")>=0}function getSwapSpecification(e,t){const n=t||getClosestAttributeValue(e,"hx-swap"),r={swapStyle:getInternalData(e).boosted?"innerHTML":htmx.config.defaultSwapStyle,swapDelay:htmx.config.defaultSwapDelay,settleDelay:htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(e).boosted&&!isAnchorLink(e)&&(r.show="top"),n){const e=splitOnWhitespace(n);if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t];if(0===n.indexOf("swap:"))r.swapDelay=parseInterval(n.substr(5));else if(0===n.indexOf("settle:"))r.settleDelay=parseInterval(n.substr(7));else if(0===n.indexOf("transition:"))r.transition="true"===n.substr(11);else if(0===n.indexOf("ignoreTitle:"))r.ignoreTitle="true"===n.substr(12);else if(0===n.indexOf("scroll:")){const e=(o=n.substr(7).split(":")).pop();var i=o.length>0?o.join(":"):null;r.scroll=e,r.scrollTarget=i}else if(0===n.indexOf("show:")){var o;const e=(o=n.substr(5).split(":")).pop();i=o.length>0?o.join(":"):null;r.show=e,r.showTarget=i}else if(0===n.indexOf("focus-scroll:")){const e=n.substr(13);r.focusScroll="true"==e}else 0==t?r.swapStyle=n:logError("Unknown modifier in hx-swap: "+n)}}return r}function usesFormData(e){return"multipart/form-data"===getClosestAttributeValue(e,"hx-encoding")||matches(e,"form")&&"multipart/form-data"===getRawAttribute(e,"enctype")}function encodeParamsForBody(e,t,n){let r=null;return withExtensions(t,(function(i){null==r&&(r=i.encodeParameters(e,n,t))})),null!=r?r:usesFormData(t)?overrideFormData(new FormData,formDataFromObject(n)):urlEncode(n)}function makeSettleInfo(e){return{tasks:[],elts:[e]}}function updateScrollState(e,t){const n=e[0],r=e[e.length-1];if(t.scroll){var i=null;t.scrollTarget&&(i=asElement(querySelectorExt(n,t.scrollTarget))),"top"===t.scroll&&(n||i)&&((i=i||n).scrollTop=0),"bottom"===t.scroll&&(r||i)&&((i=i||r).scrollTop=i.scrollHeight)}if(t.show){i=null;if(t.showTarget){let e=t.showTarget;"window"===t.showTarget&&(e="body"),i=asElement(querySelectorExt(n,e))}"top"===t.show&&(n||i)&&(i=i||n).scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior}),"bottom"===t.show&&(r||i)&&(i=i||r).scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior})}}function getValuesForElement(e,t,n,r){if(null==r&&(r={}),null==e)return r;const i=getAttributeValue(e,t);if(i){let t,o=i.trim(),s=n;if("unset"===o)return null;0===o.indexOf("javascript:")?(o=o.substr(11),s=!0):0===o.indexOf("js:")&&(o=o.substr(3),s=!0),0!==o.indexOf("{")&&(o="{"+o+"}"),t=s?maybeEval(e,(function(){return Function("return ("+o+")")()}),{}):parseJSON(o);for(const e in t)t.hasOwnProperty(e)&&null==r[e]&&(r[e]=t[e])}return getValuesForElement(asElement(parentElt(e)),t,n,r)}function maybeEval(e,t,n){return htmx.config.allowEval?t():(triggerErrorEvent(e,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(e,t){return getValuesForElement(e,"hx-vars",!0,t)}function getHXValsForElement(e,t){return getValuesForElement(e,"hx-vals",!1,t)}function getExpressionVars(e){return mergeObjects(getHXVarsForElement(e),getHXValsForElement(e))}function safelySetHeaderValue(e,t,n){if(null!==n)try{e.setRequestHeader(t,n)}catch(r){e.setRequestHeader(t,encodeURIComponent(n)),e.setRequestHeader(t+"-URI-AutoEncoded","true")}}function getPathFromResponse(e){if(e.responseURL&&"undefined"!=typeof URL)try{const t=new URL(e.responseURL);return t.pathname+t.search}catch(t){triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:e.responseURL})}}function hasHeader(e,t){return t.test(e.getAllResponseHeaders())}function ajaxHelper(e,t,n){return e=e.toLowerCase(),n?n instanceof Element||"string"==typeof n?issueAjaxRequest(e,t,null,null,{targetOverride:resolveTarget(n),returnPromise:!0}):issueAjaxRequest(e,t,resolveTarget(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:resolveTarget(n.target),swapOverride:n.swap,select:n.select,returnPromise:!0}):issueAjaxRequest(e,t,null,null,{returnPromise:!0})}function hierarchyForElt(e){const t=[];for(;e;)t.push(e),e=e.parentElement;return t}function verifyPath(e,t,n){let r,i;if("function"==typeof URL){i=new URL(t,document.location.href);r=document.location.origin===i.origin}else i=t,r=startsWith(t,document.location.origin);return!(htmx.config.selfRequestsOnly&&!r)&&triggerEvent(e,"htmx:validateUrl",mergeObjects({url:i,sameHost:r},n))}function formDataFromObject(e){if(e instanceof FormData)return e;const t=new FormData;for(const n in e)e.hasOwnProperty(n)&&("function"==typeof e[n].forEac
1h?e[n].forEach((function(e){t.append(n,e)})):"object"==typeof e[n]?t.append(n,JSON.stringify(e[n])):t.append(n,e[n]));return t}function formDataArrayProxy(e,t,n){return new Proxy(n,{get:function(n,r){return"number"==typeof r?n[r]:"length"===r?n.length:"push"===r?function(r){n.push(r),e.append(t,r)}:"function"==typeof n[r]?function(){n[r].apply(n,arguments),e.delete(t),n.forEach((function(n){e.append(t,n)}))}:n[r]&&1===n[r].length?n[r][0]:n[r]},set:function(n,r,i){return n[r]=i,e.delete(t),n.forEach((function(n){e.append(t,n)})),!0}})}function formDataProxy(e){return new Proxy(e,{get:function(t,n){if("symbol"==typeof n)return Reflect.get(t,n);if("toJSON"===n)return()=>Object.fromEntries(e);if(n in t)return"function"==typeof t[n]?function(){return e[n].apply(e,arguments)}:t[n];const r=e.getAll(n);return 0===r.length?void 0:1===r.length?r[0]:formDataArrayProxy(t,n,r)},set:function(e,t,n){return"string"==typeof t&&(e.delete(t),"function"==typeof n.forEach?n.forEach((function(n){e.append(t,n)})):e.append(t,n),!0)},deleteProperty:function(e,t){return"string"==typeof t&&e.delete(t),!0},ownKeys:function(e){return Reflect.ownKeys(Object.fromEntries(e))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(e),t)}})}function issueAjaxRequest(e,t,n,r,i,o){let s=null,a=null;if((i=null!=i?i:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise((function(e,t){s=e,a=t}));null==n&&(n=getDocument().body);const c=i.handler||handleAjaxResponse,u=i.select||null;if(!bodyContains(n))return maybeCall(s),l;const d=i.targetOverride||asElement(getTarget(n));if(null==d||d==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getAttributeValue(n,"hx-target")}),maybeCall(a),l;let f=getInternalData(n);const h=f.lastButtonClicked;if(h){const n=getRawAttribute(h,"formaction");null!=n&&(t=n);const r=getRawAttribute(h,"formmethod");null!=r&&"dialog"!==r.toLowerCase()&&(e=r)}const p=getClosestAttributeValue(n,"hx-confirm");if(void 0===o){if(!1===triggerEvent(n,"htmx:confirm",{target:d,elt:n,path:t,verb:e,triggeringEvent:r,etc:i,issueRequest:function(o){return issueAjaxRequest(e,t,n,r,i,!!o)},question:p}))return maybeCall(s),l}let m=n,g=getClosestAttributeValue(n,"hx-sync"),v=null,b=!1;if(g){const e=g.split(":"),t=e[0].trim();if(m="this"===t?findThisElement(n,"hx-sync"):asElement(querySelectorExt(n,t)),g=(e[1]||"drop").trim(),f=getInternalData(m),"drop"===g&&f.xhr&&!0!==f.abortable)return maybeCall(s),l;if("abort"===g){if(f.xhr)return maybeCall(s),l;b=!0}else if("replace"===g)triggerEvent(m,"htmx:abort");else if(0===g.indexOf("queue")){v=(g.split(" ")[1]||"last").trim()}}if(f.xhr){if(!f.abortable){if(null==v){if(r){const e=getInternalData(r);e&&e.triggerSpec&&e.triggerSpec.queue&&(v=e.triggerSpec.queue)}null==v&&(v="last")}return null==f.queuedRequests&&(f.queuedRequests=[]),"first"===v&&0===f.queuedRequests.length||"all"===v?f.queuedRequests.push((function(){issueAjaxRequest(e,t,n,r,i)})):"last"===v&&(f.queuedRequests=[],f.queuedRequests.push((function(){issueAjaxRequest(e,t,n,r,i)}))),maybeCall(s),l}triggerEvent(m,"htmx:abort")}const y=new XMLHttpRequest;f.xhr=y,f.abortable=b;const w=function(){if(f.xhr=null,f.abortable=!1,null!=f.queuedRequests&&f.queuedRequests.length>0){f.queuedRequests.shift()()}},E=getClosestAttributeValue(n,"hx-prompt");if(E){var S=prompt(E);if(null===S||!triggerEvent(n,"htmx:prompt",{prompt:S,target:d}))return maybeCall(s),w(),l}if(p&&!o&&!confirm(p))return maybeCall(s),w(),l;let x=getHeaders(n,d,S);"get"===e||usesFormData(n)||(x["Content-Type"]="application/x-www-form-urlencoded"),i.headers&&(x=mergeObjects(x,i.headers));const _=getInputValues(n,e);let T=_.errors;const k=_.formData;i.values&&overrideFormData(k,formDataFromObject(i.values));const C=overrideFormData(k,formDataFromObject(getExpressionVars(n)));let A=filterValues(C,n);htmx.config.getCacheBusterParam&&"get"===e&&A.set("org.htmx.cache-buster",getRawAttribute(d,"id")||"true"),null!=t&&""!==t||(t=getDocument().location.href);const L=getValuesForElement(n,"hx-request"),O=getInternalData(n).boosted;let M=htmx.config.methodsThatUseUrlParams.indexOf(e)>=0;const I={boosted:O,useUrlParams:M,formData:A,parameters:formDataProxy(A),unfilteredFormData:C,unfilteredParameters:formDataProxy(C),headers:x,target:d,verb:e,errors:T,withCredentials:i.credentials||L.credentials||htmx.config.withCredentials,timeout:i.timeout||L.timeout||htmx.config.timeout,path:t,triggeringEvent:r};
1if(!triggerEvent(n,"htmx:configRequest",I))return maybeCall(s),w(),l;if(t=I.path,e=I.verb,x=I.headers,A=formDataFromObject(I.parameters),T=I.errors,M=I.useUrlParams,T&&T.length>0)return triggerEvent(n,"htmx:validation:halted",I),maybeCall(s),w(),l;const P=t.split("#"),R=P[0],D=P[1];let N=t;if(M){N=R;!A.keys().next().done&&(N.indexOf("?")<0?N+="?":N+="&",N+=urlEncode(A),D&&(N+="#"+D))}if(!verifyPath(n,N,I))return triggerErrorEvent(n,"htmx:invalidPath",I),maybeCall(a),l;if(y.open(e.toUpperCase(),N,!0),y.overrideMimeType("text/html"),y.withCredentials=I.withCredentials,y.timeout=I.timeout,L.noHeaders);else for(const e in x)if(x.hasOwnProperty(e)){const t=x[e];safelySetHeaderValue(y,e,t)}const H={xhr:y,target:d,requestConfig:I,etc:i,boosted:O,select:u,pathInfo:{requestPath:t,finalRequestPath:N,responsePath:null,anchor:D}};if(y.onload=function(){try{const e=hierarchyForElt(n);if(H.pathInfo.responsePath=getPathFromResponse(y),c(n,H),removeRequestIndicators(q,z),triggerEvent(n,"htmx:afterRequest",H),triggerEvent(n,"htmx:afterOnLoad",H),!bodyContains(n)){let t=null;for(;e.length>0&&null==t;){const n=e.shift();bodyContains(n)&&(t=n)}t&&(triggerEvent(t,"htmx:afterRequest",H),triggerEvent(t,"htmx:afterOnLoad",H))}maybeCall(s),w()}catch(e){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:e},H)),e}},y.onerror=function(){removeRequestIndicators(q,z),triggerErrorEvent(n,"htmx:afterRequest",H),triggerErrorEvent(n,"htmx:sendError",H),maybeCall(a),w()},y.onabort=function(){removeRequestIndicators(q,z),triggerErrorEvent(n,"htmx:afterRequest",H),triggerErrorEvent(n,"htmx:sendAbort",H),maybeCall(a),w()},y.ontimeout=function(){removeRequestIndicators(q,z),triggerErrorEvent(n,"htmx:afterRequest",H),triggerErrorEvent(n,"htmx:timeout",H),maybeCall(a),w()},!triggerEvent(n,"htmx:beforeRequest",H))return maybeCall(s),w(),l;var q=addRequestIndicatorClasses(n),z=disableElements(n);forEach(["loadstart","loadend","progress","abort"],(function(e){forEach([y,y.upload],(function(t){t.addEventListener(e,(function(t){triggerEvent(n,"htmx:xhr:"+e,{lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total})}))}))})),triggerEvent(n,"htmx:beforeSend",H);const $=M?null:encodeParamsForBody(y,n,A);return y.send($),l}function determineHistoryUpdates(e,t){const n=t.xhr;let r=null,i=null;if(hasHeader(n,/HX-Push:/i)?(r=n.getResponseHeader("HX-Push"),i="push"):hasHeader(n,/HX-Push-Url:/i)?(r=n.getResponseHeader("HX-Push-Url"),i="push"):hasHeader(n,/HX-Replace-Url:/i)&&(r=n.getResponseHeader("HX-Replace-Url"),i="replace"),r)return"false"===r?{}:{type:i,path:r};const o=t.pathInfo.finalRequestPath,s=t.pathInfo.responsePath,a=getClosestAttributeValue(e,"hx-push-url"),l=getClosestAttributeValue(e,"hx-replace-url"),c=getInternalData(e).boosted;let u=null,d=null;return a?(u="push",d=a):l?(u="replace",d=l):c&&(u="push",d=s||o),d?"false"===d?{}:("true"===d&&(d=s||o),t.pathInfo.anchor&&-1===d.indexOf("#")&&(d=d+"#"+t.pathInfo.anchor),{type:u,path:d}):{}}function codeMatches(e,t){return new RegExp(e.code).test(t.toString(10))}function resolveResponseHandling(e){for(var t=0;t<htmx.config.responseHandling.length;t++){var n=htmx.config.responseHandling[t];if(codeMatches(n,e.status))return n}return{swap:!1}}function handleTitle(e){if(e){const t=find("title");t?t.innerHTML=e:window.document.title=e}}function handleAjaxResponse(e,t){const n=t.xhr;let r=t.target;const i=t.etc,o=t.select;if(!triggerEvent(e,"htmx:beforeOnLoad",t))return;if(hasHeader(n,/HX-Trigger:/i)&&handleTriggerHeader(n,"HX-Trigger",e),hasHeader(n,/HX-Location:/i)){saveCurrentPageToHistory();let e=n.getResponseHeader("HX-Location");var s;return 0===e.indexOf("{")&&(s=parseJSON(e),e=s.path,delete s.path),void ajaxHelper("get",e,s).then((function(){pushUrlIntoHistory(e)}))}const a=hasHeader(n,/HX-Refresh:/i)&&"true"===n.getResponseHeader("HX-Refresh");if(hasHeader(n,/HX-Redirect:/i))return location.href=n.getResponseHeader("HX-Redirect"),void(a&&location.reload());if(a)return void location.reload();hasHeader(n,/HX-Retarget:/i)&&("this"===n.getResponseHeader("HX-Retarget")?t.target=e:t.target=asElement(querySelectorExt(e,n.getResponseHeader("HX-Retarget"))));const l=determineHistoryUpdates(e,t),c=resolveResponseHandling(n),u=c.swap;let d=!!c.error,f=htmx.config.ignoreTitle||c.ignoreTitle,h=c.select;c.target&&(t.target=asElement(querySelectorExt(e,c.target)));var p=i.swapOverride;null==p&&c.swapOverride&&(p=c.swapOverride),hasHeader(n,/HX-Retarget:/i)&&("this"===n.getResponseHeader("HX-Retarget")?t.target=e:t.target=asElement(querySelectorExt(e,n.getResponseHeader("HX-Retarget")))),hasHeader(n,/HX-Reswap:/i)&&(p=n.getResponseHeader("HX-Reswap"));var m=n.response,g=mergeObjects({shouldSwap:u,serverResponse:m,isError:d,ignoreTitle:f,selectOverride:h},t);
1if((!c.event||triggerEvent(r,c.event,g))&&triggerEvent(r,"htmx:beforeSwap",g)){if(r=g.target,m=g.serverResponse,d=g.isError,f=g.ignoreTitle,h=g.selectOverride,t.target=r,t.failed=d,t.successful=!d,g.shouldSwap){286===n.status&&cancelPolling(e),withExtensions(e,(function(t){m=t.transformResponse(m,n,e)})),l.type&&saveCurrentPageToHistory(),hasHeader(n,/HX-Reswap:/i)&&(p=n.getResponseHeader("HX-Reswap"));var v=getSwapSpecification(e,p);v.hasOwnProperty("ignoreTitle")||(v.ignoreTitle=f),r.classList.add(htmx.config.swappingClass);let i=null,s=null;o&&(h=o),hasHeader(n,/HX-Reselect:/i)&&(h=n.getResponseHeader("HX-Reselect"));const a=getClosestAttributeValue(e,"hx-select-oob"),c=getClosestAttributeValue(e,"hx-select");let u=function(){try{l.type&&(triggerEvent(getDocument().body,"htmx:beforeHistoryUpdate",mergeObjects({history:l},t)),"push"===l.type?(pushUrlIntoHistory(l.path),triggerEvent(getDocument().body,"htmx:pushedIntoHistory",{path:l.path})):(replaceUrlInHistory(l.path),triggerEvent(getDocument().body,"htmx:replacedInHistory",{path:l.path}))),swap(r,m,v,{select:h||c,selectOOB:a,eventInfo:t,anchor:t.pathInfo.anchor,contextElement:e,afterSwapCallback:function(){if(hasHeader(n,/HX-Trigger-After-Swap:/i)){let t=e;bodyContains(e)||(t=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Swap",t)}},afterSettleCallback:function(){if(hasHeader(n,/HX-Trigger-After-Settle:/i)){let t=e;bodyContains(e)||(t=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Settle",t)}maybeCall(i)}})}catch(n){throw triggerErrorEvent(e,"htmx:swapError",t),maybeCall(s),n}},d=htmx.config.globalViewTransitions;if(v.hasOwnProperty("transition")&&(d=v.transition),d&&triggerEvent(e,"htmx:beforeTransition",t)&&"undefined"!=typeof Promise&&document.startViewTransition){const e=new Promise((function(e,t){i=e,s=t})),t=u;u=function(){document.startViewTransition((function(){return t(),e}))}}v.swapDelay>0?getWindow().setTimeout(u,v.swapDelay):u()}d&&triggerErrorEvent(e,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+t.pathInfo.requestPath},t))}}const extensions={};function extensionBase(){return{init:function(e){return null},getSelectors:function(){return null},onEvent:function(e,t){return!0},transformResponse:function(e,t,n){return e},isInlineSwap:function(e){return!1},handleSwap:function(e,t,n,r){return!1},encodeParameters:function(e,t,n){return null}}}function defineExtension(e,t){t.init&&t.init(internalAPI),extensions[e]=mergeObjects(extensionBase(),t)}function removeExtension(e){delete extensions[e]}function getExtensions(e,t,n){if(null==t&&(t=[]),null==e)return t;null==n&&(n=[]);const r=getAttributeValue(e,"hx-ext");return r&&forEach(r.split(","),(function(e){if("ignore:"!=(e=e.replace(/ /g,"")).slice(0,7)){if(n.indexOf(e)<0){const n=extensions[e];n&&t.indexOf(n)<0&&t.push(n)}}else n.push(e.slice(7))})),getExtensions(asElement(parentElt(e)),t,n)}var isReady=!1;function ready(e){isReady||"complete"===getDocument().readyState?e():getDocument().addEventListener("DOMContentLoaded",e)}function insertIndicatorStyles(){if(!1!==htmx.config.includeIndicatorStyles){const e=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"";getDocument().head.insertAdjacentHTML("beforeend","<style"+e+"> ."+htmx.config.indicatorClass+"{opacity:0} ."+htmx.config.requestClass+" ."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ."+htmx.config.requestClass+"."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} </style>")}}function getMetaConfig(){const e=getDocument().querySelector('meta[name="htmx-config"]');return e?parseJSON(e.content):null}function mergeMetaConfig(){const e=getMetaConfig();e&&(htmx.config=mergeObjects(htmx.config,e))}return getDocument().addEventListener("DOMContentLoaded",(function(){isReady=!0})),ready((function(){mergeMetaConfig(),insertIndicatorStyles();let e=getDocument().body;processNode(e);const t=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",(function(e){const t=getInternalData(e.target);t&&t.xhr&&t.xhr.abort()}));const n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(e){e.state&&e.state.htmx?(restoreHistory(),forEac
1h(t,(function(e){triggerEvent(e,"htmx:restored",{document:getDocument(),triggerEvent})}))):n&&n(e)},getWindow().setTimeout((function(){triggerEvent(e,"htmx:load",{}),e=null}),0)})),htmx}();const __WEBPACK_DEFAULT_EXPORT__=htmx}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";function e(e){if(e.includes("full"))return.99;if(e.includes("half"))return.5;if(!e.includes("threshold"))return 0;let t=e[e.indexOf("threshold")+1];return"100"===t?1:"0"===t?0:Number(`.${t}`)}function t(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||"px"):void 0}function n(e){const n="0px 0px 0px 0px",r=e.indexOf("margin");if(-1===r)return n;let i=[];for(let n=1;n<5;n++)i.push(t(e[r+n]||""));return i=i.filter((e=>void 0!==e)),i.length?i.join(" ").trim():n}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{IndaPassService:()=>sl});var r,i,o,s,a=function(t){t.directive("intersect",t.skipDuringClone(((t,{value:r,expression:i,modifiers:o},{evaluateLater:s,cleanup:a})=>{let l=s(i),c={rootMargin:n(o),threshold:e(o)},u=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting!==("leave"===r)&&(l(),o.includes("once")&&u.disconnect())}))}),c);u.observe(t),a((()=>{u.disconnect()}))})))},l=!1,c=!1,u=[],d=-1;function f(e){!function(e){u.includes(e)||u.push(e);c||l||(l=!0,queueMicrotask(p))}(e)}function h(e){let t=u.indexOf(e);-1!==t&&t>d&&u.splice(t,1)}function p(){l=!1,c=!0;for(let e=0;e<u.length;e++)u[e](),d=e;u.length=0,d=-1,c=!1}var m=!0;function g(e){i=e}function v(e,t){let n,r=!0,s=i((()=>{let i=e();JSON.stringify(i),r?n=i:queueMicrotask((()=>{t(i,n),n=i})),r=!1}));return()=>o(s)}var b=[],y=[],w=[];function E(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,y.push(t))}function S(e){b.push(e)}function x(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function _(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach((([n,r])=>{(void 0===t||t.includes(n))&&(r.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var T=new MutationObserver(P),k=!1;function C(){T.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),k=!0}function A(){!function(){let e=T.takeRecords();L.push((()=>e.length>0&&P(e)));let t=L.length;queueMicrotask((()=>{if(L.length===t)for(;L.length>0;)L.shift()()}))}(),T.disconnect(),k=!1}var L=[];function O(e){if(!k)return e();A();let t=e();return C(),t}var M=!1,I=[];function P(e){if(M)return void(I=I.concat(e));let t=new Set,n=new Set,r=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&("childList"===e[o].type&&(e[o].addedNodes.forEach((e=>1===e.nodeType&&t.add(e))),e[o].removedNodes.forEach((e=>1===e.nodeType&&n.add(e)))),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,s=e[o].oldValue,a=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},l=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&null===s?a():t.hasAttribute(n)?(l(),a()):l()}i.forEach(((e,t)=>{_(t,e)})),r.forEach(((e,t)=>{b.forEach((n=>n(t,e)))}));for(let e of n)t.has(e)||y.forEach((t=>t(e)));t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.has(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,w.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,r=null,i=null}function R(e){return H(N(e))}function D(e,t,n){return e._x_dataStack=[t,...N(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function N(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?N(e.host):e.parentNode?N(e.parentNode):[]}function H(e){return new Proxy({objects:e},q)}var q={ownKeys:({objects:e})=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:({objects:e},t)=>t!=Symbol.unscopables&&e.some((e=>Object.prototype.hasOwnProperty.call(e,t)||Reflect.has(e,t))),get:({objects:e},t,n)=>"toJSON"==t?z:Reflect.get(e.find((e=>Reflect.has(e,t)))||{},t,n),set({objects:e},t,n,r){const i=e.find((e=>Object.prototype.hasOwnProperty.call(e,t)))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?o.set.call(r,n)||!0:Reflect.set(i,t,n)}};function z(){return Reflect.ownKeys(this).reduce(((e,t)=>(e[t]=Reflect.get(this,t),e)),{})}function $(e){let t=(n,r="")=>
1{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([i,{value:o,enumerable:s}])=>{if(!1===s||void 0===o)return;if("object"==typeof o&&null!==o&&o.__v_skip)return;let a=""===r?i:`${r}.${i}`;var l;"object"==typeof o&&null!==o&&o._x_interceptor?n[i]=o.initialize(e,a,i):"object"!=typeof(l=o)||Array.isArray(l)||null===l||o===n||o instanceof Element||t(o,a)}))};return t(e)}function F(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>j(t,n,e)),n,r)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,o)=>{let s=e.initialize(r,i,o);return n.initialValue=s,t(r,i,o)}}else n.initialValue=e;return n}}function j(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),j(e[t[0]],t.slice(1),n)}e[t[0]]=n}var B={};function W(e,t){B[e]=t}function U(e,t){let n=function(e){let[t,n]=de(e),r={interceptor:F,...t};return E(e,n),r}(t);return Object.entries(B).forEach((([r,i])=>{Object.defineProperty(e,`$${r}`,{get:()=>i(t,n),enumerable:!1})})),e}function V(e,t,n,...r){try{return n(...r)}catch(n){G(n,e,t)}}function G(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}var X=!0;function Y(e){let t=X;X=!1;let n=e();return X=t,n}function K(e,t,n={}){let r;return J(e,t)((e=>r=e),n),r}function J(...e){return Q(...e)}var Q=Z;function Z(e,t){let n={};U(n,e);let r=[n,...N(e)],i="function"==typeof t?function(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{te(n,t.apply(H([r,...e]),i))}}(r,t):function(e,t,n){let r=function(e,t){if(ee[e])return ee[e];let n=Object.getPrototypeOf((async function(){})).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e;const i=()=>{try{let t=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(n){return G(n,t,e),Promise.resolve()}};let o=i();return ee[e]=o,o}(t,n);return(i=()=>{},{scope:o={},params:s=[]}={})=>{r.result=void 0,r.finished=!1;let a=H([o,...e]);if("function"==typeof r){let e=r(r,a).catch((e=>G(e,n,t)));r.finished?(te(i,r.result,a,s,n),r.result=void 0):e.then((e=>{te(i,e,a,s,n)})).catch((e=>G(e,n,t))).finally((()=>r.result=void 0))}}}(r,t,e);return V.bind(null,e,t,i)}var ee={};function te(e,t,n,r,i){if(X&&"function"==typeof t){let o=t.apply(n,r);o instanceof Promise?o.then((t=>te(e,t,n,r))).catch((e=>G(e,i,t))):e(o)}else"object"==typeof t&&t instanceof Promise?t.then((t=>e(t))):e(t)}var ne="x-";function re(e=""){return ne+e}var ie={};function oe(e,t){return ie[e]=t,{before(t){if(!ie[t])return void console.warn(String.raw`Cannot find directive \`${t}\`. \`${e}\` will use the default order of execution`);const n=ye.indexOf(t);ye.splice(n>=0?n:ye.indexOf("DEFAULT"),0,e)}}}function se(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map((([e,t])=>({name:e,value:t}))),r=ae(n);n=n.map((e=>r.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),t=t.concat(n)}let r={},i=t.map(he(((e,t)=>r[e]=t))).filter(ge).map(function(e,t){return({name:n,value:r})=>{let i=n.match(ve()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map((e=>e.replace(".",""))),expression:r,original:a}}}(r,n)).sort(we);return i.map((t=>function(e,t){let n=()=>{},r=ie[t.type]||n,[i,o]=de(e);x(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),le?ce.get(ue).push(r):r())};return s.runCleanups=o,s}(e,t)))}function ae(e){return Array.from(e).map(he()).filter((e=>!ge(e)))}var le=!1,ce=new Map,ue=Symbol();function de(e){let t=[],[n,r]=function(e){let t=()=>{};return[n=>{let r=i(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>
1{e._x_effects.forEach((e=>e()))}),e._x_effects.add(r),t=()=>{void 0!==r&&(e._x_effects.delete(r),o(r))},r},()=>{t()}]}(e);t.push(r);return[{Alpine:bt,effect:n,cleanup:e=>t.push(e),evaluateLater:J.bind(J,e),evaluate:K.bind(K,e)},()=>t.forEach((e=>e()))]}var fe=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r});function he(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=pe.reduce(((e,t)=>t(e)),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var pe=[];function me(e){pe.push(e)}function ge({name:e}){return ve().test(e)}var ve=()=>new RegExp(`^${ne}([^:^.]+)\\b`);var be="DEFAULT",ye=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",be,"teleport"];function we(e,t){let n=-1===ye.indexOf(e.type)?be:e.type,r=-1===ye.indexOf(t.type)?be:t.type;return ye.indexOf(n)-ye.indexOf(r)}function Ee(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function Se(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>Se(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let r=e.firstElementChild;for(;r;)Se(r,t),r=r.nextElementSibling}function xe(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var _e=!1;var Te=[],ke=[];function Ce(){return Te.map((e=>e()))}function Ae(){return Te.concat(ke).map((e=>e()))}function Le(e){Te.push(e)}function Oe(e){ke.push(e)}function Me(e,t=!1){return Ie(e,(e=>{if((t?Ae():Ce()).some((t=>e.matches(t))))return!0}))}function Ie(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return Ie(e.parentElement,t)}}var Pe=[];function Re(e,t=Se,n=()=>{}){!function(e){le=!0;let t=Symbol();ue=t,ce.set(t,[]);let n=()=>{for(;ce.get(t).length;)ce.get(t).shift()();ce.delete(t)};e(n),le=!1,n()}((()=>{t(e,((e,t)=>{n(e,t),Pe.forEach((n=>n(e,t))),se(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function De(e,t=Se){t(e,(e=>{!function(e){for(e._x_effects?.forEach(h);e._x_cleanups?.length;)e._x_cleanups.pop()()}(e),_(e)}))}var Ne=[],He=!1;function qe(e=()=>{}){return queueMicrotask((()=>{He||setTimeout((()=>{ze()}))})),new Promise((t=>{Ne.push((()=>{e(),t()}))}))}function ze(){for(He=!1;Ne.length;)Ne.shift()()}function $e(e,t){return Array.isArray(t)?Fe(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),o=[],s=[];return i.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),s.push(t))})),r.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))})),()=>{s.forEach((t=>e.classList.add(t))),o.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?$e(e,t()):Fe(e,t)}function Fe(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function je(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,r])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,r)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{je(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Be(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function We(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=()=>{},r=()=>{}){Ve(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=()=>{},r=()=>{}){Ve(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}function Ue(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Ue(t)}function Ve(e,t,{during:n,start:r,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(r).length&&0===Object.keys(i).length)return o(),void s();let a,l,c;!function(e,t){let n,r,i,o=Be((()=>{O((()=>{n=!0,r||t.before(),i||(t.end(),ze()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Be((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},O((()=>{t.start(),t.during()})),He=!0,requestAnimationFrame((()=>
1{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),s=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),O((()=>{t.before()})),r=!0,requestAnimationFrame((()=>{n||(O((()=>{t.end()})),ze(),setTimeout(e._x_transitioning.finish,o+s),i=!0)}))}))}(e,{start(){a=t(e,r)},during(){l=t(e,n)},before:o,end(){a(),c=t(e,i)},after:s,cleanup(){l(),c()}})}function Ge(e,t,n){if(-1===e.indexOf(t))return n;const r=e[e.indexOf(t)+1];if(!r)return n;if("scale"===t&&isNaN(r))return n;if("duration"===t||"delay"===t){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}oe("transition",((e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{"function"==typeof r&&(r=i(r)),!1!==r&&(r&&"boolean"!=typeof r?function(e,t,n){We(e,$e,"");let r={enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}};r[n](t)}(e,r,t):function(e,t,n){We(e,je);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter(((e,n)=>n<t.indexOf("out"))));t.includes("out")&&!r&&(t=t.filter(((e,n)=>n>t.indexOf("out"))));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),c=a?0:1,u=l?Ge(t,"scale",95)/100:1,d=Ge(t,"delay",0)/1e3,f=Ge(t,"origin","center"),h="opacity, transform",p=Ge(t,"duration",150)/1e3,m=Ge(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:h,transitionDuration:`${p}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:c,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:h,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}(e,n,t))})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){const i="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let o=()=>i(n);t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):o():e._x_transition?e._x_transition.in(n):o():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(r))),e._x_transitioning&&e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(r),queueMicrotask((()=>{let t=Ue(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):i((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e?.()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var Xe=!1;function Ye(e,t=()=>{}){return(...n)=>Xe?t(...n):e(...n)}var Ke=[];function Je(e){Ke.push(e)}var Qe=!1;function Ze(e){let t=i;g(((e,n)=>{let r=t(e);return o(r),()=>{}})),e(),g(t)}function et(e,t,n,i=[]){switch(e._x_bindings||(e._x_bindings=r({})),e._x_bindings[t]=n,t=i.includes("camel")?t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):t){case"value":!function(e,t){if(lt(e))void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked="boolean"==typeof t?rt(e.value)===t:nt(e.value,t));else if(at(e))Number.isInteger(t)?e.value=t:Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>nt(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));
1Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=void 0===t?"":t}}(e,n);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=je(e,t)}(e,n);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=$e(e,t)}(e,n);break;case"selected":case"checked":!function(e,t,n){tt(e,t,n),function(e,t,n){e[t]!==n&&(e[t]=n)}(e,t,n)}(e,t,n);break;default:tt(e,t,n)}}function tt(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(ot(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}function nt(e,t){return e==t}function rt(e){return!![1,"1","true","on","yes",!0].includes(e)||![0,"0","false","off","no",!1].includes(e)&&(e?Boolean(e):null)}var it=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function ot(e){return it.has(e)}function st(e,t,n){let r=e.getAttribute(t);return null===r?"function"==typeof n?n():n:""===r||(ot(t)?!![t,"true"].includes(r):r)}function at(e){return"checkbox"===e.type||"ui-checkbox"===e.localName||"ui-switch"===e.localName}function lt(e){return"radio"===e.type||"ui-radio"===e.localName}function ct(e,t){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){n=null,e.apply(r,i)}),t)}}function ut(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout((()=>n=!1),t))}}function dt({get:e,set:t},{get:n,set:r}){let s,a,l=!0,c=i((()=>{let i=e(),o=n();if(l)r(ft(i)),l=!1;else{let e=JSON.stringify(i),n=JSON.stringify(o);e!==s?r(ft(i)):e!==n&&t(ft(o))}s=JSON.stringify(e()),a=JSON.stringify(n())}));return()=>{o(c)}}function ft(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}var ht={},pt=!1;var mt={};function gt(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map((([e,t])=>({name:e,value:t}))),o=ae(i);return i=i.map((e=>o.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),se(e,i,n).map((e=>{r.push(e.runCleanups),e()})),()=>{for(;r.length;)r.pop()()}}var vt={};var bt={get reactive(){return r},get release(){return o},get effect(){return i},get raw(){return s},version:"3.14.3",flushAndStopDeferringMutations:function(){M=!1,P(I),I=[]},dontAutoEvaluateFunctions:Y,disableEffectScheduling:function(e){m=!1,e(),m=!0},startObservingMutations:C,stopObservingMutations:A,setReactivityEngine:function(e){r=e.reactive,o=e.release,i=t=>e.effect(t,{scheduler:e=>{m?f(e):e()}}),s=e.raw},onAttributeRemoved:x,onAttributesAdded:S,closestDataStack:N,skipDuringClone:Ye,onlyDuringClone:function(e){return(...t)=>Xe&&e(...t)},addRootSelector:Le,addInitSelector:Oe,interceptClone:Je,addScopeToNode:D,deferMutations:function(){M=!0},mapAttributes:me,evaluateLater:J,interceptInit:function(e){Pe.push(e)},setEvaluator:function(e){Q=e},mergeProxies:H,extractProp:function(e,t,n,r=!0){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];if(e._x_inlineBindings&&void 0!==e._x_inlineBindings[t]){let n=e._x_inlineBindings[t];return n.extract=r,Y((()=>K(e,n.expression)))}return st(e,t,n)},findClosest:Ie,onElRemoved:E,closestRoot:Me,destroyTree:De,interceptor:F,transition:Ve,setStyles:je,mutateDom:O,directive:oe,entangle:dt,throttle:ut,debounce:ct,evaluate:K,initTree:Re,nextTick:qe,prefixed:re,prefix:function(e){ne=e},plugin:function(e){(Array.isArray(e)?e:[e]).forEach((e=>e(bt)))},magic:W,store:function(e,t){if(pt||(ht=r(ht),pt=!0),void 0===t)return ht[e];ht[e]=t,$(ht[e]),"object"==typeof t&&null!==t&&t.hasOwnProperty("init")&&"function"==typeof t.init&&ht[e].init()},start:function(){var e;_e&&xe("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),_e=!0,document.body||xe("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Ee(document,"alpine:init"),Ee(document,"alpine:initializing"),C(),e=e=>Re(e,Se),w.push(e),E((e=>De(e))),S(((e,t)=>{se(e,t).forEach((e=>e()))})),Array.from(document.querySelectorAll(Ae().join(","))).filter((e=>
1!Me(e.parentElement,!0))).forEach((e=>{Re(e)})),Ee(document,"alpine:initialized"),setTimeout((()=>{[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach((([e,t,n])=>{var r;r=t,Object.keys(ie).includes(r)||n.some((t=>{if(document.querySelector(t))return xe(`found "${t}", but missing ${e} plugin`),!0}))}))}))},clone:function(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Xe=!0,Qe=!0,Ze((()=>{!function(e){let t=!1;Re(e,((e,n)=>{Se(e,((e,r)=>{if(t&&function(e){return Ce().some((t=>e.matches(t)))}(e))return r();t=!0,n(e,r)}))}))}(t)})),Xe=!1,Qe=!1},cloneNode:function(e,t){Ke.forEach((n=>n(e,t))),Xe=!0,Ze((()=>{Re(t,((e,t)=>{t(e,(()=>{}))}))})),Xe=!1},bound:function(e,t,n){return e._x_bindings&&void 0!==e._x_bindings[t]?e._x_bindings[t]:st(e,t,n)},$data:R,watch:v,walk:Se,data:function(e,t){vt[e]=t},bind:function(e,t){let n="function"!=typeof t?()=>t:t;return e instanceof Element?gt(e,n()):(mt[e]=n,()=>{})}};function yt(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}var wt,Et=Object.freeze({}),St=(Object.freeze([]),Object.prototype.hasOwnProperty),xt=(e,t)=>St.call(e,t),_t=Array.isArray,Tt=e=>"[object Map]"===Lt(e),kt=e=>"symbol"==typeof e,Ct=e=>null!==e&&"object"==typeof e,At=Object.prototype.toString,Lt=e=>At.call(e),Ot=e=>Lt(e).slice(8,-1),Mt=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,It=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Pt=/-(\w)/g,Rt=(It((e=>e.replace(Pt,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),Dt=(It((e=>e.replace(Rt,"-$1").toLowerCase())),It((e=>e.charAt(0).toUpperCase()+e.slice(1)))),Nt=(It((e=>e?`on${Dt(e)}`:"")),(e,t)=>e!==t&&(e==e||t==t)),Ht=new WeakMap,qt=[],zt=Symbol("iterate"),$t=Symbol("Map key iterate");var Ft=0;function jt(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var Bt=!0,Wt=[];function Ut(){const e=Wt.pop();Bt=void 0===e||e}function Vt(e,t,n){if(!Bt||void 0===wt)return;let r=Ht.get(e);r||Ht.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(wt)||(i.add(wt),wt.deps.push(i),wt.options.onTrack&&wt.options.onTrack({effect:wt,target:e,type:t,key:n}))}function Gt(e,t,n,r,i,o){const s=Ht.get(e);if(!s)return;const a=new Set,l=e=>{e&&e.forEach((e=>{(e!==wt||e.allowRecurse)&&a.add(e)}))};if("clear"===t)s.forEach(l);else if("length"===n&&_t(e))s.forEach(((e,t)=>{("length"===t||t>=r)&&l(e)}));else switch(void 0!==n&&l(s.get(n)),t){case"add":_t(e)?Mt(n)&&l(s.get("length")):(l(s.get(zt)),Tt(e)&&l(s.get($t)));break;case"delete":_t(e)||(l(s.get(zt)),Tt(e)&&l(s.get($t)));break;case"set":Tt(e)&&l(s.get(zt))}a.forEach((s=>{s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:o}),s.options.scheduler?s.options.scheduler(s):s()}))}var Xt=yt("__proto__,__v_isRef,__isVue"),Yt=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(kt)),Kt=en(),Jt=en(!0),Qt=Zt();function Zt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Dn(this);for(let e=0,t=this.length;e<t;e++)Vt(n,"get",e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Dn)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Wt.push(Bt),Bt=!1;const n=Dn(this)[t].apply(this,e);return Ut(),n}})),e}function en(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?Mn:On:t?Ln:An).get(n))return n;const o=_t(n);if(!e&&o&&xt(Qt,r))return Reflect.get(Qt,r,i);const s=Reflect.get(n,r,i);if(kt(r)?Yt.has(r):Xt(r))return s;if(e||Vt(n,"get",r),t)return s;if(Nn(s)){return!o||!Mt(r)?s.value:s}return Ct(s)?e?Pn(s):In(s):s}}function tn(e=!1){return function(t,n,r,i){let o=t[n];if(!e&&(r=Dn(r),o=Dn(o),!_t(t)&&Nn(o)&&!Nn(r)))return o.value=r,!0;const s=_t(t)&&Mt(n)?Number(n)<t.length:xt(t,n),a=Reflect.set(t,n,r,i);return t===Dn(i)&&(s?Nt(r,o)&&Gt(t,"set",n,r,o):Gt(t,"add",n,r)),a}}var nn={get:Kt,set:tn(),deleteProperty:function(e,t){const n=xt(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Gt(e,"delete",t,void 0,r),i},has:function(e,t){const n=Reflect.has(e,t);return kt(t)&&Yt.has(t)||Vt(e,"has",t),n},ownKeys:function(e){return Vt(e,"iterate",_t(e)?"length":zt),Reflect.ownKeys(e)}},rn={get:Jt,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},on=e=>Ct(e)?In(e):e,sn=e=>Ct(e)?Pn(e):e,an=e=>e,ln=e=>Reflect.getPrototypeOf(e);function cn(e,t,n=!1,r=!1){const i=Dn(e=e.__v_raw),o=Dn(t);t!==o&&!n&&Vt(i,"get",t),!n&&Vt(i,"get",o);const{has:s}=ln(i),a=r?an:n?sn:on;return s.call(i,t)?a(e.get(t)):s.call(i,o)?a(e.get(o)):void(e!==i&&e.get(t))}function un(e,t=!1){const n=this.__v_raw,r=Dn(n),i=Dn(e);return e!==i&&!t&&Vt(r,"has",e),!t&&Vt(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function dn(e,t=!1){return e=e.__v_raw,!t&&Vt(Dn(e),"iterate",zt),Reflect.get(e,"size",e)}function fn(e){e=Dn(e);const t=Dn(this);return ln(t).has.call(t,e)||(t.add(e),Gt(t,"add",e,e)),this}function hn(e,t){t=Dn(t);const n=Dn(this),{has:r,get:i}=ln(n);let o=r.call(n,e);o?Cn(n,r,e):(e=Dn(e),o=r.call(n,e));
1const s=i.call(n,e);return n.set(e,t),o?Nt(t,s)&&Gt(n,"set",e,t,s):Gt(n,"add",e,t),this}function pn(e){const t=Dn(this),{has:n,get:r}=ln(t);let i=n.call(t,e);i?Cn(t,n,e):(e=Dn(e),i=n.call(t,e));const o=r?r.call(t,e):void 0,s=t.delete(e);return i&&Gt(t,"delete",e,void 0,o),s}function mn(){const e=Dn(this),t=0!==e.size,n=Tt(e)?new Map(e):new Set(e),r=e.clear();return t&&Gt(e,"clear",void 0,void 0,n),r}function gn(e,t){return function(n,r){const i=this,o=i.__v_raw,s=Dn(o),a=t?an:e?sn:on;return!e&&Vt(s,"iterate",zt),o.forEach(((e,t)=>n.call(r,a(e),a(t),i)))}}function vn(e,t,n){return function(...r){const i=this.__v_raw,o=Dn(i),s=Tt(o),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=i[e](...r),u=n?an:t?sn:on;return!t&&Vt(o,"iterate",l?$t:zt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function bn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Dt(e)} operation ${n}failed: target is readonly.`,Dn(this))}return"delete"!==e&&this}}function yn(){const e={get(e){return cn(this,e)},get size(){return dn(this)},has:un,add:fn,set:hn,delete:pn,clear:mn,forEach:gn(!1,!1)},t={get(e){return cn(this,e,!1,!0)},get size(){return dn(this)},has:un,add:fn,set:hn,delete:pn,clear:mn,forEach:gn(!1,!0)},n={get(e){return cn(this,e,!0)},get size(){return dn(this,!0)},has(e){return un.call(this,e,!0)},add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear"),forEach:gn(!0,!1)},r={get(e){return cn(this,e,!0,!0)},get size(){return dn(this,!0)},has(e){return un.call(this,e,!0)},add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear"),forEach:gn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=vn(i,!1,!1),n[i]=vn(i,!0,!1),t[i]=vn(i,!1,!0),r[i]=vn(i,!0,!0)})),[e,n,t,r]}var[wn,En,Sn,xn]=yn();function _n(e,t){const n=t?e?xn:Sn:e?En:wn;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(xt(n,r)&&r in t?n:t,r,i)}var Tn={get:_n(!1,!1)},kn={get:_n(!0,!1)};function Cn(e,t,n){const r=Dn(n);if(r!==n&&t.call(e,r)){const t=Ot(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var An=new WeakMap,Ln=new WeakMap,On=new WeakMap,Mn=new WeakMap;function In(e){return e&&e.__v_isReadonly?e:Rn(e,!1,nn,Tn,An)}function Pn(e){return Rn(e,!0,rn,kn,On)}function Rn(e,t,n,r,i){if(!Ct(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Ot(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?r:n);return i.set(e,l),l}function Dn(e){return e&&Dn(e.__v_raw)||e}function Nn(e){return Boolean(e&&!0===e.__v_isRef)}W("nextTick",(()=>qe)),W("dispatch",(e=>Ee.bind(Ee,e))),W("watch",((e,{evaluateLater:t,cleanup:n})=>(e,r)=>{let i=t(e),o=v((()=>{let e;return i((t=>e=t)),e}),r);n(o)})),W("store",(function(){return ht})),W("data",(e=>R(e))),W("root",(e=>Me(e))),W("refs",(e=>(e._x_refs_proxy||(e._x_refs_proxy=H(function(e){let t=[];return Ie(e,(e=>{e._x_refs&&t.push(e._x_refs)})),t}(e))),e._x_refs_proxy)));var Hn={};function qn(e){return Hn[e]||(Hn[e]=0),++Hn[e]}function zn(e,t,n){W(t,(r=>xe(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r)))}W("id",((e,{cleanup:t})=>(n,r=null)=>function(e,t,n,r){e._x_id||(e._x_id={});if(e._x_id[t])return e._x_id[t];let i=r();return e._x_id[t]=i,n((()=>{delete e._x_id[t]})),i}(e,`${n}${r?`-${r}`:""}`,t,(()=>{let t=function(e,t){return Ie(e,(e=>{if(e._x_ids&&e._x_ids[t])return!0}))}(e,n),i=t?t._x_ids[n]:qn(n);return r?`${n}-${i}-${r}`:`${n}-${i}`})))),Je(((e,t)=>{e._x_id&&(t._x_id=e._x_id)})),W("el",(e=>e)),zn("Focus","focus","focus"),zn("Persist","persist","persist"),oe("modelable",((e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>
1{let o=r(t),s=()=>{let e;return o((t=>e=t)),e},a=r(`${t} = __placeholder`),l=e=>a((()=>{}),{scope:{__placeholder:e}}),c=s();l(c),queueMicrotask((()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,n=e._x_model.set,r=dt({get:()=>t(),set(e){n(e)}},{get:()=>s(),set(e){l(e)}});i(r)}))})),oe("teleport",((e,{modifiers:t,expression:n},{cleanup:r})=>{"template"!==e.tagName.toLowerCase()&&xe("x-teleport can only be used on a <template> tag",e);let i=Fn(n),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach((t=>{o.addEventListener(t,(t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))}))})),D(o,{},e);let s=(e,t,n)=>{n.includes("prepend")?t.parentNode.insertBefore(e,t):n.includes("append")?t.parentNode.insertBefore(e,t.nextSibling):t.appendChild(e)};O((()=>{s(o,i,t),Ye((()=>{Re(o),o._x_ignore=!0}))()})),e._x_teleportPutBack=()=>{let r=Fn(n);O((()=>{s(e._x_teleport,r,t)}))},r((()=>O((()=>{o.remove(),De(o)}))))}));var $n=document.createElement("div");function Fn(e){let t=Ye((()=>document.querySelector(e)),(()=>$n))();return t||xe(`Cannot find x-teleport element for selector: "${e}"`),t}var jn=()=>{};function Bn(e,t,n,r){let i=e,o=e=>r(e),s={},a=(e,t)=>n=>t(e,n);if(n.includes("dot")&&(t=t.replace(/-/g,".")),n.includes("camel")&&(t=function(e){return e.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase()))}(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("debounce")){let e=n[n.indexOf("debounce")+1]||"invalid-wait",t=Wn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=ct(o,t)}if(n.includes("throttle")){let e=n[n.indexOf("throttle")+1]||"invalid-wait",t=Wn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=ut(o,t)}return n.includes("prevent")&&(o=a(o,((e,t)=>{t.preventDefault(),e(t)}))),n.includes("stop")&&(o=a(o,((e,t)=>{t.stopPropagation(),e(t)}))),n.includes("once")&&(o=a(o,((e,n)=>{e(n),i.removeEventListener(t,o,s)}))),(n.includes("away")||n.includes("outside"))&&(i=document,o=a(o,((t,n)=>{e.contains(n.target)||!1!==n.target.isConnected&&(e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(n))}))),n.includes("self")&&(o=a(o,((t,n)=>{n.target===e&&t(n)}))),(function(e){return["keydown","keyup"].includes(e)}(t)||Un(t))&&(o=a(o,((e,t)=>{(function(e,t){let n=t.filter((e=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].includes(e)));if(n.includes("debounce")){let e=n.indexOf("debounce");n.splice(e,Wn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let e=n.indexOf("throttle");n.splice(e,Wn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&Vn(e.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter((e=>n.includes(e)));if(n=n.filter((e=>!r.includes(e))),r.length>0){if(r.filter((t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`]))).length===r.length){if(Un(e.type))return!1;if(Vn(e.key).includes(n[0]))return!1}}return!0})(t,n)||e(t)}))),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Wn(e){return!Array.isArray(e)&&!isNaN(e)}function Un(e){return["contextmenu","click","mouse"].some((t=>e.includes(t)))}function Vn(e){if(!e)return[];var t;e=[" ","_"].includes(t=e)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let n={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return n[e]=e,Object.keys(n).map((t=>{if(n[t]===e)return t})).filter((e=>e))}function Gn(e,t,n,r){return O((()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return null!==n.detail&&void 0!==n.detail?n.detail:n.target.value;if(at(e)){if(Array.isArray(r)){let e=null;return e=t.includes("number")?Xn(n.target.value):t.includes("boolean")?rt(n.target.value):n.target.value,n.target.checked?r.includes(e)?r:r.concat([e]):r.filter((t=>!(t==e)))}return n.target.checked}if("select"===e.tagName.toLowerCase()&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map((e=>Xn(e.value||e.text))):t.includes("boolean")?Array.from(n.target.selectedOptions).map((e=>rt(e.value||e.text))):Array.from(n.target.selectedOptions).map((e=>e.value||e.text));{let i;return i=lt(e)?n.target.checked?n.target.value:r:n.target.value,t.includes("number")?Xn(i):t.includes("boolean")?rt(i):t.includes("trim")?i.trim():i}}))}function Xn(e){let t=e?parseFloat(e):null;return n=t,Array.isArray(n)||isNaN(n)?e:t;var n}function Yn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.get&&"function"==typeof e.set}jn.inline=(e,{modifiers:t},{cleanup:n})=>
1{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n((()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore}))},oe("ignore",jn),oe("effect",Ye(((e,{expression:t},{effect:n})=>{n(J(e,t))}))),oe("model",((e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s,a=J(o,n);s="string"==typeof n?J(o,`${n} = __placeholder`):"function"==typeof n&&"string"==typeof n()?J(o,`${n()} = __placeholder`):()=>{};let l=()=>{let e;return a((t=>e=t)),Yn(e)?e.get():e},c=e=>{let t;a((e=>t=e)),Yn(t)?t.set(e):s((()=>{}),{scope:{__placeholder:e}})};"string"==typeof n&&"radio"===e.type&&O((()=>{e.hasAttribute("name")||e.setAttribute("name",n)}));var u="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let d=Xe?()=>{}:Bn(e,u,t,(n=>{c(Gn(e,t,n,l()))}));if(t.includes("fill")&&([void 0,null,""].includes(l())||at(e)&&Array.isArray(l())||"select"===e.tagName.toLowerCase()&&e.multiple)&&c(Gn(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=d,i((()=>e._x_removeModelListeners.default())),e.form){let n=Bn(e.form,"reset",[],(n=>{qe((()=>e._x_model&&e._x_model.set(Gn(e,t,{target:e},l()))))}));i((()=>n()))}e._x_model={get:()=>l(),set(e){c(e)}},e._x_forceModelUpdate=t=>{void 0===t&&"string"==typeof n&&n.match(/\./)&&(t=""),window.fromModel=!0,O((()=>et(e,"value",t))),delete window.fromModel},r((()=>{let n=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(n)}))})),oe("cloak",(e=>queueMicrotask((()=>O((()=>e.removeAttribute(re("cloak")))))))),Oe((()=>`[${re("init")}]`)),oe("init",Ye(((e,{expression:t},{evaluate:n})=>"string"==typeof t?!!t.trim()&&n(t,{},!1):n(t,{},!1)))),oe("text",((e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n((()=>{i((t=>{O((()=>{e.textContent=t}))}))}))})),oe("html",((e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n((()=>{i((t=>{O((()=>{e.innerHTML=t,e._x_ignoreSelf=!0,Re(e),delete e._x_ignoreSelf}))}))}))})),me(fe(":",re("bind:")));var Kn=(e,{value:t,modifiers:n,expression:r,original:i},{effect:o,cleanup:s})=>{if(!t){let t={};return a=t,Object.entries(mt).forEach((([e,t])=>{Object.defineProperty(a,e,{get:()=>(...e)=>t(...e)})})),void J(e,r)((t=>{gt(e,t,i)}),{scope:t})}var a;if("key"===t)return function(e,t){e._x_keyExpression=t}(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let l=J(e,r);o((()=>l((i=>{void 0===i&&"string"==typeof r&&r.match(/\./)&&(i=""),O((()=>et(e,t,i,n)))})))),s((()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()}))};function Jn(e,t,n,r){let i={};if(/^\[.*\]$/.test(e.item)&&Array.isArray(t)){e.item.replace("[","").replace("]","").split(",").map((e=>e.trim())).forEach(((e,n)=>{i[e]=t[n]}))}else if(/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t){e.item.replace("{","").replace("}","").split(",").map((e=>e.trim())).forEach((e=>{i[e]=t[e]}))}else i[e.item]=t;return e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function Qn(){}function Zn(e,t,n){oe(t,(r=>xe(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r)))}Kn.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})},oe("bind",Kn),Le((()=>`[${re("data")}]`)),oe("data",((e,{expression:t},{cleanup:n})=>{if(function(e){return!!Xe&&(!!Qe||e.hasAttribute("data-has-alpine-state"))}(e))return;t=""===t?"{}":t;let i={};U(i,e);let o={};var s,a;s=o,a=i,Object.entries(vt).forEach((([e,t])=>{Object.defineProperty(s,e,{get:()=>(...e)=>t.bind(a)(...e),enumerable:!1})}));let l=K(e,t,{scope:o});void 0!==l&&!0!==l||(l={}),U(l,e);let c=r(l);$(c);let u=D(e,c);c.init&&K(e,c.init),n((()=>{c.destroy&&K(e,c.destroy),u()}))})),Je(((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))})),oe("show",((e,{modifiers:t,expression:n},{effect:r})=>{let i=J(e,n);e._x_doHide||(e._x_doHide=()=>{O((()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)}))}),e._x_doShow||(e._x_doShow=()=>{O((()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display")}))});let o,s=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},l=()=>setTimeout(a),c=Be((e=>e?a():s()),(t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,a,s):t?l():s()})),u=!0;r((()=>i((e=>
1{(u||e!==o)&&(t.includes("immediate")&&(e?l():s()),c(e),o=e,u=!1)}))))})),oe("for",((e,{expression:t},{effect:n,cleanup:i})=>{let o=function(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(r);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(n,"").trim(),a=s.match(t);a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s;return o}(t),s=J(e,o.items),a=J(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n((()=>function(e,t,n,i){let o=e=>"object"==typeof e&&!Array.isArray(e),s=e;n((n=>{var a;a=n,!Array.isArray(a)&&!isNaN(a)&&n>=0&&(n=Array.from(Array(n).keys(),(e=>e+1))),void 0===n&&(n=[]);let l=e._x_lookup,c=e._x_prevKeys,u=[],d=[];if(o(n))n=Object.entries(n).map((([r,o])=>{let s=Jn(t,o,r,n);i((t=>{d.includes(t)&&xe("Duplicate key on x-for",e),d.push(t)}),{scope:{index:r,...s}}),u.push(s)}));else for(let r=0;r<n.length;r++){let o=Jn(t,n[r],r,n);i((t=>{d.includes(t)&&xe("Duplicate key on x-for",e),d.push(t)}),{scope:{index:r,...o}}),u.push(o)}let f=[],h=[],p=[],m=[];for(let e=0;e<c.length;e++){let t=c[e];-1===d.indexOf(t)&&p.push(t)}c=c.filter((e=>!p.includes(e)));let g="template";for(let e=0;e<d.length;e++){let t=d[e],n=c.indexOf(t);if(-1===n)c.splice(e,0,t),f.push([g,e]);else if(n!==e){let t=c.splice(e,1)[0],r=c.splice(n-1,1)[0];c.splice(e,0,r),c.splice(n,0,t),h.push([t,r])}else m.push(t);g=t}for(let e=0;e<p.length;e++){let t=p[e];t in l&&(O((()=>{De(l[t]),l[t].remove()})),delete l[t])}for(let e=0;e<h.length;e++){let[t,n]=h[e],r=l[t],i=l[n],o=document.createElement("div");O((()=>{i||xe('x-for ":key" is undefined or invalid',s,n,l),i.after(o),r.after(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),o.before(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),o.remove()})),i._x_refreshXForScope(u[d.indexOf(n)])}for(let e=0;e<f.length;e++){let[t,n]=f[e],i="template"===t?s:l[t];i._x_currentIfEl&&(i=i._x_currentIfEl);let o=u[n],a=d[n],c=document.importNode(s.content,!0).firstElementChild,h=r(o);D(c,h,s),c._x_refreshXForScope=e=>{Object.entries(e).forEach((([e,t])=>{h[e]=t}))},O((()=>{i.after(c),Ye((()=>Re(c)))()})),"object"==typeof a&&xe("x-for key cannot be an object, it must be a string or an integer",s),l[a]=c}for(let e=0;e<m.length;e++)l[m[e]]._x_refreshXForScope(u[d.indexOf(m[e])]);s._x_prevKeys=d}))}(e,o,s,a))),i((()=>{Object.values(e._x_lookup).forEach((e=>O((()=>{De(e),e.remove()})))),delete e._x_prevKeys,delete e._x_lookup}))})),Qn.inline=(e,{expression:t},{cleanup:n})=>{let r=Me(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n((()=>delete r._x_refs[t]))},oe("ref",Qn),oe("if",((e,{expression:t},{effect:n,cleanup:r})=>{"template"!==e.tagName.toLowerCase()&&xe("x-if can only be used on a <template> tag",e);let i=J(e,t);n((()=>i((t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;D(t,{},e),O((()=>{e.after(t),Ye((()=>Re(t)))()})),e._x_currentIfEl=t,e._x_undoIf=()=>{O((()=>{De(t),t.remove()})),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})))),r((()=>e._x_undoIf&&e._x_undoIf()))})),oe("id",((e,{expression:t},{evaluate:n})=>{n(t).forEach((t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=qn(t))}(e,t)))})),Je(((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)})),me(fe("@",re("on:"))),oe("on",Ye(((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?J(e,r):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Bn(e,t,n,(e=>{o((()=>{}),{scope:{$event:e},params:[e]})}));i((()=>s()))}))),Zn("Collapse","collapse","collapse"),Zn("Intersect","intersect","intersect"),Zn("Focus","trap","focus"),Zn("Mask","mask","mask"),bt.setEvaluator(Z),bt.setReactivityEngine({reactive:In,effect:function(e,t=Et){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!qt.includes(n)){jt(n);try{return Wt.push(Bt),Bt=!0,qt.push(n),wt=n,e()}finally{qt.pop(),Ut(),wt=qt[qt.length-1]}}};return n.id=Ft++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n},release:function(e){e.active&&(jt(e),e.options.onStop&&e.options.onStop(),e.active=!1)},raw:Dn});var er=bt;er.plugin((function(e){var t=navigator.userAgent.includes("IndexApp");e.store("env",{isApp:t})})),er.plugin(a),window.Alpine=er,document.addEventListener("DOMContentLoaded",(function(){er.start()}));var tr=__webpack_require__(4037);window.htmx=tr.A;__webpack_require__(8418),__webpack_require__(2200),__webpack_require__(1311);var nr=navigator.userAgent||navigator.vendor||window.opera,rr=/Mobi|Android|iPhone|iPad|iPod/i.test(nr),ir=function(){var e=/Android/i.test(nr),t=/iPhone|iPod/i.test(nr),n=/iPad/i.test(nr),r=navigator.maxTouchPoints&&navigator.maxTouchPoints>1&&/Macintosh/i.test(nr);return e||t||n||r},or=function(){var e=/iPad|iPhone|iPod/.test(nr),t="MacIntel"===navigator.platform,n=navigator.maxTouchPoints&&navigator.maxTouchPoints>1;return e&&!t&&n};function sr(e){return sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(e)}function ar(e){return function(e){if(Array.isArray(e))return lr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lr(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)?lr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cr(){var e=mr(),t=e.m(cr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function o(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,ur(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(cr=function(){return{wrap:function(t,n,r,i){return e.w(o(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new vr(e,t)},AsyncIterator:pr,async:function(e,t,n,i,s){return(r(t)?hr:fr)(o(e),t,n,i,s)},keys:dr,values:ur}})()}function ur(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(sr(e)+" is not iterable")}function dr(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function fr(e,t,n,r,i){var o=hr(e,t,n,r,i);return o.next().then((function(e){return e.done?e.value:o.next()}))}function hr(e,t,n,r,i){return new pr(mr().w(e,t,n,r),i||Promise)}function pr(e,t){function n(r,i,o,s){try{var a=e[r](i),l=a.value;return l instanceof vr?t.resolve(l.v).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){a.value=e,o(a)}),(function(e){return n("throw",e,o,s)}))}catch(e){s(e)}}var r;this.next||(gr(pr.prototype),gr(pr.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),gr(this,"_invoke",(function(e,i,o){function s(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(s,s):s()}),!0)}function mr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return gr(c,"_invoke",function(n,r,i){var o,a,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,a=0,l=e,f.n=n,s}};function h(n,r){for(a=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(a=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),a=u,l=p;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(f.n=-1),h(a,l)):f.n=l:f.v=l);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(gr(t={},r,(function(){return this})),t),d=c.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,gr(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,gr(d,"constructor",c),gr(c,"constructor",l),l.displayName="GeneratorFunction",gr(c,i,"GeneratorFunction"),gr(d),gr(d,i,"Generator"),gr(d,r,(function(){return this})),gr(d,"toString",(function(){return"[object Generator]"})),(mr=function(){return{w:o,m:f}})()}function gr(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}gr=function(e,t,n,r){function o(t,n){gr(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},gr(e,t,n,r)}function vr(e,t){this.v=e,this.k=t}function br(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}window.isMobileOrTablet=function(){return ir()},window.isIOS=function(){return or()},window.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(nr)};var yr={PALETTE:["#FF5252","#6D006F","#A60080","#E50099","#AA5F26","#FEB518","#EED47E","#4A7938","#C3D0A9","#A1C2C7"],COLORS:{MAIN_TEXT:"#333333",HIDDEN_TEXT:"#cecece",HIDDEN_BOX:"#e7e7e7",GRID:"#e7e7e7",AXIS_X:"#747474",AXIS_Y:"#a2a2a2",TOOLTIP_BG:"rgba(255, 255, 255, 0.9)",TOOLTIP_BORDER:"#e7e7e7",VERTICAL_LINE_LIGHT:"rgba(0, 0, 0, 0.1)",VERTICAL_LINE_DARK:"rgba(255, 255, 255, 0.2)",WHITE:"#ffffff",BLACK:"#000000",MARKET_RED:"#ff4838",MARKET_GREEN:"#00c853"},FONTS:{AXIS:11,TOOLTIP_TITLE:11,TOOLTIP_BODY:13,LEGEND:12,DATALABELS_MOBILE:14,DATALABELS_DESKTOP:20}},wr={COMMON:{BORDER_WIDTH:2,NO_BORDER:0,HOVER_OFFSET:4},LINE:{TENSION:.1,POINT_RADIUS:4,POINT_HOVER_RADIUS:6,FILL_OPACITY_TOP:.4,FILL_OPACITY_BOTTOM:0,GRADIENT_HEIGHT:400},BAR:{BORDER_RADIUS:4,BAR_PERCENTAGE:.6},DOUGHNUT:{CUTOUT:"60%"},LAYOUT:{PADDING_MOBILE:{left:0,right:0,top:10,bottom:10},PADDING_DESKTOP:{left:0,right:10,top:10,bottom:30}},DATALABELS:{THRESHOLD_MOBILE:5,THRESHOLD_DESKTOP:3}},Er={hexToRgba:function(e,t){var n=0,r=0,i=0;return 4===e.length?(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),i=parseInt(e[3]+e[3],16)):7===e.length&&(n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16)),"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(t,")")},createGradient:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wr.LINE.GRADIENT_HEIGHT,r=e.createLinearGradient(0,0,0,n);return r.addColorStop(0,this.hexToRgba(t,wr.LINE.FILL_OPACITY_TOP)),r.addColorStop(1,this.hexToRgba(t,wr.LINE.FILL_OPACITY_BOTTOM)),r},isMobile:function(){return rr&&window.innerWidth<1024},formatNumber:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=new Intl.NumberFormat("hu-HU").format(e);return t?"".concat(n," ").concat(t):n}},Sr={id:"verticalHoverLine",beforeDatasetsDraw:function(e){if("line"===e.config.type){var t=e.ctx,n=e.chartArea;if(n)try{var r=e.tooltip.getActiveElements();if(r&&r.length>0){var i=n.top,o=n.bottom,s=r[0].element.x,a=(e.options.plugins.verticalHoverLine||{}).color||yr.COLORS.VERTICAL_LINE_LIGHT;t.save(),t.beginPath(),t.moveTo(s,i),t.lineTo(s,o),t.lineWidth=1,t.strokeStyle=a,t.stroke(),t.restore(
1)}}catch(e){}}}};document.addEventListener("alpine:init",(function(){Alpine.data("articleChart",(function(e){return{chartInstance:null,payload:null,init:function(){var t=this;"undefined"!=typeof ChartDataLabels&&void 0===Chart.registry.plugins.get("datalabels")&&Chart.register(ChartDataLabels);var n=document.getElementById(e);if(n){try{this.payload=JSON.parse(n.textContent)}catch(e){return void console.error("Invalid JSON data for chart:",e)}this.$nextTick((function(){t.initChart()})),window.addEventListener("resize",(function(){t.chartInstance&&t.chartInstance.resize()}))}else console.warn("Chart Data Script not found:",e)},initChart:function(){if(this.$refs.canvas){var e=this.$refs.canvas.getContext("2d"),t=Er.isMobile(),n=this.processData(e);if(n){var r=n.labels,i=n.datasets,o=n.isCartesian;this.chartInstance=new Chart(e,{type:this.payload.chart_type||"line",data:{labels:r,datasets:i},plugins:[Sr],options:{responsive:!0,maintainAspectRatio:!1,layout:{padding:t?wr.LAYOUT.PADDING_MOBILE:wr.LAYOUT.PADDING_DESKTOP},interaction:{mode:o?"index":"nearest",intersect:!1},plugins:{verticalHoverLine:{color:yr.COLORS.VERTICAL_LINE_LIGHT},datalabels:this.getDataLabelsConfig(o,t),legend:this.getLegendConfig(o,t,i),tooltip:this.getTooltipConfig(o)},scales:this.getScalesConfig(o)}})}}},processData:function(e){var t=this.payload.data;if(!t||t.length<2)return null;for(var n=this.payload.first_row_is_table_header,r=n?1:0,i=this.payload.chart_type||"line",o=["line","bar"].includes(i),s=!0===this.payload.fill_area,a=[],l=[],c=r;c<t.length;c++)t[c]&&t[c].length>0&&a.push(t[c][0]||"");if(o)for(var u=t[0]?t[0].length:0,d=0,f=1;f<u;f++){for(var h=n&&t[0][f]?t[0][f]:"Adatsor ".concat(f),p=[],m=r;m<t.length;m++){var g=t[m],v=g&&g.length>f?this.parseValue(g[f]):null;p.push(v)}if(p.some((function(e){return null!==e}))){var b=yr.PALETTE[d%yr.PALETTE.length];d++;var y={label:h,data:p,borderWidth:wr.COMMON.BORDER_WIDTH,tension:wr.LINE.TENSION,fill:!1,borderRadius:wr.BAR.BORDER_RADIUS,barPercentage:wr.BAR.BAR_PERCENTAGE,pointRadius:wr.LINE.POINT_RADIUS,pointHoverRadius:wr.LINE.POINT_HOVER_RADIUS,borderColor:b,pointBackgroun
1dColor:b,pointBorderColor:b,pointBorderWidth:wr.COMMON.NO_BORDER,pointHoverBackgroundColor:b,pointHoverBorderColor:b,pointHoverBorderWidth:wr.COMMON.NO_BORDER,backgroundColor:b};"line"===i&&s&&(y.fill=!0,y.backgroundColor=Er.createGradient(e,b)),l.push(y)}}else{for(var w=[],E=r;E<t.length;E++){var S=t[E];if(S&&!(S.length<=1)){var x=this.parseValue(S[1]);null!==x&&w.push(x)}}if(w.length>0){var _=w.map((function(e,t){return yr.PALETTE[t%yr.PALETTE.length]}));l.push({label:"Adatok",data:w,backgroundColor:_,borderColor:yr.COLORS.WHITE,borderWidth:wr.COMMON.BORDER_WIDTH,hoverOffset:wr.COMMON.HOVER_OFFSET,cutout:"doughnut"===i?wr.DOUGHNUT.CUTOUT:0})}}return{labels:a,datasets:l,isCartesian:o}},parseValue:function(e){if("number"==typeof e)return e;if(null==e)return null;var t=e.toString().trim();if(""===t)return null;var n=t.replace(/\s/g,"").replace(",","."),r=parseFloat(n);return isNaN(r)?null:r},getDataLabelsConfig:function(e,t){return{display:!e,color:yr.COLORS.WHITE,font:{weight:"bold",size:t?yr.FONTS.DATALABELS_MOBILE:yr.FONTS.DATALABELS_DESKTOP},formatter:function(e,n){if(!e)return"";var r=0;if(n.chart.data.datasets[0].data.forEach((function(e){return r+=e||0})),0===r)return"";var i=t?wr.DATALABELS.THRESHOLD_MOBILE:wr.DATALABELS.THRESHOLD_DESKTOP,o=100*e/r;return o<i?"":o.toFixed(1)+"%"},anchor:"center",align:"center"}},getLegendConfig:function(e,t,n){return{display:!0===this.payload.show_legend||!e||n.length>1,position:"bottom",labels:{usePointStyle:!1,boxWidth:t?12:30,boxHeight:12,padding:t?10:20,font:{size:yr.FONTS.LEGEND},color:yr.COLORS.MAIN_TEXT,generateLabels:function(e){var t=e.data;if("pie"===e.config.type||"doughnut"===e.config.type)return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var i=t.datasets[0],o=i.data[r],s=!e.getDataVisibility(r),a=(o/i.data.reduce((function(e,t){return e+t}),0)*100).toFixed(1)+"%",l=Er.formatNumber(o);return{text:"".concat(n,": ").concat(l," (").concat(a,")"),fillStyle:s?yr.COLORS.HIDDEN_BOX:i.backgroundColor[r],strokeStyle:yr.COLORS.WHITE,fontColor:s?yr.COLORS.HIDDEN_TEXT:yr.COLORS.MAIN_TEXT,lineWidth:0,hidden:s,textDecoration:s?"line-through":void 0,index:r}})):[];var n=Chart.defaults.plugins.legend.labels.generateLabels(e);return n.forEach((function(e){e.hidden?(e.fillStyle=yr.COLORS.HIDDEN_BOX,e.fontColor=yr.COLORS.HIDDEN_TEXT):e.fillStyle=e.strokeStyle,e.lineWidth=0})),n}}}},getTooltipConfig:function(e){return{enabled:!0,yAlign:e?"bottom":void 0,backgroundColor:yr.COLORS.TOOLTIP_BG,titleColor:yr.COLORS.MAIN_TEXT,bodyColor:yr.COLORS.BLACK,bodyFont:{weight:"bold",size:yr.FONTS.TOOLTIP_BODY},titleFont:{size:yr.FONTS.TOOLTIP_TITLE},borderColor:yr.COLORS.TOOLTIP_BORDER,borderWidth:1,padding:10,displayColors:!0,callbacks:{label:function(t){var n=e?t.parsed.y:t.parsed;if(null!=n){var r=t.label||"";e&&(r=t.dataset.label),r&&(r+=": ");var i=Er.formatNumber(n);if(!e){var o=(n/t.chart._metasets[t.datasetIndex].total*100).toFixed(1);return"".concat(r).concat(i," (").concat(o,"%)")}return r+i}return""}}}},getScalesConfig:function(e){return e?{x:{grid:{display:!1},ticks:{color:yr.COLORS.AXIS_X,font:{size:yr.FONTS.AXIS}}},y:{beginAtZero:"bar"===this.payload.chart_type,grid:{color:yr.COLORS.GRID,borderDash:[3,3]},ticks:{color:yr.COLORS.AXIS_Y,font:{size:yr.FONTS.AXIS},callback:function(e){return new Intl.NumberFormat("hu-HU",{notation:"compact"}).format(e)}}}}:{x:{display:!1},y:{display:!1}}}}})),Alpine.data("marketWidget",(function(e,t,n){return{ticker:e,interval:t,chartData:n,isLoading:!1,chartInstance:null,init:function(){var e=this;this.$nextTick((function(){e.initChart()}))},initChart:function(){var e=this;if(this.$refs.canvas){var t=this.$refs.canvas.getContext("2d"),n=this.chartData,r=this.getColor(n.is_positive),i={type:"line",data:{labels:n.labels,datasets:[{label:n.name,data:n.prices,borderColor:r,borderWidth:wr.COMMON.BORDER_WIDTH,backgroundColor:Er.createGradient(t,r,320),fill:!0,pointRadius:0,pointHoverRadius:6,pointBackgroun
1dColor:"#ffffff",pointBorderColor:r,pointHoverBorderWidth:wr.COMMON.NO_BORDER,pointHoverBackgroundColor:"#ffffff",tension:wr.LINE.TENSION}]},plugins:[Sr],options:{responsive:!0,maintainAspectRatio:!1,layout:{padding:{left:0,right:0}},interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!1},verticalHoverLine:{color:yr.COLORS.VERTICAL_LINE_DARK},tooltip:{enabled:!0,backgroundColor:"#2b3336",titleColor:"#8fa1b3",bodyColor:"#ffffff",borderColor:"#444",borderWidth:1,padding:10,displayColors:!1,callbacks:{label:function(t){return t.parsed.y.toLocaleString("hu-HU")+" "+e.chartData.currency}}}},scales:{x:{grid:{color:"#2b3336",drawBorder:!1},ticks:{color:"#8fa1b3",maxTicksLimit:Er.isMobile()?5:8,maxRotation:0,autoSkip:!0}},y:{position:"right",grid:{color:"#333333",drawBorder:!1},ticks:{color:"#8fa1b3",callback:function(e){return e.toLocaleString("hu-HU")}}}}}};this.chartInstance=new Chart(t,i)}},fetchData:function(e,t){var n,r=this;return(n=cr().mark((function n(){var i,o,s;return cr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r.isLoading=!0,r.ticker=e||r.ticker,r.interval=t||r.interval,i="/market-chart/?ticker=".concat(r.ticker,"&interval=").concat(r.interval),n.prev=4,n.next=7,fetch(i);case 7:if((o=n.sent).ok){n.next=10;break}throw new Error("Network error");case 10:return n.next=12,o.json();case 12:s=n.sent,r.chartData=s,r.updateChart(),n.next=20;break;case 17:n.prev=17,n.t0=n.catch(4),console.error("Error fetching market data:",n.t0);case 20:return n.prev=20,r.isLoading=!1,n.finish(20);case 23:case"end":return n.stop()}}),n,null,[[4,17,20,23]])})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function s(e){br(o,r,i,s,a,"next",e)}function a(e){br(o,r,i,s,a,"throw",e)}s(void 0)}))})()},updateChart:function(){var e=Alpine.raw(this.chartInstance);if(e){var t=Alpine.raw(this.chartData),n=this.getColor(t.is_positive),r=this.$refs.canvas.getContext("2d");e.data.labels=ar(t.labels);var i=e.data.datasets[0];i.label=t.name,i.data=ar(t.prices),i.borderColor=n,i.pointBorderColor=n,i.backgroundColor=Er.createGradient(r,n,320),e.update()}else this.initChart()},getColor:function(e){return e?yr.COLORS.MARKET_GREEN:yr.COLORS.MARKET_RED},isActiveTicker:function(e){return this.ticker===e},isActiveInterval:function(e){return this.interval===e}}}))}));__webpack_require__(736),__webpack_require__(2249),__webpack_require__(1551),__webpack_require__(4785),__webpack_require__(6397),__webpack_require__(2499),__webpack_require__(7986),__webpack_require__(1088),__webpack_require__(9888),__webpack_require__(4846),__webpack_require__(5859),__webpack_require__(4384),__webpack_require__(7107),__webpack_require__(6446),__webpack_require__(2410),__webpack_require__(5774),__webpack_require__(3437);function xr(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function _r(e,t){void 0===e&&(e={}),void 0===t&&(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]:xr(t[n])&&xr(e[n])&&Object.keys(t[n]).length>0&&_r(e[n],t[n])}))}const Tr={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 kr(){const e="undefined"!=typeof document?document:{};return _r(e,Tr),e}const Cr={document:Tr,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 Ar(){const e="undefined"!=typeof window?window:{};return _r(e,Cr),e}function Lr(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function Or(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function Mr(){return Date.now()}function Ir(e,t){void 0===t&&(t="x");const n=Ar();let r,i,o;const s=function(e){const t=Ar();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?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}function Pr(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Rr(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const i=r<0||arguments.length<=r?void 0:arguments[r];if(null!=i&&(n=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const n=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,r=n.length;t<r;t+=1){const r=n[t],o=Object.getOwnPropertyDescriptor(i,r);void 0!==o&&o.enumerable&&(Pr(e[r])&&Pr(i[r])?i[r].__swiper__?e[r]=i[r]:Rr(e[r],i[r]):!Pr(e[r])&&Pr(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:Rr(e[r],i[r])):e[r]=i[r])}}}var n;return e}function Dr(e,t,n){e.style.setProperty(t,n)}function Nr(e){let{swiper:t,targetPosition:n,side:r}=e;const i=Ar(),o=-t.translate;let s,a=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=n>o?"next":"prev",u=(e,t)=>
vendor: 8,443 bytes, line 1
1"next"===c&&e>=t||"prev"===c&&e<=t,d=()=>{s=(new Date).getTime(),null===a&&(a=s);const e=Math.max(Math.min((s-a)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let f=o+c*(n-o);if(u(f,n)&&(f=n),t.wrapperEl.scrollTo({[r]:f}),u(f,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:f})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function Hr(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function qr(e,t){void 0===t&&(t="");const n=Ar(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter((e=>e.matches(t))):r}function zr(e){try{return void console.warn(e)}catch(e){}}function $r(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Lr(t)),n}function Fr(e){const t=Ar(),n=kr(),r=e.getBoundingClientRect(),i=n.body,o=e.clientTop||i.clientTop||0,s=e.clientLeft||i.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+a-o,left:r.left+l-s}}function jr(e,t){return Ar().getComputedStyle(e,null).getPropertyValue(t)}function Br(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function Wr(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Ur(e,t){t&&e.addEventListener("transitionend",(function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}))}function Vr(e,t,n){const r=Ar();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function Gr(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function Xr(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let Yr,Kr,Jr;function Qr(){return Yr||(Yr=function(){const e=Ar(),t=kr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Yr}function Zr(e){return void 0===e&&(e={}),Kr||(Kr=function(e){let{userAgent:t}=void 0===e?{}:e;const n=Qr(),r=Ar(),i=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const d=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let p="MacIntel"===i;return!u&&p&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),p=!1),c&&!h&&(s.os="android",s.android=!0),(u||f||d)&&(s.os="ios",s.ios=!0),s}(e)),Kr}function ei(){return Jr||(Jr=function(){const e=Ar(),t=Zr();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));n=e<16||16===e&&r<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||i&&t.ios,isWebView:i}}()),Jr}const ti=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const ni=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const ri=(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.remove())}))),t&&t.remove()}},ii=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},oi=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 r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map(((e,t)=>n+r+t))),void e.slides.forEach(((t,n)=>{o.includes(t.column)&&ii(e,n)}))}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){const t=(r%n+n)%n;(t<i||t>o)&&ii(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r<i)&&ii(e,r)};var si={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(jr(r,"padding-left")||0,10)-parseInt(jr(r,"padding-right")||0,10),n=n-parseInt(jr(r,"padding-top")||0,10)-parseInt(jr(r,"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:r,slidesEl:i,size:o,rtlTranslate:s,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=qr(i,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:u.length;let f=[];const h=[],p=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let y=n.spaceBetween,w=-m,E=0,S=0;if(void 0===o)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*o:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,u.forEach((e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(Dr(r,"--swiper-centered-offset-before",""),Dr(r,"--swiper-centered-offset-after",""));const x=n.grid&&n.grid.rows>1&&e.grid;let _;x?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();const T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let r=0;r<d;r+=1){let i;if(_=0,u[r]&&(i=u[r]),x&&e.grid.updateSlide(r,i,u),!u[r]||"none"!==jr(i,"display")){if("auto"===n.slidesPerView){T&&(u[r].style[e.getDirectionLabel("width")]="");const o=getComputedStyle(i),s=i.style.transform,a=i.style.webkitTransform;if(s&&(i.style.transform="none"),a&&(i.style.webkitTransform="none"),n.roundLengths)_=e.isHorizontal()?Vr(i,"width",!0):Vr(i,"height",!0);else{const e=t(o,"width"),n=t(o,"padding-left"),r=t(o,"padding-right"),s=t(o,"margin-left"),a=t(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)_=e+s+a;else{const{clientWidth:t,offsetWidth:o}=i;_=e+n+r+s+a+(o-t)}}s&&(i.style.transform=s),a&&(i.style.webkitTransform=a),n.roundLengths&&(_=Math.floor(_))}else _=(o-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(_=Math.floor(_)),u[r]&&(u[r].style[e.getDirectionLabel("width")]=`${_}px`);u[r]&&(u[r].swiperSlideSize=_),p.push(_),n.centeredSlides?(w=w+_/2+E/2+y,0===E&&0!==r&&(w=w-o/2-y),0===r&&(w=w-o/2-y),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup==0&&f.push(w),h.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&f.push(w),h.push(w),w=w+_+y),e.virtualSize+=_+y,E=_,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,s&&a&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),x&&e.grid.updateWrapperSize(_,f),!n.centeredSlides){const t=[];for(let r=0;r<f.length;r+=1){let i=f[r];
vendor: 7,525 bytes, line 1
1n.roundLengths&&(i=Math.floor(i)),f[r]<=e.virtualSize-o&&t.push(i)}f=t,Math.floor(e.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-o)}if(l&&n.loop){const t=p[0]+y;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)f.push(f[f.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&f.push(f[f.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===f.length&&(f=[0]),0!==y){const t=e.isHorizontal()&&s?"marginLeft":e.getDirectionLabel("marginRight");u.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==u.length-1)).forEach((e=>{e.style[t]=`${y}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach((t=>{e+=t+(y||0)})),e-=y;const t=e>o?e-o:0;f=f.map((e=>e<=0?-m:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;p.forEach((t=>{e+=t+(y||0)})),e-=y;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<o){const n=(o-e-t)/2;f.forEach(((e,t)=>{f[t]=e-n})),h.forEach(((e,t)=>{h[t]=e+n}))}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:h,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Dr(r,"--swiper-centered-offset-before",-f[0]+"px"),Dr(r,"--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!==c&&e.emit("slidesLengthChange"),f.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const s=e=>r?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(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(s(e))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let s=-e;i&&(s=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<r.length;e+=1){const l=r[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(s+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),d=(s-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),f=-(s-c),h=f+t.slidesSizesGrid[e],p=f>=0&&f<=t.size-t.slidesSizesGrid[e],m=f>=0&&f<t.size-1||h>1&&h<=t.size||f<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),ti(l,m,n.slideVisibleClass),ti(l,p,n.slideFullyVisibleClass),l.progress=i?-u:u,l.originalProgress=i?-d:d}},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,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:s,progressLoop:a}=t;const l=o,c=s;if(0===r)i=0,o=!0,s=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,s=a||i>=1,n&&(i=0),a&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],s=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=i?(l-i)/s:(l+s-o)/s,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!s)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,a=e=>qr(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(o)if(n.loop){let t=i-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="${i}"]`);else s?(l=t.find((e=>e.column===i)),u=t.find((e=>e.column===i+1)),c=t.find((e=>e.column===i-1))):l=t[i];l&&(s||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{ni(e,e===l,n.slideActiveClass),ni(e,e===u,n.slideNextClass),ni(e,e===c,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:s,snapIndex:a}=t;let l,c=e;const u=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,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1):r>=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===o&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled&&i.loop)f=u(c);else if(d){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)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:s,realIndex:f,previousIndex:o,activeIndex:c}),t.initialized&&oi(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==f&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>
vendor: 11,312 bytes, line 1
11&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)}));let o,s=!1;if(i)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){s=!0,o=e;break}if(!i||!s)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};var ai={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=Ir(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:s}=n;let a,l=0,c=0;n.isHorizontal()?l=r?-e:e:c=e,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();a=0===u?0:(e-n.minTranslate())/u,a!==s&&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,t,n,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=r&&e>l?l:r&&e<c?c:e,o.updateProgress(u),s.cssMode){const e=o.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Nr({swiper:o,targetPosition:-u,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function li(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e;const{activeIndex:o,previousIndex:s}=t;let a=r;if(a||(a=o>s?"next":o<s?"prev":"reset"),t.emit(`transition${i}`),n&&o!==s){if("reset"===a)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===a?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var ci={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,t){void 0===e&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),li({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),li({swiper:n,runCallbacks:e,direction:t,step:"End"}))}};var ui={slideTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let s=e;s<0&&(s=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:h,enabled:p}=o;if(!p&&!r&&!i||o.destroyed||o.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,s);let g=m+Math.floor((s-m)/o.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]),r=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<r-(r-n)/2?s=e:t>=n&&t<r&&(s=e+1):t>=n&&(s=e)}if(o.initialized&&s!==d){if(!o.allowSlideNext&&(f?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate()))return!1;if(!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(d||0)!==s)return!1}let b;s!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(v),b=s>d?"next":s<d?"prev":"reset";const y=o.virtual&&o.params.virtual.enabled;if(!(y&&i)&&(f&&-v===o.translate||!f&&v===o.translate))return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==a.effect&&o.setTranslate(v),"reset"!==b&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(a.cssMode){const e=o.isHorizontal(),n=f?v:-v;if(0===t)y&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),y&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=n}))):h[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}));else{if(!o.support.smoothScroll)return Nr({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const w=ei().isSafari;return y&&!i&&w&&o.isElement&&o.virtual.update(!1,!1,s),o.setTransition(t),o.setTranslate(v),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,b),0===t?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){if(void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let s=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)s+=i.virtual.slidesBefore;else{let e;if(o){const t=s*i.params.grid.rows;e=i.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=i.getSlideIndexByData(s);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n}=i.params;let a=i.params.slidesPerView;"auto"===a?a=i.slidesPerViewDynamic():(a=Math.ceil(parseFloat(i.params.slidesPerView,10)),n&&a%2==0&&(a+=1));let l=t-e<a;if(n&&(l=l||e<Math.ceil(a/2)),r&&n&&"auto"!==i.params.slidesPerView&&!o&&(l=!1),l){const r=n?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?i.realIndex:void 0})}if(o){const e=s*i.params.grid.rows;s=i.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else s=i.getSlideIndexByData(s)}return requestAnimationFrame((()=>{i.slideTo(s,t,n,r)})),i},slideNext:function(e,t,n){void 0===t&&(t=!0);const r=this,{enabled:i,params:o,animating:s}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:a,c=r.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+l,e,t,n)})),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const r=this,{params:i,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const f=d(a?r.translate:-r.translate),h=o.map((e=>d(e))),p=i.freeMode&&i.freeMode.enabled;let m=o[h.indexOf(f)-1];if(void 0===m&&(i.cssMode||p)){let e;o.forEach(((t,n)=>{f>=t&&(e=n)})),void 0!==e&&(m=p?o[e]:o[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=s.indexOf(m),g<0&&(g=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{r.slideTo(g,e,t,n)})),!0):r.slideTo(g,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===t&&(t=!0),void 0===r&&(r=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const e=i.snapGrid[a];l-e>(i.snapGrid[a+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[a-1];l-e<=(i.snapGrid[a]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.clickedIndex;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-r/2||o>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=e.getSlideIndex(qr(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Or((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=e.getSlideIndex(qr(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Or((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}};var di={loopCreate:function(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{qr(i,`.${r.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},s=n.grid&&r.grid&&r.grid.rows>1,a=r.slidesPerGroup*(s?r.grid.rows:1),l=n.slides.length%a!=0,c=s&&n.slides.length%r.grid.rows!=0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?$r("swiper-slide",[r.slideBlankClass]):$r("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};if(l){if(r.loopAddBlankSlides){u(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()}else zr("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
1not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(c){if(r.loopAddBlankSlides){u(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()}else zr("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();n.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,initial:s,byController:a,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:f,slidesEl:h,params:p}=c,{centeredSlides:m,initialSlide:g}=p;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled)return n&&(p.centeredSlides||0!==c.snapIndex?p.centeredSlides&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=f,void c.emit("loopFix");let v=p.slidesPerView;"auto"===v?v=c.slidesPerViewDynamic():(v=Math.ceil(parseFloat(p.slidesPerView,10)),m&&v%2==0&&(v+=1));const b=p.slidesPerGroupAuto?v:p.slidesPerGroup;let y=b;y%b!=0&&(y+=b-y%b),y+=p.loopAdditionalSlides,c.loopedSlides=y;const w=c.grid&&p.grid&&p.grid.rows>1;u.length<v+y||"cards"===c.params.effect&&u.length<v+2*y?zr("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&"row"===p.grid.fill&&zr("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],S=[],x=w?Math.ceil(u.length/p.grid.rows):u.length,_=s&&x-g<v&&!m;let T=_?g:c.activeIndex;void 0===o?o=c.getSlideIndex(u.find((e=>e.classList.contains(p.slideActiveClass)))):T=o;const k="next"===r||!r,C="prev"===r||!r;let A=0,L=0;const O=(w?u[o].column:o)+(m&&void 0===i?-v/2+.5:0);if(O<y){A=Math.max(y-O,b);for(let e=0;e<y-O;e+=1){const t=e-Math.floor(e/x)*x;if(w){const e=x-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&E.push(t)}else E.push(x-t-1)}}else if(O+v>x-y){L=Math.max(O-(x-2*y),b),_&&(L=Math.max(L,v-x+g+1));for(let e=0;e<L;e+=1){const t=e-Math.floor(e/x)*x;w?u.forEach(((e,n)=>{e.column===t&&S.push(n)})):S.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame((()=>{c.__preventObserver__=!1})),"cards"===c.params.effect&&u.length<v+2*y&&(S.includes(o)&&S.splice(S.indexOf(o),1),E.includes(o)&&E.splice(E.indexOf(o),1)),C&&E.forEach((e=>{u[e].swiperLoopMoveDOM=!0,h.prepend(u[e]),u[e].swiperLoopMoveDOM=!1})),k&&S.forEach((e=>{u[e].swiperLoopMoveDOM=!0,h.append(u[e]),u[e].swiperLoopMoveDOM=!1})),c.recalcSlides(),"auto"===p.slidesPerView?c.updateSlides():w&&(E.length>0&&C||S.length>0&&k)&&c.slides.forEach(((e,t)=>{c.grid.updateSlide(t,e,c.slides)})),p.watchSlidesProgress&&c.updateSlidesOffset(),n)if(E.length>0&&C){if(void 0===t){const e=c.slidesGrid[T],t=c.slidesGrid[T+A]-e;l?c.setTranslate(c.translate-t):(c.slideTo(T+Math.ceil(A),0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(i){const e=w?E.length/p.grid.rows:E.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(S.length>0&&k)if(void 0===t){const e=c.slidesGrid[T],t=c.slidesGrid[T-L]-e;l?c.setTranslate(c.translate-t):(c.slideTo(T-L,0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=w?S.length/p.grid.rows:S.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=d,c.allowSlideNext=f,c.controller&&c.controller.control&&!a){const e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===p.slidesPerView&&n})})):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView&&n})}c.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 r=[];
vendor: 6,654 bytes, line 1
1e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),r.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};var fi={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})))}};function hi(e,t,n){const r=Ar(),{params:i}=e,o=i.edgeSwipeDetection,s=i.edgeSwipeThreshold;return!o||!(n<=s||n>=r.innerWidth-s)||"prevent"===o&&(t.preventDefault(),!0)}function pi(e){const t=this,n=kr();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void hi(t,r,r.targetTouches[0].pageX);const{params:o,touches:s,enabled:a}=t;if(!a)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=Ar();let r=t.contains(e);!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=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)));return r}(l,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===kr()||n===Ar())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;s.currentX=r.pageX,s.currentY=r.pageY;const h=s.currentX,p=s.currentY;if(!hi(t,r,h))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=h,s.startY=p,i.touchStartTime=Mr(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!l.matches(i.focusableElements))&&n.activeElement.blur();const g=m&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!g||l.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function mi(e){const t=kr(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:s,enabled:a}=n;if(!a)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==r.touchId)return;if(c.pointerId!==r.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find((e=>e.identifier===r.touchId)),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return c.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=Mr()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else{if(s&&(u>o.startX&&-n.translate<=n.maxTranslate()||u<o.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;const f=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(f**2+h**2)<n.params.threshold)return;if(void 0===r.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:f*f+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(f))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let p=n.isHorizontal()?f:h,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(p=Math.abs(p)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),o.diff=p,p*=i.touchRatio,s&&(p=-p,m=-m);const g=n.touchesDirection;n.swipeDirection=p>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const v=n.params.loop&&!i.cssMode,b="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(v&&b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,162 bytes, line 1
1n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==i._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&v&&b&&Math.abs(p)>=1)return Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=p+r.startTranslate;let y=!0,w=i.resistanceRatio;if(i.touchReleaseOnEdges&&(w=0),p>0?(v&&b&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+p)**w))):p<0&&(v&&b&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==i.slidesPerView&&n.slides.length-i.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"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-p)**w))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(p)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);
vendor: 4,887 bytes, line 1
1if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function gi(e){const t=this,n=t.touchEventsData;let r,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(r=[...i.changedTouches].find((e=>e.identifier===n.touchId)),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:o,touches:s,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=Mr(),d=u-n.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=Mr(),Or((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===s.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let f;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,f=o.followFinger?a?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const h=f>=-t.maxTranslate()&&!t.params.loop;let p=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[e+t]?(h||f>=l[e]&&f<l[e+t])&&(p=e,m=l[e+t]-l[e]):(h||f>=l[e])&&(p=e,m=l[l.length-1]-l[l.length-2])}let g=null,v=null;o.rewind&&(t.isBeginning?v=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const b=(f-l[p])/m,y=p<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?g:p+y):t.slideTo(p)),"prev"===t.swipeDirection&&(b>1-o.longSwipesRatio?t.slideTo(p+y):null!==v&&b<0&&Math.abs(b)>o.longSwipesRatio?t.slideTo(v):t.slideTo(p))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(p+y):t.slideTo(p):("next"===t.swipeDirection&&t.slideTo(null!==g?g:p+y),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:p))}}function vi(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.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=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function bi(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function yi(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;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 o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function wi(e){const t=this;ri(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 5,541 bytes, line 1
1)}function Ei(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Si=(e,t)=>{const n=kr(),{params:r,el:i,wrapperEl:o,device:s}=e,a=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i&&"string"!=typeof i&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[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}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",vi,!0):e[c]("observerUpdate",vi,!0),i[l]("load",e.onLoad,{capture:!0}))};var xi={attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=pi.bind(e),e.onTouchMove=mi.bind(e),e.onTouchEnd=gi.bind(e),e.onDocumentTouchStart=Ei.bind(e),t.cssMode&&(e.onScroll=yi.bind(e)),e.onClick=bi.bind(e),e.onLoad=wi.bind(e),Si(e,"on")},detachEvents:function(){Si(this,"off")}};const _i=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Ti={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const s=kr(),a="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:s.querySelector(r.breakpointsBase),c=e.getBreakpoint(o,a,l);if(!c||e.currentBreakpoint===c)return;const u=(c in o?o[c]:void 0)||e.originalParams,d=_i(e,r),f=_i(e,u),h=e.params.grabCursor,p=u.grabCursor,m=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!p?e.unsetGrabCursor():!h&&p&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===u[t])return;const n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));const g=u.direction&&u.direction!==r.direction,v=r.loop&&(u.slidesPerView!==r.slidesPerView||g),b=r.loop;g&&n&&e.changeDirection(),Rr(e.params,u);const y=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!y?e.disable():!m&&y&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&w?(e.loopCreate(t),e.updateSlides()):b&&!w&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1;const i=Ar(),o="window"===t?i.innerHeight:n.clientHeight,s=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));s.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<s.length;e+=1){const{point:o,value:a}=s[e];"window"===t?i.matchMedia(`(min-width: ${a}px)`).matches&&(r=o):a<=n.clientWidth&&(r=o)}return r||"max"}};var ki={addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,s=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((r=>{e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};var Ci={checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;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")}},Ai={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",
vendor: 56,072 bytes, line 1
1spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!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 Li(e,t){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Rr(t,n)):Rr(t,n)):Rr(t,n)}}const Oi={eventsEmitter:{on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](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(((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),r=e):(t=o[0].events,n=o[0].data,r=o[0].context||e),n.unshift(r);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(r,n)}))})),e}},update:si,translate:ai,transition:ci,slide:ui,loop:di,grabCursor:fi,events:xi,breakpoints:Ti,checkOverflow:Ci,classes:ki},Mi={};class Ii{constructor(){let e,t;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=Rr({},t),e&&!t.el&&(t.el=e);const o=kr();if(t.el&&"string"==typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach((n=>{const r=Rr({},t,{el:n});e.push(new Ii(r))})),e}const s=this;s.__swiper__=!0,s.support=Qr(),s.device=Zr({userAgent:t.userAgent}),s.browser=ei(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],t.modules&&Array.isArray(t.modules)&&s.modules.push(...t.modules);const a={};s.modules.forEach((e=>{e({params:t,swiper:s,extendParams:Li(t,a),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}));const l=Rr({},Ai,a);return s.params=Rr({},l,Mi,t),s.originalParams=Rr({},s.params),s.passedParams=Rr({},t),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:e,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,r=Br(qr(t,`.${n.slideClass}, swiper-slide`)[0]);return Br(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=qr(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 r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,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 r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:s,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[a]?Math.ceil(r[a].swiperSlideSize):0;for(let n=a+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>s&&(e=!0));for(let n=a-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>s&&(e=!0))}else if("current"===e)for(let e=a+1;e<r.length;e+=1){(t?i[e]+o[e]-i[a]<s:i[e]-i[a]<s)&&(l+=1)}else for(let e=a-1;e>=0;e-=1){i[a]-i[e]<s&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){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 i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&ri(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),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;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),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 r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(r())}return qr(n,r())[0]})();return!i&&t.params.createElements&&(i=$r("div",t.params.wrapperClass),n.append(i),qr(n,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===jr(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===jr(n,"direction")),wrongRTL:"-webkit-box"===jr(i,"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?ri(t,e):e.addEventListener("load",(e=>{ri(t,e.target)}))})),oi(t),t.initialized=!0,oi(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:r,el:i,wrapperEl:o,slides:s}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),s&&s.length&&s.forEach((e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.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){Rr(Mi,e)}static get extendedDefaults(){return Mi}static get defaults(){return Ai}static installModule(e){Ii.prototype.__modules__||(Ii.prototype.__modules__=[]);const t=Ii.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Ii.installModule(e))),Ii):(Ii.installModule(e),Ii)}}function Pi(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach((i=>{if(!n[i]&&!0===n.auto){let o=qr(e.el,`.${r[i]}`)[0];o||(o=$r("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}})),n}function Ri(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Di(e){const t=this,{params:n,slidesEl:r}=t;n.loop&&t.loopDestroy();const i=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,r.append(t.children[0]),t.innerHTML=""}else r.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);else i(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update()}function Ni(e){const t=this,{params:n,activeIndex:r,slidesEl:i}=t;n.loop&&t.loopDestroy();let o=r+1;const s=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,i.prepend(t.children[0]),t.innerHTML=""}else i.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&s(e[t]);o=r+e.length}else s(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),t.slideTo(o,0,!1)}function Hi(e,t){const n=this,{params:r,activeIndex:i,slidesEl:o}=n;let s=i;r.loop&&(s-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());const a=n.slides.length;if(e<=0)return void n.prependSlide(t);if(e>=a)return void n.appendSlide(t);let l=s>e?s+1:s;const c=[];for(let t=a-1;t>=e;t-=1){const e=n.slides[t];e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&o.append(t[e]);l=s>e?s+t.length:s}else o.append(t);for(let e=0;e<c.length;e+=1)o.append(c[e]);n.recalcSlides(),r.loop&&n.loopCreate(),r.observer&&!n.isElement||n.update(),r.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}function qi(e){const t=this,{params:n,activeIndex:r}=t;let i=r;n.loop&&(i-=t.loopedSlides,t.loopDestroy());let o,s=i;if("object"==typeof e&&"length"in e){for(let n=0;n<e.length;n+=1)o=e[n],t.slides[o]&&t.slides[o].remove(),o<s&&(s-=1);s=Math.max(s,0)}else o=e,t.slides[o]&&t.slides[o].remove(),o<s&&(s-=1),s=Math.max(s,0);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),n.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)}function zi(){const e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}function $i(e){const{effect:t,swiper:n,on:r,setTranslate:i,setTransition:o,overwriteParams:s,perspective:a,recreateShadows:l,getEffectParams:c}=e;let u;r("beforeInit",(()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),a&&a()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const e=s?s():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)})),r("setTranslate",(()=>{n.params.effect===t&&i()})),r("setTransition",((e,r)=>{n.params.effect===t&&o(r)})),r("transitionEnd",(()=>{if(n.params.effect===t&&l){if(!c||!c().slideShadows)return;n.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),r("virtualUpdate",(()=>{n.params.effect===t&&(n.slides.length||(u=!0),requestAnimationFrame((()=>{u&&n.slides&&n.slides.length&&(i(),u=!1)})))}))}function Fi(e,t){const n=Hr(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function ji(e){let{swiper:t,duration:n,transformElements:r,allSlides:i}=e;const{activeIndex:o}=t;if(t.params.virtualTranslate&&0!==n){let e,n=!1;e=i?r:r.filter((e=>{const n=e.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode));return e.parentElement})(e):e;return t.getSlideIndex(n)===o})),e.forEach((e=>{Ur(e,(()=>{if(n)return;if(!t||t.destroyed)return;n=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function Bi(e,t,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${e?`swiper-slide-shadow-${e}`:""}`,i=Hr(t);let o=i.querySelector(`.${r.split(" ").join(".")}`);return o||(o=$r("div",r.split(" ")),i.append(o)),o}Object.keys(Oi).forEach((e=>{Object.keys(Oi[e]).forEach((t=>{Ii.prototype[t]=Oi[e][t]}))})),Ii.use([function(e){let{swiper:t,on:n,emit:r}=e;const i=Ar();let o=null,s=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{s=i.requestAnimationFrame((()=>{const{width:n,height:r}=t;let i=n,o=r;e.forEach((e=>{let{contentBoxSize:n,contentRect:r,target:s}=e;s&&s!==t.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||a()}))})),o.observe(t.el)):(i.addEventListener("resize",a),i.addEventListener("orientationchange",l))})),n("destroy",(()=>{s&&i.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=[],s=Ar(),a=function(e,n){void 0===n&&(n={});const r=new(s.MutationObserver||s.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const n=function(){i("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(n):s.setTimeout(n,0)}));r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),o.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=Wr(t.hostEl);for(let t=0;t<e.length;t+=1)a(e[t])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}})),r("destroy",(()=>{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);const Wi=[function(e){let t,{swiper:n,extendParams:r,on:i,emit:o}=e;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const s=kr();n.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const a=s.createElement("div");function l(e,t){const r=n.params.virtual;if(r.cache&&n.virtual.cache[t])return n.virtual.cache[t];let i;return r.renderSlide?(i=r.renderSlide.call(n,e,t),"string"==typeof i&&(a.innerHTML=i,i=a.children[0])):i=n.isElement?$r("swiper-slide"):$r("div",n.params.slideClass),i.setAttribute("data-swiper-slide-index",t),r.renderSlide||(i.innerHTML=e),r.cache&&(n.virtual.cache[t]=i),i}function c(e,t,r){const{slidesPerView:i,slidesPerGroup:s,centeredSlides:a,loop:c,initialSlide:u}=n.params;if(t&&!c&&u>0)return;const{addSlidesBefore:d,addSlidesAfter:f}=n.params.virtual,{from:h,to:p,slides:m,slidesGrid:g,offset:v}=n.virtual;n.params.cssMode||n.updateActiveIndex();const b=void 0===r?n.activeIndex||0:r;let y,w,E;y=n.rtlTranslate?"right":n.isHorizontal()?"left":"top",a?(w=Math.floor(i/2)+s+f,E=Math.floor(i/2)+s+d):(w=i+(s-1)+f,E=(c?i:s)+d);let S=b-E,x=b+w;c||(S=Math.max(S,0),x=Math.min(x,m.length-1));let _=(n.slidesGrid[S]||0)-(n.slidesGrid[0]||0);function T(){n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),o("virtualUpdate")}if(c&&b>=E?(S-=E,a||(_+=n.slidesGrid[0])):c&&b<E&&(S=-E,a&&(_+=n.slidesGrid[0])),Object.assign(n.virtual,{from:S,to:x,offset:_,slidesGrid:n.slidesGrid,slidesBefore:E,slidesAfter:w}),h===S&&p===x&&!e)return n.slidesGrid!==g&&_!==v&&n.slides.forEach((e=>{e.style[y]=_-Math.abs(n.cssOverflowAdjustment())+"px"})),n.updateProgress(),void o("virtualUpdate");if(n.params.virtual.renderExternal)return n.params.virtual.renderExternal.call(n,{offset:_,from:S,to:x,slides:function(){const e=[];for(let t=S;t<=x;t+=1)e.push(m[t]);return e}()}),void(n.params.virtual.renderExternalUpdate?T():o("virtualUpdate"));const k=[],C=[],A=e=>{let t=e;return e<0?t=m.length+e:t>=m.length&&(t-=m.length),t};if(e)n.slides.filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=h;e<=p;e+=1)if(e<S||e>x){const t=A(e);n.slides.filter((e=>e.matches(`.${n.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`))).forEach((e=>{e.remove()}))}const L=c?-m.length:0,O=c?2*m.length:m.length;for(let t=L;t<O;t+=1)if(t>=S&&t<=x){const n=A(t);void 0===p||e?C.push(n):(t>p&&C.push(n),t<h&&k.push(n))}if(C.forEach((e=>{n.slidesEl.append(l(m[e],e))})),c)for(let e=k.length-1;e>=0;e-=1){const t=k[e];n.slidesEl.prepend(l(m[t],t))}else k.sort(((e,t)=>t-e)),k.forEach((e=>{n.slidesEl.prepend(l(m[e],e))}));qr(n.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[y]=_-Math.abs(n.cssOverflowAdjustment())+"px"})),T()}i("beforeInit",(()=>{if(!n.params.virtual.enabled)return;let e;if(void 0===n.passedParams.virtual.slides){const t=[...n.slidesEl.children].filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`)));t&&t.length&&(n.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),n.virtual.cache[t]=e,e.remove()})))}e||(n.virtual.slides=n.params.virtual.slides),n.classNames.push(`${n.params.containerModifierClass}virtual`),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0,c(!1,!0)})),i("setTranslate",(()=>{n.params.virtual.enabled&&(n.params.cssMode&&!n._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),i("init update resize",(()=>{n.params.virtual.enabled&&n.params.cssMode&&Dr(n.wrapperEl,"--swiper-virtual-size",`${n.virtualSize}px`)})),Object.assign(n.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.push(e[t]);else n.virtual.slides.push(e);c(!0)},prependSlide:function(e){const t=n.activeIndex;let r=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.unshift(e[t]);r=t+e.length,i=e.length}else n.virtual.slides.unshift(e);if(n.params.virtual.cache){const e=n.virtual.cache,t={};Object.keys(e).forEach((n=>{const r=e[n],o=r.getAttribute("data-swiper-slide-index");o&&r.setAttribute("data-swiper-slide-index",parseInt(o,10)+i),t[parseInt(n,10)+i]=r})),n.virtual.cache=t}c(!0),n.slideTo(r,0)},removeSlide:function(e){if(null==e)return;let t=n.activeIndex;if(Array.isArray(e))for(let r=e.length-1;r>=0;r-=1)n.params.virtual.cache&&(delete n.virtual.cache[e[r]],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e[r],1),e[r]<t&&(t-=1),t=Math.max(t,0);else n.params.virtual.cache&&(delete n.virtual.cache[e],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);c(!0),n.slideTo(t,0)},removeAllSlides:function(){n.virtual.slides=[],n.params.virtual.cache&&(n.virtual.cache={}),c(!0),n.slideTo(0,0)},update:c})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=kr(),s=Ar();function a(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let r=e;r.originalEvent&&(r=r.originalEvent);const a=r.keyCode||r.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===a,u=l&&34===a,d=37===a,f=39===a,h=38===a,p=40===a;if(!t.allowSlideNext&&(t.isHorizontal()&&f||t.isVertical()&&p||u))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&d||t.isVertical()&&h||c))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||o.activeElement&&o.activeElement.nodeName&&("input"===o.activeElement.nodeName.toLowerCase()||"textarea"===o.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||u||d||f||h||p)){let e=!1;if(Wr(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===Wr(t.el,`.${t.params.slideActiveClass}`).length)return;const r=t.el,i=r.clientWidth,o=r.clientHeight,a=s.innerWidth,l=s.innerHeight,c=Fr(r);n&&(c.left-=r.scrollLeft);const u=[[c.left,c.top],[c.left+i,c.top],[c.left,c.top+o],[c.left+i,c.top+o]];for(let t=0;t<u.length;t+=1){const n=u[t];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||u||d||f)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((u||f)&&!n||(c||d)&&n)&&t.slideNext(),((c||d)&&!n||(u||f)&&n)&&t.slidePrev()):((c||u||h||p)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(u||p)&&t.slideNext(),(c||h)&&t.slidePrev()),i("keyPress",a)}}function l(){t.keyboard.enabled||(o.addEventListener("keydown",a),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(o.removeEventListener("keydown",a),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),r("init",(()=>{t.params.keyboard.enabled&&l()})),r("destroy",(()=>{t.keyboard.enabled&&c()})),Object.assign(t.keyboard,{enable:l,disable:c})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=Ar();let s;n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let a,l=Mr();const c=[];function u(){t.enabled&&(t.mouseEntered=!0)}function d(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&Mr()-l<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&Mr()-l<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),l=(new o.Date).getTime(),!1)))}function h(e){let n=e,r=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;t.params.cssMode&&n.preventDefault();let l=t.el;"container"!==t.params.mousewheel.eventsTarget&&(l=document.querySelector(t.params.mousewheel.eventsTarget));const u=l&&l.contains(n.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let d=0;const h=t.rtlTranslate?-1:1,p=function(e){let t=0,n=0,r=0,i=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),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}(n);if(o.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(p.pixelX)>Math.abs(p.pixelY)))return!0;d=-p.pixelX*h}else{if(!(Math.abs(p.pixelY)>Math.abs(p.pixelX)))return!0;d=-p.pixelY}else d=Math.abs(p.pixelX)>Math.abs(p.pixelY)?-p.pixelX*h:-p.pixelY;if(0===d)return!0;o.invert&&(d=-d);let m=t.getTranslate()+d*o.sensitivity;if(m>=t.minTranslate()&&(m=t.minTranslate()),m<=t.maxTranslate()&&(m=t.maxTranslate()),r=!!t.params.loop||!(m===t.minTranslate()||m===t.maxTranslate()),r&&t.params.nested&&n.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:Mr(),delta:Math.abs(d),direction:Math.sign(d)},r=a&&e.time<a.time+500&&e.delta<=a.delta&&e.direction===a.direction;if(!r){a=void 0;let l=t.getTranslate()+d*o.sensitivity;const u=t.isBeginning,f=t.isEnd;if(l>=t.minTranslate()&&(l=t.minTranslate()),l<=t.maxTranslate()&&(l=t.maxTranslate()),t.setTransition(0),t.setTranslate(l),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!u&&t.isBeginning||!f&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(s),s=void 0,c.length>=15&&c.shift();const n=c.length?c[c.length-1]:void 0,r=c[0];if(c.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))c.splice(0);else if(c.length>=15&&e.time-r.time<500&&r.delta-e.delta>=1&&e.delta<=6){const n=d>0?.8:.2;a=e,c.splice(0),s=Or((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,n)}),0)}s||(s=Or((()=>{if(t.destroyed||!t.params)return;a=e,c.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(r||i("scroll",n),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),o.releaseOnEdges&&(l===t.minTranslate()||l===t.maxTranslate()))return!0}}else{const n={time:Mr(),delta:Math.abs(d),direction:Math.sign(d),raw:e};c.length>=2&&c.shift();const r=c.length?c[c.length-1]:void 0;if(c.push(n),r?(n.direction!==r.direction||n.delta>r.delta||n.time>r.time+150)&&f(n):f(n),function(e){const n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function p(e){let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget)),n[e]("mouseenter",u),n[e]("mouseleave",d),n[e]("wheel",h)}function m(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",h),!0):!t.mousewheel.enabled&&(p("addEventListener"),t.mousewheel.enabled=!0,!0)}function g(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,h),!0):!!t.mousewheel.enabled&&(p("removeEventListener"),t.mousewheel.enabled=!1,!0)}r("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&g(),t.params.mousewheel.enabled&&m()})),r("destroy",(()=>{t.params.cssMode&&m(),t.mousewheel.enabled&&g()})),Object.assign(t.mousewheel,{enable:m,disable:g})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;function o(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function s(e,n){const r=t.params.navigation;(e=Gr(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))}))}function a(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return s(n,!1),void s(e,!1);s(n,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function u(){const e=t.params.navigation;if(t.params.navigation=Pi(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=o(e.nextEl),r=o(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=Gr(n),r=Gr(r);const i=(n,r)=>{n&&n.addEventListener("click","next"===r?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach((e=>i(e,"next"))),r.forEach((e=>i(e,"prev")))}function d(){let{nextEl:e,prevEl:n}=t.navigation;e=Gr(e),n=Gr(n);const r=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>r(e,"next"))),n.forEach((e=>r(e,"prev")))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},r("init",(()=>{!1===t.params.navigation.enabled?f():(u(),a())})),r("toEdge fromEdge lock unlock",(()=>{a()})),r("destroy",(()=>{d()})),r("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=Gr(e),n=Gr(n),t.enabled?a():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),r("click",((e,n)=>{let{nextEl:r,prevEl:o}=t.navigation;r=Gr(r),o=Gr(o);const s=n.target;let a=o.includes(s)||r.includes(s);if(t.isElement&&!a){const e=n.path||n.composedPath&&n.composedPath();e&&(a=e.find((e=>r.includes(e)||o.includes(e))))}if(t.params.navigation.hideOnClick&&!a){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...r,...o].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const f=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),u(),a()},disable:f,update:a,init:u,destroy:d})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o="swiper-pagination";let s;n({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:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),t.pagination={el:null,bullets:[]};let a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:r}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${r}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${r}-${n}-${n}`))}function u(e){const n=e.target.closest(Ri(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const r=Br(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;const e=(i=t.realIndex,o=r,s=t.slides.length,(o%=s)==1+(i%=s)?"next":o===i-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(r)}else t.slideTo(r);var i,o,s}function d(){const e=t.rtl,n=t.params.pagination;if(l())return;let r,o,u=t.pagination.el;u=Gr(u);const d=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,f=t.params.loop?Math.ceil(d/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=t.previousRealIndex||0,r=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(r=t.snapIndex,o=t.previousSnapIndex):(o=t.previousIndex||0,r=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let l,d,f;if(n.dynamicBullets&&(s=Vr(i[0],t.isHorizontal()?"width":"height",!0),u.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=s*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==o&&(a+=r-(o||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),l=Math.max(r-a,0),d=l+(Math.min(i.length,n.dynamicMainBullets)-1),f=(d+l)/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)})),u.length>1)i.forEach((e=>{const i=Br(e);i===r?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(i>=l&&i<=d&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===l&&c(e,"prev"),i===d&&c(e,"next"))}));else{const e=i[r];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&i.forEach(((e,t)=>{e.setAttribute("part",t===r?"bullet-active":"bullet")})),n.dynamicBullets){const e=i[l],t=i[d];for(let e=l;e<=d;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const r=Math.min(i.length,n.dynamicMainBullets+4),o=(s*r-s)/2-f*s,a=e?"right":"left";i.forEach((e=>{e.style[t.isHorizontal()?a:"top"]=`${o}px`}))}}u.forEach(((e,o)=>{if("fraction"===n.type&&(e.querySelectorAll(Ri(n.currentClass)).forEach((e=>{e.textContent=n.formatFractionCurrent(r+1)})),e.querySelectorAll(Ri(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(f)}))),"progressbar"===n.type){let i;i=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(r+1)/f;let s=1,a=1;"horizontal"===i?s=o:a=o,e.querySelectorAll(Ri(n.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${a})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(t,r+1,f),0===o&&i("paginationRender",e)):(0===o&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)}))}function f(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let r=t.pagination.el;r=Gr(r);let o="";if("bullets"===e.type){let r=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)e.renderBullet?o+=e.renderBullet.call(t,n,e.bulletClass):o+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],r.forEach((n=>{"custom"!==e.type&&(n.innerHTML=o||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(Ri(e.bulletClass)))})),"custom"!==e.type&&i("paginationRender",r[0])}function h(){t.params.pagination=Pi(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find((e=>Wr(e,".swiper")[0]===t.el)))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=Gr(n),n.forEach((n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",u),t.enabled||n.classList.add(e.lockClass)})))}function p(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=Gr(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",u))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}r("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;n=Gr(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),r("init",(()=>{!1===t.params.pagination.enabled?m():(h(),f(),d())})),r("activeIndexChange",(()=>{void 0===t.snapIndex&&d()})),r("snapIndexChange",(()=>{d()})),r("snapGridLengthChange",(()=>{f(),d()})),r("destroy",(()=>{p()})),r("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=Gr(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),r("lock unlock",(()=>{d()})),r("click",((e,n)=>{const r=n.target,o=Gr(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;const e=o[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),o.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=Gr(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),p()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=Gr(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),h(),f(),d()},disable:m,render:f,update:d,init:h,destroy:p})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=kr();let s,a,l,c,u=!1,d=null,f=null;function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n}=t,{dragEl:r,el:i}=e,o=t.params.scrollbar,s=t.params.loop?t.progressLoop:t.progress;let c=a,u=(l-a)*s;n?(u=-u,u>0?(c=a-u,u=0):-u+a>l&&(c=l+u)):u<0?(c=a+u,u=0):u+a>l&&(c=l-u),t.isHorizontal()?(r.style.transform=`translate3d(${u}px, 0, 0)`,r.style.width=`${c}px`):(r.style.transform=`translate3d(0px, ${u}px, 0)`,r.style.height=`${c}px`),o.hide&&(clearTimeout(d),i.style.opacity=1,d=setTimeout((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3))}function p(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:n,el:r}=e;n.style.width="",n.style.height="",l=t.isHorizontal()?r.offsetWidth:r.offsetHeight,c=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),a="auto"===t.params.scrollbar.dragSize?l*c:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n.style.width=`${a}px`:n.style.height=`${a}px`,r.style.display=c>=1?"none":"",t.params.scrollbar.hide&&(r.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function m(e){return t.isHorizontal()?e.clientX:e.clientY}function g(e){const{scrollbar:n,rtlTranslate:r}=t,{el:i}=n;let o;o=(m(e)-Fr(i)[t.isHorizontal()?"left":"top"]-(null!==s?s:a/2))/(l-a),o=Math.max(Math.min(o,1),0),r&&(o=1-o);const c=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(c),t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}function v(e){const n=t.params.scrollbar,{scrollbar:r,wrapperEl:o}=t,{el:a,dragEl:l}=r;u=!0,s=e.target===l?m(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.style.transitionDuration="100ms",l.style.transitionDuration="100ms",g(e),clearTimeout(f),a.style.transitionDuration="0ms",n.hide&&(a.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",e)}function b(e){const{scrollbar:n,wrapperEl:r}=t,{el:o,dragEl:s}=n;u&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,g(e),r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",s.style.transitionDuration="0ms",i("scrollbarDragMove",e))}function y(e){const n=t.params.scrollbar,{scrollbar:r,wrapperEl:o}=t,{el:s}=r;u&&(u=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",o.style.transitionDuration=""),n.hide&&(clearTimeout(f),f=Or((()=>{s.style.opacity=0,s.style.transitionDuration="400ms"}),1e3)),i("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function w(e){const{scrollbar:n,params:r}=t,i=n.el;if(!i)return;const s=i,a=!!r.passiveListeners&&{passive:!1,capture:!1},l=!!r.passiveListeners&&{passive:!0,capture:!1};if(!s)return;const c="on"===e?"addEventListener":"removeEventListener";s[c]("pointerdown",v,a),o[c]("pointermove",b,a),o[c]("pointerup",y,l)}function E(){const{scrollbar:e,el:n}=t;t.params.scrollbar=Pi(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const r=t.params.scrollbar;if(!r.el)return;let i,s;if("string"==typeof r.el&&t.isElement&&(i=t.el.querySelector(r.el)),i||"string"!=typeof r.el)i||(i=r.el);else if(i=o.querySelectorAll(r.el),!i.length)return;t.params.uniqueNavElements&&"string"==typeof r.el&&i.length>1&&1===n.querySelectorAll(r.el).length&&(i=n.querySelector(r.el)),i.length>0&&(i=i[0]),i.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass),i&&(s=i.querySelector(Ri(t.params.scrollbar.dragClass)),s||(s=$r("div",t.params.scrollbar.dragClass),i.append(s))),Object.assign(e,{el:i,dragEl:s}),r.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&w("on"),i&&i.classList[t.enabled?"remove":"add"](...Lr(t.params.scrollbar.lockClass))}function S(){const e=t.params.scrollbar,n=t.scrollbar.el;n&&n.classList.remove(...Lr(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&w("off")}n({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"}}),t.scrollbar={el:null,dragEl:null},r("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:n}=t.scrollbar;n=Gr(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),r("init",(()=>{!1===t.params.scrollbar.enabled?x():(E(),p(),h())})),r("update resize observerUpdate lock unlock changeDirection",(()=>{p()})),r("setTranslate",(()=>{h()})),r("setTransition",((e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(n)})),r("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...Lr(t.params.scrollbar.lockClass))})),r("destroy",(()=>{S()}));const x=()=>{t.el.classList.add(...Lr(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...Lr(t.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...Lr(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...Lr(t.params.scrollbar.scrollbarDisabledClass)),E(),p(),h()},disable:x,updateSize:p,setTranslate:h,init:E,destroy:S})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",o=(e,n)=>{const{rtl:r}=t,i=r?-1:1,o=e.getAttribute("data-swiper-parallax")||"0";let s=e.getAttribute("data-swiper-parallax-x"),a=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),u=e.getAttribute("data-swiper-parallax-rotate");if(s||a?(s=s||"0",a=a||"0"):t.isHorizontal()?(s=o,a="0"):(a=o,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*n*i+"%":s*n*i+"px",a=a.indexOf("%")>=0?parseInt(a,10)*n+"%":a*n+"px",null!=c){const t=c-(c-1)*(1-Math.abs(n));e.style.opacity=t}let d=`translate3d(${s}, ${a}, 0px)`;if(null!=l){d+=` scale(${l-(l-1)*(1-Math.abs(n))})`}if(u&&null!=u){d+=` rotate(${u*n*-1}deg)`}e.style.transform=d},s=()=>{const{el:e,slides:n,progress:r,snapGrid:s,isElement:a}=t,l=qr(e,i);t.isElement&&l.push(...qr(t.hostEl,i)),l.forEach((e=>{o(e,r)})),n.forEach(((e,n)=>{let a=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(n/2)-r*(s.length-1)),a=Math.min(Math.max(a,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((e=>{o(e,a)}))}))};r("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),r("init",(()=>{t.params.parallax.enabled&&s()})),r("setTranslate",(()=>{t.params.parallax.enabled&&s()})),r("setTransition",((e,n)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:n,hostEl:r}=t,o=[...n.querySelectorAll(i)];t.isElement&&o.push(...r.querySelectorAll(i)),o.forEach((t=>{let n=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),t.style.transitionDuration=`${n}ms`}))}(n)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=Ar();n({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let s,a,l=1,c=!1,u=!1,d={x:0,y:0};const f=[],h={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},p={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},m={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let g,v=1;function b(){if(f.length<2)return 1;const e=f[0].pageX,t=f[0].pageY,n=f[1].pageX,r=f[1].pageY;return Math.sqrt((n-e)**2+(r-t)**2)}function y(){const e=t.params.zoom,n=h.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&h.imageEl&&h.imageEl.naturalWidth){const e=h.imageEl.naturalWidth/h.imageEl.offsetWidth;return Math.min(e,n)}return n}function w(e){const n=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(n)||t.slides.filter((t=>t.contains(e.target))).length>0}function E(e){const n=`.${t.params.zoom.containerClass}`;return!!e.target.matches(n)||[...t.hostEl.querySelectorAll(n)].filter((t=>t.contains(e.target))).length>0}function S(e){if("mouse"===e.pointerType&&f.splice(0,f.length),!w(e))return;const n=t.params.zoom;if(s=!1,a=!1,f.push(e),!(f.length<2)){if(s=!0,h.scaleStart=b(),!h.slideEl){h.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),h.slideEl||(h.slideEl=t.slides[t.activeIndex]);let r=h.slideEl.querySelector(`.${n.containerClass}`);if(r&&(r=r.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=r,h.imageWrapEl=r?Wr(h.imageEl,`.${n.containerClass}`)[0]:void 0,!h.imageWrapEl)return void(h.imageEl=void 0);h.maxRatio=y()}if(h.imageEl){const[e,t]=function(){if(f.length<2)return{x:null,y:null};const e=h.imageEl.getBoundingClientRect();return[(f[0].pageX+(f[1].pageX-f[0].pageX)/2-e.x-o.scrollX)/l,(f[0].pageY+(f[1].pageY-f[0].pageY)/2-e.y-o.scrollY)/l]}();h.originX=e,h.originY=t,h.imageEl.style.transitionDuration="0ms"}c=!0}}function x(e){if(!w(e))return;const n=t.params.zoom,r=t.zoom,i=f.findIndex((t=>t.pointerId===e.pointerId));i>=0&&(f[i]=e),f.length<2||(a=!0,h.scaleMove=b(),h.imageEl&&(r.scale=h.scaleMove/h.scaleStart*l,r.scale>h.maxRatio&&(r.scale=h.maxRatio-1+(r.scale-h.maxRatio+1)**.5),r.scale<n.minRatio&&(r.scale=n.minRatio+1-(n.minRatio-r.scale+1)**.5),h.imageEl.style.transform=`translate3d(0,0,0) scale(${r.scale})`))}function _(e){if(!w(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const n=t.params.zoom,r=t.zoom,i=f.findIndex((t=>t.pointerId===e.pointerId));i>=0&&f.splice(i,1),s&&a&&(s=!1,a=!1,h.imageEl&&(r.scale=Math.max(Math.min(r.scale,h.maxRatio),n.minRatio),h.imageEl.style.transitionDuration=`${t.params.speed}ms`,h.imageEl.style.transform=`translate3d(0,0,0) scale(${r.scale})`,l=r.scale,c=!1,r.scale>1&&h.slideEl?h.slideEl.classList.add(`${n.zoomedSlideClass}`):r.scale<=1&&h.slideEl&&h.slideEl.classList.remove(`${n.zoomedSlideClass}`),1===r.scale&&(h.originX=0,h.originY=0,h.slideEl=void 0)))}function T(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function k(e){const n="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!w(e)||!E(e))return;const r=t.zoom;if(!h.imageEl)return;if(!p.isTouched||!h.slideEl)return void(n&&A(e));if(n)return void A(e);p.isMoved||(p.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,p.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,p.startX=Ir(h.imageWrapEl,"x")||0,p.startY=Ir(h.imageWrapEl,"y")||0,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight,h.imageWrapEl.style.transitionDuration="0ms");const i=p.width*r.scale,o=p.height*r.scale;p.minX=Math.min(h.slideWidth/2-i/2,0),p.maxX=-p.minX,p.minY=Math.min(h.slideHeight/2-o/2,0),p.maxY=-p.minY,p.touchesCurrent.x=f.length>0?f[0].pageX:e.pageX,p.touchesCurrent.y=f.length>0?f[0].pageY:e.pageY;if(Math.max(Math.abs(p.touchesCurrent.x-p.touchesStart.x),Math.abs(p.touchesCurrent.y-p.touchesStart.y))>5&&(t.allowClick=!1),!p.isMoved&&!c){if(t.isHorizontal()&&(Math.floor(p.minX)===Math.floor(p.startX)&&p.touchesCurrent.x<p.touchesStart.x||Math.floor(p.maxX)===Math.floor(p.startX)&&p.touchesCurrent.x>p.touchesStart.x))return p.isTouched=!1,void T();if(!t.isHorizontal()&&(Math.floor(p.minY)===Math.floor(p.startY)&&p.touchesCurrent.y<p.touchesStart.y||Math.floor(p.maxY)===Math.floor(p.startY)&&p.touchesCurrent.y>p.touchesStart.y))return p.isTouched=!1,void T()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(g),t.touchEventsData.preventTouchMoveFromPointerMove=!0,g=setTimeout((()=>{t.destroyed||T()})),p.isMoved=!0;const s=(r.scale-l)/(h.maxRatio-t.params.zoom.minRatio),{originX:a,originY:u}=h;p.currentX=p.touchesCurrent.x-p.touchesStart.x+p.startX+s*(p.width-2*a),p.currentY=p.touchesCurrent.y-p.touchesStart.y+p.startY+s*(p.height-2*u),p.currentX<p.minX&&(p.currentX=p.minX+1-(p.minX-p.currentX+1)**.8),p.currentX>p.maxX&&(p.currentX=p.maxX-1+(p.currentX-p.maxX+1)**.8),p.currentY<p.minY&&(p.currentY=p.minY+1-(p.minY-p.currentY+1)**.8),p.currentY>p.maxY&&(p.currentY=p.maxY-1+(p.currentY-p.maxY+1)**.8),m.prevPositionX||(m.prevPositionX=p.touchesCurrent.x),m.prevPositionY||(m.prevPositionY=p.touchesCurrent.y),m.prevTime||(m.prevTime=Date.now()),m.x=(p.touchesCurrent.x-m.prevPositionX)/(Date.now()-m.prevTime)/2,m.y=(p.touchesCurrent.y-m.prevPositionY)/(Date.now()-m.prevTime)/2,Math.abs(p.touchesCurrent.x-m.prevPositionX)<2&&(m.x=0),Math.abs(p.touchesCurrent.y-m.prevPositionY)<2&&(m.y=0),m.prevPositionX=p.touchesCurrent.x,m.prevPositionY=p.touchesCurrent.y,m.prevTime=Date.now(),h.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function C(){const e=t.zoom;h.slideEl&&t.activeIndex!==t.slides.indexOf(h.slideEl)&&(h.imageEl&&(h.imageEl.style.transform="translate3d(0,
10,0) scale(1)"),h.imageWrapEl&&(h.imageWrapEl.style.transform="translate3d(0,0,0)"),h.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,l=1,h.slideEl=void 0,h.imageEl=void 0,h.imageWrapEl=void 0,h.originX=0,h.originY=0)}function A(e){if(l<=1||!h.imageWrapEl)return;if(!w(e)||!E(e))return;const t=o.getComputedStyle(h.imageWrapEl).transform,n=new o.DOMMatrix(t);if(!u)return u=!0,d.x=e.clientX,d.y=e.clientY,p.startX=n.e,p.startY=n.f,p.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,p.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,h.slideWidth=h.slideEl.offsetWidth,void(h.slideHeight=h.slideEl.offsetHeight);const r=-3*(e.clientX-d.x),i=-3*(e.clientY-d.y),s=p.width*l,a=p.height*l,c=h.slideWidth,f=h.slideHeight,m=Math.min(c/2-s/2,0),g=-m,v=Math.min(f/2-a/2,0),b=-v,y=Math.max(Math.min(p.startX+r,g),m),S=Math.max(Math.min(p.startY+i,b),v);h.imageWrapEl.style.transitionDuration="0ms",h.imageWrapEl.style.transform=`translate3d(${y}px, ${S}px, 0)`,d.x=e.clientX,d.y=e.clientY,p.startX=y,p.startY=S,p.currentX=y,p.currentY=S}function L(e){const n=t.zoom,r=t.params.zoom;if(!h.slideEl){e&&e.target&&(h.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),h.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=qr(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex]);let n=h.slideEl.querySelector(`.${r.containerClass}`);n&&(n=n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=n,h.imageWrapEl=n?Wr(h.imageEl,`.${r.containerClass}`)[0]:void 0}if(!h.imageEl||!h.imageWrapEl)return;let i,s,a,c,u,d,f,m,g,v,b,w,E,S,x,_,T,k;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),h.slideEl.classList.add(`${r.zoomedSlideClass}`),void 0===p.touchesStart.x&&e?(i=e.pageX,s=e.pageY):(i=p.touchesStart.x,s=p.touchesStart.y);const C=l,A="number"==typeof e?e:null;1===l&&A&&(i=void 0,s=void 0,p.touchesStart.x=void 0,p.touchesStart.y=void 0);const L=y();n.scale=A||L,l=A||L,!e||1===l&&A?(f=0,m=0):(T=h.slideEl.offsetWidth,k=h.slideEl.offsetHeight,a=Fr(h.slideEl).left+o.scrollX,c=Fr(h.slideEl).top+o.scrollY,u=a+T/2-i,d=c+k/2-s,g=h.imageEl.offsetWidth||h.imageEl.clientWidth,v=h.imageEl.offsetHeight||h.imageEl.clientHeight,b=g*n.scale,w=v*n.scale,E=Math.min(T/2-b/2,0),S=Math.min(k/2-w/2,0),x=-E,_=-S,C>0&&A&&"number"==typeof p.currentX&&"number"==typeof p.currentY?(f=p.currentX*n.scale/C,m=p.currentY*n.scale/C):(f=u*n.scale,m=d*n.scale),f<E&&(f=E),f>x&&(f=x),m<S&&(m=S),m>_&&(m=_)),A&&1===n.scale&&(h.originX=0,h.originY=0),p.currentX=f,p.currentY=m,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform=`translate3d(${f}px, ${m}px,0)`,h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`}function O(){const e=t.zoom,n=t.params.zoom;if(!h.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=qr(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex];let e=h.slideEl.querySelector(`.${n.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=e,h.imageWrapEl=e?Wr(h.imageEl,`.${n.containerClass}`)[0]:void 0}h.imageEl&&h.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,l=1,p.currentX=void 0,p.currentY=void 0,p.touchesStart.x=void 0,p.touchesStart.y=void 0,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform="translate3d(0,0,0)",h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform="translate3d(0,0,0) scale(1)",h.slideEl.classList.remove(`${n.zoomedSlideClass}`),h.slideEl=void 0,h.originX=0,h.originY=0,t.params.zoom.panOnMouseMove&&(d={x:0,y:0},u&&(u=!1,p.startX=0,p.startY=0)))}function M(e){const n=t.zoom;n.scale&&1!==n.scale?O():L(e)}function I(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function P(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:n,activeListenerWithCapture:r}=I();t.wrapperEl.addEventListener("pointerdown",S,n),t.wrapperEl.addEventListener("pointermove",x,r),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,_,n)})),t.wrapperEl.addEventListener("pointermove",k,r)}function R(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:n,activeListenerWithCapture:r}=I();t.wrapperEl.removeEventListener("pointerdown",S,n),t.wrapperEl.removeEventListener("pointermove",x,r),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,_,n)})),t.wrapperEl.removeEventListener("pointermove",k,r)}Object.defineProperty(t.zoom,"scale",{get:()=>v,set(e){if(v!==e){const t=h.imageEl,n=h.slideEl;i("zoomChange",e,t,n)}v=e}}),r("init",(()=>{t.params.zoom.enabled&&P()})),r("destroy",(()=>{R()})),r("touchStart",((e,n)=>{t.zoom.enabled&&function(e){const n=t.device;if(!h.imageEl)return;if(p.isTouched)return;n.android&&e.cancelable&&e.preventDefault(),p.isTouched=!0;const r=f.length>0?f[0]:e;p.touchesStart.x=r.pageX,p.touchesStart.y=r.pageY}(n)}
vendor: 4,328 bytes, line 1
1)),r("touchEnd",((e,n)=>{t.zoom.enabled&&function(){const e=t.zoom;if(f.length=0,!h.imageEl)return;if(!p.isTouched||!p.isMoved)return p.isTouched=!1,void(p.isMoved=!1);p.isTouched=!1,p.isMoved=!1;let n=300,r=300;const i=m.x*n,o=p.currentX+i,s=m.y*r,a=p.currentY+s;0!==m.x&&(n=Math.abs((o-p.currentX)/m.x)),0!==m.y&&(r=Math.abs((a-p.currentY)/m.y));const l=Math.max(n,r);p.currentX=o,p.currentY=a;const c=p.width*e.scale,u=p.height*e.scale;p.minX=Math.min(h.slideWidth/2-c/2,0),p.maxX=-p.minX,p.minY=Math.min(h.slideHeight/2-u/2,0),p.maxY=-p.minY,p.currentX=Math.max(Math.min(p.currentX,p.maxX),p.minX),p.currentY=Math.max(Math.min(p.currentY,p.maxY),p.minY),h.imageWrapEl.style.transitionDuration=`${l}ms`,h.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}()})),r("doubleTap",((e,n)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&M(n)})),r("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&C()})),r("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&C()})),Object.assign(t.zoom,{enable:P,disable:R,in:L,out:O,toggle:M})},function(e){let{swiper:t,extendParams:n,on:r}=e;function i(e,t){const n=function(){let e,t,n;return(r,i)=>{for(t=-1,e=r.length;e-t>1;)n=e+t>>1,r[n]<=i?t=n:e=n;return e}}();let r,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=n(this.x,e),r=i-1,(e-this.x[r])*(this.y[i]-this.y[r])/(this.x[i]-this.x[r])+this.y[r]):0},this}function o(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},r("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const n=`${t.params.eventsPrefix}init`,r=i=>{t.controller.control.push(i.detail[0]),t.update(),e.removeEventListener(n,r)};e.addEventListener(n,r)}}))}else t.controller.control=t.params.controller.control})),r("update",(()=>{o()})),r("resize",(()=>{o()})),r("observerUpdate",(()=>{o()})),r("setTranslate",((e,n,r)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(n,r)})),r("setTransition",((e,n,r)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(n,r)})),Object.assign(t.controller,{setTranslate:function(e,n){const r=t.controller.control;let o,s;const a=t.constructor;function l(e){if(e.destroyed)return;const n=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid)}(e),s=-t.controller.spline.interpolate(-n)),s&&"container"!==t.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(o)&&Number.isFinite(o)||(o=1),s=(n-t.minTranslate())*o+e.minTranslate()),t.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(let e=0;e<r.length;e+=1)r[e]!==n&&r[e]instanceof a&&l(r[e]);else r instanceof a&&n!==r&&l(r)},setTransition:function(e,n){const r=t.constructor,i=t.controller.control;let o;function s(n){n.destroyed||(n.setTransition(e,t),0!==e&&(n.transitionStart(),n.params.autoHeight&&Or((()=>{n.updateAutoHeight()})),Ur(n.wrapperEl,(()=>{i&&n.transitionEnd()}))))}if(Array.isArray(i))for(o=0;o<i.length;o+=1)i[o]!==n&&i[o]instanceof r&&s(i[o]);else i instanceof r&&n!==i&&s(i)}})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({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,
1scrollOnFocus:!0}}),t.a11y={clicked:!1};let i,o,s=null,a=(new Date).getTime();function l(e){const t=s;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=Gr(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function u(e){(e=Gr(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function d(e,t){(e=Gr(e)).forEach((e=>{e.setAttribute("role",t)}))}function f(e,t){(e=Gr(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function h(e,t){(e=Gr(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function p(e){(e=Gr(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function m(e){(e=Gr(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,r=e.target;if(!t.pagination||!t.pagination.el||r!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(Ri(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=Gr(t.navigation.prevEl);Gr(t.navigation.nextEl).includes(r)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),e.includes(r)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}t.pagination&&r.matches(Ri(t.params.pagination.bulletClass))&&r.click()}}function v(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function b(){return v()&&t.params.pagination.clickable}const y=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(d(e,"button"),e.addEventListener("keydown",g)),h(e,n),function(e,t){(e=Gr(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},w=e=>{o&&o!==e.target&&!o.contains(e.target)&&(i=!0),t.a11y.clicked=!0},E=()=>{i=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},S=e=>{a=(new Date).getTime()},x=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-a<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;o=n;const r=t.slides.indexOf(n)===t.activeIndex,s=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);r||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{i||(t.params.loop?t.slideToLoop(parseInt(n.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(n),0),i=!1)})))},_=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&f(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&d(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((r,i)=>{const o=t.params.loop?parseInt(r.getAttribute("data-swiper-slide-index"),10):i;h(r,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))}))},T=()=>{const e=t.params.a11y;t.el.append(s);const n=t.el;e.containerRoleDescriptionMessage&&f(n,e.containerRoleDescriptionMessage),e.containerMessage&&h(n,e.containerMessage),e.containerRole&&d(n,e.containerRole);const r=t.wrapperEl,i=e.id||r.getAttribute("id")||`swiper-wrapper-${o=16,void 0===o&&(o=16),"x".repeat(o).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var o;const a=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;l=i,Gr(r).forEach((e=>{e.setAttribute("id",l)})),function(e,t){(e=Gr(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(r,a),_();let{nextEl:c,prevEl:u}=t.navigation?t.navigation:{};if(c=Gr(c),u=Gr(u),c&&c.forEach((t=>y(t,i,e.nextSlideMessage))),u&&u.forEach((t=>y(t,i,e.prevSlideMessage))),b()){Gr(t.pagination.el).forEach((e=>{e.addEventListener("keydown",g)}))}kr().addEventListener("visibilitychange",S),t.el.addEventListener("focus",x,!0),t.el.addEventListener("focus",x,!0),t.el.addEventListener("pointerdown",w,!0),t.el.addEventListener("pointerup",E,!0)};r("beforeInit",(()=>{s=$r("span",t.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")})),r("afterInit",(()=>{t.params.a11y.enabled&&T()})),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&_()})),r("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(p(n),u(n)):(m(n),c(n))),e&&(t.isEnd?(p(e),u(e)):(m(e),c(e)))}()})),r("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;
vendor: 26,438 bytes, line 1
1v()&&t.pagination.bullets.forEach((n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(d(n,"button"),h(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,Br(n)+1)))),n.matches(Ri(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}))}()})),r("destroy",(()=>{t.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=Gr(e),n=Gr(n),e&&e.forEach((e=>e.removeEventListener("keydown",g))),n&&n.forEach((e=>e.removeEventListener("keydown",g))),b()&&Gr(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",g)}));kr().removeEventListener("visibilitychange",S),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",x,!0),t.el.removeEventListener("pointerdown",w,!0),t.el.removeEventListener("pointerup",E,!0))}()}))},function(e){let{swiper:t,extendParams:n,on:r}=e;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,o={};const s=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=e=>{const t=Ar();let n;n=e?new URL(e):t.location;const r=n.pathname.slice(1).split("/").filter((e=>""!==e)),i=r.length;return{key:r[i-2],value:r[i-1]}},l=(e,n)=>{const r=Ar();if(!i||!t.params.history.enabled)return;let o;o=t.params.url?new URL(t.params.url):r.location;const a=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${n}"]`):t.slides[n];let l=s(a.getAttribute("data-history"));if(t.params.history.root.length>0){let n=t.params.history.root;"/"===n[n.length-1]&&(n=n.slice(0,n.length-1)),l=`${n}/${e?`${e}/`:""}${l}`}else o.pathname.includes(e)||(l=`${e?`${e}/`:""}${l}`);t.params.history.keepQuery&&(l+=o.search);const c=r.history.state;c&&c.value===l||(t.params.history.replaceState?r.history.replaceState({value:l},null,l):r.history.pushState({value:l},null,l))},c=(e,n,r)=>{if(n)for(let i=0,o=t.slides.length;i<o;i+=1){const o=t.slides[i];if(s(o.getAttribute("data-history"))===n){const n=t.getSlideIndex(o);t.slideTo(n,e,r)}}else t.slideTo(0,e,r)},u=()=>{o=a(t.params.url),c(t.params.speed,o.value,!1)};r("init",(()=>{t.params.history.enabled&&(()=>{const e=Ar();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,o=a(t.params.url),o.key||o.value?(c(0,o.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",u)):t.params.history.replaceState||e.addEventListener("popstate",u)}})()})),r("destroy",(()=>{t.params.history.enabled&&(()=>{const e=Ar();t.params.history.replaceState||e.removeEventListener("popstate",u)})()})),r("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&l(t.params.history.key,t.activeIndex)})),r("slideChange",(()=>{i&&t.params.cssMode&&l(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:n,emit:r,on:i}=e,o=!1;const s=kr(),a=Ar();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,n){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((e=>e.getAttribute("data-hash")===n));if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(qr(t.slidesEl,`.${t.params.slideClass}[data-hash="${n}"], swiper-slide[data-hash="${n}"]`)[0])}}});const l=()=>{r("hashChange");const e=s.location.hash.replace("#",""),n=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(n?n.getAttribute("data-hash"):"")){const n=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===n||Number.isNaN(n))return;t.slideTo(n)}},c=()=>{if(!o||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],n=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?(a.history.replaceState(null,null,`#${n}`||""),r("hashSet")):(s.location.hash=n||"",r("hashSet"))};i("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;o=!0;const e=s.location.hash.replace("#","");if(e){const n=0,r=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(r||0,n,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&a.addEventListener("hashchange",l)})()})),i("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&a.removeEventListener("hashchange",l)})),i("transitionEnd _freeModeNoMomentumRelease",(()=>{o&&c()})),i("slideChange",(()=>{o&&t.params.cssMode&&c()}))},function(e){let t,n,{swiper:r,extendParams:i,on:o,emit:s,params:a}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,c,u,d,f,h,p,m,g=a&&a.autoplay?a.autoplay.delay:3e3,v=a&&a.autoplay?a.autoplay.delay:3e3,b=(new Date).getTime();function y(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener("transitionend",y),m||e.detail&&e.detail.bySwiperTouchMove||T())}const w=()=>{if(r.destroyed||!r.autoplay.running)return;r.autoplay.paused?c=!0:c&&(v=l,c=!1);const e=r.autoplay.paused?l:b+v-(new Date).getTime();r.autoplay.timeLeft=e,s("autoplayTimeLeft",e,e/g),n=requestAnimationFrame((()=>{w()}))},E=e=>{if(r.destroyed||!r.autoplay.running)return;cancelAnimationFrame(n),w();let i=void 0===e?r.params.autoplay.delay:e;g=r.params.autoplay.delay,v=r.params.autoplay.delay;const o=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.find((e=>e.classList.contains("swiper-slide-active"))):r.slides[r.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(o)&&o>0&&void 0===e&&(i=o,g=o,v=o),l=i;const a=r.params.speed,c=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(a,!0,!0),s("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,a,!0,!0),s("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(a,!0,!0),s("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,a,!0,!0),s("autoplay")),r.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{E()}))))};return i>0?(clearTimeout(t),t=setTimeout((()=>{c()}),i)):requestAnimationFrame((()=>{c()})),i},S=()=>{b=(new Date).getTime(),r.autoplay.running=!0,E(),s("autoplayStart")},x=()=>{r.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),s("autoplayStop")},_=(e,n)=>{if(r.destroyed||!r.autoplay.running)return;clearTimeout(t),e||(p=!0);const i=()=>{s("autoplayPause"),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",y):T()};if(r.autoplay.paused=!0,n)return h&&(l=r.params.autoplay.delay),h=!1,void i();const o=l||r.params.autoplay.delay;l=o-((new Date).getTime()-b),r.isEnd&&l<0&&!r.params.loop||(l<0&&(l=0),i())},T=()=>{r.isEnd&&l<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(b=(new Date).getTime(),p?(p=!1,E(l)):E(),r.autoplay.paused=!1,s("autoplayResume"))},k=()=>{if(r.destroyed||!r.autoplay.running)return;const e=kr();"hidden"===e.visibilityState&&(p=!0,_(!0)),"visible"===e.visibilityState&&T()},C=e=>{"mouse"===e.pointerType&&(p=!0,m=!0,r.animating||r.autoplay.paused||_(!0))},A=e=>{"mouse"===e.pointerType&&(m=!1,r.autoplay.paused&&T())};o("init",(()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",C),r.el.addEventListener("pointerleave",A)),kr().addEventListener("visibilitychange",k),S())})),o("destroy",(()=>{r.el&&"string"!=typeof r.el&&(r.el.removeEventListener("pointerenter",C),r.el.removeEventListener("pointerleave",A)),kr().removeEventListener("visibilitychange",k),r.autoplay.running&&x()})),o("_freeModeStaticRelease",(()=>{(d||p)&&T()})),o("_freeModeNoMomentumRelease",(()=>{r.params.autoplay.disableOnInteraction?x():_(!0,!0)})),o("beforeTransitionStart",((e,t,n)=>{!r.destroyed&&r.autoplay.running&&(n||!r.params.autoplay.disableOnInteraction?_(!0,!0):x())})),o("sliderFirstMove",(()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?x():(u=!0,d=!1,p=!1,f=setTimeout((()=>{p=!0,d=!0,_(!0)}),200)))})),o("touchEnd",(()=>{if(!r.destroyed&&r.autoplay.running&&u){if(clearTimeout(f),clearTimeout(t),r.params.autoplay.disableOnInteraction)return d=!1,void(u=!1);d&&r.params.cssMode&&T(),d=!1,u=!1}})),o("slideChange",(()=>{!r.destroyed&&r.autoplay.running&&(h=!0)})),Object.assign(r.autoplay,{start:S,stop:x,pause:_,resume:T})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,o=!1;function s(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const n=e.clickedIndex,r=e.clickedSlide;if(r&&r.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let i;i=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):n,t.params.loop?t.slideToLoop(i):t.slideTo(i)}function a(){const{thumbs:e}=t.params;if(i)return!1;i=!0;const n=t.constructor;if(e.swiper instanceof n){if(e.swiper.destroyed)return i=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(Pr(e.swiper)){const r=Object.assign({},e.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new n(r),o=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",s),!0}function l(e){const n=t.thumbs.swiper;if(!n||n.destroyed)return;const r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let i=1;const o=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),n.slides.forEach((e=>e.classList.remove(o))),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<i;e+=1)qr(n.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(o)}));else for(let e=0;e<i;e+=1)n.slides[t.realIndex+e]&&n.slides[t.realIndex+e].classList.add(o);const s=t.params.thumbs.autoScrollOffset,a=s&&!n.params.loop;if(t.realIndex!==n.realIndex||a){const i=n.activeIndex;let o,l;if(n.params.loop){const e=n.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));o=n.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else o=t.realIndex,l=o>t.previousIndex?"next":"prev";a&&(o+="next"===l?s:-1*s),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(o)<0&&(n.params.centeredSlides?o=o>i?o-Math.floor(r/2)+1:o+Math.floor(r/2)-1:o>i&&n.params.slidesPerGroup,n.slideTo(o,e?0:void 0))}}t.thumbs={swiper:null},r("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const n=kr(),r=()=>{const r="string"==typeof e.swiper?n.querySelector(e.swiper):e.swiper;if(r&&r.swiper)e.swiper=r.swiper,a(),l(!0);else if(r){const n=`${t.params.eventsPrefix}init`,i=o=>{e.swiper=o.detail[0],r.removeEventListener(n,i),a(),l(!0),e.swiper.update(),t.update()};r.addEventListener(n,i)}return r},i=()=>{if(t.destroyed)return;r()||requestAnimationFrame(i)};requestAnimationFrame(i)}else a(),l(!0)})),r("slideChange update resize observerUpdate",(()=>{l()})),r("setTransition",((e,n)=>{const r=t.thumbs.swiper;r&&!r.destroyed&&r.setTransition(n)})),r("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&o&&e.destroy()})),Object.assign(t.thumbs,{init:a,update:l})},function(e){let{swiper:t,extendParams:n,emit:r,once:i}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:Mr()})},onTouchEnd:function(e){let{currentPos:n}=e;if(t.params.cssMode)return;const{params:o,wrapperEl:s,rtlTranslate:a,snapGrid:l,touchEventsData:c}=t,u=Mr()-c.touchStartTime;if(n<-t.minTranslate())t.slideTo(t.activeIndex);else if(n>-t.maxTranslate())t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1);else{if(o.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),n=c.velocities.pop(),r=e.position-n.position,i=e.time-n.time;t.velocity=r/i,t.velocity/=2,Math.abs(t.velocity)<o.freeMode.minimumVelocity&&(t.velocity=0),(i>150||Mr()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=o.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*o.freeMode.momentumRatio;const n=t.velocity*e;let u=t.translate+n;a&&(u=-u);let d,f=!1;const h=20*Math.abs(t.velocity)*o.freeMode.momentumBounceRatio;let p;if(u<t.maxTranslate())o.freeMode.momentumBounce?(u+t.maxTranslate()<-h&&(u=t.maxTranslate()-h),d=t.maxTranslate(),f=!0,c.allowMomentumBounce=!0):u=t.maxTranslate(),o.loop&&o.centeredSlides&&(p=!0);else if(u>t.minTranslate())o.freeMode.momentumBounce?(u-t.minTranslate()>h&&(u=t.minTranslate()+h),d=t.minTranslate(),f=!0,c.allowMomentumBounce=!0):u=t.minTranslate(),o.loop&&o.centeredSlides&&(p=!0);else if(o.freeMode.sticky){let e;for(let t=0;t<l.length;t+=1)if(l[t]>-u){e=t;break}u=Math.abs(l[e]-u)<Math.abs(l[e-1]-u)||"next"===t.swipeDirection?l[e]:l[e-1],u=-u}if(p&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=a?Math.abs((-u-t.translate)/t.velocity):Math.abs((u-t.translate)/t.velocity),o.freeMode.sticky){const n=Math.abs((a?-u:u)-t.translate),r=t.slidesSizesGrid[t.activeIndex];e=n<r?o.speed:n<2*r?1.5*o.speed:2.5*o.speed}}else if(o.freeMode.sticky)return void t.slideToClosest();o.freeMode.momentumBounce&&f?(t.updateProgress(d),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating=!0,Ur(s,(()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(r("momentumBounce"),t.setTransition(o.speed),setTimeout((()=>{t.setTranslate(d),Ur(s,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(u),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,Ur(s,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(u),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(o.freeMode.sticky)return void t.slideToClosest();o.freeMode&&r("_freeModeNoMomentumRelease")}(!o.freeMode.momentum||u>=o.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,n,r,i,{swiper:o,extendParams:s,on:a}=e;s({grid:{rows:1,fill:"column"}});const l=()=>{let e=o.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*o.size:"string"==typeof e&&(e=parseFloat(e)),e};a("init",(()=>{i=o.params.grid&&o.params.grid.rows>1})),a("update",(()=>{const{params:e,el:t}=o,n=e.grid&&e.grid.rows>1;i&&!n?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),r=1,o.emitContainerClasses()):!i&&n&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),o.emitContainerClasses()),i=n})),o.grid={initSlides:e=>{const{slidesPerView:i}=o.params,{rows:s,fill:a}=o.params.grid,l=o.virtual&&o.params.virtual.enabled?o.virtual.slides.length:e.length;r=Math.floor(l/s),t=Math.floor(l/s)===l/s?l:Math.ceil(l/s)*s,"auto"!==i&&"row"===a&&(t=Math.max(t,i*s)),n=t/s},unsetSlides:()=>{o.slides&&o.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[o.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,s)=>{const{slidesPerGroup:a}=o.params,c=l(),{rows:u,fill:d}=o.params.grid,f=o.virtual&&o.params.virtual.enabled?o.virtual.slides.length:s.length;let h,p,m;if("row"===d&&a>1){const n=Math.floor(e/(a*u)),r=e-u*a*n,o=0===n?a:Math.min(Math.ceil((f-n*u*a)/u),a);m=Math.floor(r/o),p=r-m*o+n*a,h=p+m*t/u,i.style.order=h}else"column"===d?(p=Math.floor(e/u),m=e-p*u,(p>r||p===r&&m===u-1)&&(m+=1,m>=u&&(m=0,p+=1))):(m=Math.floor(e/n),p=e-m*n);i.row=m,i.column=p,i.style.height=`calc((100% - ${(u-1)*c}px) / ${u})`,i.style[o.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,n)=>{const{centeredSlides:r,roundLengths:i}=o.params,s=l(),{rows:a}=o.params.grid;if(o.virtualSize=(e+s)*t,o.virtualSize=Math.ceil(o.virtualSize/a)-s,o.params.cssMode||(o.wrapperEl.style[o.getDirectionLabel("width")]=`${o.virtualSize+s}px`),r){const e=[];for(let t=0;t<n.length;t+=1){let r=n[t];i&&(r=Math.floor(r)),n[t]<o.virtualSize+n[0]&&e.push(r)}n.splice(0,n.length),n.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:Di.bind(t),prependSlide:Ni.bind(t),addSlide:Hi.bind(t),removeSlide:qi.bind(t),removeAllSlides:zi.bind(t)})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({fadeEffect:{crossFade:!1}}),$i({effect:"fade",swiper:t,on:r,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let n=0;n<e.length;n+=1){const e=t.slides[n];let r=-e.swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);let i=0;t.isHorizontal()||(i=r,r=0);const o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),s=Fi(0,e);s.style.opacity=o,s.style.transform=`translate3d(${r}px, ${i}px, 0px)`}},setTransition:e=>{const n=t.slides.map((e=>Hr(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`})),ji({swiper:t,duration:e,transformElements:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,n)=>{let r=n?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=n?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");r||(r=$r("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"left":"top")).split(" ")),e.append(r)),i||(i=$r("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"right":"bottom")).split(" ")),e.append(i)),r&&(r.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};$i({effect:"cube",swiper:t,on:r,setTranslate:()=>{const{el:e,wrapperEl:n,slides:r,width:o,height:s,rtlTranslate:a,size:l,browser:c}=t,u=Xr(t),d=t.params.cubeEffect,f=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let p,m=0;d.shadow&&(f?(p=t.wrapperEl.querySelector(".swiper-cube-shadow"),p||(p=$r("div","swiper-cube-shadow"),t.wrapperEl.append(p)),p.style.height=`${o}px`):(p=e.querySelector(".swiper-cube-shadow"),p||(p=$r("div","swiper-cube-shadow"),e.append(p))));for(let e=0;e<r.length;e+=1){const t=r[e];let n=e;h&&(n=parseInt(t.getAttribute("data-swiper-slide-index"),10));let o=90*n,s=Math.floor(o/360);a&&(o=-o,s=Math.floor(-o/360));const c=Math.max(Math.min(t.progress,1),-1);let p=0,g=0,v=0;n%4==0?(p=4*-s*l,v=0):(n-1)%4==0?(p=0,v=4*-s*l):(n-2)%4==0?(p=l+4*s*l,v=l):(n-3)%4==0&&(p=-l,v=3*l+4*l*s),a&&(p=-p),f||(g=p,p=0);const b=`rotateX(${u(f?0:-o)}deg) rotateY(${u(f?o:0)}deg) translate3d(${p}px, ${g}px, ${v}px)`;c<=1&&c>-1&&(m=90*n+90*c,a&&(m=90*-n-90*c)),t.style.transform=b,d.slideShadows&&i(t,c,f)}if(n.style.transformOrigin=`50% 50% -${l/2}px`,n.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,d.shadow)if(f)p.style.transform=`translate3d(0px, ${o/2+d.shadowOffset}px, ${-o/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${d.shadowScale})`;else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),n=d.shadowScale,r=d.shadowScale/t,i=d.shadowOffset;p.style.transform=`scale3d(${n}, 1, ${r}) translate3d(0px, ${s/2+i}px, ${-s/2/r}px) rotateX(-89.99deg)`}const g=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;n.style.transform=`translate3d(0px,0,${g}px) rotateX(${u(t.isHorizontal()?0:m)}deg) rotateY(${u(t.isHorizontal()?-m:0)}deg)`,n.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:n,slides:r}=t;if(r.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=n.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const n=Math.max(Math.min(t.progress,1),-1);i(t,n,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,n)=>{let r=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");r||(r=Bi("flip",e,t.isHorizontal()?"left":"top")),i||(i=Bi("flip",e,t.isHorizontal()?"right":"bottom")),r&&(r.style.opacity=Math.max(-n,0)),i&&(i.style.opacity=Math.max(n,0))};$i({effect:"flip",swiper:t,on:r,setTranslate:()=>{const{slides:e,rtlTranslate:n}=t,r=t.params.flipEffect,o=Xr(t);for(let s=0;s<e.length;s+=1){const a=e[s];let l=a.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(a.progress,1),-1));const c=a.swiperSlideOffset;let u=-180*l,d=0,f=t.params.cssMode?-c-t.translate:-c,h=0;t.isHorizontal()?n&&(u=-u):(h=f,f=0,d=-u,u=0),a.style.zIndex=-Math.abs(Math.round(l))+e.length,r.slideShadows&&i(a,l);const p=`translate3d(${f}px, ${h}px, 0px) rotateX(${o(d)}deg) rotateY(${o(u)}deg)`;Fi(0,a).style.transform=p}},setTransition:e=>{const n=t.slides.map((e=>Hr(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),ji({swiper:t,duration:e,transformElements:n})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let n=e.progress;t.params.flipEffect.limitRotation&&(n=Math.max(Math.min(e.progress,1),-1)),i(e,n)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),$i({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{const{width:e,height:n,slides:r,slidesSizesGrid:i}=t,o=t.params.coverflowEffect,s=t.isHorizontal(),a=t.translate,l=s?e/2-a:n/2-a,c=s?o.rotate:-o.rotate,u=o.depth,d=Xr(t);for(let e=0,t=r.length;e<t;e+=1){const t=r[e],n=i[e],a=(l-t.swiperSlideOffset-n/2)/n,f="function"==typeof o.modifier?o.modifier(a):a*o.modifier;let h=s?c*f:0,p=s?0:c*f,m=-u*Math.abs(f),g=o.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(o.stretch)/100*n);let v=s?0:g*f,b=s?g*f:0,y=1-(1-o.scale)*Math.abs(f);Math.abs(b)<.001&&(b=0),Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(p)<.001&&(p=0),Math.abs(y)<.001&&(y=0);const w=`translate3d(${b}px,${v}px,${m}px) rotateX(${d(p)}deg) rotateY(${d(h)}deg) scale(${y})`;if(Fi(0,t).style.transform=w,t.style.zIndex=1-Math.abs(Math.round(f)),o.slideShadows){let e=s?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),n=s?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=Bi("coverflow",t,s?"left":"top")),n||(n=Bi("coverflow",t,s?"right":"bottom")),e&&(e.style.opacity=f>0?f:0),n&&(n.style.opacity=-f>0?-f:0)}}},setTransition:e=>{t.slides.map((e=>Hr(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;$i({effect:"creative",swiper:t,on:r,setTranslate:()=>{const{slides:e,wrapperEl:n,slidesSizesGrid:r}=t,o=t.params.creativeEffect,{progressMultiplier:s}=o,a=t.params.centeredSlides,l=Xr(t);if(a){const e=r[0]/2-t.params.slidesOffsetBefore||0;n.style.transform=`translateX(calc(50% - ${e}px))`}for(let n=0;n<e.length;n+=1){const r=e[n],c=r.progress,u=Math.min(Math.max(r.progress,-o.limitProgress),o.limitProgress);let d=u;a||(d=Math.min(Math.max(r.originalProgress,-o.limitProgress),o.limitProgress));const f=r.swiperSlideOffset,h=[t.params.cssMode?-f-t.translate:-f,0,0],p=[0,0,0];let m=!1;t.isHorizontal()||(h[1]=h[0],h[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};u<0?(g=o.next,m=!0):u>0&&(g=o.prev,m=!0),h.forEach(((e,t)=>{h[t]=`calc(${e}px + (${i(g.translate[t])} * ${Math.abs(u*s)}))`})),p.forEach(((e,t)=>{let n=g.rotate[t]*Math.abs(u*s);p[t]=n})),r.style.zIndex=-Math.abs(Math.round(c))+e.length;const v=h.join(", "),b=`rotateX(${l(p[0])}deg) rotateY(${l(p[1])}deg) rotateZ(${l(p[2])}deg)`,y=d<0?`scale(${1+(1-g.scale)*d*s})`:`scale(${1-(1-g.scale)*d*s}
1)`,w=d<0?1+(1-g.opacity)*d*s:1-(1-g.opacity)*d*s,E=`translate3d(${v}) ${b} ${y}`;if(m&&g.shadow||!m){let e=r.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=Bi("creative",r)),e){const t=o.shadowPerProgress?u*(1/o.limitProgress):u;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const S=Fi(0,r);S.style.transform=E,S.style.opacity=w,g.origin&&(S.style.transformOrigin=g.origin)}},setTransition:e=>{const n=t.slides.map((e=>Hr(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),ji({swiper:t,duration:e,transformElements:n,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),$i({effect:"cards",swiper:t,on:r,setTranslate:()=>{const{slides:e,activeIndex:n,rtlTranslate:r}=t,i=t.params.cardsEffect,{startTranslate:o,isTouched:s}=t.touchEventsData,a=r?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const c=e[l],u=c.progress,d=Math.min(Math.max(u,-4),4);let f=c.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(f-=e[0].swiperSlideOffset);let h=t.params.cssMode?-f-t.translate:-f,p=0;const m=-100*Math.abs(d);let g=1,v=-i.perSlideRotate*d,b=i.perSlideOffset-.75*Math.abs(d);const y=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,w=(y===n||y===n-1)&&d>0&&d<1&&(s||t.params.cssMode)&&a<o,E=(y===n||y===n+1)&&d<0&&d>-1&&(s||t.params.cssMode)&&a>o;if(w||E){const e=(1-Math.abs((Math.abs(d)-.5)/.5))**.5;v+=-28*d*e,g+=-.5*e,b+=96*e,p=-25*e*Math.abs(d)+"%"}if(h=d<0?`calc(${h}px ${r?"-":"+"} (${b*Math.abs(d)}%))`:d>0?`calc(${h}px ${r?"-":"+"} (-${b*Math.abs(d)}%))`:`${h}px`,!t.isHorizontal()){const e=p;p=h,h=e}const S=d<0?""+(1+(1-g)*d):""+(1-(1-g)*d),x=`\n translate3d(${h}, ${p}, ${m}px)\n rotateZ(${i.rotate?r?-v:v:0}deg)\n scale(${S})\n `;if(i.slideShadows){let e=c.querySelector(".swiper-slide-shadow");e||(e=Bi("cards",c)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(u))+e.length;Fi(0,c).style.transform=x}},setTransition:e=>{const n=t.slides.map((e=>Hr(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),ji({swiper:t,duration:e,transformElements:n})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function Vi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gi(r.key),r)}}function Gi(e){var t=function(e,t){if("object"!=Ui(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ui(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ui(t)?t:t+""}Ii.use(Wi);var Xi=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root=t,this.quizSwiper=n,this.questions=Array.from(t.querySelectorAll(".quiz-question")),this.correct=0,this.answersData=[],this.showImmediateFeedback="false"!==t.dataset.showImmediateFeedback,this.timePerQuestion=Number(t.dataset.countdown||0),this.timerEl=document.querySelector(".quiz-timer"),this.timerNumberEl=document.querySelector(".quiz-timer-number"),this.progressEl=document.querySelector(".quiz-progress"),this.timerInterval=null,this.timeLeft=this.timePerQuestion,this.bind(),this.initSwiperHook(),this.syncSlideInteractivity()},t=[{key:"bind",value:function(){var e=this;this.root.addEventListener("click",(function(t){var n=t.target.closest(".quiz-answer");n&&e.handleAnswer(n);var r=t.target.closest(".quiz-next");r&&e.nextQuestion(r),t.target.closest(".quiz-show-results")&&e.showResults()}))}},{key:"initSwiperHook",value:function(){var e=this;this.quizSwiper.on("slideChange",(function(){e.handleSlideChange()}))}},{key:"syncSlideInteractivity",value:function(){var e=this;
1Array.from(this.quizSwiper.slides).forEach((function(t,n){var r=n===e.quizSwiper.activeIndex;t.inert=!r,t.setAttribute("aria-hidden",String(!r)),t.classList.toggle("is-active",r)}))}},{key:"startTimer",value:function(){var e=this;this.timerEl&&(this.stopTimer(),this.quizSwiper.update(),this.syncSlideInteractivity(),this.timePerQuestion||this.timerEl.classList.add("hidden"),this.timeLeft=this.timePerQuestion,this.updateTimerUI(),this.timerInterval=setInterval((function(){e.timeLeft--,e.updateTimerUI(),e.timeLeft<=0&&(e.stopTimer(),e.handleTimeout())}),1e3))}},{key:"stopTimer",value:function(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)}},{key:"close",value:function(){this.stopTimer()}},{key:"updateTimerUI",value:function(){if(this.timerNumberEl&&(this.timerNumberEl.textContent=this.timeLeft,this.progressEl)){var e=this.timeLeft/this.timePerQuestion*100;this.progressEl.style.strokeDashoffset=100-e,this.timeLeft<=3?this.progressEl.style.stroke="red":this.progressEl.style.stroke="black"}}},{key:"handleTimeout",value:function(){var e=this.questions[this.quizSwiper.activeIndex];e&&(e.classList.contains("answered")||(e.classList.add("answered"),this.showImmediateFeedback?(e.querySelectorAll(".quiz-answer").forEach((function(e){var t="true"===e.dataset.isCorrect,n=e.querySelector(".quiz-icon"),r=n.querySelector(".icon-neutral"),i=n.querySelector(".icon-correct"),o=n.querySelector(".icon-wrong");r.classList.remove("hidden"),i.classList.add("hidden"),o.classList.add("hidden"),t?(r.classList.add("hidden"),i.classList.remove("hidden"),e.classList.add("is-correct")):e.classList.add("is-neutral")})),this.revealHelpTexts(e),this.revealAnswerExplanations(e),this.showResolution(e,!1)):this.advanceToNextOrResults(e)))}},{key:"handleSlideChange",value:function(){this.syncSlideInteractivity(),this.quizSwiper.activeIndex>=this.questions.length?(this.stopTimer(),this.timerEl&&(this.timerEl.textContent="",this.timerEl.classList.add("hidden"))):this.startTimer()}},{key:"handleAnswer",value:function(e){var t=e.closest(".quiz-question");if(!t.classList.contains("answered")){t.classList.add("answered");var n="true"===e.dataset.isCorrect;this.answersData.push({question_id:t.dataset.questionId,answer_id:e.dataset.answerId,is_correct:n}),n&&this.correct++,this.stopTimer(),this.showImmediateFeedback?(t.querySelectorAll(".quiz-answer").forEach((function(t){var n="true"===t.dataset.isCorrect,r=t.querySelector(".quiz-icon"),i=r.querySelector(".icon-neutral"),o=r.querySelector(".icon-correct"),s=r.querySelector(".icon-wrong");i.classList.remove("hidden"),o.classList.add("hidden"),s.classList.add("hidden"),t===e&&t.classList.add("is-selected"),n?(i.classList.add("hidden"),o.classList.remove("hidden"),t.classList.add("is-correct")):t===e?(i.classList.add("hidden"),s.classList.remove("hidden"),t.classList.add("is-wrong")):t.classList.add("is-neutral")})),this.revealHelpTexts(t),this.revealAnswerExplanations(t),this.showResolution(t,n)):this.advanceToNextOrResults(t)}}},{key:"advanceToNextOrResults",value:function(e){Number(e.dataset.questionIndex)===this.questions.length-1?this.showResults():this.nextQuestion()}},{key:"nextQuestion",value:function(e){null==e||e.blur(),this.quizSwiper.slideNext(0,!1)}},{key:"showResults",value:function(){this.stopTimer(),this.quizSwiper.slideNext(0,!1);var e=this.root.querySelector(".quiz-resolution-slide"),t=this.questions.length,n=this.correct,r=Math.round(n/t*100),i=e.querySelector(".js-correct-count"),o=e.querySelector(".js-total-count"),s=e.querySelector(".js-percentage");i&&(i.textContent=n),o&&(o.textContent=t),s&&(s.textContent=r);var a=e.querySelector("img[alt='Quiz good resolution']"),l=e.querySelector("img[alt='Quiz bad resolution']");a&&l&&(r>=50?(a.parentElement.classList.remove("hidden"),l.parentElement.classList.add("hidden")):(a.parentElement.classList.add("hidden"),l.parentElement.classList.remove("hidden")))}},{key:"revealHelpTexts",value:function(e){var t=e.querySelector(".quiz-help-text");t&&t.classList.remove("hidden")}},{key:"revealAnswerExplanations",value:function(e){e.querySelectorAll(".quiz-answer-explaining-text").forEach((function(e){e.classList.remove("hidden")}))}},{key:"scrollToResolution",value:function(e){var t=e.querySelector(".question-resolution");t&&requestAnimationFrame((function(){t.scrollIntoView({behavior:"smooth",block:"start"})}))}},{key:"showResolution",value:function(e,t){var n=e.querySelector(".question-resolution");if(n){var r=n.querySelector(".resolution-correct"),i=n.querySelector(".resolution-incorrect"),o=n.querySelector(".js-correct-count"),s=n.querySelector(".js-percentage");n.classList.remove("hidden"),t?(r.classList.remove("hidden"),i.classList.add("hidden")):(i.classList.remove("hidden"),r.classList.add("hidden")),o.textContent=this.correct;var a=Number(e.dataset.questionIndex)+1,l=Math.round(this.correct/a*100);s.textContent=l,this.scrollToResolution(e)}}}],t&&Vi(e.prototype,t),n&&Vi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Yi(e){if(!e)return!1;var t=e.querySelector("template.lazy-ad-template");if(!t)return!1;
1Array.from(e.children).forEach((function(e){"template"!==e.tagName.toLowerCase()&&e.remove()}));var n,r=t.content.cloneNode(!0);return e.appendChild(r),(n=e)&&n.querySelectorAll("script").forEach((function(e){if(e.parentNode){var t=document.createElement("script");Array.from(e.attributes).forEach((function(e){return t.setAttribute(e.name,e.value)})),t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}})),!0}document.querySelectorAll("[data-quiz]").forEach((function(e){var t=new Ii(e,{direction:"horizontal",allowTouchMove:!1,a11y:{enabled:!0,scrollOnFocus:!1},keyboard:{enabled:!1}}),n=new Xi(e,t);e.quizController=n;var r=new IntersectionObserver((function(e){e.forEach((function(e){if(e.isIntersecting){Yi(document.getElementById("quiz-halfpage-wrapper"));var n=t.slides[t.activeIndex];n&&Yi(n.querySelector(".quiz-rb-wrapper")),r.disconnect()}}))}),{threshold:.1});r.observe(e),t.on("slideChange",(function(){Yi(document.getElementById("quiz-halfpage-wrapper"));var e=this.slides[this.previousIndex];if(e){var t=e.querySelector(".quiz-rb-wrapper");t&&Array.from(t.children).forEach((function(e){"template"!==e.tagName.toLowerCase()&&e.remove()}))}var n=this.slides[this.activeIndex];n&&Yi(n.querySelector(".quiz-rb-wrapper"))}))}));__webpack_require__(4818),__webpack_require__(9245),__webpack_require__(9932),__webpack_require__(9063),__webpack_require__(891),__webpack_require__(4236),__webpack_require__(7724),__webpack_require__(502),__webpack_require__(8258),__webpack_require__(3056),__webpack_require__(1056),new Set;function Ki(){try{"undefined"!=typeof window&&void 0!==window.pp_gemius_hit&&void 0!==window.pp_gemius_identifier&&(window.pp_gemius_identifier=window.pp_gemius_identifier.replace("USED_",""),window.pp_gemius_hit(window.pp_gemius_identifier),window.pp_gemius_identifier="USED_"+window.pp_gemius_identifier.replace(/id=/g,"id=USED_"))}catch(e){}}function Ji(e){return Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ji(e)}function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach((function(t){eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ji(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ji(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ji(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var to=1e3,no=null,ro=null,io=null,oo=!1,so=!1,ao=new Ii(".sidebar-swiper",{spaceBetween:0,loop:window.loopGallery,navigation:{nextEl:".sidebar-swiper .swiper-button-next",prevEl:".sidebar-swiper .swiper-button-prev"},watchSlidesProgress:!0,watchSlidesVisibility:!0,mousewheel:!0}),lo={cssMode:!0,pagination:{el:".swiper-pagination",clickable:!0,type:"fraction",renderFraction:function(e,t){return'<div class="hide-on-tap"><span class="'+e+'"></span> / <span class="'+t+'"></span></div>'}},on:{click:function(){vo()}}},co=Zi(Zi({},{centeredSlides:!0,loop:window.loopGallery,keyboard:{enabled:!0}}),{},{pagination:{el:".swiper-pagination",clickable:!1,type:"custom",renderCustom:function(e,t,n){var r=so?null:mo(e);if(!r)return"";var i=fo(e);return'\n <div>\n <span class="swiper-pagination-current">'.concat(r,'</span>\n /\n <span class="swiper-pagination-total">').concat(i,"</span>\n </div>\n ")}},on:{slideChange:function(){var e,t=this.slides[this.activeIndex],n=null==t||null===(e=t.dataset)||void 0===e?void 0:e.imageIndex;so||(xo(this,!1),function(){if(!go)return;go.forEach((function(e){e.classList.remove("fade-out")}))}()),n&&(oo?so||(null!==io?function(e){if(null==e||!e.slides||(null==e?void 0:e.slides.length)<=0)return!1;var t=null==e?void 0:e.slides[null==e?void 0:e.activeIndex];return!!t&&!t.classList.contains("is-ad")}(this)&&!isNaN(n)&&n!==io&&(Ki(),io=n):io=n):io=n)},click:function(){vo()},slideChangeTransitionEnd:function(){oo&&!so&&function(e){var t=mo(e);if(!t)return;var n=new URL(window.location.href),r=n.pathname.replace(/\/\d+\/?$/,"").replace(/\/$/,""),i="".concat(r,"/").concat(t,"/").concat(n.search).concat(n.hash);window.history.replaceState({},"",i),no&&(clearTimeout(no),no=null);no=setTimeout((function(){var t,n=e.slides[e.activeIndex],r=null==n||null===(t=n.dataset)||void 0===t?void 0:t.imageIndex;r!==ro&&(ro=r,window._paq&&(_paq.push(["setCustomUrl",i]),_paq.push(["setDocumentTitle",document.title]),_paq.push(["trackPageView"])))}),2e3)}(this),window.dispatchEvent(new CustomEvent("gallery-slide-change",{})),function(){var e=window.neonAdo&&window.neonAdo.halfPageSlaveId,t=window.mainSwiper||uo;if(t&&t.slides&&t.slides.length>0){var n=t.slides[t.activeIndex];if(n&&n.classList.contains("is-ad"))return}if(e&&window.ado&&"function"==typeof ado.refresh){var r=Date.now();r-(window.neonAdo._lastHP||0)>=to&&(ado.refresh(e),window.neonAdo._lastHP=r)}}()}},mousewheel:!0,simulateTouch:!0,grabCursor:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}),uo=window.isGalleryPage?new Ii(window.isSinglePageGallery?".single_page_main_swiper":".swiper",window.isSinglePageGallery?co:lo):null;function fo(e){var t=e.slides;return Array.from(t).filter((function(e){return!e.classList.contains("is-ad")})).length}function ho(e){var t;if(!e)return null;var n=Number(null==e||null===(t=e.dataset)||void 0===t?void 0:t.imageIndex);return Number.isFinite(n)?n:null}function po(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uo;return t&&(t.slides[t.activeIndex]||(null===(e=t.el)||void 0===e?void 0:e.querySelector(".swiper-slide.swiper-slide-active")))||null}function mo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uo;if(null==e||!e.slides||(null==e?void 0:e.slides.length)<=0)return null;var t=po(e);if(!t)return null;var n=ho(t);return null===n?null:n+1}var go=document.querySelectorAll(".hide-on-tap");function vo(){go&&go.forEach((function(e){e.classList.toggle("fade-out")}))}var bo,yo,wo,Eo,So=document.getElementById("swiper-close");function xo(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0,r=function(){e.slides.length>0&&e?(t&&!oo&&function(e){var t=Array.from(e.slides||[]),n=window.location.pathname.match(/\/(\d+)\/?$/),r=n?parseInt(n[1],10):NaN;if(!isNaN(r)&&r>0){var i=t.find((function(e){var t;return Number(null==e||null===(t=e.dataset)||void 0===t?void 0:t.imageIndex)+1===r}));if(i){var o,s=t.indexOf(i);null!=e&&null!==(o=e.passedParams)&&void 0!==o&&o.loop?e.slideToLoop(i.dataset.swiperSlideIndex,0,!1):s>=0&&e.slideTo(s,0,!1)}}oo=!0}(e),function(e){var t,n,r,i=e.slides[e.activeIndex];if(i){var o=document.getElementById("mobileGalleryHomepageButton");!o||null!=uo&&null!==(t=uo.passedParams)&&void 0!==t&&t.loop||(mo(e)===fo(e)?o.classList.remove("hidden"):o.classList.add("hidden"));var s=i.dataset.imageSource,a=i.dataset.imageAgency,l=i.dataset.imagePhotographer,c=a&&l?l+" / "+a:null,u=document.querySelector("#gallerySidebarGallerySource_".concat(mo(e))),d=u&&"None"!==(null==u||null===(n=u.dataset)||void 0===n?void 0:n.gallerySource)?null==u||null===(r=u.dataset)||void 0===r?void 0:r.gallerySource:"",f=i.dataset.imageIndex,h=document.querySelector("#gallerySidebarImageDescription");
1u&&(u.innerText=c||l||s||d),h&&h.querySelectorAll("div[data-slide-index]").forEach((function(e){e.dataset.slideIndex===f?e.classList.remove("hidden"):e.classList.add("hidden")}));var p=document.querySelector("#galleryImageDescriptionBox");p&&(i.classList.contains("is-ad")?p.classList.add("hidden"):p.classList.remove("hidden"))}}(e)):n<20&&(n++,setTimeout(r,400))};r()}function _o(e){if(e&&"true"!==e.dataset.adLoaded){var t=e.querySelector("template.lazy-ad-template");if(t){e.dataset.adLoaded="true";var n=t.content.cloneNode(!0);n.querySelectorAll("script").forEach((function(e){var t=document.createElement("script");Array.from(e.attributes).forEach((function(e){return t.setAttribute(e.name,e.value)})),t.textContent=e.textContent,e.parentNode.replaceChild(t,e)})),e.appendChild(n),t.remove()}}}function To(e){if(e&&e.slides){var t=e.slides[e.activeIndex];t&&t.classList.contains("lazy-ad-container")&&_o(t)}}So&&So.addEventListener("click",(function(){window.location.href=window.swiperCloseUrl||"/"})),window.isSinglePageGallery&&(xo(uo,!0),bo=uo,wo=0,(Eo=function(){if(bo.slides.length>0&&bo){var e,t,n=function(e){if(null!==e){yo.forEach((function(e){e.classList.remove("gallery-sidebar-thumb-active"),e.removeAttribute("aria-current")}));var t=document.querySelector('.sidebar-swiper [data-image-index="'.concat(e,'"]'));if(t){t.classList.add("gallery-sidebar-thumb-active"),t.setAttribute("aria-current","true");var n=t.closest(".swiper-slide");if(n){var r=Array.from(ao.slides||[]).indexOf(n);r<0||ao.activeIndex!==r&&ao.slideTo(r,0,!1)}}}},r=function(){var e=document.getElementById("sidebar-halfpage-wrapper");if(e)if(function(){var e=window.mainSwiper;if(!e)return!1;var t=e.slides[e.activeIndex];if(!t)return!1;if(!t.classList.contains("is-ad"))return!1;var n=t.querySelector(".advertisement");return!!t.querySelector("template.lazy-ad-template")||!!n&&!n.classList.contains("ad-empty")}())e.style.display="none";else{var t="none"===getComputedStyle(e).display;e.style.display="","true"!==e.dataset.adLoaded?_o(e):t&&function(){var e=window.neonAdo&&window.neonAdo.halfPageSlaveId;if(e&&window.ado&&"function"==typeof ado.refresh){var t=Date.now();t-(window.neonAdo._lastHP||0)>=to&&(ado.refresh(e),window.neonAdo._lastHP=t)}}()}},i=function(){var e=window.mainSwiper;if(e){var t=Array.from(e.slides),n=t.filter((function(e){if(!e.classList.contains("is-ad"))return!1;var t=e.querySelector(".advertisement");return!(!t||!t.classList.contains("ad-empty"))}));if(n.length){var a=[];if(n.forEach((function(e){if(o.has(e)){var t=e.querySelector(".advertisement");t&&t.classList.contains("ad-empty")&&a.push(e),o.delete(e)}else o.add(e),setTimeout(i,s)})),a.length){var l,c=[];if(null==bo||null===(l=bo.passedParams)||void 0===l?void 0:l.loop)c=a.map((function(e){return e.dataset.swiperSlideIndex}));else{var u=a.map((function(e){return t.indexOf(e)})).filter((function(e){return e>=0}));u.length&&(e.removeSlide(u),e.update())}if(c.length){var d,f=null===(d=e.slides[e.activeIndex])||void 0===d||null===(d=d.dataset)||void 0===d?void 0:d.imageIndex;if(so=!0,e.removeSlide(c),e.update(),so=!1,!isNaN(f)&&f>=0){var h,p=e.slides.find((function(e){var t;return(null==e||null===(t=e.dataset)||void 0===t?void 0:t.imageIndex)===f}));p&&(null!=e&&null!==(h=e.params)&&void 0!==h&&h.loop?e.slideToLoop(p.dataset.swiperSlideIndex,0,!1):e.slideTo(e.slides.indexOf(p),0,!1))}}}r()}else r()}};yo=document.querySelectorAll(".sidebar-swiper [data-image-id]"),n(ho(po(bo))),yo.forEach((function(e){e.addEventListener("click",(function(){var t,n=e.getAttribute("data-image-index"),r=Array.from(window.mainSwiper.slides||[]),i=r.find((function(e){return e.dataset.imageIndex===n}));if(i)if(null!=bo&&null!==(t=bo.passedParams)&&void 0!==t&&t.loop){var o=r.indexOf(i);bo.slideTo(o,0,!1)}else bo.slideTo(r.indexOf(i))}))})),window.mainSwiper=bo;var o=new Set,s=700;setTimeout(i,800),document.addEventListener("ad-slot-hidden",i),document.addEventListener("ad-empty-updated",(function(){i()})),window.mainSwiper&&"function"==typeof window.mainSwiper.on&&window.mainSwiper.on("slideChangeTransitionEnd",(function(){i()})),bo.on("slideChange",(function(){var e=window.mainSwiper.slides[bo.activeIndex];if(e){var t=ho(e);null!==t&&n(t)}})),null===(e=bo.pagination)||void 0===e||e.render(),null===(t=bo.pagination)||void 0===t||t.update(
1)}else wo<20&&(wo++,setTimeout(Eo,400))})(),document.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("gallery-intro");if(e){e.addEventListener("wheel",(function(e){e.stopPropagation()}));var t=function(e){document.dispatchEvent(new CustomEvent("gallery-intro-toggled",{detail:e}))};t(!e.classList.contains("hidden")),null==e||e.addEventListener("click",(function(){e.classList.add("hidden"),t(!1)}))}})),document.addEventListener("gallery-intro-toggled",(function(e){var t,n;e.detail?null===(t=window.galleryDescriptionBox)||void 0===t||t.close():null===(n=window.galleryDescriptionBox)||void 0===n||n.open()})),function(){if(document.getElementById("imageDescriptionBox")){var e=document.createElement("style");e.id="gallery-sticky-offset",e.textContent="#imageDescriptionBox { bottom: ".concat("50px"," !important; }");var t=document.querySelector('[data-ad-slot="MobileSticky"]');if(t)i(t);else{var n=new MutationObserver((function(){var e=document.querySelector('[data-ad-slot="MobileSticky"]');e&&(n.disconnect(),i(e))}));n.observe(document.body,{childList:!0,subtree:!0})}}function r(){document.getElementById("gallery-sticky-offset")||document.head.appendChild(e)}function i(e){r(),new MutationObserver((function(){var t;"none"===window.getComputedStyle(e).display?(t=document.getElementById("gallery-sticky-offset"))&&t.remove():r()})).observe(e,{attributes:!0,attributeFilter:["style"]})}}(),uo&&(uo.on("slideChange",(function(){To(uo)})),To(uo)));__webpack_require__(9588),__webpack_require__(8334),__webpack_require__(2607),__webpack_require__(6064);var ko="totalcar_gallery_scroll_y_position";ir()||document.addEventListener("DOMContentLoaded",(function(){if(!window.isGalleryPage){document.querySelectorAll(".gallery").forEach((function(e){e.addEventListener("click",(function(){localStorage.setItem(ko,window.scrollY.toString())}))}));try{var e=localStorage.getItem(ko);null===e||isNaN(parseInt(e,10))||(localStorage.removeItem(ko),window.scrollTo({top:parseInt(e,10)}))}catch(e){}}}));__webpack_require__(4043),__webpack_require__(8354),__webpack_require__(6303),__webpack_require__(4959),__webpack_require__(2671),__webpack_require__(4338),__webpack_require__(1274),__webpack_require__(8377);var Co=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=window.innerHeight||1,o=i*n/100,s=i*r/100,a=e.getBoundingClientRect(),l=o-s+a.height||1;return t=(o-a.top)/l,Math.min(1,Math.max(0,t))};window.viewportProgress=function(e,t,n){return Co(e,t,n)};__webpack_require__(6021);Alpine.data("gallery",(function(){return{modifyLinks:function(e){if(this.isMobile){var t=e.dataset.galleryUrl;e.querySelectorAll("a[data-parent-id]").forEach((function(e){var n,r=Number((null===(n=e.dataset)||void 0===n?void 0:n.imageIndex)||1);e.href=t+r}))}},init:function(){this.isMobile=rr,this.modifyLinks(this.$el),this.$el.querySelectorAll("a[data-parent-id]").forEach((function(e){e.addEventListener("click",(function(){sessionStorage.setItem("gallery_back_url",window.location.href)}))}))}}}));__webpack_require__(806);function Ao(e){return function(e){if(Array.isArray(e))return Lo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Lo(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)?Lo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Oo=["transition-all","duration-300","ease-in-out"],Mo=["opacity-0","-translate-y-4","!-z-10"],Io=["opacity-100","translate-y-0","z-[10000]"];function Po(e,t){var n,r,i=t.add,o=void 0===i?[]:i,s=t.remove,a=void 0===s?[]:s;e&&((n=e.classList).remove.apply(n,Ao(a)),(r=e.classList).add.apply(r,Ao(o)))}function Ro(e){return function(e){if(Array.isArray(e))return Do(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Do(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)?Do(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Alpine.data("topNav",(function(){return{animation:Oo,hide:Mo,show:Io,isMobile:ir(),isIOS:or(),SCROLL_NAVBAR_START:300,SCROLL_NAVBAR_END:50,mainHeader:null,scrollHeader:null,topPromotion:null,hoverPromotion:null,topPromotionlink:null,hoverPromotionLink:null,linkURLIOS:null,linkURLAndroid:null,isHidden:!1,showMobileMenu:!1,scroll:function(){var e,t=document.documentElement.scrollTop||document.body.scrollTop,n=t>this.SCROLL_NAVBAR_START&&!this.isHidden,r=t<this.SCROLL_NAVBAR_END&&this.isHidden;if(n)this.mainHeader.classList.add("hidden"),null===(e=this.topPromotion)||void 0===e||e.classList.add("hidden"),this.showDisplay(),this.isHidden=!0;else if(r){var i;this.mainHeader.classList.remove("hidden"),null===(i=this.topPromotion)||void 0===i||i.classList.remove("hidden"),this.hideDisplay(),this.isHidden=!1}},toggleMobileMenu:function(){this.showMobileMenu=!this.showMobileMenu},hideDisplay:function(){this.hideHoverPromotion(),Po(this.scrollHeader,{remove:this.show,add:[].concat(Ao(this.animation),Ao(this.hide))})},showDisplay:function(){this.isMobile&&Po(this.hoverPromotion,{remove:this.hide,add:[].concat(Ao(this.animation),Ao(this.show))}),Po(this.scrollHeader,{remove:this.hide,add:[].concat(Ao(this.animation),Ao(this.show))})},hideHoverPromotion:function(){this.isMobile&&Po(this.hoverPromotion,{remove:this.show,add:[].concat(Ao(this.animation),Ao(this.hide))})},showTopPromotion:function(){this.isMobile&&Po(this.topPromotion,{remove:this.hide,add:[].concat(Ao(this.animation),Ao(this.show))})},init:function(){if(this.mainHeader=this.$refs.mainHeader,this.scrollHeader=this.$refs.scrollHeader,this.topPromotion=this.$refs.topPromotion||null,this.hoverPromotion=this.$refs.hoverPromotion||null,this.linkURLIOS=this.$el.dataset.linkIos||null,this.linkURLAndroid=this.$el.dataset.linkAndroid||null,this.topPromotionLink=this.$refs.topPromotionLink||null,this.hoverPromotionLink=this.$refs.hoverPromotionLink||null,this.isMobile){var e=this.isIOS?this.linkURLIOS:this.linkURLAndroid;this.topPromotionLink&&(this.topPromotionLink.href=e),this.hoverPromotionLink&&(this.hoverPromotionLink.href=e)}this.showTopPromotion(),this.scroll()}}}));var No=["transition-all","duration-300","ease-in-out"],Ho=["opacity-0","-translate-y-4","!-z-10"],qo=["opacity-100","translate-y-0","z-[10000]"],zo=["translate-x-full"],$o=["translate-x-0"];function Fo(e,t){var n,r,i=t.add,o=void 0===i?[]:i,s=t.remove,a=void 0===s?[]:s;e&&((n=e.classList).remove.apply(n,Ro(a)),(r=e.classList).add.apply(r,Ro(o)))}Alpine.data("headerNav",(function(){return{animation:No,hide:Ho,show:qo,hamburger_hide:zo,hamburger_show:$o,isMobile:ir(),isIOS:or(),SCROLL_NAVBAR_START:300,SCROLL_NAVBAR_END:50,mainHeader:null,scrollHeader:null,topPromotion:null,hoverPromotion:null,topPromotionlink:null,hoverPromotionLink:null,linkURLIOS:null,linkURLAndroid:null,isHidden:!1,showMobileMenu:!1,hamburgerMenuSection:null,setScrollable:function(){document.body.style.overflow="",document.body.style.touchAction=""},setUnScrollable:function(){document.body.style.overflow="hidden",document.body.style.touchAction="none"},scroll:function(){var e,t=document.documentElement.scrollTop||document.body.scrollTop,n=t>this.SCROLL_NAVBAR_START&&!this.isHidden,r=t<this.SCROLL_NAVBAR_END&&this.isHidden;if(n)this.mainHeader.classList.add("hidden"),null===(e=this.topPromotion)||void 0===e||e.classList.add("hidden"),this.showDisplay(),this.isHidden=!0;else if(r){var i;this.mainHeader.classList.remove("hidden"),null===(i=this.topPromotion)||void 0===i||i.classList.remove("hidden"),this.hideDisplay(),this.isHidden=!1}},toggleMobileMenu:function(){this.showMobileMenu?Fo(this.hamburgerMenuSection,{remove:this.hamburger_show,add:Ro(this.hamburger_hide)}):Fo(this.hamburgerMenuSection,{remove:this.hamburger_hide,add:Ro(this.hamburger_show)}),this.showMobileMenu=!this.showMobileMenu,this.showMobileMenu?this.setUnScrollable():this.setScrollable()},hideDisplay:function(){this.hideHoverPromotion(),Fo(this.scrollHeader,{remove:this.show,add:[].concat(Ro(this.animation),Ro(this.hide))})},showDisplay:function(){this.isMobile&&Fo(this.hoverPromotion,{remove:this.hide,add:[].concat(Ro(this.animation),Ro(this.show))}),Fo(this.scrollHeader,{remove:this.hide,add:[].concat(Ro(this.animation),Ro(this.show))})},hideHoverPromotion:function(){this.isMobile&&Fo(this.hoverPromotion,{remove:this.show,add:[].concat(Ro(this.animation),Ro(this.hide))})},showTopPromotion:function(){this.isMobile&&Fo(this.topPromotion,{remove:this.hide,add:[].concat(Ro(this.animation),Ro(this.show))})},init:function(){if(this.mainHeader=this.$refs.mainHeader,this.scrollHeader=this.$refs.scrollHeader,this.topPromotion=this.$refs.topPromotion||null,this.hoverPromotion=this.$refs.hoverPromotion||null,this.linkURLIOS=this.$el.dataset.linkIos||null,this.linkURLAndroid=this.$el.dataset.linkAndroid||null,this.topPromotionLink=this.$refs.topPromotionLink||null,this.hoverPromotionLink=this.$refs.hoverPromotionLink||null,this.hamburgerMenuSection=this.$refs.hamburgerMenuSection||null,this.isMobile){var e=this.isIOS?this.linkURLIOS:this.linkURLAndroid;this.topPromotionLink&&(this.topPromotionLink.href=e),this.hoverPromotionLink&&(this.hoverPromotionLink.href=e)}this.showTopPromotion(),this.scroll()}}}));__webpack_require__(4107),__webpack_require__(7394),__webpack_require__(5347),__webpack_require__(973),__webpack_require__(3164),__webpack_require__(3860);function jo(e,t,n){return t=Vo(t),function(e,t){if(t&&("object"==cs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wo()?Reflect.construct(t,n||[],Vo(e).constructor):t.apply(e,n))}function Bo(e){var t="function"==typeof Map?new Map:void 0;return Bo=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Wo())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Uo(i,n.prototype),i}(e,arguments,Vo(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Uo(n,e)},Bo(e)}function Wo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wo=function(){return!!e})()}
vendor: 6,155 bytes, line 1
1function Uo(e,t){return Uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uo(e,t)}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vo(e)}function Go(e){return function(e){if(Array.isArray(e))return Jo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ko(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ko(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Yo(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 r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||Ko(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.")}()}function Ko(e,t){if(e){if("string"==typeof e)return Jo(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)?Jo(e,t):void 0}}function Jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function es(){var e=ss(),t=e.m(es),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function o(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,ts(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(es=function(){return{wrap:function(t,n,r,i){return e.w(o(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new ls(e,t)},AsyncIterator:os,async:function(e,t,n,i,s){return(r(t)?is:rs)(o(e),t,n,i,s)},keys:ns,values:ts}})()}function ts(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(cs(e)+" is not iterable")}function ns(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function rs(e,t,n,r,i){var o=is(e,t,n,r,i);return o.next().then((function(e){return e.done?e.value:o.next()}))}function is(e,t,n,r,i){return new os(ss().w(e,t,n,r),i||Promise)}function os(e,t){function n(r,i,o,s){try{var a=e[r](i),l=a.value;return l instanceof ls?t.resolve(l.v).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){a.value=e,o(a)}),(function(e){return n("throw",e,o,s)}))}catch(e){s(e)}}var r;this.next||(as(os.prototype),as(os.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),as(this,"_invoke",(function(e,i,o){function s(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(s,s):s()}),!0)}function ss(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return as(c,"_invoke",function(n,r,i){var o,a,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,a=0,l=e,f.n=n,s}};function h(n,r){for(a=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(a=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),a=u,l=p;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(f.n=-1),h(a,l)):f.n=l:f.v=l);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(as(t={},r,(function(){return this})),t),d=c.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,as(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,as(d,"constructor",c),as(c,"constructor",l),l.displayName="GeneratorFunction",as(c,i,"GeneratorFunction"),as(d),as(d,i,"Generator"),as(d,r,(function(){return this})),as(d,"toString",(function(){return"[object Generator]"})),(ss=function(){return{w:o,m:f}})()}function as(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}as=function(e,t,n,r){function o(t,n){as(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},as(e,t,n,r)}function ls(e,t){this.v=e,this.k=t}function cs(e){return cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(e)}function us(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function ds(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){us(o,r,i,s,a,"next",e)}function a(e){us(o,r,i,s,a,"throw",e)}s(void 0)}))}}function fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vs(r.key),r)}}function hs(e,t,n){return t&&fs(e.prototype,t),n&&fs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ps(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ms(e,t){ys(e,t),t.add(e)}function gs(e,t,n){return(t=vs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vs(e){var t=function(e,t){if("object"!=cs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cs(t)?t:t+""}function bs(e,t,n){ys(e,t),t.set(e,n)}function ys(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ws(e,t,n){return e.set(Ss(e,t),n),n}function Es(e,t){return e.get(Ss(e,t))}function Ss(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var xs=new WeakMap,_s=new WeakMap,Ts=new WeakMap,ks=new WeakMap,Cs=new WeakMap,As=new WeakMap,Ls=new WeakMap,Os=new WeakMap,Ms=new WeakSet,Is=hs((function e(t){var n=this;if(ps(this,e),ms(this,Ms),bs(this,xs,[]),bs(this,_s,void 0),bs(this,Ts,!0),bs(this,ks,void 0),bs(this,Cs,Ss(Ms,this,la).call(this,console.info)),bs(this,As,Ss(Ms,this,la).call(this,console.warn)),bs(this,Ls,{enable:!0,callbackList:[],interval:5}),bs(this,Os,void 0),gs(this,"didInitialize",!1),gs(this,"authenticated",!1),gs(this,"loginRequired",!1),gs(this,"responseMode","fragment"),gs(this,"responseType","code"),gs(this,"flow","standard"),gs(this,"timeSkew",null),gs(this,"redirectUri",void 0),gs(this,"silentCheckSsoRedirectUri",void 0),gs(this,"silentCheckSsoFallback",!0),gs(this,"pkceMethod","S256"),gs(this,"enableLogging",!1),gs(this,"logoutMethod","GET"),gs(this,"scope",void 0),gs(this,"messageReceiveTimeout",1e4),gs(this,"idToken",void 0),gs(this,"idTokenParsed",void 0),gs(this,"token",void 0),gs(this,"tokenParsed",void 0),gs(this,"refreshToken",void 0),gs(this,"refreshTokenParsed",void 0),gs(this,"clientId",void 0),gs(this,"sessionId",void 0),gs(this,"subject",void 0),gs(this,"authServerUrl",void 0),gs(this,"realm",void 0),gs(this,"realmAcce
1ss",void 0),gs(this,"resourceAccess",void 0),gs(this,"profile",void 0),gs(this,"userInfo",void 0),gs(this,"endpoints",void 0),gs(this,"tokenTimeoutHandle",void 0),gs(this,"onAuthSuccess",void 0),gs(this,"onAuthError",void 0),gs(this,"onAuthRefreshSuccess",void 0),gs(this,"onAuthRefreshError",void 0),gs(this,"onTokenExpired",void 0),gs(this,"onAuthLogout",void 0),gs(this,"onReady",void 0),gs(this,"onActionUpdate",void 0),gs(this,"init",ds(es().mark((function e(){var t,r,i,o=arguments;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.length>0&&void 0!==o[0]?o[0]:{},!n.didInitialize){e.next=3;break}throw new Error("A 'Keycloak' instance can only be initialized once.");case 3:if(n.didInitialize=!0,ws(ks,n,ha()),i=["default","cordova","cordova-native"],"string"==typeof r.adapter&&i.includes(r.adapter)?ws(_s,n,Ss(Ms,n,Ps).call(n,r.adapter)):"object"===cs(r.adapter)?ws(_s,n,r.adapter):"Cordova"in window||"cordova"in window?ws(_s,n,Ss(Ms,n,Ps).call(n,"cordova")):ws(_s,n,Ss(Ms,n,Ps).call(n,"default")),void 0!==r.useNonce&&ws(Ts,n,r.useNonce),void 0!==r.checkLoginIframe&&(Es(Ls,n).enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(Es(Ls,n).interval=r.checkLoginIframeInterval),"login-required"===r.onLoad&&(n.loginRequired=!0),!r.responseMode){e.next=17;break}if("query"!==r.responseMode&&"fragment"!==r.responseMode){e.next=16;break}n.responseMode=r.responseMode,e.next=17;break;case 16:throw new Error("Invalid value for responseMode");case 17:if(!r.flow){e.next=29;break}e.t0=r.flow,e.next="standard"===e.t0?21:"implicit"===e.t0?23:"hybrid"===e.t0?25:27;break;case 21:return n.responseType="code",e.abrupt("break",28);case 23:return n.responseType="id_token token",e.abrupt("break",28);case 25:return n.responseType="code id_token token",e.abrupt("break",28);case 27:throw new Error("Invalid value for flow");case 28:n.flow=r.flow;case 29:if("number"==typeof r.timeSkew&&(n.timeSkew=r.timeSkew),r.redirectUri&&(n.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(n.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),"boolean"==typeof r.silentCheckSsoFallback&&(n.silentCheckSsoFallback=r.silentCheckSsoFallback),void 0===r.pkceMethod){e.next=37;break}if("S256"===r.pkceMethod||!1===r.pkceMethod){e.next=36;break}throw new TypeError("Invalid value for pkceMethod', expected 'S256' or false but got ".concat(r.pkceMethod,"."));case 36:n.pkceMethod=r.pkceMethod;case 37:return"boolean"==typeof r.enableLogging&&(n.enableLogging=r.enableLogging),"POST"===r.logoutMethod&&(n.logoutMethod="POST"),"string"==typeof r.scope&&(n.scope=r.scope),"number"==typeof r.messageReceiveTimeout&&r.messageReceiveTimeout>0&&(n.messageReceiveTimeout=r.messageReceiveTimeout),e.next=43,Ss(Ms,n,Hs).call(n);case 43:return e.next=45,Ss(Ms,n,Bs).call(n);case 45:return e.next=47,Ss(Ms,n,Us).call(n,r);case 47:return null===(t=n.onReady)||void 0===t||t.call(n,n.authenticated),e.abrupt("return",n.authenticated);case 49:case"end":return e.stop()}}),e)})))),gs(this,"login",(function(e){return Es(_s,n).login(e)})),gs(this,"createLoginUrl",function(){var e=ds(es().mark((function e(t){var r,i,o,s,a,l,c,u,d,f;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=ca(),i=ca(),o=Es(_s,n).redirectUri(t),s={state:r,nonce:i,redirectUri:o,loginOptions:t},null!=t&&t.prompt&&(s.prompt=t.prompt),a="register"===(null==t?void 0:t.action)?n.endpoints.register():n.endpoints.authorize(),l=(null==t?void 0:t.scope)||n.scope,(c=l?l.split(" "):[]).includes("openid")||c.unshift("openid"),l=c.join(" "),u=new URLSearchParams([["client_id",n.clientId],["redirect_uri",o],["state",r],["response_mode",n.responseMode],["response_type",n.responseType],["scope",l]]),Es(Ts,n)&&u.append("nonce",i),null!=t&&t.prompt&&u.append("prompt",t.prompt),"number"==typeof(null==t?void 0:t.maxAge)&&u.append("max_age",t.maxAge.toString()),null!=t&&t.loginHint&&u.append("login_hint",t.loginHint),null!=t&&t.idpHint&&u.append("kc_idp_hint",t.idpHint),null!=t&&t.action&&"register"!==t.action&&u.append("kc_action",t.action),null!=t&&t.locale&&u.append("ui_locales",t.locale),null!=t&&t.acr&&u.a
1ppend("claims",(h=t.acr,JSON.stringify({id_token:{acr:h}}))),null!=t&&t.acrValues&&u.append("acr_values",t.acrValues),!n.pkceMethod){e.next=34;break}return e.prev=21,d=function(e,t){for(var n=function(e){if("undefined"==typeof crypto||void 0===crypto.getRandomValues)throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(e))}(e),r=new Array(e),i=0;i<e;i++)r[i]=t.charCodeAt(n[i]%t.length);return String.fromCharCode.apply(null,r)}(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"),e.next=25,ua(n.pkceMethod,d);case 25:f=e.sent,s.pkceCodeVerifier=d,u.append("code_challenge",f),u.append("code_challenge_method",n.pkceMethod),e.next=34;break;case 31:throw e.prev=31,e.t0=e.catch(21),new Error("Failed to generate PKCE challenge.",{cause:e.t0});case 34:return Es(ks,n).add(s),e.abrupt("return","".concat(a,"?").concat(u.toString()));case 36:case"end":return e.stop()}var h}),e,null,[[21,31]])})));return function(t){return e.apply(this,arguments)}}()),gs(this,"logout",(function(e){return Es(_s,n).logout(e)})),gs(this,"createLogoutUrl",(function(e){var t,r=null!==(t=null==e?void 0:e.logoutMethod)&&void 0!==t?t:n.logoutMethod,i=n.endpoints.logout();if("POST"===r)return i;var o=new URLSearchParams([["client_id",n.clientId],["post_logout_redirect_uri",Es(_s,n).redirectUri(e)]]);return n.idToken&&o.append("id_token_hint",n.idToken),"".concat(i,"?").concat(o.toString())})),gs(this,"register",(function(e){return Es(_s,n).register(e)})),gs(this,"createRegisterUrl",(function(e){return n.createLoginUrl(Zo(Zo({},e),{},{action:"register"}))})),gs(this,"createAccountUrl",(function(e){var t=Ss(Ms,n,aa).call(n);if(!t)throw new Error("Unable to create account URL, make sure the adapter is not configured using a generic OIDC provider.");var r=new URLSearchParams([["referrer",n.clientId],["referrer_uri",Es(_s,n).redirectUri(e)]]);return"".concat(t,"/account?").concat(r.toString())})),gs(this,"accountManagement",(function(){return Es(_s,n).accountManagement()})),gs(this,"hasRealmRole",(function(e){var t=n.realmAccess;return!!t&&t.roles.indexOf(e)>=0})),gs(this,"hasResourceRole",(function(e,t){if(!n.resourceAccess)return!1;var r=n.resourceAccess[t||n.clientId];return!!r&&r.roles.indexOf(e)>=0})),gs(this,"loadUserProfile",ds(es().mark((function e(){var t,r,i;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Ss(Ms,n,aa).call(n)){e.next=3;break}throw new Error("Unable to load user profile, make sure the adapter is not configured using a generic OIDC provider.");case 3:return r="".concat(t,"/account"),e.next=6,qa(r,{headers:[ja(n.token)]});case 6:return i=e.sent,e.abrupt("return",n.profile=i);case 8:case"end":return e.stop()}}),e)})))),gs(this,"loadUserInfo",ds(es().mark((function e(){var t,r;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.endpoints.userinfo(),e.next=3,qa(t,{headers:[ja(n.token)]});case 3:return r=e.sent,e.abrupt("return",n.userInfo=r);case 5:case"end":return e.stop()}}),e)})))),gs(this,"isTokenExpired",(function(e){if(!n.tokenParsed||!n.refreshToken&&"implicit"!==n.flow)throw new Error("Not authenticated");if(null==n.timeSkew)return Es(Cs,n).call(n,"[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;if("number"!=typeof n.tokenParsed.exp)return!1;var t=n.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+n.timeSkew;if(e){if(isNaN(e))throw new Error("Invalid minValidity");t-=e}return t<0})),gs(this,"updateToken",function(){var e=ds(es().mark((function e(t){var r,i,o,s,a,l,c,u,d,f,h,p;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.refreshToken){e.next=2;break}throw new Error("Unable to update token, no refresh token available.");case 2:if(t=t||5,!Es(Ls,n).enable){e.next=6;break}return e.next=6,Ss(Ms,n,Ys).call(n);case 6:if(r=!1,-1===t?(r=!0,Es(Cs,n).call(n,"[KEYCLOAK] Refreshing token: forced refresh")):n.tokenParsed&&!n.isTokenExpired(t)||(r=!0,Es(Cs,n).call(n,"[KEYCLOAK] Refreshing token: token expired")),r){e.next=10;break}return e.abrupt("return",!1);case 10:if(i=Promise.withResolvers(),o=i.promise,s=i.resolve,a=i.reject,Es(xs,n).push({resolve:s,reject:a}),1!==Es(xs,n).length){e.next=32;break}return l=n.endpoints.token(),c=(new Date).getTime(),e.prev=15,e.next=18,Na(l,n.refreshToken,n.clientId);case 18:for(d=e.sent,Es(Cs,n).call(n,"[KEYCLOAK] Token refreshed"),c=(c+(new Date).getTime())/2,Ss(Ms,n,sa).call(n,d.access_token,d.refresh_token,d.id_token,c),null===(u=n.onAuthRefreshSuccess)||void 0===u||u.call(n),f=Es(xs,n).pop();null!=f;f=Es(xs,n).pop())f.resolve(!0);e.next=32;break;
1case 26:for(e.prev=26,e.t0=e.catch(15),Es(As,n).call(n,"[KEYCLOAK] Failed to refresh token"),e.t0 instanceof Wa&&400===e.t0.response.status&&n.clearToken(),null===(h=n.onAuthRefreshError)||void 0===h||h.call(n),p=Es(xs,n).pop();null!=p;p=Es(xs,n).pop())p.reject(e.t0);case 32:return e.next=34,o;case 34:return e.abrupt("return",e.sent);case 35:case"end":return e.stop()}}),e,null,[[15,26]])})));return function(t){return e.apply(this,arguments)}}()),gs(this,"clearToken",(function(){var e;n.token&&(Ss(Ms,n,sa).call(n),null===(e=n.onAuthLogout)||void 0===e||e.call(n),n.loginRequired&&n.login())})),"string"!=typeof t&&!La(t))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(La(t))for(var r=0,i=("oidcProvider"in t?["clientId"]:["url","realm","clientId"]);r<i.length;r++){var o=i[r];if(!(o in t))throw new Error("The configuration object is missing the required '".concat(o,"' property."))}globalThis.isSecureContext||Es(As,this).call(this,"[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.\nContinuing to run your application insecurely will lead to unexpected behavior and breakage.\n\nFor more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"),ws(Os,this,t)}));function Ps(e){if("default"===e)return Ss(Ms,this,Rs).call(this);if("cordova"===e)return Es(Ls,this).enable=!1,Ss(Ms,this,Ds).call(this);if("cordova-native"===e)return Es(Ls,this).enable=!1,Ss(Ms,this,Ns).call(this);throw new Error("invalid adapter type: "+e)}function Rs(){var e,t,n,r,i=this,o=function(e){return(null==e?void 0:e.redirectUri)||i.redirectUri||globalThis.location.href};return{login:(r=ds(es().mark((function e(t){return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=window.location,e.next=3,i.createLoginUrl(t);case 3:return e.t1=e.sent,e.t0.assign.call(e.t0,e.t1),e.next=7,new Promise((function(){}));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}),logout:(n=ds(es().mark((function e(t){var n,r,s,a,l,c,u,d,f;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("GET"!==(null!==(n=null==t?void 0:t.logoutMethod)&&void 0!==n?n:i.logoutMethod)){e.next=4;break}return window.location.replace(i.createLogoutUrl(t)),e.abrupt("return");case 4:for((r=document.createElement("form")).setAttribute("method","POST"),r.setAttribute("action",i.createLogoutUrl(t)),r.style.display="none",s={id_token_hint:i.idToken,client_id:i.clientId,post_logout_redirect_uri:o(t)},a=0,l=Object.entries(s);a<l.length;a++)c=Yo(l[a],2),u=c[0],d=c[1],(f=document.createElement("input")).setAttribute("type","hidden"),f.setAttribute("name",u),f.setAttribute("value",d),r.appendChild(f);document.body.appendChild(r),r.submit();case 12:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)}),register:(t=ds(es().mark((function e(t){return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=window.location,e.next=3,i.createRegisterUrl(t);case 3:return e.t1=e.sent,e.t0.assign.call(e.t0,e.t1),e.next=7,new Promise((function(){}));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),accountManagement:(e=ds(es().mark((function e(){var t;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(t=i.createAccountUrl())){e.next=5;break}window.location.href=t,e.next=6;break;case 5:throw new Error("Not supported by the OIDC server");case 6:return e.next=8,new Promise((function(){}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),redirectUri:o}}function Ds(){var e,t,n,r,i=this,o=function(e,t,n){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,n):window.open(e,t,n)},s=function(e){var t=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(t,n){return t[n]=e.cordovaOptions[n],t}),{}):{}}(e);return t.location="no",e&&"none"===e.prompt&&(t.hidden="yes"),function(e){return Object.keys(e).reduce((function(t,n){return t.push(n+"="+e[n]),t}),[]).join(",")}(t)},a=function(){return i.redirectUri||"http://localhost"};return{login:(r=ds(es().mark((function e(t){var n,r,l,c,u,d;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=function(){u=!0,l.close()},n=s(t),e.next=4,i.createLoginUrl(t);case 4:return r=e.sent,l=o(r,"_blank",n),c=!1,u=!1,e.next=11,new Promise((function(e,t){l.addEventListener("loadstart",function(){var n=ds(es().mark((function n(r){var o;return es().wrap((function(n){for(;;
1)switch(n.prev=n.next){case 0:if(0!==r.url.indexOf(a())){n.next=13;break}return o=Ss(Ms,i,Zs).call(i,r.url),c=!0,d(),n.prev=4,n.next=7,Ss(Ms,i,na).call(i,o);case 7:e(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(4),t(n.t0);case 13:case"end":return n.stop()}}),n,null,[[4,10]])})));return function(e){return n.apply(this,arguments)}}()),l.addEventListener("loaderror",function(){var n=ds(es().mark((function n(r){var o;return es().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c){n.next=18;break}if(0!==r.url.indexOf(a())){n.next=16;break}return o=Ss(Ms,i,Zs).call(i,r.url),c=!0,d(),n.prev=5,n.next=8,Ss(Ms,i,na).call(i,o);case 8:e(),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(5),t(n.t0);case 14:n.next=18;break;case 16:t(new Error("Unable to process login.")),d();case 18:case"end":return n.stop()}}),n,null,[[5,11]])})));return function(e){return n.apply(this,arguments)}}()),l.addEventListener("exit",(function(e){u||t(new Error("User closed the login window."))}))}));case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}),logout:(n=ds(es().mark((function e(t){var n,r,s;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.createLogoutUrl(t),r=o(n,"_blank","location=no,hidden=yes,clearcache=yes"),s=!1,r.addEventListener("loadstart",(function(e){0===e.url.indexOf(a())&&r.close()})),r.addEventListener("loaderror",(function(e){0===e.url.indexOf(a())||(s=!0),r.close()})),e.next=7,new Promise((function(e,t){r.addEventListener("exit",(function(){s?t(new Error("User closed the login window.")):(i.clearToken(),e())}))}));case 7:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)}),register:(t=ds(es().mark((function e(t){var n,r,l,c;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.createRegisterUrl();case 2:return n=e.sent,r=s(t),l=o(n,"_blank",r),c=new Promise((function(e,t){l.addEventListener("loadstart",function(){var n=ds(es().mark((function n(r){var o;return es().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(0!==r.url.indexOf(a())){n.next=12;break}return l.close(),o=Ss(Ms,i,Zs).call(i,r.url),n.prev=3,n.next=6,Ss(Ms,i,na).call(i,o);case 6:e(),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(3),t(n.t0);case 12:case"end":return n.stop()}}),n,null,[[3,9]])})));return function(e){return n.apply(this,arguments)}}())})),e.next=8,c;case 8:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),accountManagement:(e=ds(es().mark((function e(){var t,n;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(t=i.createAccountUrl())){e.next=6;break}(n=o(t,"_blank","location=no")).addEventListener("loadstart",(function(e){0===e.url.indexOf(a())&&n.close()})),e.next=7;break;case 6:throw new Error("Not supported by the OIDC server");case 7:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),redirectUri:function(){return a()}}}function Ns(){var e,t,n,r,i=this;return{login:(r=ds(es().mark((function e(t){var n;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.createLoginUrl(t);case 2:return n=e.sent,e.next=5,new Promise((function(e,t){universalLinks.subscribe("keycloak",function(){var n=ds(es().mark((function n(r){var o;return es().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),o=Ss(Ms,i,Zs).call(i,r.url),n.prev=3,n.next=6,Ss(Ms,i,na).call(i,o);case 6:e(),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(3),t(n.t0);case 12:case"end":return n.stop()}}),n,null,[[3,9]])})));return function(e){return n.apply(this,arguments)}}()),window.cordova.plugins.browsertab.openUrl(n)}));case 5:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}),logout:(n=ds(es().mark((function e(t){var n;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.createLogoutUrl(t),e.next=3,new Promise((function(e){universalLinks.subscribe("keycloak",(function(){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),i.clearToken(),e()})),window.cordova.plugins.browsertab.openUrl(n)}));case 3:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)}),register:(t=ds(es().mark((function e(t){var n;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.createRegisterUrl(t);case 2:return n=e.sent,e.next=5,new Promise((function(e,t){universalLinks.subscribe("keycloak",function(){var n=ds(es().mark((function n(r){var o;return es().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),o=Ss(Ms,i,Zs).call(i,r.url),n.prev=3,n.next=6,Ss(Ms,i,na).call(i,o);case 6:e(),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(3),t(n.t0);case 12:case"end":return n.stop()}}),n,null,[[3,9]])})));return function(e){return n.apply(this,arguments)}}()),window.cordova.plugins.browsertab.openUrl(n)}));case 5:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),accountManagement:(e=ds(es().mark((function e(){var t;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(t=i.createAccountUrl())){e.next=5;break}window.cordova.plugins.browsertab.openUrl(t),e.next=6;break;case 5:throw new Error("Not supported by the OIDC server");case 6:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:i.redirectUri?i.redirectUri:"http://localhost"}}}function Hs(){return qs.apply(this,arguments)}function qs(){return(qs=ds(es().mark((function e(){var t;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof Es(Os,this)){e.next=10;break}return e.next=3,Oa(Es(Os,this));case 3:t=e.sent,this.authServerUrl=t["auth-server-url"],this.realm=t.realm,this.clientId=t.resource,Ss(Ms,this,zs).call(this),e.next=19;break;case 10:if(this.clientId=Es(Os,this).clientId,!("oidcProvider"in Es(Os,this))){e.next=16;break}return e.next=14,Ss(Ms,this,$s).call(this,Es(Os,this).oidcProvider);case 14:e.next=19;break;case 16:this.authServerUrl=Es(Os,this).url,this.realm=Es(Os,this).realm,Ss(Ms,this,zs).call(this);case 19:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function zs(){var e=this;this.endpoints={authorize:function(){return Ss(Ms,e,aa).call(e)+"/protocol/openid-connect/auth"},token:function(){return Ss(Ms,e,aa).call(e)+"/protocol/openid-connect/token"},logout:function(){return Ss(Ms,e,aa).call(e)+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return Ss(Ms,e,aa).call(e)+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return Ss(Ms,e,aa).call(e)+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return Ss(Ms,e,aa).call(e)+"/protocol/openid-connect/registrations"},userinfo:function(){return Ss(Ms,e,aa).call(e)+"/protocol/openid-connect/userinfo"}}}function $s(e){return Fs.apply(this,arguments)}function Fs(){return(Fs=ds(es().mark((function e(t){var n,r;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof t){e.next=8;break}return n="".concat(Ba(t),"/.well-known/openid-configuration"),e.next=4,Ia(n);case 4:r=e.sent,Ss(Ms,this,js).call(this,r),e.next=9;break;case 8:Ss(Ms,this,js).call(this,t);case 9:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function js(e){this.endpoints={authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw new Error("Not supported by the OIDC server");return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw new Error("Not supported by the OIDC server");return e.check_session_iframe},register:function(){throw new Error('Redirection to "Register user" page not supported in standard OIDC mode')},userinfo:function(){if(!e.userinfo_endpoint)throw new Error("Not supported by the OIDC server");return e.userinfo_endpoint}}}function Bs(){return Ws.apply(this,arguments)}function Ws(){return(Ws=ds(es().mark((function e(){var t,n,r=this;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((Es(Ls,this).enable||this.silentCheckSsoRedirectUri)&&"function"==typeof this.endpoints.thirdPartyCookiesIframe){e.next=2;break}return e.abrupt("return");case 2:return(t=document.createElement("iframe")).setAttribute("src",this.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t),n=new Promise((function(e){var n=function(i){t.contentWindow===i.source&&("supported"!==i.data&&"unsupported"!==i.data||("unsupported"===i.data&&(Es(As,r).call(r,"[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"),Es(Ls,r).enable=!1,r.silentCheckSsoFallback&&(r.silentCheckSsoRedirectUri=void 0)),document.body.removeChild(t),window.removeEventListener("message",n),e()))};window.addEventListener("message",n,!1)})),e.next=11,fa(n,this.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.");case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Us(e){return Vs.apply(this,arguments)}function Vs(){return Vs=ds(es().mark((function e(t){var n,r,i,o,s,a,l=this;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=Ss(Ms,this,Zs).call(this,window.location.href))&&n.newUrl&&window.history.replaceState(window.history.state,"",n.newUrl),!n||!n.valid){e.next=8;break}return e.next=5,Ss(Ms,this,Gs).call(this);case 5:return e.next=7,Ss(Ms,this,na).call(this,n);case 7:return e.abrupt("return");case 8:if(r=function(){var e=ds(es().mark((function e(n){var r;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},n||(r.prompt="none"),t.locale&&(r.locale=t.locale),e.next=5,l.login(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i=function(){var e=ds(es().mark((function e(){return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.onLoad,e.next="check-sso"===e.t0?3:"login-required"===e.t0?27:30;break;case 3:if(!Es(Ls,l).enable){e.next=19;break}return e.next=6,Ss(Ms,l,Gs).call(l);case 6:return e.next=8,Ss(Ms,l,Ys).call(l);case 8:if(e.sent){e.next=17;break}if(!l.silentCheckSsoRedirectUri){e.next=15;break}return e.next=13,Ss(Ms,l,Js).call(l);case 13:e.next=17;break;case 15:return e.next=17,r(!1);case 17:case 22:e.next=26;break;case 19:if(!l.silentCheckSsoRedirectUri){e.next=24;break}return e.next=22,Ss(Ms,l,Js).call(l);case 24:return e.next=26,r(!1);case 26:case 29:return e.abrupt("break",31);case 27:return e.next=29,r(!0);case 30:throw new Error("Invalid value for onLoad");case 31:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!t.token||!t.refreshToken){e.next=38;break}if(Ss(Ms,this,sa).call(this,t.token,t.refreshToken,t.idToken),!Es(Ls,this).enable){e.next=21;break}return e.next=15,Ss(Ms,this,Gs).call(this);case 15:return e.next=17,Ss(Ms,this,Ys).call(this);case 17:e.sent&&(null===(o=this.onAuthSuccess)||void 0===o||o.call(this),Ss(Ms,this,ia).call(this)),e.next=36;break;case 21:return e.prev=21,e.next=24,this.updateToken(-1);case 24:null===(s=this.onAuthSuccess)||void 0===s||s.call(this),e.next=36;break;case 27:if(e.prev=27,e.t0=e.catch(21),null===(a=this.onAuthError)||void 0===a||a.call(this),!t.onLoad){e.next=35;break}return e.next=33,i();case 33:e.next=36;break;case 35:throw e.t0;case 36:e.next=41;break;case 38:if(!t.onLoad){e.next=41;break}return e.next=41,i();case 41:case"end":return e.stop()}}),e,this,[[21,27]])}))),Vs.apply(this,arguments)}function Gs(){return Xs.apply(this,arguments)}function Xs(){return(Xs=ds(es().mark((function e(){var t,n,r,i=this;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Es(Ls,this).enable&&!Es(Ls,this).iframe){e.next=2;break}return e.abrupt("return");case 2:return t=document.createElement("iframe"),Es(Ls,this).iframe=t,t.setAttribute("src",this.endpoints.checkSessionIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t),n=function(e){var t;if(e.origin===Es(Ls,i).iframeOrigin&&(null===(t=Es(Ls,i).iframe)||void 0===t?void 0:t.contentWindow)===e.source&&("unchanged"===e.data||"changed"===e.data||"error"===e.data)){"unchanged"!==e.data&&i.clearToken();var n=Es(Ls,i).callbackList;Es(Ls,i).callbackList=[];var r,o=Xo(n.reverse());try{for(o.s();!(r=o.n()).done;){var s=r.value;"error"===e.data?s(new Error("Error while checking login iframe")):s(null,"unchanged"===e.data)}}catch(e){o.e(e)}finally{o.f()}}},window.addEventListener("message",n,!1),r=new Promise((function(e){t.addEventListener("load",(function(){var t=i.endpoints.authorize();t.startsWith("/")?Es(Ls,i).iframeOrigin=globalThis.location.origin:Es(Ls,i).iframeOrigin=new URL(t).origin,e()}))})),e.next=14,r;case 14:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Ys(){return Ks.apply(this,arguments)}function Ks(){return(Ks=ds(es().mark((function e(){var t,n,r,i=this;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Es(Ls,this).iframe&&Es(Ls,this).iframeOrigin){e.next=2;break}return e.abrupt("return");case 2:return t="".concat(this.clientId," ").concat(this.sessionId?this.sessionId:""),n=Es(Ls,this).iframeOrigin,r=new Promise((function(e,r){var o;(Es(Ls,i).callbackList.push((function(t,n){return t?r(t):e(n)})),1===Es(Ls,i).callbackList.length)&&(null===(o=Es(Ls,i).iframe)||void 0===o||null===(o=o.contentWindow)||void 0===o||o.postMessage(t,n))})),e.next=7,r;case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Js(){return Qs.apply(this,arguments)}function Qs(){return Qs=ds(es().mark((function e(){var t,n,r=this;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=document.createElement("iframe"),e.next=3,this.createLoginUrl({prompt:"none",redirectUri:this.silentCheckSsoRedirectUri});case 3:return n=e.sent,t.setAttribute("src",n),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-silent-check-sso"),t.style.display="none",document.body.appendChild(t),e.next=11,new Promise((function(e,n){var i=function(){var o=ds(es().mark((function o(s){var a;return es().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(s.origin===window.location.origin&&t.contentWindow===s.source){o.next=2;break}return o.abrupt("return");case 2:return a=Ss(Ms,r,Zs).call(r,s.data),o.prev=3,o.next=6,Ss(Ms,r,na).call(r,a);case 6:e(),o.next=12;break;case 9:o.prev=9,o.t0=o.catch(3),n(o.t0);case 12:document.body.removeChild(t),window.removeEventListener("message",i);case 14:case"end":return o.stop()}}),o,null,[[3,9]])})));return function(e){return o.apply(this,arguments)}}();window.addEventListener("message",i)}));case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e,this)}))),Qs.apply(this,arguments)}function Zs(e){var t=Ss(Ms,this,ea).call(this,e);if(t){var n=Es(ks,this).get(t.state);return n&&(t.valid=!0,t.redirectUri=n.redirectUri,t.storedNonce=n.nonce,t.prompt=n.prompt,t.pkceCodeVerifier=n.pkceCodeVerifier,t.loginOptions=n.loginOptions),t}}function ea(e){var t,n=[];switch(this.flow){case"standard":n=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":n=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":n=["access_token","token_type","id_token
1","code","state","session_state","expires_in","kc_action_status","kc_action","iss"]}n.push("error"),n.push("error_description"),n.push("error_uri");var r,i=new URL(e),o="";if("query"===this.responseMode&&i.searchParams.size>0?(r=Ss(Ms,this,ta).call(this,i.search,n),i.search=r.paramsString,o=i.toString()):"fragment"===this.responseMode&&i.hash.length>0&&(r=Ss(Ms,this,ta).call(this,i.hash.substring(1),n),i.hash=r.paramsString,o=i.toString()),null!==(t=r)&&void 0!==t&&t.oauthParams)if("standard"===this.flow||"hybrid"===this.flow){if((r.oauthParams.code||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=o,r.oauthParams}else if("implicit"===this.flow&&(r.oauthParams.access_token||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=o,r.oauthParams}function ta(e,t){var n,r={},i="",o=Xo(e.split("&").reverse());try{for(o.s();!(n=o.n()).done;){var s=n.value,a=new URLSearchParams(s).entries().next().value;if(a){var l=Yo(a,2),c=l[0],u=l[1];t.includes(c)&&!(c in r)?r[c]=u:i=0===i.length?s:s+"&"+i}else i="&"+i}}catch(e){o.e(e)}finally{o.f()}return{paramsString:i,oauthParams:r}}function na(e){return ra.apply(this,arguments)}function ra(){return(ra=ds(es().mark((function e(t){var n,r,i,o,s,a,l,c,u,d,f,h=this;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.code,r=t.error,i=t.prompt,o=(new Date).getTime(),s=function(e,n,r){if(o=(o+(new Date).getTime())/2,Ss(Ms,h,sa).call(h,e,n,r,o),Es(Ts,h)&&h.idTokenParsed&&h.idTokenParsed.nonce!==t.storedNonce)throw Es(Cs,h).call(h,"[KEYCLOAK] Invalid nonce, clearing token"),h.clearToken(),new Error("Invalid nonce.")},t.kc_action_status&&this.onActionUpdate&&this.onActionUpdate(t.kc_action_status,t.kc_action),!r){e.next=17;break}if("none"===i){e.next=14;break}if(!t.error_description||"authentication_expired"!==t.error_description){e.next=11;break}return e.next=9,this.login(t.loginOptions);case 9:e.next=14;break;case 11:throw l={error:r,error_description:t.error_description},null===(a=this.onAuthError)||void 0===a||a.call(this,l),l;case 14:return e.abrupt("return");case 17:"standard"!==this.flow&&(t.access_token||t.id_token)&&(s(t.access_token,void 0,t.id_token),null===(c=this.onAuthSuccess)||void 0===c||c.call(this));case 18:if("implicit"===this.flow||!n){e.next=32;break}return e.prev=19,e.next=22,Ra(this.endpoints.token(),n,this.clientId,t.redirectUri,t.pkceCodeVerifier);case 22:u=e.sent,s(u.access_token,u.refresh_token,u.id_token),"standard"===this.flow&&(null===(d=this.onAuthSuccess)||void 0===d||d.call(this)),Ss(Ms,this,ia).call(this),e.next=32;break;case 28:throw e.prev=28,e.t0=e.catch(19),null===(f=this.onAuthError)||void 0===f||f.call(this),e.t0;case 32:case"end":return e.stop()}}),e,this,[[19,28]])})))).apply(this,arguments)}function ia(){return oa.apply(this,arguments)}function oa(){return(oa=ds(es().mark((function e(){return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Es(Ls,this).enable||!this.token){e.next=9;break}return e.next=3,Ua(1e3*Es(Ls,this).interval);case 3:return e.next=5,Ss(Ms,this,Ys).call(this);case 5:if(!e.sent){e.next=9;break}return e.next=9,Ss(Ms,this,ia).call(this);case 9:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function sa(e,t,n,r){if(this.tokenTimeoutHandle&&(clearTimeout(this.tokenTimeoutHandle),this.tokenTimeoutHandle=void 0),t?(this.refreshToken=t,this.refreshTokenParsed=Aa(t)):(delete this.refreshToken,delete this.refreshTokenParsed),n?(this.idToken=n,this.idTokenParsed=Aa(n)):(delete this.idToken,delete this.idTokenParsed),e){if(this.token=e,this.tokenParsed=Aa(e),this.sessionId=this.tokenParsed.sid,this.authenticated=!0,this.subject=this.tokenParsed.sub,this.realmAccess=this.tokenParsed.realm_access,this.resourceAccess=this.tokenParsed.resource_access,r&&(this.timeSkew=Math.floor(r/1e3)-this.tokenParsed.iat),null!==this.timeSkew&&(Es(Cs,this).call(this,"[KEYCLOAK] Estimated time difference between browser and server is "+this.timeSkew+" seconds"),this.onTokenExpired)){var i=1e3*(this.tokenParsed.exp-(new Date).getTime()/1e3+this.timeSkew);Es(Cs,this).call(this,"[KEYCLOAK] Token expires in "+Math.round(i/1e3)+" s"),i<=0?this.onTokenExpired():this.tokenTimeoutHandle=window.setTimeout(this.onTokenExpired,i)}}else delete this.token,delete this.tokenParsed,delete this.subject,delete this.realmAcce
1ss,delete this.resourceAccess,this.authenticated=!1}function aa(){if(void 0!==this.authServerUrl)return"".concat(Ba(this.authServerUrl),"/realms/").concat(encodeURIComponent(this.realm))}function la(e){var t=this;return function(n){t.enableLogging&&e.call(console,n)}}function ca(){if("undefined"==typeof crypto||void 0===crypto.randomUUID)throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function ua(e,t){return da.apply(this,arguments)}function da(){return(da=ds(es().mark((function e(t,n){var r,i;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("S256"===t){e.next=2;break}throw new TypeError("Invalid value for 'pkceMethod', expected 'S256' but got '".concat(t,"'."));case 2:return e.t0=Uint8Array,e.next=5,ka(n);case 5:return e.t1=e.sent,r=new e.t0(e.t1),i=(o=r,s=void 0,s=String.fromCodePoint.apply(String,Go(o)),btoa(s)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),e.abrupt("return",i);case 9:case"end":return e.stop()}var o,s}),e)})))).apply(this,arguments)}function fa(e,t,n){var r,i=new Promise((function(e,i){r=window.setTimeout((function(){i(new Error(n||"Promise is not settled within timeout of "+t+"ms"))}),t)}));return Promise.race([e,i]).finally((function(){clearTimeout(r)}))}function ha(){try{return new ga}catch(e){return new Sa}}var pa="kc-callback-",ma=new WeakSet,ga=function(){return hs((function e(){ps(this,e),ms(this,ma),globalThis.localStorage.setItem("kc-test","test"),globalThis.localStorage.removeItem("kc-test")}),[{key:"get",value:function(e){if(!e)return null;Ss(ma,this,va).call(this);var t=pa+e,n=globalThis.localStorage.getItem(t);return n?(globalThis.localStorage.removeItem(t),JSON.parse(n)):null}},{key:"add",value:function(e){Ss(ma,this,va).call(this);var t=pa+e.state,n=JSON.stringify(Zo(Zo({},e),{},{expires:Date.now()+36e5}));try{globalThis.localStorage.setItem(t,n)}catch(e){Ss(ma,this,ba).call(this),globalThis.localStorage.setItem(t,n)}}}])}();function va(){var e,t=Date.now(),n=Xo(Ss(ma,this,ya).call(this));try{for(n.s();!(e=n.n()).done;){var r=Yo(e.value,2),i=r[0],o=r[1],s=Ss(ma,this,wa).call(this,o);(null===s||s<t)&&globalThis.localStorage.removeItem(i)}}catch(e){n.e(e)}finally{n.f()}}function ba(){var e,t=Xo(Ss(ma,this,ya).call(this));try{for(t.s();!(e=t.n()).done;){var n=Yo(e.value,1)[0];globalThis.localStorage.removeItem(n)}}catch(e){t.e(e)}finally{t.f()}}function ya(){return Object.entries(globalThis.localStorage).filter((function(e){return Yo(e,1)[0].startsWith(pa)}))}function wa(e){var t;try{t=JSON.parse(e)}catch(e){return null}return La(t)&&"expires"in t&&"number"==typeof t.expires?t.expires:null}var Ea=new WeakSet,Sa=function(){return hs((function e(){ps(this,e),ms(this,Ea)}),[{key:"get",value:function(e){if(!e)return null;var t=Ss(Ea,this,xa).call(this,pa+e);return Ss(Ea,this,_a).call(this,pa+e,"",Ss(Ea,this,Ta).call(this,-100)),t?JSON.parse(t):null}},{key:"add",value:function(e){Ss(Ea,this,_a).call(this,pa+e.state,JSON.stringify(e),Ss(Ea,this,Ta).call(this,60))}}])}();function xa(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return""}function _a(e,t,n){var r=e+"="+t+"; expires="+n.toUTCString()+"; ";document.cookie=r}function Ta(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t}function ka(e){return Ca.apply(this,arguments)}function Ca(){return(Ca=ds(es().mark((function e(t){var n,r;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=new TextEncoder,r=n.encode(t),"undefined"!=typeof crypto&&void 0!==crypto.subtle){e.next=4;break}throw new Error("Web Crypto API is not available.");case 4:return e.next=6,crypto.subtle.digest("SHA-256",r);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Aa(e){var t,n=Yo(e.split("."),2)[1];if("string"!=typeof n)throw new Error("Unable to decode token, payload not found.");try{t=function(e){var t=e.replaceAll("-","+").replaceAll("_","/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Input is not of the correct length.")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}(n)}catch(e){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:e})}try{return JSON.parse(t)}catch(e){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:e})}}function La(e){return"object"===cs(e)&&null!==e}function Oa(e){return Ma.apply(this,arguments)}function Ma(){return(Ma=ds(es().mark((function e(t){return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qa(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ia(e){return Pa.apply(this,arguments)}function Pa(){return(Pa=ds(es().mark((function e(t){return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qa(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ra(e,t,n,r,i){return Da.apply(this,arguments)}function Da(){return(Da=ds(es().mark((function e(t,n,r,i,o){var s;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=new URLSearchParams([["code",n],["grant_type","authorization_code"],["client_id",r],["redirect_uri",i]]),o&&s.append("code_verifier",o),e.next=4,qa(t,{method:"POST",credentials:"include",body:s});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Na(e,t,n){return Ha.apply(this,arguments)}function Ha(){return(Ha=ds(es().mark((function e(t,n,r){var i;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new URLSearchParams([["grant_type","refresh_token"],["refresh_token",n],["client_id",r]]),e.next=3,qa(t,{method:"POST",credentials:"include",body:i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qa(e){return za.apply(this,arguments)}function za(){return za=ds(es().mark((function e(t){var n,r,i,o=arguments;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},(r=new Headers(n.headers)).set("Accept","application/json"),e.next=5,$a(t,Zo(Zo({},n),{},{headers:r}));case 5:return i=e.sent,e.next=8,i.json();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),za.apply(this,arguments)}function $a(e,t){return Fa.apply(this,arguments)}function Fa(){return(Fa=ds(es().mark((function e(t,n){var r;return es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,n);case 2:if((r=e.sent).ok){e.next=5;break}
vendor: 4,410 bytes, line 1
1throw new Wa("Server responded with an invalid status.",{response:r});case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ja(e){if(!e)throw new Error("Unable to build authorization header, token is not set, make sure the user is authenticated.");return["Authorization","bearer ".concat(e)]}function Ba(e){return e.endsWith("/")?e.slice(0,-1):e}var Wa=function(e){function t(e,n){var r;return ps(this,t),gs(r=jo(this,t,[e,n]),"response",void 0),r.response=n.response,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uo(e,t)}(t,e),hs(t)}(Bo(Error)),Ua=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function Va(e){return Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(e)}function Ga(){var e=Za(),t=e.m(Ga),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function o(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,Xa(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(Ga=function(){return{wrap:function(t,n,r,i){return e.w(o(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new tl(e,t)},AsyncIterator:Qa,async:function(e,t,n,i,s){return(r(t)?Ja:Ka)(o(e),t,n,i,s)},keys:Ya,values:Xa}})()}function Xa(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Va(e)+" is not iterable")}function Ya(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function Ka(e,t,n,r,i){var o=Ja(e,t,n,r,i);return o.next().then((function(e){return e.done?e.value:o.next()}))}function Ja(e,t,n,r,i){return new Qa(Za().w(e,t,n,r),i||Promise)}function Qa(e,t){function n(r,i,o,s){try{var a=e[r](i),l=a.value;return l instanceof tl?t.resolve(l.v).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){a.value=e,o(a)}),(function(e){return n("throw",e,o,s)}))}catch(e){s(e)}}var r;this.next||(el(Qa.prototype),el(Qa.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),el(this,"_invoke",(function(e,i,o){function s(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(s,s):s()}),!0)}function Za(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return el(c,"_invoke",function(n,r,i){var o,a,l,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,a=0,l=e,f.n=n,s}};function h(n,r){for(a=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(a=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),a=u,l=p;(t=a<2?e:l)||!d;){o||(a?a<3?(a>1&&(f.n=-1),h(a,l)):f.n=l:f.v=l);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){o=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(el(t={},r,(function(){return this})),t),d=c.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,el(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,el(d,"constructor",c),el(c,"constructor",l),l.displayName="GeneratorFunction",el(c,i,"GeneratorFunction"),el(d),el(d,i,"Generator"),el(d,r,(function(){return this})),el(d,"toString",(function(){return"[object Generator]"})),(Za=function(){return{w:o,m:f}})()}function el(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}el=function(e,t,n,r){function o(t,n){el(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},el(e,t,n,r)}function tl(e,t){this.v=e,this.k=t}function nl(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function rl(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){nl(o,r,i,s,a,"next",e)}function a(e){nl(o,r,i,s,a,"throw",e)}s(void 0)}))}}function il(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ol(r.key),r)}}function ol(e){var t=function(e,t){if("object"!=Va(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Va(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Va(t)?t:t+""}var sl=function(){return e=function e(t){var n=t.keycloakUrl,r=t.keycloakRealm,i=t.keycloakClientId,o=t.ssoCheckedCookieName,s=t.authenticatedCookieName,a=t.userCookieName,l=t.silentCheckSsoRedirectUri,c=void 0===l?window.location.origin+"/indapass_silent_sso_check.html":l,u=t.ssoCheckEndpoint,d=void 0===u?"/indapass/sso-check/":u,f=t.ssoCheckClearEndpoint,h=void 0===f?"/indapass/sso-check/clear/":f,p=t.userMenuTarget,m=void 0===p?"#indapass-user-menu":p,g=t.initTimeoutMs,v=void 0===g?2e3:g,b=t.accessCookieMaxAgeSeconds,y=void 0===b?0:b;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ssoCheckedCookieName=o,this.authenticatedCookieName=s,this.userCookieName=a,this.silentCheckSsoRedirectUri=c,this.ssoCheckEndpoint=d,this.ssoCheckClearEndpoint=h,this.userMenuTarget=m,this.initTimeoutMs=v,this.accessCookieMaxAgeSeconds=y,this.keycloak=new Is({url:n,realm:r,clientId:i})},t=[{key:"hydrate",value:function(){var e=this.getCookie(this.userCookieName);if(e){var t;try{t=JSON.parse(e)}catch(e){return}document.querySelectorAll("[data-indapass-field]").forEach((function(e){var n=e.getAttribute("data-indapass-field"),r=t[n];r&&(e.textContent=r,e.hidden=!1)}))}}},{key:"checkSso",value:(i=rl(Ga().mark((function e(){var t,n,r,i;return Ga().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.getCookie(this.ssoCheckedCookieName)){e.next=2;break}return e.abrupt("return");case 2:return t=!1,e.prev=3,e.next=6,this.withTimeout(this.keycloak.init({onLoad:"check-sso",silentCheckSsoRedirectUri:this.silentCheckSsoRedirectUri,silentCheckSsoFallback:!1,pkceMethod:"S256",checkLoginIframe:!1}),this.initTimeoutMs);case 6:t=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),t=!1;case 12:if(n=!(!this.keycloak.idToken||!this.keycloak.token),r=t&&n,i="1"===this.getCookie(this.authenticatedCookieName),!r||i){e.next=20;break}return e.next=18,this.swapMenu(this.ssoCheckEndpoint,{id_token:this.keycloak.idToken,access_token:this.keycloak.token});case 18:e.next=30;break;case 20:if(!r||!i){e.next=24;break}this.setSsoChecked(this.tokenLifetimeSeconds()),e.next=30;break;case 24:if(r||!i){e.next=29;break}return e.next=27,this.swapMenu(this.ssoCheckClearEndpoint,{});case 27:e.next=30;break;case 29:this.setSsoChecked(300);case 30:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(){return i.apply(this,arguments)})},{key:"swapMenu",value:(r=rl(Ga().mark((function e(t,n){var r;return Ga().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(r=window.htmx)||void 0===r||!r.ajax){e.next=5;break}return e.next=3,window.htmx.ajax("POST",t,{target:this.userMenuTarget,swap:"outerHTML",values:n});case 3:return this.hydrate(),e.abrupt("return");case 5:return e.next=7,fetch(t,{method:"POST",credentials:"include",headers:{"X-CSRFToken":this.getCookie("csrftoken")||""},body:new URLSearchParams(n)});case 7:e.sent.ok&&window.location.reload();case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"tokenLifetimeSeconds",value:function(){var e,t=null===(e=this.keycloak.tokenParsed)||void 0===e?void 0:e.exp;if("number"!=typeof t)return 300;var n=t-Math.floor(Date.now()/1e3);
1return n<=0?300:this.accessCookieMaxAgeSeconds>0?Math.min(n,this.accessCookieMaxAgeSeconds):n}},{key:"setSsoChecked",value:function(e){var t="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(this.ssoCheckedCookieName,"=1; Max-Age=").concat(Math.max(0,Math.floor(e)))+"; Path=/; SameSite=Lax".concat(t)}},{key:"withTimeout",value:function(e,t){return Promise.race([e,new Promise((function(e,n){return setTimeout((function(){return n(new Error("IndaPass SSO check timed out"))}),t)}))])}},{key:"getCookie",value:function(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?decodeURIComponent(t[2]):null}}],t&&il(e.prototype,t),n&&il(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,i}()})(),(window.SiteJS=window.SiteJS||{}).site=__webpack_exports__})();;document.addEventListener("DOMContentLoaded",function(){const adultLayers=document.querySelectorAll(".adult-layer") 2const allAdultContent=document.querySelectorAll(".adult-content") 3const breadcrumb=document.querySelector(".adult-breadcrumb") 4let seenFixedLayer=false 5adultLayers.forEach(function(adultLayer){if(window.getComputedStyle(adultLayer).position==="fixed"){if(seenFixedLayer){adultLayer.classList.add("hidden")}else{seenFixedLayer=true}}}) 6adultLayers.forEach(function(adultLayer){const adultButton=adultLayer.querySelector("button.adult-button") 7const minorButton=adultLayer.querySelector("button.minor-button") 8if(adultButton){adultButton.addEventListener("click",function(){const isModal=window.getComputedStyle(adultLayer).position==="fixed" 9if(isModal){adultLayers.forEach(function(layer){layer.classList.add("hidden")}) 10allAdultContent.forEach(function(content){content.classList.remove("hidden")})}else{adultLayer.classList.add("hidden") 11const associatedContent=adultLayer.nextElementSibling 12if(associatedContent&&associatedContent.classList.contains("adult-content")){associatedContent.classList.remove("hidden")}else{adultLayers.forEach(function(layer){layer.classList.add("hidden")}) 13allAdultContent.forEach(function(content){content.classList.remove("hidden")})}} 14if(breadcrumb){breadcrumb.classList.remove("hidden")}})} 15if(minorButton){minorButton.addEventListener("click",function(){if(window.history.length>1){window.history.back()}else{window.location.href="/"}})}})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.