ode-explorer 1.0.0-develop-b2school.202306201556 → 1.0.0-develop-pedago.202307262104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{R as z,r as O,u as Fe,a as He,j as _,M as U,I as re,B as K}from"./index.js";function Se(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ge(e={},t={}){Object.keys(t).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:Se(t[i])&&Se(e[i])&&Object.keys(t[i]).length>0&&ge(e[i],t[i])})}const Ee={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function R(){const e=typeof document<"u"?document:{};return ge(e,Ee),e}const Re={document:Ee,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function D(){const e=typeof window<"u"?window:{};return ge(e,Re),e}function We(e){const t=e;Object.keys(t).forEach(i=>{try{t[i]=null}catch{}try{delete t[i]}catch{}})}function fe(e,t=0){return setTimeout(e,t)}function te(){return Date.now()}function Xe(e){const t=D();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}function Ye(e,t="x"){const i=D();let s,r,n;const l=Xe(e);return i.WebKitCSSMatrix?(r=l.transform||l.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(r==="none"?"":r)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),t==="x"&&(i.WebKitCSSMatrix?r=n.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),t==="y"&&(i.WebKitCSSMatrix?r=n.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function Z(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function qe(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function B(...e){const t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let s=1;s<e.length;s+=1){const r=e[s];if(r!=null&&!qe(r)){const n=Object.keys(Object(r)).filter(l=>i.indexOf(l)<0);for(let l=0,o=n.length;l<o;l+=1){const a=n[l],c=Object.getOwnPropertyDescriptor(r,a);c!==void 0&&c.enumerable&&(Z(t[a])&&Z(r[a])?r[a].__swiper__?t[a]=r[a]:B(t[a],r[a]):!Z(t[a])&&Z(r[a])?(t[a]={},r[a].__swiper__?t[a]=r[a]:B(t[a],r[a])):t[a]=r[a])}}}return t}function J(e,t,i){e.style.setProperty(t,i)}function Me({swiper:e,targetPosition:t,side:i}){const s=D(),r=-e.translate;let n=null,l;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const a=t>r?"next":"prev",c=(f,h)=>a==="next"&&f>=h||a==="prev"&&f<=h,m=()=>{l=new Date().getTime(),n===null&&(n=l);const f=Math.max(Math.min((l-n)/o,1),0),h=.5-Math.cos(f*Math.PI)/2;let p=r+h*(t-r);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[i]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:p})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(m)};m()}function N(e,t=""){return[...e.children].filter(i=>i.matches(t))}function Pe(e,t=[]){const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:[t]),i}function Ue(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}function Ke(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}function j(e,t){return D().getComputedStyle(e,null).getPropertyValue(t)}function ie(e){let t=e,i;if(t){for(i=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(i+=1);return i}}function Le(e,t){const i=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function ue(e,t,i){const s=D();return i?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let ae;function Ze(){const e=D(),t=R();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ie(){return ae||(ae=Ze()),ae}let le;function Je({userAgent:e}={}){const t=Ie(),i=D(),s=i.navigator.platform,r=e||i.navigator.userAgent,n={ios:!1,android:!1},l=i.screen.width,o=i.screen.height,a=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad).*OS\s([\d_]+)/);const m=r.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let p=s==="MacIntel";const x=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&x.indexOf(`${l}x${o}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),a&&!h&&(n.os="android",n.android=!0),(c||f||m)&&(n.os="ios",n.ios=!0),n}function Qe(e={}){return le||(le=Je(e)),le}let oe;function et(){const e=D();let t=!1;function i(){const s=e.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(i()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[r,n]=s.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));t=r<16||r===16&&n<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function tt(){return oe||(oe=et()),oe}function it({swiper:e,on:t,emit:i}){const s=D();let r=null,n=null;const l=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(m=>{n=s.requestAnimationFrame(()=>{const{width:f,height:h}=e;let p=f,x=h;m.forEach(({contentBoxSize:b,contentRect:E,target:d})=>{d&&d!==e.el||(p=E?E.width:(b[0]||b).inlineSize,x=E?E.height:(b[0]||b).blockSize)}),(p!==f||x!==h)&&l()})}),r.observe(e.el))},a=()=>{n&&s.cancelAnimationFrame(n),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},c=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){o();return}s.addEventListener("resize",l),s.addEventListener("orientationchange",c)}),t("destroy",()=>{a(),s.removeEventListener("resize",l),s.removeEventListener("orientationchange",c)})}function st({swiper:e,extendParams:t,on:i,emit:s}){const r=[],n=D(),l=(c,m={})=>{const f=n.MutationObserver||n.WebkitMutationObserver,h=new f(p=>{if(e.__preventObserver__)return;if(p.length===1){s("observerUpdate",p[0]);return}const x=function(){s("observerUpdate",p[0])};n.requestAnimationFrame?n.requestAnimationFrame(x):n.setTimeout(x,0)});h.observe(c,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),r.push(h)},o=()=>{if(e.params.observer){if(e.params.observeParents){const c=Le(e.el);for(let m=0;m<c.length;m+=1)l(c[m])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},a=()=>{r.forEach(c=>{c.disconnect()}),r.splice(0,r.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",o),i("destroy",a)}const nt={on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;const r=i?"unshift":"push";return e.split(" ").forEach(n=>{s.eventsListeners[n]||(s.eventsListeners[n]=[]),s.eventsListeners[n][r](t)}),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;function r(...n){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(s,n)}return r.__emitterProxy=t,s.on(e,r,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||e.split(" ").forEach(s=>{typeof t>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((r,n)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&i.eventsListeners[s].splice(n,1)})}),i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let i,s,r;return typeof e[0]=="string"||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),r=t):(i=e[0].events,s=e[0].data,r=e[0].context||t),s.unshift(r),(Array.isArray(i)?i:i.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(o=>{o.apply(r,[l,...s])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(o=>{o.apply(r,s)})}),t}};function rt(){const e=this;let t,i;const s=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=s.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?i=e.params.height:i=s.clientHeight,!(t===0&&e.isHorizontal()||i===0&&e.isVertical())&&(t=t-parseInt(j(s,"padding-left")||0,10)-parseInt(j(s,"padding-right")||0,10),i=i-parseInt(j(s,"padding-top")||0,10)-parseInt(j(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))}function at(){const e=this;function t(y){return e.isHorizontal()?y:{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"}[y]}function i(y,w){return parseFloat(y.getPropertyValue(t(w))||0)}const s=e.params,{wrapperEl:r,slidesEl:n,size:l,rtlTranslate:o,wrongRTL:a}=e,c=e.virtual&&s.virtual.enabled,m=c?e.virtual.slides.length:e.slides.length,f=N(n,`.${e.params.slideClass}, swiper-slide`),h=c?e.virtual.slides.length:f.length;let p=[];const x=[],b=[];let E=s.slidesOffsetBefore;typeof E=="function"&&(E=s.slidesOffsetBefore.call(e));let d=s.slidesOffsetAfter;typeof d=="function"&&(d=s.slidesOffsetAfter.call(e));const u=e.snapGrid.length,g=e.slidesGrid.length;let v=s.spaceBetween,T=-E,C=0,I=0;if(typeof l>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*l:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,f.forEach(y=>{o?y.style.marginLeft="":y.style.marginRight="",y.style.marginBottom="",y.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(J(r,"--swiper-centered-offset-before",""),J(r,"--swiper-centered-offset-after",""));const S=s.grid&&s.grid.rows>1&&e.grid;S&&e.grid.initSlides(h);let P;const A=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(y=>typeof s.breakpoints[y].slidesPerView<"u").length>0;for(let y=0;y<h;y+=1){P=0;let w;if(f[y]&&(w=f[y]),S&&e.grid.updateSlide(y,w,h,t),!(f[y]&&j(w,"display")==="none")){if(s.slidesPerView==="auto"){A&&(f[y].style[t("width")]="");const M=getComputedStyle(w),L=w.style.transform,G=w.style.webkitTransform;if(L&&(w.style.transform="none"),G&&(w.style.webkitTransform="none"),s.roundLengths)P=e.isHorizontal()?ue(w,"width",!0):ue(w,"height",!0);else{const q=i(M,"width"),se=i(M,"padding-left"),ne=i(M,"padding-right"),$=i(M,"margin-left"),k=i(M,"margin-right"),ve=M.getPropertyValue("box-sizing");if(ve&&ve==="border-box")P=q+$+k;else{const{clientWidth:Ve,offsetWidth:je}=w;P=q+se+ne+$+k+(je-Ve)}}L&&(w.style.transform=L),G&&(w.style.webkitTransform=G),s.roundLengths&&(P=Math.floor(P))}else P=(l-(s.slidesPerView-1)*v)/s.slidesPerView,s.roundLengths&&(P=Math.floor(P)),f[y]&&(f[y].style[t("width")]=`${P}px`);f[y]&&(f[y].swiperSlideSize=P),b.push(P),s.centeredSlides?(T=T+P/2+C/2+v,C===0&&y!==0&&(T=T-l/2-v),y===0&&(T=T-l/2-v),Math.abs(T)<1/1e3&&(T=0),s.roundLengths&&(T=Math.floor(T)),I%s.slidesPerGroup===0&&p.push(T),x.push(T)):(s.roundLengths&&(T=Math.floor(T)),(I-Math.min(e.params.slidesPerGroupSkip,I))%e.params.slidesPerGroup===0&&p.push(T),x.push(T),T=T+P+v),e.virtualSize+=P+v,C=P,I+=1}}if(e.virtualSize=Math.max(e.virtualSize,l)+d,o&&a&&(s.effect==="slide"||s.effect==="coverflow")&&(r.style.width=`${e.virtualSize+v}px`),s.setWrapperSize&&(r.style[t("width")]=`${e.virtualSize+v}px`),S&&e.grid.updateWrapperSize(P,p,t),!s.centeredSlides){const y=[];for(let w=0;w<p.length;w+=1){let M=p[w];s.roundLengths&&(M=Math.floor(M)),p[w]<=e.virtualSize-l&&y.push(M)}p=y,Math.floor(e.virtualSize-l)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-l)}if(c&&s.loop){const y=b[0]+v;if(s.slidesPerGroup>1){const w=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),M=y*s.slidesPerGroup;for(let L=0;L<w;L+=1)p.push(p[p.length-1]+M)}for(let w=0;w<e.virtual.slidesBefore+e.virtual.slidesAfter;w+=1)s.slidesPerGroup===1&&p.push(p[p.length-1]+y),x.push(x[x.length-1]+y),e.virtualSize+=y}if(p.length===0&&(p=[0]),v!==0){const y=e.isHorizontal()&&o?"marginLeft":t("marginRight");f.filter((w,M)=>!s.cssMode||s.loop?!0:M!==f.length-1).forEach(w=>{w.style[y]=`${v}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let y=0;b.forEach(M=>{y+=M+(v||0)}),y-=v;const w=y-l;p=p.map(M=>M<0?-E:M>w?w+d:M)}if(s.centerInsufficientSlides){let y=0;if(b.forEach(w=>{y+=w+(v||0)}),y-=v,y<l){const w=(l-y)/2;p.forEach((M,L)=>{p[L]=M-w}),x.forEach((M,L)=>{x[L]=M+w})}}if(Object.assign(e,{slides:f,snapGrid:p,slidesGrid:x,slidesSizesGrid:b}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){J(r,"--swiper-centered-offset-before",`${-p[0]}px`),J(r,"--swiper-centered-offset-after",`${e.size/2-b[b.length-1]/2}px`);const y=-e.snapGrid[0],w=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+y),e.slidesGrid=e.slidesGrid.map(M=>M+w)}if(h!==m&&e.emit("slidesLengthChange"),p.length!==u&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),x.length!==g&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const y=`${s.containerModifierClass}backface-hidden`,w=e.el.classList.contains(y);h<=s.maxBackfaceHiddenSlides?w||e.el.classList.add(y):w&&e.el.classList.remove(y)}}function lt(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let r=0,n;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=o=>s?t.slides[t.getSlideIndexByData(o)]:t.slides[o];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(o=>{i.push(o)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const o=t.activeIndex+n;if(o>t.slides.length&&!s)break;i.push(l(o))}else i.push(l(t.activeIndex));for(n=0;n<i.length;n+=1)if(typeof i[n]<"u"){const o=i[n].offsetHeight;r=o>r?o:r}(r||r===0)&&(t.wrapperEl.style.height=`${r}px`)}function ot(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=(e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop)-i-e.cssOverflowAdjustment()}function dt(e=this&&this.translate||0){const t=this,i=t.params,{slides:s,rtlTranslate:r,snapGrid:n}=t;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;r&&(l=e),s.forEach(a=>{a.classList.remove(i.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=i.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:typeof o=="string"&&(o=parseFloat(o));for(let a=0;a<s.length;a+=1){const c=s[a];let m=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(m-=s[0].swiperSlideOffset);const f=(l+(i.centeredSlides?t.minTranslate():0)-m)/(c.swiperSlideSize+o),h=(l-n[0]+(i.centeredSlides?t.minTranslate():0)-m)/(c.swiperSlideSize+o),p=-(l-m),x=p+t.slidesSizesGrid[a];(p>=0&&p<t.size-1||x>1&&x<=t.size||p<=0&&x>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(a),s[a].classList.add(i.slideVisibleClass)),c.progress=r?-f:f,c.originalProgress=r?-h:h}}function ct(e){const t=this;if(typeof e>"u"){const m=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*m||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:n,isEnd:l,progressLoop:o}=t;const a=n,c=l;if(s===0)r=0,n=!0,l=!0;else{r=(e-t.minTranslate())/s;const m=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;n=m||r<=0,l=f||r>=1,m&&(r=0),f&&(r=1)}if(i.loop){const m=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),h=t.slidesGrid[m],p=t.slidesGrid[f],x=t.slidesGrid[t.slidesGrid.length-1],b=Math.abs(e);b>=h?o=(b-h)/x:o=(b+x-p)/x,o>1&&(o-=1)}Object.assign(t,{progress:r,progressLoop:o,isBeginning:n,isEnd:l}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),n&&!a&&t.emit("reachBeginning toEdge"),l&&!c&&t.emit("reachEnd toEdge"),(a&&!n||c&&!l)&&t.emit("fromEdge"),t.emit("progress",r)}function ft(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:r}=e,n=e.virtual&&i.virtual.enabled,l=a=>N(s,`.${i.slideClass}${a}, swiper-slide${a}`)[0];t.forEach(a=>{a.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let o;if(n)if(i.loop){let a=r-e.virtual.slidesBefore;a<0&&(a=e.virtual.slides.length+a),a>=e.virtual.slides.length&&(a-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${a}"]`)}else o=l(`[data-swiper-slide-index="${r}"]`);else o=t[r];if(o){o.classList.add(i.slideActiveClass);let a=Ke(o,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!a&&(a=t[0]),a&&a.classList.add(i.slideNextClass);let c=Ue(o,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(i.slidePrevClass)}e.emitSlidesClasses()}const Q=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,s=t.closest(i());if(s){const r=s.querySelector(`.${e.params.lazyPreloaderClass}`);r&&r.remove()}},be=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},pe=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const s=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex,n=r+s-1;if(e.params.rewind)for(let l=r-t;l<=n+t;l+=1){const o=(l%i+i)%i;o!==r&&o>n&&be(e,o)}else for(let l=Math.max(n-t,0);l<=Math.min(n+t,i-1);l+=1)l!==r&&l>n&&be(e,l)};function ut(e){const{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let r;for(let n=0;n<t.length;n+=1)typeof t[n+1]<"u"?s>=t[n]&&s<t[n+1]-(t[n+1]-t[n])/2?r=n:s>=t[n]&&s<t[n+1]&&(r=n+1):s>=t[n]&&(r=n);return i.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function pt(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:r,activeIndex:n,realIndex:l,snapIndex:o}=t;let a=e,c;const m=h=>{let p=h-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof a>"u"&&(a=ut(t)),s.indexOf(i)>=0)c=s.indexOf(i);else{const h=Math.min(r.slidesPerGroupSkip,a);c=h+Math.floor((a-h)/r.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),a===n){c!==o&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=m(a));return}let f;t.virtual&&r.virtual.enabled&&r.loop?f=m(a):t.slides[a]?f=parseInt(t.slides[a].getAttribute("data-swiper-slide-index")||a,10):f=a,Object.assign(t,{previousSnapIndex:o,snapIndex:c,previousRealIndex:l,realIndex:f,previousIndex:n,activeIndex:a}),t.initialized&&pe(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function mt(e){const t=this,i=t.params,s=e.closest(`.${i.slideClass}, swiper-slide`);let r=!1,n;if(s){for(let l=0;l<t.slides.length;l+=1)if(t.slides[l]===s){r=!0,n=l;break}}if(s&&r)t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=n;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}i.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const ht={updateSize:rt,updateSlides:at,updateAutoHeight:lt,updateSlidesOffset:ot,updateSlidesProgress:dt,updateProgress:ct,updateSlidesClasses:ft,updateActiveIndex:pt,updateClickedSlide:mt};function gt(e=this.isHorizontal()?"x":"y"){const t=this,{params:i,rtlTranslate:s,translate:r,wrapperEl:n}=t;if(i.virtualTranslate)return s?-r:r;if(i.cssMode)return r;let l=Ye(n,e);return l+=t.cssOverflowAdjustment(),s&&(l=-l),l||0}function vt(e,t){const i=this,{rtlTranslate:s,params:r,wrapperEl:n,progress:l}=i;let o=0,a=0;const c=0;i.isHorizontal()?o=s?-e:e:a=e,r.roundLengths&&(o=Math.floor(o),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:a,r.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-o:-a:r.virtualTranslate||(i.isHorizontal()?o-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),n.style.transform=`translate3d(${o}px, ${a}px, ${c}px)`);let m;const f=i.maxTranslate()-i.minTranslate();f===0?m=0:m=(e-i.minTranslate())/f,m!==l&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function St(){return-this.snapGrid[0]}function bt(){return-this.snapGrid[this.snapGrid.length-1]}function xt(e=0,t=this.params.speed,i=!0,s=!0,r){const n=this,{params:l,wrapperEl:o}=n;if(n.animating&&l.preventInteractionOnTransition)return!1;const a=n.minTranslate(),c=n.maxTranslate();let m;if(s&&e>a?m=a:s&&e<c?m=c:m=e,n.updateProgress(m),l.cssMode){const f=n.isHorizontal();if(t===0)o[f?"scrollLeft":"scrollTop"]=-m;else{if(!n.support.smoothScroll)return Me({swiper:n,targetPosition:-m,side:f?"left":"top"}),!0;o.scrollTo({[f?"left":"top"]:-m,behavior:"smooth"})}return!0}return t===0?(n.setTransition(0),n.setTranslate(m),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(m),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(h){!n||n.destroyed||h.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}const wt={getTranslate:gt,setTranslate:vt,minTranslate:St,maxTranslate:bt,translateTo:xt};function Tt(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`),i.emit("setTransition",e,t)}function Oe({swiper:e,runCallbacks:t,direction:i,step:s}){const{activeIndex:r,previousIndex:n}=e;let l=i;if(l||(r>n?l="next":r<n?l="prev":l="reset"),e.emit(`transition${s}`),t&&r!==n){if(l==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),l==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function yt(e=!0,t){const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),Oe({swiper:i,runCallbacks:e,direction:t,step:"Start"}))}function Ct(e=!0,t){const i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),Oe({swiper:i,runCallbacks:e,direction:t,step:"End"}))}const Et={setTransition:Tt,transitionStart:yt,transitionEnd:Ct};function Mt(e=0,t=this.params.speed,i=!0,s,r){typeof e=="string"&&(e=parseInt(e,10));const n=this;let l=e;l<0&&(l=0);const{params:o,snapGrid:a,slidesGrid:c,previousIndex:m,activeIndex:f,rtlTranslate:h,wrapperEl:p,enabled:x}=n;if(n.animating&&o.preventInteractionOnTransition||!x&&!s&&!r)return!1;const b=Math.min(n.params.slidesPerGroupSkip,l);let E=b+Math.floor((l-b)/n.params.slidesPerGroup);E>=a.length&&(E=a.length-1);const d=-a[E];if(o.normalizeSlideIndex)for(let g=0;g<c.length;g+=1){const v=-Math.floor(d*100),T=Math.floor(c[g]*100),C=Math.floor(c[g+1]*100);typeof c[g+1]<"u"?v>=T&&v<C-(C-T)/2?l=g:v>=T&&v<C&&(l=g+1):v>=T&&(l=g)}if(n.initialized&&l!==f&&(!n.allowSlideNext&&d<n.translate&&d<n.minTranslate()||!n.allowSlidePrev&&d>n.translate&&d>n.maxTranslate()&&(f||0)!==l))return!1;l!==(m||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(d);let u;if(l>f?u="next":l<f?u="prev":u="reset",h&&-d===n.translate||!h&&d===n.translate)return n.updateActiveIndex(l),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),o.effect!=="slide"&&n.setTranslate(d),u!=="reset"&&(n.transitionStart(i,u),n.transitionEnd(i,u)),!1;if(o.cssMode){const g=n.isHorizontal(),v=h?d:-d;if(t===0){const T=n.virtual&&n.params.virtual.enabled;T&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),T&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[g?"scrollLeft":"scrollTop"]=v})):p[g?"scrollLeft":"scrollTop"]=v,T&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return Me({swiper:n,targetPosition:v,side:g?"left":"top"}),!0;p.scrollTo({[g?"left":"top"]:v,behavior:"smooth"})}return!0}return n.setTransition(t),n.setTranslate(d),n.updateActiveIndex(l),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,u),t===0?n.transitionEnd(i,u):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(v){!n||n.destroyed||v.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,u))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function Pt(e=0,t=this.params.speed,i=!0,s){typeof e=="string"&&(e=parseInt(e,10));const r=this;let n=e;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?n=n+r.virtual.slidesBefore:n=r.getSlideIndexByData(n)),r.slideTo(n,t,i,s)}function Lt(e=this.params.speed,t=!0,i){const s=this,{enabled:r,params:n,animating:l}=s;if(!r)return s;let o=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndex<n.slidesPerGroupSkip?1:o,c=s.virtual&&n.virtual.enabled;if(n.loop){if(l&&!c&&n.loopPreventsSliding)return!1;s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft}return n.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+a,e,t,i)}function It(e=this.params.speed,t=!0,i){const s=this,{params:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:a,animating:c}=s;if(!a)return s;const m=s.virtual&&r.virtual.enabled;if(r.loop){if(c&&!m&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=o?s.translate:-s.translate;function h(d){return d<0?-Math.floor(Math.abs(d)):Math.floor(d)}const p=h(f),x=n.map(d=>h(d));let b=n[x.indexOf(p)-1];if(typeof b>"u"&&r.cssMode){let d;n.forEach((u,g)=>{p>=u&&(d=g)}),typeof d<"u"&&(b=n[d>0?d-1:d])}let E=0;if(typeof b<"u"&&(E=l.indexOf(b),E<0&&(E=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(E=E-s.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),r.rewind&&s.isBeginning){const d=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(d,e,t,i)}return s.slideTo(E,e,t,i)}function Ot(e=this.params.speed,t=!0,i){const s=this;return s.slideTo(s.activeIndex,e,t,i)}function zt(e=this.params.speed,t=!0,i,s=.5){const r=this;let n=r.activeIndex;const l=Math.min(r.params.slidesPerGroupSkip,n),o=l+Math.floor((n-l)/r.params.slidesPerGroup),a=r.rtlTranslate?r.translate:-r.translate;if(a>=r.snapGrid[o]){const c=r.snapGrid[o],m=r.snapGrid[o+1];a-c>(m-c)*s&&(n+=r.params.slidesPerGroup)}else{const c=r.snapGrid[o-1],m=r.snapGrid[o];a-c<=(m-c)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,i)}function At(){const e=this,{params:t,slidesEl:i}=e,s=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.clickedIndex,n;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-s/2||r>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),r=e.getSlideIndex(N(i,`${l}[data-swiper-slide-index="${n}"]`)[0]),fe(()=>{e.slideTo(r)})):e.slideTo(r):r>e.slides.length-s?(e.loopFix(),r=e.getSlideIndex(N(i,`${l}[data-swiper-slide-index="${n}"]`)[0]),fe(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}const _t={slideTo:Mt,slideToLoop:Pt,slideNext:Lt,slidePrev:It,slideReset:Ot,slideToClosest:zt,slideToClickedSlide:At};function $t(e){const t=this,{params:i,slidesEl:s}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;N(s,`.${i.slideClass}, swiper-slide`).forEach((n,l)=>{n.setAttribute("data-swiper-slide-index",l)}),t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})}function Gt({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:s,activeSlideIndex:r,byController:n,byMousewheel:l}={}){const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:a,allowSlidePrev:c,allowSlideNext:m,slidesEl:f,params:h}=o;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&h.virtual.enabled){t&&(!h.centeredSlides&&o.snapIndex===0?o.slideTo(o.virtual.slides.length,0,!1,!0):h.centeredSlides&&o.snapIndex<h.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=m,o.emit("loopFix");return}const p=h.slidesPerView==="auto"?o.slidesPerViewDynamic():Math.ceil(parseFloat(h.slidesPerView,10));let x=h.loopedSlides||p;x%h.slidesPerGroup!==0&&(x+=h.slidesPerGroup-x%h.slidesPerGroup),o.loopedSlides=x;const b=[],E=[];let d=o.activeIndex;typeof r>"u"?r=o.getSlideIndex(o.slides.filter(C=>C.classList.contains(h.slideActiveClass))[0]):d=r;const u=i==="next"||!i,g=i==="prev"||!i;let v=0,T=0;if(r<x){v=Math.max(x-r,h.slidesPerGroup);for(let C=0;C<x-r;C+=1){const I=C-Math.floor(C/a.length)*a.length;b.push(a.length-I-1)}}else if(r>o.slides.length-x*2){T=Math.max(r-(o.slides.length-x*2),h.slidesPerGroup);for(let C=0;C<T;C+=1){const I=C-Math.floor(C/a.length)*a.length;E.push(I)}}if(g&&b.forEach(C=>{o.slides[C].swiperLoopMoveDOM=!0,f.prepend(o.slides[C]),o.slides[C].swiperLoopMoveDOM=!1}),u&&E.forEach(C=>{o.slides[C].swiperLoopMoveDOM=!0,f.append(o.slides[C]),o.slides[C].swiperLoopMoveDOM=!1}),o.recalcSlides(),h.slidesPerView==="auto"&&o.updateSlides(),h.watchSlidesProgress&&o.updateSlidesOffset(),t){if(b.length>0&&g)if(typeof e>"u"){const C=o.slidesGrid[d],S=o.slidesGrid[d+v]-C;l?o.setTranslate(o.translate-S):(o.slideTo(d+v,0,!1,!0),s&&(o.touches[o.isHorizontal()?"startX":"startY"]+=S))}else s&&o.slideToLoop(e,0,!1,!0);else if(E.length>0&&u)if(typeof e>"u"){const C=o.slidesGrid[d],S=o.slidesGrid[d-T]-C;l?o.setTranslate(o.translate-S):(o.slideTo(d-T,0,!1,!0),s&&(o.touches[o.isHorizontal()?"startX":"startY"]+=S))}else o.slideToLoop(e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=m,o.controller&&o.controller.control&&!n){const C={slideRealIndex:e,slideTo:!1,direction:i,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach(I=>{!I.destroyed&&I.params.loop&&I.loopFix(C)}):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix(C)}o.emit("loopFix")}function Bt(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[n]=r}),e.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{i.append(r)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const Dt={loopCreate:$t,loopFix:Gt,loopDestroy:Bt};function kt(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Nt(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const Vt={setGrabCursor:kt,unsetGrabCursor:Nt};function jt(e,t=this){function i(s){if(!s||s===R()||s===D())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(e);return!r&&!s.getRootNode?null:r||i(s.getRootNode().host)}return i(t)}function Ft(e){const t=this,i=R(),s=D(),r=t.touchEventsData;r.evCache.push(e);const{params:n,touches:l,enabled:o}=t;if(!o||!n.simulateTouch&&e.pointerType==="mouse"||t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let a=e;a.originalEvent&&(a=a.originalEvent);let c=a.target;if(n.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in a&&a.which===3||"button"in a&&a.button>0||r.isTouched&&r.isMoved)return;const m=!!n.noSwipingClass&&n.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;m&&a.target&&a.target.shadowRoot&&f&&(c=f[0]);const h=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,p=!!(a.target&&a.target.shadowRoot);if(n.noSwiping&&(p?jt(h,c):c.closest(h))){t.allowClick=!0;return}if(n.swipeHandler&&!c.closest(n.swipeHandler))return;l.currentX=a.pageX,l.currentY=a.pageY;const x=l.currentX,b=l.currentY,E=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,d=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(E&&(x<=d||x>=s.innerWidth-d))if(E==="prevent")e.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=x,l.startY=b,r.touchStartTime=te(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let u=!0;c.matches(r.focusableElements)&&(u=!1,c.nodeName==="SELECT"&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==c&&i.activeElement.blur();const g=u&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||g)&&!c.isContentEditable&&a.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}function Ht(e){const t=R(),i=this,s=i.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:o}=i;if(!o||!r.simulateTouch&&e.pointerType==="mouse")return;let a=e;if(a.originalEvent&&(a=a.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",a);return}const c=s.evCache.findIndex(C=>C.pointerId===a.pointerId);c>=0&&(s.evCache[c]=a);const m=s.evCache.length>1?s.evCache[0]:a,f=m.pageX,h=m.pageY;if(a.preventedByNestedSwiper){n.startX=f,n.startY=h;return}if(!i.allowTouchMove){a.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:f,startY:h,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:f,currentY:h}),s.touchStartTime=te());return}if(r.touchReleaseOnEdges&&!r.loop){if(i.isVertical()){if(h<n.startY&&i.translate<=i.maxTranslate()||h>n.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(f<n.startX&&i.translate<=i.maxTranslate()||f>n.startX&&i.translate>=i.minTranslate())return}if(t.activeElement&&a.target===t.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}if(s.allowTouchCallbacks&&i.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;n.currentX=f,n.currentY=h;const p=n.currentX-n.startX,x=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(p**2+x**2)<i.params.threshold)return;if(typeof s.isScrolling>"u"){let C;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:p*p+x*x>=25&&(C=Math.atan2(Math.abs(x),Math.abs(p))*180/Math.PI,s.isScrolling=i.isHorizontal()?C>r.touchAngle:90-C>r.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation();let b=i.isHorizontal()?p:x,E=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(b=Math.abs(b)*(l?1:-1),E=Math.abs(E)*(l?1:-1)),n.diff=b,b*=r.touchRatio,l&&(b=-b,E=-E);const d=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=E>0?"prev":"next";const u=i.params.loop&&!r.cssMode;if(!s.isMoved){if(u&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const C=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(C)}s.allowMomentumBounce=!1,r.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let g;s.isMoved&&d!==i.touchesDirection&&u&&Math.abs(b)>=1&&(i.loopFix({direction:i.swipeDirection,setTranslate:!0}),g=!0),i.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=b+s.startTranslate;let v=!0,T=r.resistanceRatio;if(r.touchReleaseOnEdges&&(T=0),b>0?(u&&!g&&s.currentTranslate>(r.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(v=!1,r.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+b)**T))):b<0&&(u&&!g&&s.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(r.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(v=!1,r.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-b)**T))),v&&(a.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(b)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Rt(e){const t=this,i=t.touchEventsData,s=i.evCache.findIndex(g=>g.pointerId===e.pointerId);if(s>=0&&i.evCache.splice(s,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:r,touches:n,rtlTranslate:l,slidesGrid:o,enabled:a}=t;if(!a||!r.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const m=te(),f=m-i.touchStartTime;if(t.allowClick){const g=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(g&&g[0]||c.target),t.emit("tap click",c),f<300&&m-i.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(i.lastClickTime=te(),fe(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||n.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let h;if(r.followFinger?h=l?t.translate:-t.translate:h=-i.currentTranslate,r.cssMode)return;if(t.params.freeMode&&r.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:h});return}let p=0,x=t.slidesSizesGrid[0];for(let g=0;g<o.length;g+=g<r.slidesPerGroupSkip?1:r.slidesPerGroup){const v=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof o[g+v]<"u"?h>=o[g]&&h<o[g+v]&&(p=g,x=o[g+v]-o[g]):h>=o[g]&&(p=g,x=o[o.length-1]-o[o.length-2])}let b=null,E=null;r.rewind&&(t.isBeginning?E=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const d=(h-o[p])/x,u=p<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(d>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?b:p+u):t.slideTo(p)),t.swipeDirection==="prev"&&(d>1-r.longSwipesRatio?t.slideTo(p+u):E!==null&&d<0&&Math.abs(d)>r.longSwipesRatio?t.slideTo(E):t.slideTo(p))}else{if(!r.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+u):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:p+u),t.swipeDirection==="prev"&&t.slideTo(E!==null?E:p))}}function xe(){const e=this,{params:t,el:i}=e;if(i&&i.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!o?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,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=r,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function Wt(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Xt(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let r;const n=e.maxTranslate()-e.minTranslate();n===0?r=0:r=(e.translate-e.minTranslate())/n,r!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Yt(e){const t=this;Q(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let we=!1;function qt(){}const ze=(e,t)=>{const i=R(),{params:s,el:r,wrapperEl:n,device:l}=e,o=!!s.nested,a=t==="on"?"addEventListener":"removeEventListener",c=t;r[a]("pointerdown",e.onTouchStart,{passive:!1}),i[a]("pointermove",e.onTouchMove,{passive:!1,capture:o}),i[a]("pointerup",e.onTouchEnd,{passive:!0}),i[a]("pointercancel",e.onTouchEnd,{passive:!0}),i[a]("pointerout",e.onTouchEnd,{passive:!0}),i[a]("pointerleave",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[a]("click",e.onClick,!0),s.cssMode&&n[a]("scroll",e.onScroll),s.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",xe,!0):e[c]("observerUpdate",xe,!0),r[a]("load",e.onLoad,{capture:!0})};function Ut(){const e=this,t=R(),{params:i}=e;e.onTouchStart=Ft.bind(e),e.onTouchMove=Ht.bind(e),e.onTouchEnd=Rt.bind(e),i.cssMode&&(e.onScroll=Xt.bind(e)),e.onClick=Wt.bind(e),e.onLoad=Yt.bind(e),we||(t.addEventListener("touchstart",qt),we=!0),ze(e,"on")}function Kt(){ze(this,"off")}const Zt={attachEvents:Ut,detachEvents:Kt},Te=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Jt(){const e=this,{realIndex:t,initialized:i,params:s,el:r}=e,n=s.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const l=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const a=(l in n?n[l]:void 0)||e.originalParams,c=Te(e,s),m=Te(e,a),f=s.enabled;c&&!m?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&m&&(r.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(b=>{const E=s[b]&&s[b].enabled,d=a[b]&&a[b].enabled;E&&!d&&e[b].disable(),!E&&d&&e[b].enable()});const h=a.direction&&a.direction!==s.direction,p=s.loop&&(a.slidesPerView!==s.slidesPerView||h);h&&i&&e.changeDirection(),B(e.params,a);const x=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!x?e.disable():!f&&x&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",a),p&&i&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",a)}function Qt(e,t="window",i){if(!e||t==="container"&&!i)return;let s=!1;const r=D(),n=t==="window"?r.innerHeight:i.clientHeight,l=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const a=parseFloat(o.substr(1));return{value:n*a,point:o}}return{value:o,point:o}});l.sort((o,a)=>parseInt(o.value,10)-parseInt(a.value,10));for(let o=0;o<l.length;o+=1){const{point:a,value:c}=l[o];t==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(s=a):c<=i.clientWidth&&(s=a)}return s||"max"}const ei={setBreakpoint:Jt,getBreakpoint:Qt};function ti(e,t){const i=[];return e.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(r=>{s[r]&&i.push(t+r)}):typeof s=="string"&&i.push(t+s)}),i}function ii(){const e=this,{classNames:t,params:i,rtl:s,el:r,device:n}=e,l=ti(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...l),r.classList.add(...t),e.emitContainerClasses()}function si(){const e=this,{el:t,classNames:i}=e;t.classList.remove(...i),e.emitContainerClasses()}const ni={addClasses:ii,removeClasses:si};function ri(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const r=e.slides.length-1,n=e.slidesGrid[r]+e.slidesSizesGrid[r]+s*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;i.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),i.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const ai={checkOverflow:ri},ye={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,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,loopedSlides:null,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",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-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(s={}){const r=Object.keys(s)[0],n=s[r];if(typeof n!="object"||n===null){B(t,s);return}if(["navigation","pagination","scrollbar"].indexOf(r)>=0&&e[r]===!0&&(e[r]={auto:!0}),!(r in e&&"enabled"in n)){B(t,s);return}e[r]===!0&&(e[r]={enabled:!0}),typeof e[r]=="object"&&!("enabled"in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),B(t,s)}}const de={eventsEmitter:nt,update:ht,translate:wt,transition:Et,slide:_t,loop:Dt,grabCursor:Vt,events:Zt,breakpoints:ei,checkOverflow:ai,classes:ni},ce={};let Y=class V{constructor(...t){let i,s;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?s=t[0]:[i,s]=t,s||(s={}),s=B({},s),i&&!s.el&&(s.el=i);const r=R();if(s.el&&typeof s.el=="string"&&r.querySelectorAll(s.el).length>1){const a=[];return r.querySelectorAll(s.el).forEach(c=>{const m=B({},s,{el:c});a.push(new V(m))}),a}const n=this;n.__swiper__=!0,n.support=Ie(),n.device=Qe({userAgent:s.userAgent}),n.browser=tt(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],s.modules&&Array.isArray(s.modules)&&n.modules.push(...s.modules);const l={};n.modules.forEach(a=>{a({params:s,swiper:n,extendParams:li(s,l),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const o=B({},ye,l);return n.params=B({},o,ce,s),n.originalParams=B({},n.params),n.passedParams=B({},s),n.params&&n.params.on&&Object.keys(n.params.on).forEach(a=>{n.on(a,n.params.on[a])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},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:n.params.allowSlideNext,allowSlidePrev:n.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:n.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}getSlideIndex(t){const{slidesEl:i,params:s}=this,r=N(i,`.${s.slideClass}, swiper-slide`),n=ie(r[0]);return ie(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:i,params:s}=t;t.slides=N(i,`.${s.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,i){const s=this;t=Math.min(Math.max(t,0),1);const r=s.minTranslate(),l=(s.maxTranslate()-r)*t+r;s.translateTo(l,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=t.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",i.join(" "))}getSlideClasses(t){const i=this;return i.destroyed?"":t.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=[];t.slides.forEach(s=>{const r=t.getSlideClasses(s);i.push({slideEl:s,classNames:r}),t.emit("_slideClass",s,r)}),t.emit("_slideClasses",i)}slidesPerViewDynamic(t="current",i=!1){const s=this,{params:r,slides:n,slidesGrid:l,slidesSizesGrid:o,size:a,activeIndex:c}=s;let m=1;if(r.centeredSlides){let f=n[c].swiperSlideSize,h;for(let p=c+1;p<n.length;p+=1)n[p]&&!h&&(f+=n[p].swiperSlideSize,m+=1,f>a&&(h=!0));for(let p=c-1;p>=0;p-=1)n[p]&&!h&&(f+=n[p].swiperSlideSize,m+=1,f>a&&(h=!0))}else if(t==="current")for(let f=c+1;f<n.length;f+=1)(i?l[f]+o[f]-l[c]<a:l[f]-l[c]<a)&&(m+=1);else for(let f=c-1;f>=0;f-=1)l[c]-l[f]<a&&(m+=1);return m}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:i,params:s}=t;s.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&Q(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function r(){const l=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let n;if(t.params.freeMode&&t.params.freeMode.enabled)r(),t.params.autoHeight&&t.updateAutoHeight();else{if((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides){const l=t.virtual&&t.params.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(l.length-1,0,!1,!0)}else n=t.slideTo(t.activeIndex,0,!1,!0);n||r()}s.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,i=!0){const s=this,r=s.params.direction;return t||(t=r==="horizontal"?"vertical":"horizontal"),t===r||t!=="horizontal"&&t!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${r}`),s.el.classList.add(`${s.params.containerModifierClass}${t}`),s.emitContainerClasses(),s.params.direction=t,s.slides.forEach(n=>{t==="vertical"?n.style.width="":n.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(t){const i=this;i.rtl&&t==="rtl"||!i.rtl&&t==="ltr"||(i.rtl=t==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(t){const i=this;if(i.mounted)return!0;let s=t||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.shadowEl&&(i.isElement=!0);const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):N(s,r())[0])();return!l&&i.params.createElements&&(l=Pe("div",i.params.wrapperClass),s.append(l),N(s,`.${i.params.slideClass}`).forEach(o=>{l.append(o)})),Object.assign(i,{el:s,wrapperEl:l,slidesEl:i.isElement?s:l,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||j(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||j(s,"direction")==="rtl"),wrongRTL:j(l,"display")==="-webkit-box"}),!0}init(t){const i=this;return i.initialized||i.mount(t)===!1||(i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents(),[...i.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete?Q(i,r):r.addEventListener("load",n=>{Q(i,n.target)})}),pe(i),i.initialized=!0,pe(i),i.emit("init"),i.emit("afterInit")),i}destroy(t=!0,i=!0){const s=this,{params:r,el:n,wrapperEl:l,slides:o}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),r.loop&&s.loopDestroy(),i&&(s.removeClasses(),n.removeAttribute("style"),l.removeAttribute("style"),o&&o.length&&o.forEach(a=>{a.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(a=>{s.off(a)}),t!==!1&&(s.el.swiper=null,We(s)),s.destroyed=!0),null}static extendDefaults(t){B(ce,t)}static get extendedDefaults(){return ce}static get defaults(){return ye}static installModule(t){V.prototype.__modules__||(V.prototype.__modules__=[]);const i=V.prototype.__modules__;typeof t=="function"&&i.indexOf(t)<0&&i.push(t)}static use(t){return Array.isArray(t)?(t.forEach(i=>V.installModule(i)),V):(V.installModule(t),V)}};Object.keys(de).forEach(e=>{Object.keys(de[e]).forEach(t=>{Y.prototype[t]=de[e][t]})});Y.use([it,st]);function oi(e,t,i,s){return e.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&i.auto===!0){let n=N(e.el,`.${s[r]}`)[0];n||(n=Pe("div",s[r]),n.className=s[r],e.el.append(n)),i[r]=n,t[r]=n}}),i}function W(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function di({swiper:e,extendParams:t,on:i,emit:s}){const r="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:d=>d,formatFractionTotal:d=>d,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,bullets:[]};let n,l=0;const o=d=>(Array.isArray(d)||(d=[d].filter(u=>!!u)),d);function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(d,u){const{bulletActiveClass:g}=e.params.pagination;d&&(d=d[`${u==="prev"?"previous":"next"}ElementSibling`],d&&(d.classList.add(`${g}-${u}`),d=d[`${u==="prev"?"previous":"next"}ElementSibling`],d&&d.classList.add(`${g}-${u}-${u}`)))}function m(d){const u=d.target.closest(W(e.params.pagination.bulletClass));if(!u)return;d.preventDefault();const g=ie(u)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===g)return;const v=e.getSlideIndexByData(g),T=e.getSlideIndexByData(e.realIndex);v>e.slides.length-e.loopedSlides&&e.loopFix({direction:v>T?"next":"prev",activeSlideIndex:v,slideTo:!1}),e.slideToLoop(g)}else e.slideTo(g)}function f(){const d=e.rtl,u=e.params.pagination;if(a())return;let g=e.pagination.el;g=o(g);let v,T;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,I=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(T=e.previousRealIndex||0,v=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(v=e.snapIndex,T=e.previousSnapIndex):(T=e.previousIndex||0,v=e.activeIndex||0),u.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const S=e.pagination.bullets;let P,A,y;if(u.dynamicBullets&&(n=ue(S[0],e.isHorizontal()?"width":"height",!0),g.forEach(w=>{w.style[e.isHorizontal()?"width":"height"]=`${n*(u.dynamicMainBullets+4)}px`}),u.dynamicMainBullets>1&&T!==void 0&&(l+=v-(T||0),l>u.dynamicMainBullets-1?l=u.dynamicMainBullets-1:l<0&&(l=0)),P=Math.max(v-l,0),A=P+(Math.min(S.length,u.dynamicMainBullets)-1),y=(A+P)/2),S.forEach(w=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${u.bulletActiveClass}${L}`)].map(L=>typeof L=="string"&&L.includes(" ")?L.split(" "):L).flat();w.classList.remove(...M)}),g.length>1)S.forEach(w=>{const M=ie(w);M===v&&w.classList.add(...u.bulletActiveClass.split(" ")),u.dynamicBullets&&(M>=P&&M<=A&&w.classList.add(...`${u.bulletActiveClass}-main`.split(" ")),M===P&&c(w,"prev"),M===A&&c(w,"next"))});else{const w=S[v];if(w&&w.classList.add(...u.bulletActiveClass.split(" ")),u.dynamicBullets){const M=S[P],L=S[A];for(let G=P;G<=A;G+=1)S[G]&&S[G].classList.add(...`${u.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(L,"next")}}if(u.dynamicBullets){const w=Math.min(S.length,u.dynamicMainBullets+4),M=(n*w-n)/2-y*n,L=d?"right":"left";S.forEach(G=>{G.style[e.isHorizontal()?L:"top"]=`${M}px`})}}g.forEach((S,P)=>{if(u.type==="fraction"&&(S.querySelectorAll(W(u.currentClass)).forEach(A=>{A.textContent=u.formatFractionCurrent(v+1)}),S.querySelectorAll(W(u.totalClass)).forEach(A=>{A.textContent=u.formatFractionTotal(I)})),u.type==="progressbar"){let A;u.progressbarOpposite?A=e.isHorizontal()?"vertical":"horizontal":A=e.isHorizontal()?"horizontal":"vertical";const y=(v+1)/I;let w=1,M=1;A==="horizontal"?w=y:M=y,S.querySelectorAll(W(u.progressbarFillClass)).forEach(L=>{L.style.transform=`translate3d(0,0,0) scaleX(${w}) scaleY(${M})`,L.style.transitionDuration=`${e.params.speed}ms`})}u.type==="custom"&&u.renderCustom?(S.innerHTML=u.renderCustom(e,v+1,I),P===0&&s("paginationRender",S)):(P===0&&s("paginationRender",S),s("paginationUpdate",S)),e.params.watchOverflow&&e.enabled&&S.classList[e.isLocked?"add":"remove"](u.lockClass)})}function h(){const d=e.params.pagination;if(a())return;const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let g=e.pagination.el;g=o(g);let v="";if(d.type==="bullets"){let T=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&T>u&&(T=u);for(let C=0;C<T;C+=1)d.renderBullet?v+=d.renderBullet.call(e,C,d.bulletClass):v+=`<${d.bulletElement} class="${d.bulletClass}"></${d.bulletElement}>`}d.type==="fraction"&&(d.renderFraction?v=d.renderFraction.call(e,d.currentClass,d.totalClass):v=`<span class="${d.currentClass}"></span> / <span class="${d.totalClass}"></span>`),d.type==="progressbar"&&(d.renderProgressbar?v=d.renderProgressbar.call(e,d.progressbarFillClass):v=`<span class="${d.progressbarFillClass}"></span>`),e.pagination.bullets=[],g.forEach(T=>{d.type!=="custom"&&(T.innerHTML=v||""),d.type==="bullets"&&e.pagination.bullets.push(...T.querySelectorAll(W(d.bulletClass)))}),d.type!=="custom"&&s("paginationRender",g[0])}function p(){e.params.pagination=oi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const d=e.params.pagination;if(!d.el)return;let u;typeof d.el=="string"&&e.isElement&&(u=e.el.shadowRoot.querySelector(d.el)),!u&&typeof d.el=="string"&&(u=[...document.querySelectorAll(d.el)]),u||(u=d.el),!(!u||u.length===0)&&(e.params.uniqueNavElements&&typeof d.el=="string"&&Array.isArray(u)&&u.length>1&&(u=[...e.el.querySelectorAll(d.el)],u.length>1&&(u=u.filter(g=>Le(g,".swiper")[0]===e.el)[0])),Array.isArray(u)&&u.length===1&&(u=u[0]),Object.assign(e.pagination,{el:u}),u=o(u),u.forEach(g=>{d.type==="bullets"&&d.clickable&&g.classList.add(d.clickableClass),g.classList.add(d.modifierClass+d.type),g.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(g.classList.add(`${d.modifierClass}${d.type}-dynamic`),l=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&g.classList.add(d.progressbarOppositeClass),d.clickable&&g.addEventListener("click",m),e.enabled||g.classList.add(d.lockClass)}))}function x(){const d=e.params.pagination;if(a())return;let u=e.pagination.el;u&&(u=o(u),u.forEach(g=>{g.classList.remove(d.hiddenClass),g.classList.remove(d.modifierClass+d.type),g.classList.remove(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.clickable&&g.removeEventListener("click",m)})),e.pagination.bullets&&e.pagination.bullets.forEach(g=>g.classList.remove(...d.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const d=e.params.pagination;let{el:u}=e.pagination;u=o(u),u.forEach(g=>{g.classList.remove(d.horizontalClass,d.verticalClass),g.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass)})}),i("init",()=>{e.params.pagination.enabled===!1?E():(p(),h(),f())}),i("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),i("snapIndexChange",()=>{f()}),i("snapGridLengthChange",()=>{h(),f()}),i("destroy",()=>{x()}),i("enable disable",()=>{let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),i("lock unlock",()=>{f()}),i("click",(d,u)=>{const g=u.target;let{el:v}=e.pagination;if(Array.isArray(v)||(v=[v].filter(T=>!!T)),e.params.pagination.el&&e.params.pagination.hideOnClick&&v&&v.length>0&&!g.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&g===e.navigation.nextEl||e.navigation.prevEl&&g===e.navigation.prevEl))return;const T=v[0].classList.contains(e.params.pagination.hiddenClass);s(T===!0?"paginationShow":"paginationHide"),v.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList.remove(e.params.pagination.paginationDisabledClass))),p(),h(),f()},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList.add(e.params.pagination.paginationDisabledClass))),x()};Object.assign(e.pagination,{enable:b,disable:E,render:h,update:f,init:p,destroy:x})}function H(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function F(e,t){const i=["__proto__","constructor","prototype"];Object.keys(t).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof e[s]>"u"?e[s]=t[s]:H(t[s])&&H(e[s])&&Object.keys(t[s]).length>0?t[s].__swiper__?e[s]=t[s]:F(e[s],t[s]):e[s]=t[s]})}function Ae(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function _e(e={}){return e.pagination&&typeof e.pagination.el>"u"}function $e(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Ge(e=""){const t=e.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return t.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function ci(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Be=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function fi(e={},t=!0){const i={on:{}},s={},r={};F(i,Y.defaults),F(i,Y.extendedDefaults),i._emitClasses=!0,i.init=!1;const n={},l=Be.map(a=>a.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(a=>{typeof e[a]>"u"||(l.indexOf(a)>=0?H(e[a])?(i[a]={},r[a]={},F(i[a],e[a]),F(r[a],e[a])):(i[a]=e[a],r[a]=e[a]):a.search(/on[A-Z]/)===0&&typeof e[a]=="function"?t?s[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(a=>{i[a]===!0&&(i[a]={}),i[a]===!1&&delete i[a]}),{params:i,passedParams:r,rest:n,events:s}}function ui({el:e,nextEl:t,prevEl:i,paginationEl:s,scrollbarEl:r,swiper:n},l){Ae(l)&&t&&i&&(n.params.navigation.nextEl=t,n.originalParams.navigation.nextEl=t,n.params.navigation.prevEl=i,n.originalParams.navigation.prevEl=i),_e(l)&&s&&(n.params.pagination.el=s,n.originalParams.pagination.el=s),$e(l)&&r&&(n.params.scrollbar.el=r,n.originalParams.scrollbar.el=r),n.init(e)}function pi(e,t,i,s,r){const n=[];if(!t)return n;const l=a=>{n.indexOf(a)<0&&n.push(a)};if(i&&s){const a=s.map(r),c=i.map(r);a.join("")!==c.join("")&&l("children"),s.length!==i.length&&l("children")}return Be.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(H(e[a])&&H(t[a])){const c=Object.keys(e[a]),m=Object.keys(t[a]);c.length!==m.length?l(a):(c.forEach(f=>{e[a][f]!==t[a][f]&&l(a)}),m.forEach(f=>{e[a][f]!==t[a][f]&&l(a)}))}else e[a]!==t[a]&&l(a)}),n}function De(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ke(e){const t=[];return z.Children.toArray(e).forEach(i=>{De(i)?t.push(i):i.props&&i.props.children&&ke(i.props.children).forEach(s=>t.push(s))}),t}function mi(e){const t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return z.Children.toArray(e).forEach(s=>{if(De(s))t.push(s);else if(s.props&&s.props.slot&&i[s.props.slot])i[s.props.slot].push(s);else if(s.props&&s.props.children){const r=ke(s.props.children);r.length>0?r.forEach(n=>t.push(n)):i["container-end"].push(s)}else i["container-end"].push(s)}),{slides:t,slots:i}}function hi({swiper:e,slides:t,passedParams:i,changedParams:s,nextEl:r,prevEl:n,scrollbarEl:l,paginationEl:o}){const a=s.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:c,pagination:m,navigation:f,scrollbar:h,virtual:p,thumbs:x}=e;let b,E,d,u,g,v,T,C;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(b=!0),s.includes("controller")&&i.controller&&i.controller.control&&c.controller&&!c.controller.control&&(E=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||o)&&(c.pagination||c.pagination===!1)&&m&&!m.el&&(d=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||l)&&(c.scrollbar||c.scrollbar===!1)&&h&&!h.el&&(u=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||n)&&(i.navigation.nextEl||r)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(g=!0);const I=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),c[S].prevEl=void 0,c[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),c[S].el=void 0,e[S].el=void 0))};s.includes("loop")&&e.isElement&&(c.loop&&!i.loop?v=!0:!c.loop&&i.loop?T=!0:C=!0),a.forEach(S=>{if(H(c[S])&&H(i[S]))F(c[S],i[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in i[S]&&!i[S].enabled&&I(S);else{const P=i[S];(P===!0||P===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?P===!1&&I(S):c[S]=i[S]}}),a.includes("controller")&&!E&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),s.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),s.includes("children")&&t&&c.loop&&(C=!0),b&&x.init()&&x.update(!0),E&&(e.controller.control=c.controller.control),d&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(o)),o&&(c.pagination.el=o),m.init(),m.render(),m.update()),u&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(c.scrollbar.el=l),h.init(),h.updateSize(),h.setTranslate()),g&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(r)),(!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(n))),r&&(c.navigation.nextEl=r),n&&(c.navigation.prevEl=n),f.init(),f.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),(v||C)&&e.loopDestroy(),(T||C)&&e.loopCreate(),e.update()}function gi(e,t,i){if(!i)return null;const s=m=>{let f=m;return m<0?f=t.length+m:f>=t.length&&(f=f-t.length),f},r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:l}=i,o=e.params.loop?-t.length:0,a=e.params.loop?t.length*2:t.length,c=[];for(let m=o;m<a;m+=1)m>=n&&m<=l&&c.push(t[s(m)]);return c.map((m,f)=>z.cloneElement(m,{swiper:e,style:r,key:`slide-${f}`}))}const vi=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function X(e,t){return typeof window>"u"?O.useEffect(e,t):O.useLayoutEffect(e,t)}const Ce=O.createContext(null),Si=O.createContext(null);function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},me.apply(this,arguments)}const Ne=O.forwardRef(function(e,t){let{className:i,tag:s="div",wrapperTag:r="div",children:n,onSwiper:l,...o}=e===void 0?{}:e,a=!1;const[c,m]=O.useState("swiper"),[f,h]=O.useState(null),[p,x]=O.useState(!1),b=O.useRef(!1),E=O.useRef(null),d=O.useRef(null),u=O.useRef(null),g=O.useRef(null),v=O.useRef(null),T=O.useRef(null),C=O.useRef(null),I=O.useRef(null),{params:S,passedParams:P,rest:A,events:y}=fi(o),{slides:w,slots:M}=mi(n),L=()=>{x(!p)};Object.assign(S.on,{_containerClasses($,k){m(k)}});const G=()=>{Object.assign(S.on,y),a=!0;const $={...S};if(delete $.wrapperClass,d.current=new Y($),d.current.virtual&&d.current.params.virtual.enabled){d.current.virtual.slides=w;const k={cache:!1,slides:w,renderExternal:h,renderExternalUpdate:!1};F(d.current.params.virtual,k),F(d.current.originalParams.virtual,k)}};E.current||G(),d.current&&d.current.on("_beforeBreakpoint",L);const q=()=>{a||!y||!d.current||Object.keys(y).forEach($=>{d.current.on($,y[$])})},se=()=>{!y||!d.current||Object.keys(y).forEach($=>{d.current.off($,y[$])})};O.useEffect(()=>()=>{d.current&&d.current.off("_beforeBreakpoint",L)}),O.useEffect(()=>{!b.current&&d.current&&(d.current.emitSlidesClasses(),b.current=!0)}),X(()=>{if(t&&(t.current=E.current),!!E.current)return d.current.destroyed&&G(),ui({el:E.current,nextEl:v.current,prevEl:T.current,paginationEl:C.current,scrollbarEl:I.current,swiper:d.current},S),l&&l(d.current),()=>{d.current&&!d.current.destroyed&&d.current.destroy(!0,!1)}},[]),X(()=>{q();const $=pi(P,u.current,w,g.current,k=>k.key);return u.current=P,g.current=w,$.length&&d.current&&!d.current.destroyed&&hi({swiper:d.current,slides:w,passedParams:P,changedParams:$,nextEl:v.current,prevEl:T.current,scrollbarEl:I.current,paginationEl:C.current}),()=>{se()}}),X(()=>{vi(d.current)},[f]);function ne(){return S.virtual?gi(d.current,w,f):w.map(($,k)=>z.cloneElement($,{swiper:d.current,swiperSlideIndex:k}))}return z.createElement(s,me({ref:E,className:Ge(`${c}${i?` ${i}`:""}`)},A),z.createElement(Si.Provider,{value:d.current},M["container-start"],z.createElement(r,{className:ci(S.wrapperClass)},M["wrapper-start"],ne(),M["wrapper-end"]),Ae(S)&&z.createElement(z.Fragment,null,z.createElement("div",{ref:T,className:"swiper-button-prev"}),z.createElement("div",{ref:v,className:"swiper-button-next"})),$e(S)&&z.createElement("div",{ref:I,className:"swiper-scrollbar"}),_e(S)&&z.createElement("div",{ref:C,className:"swiper-pagination"}),M["container-end"]))});Ne.displayName="Swiper";function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},he.apply(this,arguments)}const ee=O.forwardRef(function(e,t){let{tag:i="div",children:s,className:r="",swiper:n,zoom:l,lazy:o,virtualIndex:a,swiperSlideIndex:c,...m}=e===void 0?{}:e;const f=O.useRef(null),[h,p]=O.useState("swiper-slide"),[x,b]=O.useState(!1);function E(v,T,C){T===f.current&&p(C)}X(()=>{if(typeof c<"u"&&(f.current.swiperSlideIndex=c),t&&(t.current=f.current),!(!f.current||!n)){if(n.destroyed){h!=="swiper-slide"&&p("swiper-slide");return}return n.on("_slideClass",E),()=>{n&&n.off("_slideClass",E)}}}),X(()=>{n&&f.current&&!n.destroyed&&p(n.getSlideClasses(f.current))},[n]);const d={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},u=()=>typeof s=="function"?s(d):s,g=()=>{b(!0)};return z.createElement(i,he({ref:f,className:Ge(`${h}${r?` ${r}`:""}`),"data-swiper-slide-index":a,onLoad:g},m),l&&z.createElement(Ce.Provider,{value:d},z.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},u(),o&&!x&&z.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&z.createElement(Ce.Provider,{value:d},u(),o&&!x&&z.createElement("div",{className:"swiper-lazy-preloader"})))});ee.displayName="SwiperSlide";function xi({isOpen:e,setIsOpen:t,handleSavePreference:i}){const{i18n:s,theme:r}=Fe(),[n,l]=O.useState(),[o,a]=O.useState(0);return e?He.createPortal(_.jsxs(U,{id:"TrashModal",onModalClose:()=>t(!1),size:"md",isOpen:e,focusId:"nextButtonId",children:[_.jsx(U.Header,{onModalClose:()=>t(!1),children:s("explorer.modal.onboarding.trash.title")}),_.jsx(U.Body,{children:_.jsxs(Ne,{modules:[di],onSwiper:c=>{l(c)},onSlideChange:c=>{a(c.progress)},pagination:{clickable:!0},children:[_.jsxs(ee,{children:[_.jsx(re,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/images/onboarding/corbeille-menu.svg`,alt:s("explorer.modal.onboarding.trash.screen1.alt")}),_.jsx("p",{children:s("explorer.modal.onboarding.trash.screen1.title")})]}),_.jsxs(ee,{children:[_.jsx(re,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/images/onboarding/corbeille-notif.svg`,alt:s("explorer.modal.onboarding.trash.screen2.alt")}),_.jsx("p",{children:s("explorer.modal.onboarding.trash.screen2.title")})]}),_.jsxs(ee,{children:[_.jsx(re,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/images/onboarding/corbeille-delete.svg`,alt:s("explorer.modal.onboarding.trash.screen3.alt")}),_.jsx("p",{children:s("explorer.modal.onboarding.trash.screen3.title")})]})]})}),_.jsxs(U.Footer,{children:[_.jsx(K,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>t(!1),children:s("explorer.modal.onboarding.trash.later")}),o>0&&_.jsx(K,{type:"button",color:"primary",variant:"outline",onClick:()=>n.slidePrev(),children:s("explorer.modal.onboarding.trash.prev")}),o<1&&_.jsx(K,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>n.slideNext(),children:s("explorer.modal.onboarding.trash.next")}),o===1&&_.jsx(K,{type:"button",color:"primary",variant:"filled",onClick:i,children:s("explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null}export{xi as default};
1
+ import{r as O,R as A,u as Fe,a as He,b as je,j as $,M as K,I as ae,B as U}from"./index.js";function we(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ge(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:we(e[i])&&we(t[i])&&Object.keys(e[i]).length>0&&ge(t[i],e[i])})}const Ee={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function W(){const t=typeof document<"u"?document:{};return ge(t,Ee),t}const ke={document:Ee,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function D(){const t=typeof window<"u"?window:{};return ge(t,ke),t}function We(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function pe(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function te(){return Date.now()}function Xe(t){const e=D();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Ye(t,e){e===void 0&&(e="x");const i=D();let s,n,r;const o=Xe(t);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(l=>l.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function Z(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function qe(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function B(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const s=i<0||arguments.length<=i?void 0:arguments[i];if(s!=null&&!qe(s)){const n=Object.keys(Object(s)).filter(r=>e.indexOf(r)<0);for(let r=0,o=n.length;r<o;r+=1){const l=n[r],a=Object.getOwnPropertyDescriptor(s,l);a!==void 0&&a.enumerable&&(Z(t[l])&&Z(s[l])?s[l].__swiper__?t[l]=s[l]:B(t[l],s[l]):!Z(t[l])&&Z(s[l])?(t[l]={},s[l].__swiper__?t[l]=s[l]:B(t[l],s[l])):t[l]=s[l])}}}return t}function J(t,e,i){t.style.setProperty(e,i)}function Ce(t){let{swiper:e,targetPosition:i,side:s}=t;const n=D(),r=-e.translate;let o=null,l;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const c=i>r?"next":"prev",u=(v,m)=>c==="next"&&v>=m||c==="prev"&&v<=m,p=()=>{l=new Date().getTime(),o===null&&(o=l);const v=Math.max(Math.min((l-o)/a,1),0),m=.5-Math.cos(v*Math.PI)/2;let T=r+m*(i-r);if(u(T,i)&&(T=i),e.wrapperEl.scrollTo({[s]:T}),u(T,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:T})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(p)};p()}function R(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Pe(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:[e]),i}function Ke(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function Ue(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function H(t,e){return D().getComputedStyle(t,null).getPropertyValue(e)}function ie(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Me(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function me(t,e,i){const s=D();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ze(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&i.auto===!0){let r=R(t.el,`.${s[n]}`)[0];r||(r=Pe("div",s[n]),r.className=s[n],t.el.append(r)),i[n]=r,e[n]=r}}),i}function X(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Je(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r="swiper-pagination";i({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:d=>d,formatFractionTotal:d=>d,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,bullets:[]};let o,l=0;const a=d=>(Array.isArray(d)||(d=[d].filter(f=>!!f)),d);function c(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(d,f){const{bulletActiveClass:h}=e.params.pagination;d&&(d=d[`${f==="prev"?"previous":"next"}ElementSibling`],d&&(d.classList.add(`${h}-${f}`),d=d[`${f==="prev"?"previous":"next"}ElementSibling`],d&&d.classList.add(`${h}-${f}-${f}`)))}function p(d){const f=d.target.closest(X(e.params.pagination.bulletClass));if(!f)return;d.preventDefault();const h=ie(f)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;const x=e.getSlideIndexByData(h),M=e.getSlideIndexByData(e.realIndex);x>e.slides.length-e.loopedSlides&&e.loopFix({direction:x>M?"next":"prev",activeSlideIndex:x,slideTo:!1}),e.slideToLoop(h)}else e.slideTo(h)}function v(){const d=e.rtl,f=e.params.pagination;if(c())return;let h=e.pagination.el;h=a(h);let x,M;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,L=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(M=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,M=e.previousSnapIndex):(M=e.previousIndex||0,x=e.activeIndex||0),f.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const w=e.pagination.bullets;let _,b,E;if(f.dynamicBullets&&(o=me(w[0],e.isHorizontal()?"width":"height",!0),h.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${o*(f.dynamicMainBullets+4)}px`}),f.dynamicMainBullets>1&&M!==void 0&&(l+=x-(M||0),l>f.dynamicMainBullets-1?l=f.dynamicMainBullets-1:l<0&&(l=0)),_=Math.max(x-l,0),b=_+(Math.min(w.length,f.dynamicMainBullets)-1),E=(b+_)/2),w.forEach(C=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(z=>`${f.bulletActiveClass}${z}`)].map(z=>typeof z=="string"&&z.includes(" ")?z.split(" "):z).flat();C.classList.remove(...I)}),h.length>1)w.forEach(C=>{const I=ie(C);I===x?C.classList.add(...f.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),f.dynamicBullets&&(I>=_&&I<=b&&C.classList.add(...`${f.bulletActiveClass}-main`.split(" ")),I===_&&u(C,"prev"),I===b&&u(C,"next"))});else{const C=w[x];if(C&&C.classList.add(...f.bulletActiveClass.split(" ")),e.isElement&&w.forEach((I,z)=>{I.setAttribute("part",z===x?"bullet-active":"bullet")}),f.dynamicBullets){const I=w[_],z=w[b];for(let N=_;N<=b;N+=1)w[N]&&w[N].classList.add(...`${f.bulletActiveClass}-main`.split(" "));u(I,"prev"),u(z,"next")}}if(f.dynamicBullets){const C=Math.min(w.length,f.dynamicMainBullets+4),I=(o*C-o)/2-E*o,z=d?"right":"left";w.forEach(N=>{N.style[e.isHorizontal()?z:"top"]=`${I}px`})}}h.forEach((w,_)=>{if(f.type==="fraction"&&(w.querySelectorAll(X(f.currentClass)).forEach(b=>{b.textContent=f.formatFractionCurrent(x+1)}),w.querySelectorAll(X(f.totalClass)).forEach(b=>{b.textContent=f.formatFractionTotal(L)})),f.type==="progressbar"){let b;f.progressbarOpposite?b=e.isHorizontal()?"vertical":"horizontal":b=e.isHorizontal()?"horizontal":"vertical";const E=(x+1)/L;let C=1,I=1;b==="horizontal"?C=E:I=E,w.querySelectorAll(X(f.progressbarFillClass)).forEach(z=>{z.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${I})`,z.style.transitionDuration=`${e.params.speed}ms`})}f.type==="custom"&&f.renderCustom?(w.innerHTML=f.renderCustom(e,x+1,L),_===0&&n("paginationRender",w)):(_===0&&n("paginationRender",w),n("paginationUpdate",w)),e.params.watchOverflow&&e.enabled&&w.classList[e.isLocked?"add":"remove"](f.lockClass)})}function m(){const d=e.params.pagination;if(c())return;const f=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let h=e.pagination.el;h=a(h);let x="";if(d.type==="bullets"){let M=e.params.loop?Math.ceil(f/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&M>f&&(M=f);for(let P=0;P<M;P+=1)d.renderBullet?x+=d.renderBullet.call(e,P,d.bulletClass):x+=`<${d.bulletElement} ${e.isElement?'part="bullet"':""} class="${d.bulletClass}"></${d.bulletElement}>`}d.type==="fraction"&&(d.renderFraction?x=d.renderFraction.call(e,d.currentClass,d.totalClass):x=`<span class="${d.currentClass}"></span> / <span class="${d.totalClass}"></span>`),d.type==="progressbar"&&(d.renderProgressbar?x=d.renderProgressbar.call(e,d.progressbarFillClass):x=`<span class="${d.progressbarFillClass}"></span>`),e.pagination.bullets=[],h.forEach(M=>{d.type!=="custom"&&(M.innerHTML=x||""),d.type==="bullets"&&e.pagination.bullets.push(...M.querySelectorAll(X(d.bulletClass)))}),d.type!=="custom"&&n("paginationRender",h[0])}function T(){e.params.pagination=Ze(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const d=e.params.pagination;if(!d.el)return;let f;typeof d.el=="string"&&e.isElement&&(f=e.el.querySelector(d.el)),!f&&typeof d.el=="string"&&(f=[...document.querySelectorAll(d.el)]),f||(f=d.el),!(!f||f.length===0)&&(e.params.uniqueNavElements&&typeof d.el=="string"&&Array.isArray(f)&&f.length>1&&(f=[...e.el.querySelectorAll(d.el)],f.length>1&&(f=f.filter(h=>Me(h,".swiper")[0]===e.el)[0])),Array.isArray(f)&&f.length===1&&(f=f[0]),Object.assign(e.pagination,{el:f}),f=a(f),f.forEach(h=>{d.type==="bullets"&&d.clickable&&h.classList.add(d.clickableClass),h.classList.add(d.modifierClass+d.type),h.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(h.classList.add(`${d.modifierClass}${d.type}-dynamic`),l=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&h.classList.add(d.progressbarOppositeClass),d.clickable&&h.addEventListener("click",p),e.enabled||h.classList.add(d.lockClass)}))}function S(){const d=e.params.pagination;if(c())return;let f=e.pagination.el;f&&(f=a(f),f.forEach(h=>{h.classList.remove(d.hiddenClass),h.classList.remove(d.modifierClass+d.type),h.classList.remove(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.clickable&&h.removeEventListener("click",p)})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...d.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const d=e.params.pagination;let{el:f}=e.pagination;f=a(f),f.forEach(h=>{h.classList.remove(d.horizontalClass,d.verticalClass),h.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?g():(T(),m(),v())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&v()}),s("snapIndexChange",()=>{v()}),s("snapGridLengthChange",()=>{m(),v()}),s("destroy",()=>{S()}),s("enable disable",()=>{let{el:d}=e.pagination;d&&(d=a(d),d.forEach(f=>f.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{v()}),s("click",(d,f)=>{const h=f.target,x=a(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const M=x[0].classList.contains(e.params.pagination.hiddenClass);n(M===!0?"paginationShow":"paginationHide"),x.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const y=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=a(d),d.forEach(f=>f.classList.remove(e.params.pagination.paginationDisabledClass))),T(),m(),v()},g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=a(d),d.forEach(f=>f.classList.add(e.params.pagination.paginationDisabledClass))),S()};Object.assign(e.pagination,{enable:y,disable:g,render:m,update:v,init:T,destroy:S})}let le;function Qe(){const t=D(),e=W();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Le(){return le||(le=Qe()),le}let oe;function et(t){let{userAgent:e}=t===void 0?{}:t;const i=Le(),s=D(),n=s.navigator.platform,r=e||s.navigator.userAgent,o={ios:!1,android:!1},l=s.screen.width,a=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let u=r.match(/(iPad).*OS\s([\d_]+)/);const p=r.match(/(iPod)(.*OS\s([\d_]+))?/),v=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=n==="Win32";let T=n==="MacIntel";const S=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&T&&i.touch&&S.indexOf(`${l}x${a}`)>=0&&(u=r.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),T=!1),c&&!m&&(o.os="android",o.android=!0),(u||v||p)&&(o.os="ios",o.ios=!0),o}function tt(t){return t===void 0&&(t={}),oe||(oe=et(t)),oe}let de;function it(){const t=D();let e=!1;function i(){const s=t.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(i()){const s=String(t.navigator.userAgent);if(s.includes("Version/")){const[n,r]=s.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=n<16||n===16&&r<2}}return{isSafari:e||i(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function st(){return de||(de=it()),de}function rt(t){let{swiper:e,on:i,emit:s}=t;const n=D();let r=null,o=null;const l=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(p=>{o=n.requestAnimationFrame(()=>{const{width:v,height:m}=e;let T=v,S=m;p.forEach(y=>{let{contentBoxSize:g,contentRect:d,target:f}=y;f&&f!==e.el||(T=d?d.width:(g[0]||g).inlineSize,S=d?d.height:(g[0]||g).blockSize)}),(T!==v||S!==m)&&l()})}),r.observe(e.el))},c=()=>{o&&n.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},u=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){a();return}n.addEventListener("resize",l),n.addEventListener("orientationchange",u)}),i("destroy",()=>{c(),n.removeEventListener("resize",l),n.removeEventListener("orientationchange",u)})}function nt(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=[],o=D(),l=function(u,p){p===void 0&&(p={});const v=o.MutationObserver||o.WebkitMutationObserver,m=new v(T=>{if(e.__preventObserver__)return;if(T.length===1){n("observerUpdate",T[0]);return}const S=function(){n("observerUpdate",T[0])};o.requestAnimationFrame?o.requestAnimationFrame(S):o.setTimeout(S,0)});m.observe(u,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),r.push(m)},a=()=>{if(e.params.observer){if(e.params.observeParents){const u=Me(e.el);for(let p=0;p<u.length;p+=1)l(u[p])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},c=()=>{r.forEach(u=>{u.disconnect()}),r.splice(0,r.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",a),s("destroy",c)}var at={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=i?"unshift":"push";return t.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];e.apply(s,o)}return n.__emitterProxy=e,s.on(t,n,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const s=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[s](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(r,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return typeof r[0]=="string"||Array.isArray(r[0])?(e=r[0],i=r.slice(1,r.length),s=t):(e=r[0].events,i=r[0].data,s=r[0].context||t),i.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(c=>{c.apply(s,i)})}),t}};function lt(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(H(s,"padding-left")||0,10)-parseInt(H(s,"padding-right")||0,10),i=i-parseInt(H(s,"padding-top")||0,10)-parseInt(H(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function ot(){const t=this;function e(b){return t.isHorizontal()?b:{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"}[b]}function i(b,E){return parseFloat(b.getPropertyValue(e(E))||0)}const s=t.params,{wrapperEl:n,slidesEl:r,size:o,rtlTranslate:l,wrongRTL:a}=t,c=t.virtual&&s.virtual.enabled,u=c?t.virtual.slides.length:t.slides.length,p=R(r,`.${t.params.slideClass}, swiper-slide`),v=c?t.virtual.slides.length:p.length;let m=[];const T=[],S=[];let y=s.slidesOffsetBefore;typeof y=="function"&&(y=s.slidesOffsetBefore.call(t));let g=s.slidesOffsetAfter;typeof g=="function"&&(g=s.slidesOffsetAfter.call(t));const d=t.snapGrid.length,f=t.slidesGrid.length;let h=s.spaceBetween,x=-y,M=0,P=0;if(typeof o>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*o:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,p.forEach(b=>{l?b.style.marginLeft="":b.style.marginRight="",b.style.marginBottom="",b.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(J(n,"--swiper-centered-offset-before",""),J(n,"--swiper-centered-offset-after",""));const L=s.grid&&s.grid.rows>1&&t.grid;L&&t.grid.initSlides(v);let w;const _=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(b=>typeof s.breakpoints[b].slidesPerView<"u").length>0;for(let b=0;b<v;b+=1){w=0;let E;if(p[b]&&(E=p[b]),L&&t.grid.updateSlide(b,E,v,e),!(p[b]&&H(E,"display")==="none")){if(s.slidesPerView==="auto"){_&&(p[b].style[e("width")]="");const C=getComputedStyle(E),I=E.style.transform,z=E.style.webkitTransform;if(I&&(E.style.transform="none"),z&&(E.style.webkitTransform="none"),s.roundLengths)w=t.isHorizontal()?me(E,"width",!0):me(E,"height",!0);else{const N=i(C,"width"),re=i(C,"padding-left"),ne=i(C,"padding-right"),G=i(C,"margin-left"),V=i(C,"margin-right"),ve=C.getPropertyValue("box-sizing");if(ve&&ve==="border-box")w=N+G+V;else{const{clientWidth:Ve,offsetWidth:Re}=E;w=N+re+ne+G+V+(Re-Ve)}}I&&(E.style.transform=I),z&&(E.style.webkitTransform=z),s.roundLengths&&(w=Math.floor(w))}else w=(o-(s.slidesPerView-1)*h)/s.slidesPerView,s.roundLengths&&(w=Math.floor(w)),p[b]&&(p[b].style[e("width")]=`${w}px`);p[b]&&(p[b].swiperSlideSize=w),S.push(w),s.centeredSlides?(x=x+w/2+M/2+h,M===0&&b!==0&&(x=x-o/2-h),b===0&&(x=x-o/2-h),Math.abs(x)<1/1e3&&(x=0),s.roundLengths&&(x=Math.floor(x)),P%s.slidesPerGroup===0&&m.push(x),T.push(x)):(s.roundLengths&&(x=Math.floor(x)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&m.push(x),T.push(x),x=x+w+h),t.virtualSize+=w+h,M=w,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+g,l&&a&&(s.effect==="slide"||s.effect==="coverflow")&&(n.style.width=`${t.virtualSize+h}px`),s.setWrapperSize&&(n.style[e("width")]=`${t.virtualSize+h}px`),L&&t.grid.updateWrapperSize(w,m,e),!s.centeredSlides){const b=[];for(let E=0;E<m.length;E+=1){let C=m[E];s.roundLengths&&(C=Math.floor(C)),m[E]<=t.virtualSize-o&&b.push(C)}m=b,Math.floor(t.virtualSize-o)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-o)}if(c&&s.loop){const b=S[0]+h;if(s.slidesPerGroup>1){const E=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),C=b*s.slidesPerGroup;for(let I=0;I<E;I+=1)m.push(m[m.length-1]+C)}for(let E=0;E<t.virtual.slidesBefore+t.virtual.slidesAfter;E+=1)s.slidesPerGroup===1&&m.push(m[m.length-1]+b),T.push(T[T.length-1]+b),t.virtualSize+=b}if(m.length===0&&(m=[0]),h!==0){const b=t.isHorizontal()&&l?"marginLeft":e("marginRight");p.filter((E,C)=>!s.cssMode||s.loop?!0:C!==p.length-1).forEach(E=>{E.style[b]=`${h}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let b=0;S.forEach(C=>{b+=C+(h||0)}),b-=h;const E=b-o;m=m.map(C=>C<=0?-y:C>E?E+g:C)}if(s.centerInsufficientSlides){let b=0;if(S.forEach(E=>{b+=E+(h||0)}),b-=h,b<o){const E=(o-b)/2;m.forEach((C,I)=>{m[I]=C-E}),T.forEach((C,I)=>{T[I]=C+E})}}if(Object.assign(t,{slides:p,snapGrid:m,slidesGrid:T,slidesSizesGrid:S}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){J(n,"--swiper-centered-offset-before",`${-m[0]}px`),J(n,"--swiper-centered-offset-after",`${t.size/2-S[S.length-1]/2}px`);const b=-t.snapGrid[0],E=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+b),t.slidesGrid=t.slidesGrid.map(C=>C+E)}if(v!==u&&t.emit("slidesLengthChange"),m.length!==d&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),T.length!==f&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const b=`${s.containerModifierClass}backface-hidden`,E=t.el.classList.contains(b);v<=s.maxBackfaceHiddenSlides?E||t.el.classList.add(b):E&&t.el.classList.remove(b)}}function dt(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n=0,r;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=l=>s?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{i.push(l)});else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){const l=e.activeIndex+r;if(l>e.slides.length&&!s)break;i.push(o(l))}else i.push(o(e.activeIndex));for(r=0;r<i.length;r+=1)if(typeof i[r]<"u"){const l=i[r].offsetHeight;n=l>n?l:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function ct(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(t.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-i-t.cssOverflowAdjustment()}function ft(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:s,rtlTranslate:n,snapGrid:r}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-t;n&&(o=t),s.forEach(a=>{a.classList.remove(i.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=i.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let a=0;a<s.length;a+=1){const c=s[a];let u=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(u-=s[0].swiperSlideOffset);const p=(o+(i.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+l),v=(o-r[0]+(i.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+l),m=-(o-u),T=m+e.slidesSizesGrid[a];(m>=0&&m<e.size-1||T>1&&T<=e.size||m<=0&&T>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(a),s[a].classList.add(i.slideVisibleClass)),c.progress=n?-p:p,c.originalProgress=n?-v:v}}function ut(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:l}=e;const a=r,c=o;if(s===0)n=0,r=!0,o=!0;else{n=(t-e.minTranslate())/s;const u=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;r=u||n<=0,o=p||n>=1,u&&(n=0),p&&(n=1)}if(i.loop){const u=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),v=e.slidesGrid[u],m=e.slidesGrid[p],T=e.slidesGrid[e.slidesGrid.length-1],S=Math.abs(t);S>=v?l=(S-v)/T:l=(S+T-m)/T,l>1&&(l-=1)}Object.assign(e,{progress:n,progressLoop:l,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!a&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(a&&!r||c&&!o)&&e.emit("fromEdge"),e.emit("progress",n)}function pt(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,o=a=>R(s,`.${i.slideClass}${a}, swiper-slide${a}`)[0];e.forEach(a=>{a.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let l;if(r)if(i.loop){let a=n-t.virtual.slidesBefore;a<0&&(a=t.virtual.slides.length+a),a>=t.virtual.slides.length&&(a-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${a}"]`)}else l=o(`[data-swiper-slide-index="${n}"]`);else l=e[n];if(l){l.classList.add(i.slideActiveClass);let a=Ue(l,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!a&&(a=e[0]),a&&a.classList.add(i.slideNextClass);let c=Ke(l,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(i.slidePrevClass)}t.emitSlidesClasses()}const Q=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){const n=s.querySelector(`.${t.params.lazyPreloaderClass}`);n&&n.remove()}},ce=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},he=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=n,l=[o-e];l.push(...Array.from({length:e}).map((a,c)=>o+s+c)),t.slides.forEach((a,c)=>{l.includes(a.column)&&ce(t,c)});return}const r=n+s-1;if(t.params.rewind||t.params.loop)for(let o=n-e;o<=r+e;o+=1){const l=(o%i+i)%i;(l<n||l>r)&&ce(t,l)}else for(let o=Math.max(n-e,0);o<=Math.min(r+e,i-1);o+=1)o!==n&&(o>r||o<n)&&ce(t,o)};function mt(t){const{slidesGrid:e,params:i}=t,s=t.rtlTranslate?t.translate:-t.translate;let n;for(let r=0;r<e.length;r+=1)typeof e[r+1]<"u"?s>=e[r]&&s<e[r+1]-(e[r+1]-e[r])/2?n=r:s>=e[r]&&s<e[r+1]&&(n=r+1):s>=e[r]&&(n=r);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function ht(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:o,snapIndex:l}=e;let a=t,c;const u=v=>{let m=v-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof a>"u"&&(a=mt(e)),s.indexOf(i)>=0)c=s.indexOf(i);else{const v=Math.min(n.slidesPerGroupSkip,a);c=v+Math.floor((a-v)/n.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),a===r){c!==l&&(e.snapIndex=c,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=u(a));return}let p;e.virtual&&n.virtual.enabled&&n.loop?p=u(a):e.slides[a]?p=parseInt(e.slides[a].getAttribute("data-swiper-slide-index")||a,10):p=a,Object.assign(e,{previousSnapIndex:l,snapIndex:c,previousRealIndex:o,realIndex:p,previousIndex:r,activeIndex:a}),e.initialized&&he(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==p&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function gt(t){const e=this,i=e.params,s=t.closest(`.${i.slideClass}, swiper-slide`);let n=!1,r;if(s){for(let o=0;o<e.slides.length;o+=1)if(e.slides[o]===s){n=!0,r=o;break}}if(s&&n)e.clickedSlide=s,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):e.clickedIndex=r;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}i.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var vt={updateSize:lt,updateSlides:ot,updateAutoHeight:dt,updateSlidesOffset:ct,updateSlidesProgress:ft,updateProgress:ut,updateSlidesClasses:pt,updateActiveIndex:ht,updateClickedSlide:gt};function wt(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:s,translate:n,wrapperEl:r}=e;if(i.virtualTranslate)return s?-n:n;if(i.cssMode)return n;let o=Ye(r,t);return o+=e.cssOverflowAdjustment(),s&&(o=-o),o||0}function St(t,e){const i=this,{rtlTranslate:s,params:n,wrapperEl:r,progress:o}=i;let l=0,a=0;const c=0;i.isHorizontal()?l=s?-t:t:a=t,n.roundLengths&&(l=Math.floor(l),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:a,n.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-a:n.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${a}px, ${c}px)`);let u;const p=i.maxTranslate()-i.minTranslate();p===0?u=0:u=(t-i.minTranslate())/p,u!==o&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function xt(){return-this.snapGrid[0]}function bt(){return-this.snapGrid[this.snapGrid.length-1]}function Tt(t,e,i,s,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),s===void 0&&(s=!0);const r=this,{params:o,wrapperEl:l}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const a=r.minTranslate(),c=r.maxTranslate();let u;if(s&&t>a?u=a:s&&t<c?u=c:u=t,r.updateProgress(u),o.cssMode){const p=r.isHorizontal();if(e===0)l[p?"scrollLeft":"scrollTop"]=-u;else{if(!r.support.smoothScroll)return Ce({swiper:r,targetPosition:-u,side:p?"left":"top"}),!0;l.scrollTo({[p?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(r.setTransition(0),r.setTranslate(u),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(u),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(v){!r||r.destroyed||v.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,i&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}var yt={getTranslate:wt,setTranslate:St,minTranslate:xt,maxTranslate:bt,translateTo:Tt};function Et(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`),i.emit("setTransition",t,e)}function Ie(t){let{swiper:e,runCallbacks:i,direction:s,step:n}=t;const{activeIndex:r,previousIndex:o}=e;let l=s;if(l||(r>o?l="next":r<o?l="prev":l="reset"),e.emit(`transition${n}`),i&&r!==o){if(l==="reset"){e.emit(`slideResetTransition${n}`);return}e.emit(`slideChangeTransition${n}`),l==="next"?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`)}}function Ct(t,e){t===void 0&&(t=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),Ie({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Pt(t,e){t===void 0&&(t=!0);const i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),Ie({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Mt={setTransition:Et,transitionStart:Ct,transitionEnd:Pt};function Lt(t,e,i,s,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this;let o=t;o<0&&(o=0);const{params:l,snapGrid:a,slidesGrid:c,previousIndex:u,activeIndex:p,rtlTranslate:v,wrapperEl:m,enabled:T}=r;if(r.animating&&l.preventInteractionOnTransition||!T&&!s&&!n)return!1;const S=Math.min(r.params.slidesPerGroupSkip,o);let y=S+Math.floor((o-S)/r.params.slidesPerGroup);y>=a.length&&(y=a.length-1);const g=-a[y];if(l.normalizeSlideIndex)for(let f=0;f<c.length;f+=1){const h=-Math.floor(g*100),x=Math.floor(c[f]*100),M=Math.floor(c[f+1]*100);typeof c[f+1]<"u"?h>=x&&h<M-(M-x)/2?o=f:h>=x&&h<M&&(o=f+1):h>=x&&(o=f)}if(r.initialized&&o!==p&&(!r.allowSlideNext&&(v?g>r.translate&&g>r.minTranslate():g<r.translate&&g<r.minTranslate())||!r.allowSlidePrev&&g>r.translate&&g>r.maxTranslate()&&(p||0)!==o))return!1;o!==(u||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(g);let d;if(o>p?d="next":o<p?d="prev":d="reset",v&&-g===r.translate||!v&&g===r.translate)return r.updateActiveIndex(o),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),l.effect!=="slide"&&r.setTranslate(g),d!=="reset"&&(r.transitionStart(i,d),r.transitionEnd(i,d)),!1;if(l.cssMode){const f=r.isHorizontal(),h=v?g:-g;if(e===0){const x=r.virtual&&r.params.virtual.enabled;x&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),x&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[f?"scrollLeft":"scrollTop"]=h})):m[f?"scrollLeft":"scrollTop"]=h,x&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return Ce({swiper:r,targetPosition:h,side:f?"left":"top"}),!0;m.scrollTo({[f?"left":"top"]:h,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(g),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,d),e===0?r.transitionEnd(i,d):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(h){!r||r.destroyed||h.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,d))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function It(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;let r=t;return n.params.loop&&(n.virtual&&n.params.virtual.enabled?r=r+n.virtual.slidesBefore:r=n.getSlideIndexByData(r)),n.slideTo(r,e,i,s)}function Ot(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:n,params:r,animating:o}=s;if(!n)return s;let l=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(l=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndex<r.slidesPerGroupSkip?1:l,c=s.virtual&&r.virtual.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+a,t,e,i)}function zt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:l,enabled:a,animating:c}=s;if(!a)return s;const u=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!u&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const p=l?s.translate:-s.translate;function v(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const m=v(p),T=r.map(g=>v(g));let S=r[T.indexOf(m)-1];if(typeof S>"u"&&n.cssMode){let g;r.forEach((d,f)=>{m>=d&&(g=f)}),typeof g<"u"&&(S=r[g>0?g-1:g])}let y=0;if(typeof S<"u"&&(y=o.indexOf(S),y<0&&(y=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(y=y-s.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),n.rewind&&s.isBeginning){const g=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(g,t,e,i)}return s.slideTo(y,t,e,i)}function At(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,t,e,i)}function _t(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const n=this;let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),l=o+Math.floor((r-o)/n.params.slidesPerGroup),a=n.rtlTranslate?n.translate:-n.translate;if(a>=n.snapGrid[l]){const c=n.snapGrid[l],u=n.snapGrid[l+1];a-c>(u-c)*s&&(r+=n.params.slidesPerGroup)}else{const c=n.snapGrid[l-1],u=n.snapGrid[l];a-c<=(u-c)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)}function $t(){const t=this,{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let n=t.clickedIndex,r;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?n<t.loopedSlides-s/2||n>t.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=t.getSlideIndex(R(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),pe(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(R(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),pe(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var Gt={slideTo:Lt,slideToLoop:It,slideNext:Ot,slidePrev:zt,slideReset:At,slideToClosest:_t,slideToClickedSlide:$t};function Bt(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;R(s,`.${i.slideClass}, swiper-slide`).forEach((r,o)=>{r.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Dt(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:n,activeSlideIndex:r,byController:o,byMousewheel:l}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:p,slidesEl:v,params:m}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):m.centeredSlides&&a.snapIndex<m.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=u,a.allowSlideNext=p,a.emit("loopFix");return}const T=m.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(m.slidesPerView,10));let S=m.loopedSlides||T;S%m.slidesPerGroup!==0&&(S+=m.slidesPerGroup-S%m.slidesPerGroup),a.loopedSlides=S;const y=[],g=[];let d=a.activeIndex;typeof r>"u"?r=a.getSlideIndex(a.slides.filter(P=>P.classList.contains(m.slideActiveClass))[0]):d=r;const f=s==="next"||!s,h=s==="prev"||!s;let x=0,M=0;if(r<S){x=Math.max(S-r,m.slidesPerGroup);for(let P=0;P<S-r;P+=1){const L=P-Math.floor(P/c.length)*c.length;y.push(c.length-L-1)}}else if(r>a.slides.length-S*2){M=Math.max(r-(a.slides.length-S*2),m.slidesPerGroup);for(let P=0;P<M;P+=1){const L=P-Math.floor(P/c.length)*c.length;g.push(L)}}if(h&&y.forEach(P=>{a.slides[P].swiperLoopMoveDOM=!0,v.prepend(a.slides[P]),a.slides[P].swiperLoopMoveDOM=!1}),f&&g.forEach(P=>{a.slides[P].swiperLoopMoveDOM=!0,v.append(a.slides[P]),a.slides[P].swiperLoopMoveDOM=!1}),a.recalcSlides(),m.slidesPerView==="auto"&&a.updateSlides(),m.watchSlidesProgress&&a.updateSlidesOffset(),i){if(y.length>0&&h)if(typeof e>"u"){const P=a.slidesGrid[d],w=a.slidesGrid[d+x]-P;l?a.setTranslate(a.translate-w):(a.slideTo(d+x,0,!1,!0),n&&(a.touches[a.isHorizontal()?"startX":"startY"]+=w))}else n&&a.slideToLoop(e,0,!1,!0);else if(g.length>0&&f)if(typeof e>"u"){const P=a.slidesGrid[d],w=a.slidesGrid[d-M]-P;l?a.setTranslate(a.translate-w):(a.slideTo(d-M,0,!1,!0),n&&(a.touches[a.isHorizontal()?"startX":"startY"]+=w))}else a.slideToLoop(e,0,!1,!0)}if(a.allowSlidePrev=u,a.allowSlideNext=p,a.controller&&a.controller.control&&!o){const P={slideRealIndex:e,slideTo:!1,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(L=>{!L.destroyed&&L.params.loop&&L.loopFix(P)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(P)}a.emit("loopFix")}function Nt(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[r]=n}),t.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),s.forEach(n=>{i.append(n)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Vt={loopCreate:Bt,loopFix:Dt,loopDestroy:Nt};function Rt(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Ft(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Ht={setGrabCursor:Rt,unsetGrabCursor:Ft};function jt(t,e){e===void 0&&(e=this);function i(s){if(!s||s===W()||s===D())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(t);return!n&&!s.getRootNode?null:n||i(s.getRootNode().host)}return i(e)}function kt(t){const e=this,i=W(),s=D(),n=e.touchEventsData;n.evCache.push(t);const{params:r,touches:o,enabled:l}=e;if(!l||!r.simulateTouch&&t.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let a=t;a.originalEvent&&(a=a.originalEvent);let c=a.target;if(r.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(c)||"which"in a&&a.which===3||"button"in a&&a.button>0||n.isTouched&&n.isMoved)return;const u=!!r.noSwipingClass&&r.noSwipingClass!=="",p=t.composedPath?t.composedPath():t.path;u&&a.target&&a.target.shadowRoot&&p&&(c=p[0]);const v=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(a.target&&a.target.shadowRoot);if(r.noSwiping&&(m?jt(v,c):c.closest(v))){e.allowClick=!0;return}if(r.swipeHandler&&!c.closest(r.swipeHandler))return;o.currentX=a.pageX,o.currentY=a.pageY;const T=o.currentX,S=o.currentY,y=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,g=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(y&&(T<=g||T>=s.innerWidth-g))if(y==="prevent")t.preventDefault();else return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=T,o.startY=S,n.touchStartTime=te(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let d=!0;c.matches(n.focusableElements)&&(d=!1,c.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==c&&i.activeElement.blur();const f=d&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||f)&&!c.isContentEditable&&a.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",a)}function Wt(t){const e=W(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:l}=i;if(!l||!n.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",a);return}const c=s.evCache.findIndex(M=>M.pointerId===a.pointerId);c>=0&&(s.evCache[c]=a);const u=s.evCache.length>1?s.evCache[0]:a,p=u.pageX,v=u.pageY;if(a.preventedByNestedSwiper){r.startX=p,r.startY=v;return}if(!i.allowTouchMove){a.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:p,startY:v,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:p,currentY:v}),s.touchStartTime=te());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(v<r.startY&&i.translate<=i.maxTranslate()||v>r.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(p<r.startX&&i.translate<=i.maxTranslate()||p>r.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}if(s.allowTouchCallbacks&&i.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;r.currentX=p,r.currentY=v;const m=r.currentX-r.startX,T=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(m**2+T**2)<i.params.threshold)return;if(typeof s.isScrolling>"u"){let M;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:m*m+T*T>=25&&(M=Math.atan2(Math.abs(T),Math.abs(m))*180/Math.PI,s.isScrolling=i.isHorizontal()?M>n.touchAngle:90-M>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&a.cancelable&&a.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&a.stopPropagation();let S=i.isHorizontal()?m:T,y=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(S=Math.abs(S)*(o?1:-1),y=Math.abs(y)*(o?1:-1)),r.diff=S,S*=n.touchRatio,o&&(S=-S,y=-y);const g=i.touchesDirection;i.swipeDirection=S>0?"prev":"next",i.touchesDirection=y>0?"prev":"next";const d=i.params.loop&&!n.cssMode;if(!s.isMoved){if(d&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(M)}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let f;s.isMoved&&g!==i.touchesDirection&&d&&Math.abs(S)>=1&&(i.loopFix({direction:i.swipeDirection,setTranslate:!0}),f=!0),i.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=S+s.startTranslate;let h=!0,x=n.resistanceRatio;if(n.touchReleaseOnEdges&&(x=0),S>0?(d&&!f&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(h=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+S)**x))):S<0&&(d&&!f&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(h=!1,n.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-S)**x))),h&&(a.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(S)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Xt(t){const e=this,i=e.touchEventsData,s=i.evCache.findIndex(f=>f.pointerId===t.pointerId);if(s>=0&&i.evCache.splice(s,1),["pointercancel","pointerout","pointerleave"].includes(t.type)&&!(t.type==="pointercancel"&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:n,touches:r,rtlTranslate:o,slidesGrid:l,enabled:a}=e;if(!a||!n.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}n.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const u=te(),p=u-i.touchStartTime;if(e.allowClick){const f=c.path||c.composedPath&&c.composedPath();e.updateClickedSlide(f&&f[0]||c.target),e.emit("tap click",c),p<300&&u-i.lastClickTime<300&&e.emit("doubleTap doubleClick",c)}if(i.lastClickTime=te(),pe(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||r.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let v;if(n.followFinger?v=o?e.translate:-e.translate:v=-i.currentTranslate,n.cssMode)return;if(n.freeMode&&n.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:v});return}let m=0,T=e.slidesSizesGrid[0];for(let f=0;f<l.length;f+=f<n.slidesPerGroupSkip?1:n.slidesPerGroup){const h=f<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;typeof l[f+h]<"u"?v>=l[f]&&v<l[f+h]&&(m=f,T=l[f+h]-l[f]):v>=l[f]&&(m=f,T=l[l.length-1]-l[l.length-2])}let S=null,y=null;n.rewind&&(e.isBeginning?y=n.virtual&&n.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(S=0));const g=(v-l[m])/T,d=m<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(p>n.longSwipesMs){if(!n.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(g>=n.longSwipesRatio?e.slideTo(n.rewind&&e.isEnd?S:m+d):e.slideTo(m)),e.swipeDirection==="prev"&&(g>1-n.longSwipesRatio?e.slideTo(m+d):y!==null&&g<0&&Math.abs(g)>n.longSwipesRatio?e.slideTo(y):e.slideTo(m))}else{if(!n.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(c.target===e.navigation.nextEl||c.target===e.navigation.prevEl)?c.target===e.navigation.nextEl?e.slideTo(m+d):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(S!==null?S:m+d),e.swipeDirection==="prev"&&e.slideTo(y!==null?y:m))}}function Se(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const l=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!l?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function Yt(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function qt(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n;const r=t.maxTranslate()-t.minTranslate();r===0?n=0:n=(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Kt(t){const e=this;Q(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let xe=!1;function Ut(){}const Oe=(t,e)=>{const i=W(),{params:s,el:n,wrapperEl:r,device:o}=t,l=!!s.nested,a=e==="on"?"addEventListener":"removeEventListener",c=e;n[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:l}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[a]("click",t.onClick,!0),s.cssMode&&r[a]("scroll",t.onScroll),s.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Se,!0):t[c]("observerUpdate",Se,!0),n[a]("load",t.onLoad,{capture:!0})};function Zt(){const t=this,e=W(),{params:i}=t;t.onTouchStart=kt.bind(t),t.onTouchMove=Wt.bind(t),t.onTouchEnd=Xt.bind(t),i.cssMode&&(t.onScroll=qt.bind(t)),t.onClick=Yt.bind(t),t.onLoad=Kt.bind(t),xe||(e.addEventListener("touchstart",Ut),xe=!0),Oe(t,"on")}function Jt(){Oe(this,"off")}var Qt={attachEvents:Zt,detachEvents:Jt};const be=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function ei(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const o=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const a=(o in r?r[o]:void 0)||t.originalParams,c=be(t,s),u=be(t,a),p=s.enabled;c&&!u?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&u&&(n.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(S=>{if(typeof a[S]>"u")return;const y=s[S]&&s[S].enabled,g=a[S]&&a[S].enabled;y&&!g&&t[S].disable(),!y&&g&&t[S].enable()});const v=a.direction&&a.direction!==s.direction,m=s.loop&&(a.slidesPerView!==s.slidesPerView||v);v&&i&&t.changeDirection(),B(t.params,a);const T=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!T?t.disable():!p&&T&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",a),m&&i&&(t.loopDestroy(),t.loopCreate(e),t.updateSlides()),t.emit("breakpoint",a)}function ti(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=D(),r=e==="window"?n.innerHeight:i.clientHeight,o=Object.keys(t).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const a=parseFloat(l.substr(1));return{value:r*a,point:l}}return{value:l,point:l}});o.sort((l,a)=>parseInt(l.value,10)-parseInt(a.value,10));for(let l=0;l<o.length;l+=1){const{point:a,value:c}=o[l];e==="window"?n.matchMedia(`(min-width: ${c}px)`).matches&&(s=a):c<=i.clientWidth&&(s=a)}return s||"max"}var ii={setBreakpoint:ei,getBreakpoint:ti};function si(t,e){const i=[];return t.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(e+n)}):typeof s=="string"&&i.push(e+s)}),i}function ri(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,o=si(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),n.classList.add(...e),t.emitContainerClasses()}function ni(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var ai={addClasses:ri,removeClasses:ni};function li(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const n=t.slides.length-1,r=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>r}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var oi={checkOverflow:li},Te={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,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,loopedSlides:null,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",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function di(t,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){B(e,s);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&t[n]===!0&&(t[n]={auto:!0}),!(n in t&&"enabled"in r)){B(e,s);return}t[n]===!0&&(t[n]={enabled:!0}),typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),B(e,s)}}const fe={eventsEmitter:at,update:vt,translate:yt,transition:Mt,slide:Gt,loop:Vt,grabCursor:Ht,events:Qt,breakpoints:ii,checkOverflow:oi,classes:ai},ue={};let q=class F{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];n.length===1&&n[0].constructor&&Object.prototype.toString.call(n[0]).slice(8,-1)==="Object"?i=n[0]:[e,i]=n,i||(i={}),i=B({},i),e&&!i.el&&(i.el=e);const o=W();if(i.el&&typeof i.el=="string"&&o.querySelectorAll(i.el).length>1){const u=[];return o.querySelectorAll(i.el).forEach(p=>{const v=B({},i,{el:p});u.push(new F(v))}),u}const l=this;l.__swiper__=!0,l.support=Le(),l.device=tt({userAgent:i.userAgent}),l.browser=st(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],i.modules&&Array.isArray(i.modules)&&l.modules.push(...i.modules);const a={};l.modules.forEach(u=>{u({params:i,swiper:l,extendParams:di(i,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const c=B({},Te,a);return l.params=B({},c,ue,i),l.originalParams=B({},l.params),l.passedParams=B({},i),l.params&&l.params.on&&Object.keys(l.params.on).forEach(u=>{l.on(u,l.params.on[u])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},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:l.params.allowSlideNext,allowSlidePrev:l.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:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(e){const{slidesEl:i,params:s}=this,n=R(i,`.${s.slideClass}, swiper-slide`),r=ie(n[0]);return ie(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=R(i,`.${s.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,i){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),o=(s.maxTranslate()-n)*e+n;s.translateTo(o,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const n=e.getSlideClasses(s);i.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:n,slides:r,slidesGrid:o,slidesSizesGrid:l,size:a,activeIndex:c}=s;let u=1;if(n.centeredSlides){let p=r[c]?r[c].swiperSlideSize:0,v;for(let m=c+1;m<r.length;m+=1)r[m]&&!v&&(p+=r[m].swiperSlideSize,u+=1,p>a&&(v=!0));for(let m=c-1;m>=0;m-=1)r[m]&&!v&&(p+=r[m].swiperSlideSize,u+=1,p>a&&(v=!0))}else if(e==="current")for(let p=c+1;p<r.length;p+=1)(i?o[p]+l[p]-o[c]<a:o[p]-o[c]<a)&&(u+=1);else for(let p=c-1;p>=0;p-=1)o[c]-o[p]<a&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:s}=e;s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&Q(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const o=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(o.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&(i.isElement=!0);const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):R(s,n())[0])();return!o&&i.params.createElements&&(o=Pe("div",i.params.wrapperClass),s.append(o),R(s,`.${i.params.slideClass}`).forEach(l=>{o.append(l)})),Object.assign(i,{el:s,wrapperEl:o,slidesEl:i.isElement?s.parentNode.host:o,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||H(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||H(s,"direction")==="rtl"),wrongRTL:H(o,"display")==="-webkit-box"}),!0}init(e){const i=this;return i.initialized||i.mount(e)===!1||(i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents(),[...i.el.querySelectorAll('[loading="lazy"]')].forEach(n=>{n.complete?Q(i,n):n.addEventListener("load",r=>{Q(i,r.target)})}),he(i),i.initialized=!0,he(i),i.emit("init"),i.emit("afterInit")),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:n,el:r,wrapperEl:o,slides:l}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(a=>{a.classList.remove(n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(a=>{s.off(a)}),e!==!1&&(s.el.swiper=null,We(s)),s.destroyed=!0),null}static extendDefaults(e){B(ue,e)}static get extendedDefaults(){return ue}static get defaults(){return Te}static installModule(e){F.prototype.__modules__||(F.prototype.__modules__=[]);const i=F.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>F.installModule(i)),F):(F.installModule(e),F)}};Object.keys(fe).forEach(t=>{Object.keys(fe[t]).forEach(e=>{q.prototype[e]=fe[t][e]})});q.use([rt,nt]);const ze=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function k(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function j(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:k(e[s])&&k(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:j(t[s],e[s]):t[s]=e[s]})}function Ae(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function _e(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function $e(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Ge(t){t===void 0&&(t="");const e=t.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return e.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function ci(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function fi(t){let{swiper:e,slides:i,passedParams:s,changedParams:n,nextEl:r,prevEl:o,scrollbarEl:l,paginationEl:a}=t;const c=n.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:u,pagination:p,navigation:v,scrollbar:m,virtual:T,thumbs:S}=e;let y,g,d,f,h,x,M,P;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(y=!0),n.includes("controller")&&s.controller&&s.controller.control&&u.controller&&!u.controller.control&&(g=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||a)&&(u.pagination||u.pagination===!1)&&p&&!p.el&&(d=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||l)&&(u.scrollbar||u.scrollbar===!1)&&m&&!m.el&&(f=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||o)&&(s.navigation.nextEl||r)&&(u.navigation||u.navigation===!1)&&v&&!v.prevEl&&!v.nextEl&&(h=!0);const L=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),u[w].prevEl=void 0,u[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),u[w].el=void 0,e[w].el=void 0))};n.includes("loop")&&e.isElement&&(u.loop&&!s.loop?x=!0:!u.loop&&s.loop?M=!0:P=!0),c.forEach(w=>{if(k(u[w])&&k(s[w]))j(u[w],s[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in s[w]&&!s[w].enabled&&L(w);else{const _=s[w];(_===!0||_===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?_===!1&&L(w):u[w]=s[w]}}),c.includes("controller")&&!g&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),n.includes("children")&&i&&T&&u.virtual.enabled&&(T.slides=i,T.update(!0)),n.includes("children")&&i&&u.loop&&(P=!0),y&&S.init()&&S.update(!0),g&&(e.controller.control=u.controller.control),d&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),e.el.appendChild(a)),a&&(u.pagination.el=a),p.init(),p.render(),p.update()),f&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.appendChild(l)),l&&(u.scrollbar.el=l),m.init(),m.updateSize(),m.setTranslate()),h&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=e.hostEl.nextButtonSvg,e.el.appendChild(r)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.prevButtonSvg,e.el.appendChild(o))),r&&(u.navigation.nextEl=r),o&&(u.navigation.prevEl=o),v.init(),v.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&e.changeDirection(s.direction,!1),(x||P)&&e.loopDestroy(),(M||P)&&e.loopCreate(),e.update()}function ui(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},s={},n={};j(i,q.defaults),j(i,q.extendedDefaults),i._emitClasses=!0,i.init=!1;const r={},o=ze.map(a=>a.replace(/_/,"")),l=Object.assign({},t);return Object.keys(l).forEach(a=>{typeof t[a]>"u"||(o.indexOf(a)>=0?k(t[a])?(i[a]={},n[a]={},j(i[a],t[a]),j(n[a],t[a])):(i[a]=t[a],n[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?e?s[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:r[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{i[a]===!0&&(i[a]={}),i[a]===!1&&delete i[a]}),{params:i,passedParams:n,rest:r,events:s}}function pi(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:r,scrollbarEl:o,swiper:l}=t;Ae(e)&&s&&n&&(l.params.navigation.nextEl=s,l.originalParams.navigation.nextEl=s,l.params.navigation.prevEl=n,l.originalParams.navigation.prevEl=n),_e(e)&&r&&(l.params.pagination.el=r,l.originalParams.pagination.el=r),$e(e)&&o&&(l.params.scrollbar.el=o,l.originalParams.scrollbar.el=o),l.init(i)}function mi(t,e,i,s,n){const r=[];if(!e)return r;const o=a=>{r.indexOf(a)<0&&r.push(a)};if(i&&s){const a=s.map(n),c=i.map(n);a.join("")!==c.join("")&&o("children"),s.length!==i.length&&o("children")}return ze.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in e)if(k(t[a])&&k(e[a])){const c=Object.keys(t[a]),u=Object.keys(e[a]);c.length!==u.length?o(a):(c.forEach(p=>{t[a][p]!==e[a][p]&&o(a)}),u.forEach(p=>{t[a][p]!==e[a][p]&&o(a)}))}else t[a]!==e[a]&&o(a)}),r}const hi=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function se(){return se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},se.apply(this,arguments)}function Be(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function De(t){const e=[];return A.Children.toArray(t).forEach(i=>{Be(i)?e.push(i):i.props&&i.props.children&&De(i.props.children).forEach(s=>e.push(s))}),e}function gi(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return A.Children.toArray(t).forEach(s=>{if(Be(s))e.push(s);else if(s.props&&s.props.slot&&i[s.props.slot])i[s.props.slot].push(s);else if(s.props&&s.props.children){const n=De(s.props.children);n.length>0?n.forEach(r=>e.push(r)):i["container-end"].push(s)}else i["container-end"].push(s)}),{slides:e,slots:i}}function vi(t,e,i){if(!i)return null;const s=u=>{let p=u;return u<0?p=e.length+u:p>=e.length&&(p=p-e.length),p},n=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:r,to:o}=i,l=t.params.loop?-e.length:0,a=t.params.loop?e.length*2:e.length,c=[];for(let u=l;u<a;u+=1)u>=r&&u<=o&&c.push(e[s(u)]);return c.map((u,p)=>A.cloneElement(u,{swiper:t,style:n,key:`slide-${p}`}))}function Y(t,e){return typeof window>"u"?O.useEffect(t,e):O.useLayoutEffect(t,e)}const ye=O.createContext(null),wi=O.createContext(null),Ne=O.forwardRef(function(t,e){let{className:i,tag:s="div",wrapperTag:n="div",children:r,onSwiper:o,...l}=t===void 0?{}:t,a=!1;const[c,u]=O.useState("swiper"),[p,v]=O.useState(null),[m,T]=O.useState(!1),S=O.useRef(!1),y=O.useRef(null),g=O.useRef(null),d=O.useRef(null),f=O.useRef(null),h=O.useRef(null),x=O.useRef(null),M=O.useRef(null),P=O.useRef(null),{params:L,passedParams:w,rest:_,events:b}=ui(l),{slides:E,slots:C}=gi(r),I=()=>{T(!m)};Object.assign(L.on,{_containerClasses(G,V){u(V)}});const z=()=>{Object.assign(L.on,b),a=!0;const G={...L};if(delete G.wrapperClass,g.current=new q(G),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=E;const V={cache:!1,slides:E,renderExternal:v,renderExternalUpdate:!1};j(g.current.params.virtual,V),j(g.current.originalParams.virtual,V)}};y.current||z(),g.current&&g.current.on("_beforeBreakpoint",I);const N=()=>{a||!b||!g.current||Object.keys(b).forEach(G=>{g.current.on(G,b[G])})},re=()=>{!b||!g.current||Object.keys(b).forEach(G=>{g.current.off(G,b[G])})};O.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",I)}),O.useEffect(()=>{!S.current&&g.current&&(g.current.emitSlidesClasses(),S.current=!0)}),Y(()=>{if(e&&(e.current=y.current),!!y.current)return g.current.destroyed&&z(),pi({el:y.current,nextEl:h.current,prevEl:x.current,paginationEl:M.current,scrollbarEl:P.current,swiper:g.current},L),o&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),Y(()=>{N();const G=mi(w,d.current,E,f.current,V=>V.key);return d.current=w,f.current=E,G.length&&g.current&&!g.current.destroyed&&fi({swiper:g.current,slides:E,passedParams:w,changedParams:G,nextEl:h.current,prevEl:x.current,scrollbarEl:P.current,paginationEl:M.current}),()=>{re()}}),Y(()=>{hi(g.current)},[p]);function ne(){return L.virtual?vi(g.current,E,p):E.map((G,V)=>A.cloneElement(G,{swiper:g.current,swiperSlideIndex:V}))}return A.createElement(s,se({ref:y,className:Ge(`${c}${i?` ${i}`:""}`)},_),A.createElement(wi.Provider,{value:g.current},C["container-start"],A.createElement(n,{className:ci(L.wrapperClass)},C["wrapper-start"],ne(),C["wrapper-end"]),Ae(L)&&A.createElement(A.Fragment,null,A.createElement("div",{ref:x,className:"swiper-button-prev"}),A.createElement("div",{ref:h,className:"swiper-button-next"})),$e(L)&&A.createElement("div",{ref:P,className:"swiper-scrollbar"}),_e(L)&&A.createElement("div",{ref:M,className:"swiper-pagination"}),C["container-end"]))});Ne.displayName="Swiper";const ee=O.forwardRef(function(t,e){let{tag:i="div",children:s,className:n="",swiper:r,zoom:o,lazy:l,virtualIndex:a,swiperSlideIndex:c,...u}=t===void 0?{}:t;const p=O.useRef(null),[v,m]=O.useState("swiper-slide"),[T,S]=O.useState(!1);function y(h,x,M){x===p.current&&m(M)}Y(()=>{if(typeof c<"u"&&(p.current.swiperSlideIndex=c),e&&(e.current=p.current),!(!p.current||!r)){if(r.destroyed){v!=="swiper-slide"&&m("swiper-slide");return}return r.on("_slideClass",y),()=>{r&&r.off("_slideClass",y)}}}),Y(()=>{r&&p.current&&!r.destroyed&&m(r.getSlideClasses(p.current))},[r]);const g={isActive:v.indexOf("swiper-slide-active")>=0,isVisible:v.indexOf("swiper-slide-visible")>=0,isPrev:v.indexOf("swiper-slide-prev")>=0,isNext:v.indexOf("swiper-slide-next")>=0},d=()=>typeof s=="function"?s(g):s,f=()=>{S(!0)};return A.createElement(i,se({ref:p,className:Ge(`${v}${n?` ${n}`:""}`),"data-swiper-slide-index":a,onLoad:f},u),o&&A.createElement(ye.Provider,{value:g},A.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},d(),l&&!T&&A.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&A.createElement(ye.Provider,{value:g},d(),l&&!T&&A.createElement("div",{className:"swiper-lazy-preloader"})))});ee.displayName="SwiperSlide";function xi({isOpen:t,setIsOpen:e,handleSavePreference:i}){const{theme:s}=Fe(),{t:n}=He(),[r,o]=O.useState(),[l,a]=O.useState(0);return t?je.createPortal($.jsxs(K,{id:"TrashModal",onModalClose:()=>e(!1),size:"md",isOpen:t,focusId:"nextButtonId",children:[$.jsx(K.Header,{onModalClose:()=>e(!1),children:n("explorer.modal.onboarding.trash.title")}),$.jsx(K.Body,{children:$.jsxs(Ne,{modules:[Je],onSwiper:c=>{o(c)},onSlideChange:c=>{a(c.progress)},pagination:{clickable:!0},children:[$.jsxs(ee,{children:[$.jsx(ae,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:`${s==null?void 0:s.bootstrapPath}/images/onboarding/illu-trash-menu.svg`,alt:n("explorer.modal.onboarding.trash.screen1.alt")}),$.jsx("p",{children:n("explorer.modal.onboarding.trash.screen1.title")})]}),$.jsxs(ee,{children:[$.jsx(ae,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${s==null?void 0:s.bootstrapPath}/images/onboarding/illu-trash-notif.svg`,alt:n("explorer.modal.onboarding.trash.screen2.alt")}),$.jsx("p",{children:n("explorer.modal.onboarding.trash.screen2.title")})]}),$.jsxs(ee,{children:[$.jsx(ae,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${s==null?void 0:s.bootstrapPath}/images/onboarding/illu-trash-delete.svg`,alt:n("explorer.modal.onboarding.trash.screen3.alt")}),$.jsx("p",{children:n("explorer.modal.onboarding.trash.screen3.title")})]})]})}),$.jsxs(K.Footer,{children:[$.jsx(U,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>e(!1),children:n("explorer.modal.onboarding.trash.later")}),l>0&&$.jsx(U,{type:"button",color:"primary",variant:"outline",onClick:()=>r.slidePrev(),children:n("explorer.modal.onboarding.trash.prev")}),l<1&&$.jsx(U,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>r.slideNext(),children:n("explorer.modal.onboarding.trash.next")}),l===1&&$.jsx(U,{type:"button",color:"primary",variant:"filled",onClick:i,children:n("explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null}export{xi as default};
@@ -1,2 +1,2 @@
1
- import{r as g,Y as Q,R as X,c as l,Z as ee,e as D,_ as re,$ as ae,a0 as te,u as M,m as se,i as W,a1 as le,b as ie,a2 as ce,j as r,p as P,f as oe,a as ne,M as w,H as k,F as A,U as F,y as $,B}from"./index.js";import{u as ue}from"./usePopper.js";import{S as U}from"./SelectList.js";import{I as be}from"./ImagePicker.js";import{u as pe}from"./index.esm.js";const Z=({trigger:e,content:t})=>{const[s,a]=g.useState(null),[c,i]=g.useState(null),{styles:n,attributes:m}=ue(s,c,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,12]}}]}),[h,j]=g.useState(!1),u=Q(h,{from:{opacity:0,y:10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}}),b=()=>{j(o=>!o)},y=X.cloneElement(e,{ref:a,onClick:b,state:h?"selected":"default"});return g.useEffect(()=>{const o=v=>{c&&!c.contains(v.target)&&s&&!s.contains(v.target)&&j(!1)};return document.addEventListener("mousedown",o,!0),document.addEventListener("touchstart",o,!0),()=>{document.removeEventListener("mousedown",o,!0),document.removeEventListener("touchstart",o,!0)}},[c,s]),l.jsxs(l.Fragment,{children:[y,u((o,v)=>l.jsx(l.Fragment,{children:v&&l.jsx(ee.div,{className:D("bg-white shadow rounded-4 d-block show py-12 px-8","bs-tooltip-auto"),ref:i,style:{...n.popper,...o},...m.popper,children:t})}))]})};Z.displayName="Dropdown";const V=Z,J=g.forwardRef(({title:e="",state:t,variant:s,icon:a,size:c="lg",grow:i=!1,badgeContent:n,...m},h)=>{const j=D("dropdown-trigger",t,c,s,i&&"flex-grow-1 justify-content-between");return l.jsxs("button",{ref:h,className:j,...m,type:"button",children:[a&&l.jsx("div",{className:"dropdown-trigger-icon",children:a}),l.jsx("div",{children:e}),n?l.jsx("div",{children:l.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:n})}):l.jsx("div",{className:"dropdown-trigger-carret-icon",children:l.jsx(re,{width:16,height:16})})]})});J.displayName="DropdownTrigger";const H=J,Y=g.forwardRef(({options:e,model:t,disabled:s=!1,placeholderOption:a=!1,...c},i)=>{const{isRequired:n,status:m}=ae(),h=g.useId(),j={...c,id:h,disabled:s,ref:i,className:D(c.className,"form-select c-pointer",{"is-invalid":m==="invalid","is-valid":m==="valid"})};return l.jsx(l.Fragment,{children:l.jsxs("select",{...j,required:n,children:[a&&l.jsx("option",{disabled:!0,selected:t===void 0,children:a}),e==null?void 0:e.map(u=>{const b=typeof u=="object"?u.value:u,y=typeof u=="object"?u.label:u;return l.jsx("option",{value:b,selected:t===b,children:y},b)})]})})});Y.displayName="Select";const L=Y,{http:_}=te.instance();function de({onSuccess:e}){const{user:t,currentApp:s}=M(),[a,c]=g.useState({name:"",image:""}),{hotToast:i}=se(P),n=W(),m=le(),{publishApi:h}=ie(),{register:j,handleSubmit:u,formState:{errors:b,isSubmitting:y,isDirty:o,isValid:v}}=pe({mode:"onChange"}),[S,E]=g.useState([]),[T,O]=g.useState([]);function q(p){c(p)}const f=t?t==null?void 0:t.userId:"";return{selectedResources:n,register:j,handleSubmit:u,formState:{errors:b,isSubmitting:y,isDirty:o,isValid:v},publish:async p=>{try{let x=new Blob;a.image?x=await _.get(a.image,{responseType:"blob"}):n[0].thumbnail&&(x=await _.get(n[0].thumbnail,{responseType:"blob"}));const R=await _.get(`/userbook/avatar/${f}?thumbnail=48x48`,{responseType:"blob"}),d=await _.get(`/directory/user/${f}/attachment-school`,{responseType:"json"}),N={activityType:S,age:[p.ageMin,p.ageMax],application:(s==null?void 0:s.displayName)||"",cover:x,description:p.description,keyWords:p.keyWords,language:p.language,licence:"CC-BY",resourceId:m[0],resourceEntId:n[0].assetId,subjectArea:T,teacherAvatar:R,title:p.title,userId:f,userStructureName:d.name||(t==null?void 0:t.structureNames[0])},K=[ce.BLOG][0],z=await h(K,N);z.success?i.success(r.jsx(he,{result:z}),{duration:1/0}):i.error(r.jsx(G,{}),{duration:1/0}),e==null||e()}catch{i.error(r.jsx(G,{}),{duration:1/0})}},handleDeleteImage:()=>{c({name:"",image:""})},handleUploadImage:q,selectedActivities:S,setSelectedActivities:E,selectedSubjectAreas:T,setSelectedSubjectAreas:O}}function me(){const{i18n:e}=oe(),t=[{value:"bpr.activityType.classroomActivity",label:e("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:e("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:e("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:e("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:e("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:e("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:e("bpr.activityType.courseElement")},{value:"bpr.other",label:e("bpr.other")}],s=[{value:"bpr.subjectArea.artActivity",label:e("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:e("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:e("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:e("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:e("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:e("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:e("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:e("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:e("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:e("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:e("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:e("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:e("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:e("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:e("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:e("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:e("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:e("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:e("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:e("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:e("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:e("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:e("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:e("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:e("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:e("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:e("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:e("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:e("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:e("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:e("bpr.subjectArea.technology")},{value:"bpr.other",label:e("bpr.other")}],a=[{value:"de_DE",label:e("de_DE")},{value:"en_EN",label:e("en_EN")},{value:"ar_DZ",label:e("ar_DZ")},{value:"es_ES",label:e("es_ES")},{value:"fr_FR",label:e("fr_FR")},{value:"it_IT",label:e("it_IT")},{value:"ja_JP",label:e("ja_JP")},{value:"zh_CN",label:e("zh_CN")},{value:"pt_PT",label:e("pt_PT")},{value:"ru_RU",label:e("ru_RU")},{value:"bpr.other",label:e("bpr.other")}];return{activityTypeOptions:t,subjectAreaOptions:s,languageOptions:a,ageOptions:["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"]}}function fe({isOpen:e,onSuccess:t,onCancel:s}){var x,R;const{i18n:a,currentApp:c}=M(),{register:i,handleSubmit:n,publish:m,formState:{isDirty:h,isValid:j},handleUploadImage:u,selectedActivities:b,setSelectedActivities:y,selectedSubjectAreas:o,setSelectedSubjectAreas:v,handleDeleteImage:S}=de({onSuccess:t}),E=W(),{activityTypeOptions:T,subjectAreaOptions:O,languageOptions:q,ageOptions:f}=me(),I=a("bpr.form.publication.language"),C=a("bpr.form.publication.age.min"),p=a("bpr.form.publication.age.max");return ne.createPortal(r.jsxs(w,{isOpen:e,onModalClose:s,id:"libraryModal",size:"lg",children:[r.jsx(w.Header,{onModalClose:s,children:a("bpr.publish")}),r.jsx(w.Subtitle,{children:a("bpr.form.tip")}),r.jsxs(w.Body,{children:[r.jsx(k,{headingStyle:"h4",level:"h3",className:"mb-16",children:a("bpr.form.publication.heading.general")}),r.jsxs("form",{id:"libraryModalForm",onSubmit:n(m),children:[r.jsxs(A,{id:"title",className:"mb-16",isRequired:!0,children:[r.jsx(F,{requiredText:"",children:a("bpr.form.publication.title")}),r.jsx($,{type:"text",defaultValue:(x=E[0])==null?void 0:x.name,...i("title",{required:!0}),placeholder:a("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),r.jsxs("div",{className:"mb-24",children:[r.jsx("div",{className:"form-label",children:a("bpr.form.publication.cover.title")}),r.jsx(be,{app:c,src:(R=E[0])==null?void 0:R.thumbnail,label:a("bpr.form.publication.cover.upload.label"),addButtonLabel:a("bpr.form.publication.cover.upload.add"),deleteButtonLabel:a("bpr.form.publication.cover.upload.remove"),onUploadImage:u,onDeleteImage:S,className:"align-self-center"})]}),r.jsxs(A,{id:"description",isRequired:!0,children:[r.jsx(F,{requiredText:"",children:a("bpr.form.publication.description")}),r.jsx($,{type:"text",...i("description",{required:!0}),placeholder:a("bpr.form.publication.description.placeholder"),size:"md","aria-required":!0})]}),r.jsx("hr",{}),r.jsx(k,{headingStyle:"h4",level:"h3",className:"mb-16",children:a("bpr.form.publication.heading.infos")}),r.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[r.jsx("div",{className:"col d-flex",children:r.jsx(V,{trigger:r.jsx(H,{title:a("bpr.form.publication.type"),size:"md",grow:!0}),content:r.jsx(U,{options:T,model:b,onChange:d=>y(d)})})}),r.jsx("div",{className:"col d-flex",children:r.jsx(V,{trigger:r.jsx(H,{title:a("bpr.form.publication.discipline"),size:"md",grow:!0}),content:r.jsx(U,{options:O,model:o,onChange:d=>v(d)})})}),r.jsx("div",{className:"col",children:r.jsx(A,{id:"language",isRequired:!0,children:r.jsx(L,{...i("language",{required:!0,validate:d=>d!==I}),options:q,placeholderOption:I,defaultValue:I,"aria-required":!0})})})]}),r.jsxs("div",{className:"mb-24",children:[r.jsx("label",{htmlFor:"",className:"form-label",children:a("bpr.form.publication.age")}),r.jsxs("div",{className:"d-flex",children:[r.jsx("div",{className:"me-16",children:r.jsx(A,{id:"ageMin",isRequired:!0,children:r.jsx(L,{...i("ageMin",{required:!0,validate:(d,N)=>parseInt(d)<=parseInt(N.ageMax)}),options:f,placeholderOption:C,defaultValue:C,"aria-required":!0})})}),r.jsx("div",{children:r.jsx(A,{id:"ageMax",isRequired:!0,children:r.jsx(L,{...i("ageMax",{required:!0,validate:(d,N)=>parseInt(d)>=parseInt(N.ageMin)}),options:f,placeholderOption:p,defaultValue:p,"aria-required":!0})})})]})]}),r.jsx("div",{className:"mb-24",children:r.jsxs(A,{id:"keywords",isOptional:!0,children:[r.jsx(F,{children:a("bpr.form.publication.keywords")}),r.jsx($,{type:"text",...i("keyWords"),size:"md",placeholder:a("bpr.form.publication.keywords.placeholder")})]})}),r.jsx("hr",{}),r.jsx(k,{headingStyle:"h4",level:"h3",className:"mb-16",children:a("bpr.form.publication.licence.text")}),r.jsxs("ul",{className:"mb-12",children:[r.jsxs("li",{children:[a("bpr.form.publication.licence.text.1"),r.jsx("img",{className:"ms-8 d-inline-block",src:"/assets/themes/entcore-css-lib/images/cc-by-nc-sa.svg",alt:`Icone licence Creative
2
- Commons`})]}),r.jsx("li",{children:a("bpr.form.publication.licence.text.2")})]}),r.jsx(P,{type:"info",className:"mb-12",children:a("bpr.form.publication.licence.text.3")}),r.jsx(P,{type:"warning",children:a("bpr.form.publication.licence.text.4")})]})]}),r.jsxs(w.Footer,{children:[r.jsx(B,{color:"tertiary",onClick:s,type:"button",variant:"ghost",children:a("cancel")}),r.jsx(B,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",disabled:!h||!j||(b==null?void 0:b.length)===0||(o==null?void 0:o.length)===0,children:a("bpr.form.submit")})]})]}),document.getElementById("portal"))}function he({result:e}){const{i18n:t}=M();return r.jsxs(r.Fragment,{children:[r.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),r.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),r.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),e.details.front_url&&r.jsx("p",{className:"pt-24 pb-24",children:r.jsx("a",{className:"button right-magnet",href:e.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}function G(){const{i18n:e}=M();return r.jsxs(r.Fragment,{children:[r.jsx("h3",{className:"pt-24",children:e("bpr.form.publication.response.error.title")}),r.jsx("p",{className:"pt-24 pb-24",children:r.jsx("strong",{children:e("bpr.form.publication.response.error.content")})})]})}export{G as PublishModalError,he as PublishModalSuccess,fe as default};
1
+ import{r as j,Y as ae,R as re,j as e,Z as te,d as D,_ as se,$ as le,a0 as ie,u as Y,g as K,k as ce,a1 as oe,E as ne,a2 as V,a3 as be,m as z,a as M,b as pe,M as S,F as y,P as q,w as F,B as H}from"./index.js";import{u as ue}from"./usePopper.js";import{S as W}from"./SelectList.js";import{H as L}from"./Heading.js";import{I as de}from"./ImagePicker.js";import{u as me}from"./index.esm.js";const Q=({trigger:a,content:t})=>{const[s,l]=j.useState(null),[i,r]=j.useState(null),{styles:c,attributes:m}=ue(s,i,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,12]}}]}),[p,g]=j.useState(!1),u=ae(p,{from:{opacity:0,y:10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}}),v=()=>{g(d=>!d)},b=re.cloneElement(a,{ref:l,onClick:v,state:p?"selected":"default"});return j.useEffect(()=>{const d=o=>{i&&!i.contains(o.target)&&s&&!s.contains(o.target)&&g(!1)};return document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),()=>{document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0)}},[i,s]),e.jsxs(e.Fragment,{children:[b,u((d,o)=>e.jsx(e.Fragment,{children:o&&e.jsx(te.div,{className:D("bg-white shadow rounded-4 d-block show py-12 px-8","bs-tooltip-auto"),ref:r,style:{...c.popper,...d},...m.popper,children:t})}))]})};Q.displayName="Dropdown";const G=Q,X=j.forwardRef(({title:a="",state:t,variant:s,icon:l,size:i="lg",grow:r=!1,badgeContent:c,...m},p)=>{const g=D("dropdown-trigger",t,i,s,r&&"flex-grow-1 justify-content-between");return e.jsxs("button",{ref:p,className:g,...m,type:"button",children:[l&&e.jsx("div",{className:"dropdown-trigger-icon",children:l}),e.jsx("div",{children:a}),c?e.jsx("div",{children:e.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:c})}):e.jsx("div",{className:"dropdown-trigger-carret-icon",children:e.jsx(se,{width:16,height:16})})]})});X.displayName="DropdownTrigger";const Z=X,ee=j.forwardRef(({options:a,model:t,disabled:s=!1,placeholderOption:l=!1,...i},r)=>{const{isRequired:c,status:m}=le(),p=j.useId(),g={...i,id:p,disabled:s,ref:r,className:D(i.className,"form-select c-pointer",{"is-invalid":m==="invalid","is-valid":m==="valid"})};return e.jsx(e.Fragment,{children:e.jsxs("select",{...g,required:c,children:[l&&e.jsx("option",{disabled:!0,selected:t===void 0,children:l}),a==null?void 0:a.map(u=>{const v=typeof u=="object"?u.value:u,b=typeof u=="object"?u.label:u;return e.jsx("option",{value:v,selected:t===v,children:b},v)})]})})});ee.displayName="Select";const $=ee,{http:C}=ie.instance();function he({onSuccess:a}){const{user:t,currentApp:s}=Y(),l=K(),[i,r]=j.useState({name:"",image:l[0].thumbnail}),[c,m]=j.useState(!1),{hotToast:p}=ce(z);oe();const{publishApi:g}=ne(),{register:u,handleSubmit:v,formState:{errors:b,isSubmitting:d,isDirty:o,isValid:O}}=me({mode:"onChange"}),[E,T]=j.useState([]),[f,I]=j.useState([]);function k(n){r(n)}const A=t?t==null?void 0:t.userId:"";return{selectedResources:l,register:u,handleSubmit:v,formState:{errors:b,isSubmitting:d,isDirty:o,isValid:O},publish:async n=>{try{m(!0);let x=new Blob;i.image?x=await C.get(i.image,{responseType:"blob"}):l[0].thumbnail&&(x=await C.get(l[0].thumbnail,{responseType:"blob"}));const _=await C.get(`/userbook/avatar/${A}?thumbnail=48x48`,{responseType:"blob"}),R=await C.get(`/directory/user/${A}/attachment-school`,{responseType:"json"});let N="";s!=null&&s.displayName&&(N=V(s==null?void 0:s.displayName));const h={activityType:E,age:[n.ageMin,n.ageMax],application:V(N),cover:x,description:n.description,keyWords:n.keyWords,language:n.language,licence:"CC-BY",resourceId:l[0].assetId,resourceEntId:l[0].assetId,subjectArea:f,teacherAvatar:_,title:n.title,userId:A,userStructureName:R.name||(t==null?void 0:t.structureNames[0])},w=[be.BLOG][0],U=await g(w,h);U.success?p.success(e.jsx(ge,{result:U}),{duration:1e4}):p.error(e.jsx(J,{formData:n})),a==null||a()}catch{p.error(e.jsx(J,{formData:n}))}finally{m(!1)}},handleDeleteImage:()=>{r({name:"",image:""})},handleUploadImage:k,selectedActivities:E,setSelectedActivities:T,selectedSubjectAreas:f,setSelectedSubjectAreas:I,loaderPublish:c,cover:i}}function je(){const{t:a}=M(),t=[{value:"bpr.activityType.classroomActivity",label:a("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:a("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:a("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:a("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:a("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:a("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:a("bpr.activityType.courseElement")},{value:"bpr.other",label:a("bpr.other")}],s=[{value:"bpr.subjectArea.artActivity",label:a("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:a("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:a("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:a("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:a("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:a("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:a("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:a("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:a("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:a("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:a("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:a("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:a("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:a("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:a("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:a("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:a("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:a("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:a("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:a("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:a("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:a("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:a("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:a("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:a("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:a("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:a("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:a("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:a("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:a("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:a("bpr.subjectArea.technology")},{value:"bpr.other",label:a("bpr.other")}],l=[{value:"de_DE",label:a("de_DE")},{value:"en_EN",label:a("en_EN")},{value:"ar_DZ",label:a("ar_DZ")},{value:"es_ES",label:a("es_ES")},{value:"fr_FR",label:a("fr_FR")},{value:"it_IT",label:a("it_IT")},{value:"ja_JP",label:a("ja_JP")},{value:"zh_CN",label:a("zh_CN")},{value:"pt_PT",label:a("pt_PT")},{value:"ru_RU",label:a("ru_RU")},{value:"bpr.other",label:a("bpr.other")}];return{activityTypeOptions:t,subjectAreaOptions:s,languageOptions:l,ageOptions:["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"]}}function we({isOpen:a,onSuccess:t,onCancel:s}){var R,N;const{currentApp:l,appCode:i}=Y(),{t:r}=M(),{register:c,handleSubmit:m,publish:p,formState:{isDirty:g,isValid:u},handleUploadImage:v,selectedActivities:b,setSelectedActivities:d,selectedSubjectAreas:o,setSelectedSubjectAreas:O,handleDeleteImage:E,loaderPublish:T,cover:f}=he({onSuccess:t}),I=K(),{activityTypeOptions:k,subjectAreaOptions:A,languageOptions:B,ageOptions:P}=je(),n=r("bpr.form.publication.language"),x=r("bpr.form.publication.age.min"),_=r("bpr.form.publication.age.max");return pe.createPortal(e.jsxs(S,{isOpen:a,onModalClose:s,id:"libraryModal",size:"lg",children:[e.jsx(S.Header,{onModalClose:s,children:r("bpr.publish")}),e.jsx(S.Subtitle,{children:r("bpr.form.tip")}),e.jsxs(S.Body,{children:[e.jsx(L,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.heading.general")}),e.jsxs("form",{id:"libraryModalForm",onSubmit:m(p),children:[e.jsxs("div",{className:"d-flex mb-24 gap-24",children:[e.jsxs("div",{style:{maxWidth:"160px"},children:[e.jsx("div",{className:"form-label",children:r("bpr.form.publication.cover.title")}),e.jsx(de,{app:l,src:(R=I[0])==null?void 0:R.thumbnail,label:r("bpr.form.publication.cover.upload.label"),addButtonLabel:r("bpr.form.publication.cover.upload.add"),deleteButtonLabel:r("bpr.form.publication.cover.upload.remove"),onUploadImage:v,onDeleteImage:E,className:"align-self-center"}),!f.image&&e.jsx("p",{className:"form-text is-invalid",children:e.jsx("em",{children:r("bpr.form.publication.cover.upload.required.image")})})]}),e.jsxs("div",{className:"flex-fill",children:[e.jsxs(y,{id:"title",className:"mb-16",isRequired:!0,children:[e.jsx(q,{children:r("bpr.form.publication.title")}),e.jsx(F,{type:"text",defaultValue:(N=I[0])==null?void 0:N.name,...c("title",{required:!0}),placeholder:r("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),e.jsxs(y,{id:"description",isRequired:!0,children:[e.jsx(q,{children:r("bpr.form.publication.description")}),e.jsx(F,{type:"text",...c("description",{required:!0}),placeholder:r("bpr.form.publication.description.placeholder"),size:"md","aria-required":!0})]})]})]}),e.jsx("hr",{}),e.jsx(L,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.heading.infos")}),e.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[e.jsx("div",{className:"col d-flex",children:e.jsx(G,{trigger:e.jsx(Z,{title:r("bpr.form.publication.type"),size:"md",grow:!0,badgeContent:b==null?void 0:b.length}),content:e.jsx(W,{options:k,model:b,onChange:h=>d(h)})})}),e.jsx("div",{className:"col d-flex",children:e.jsx(G,{trigger:e.jsx(Z,{title:r("bpr.form.publication.discipline"),size:"md",grow:!0,badgeContent:o==null?void 0:o.length}),content:e.jsx(W,{options:A,model:o,onChange:h=>O(h)})})}),e.jsx("div",{className:"col",children:e.jsx(y,{id:"language",isRequired:!0,children:e.jsx($,{...c("language",{required:!0,validate:h=>h!==n}),options:B,placeholderOption:n,defaultValue:n,"aria-required":!0})})})]}),e.jsxs("div",{className:"mb-24",children:[e.jsx("label",{htmlFor:"",className:"form-label",children:r("bpr.form.publication.age")}),e.jsxs("div",{className:"d-flex",children:[e.jsx("div",{className:"me-16",children:e.jsx(y,{id:"ageMin",isRequired:!0,children:e.jsx($,{...c("ageMin",{required:!0,validate:(h,w)=>parseInt(h)<=parseInt(w.ageMax)}),options:P,placeholderOption:x,defaultValue:x,"aria-required":!0})})}),e.jsx("div",{children:e.jsx(y,{id:"ageMax",isRequired:!0,children:e.jsx($,{...c("ageMax",{required:!0,validate:(h,w)=>parseInt(h)>=parseInt(w.ageMin)}),options:P,placeholderOption:_,defaultValue:_,"aria-required":!0})})})]})]}),e.jsx("div",{className:"mb-24",children:e.jsxs(y,{id:"keywords",isOptional:!0,children:[e.jsx(q,{children:r("bpr.form.publication.keywords")}),e.jsx(F,{type:"text",...c("keyWords"),size:"md",placeholder:r("bpr.form.publication.keywords.placeholder")})]})}),e.jsx("hr",{}),e.jsx(L,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.licence.text")}),e.jsxs("ul",{className:"mb-12",children:[e.jsxs("li",{children:[r("bpr.form.publication.licence.text.1"),e.jsx("img",{className:"ms-8 d-inline-block",src:"/assets/themes/entcore-css-lib/images/cc-by-nc-sa.svg",alt:`Icone licence Creative
2
+ Commons`})]}),e.jsx("li",{children:r("bpr.form.publication.licence.text.2")})]}),e.jsx(z,{type:"info",className:"mb-12",children:r("bpr.form.publication.licence.text.3")}),e.jsx(z,{type:"warning",children:r("bpr.form.publication.licence.text.4")})]})]}),e.jsxs(S.Footer,{children:[e.jsx(H,{color:"tertiary",onClick:s,type:"button",variant:"ghost",children:r("cancel")}),e.jsx(H,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:T,disabled:!f.image||T||!g||!u||(b==null?void 0:b.length)===0||(o==null?void 0:o.length)===0,children:r("bpr.form.submit")})]})]}),document.getElementById("portal"))}function ge({result:a}){const{t}=M();return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),e.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),e.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),a.details.front_url&&e.jsx("p",{className:"pt-24 pb-24",children:e.jsx("a",{className:"button right-magnet",href:a.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}function J({formData:a}){const{t}=M(),s=l=>l.match(/^\s/);return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.error.title")}),e.jsx("p",{className:"pt-24 pb-24",children:e.jsx("strong",{children:t("bpr.form.publication.response.error.content")})}),e.jsxs("ul",{children:[s(a.title)&&e.jsx("li",{className:"pt-2 pb-2",children:e.jsx("strong",{children:t("bpr.form.publication.response.empty.title")})}),s(a.description)&&e.jsx("li",{className:"pt-2 pb-2",children:e.jsx("strong",{children:t("bpr.form.publication.response.empty.description")})})]})]})}export{J as PublishModalError,ge as PublishModalSuccess,we as default};
@@ -1 +1 @@
1
- import{u as T,a7 as $,g as B,a1 as E,i as w,b as z,D,a9 as J,r as Z,e as q,j as s,R as g,Z as h,aa as G,B as H}from"./index.js";import{C as K}from"./Card.js";import"./Tooltip.js";import"./usePopper.js";function Q(o){const{rights:n,creatorId:a}=o;return n.filter(l=>!l.includes(a)).length>=1}const _=()=>{const{currentApp:o,currentLanguage:n,i18n:a}=T(),{data:i,isFetching:l,fetchNextPage:x}=$(),d=B(),r=E(),m=w(),{setSelectedResources:u,setResourceIds:p,openResource:f,setResourceIsTrash:R}=z(),S=D(),I=J({from:{opacity:0},to:{opacity:1}}),j=d.pagination.startIdx+d.pagination.pageSize-1<(d.pagination.maxIdx||0),b=Z.useCallback(()=>{x()},[]),y=e=>{S?(R(!0),p([e.id]),u([e])):f(e)};function N(e){r.includes(e.id)?(p(r.filter(c=>c!==e.id)),u(m.filter(c=>c.id!==e.id))):(p([...r,e.id]),u([...m,e]))}const C=q("grid ps-0 list-unstyled");return s.jsxs(g.Fragment,{children:[s.jsx(h.ul,{className:C,children:i==null?void 0:i.pages.map((e,c)=>s.jsx(g.Fragment,{children:e.resources.map(t=>{const{id:P,creatorName:k,creatorId:A,name:F,thumbnail:v,updatedAt:L}=t,M=Q(t),O=G(L).locale(n).fromNow();return s.jsx(h.li,{className:"g-col-4",style:{...I},children:s.jsx(K,{app:o,className:"c-pointer",creatorName:k,isPublic:t.public,isSelected:r.includes(t.id),isLoading:l,isShared:M,messagePublic:a("tooltip.public"),messageShared:a("tooltip.shared"),name:F,onOpen:()=>y(t),onSelect:()=>N(t),resourceSrc:v,updatedAt:O,userSrc:`/userbook/avatar/${A}`})},P)})},c))}),j&&s.jsx("div",{className:"d-grid gap-2 col-4 mx-auto my-24",children:s.jsx(H,{type:"button",color:"secondary",variant:"filled",onClick:b,children:a("explorer.see.more")})})]})};export{_ as default};
1
+ import{u as O,a as $,a7 as z,e as B,a1 as w,g as Z,E as q,z as D,a9 as G,r as H,d as J,j as e,R as g,Z as h,ab as K,B as Q}from"./index.js";import{C as U}from"./Card.js";import"./Tooltip.js";import"./usePopper.js";function V(r){const{rights:l,creatorId:i}=r;return l.filter(a=>!a.includes(i)).length>=1}const es=()=>{const{currentApp:r,currentLanguage:l,appCode:i}=O(),{t:n}=$(),{data:a,isFetching:x,fetchNextPage:f}=z(),d=B(),o=w(),m=Z(),{setSelectedResources:u,setResourceIds:p,openResource:R,setResourceIsTrash:S}=q(),I=D(),j=G({from:{opacity:0},to:{opacity:1}}),b=d.pagination.startIdx+d.pagination.pageSize<(d.pagination.maxIdx||0),y=H.useCallback(()=>{f()},[]),N=s=>{I?(S(!0),p([s.id]),u([s])):R(s)};function C(s){o.includes(s.id)?(p(o.filter(c=>c!==s.id)),u(m.filter(c=>c.id!==s.id))):(p([...o,s.id]),u([...m,s]))}const P=J("grid ps-0 list-unstyled");return e.jsxs(g.Fragment,{children:[e.jsx(h.ul,{className:P,children:a==null?void 0:a.pages.map((s,c)=>e.jsx(g.Fragment,{children:s.resources.map(t=>{const{id:k,creatorName:A,creatorId:F,name:T,thumbnail:v,updatedAt:E}=t,L=V(t),M=K(E).locale(l).fromNow();return e.jsx(h.li,{className:"g-col-4",style:{...j},children:e.jsx(U,{app:r,className:"c-pointer",creatorName:A,isPublic:t.public,isSelected:o.includes(t.id),isLoading:x,isShared:L,messagePublic:n("tooltip.public",{ns:i}),messageShared:n("tooltip.shared",{ns:i}),name:T,onOpen:()=>N(t),onSelect:()=>C(t),resourceSrc:v,updatedAt:M,userSrc:`/userbook/avatar/${F}`})},k)})},c))}),b&&e.jsx("div",{className:"d-grid gap-2 col-4 mx-auto my-24",children:e.jsx(Q,{type:"button",color:"secondary",variant:"filled",onClick:y,children:n("explorer.see.more")})})]})};export{es as default};
@@ -1 +1 @@
1
- import{r as n,c,e as o,R as j}from"./index.js";const x=({options:a,hideCheckbox:d,isMonoSelection:u,onChange:i,model:m=[]})=>{const[s,h]=n.useState(m),r=e=>{h(u?[e]:l=>{const t=[...l];return l.includes(e)?t.splice(t.indexOf(e),1):t.push(e),t})};return n.useEffect(()=>{i==null||i(s)},[s]),c.jsx(c.Fragment,{children:c.jsx("div",{className:"select-list",children:a==null?void 0:a.map(e=>c.jsxs("div",{className:o("select-list-option",d&&s.includes(e.value)&&"text-secondary fw-bold"),role:"checkbox","aria-checked":s.includes(e.value),onMouseUp:()=>{r(e.value)},tabIndex:0,onKeyDown:l=>{l.key==="Enter"&&r(e.value)},children:[c.jsx("div",{className:"select-list-option-icon",children:e.icon&&j.createElement(e.icon,{width:"20px",height:"20px"})}),c.jsx("div",{className:"select-list-option-label",children:e.label}),!d&&c.jsx("div",{className:"select-list-option-checkbox",children:c.jsx("input",{readOnly:!0,type:"checkbox",tabIndex:-1,checked:s.includes(e.value),className:"form-check-input c-pointer",id:"option.value"})})]},e.value))})})};x.displayName="SelectList";const v=x;export{v as S};
1
+ import{r as n,j as c,d as j,R as o}from"./index.js";const x=({options:a,hideCheckbox:d,isMonoSelection:u,onChange:i,model:m=[]})=>{const[s,h]=n.useState(m),r=e=>{h(u?[e]:l=>{const t=[...l];return l.includes(e)?t.splice(t.indexOf(e),1):t.push(e),t})};return n.useEffect(()=>{i==null||i(s)},[s]),c.jsx(c.Fragment,{children:c.jsx("div",{className:"select-list",children:a==null?void 0:a.map(e=>c.jsxs("div",{className:j("select-list-option",d&&s.includes(e.value)&&"text-secondary fw-bold"),role:"checkbox","aria-checked":s.includes(e.value),onMouseUp:()=>{r(e.value)},tabIndex:0,onKeyDown:l=>{l.key==="Enter"&&r(e.value)},children:[c.jsx("div",{className:"select-list-option-icon",children:e.icon&&o.createElement(e.icon,{width:"20px",height:"20px"})}),c.jsx("div",{className:"select-list-option-label",children:e.label}),!d&&c.jsx("div",{className:"select-list-option-checkbox",children:c.jsx("input",{readOnly:!0,type:"checkbox",tabIndex:-1,checked:s.includes(e.value),className:"form-check-input c-pointer",id:"option.value"})})]},e.value))})})};x.displayName="SelectList";const v=x;export{v as S};