let customLoopFix=(e,t)=>{var{params:s,slides:r,wrapperEl:a}=e,i=Math.ceil(s.slidesPerView),l=r.length,n=e.activeIndex,i=n+i;if("left"===t&&n<2){var o=2-n;for(let e=0;e<o;e+=1){var d=r[l-o+e];d._loopMove=!0,a.prepend(d),d._loopMove=!1}s.watchSlidesProgress&&swiper.updateSlidesOffset(),e.recalcSlides(),e.slideTo(n+o,0,!1,!0)}if("right"===t){t=l-1-i;if(t<2){var p=2-t;for(let e=0;e<p;e+=1){var f=r[e];f._loopMove=!0,a.append(f),f._loopMove=!1}e.recalcSlides(),s.watchSlidesProgress&&e.updateSlidesOffset(),e.slideTo(n-p,0,!1,!0)}}},getCssUnit=e=>{var t,s={translateX:{unit:"%"},translateZ:{unit:"px"},perspective:{unit:"px"},rotate:{unit:"deg"},blur:{unit:"px"}};for(t in s)if(e.includes(t))return s[t];return{unit:""}},visibilityPct=(e,t,s,r)=>"left"===r&&0<e||"right"===r&&e<0?100:(r=Math.round(1e3*e)/1e3,s?(e=(t-1)/2,Math.abs(r)<=e?100:Math.max(0,100*(1-(Math.abs(r)-e)))):0<=r?Math.max(0,100*(1-r)):(s=Math.abs(r)-(t-1),Math.max(0,100*(1-Math.max(0,s))))),applyProgressiveStyles=(s,r,a,i)=>{for(var[l,n]of Object.entries(r.start)){let e,t="";if("object"!=typeof n){var o=getCssUnit(l).unit;e="opacity"===l?i?-1*(-a/100*n-n):a/100*n:n,s.style[l]=""+e+o}else{for(var[d,p]of Object.entries(n)){var f=getCssUnit(d).unit;switch(d){case"blur":e=i?p+(p-r.end.filter.blur)*(a/100):r.end.filter.blur-a/r.end.filter.blur;break;case"perspective":e=p;break;default:e=i?p+(p-r.end.transform[d])*(a/100):r.end.transform[d]-r.end.transform[d]*a/100}t+=` ${d}(${e}${f})`}s.style[l]=t.trim()}}},applyStyles=(t,e)=>{for(var[s,r]of Object.entries(e))if("object"!=typeof r){var a=getCssUnit(s).unit;t.style[s]=""+r+a}else{let e="";for(var[i,l]of Object.entries(r)){var n=getCssUnit(i).unit;e+=` ${i}(${l}${n})`}t.style[s]=e.trim()}},cachedCSSParams=null,getCssParams=(e,t)=>(cachedCSSParams||("circular"===t.type&&(t.start.left.transform.perspective&&(t.start.left.transform.perspective=e[0],t.start.right.transform.perspective=e[0],t.end.left.transform.perspective=e[0],t.end.right.transform.perspective=e[0]),t.end.left.transform.translateZ)&&(t.end.left.transform.translateZ=-e[0]/2,t.end.right.transform.translateZ=-e[0]/2),cachedCSSParams={classnames:{hidden:"swiper-slide-hidden",deduplicated:".swiper-slide:not(.swiper-slide-duplicate)"},start:{left:t.start.left,right:t.start.right},end:{left:t.end.left,right:t.end.right}}),cachedCSSParams),specialEffects=({extendParams:e,on:t})=>{e({watchSlidesProgress:!0,watchSlidesVisibility:!0}),t("init",e=>{e=e.el;e.style.overflow="visible"}),t("progress",e=>{let r=Math.round(e.params.slidesPerView),a=e.params.centeredSlides,i=e.params.shownSide||"hidden",l=getCssParams(e.slidesSizesGrid,e.params.animation);e.slides.forEach(e=>{var t,s=visibilityPct(e.progress,r,a,i);0===s?applyStyles(e,l.end[e.progress<0?"left":"right"]):100===s?applyStyles(e,l.start.left):(t=e.progress<0?"left":"right",applyProgressiveStyles(e,{start:l.start[t],end:l.end[t]},s,a))})}),t("setTransition",e=>{e.slides.forEach(e=>{e.style.transition="all 500ms ease"})}),t("touchMove",e=>{var{animation:t}=e.params;let s="circular"===t?.type?0:e.params.speed||300;e.slides.forEach(e=>{e.style.transition=`all ${s}ms ease`})});let r=!1;t("transitionEnd",e=>{var t,s;setTimeout(()=>{e.slides.forEach(e=>e.style.transition=null)},600),r||(r=!0,{params:{loop:t,shownSide:s="hidden"}}=e,t&&"hidden"!==s&&(customLoopFix(e,s),setTimeout(()=>{r=!1},0)))})};