ode-explorer 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppAction.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/EditFolderModal.js +1 -1
- package/dist/EditResourceModal.js +3 -1
- package/dist/EmptyScreen.js +1 -1
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/EmptyScreenError.js +1 -0
- package/dist/EmptyScreenNoContentInFolder.js +1 -1
- package/dist/EmptyScreenSearch.js +1 -0
- package/dist/EmptyScreenTrash.js +1 -1
- package/dist/FoldersList.js +1 -1
- package/dist/Library.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/OnboardingTrash.js +1 -1
- package/dist/PublishModal.js +1 -2
- package/dist/ResourcesList.js +5 -1
- package/dist/ShareResourceModal.js +1 -1
- package/dist/TextArea.js +1 -0
- package/dist/Tooltip.js +1 -1
- package/dist/TrashedResourceModal.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.html +2 -2
- package/dist/index.js +50 -65
- package/dist/style.css +1 -1
- package/dist/version.txt +1 -0
- package/package.json +39 -38
- package/dist/ImagePicker.js +0 -1
- package/dist/SelectList.js +0 -1
- package/dist/usePopper.js +0 -1
package/dist/OnboardingTrash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
import{r as z,R as _,u as Re,a as ke,j as G,M as K,I as le,B as U,b as He}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function be(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function we(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:be(e[i])&&be(t[i])&&Object.keys(e[i]).length>0&&we(t[i],e[i])})}const Ce={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 we(t,Ce),t}const je={document:Ce,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 V(){const t=typeof window<"u"?window:{};return we(t,je),t}function We(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function qe(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function me(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function te(){return Date.now()}function Ye(t){const e=V();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Xe(t,e){e===void 0&&(e="x");const i=V();let s,n,r;const l=Ye(t);return i.WebKitCSSMatrix?(n=l.transform||l.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(o=>o.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.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 Ke(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&&!Ke(s)){const n=Object.keys(Object(s)).filter(r=>e.indexOf(r)<0);for(let r=0,l=n.length;r<l;r+=1){const o=n[r],a=Object.getOwnPropertyDescriptor(s,o);a!==void 0&&a.enumerable&&(Z(t[o])&&Z(s[o])?s[o].__swiper__?t[o]=s[o]:B(t[o],s[o]):!Z(t[o])&&Z(s[o])?(t[o]={},s[o].__swiper__?t[o]=s[o]:B(t[o],s[o])):t[o]=s[o])}}}return t}function J(t,e,i){t.style.setProperty(e,i)}function Pe(t){let{swiper:e,targetPosition:i,side:s}=t;const n=V(),r=-e.translate;let l=null,o;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const c=i>r?"next":"prev",d=(m,h)=>c==="next"&&m>=h||c==="prev"&&m<=h,p=()=>{o=new Date().getTime(),l===null&&(l=o);const m=Math.max(Math.min((o-l)/a,1),0),h=.5-Math.cos(m*Math.PI)/2;let w=r+h*(i-r);if(d(w,i)&&(w=i),e.wrapperEl.scrollTo({[s]:w}),d(w,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:w})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(p)};p()}function F(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function ie(t){try{console.warn(t);return}catch{}}function se(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:We(e)),i}function Ue(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 Ze(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 k(t,e){return V().getComputedStyle(t,null).getPropertyValue(e)}function re(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 he(t,e,i){const s=V();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 Je(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&i.auto===!0){let r=F(t.el,`.${s[n]}`)[0];r||(r=se("div",s[n]),r.className=s[n],t.el.append(r)),i[n]=r,e[n]=r}}),i}function q(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Qe(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:f=>f,formatFractionTotal:f=>f,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 l,o=0;const a=f=>(Array.isArray(f)?f:[f]).filter(u=>!!u);function c(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function d(f,u){const{bulletActiveClass:g}=e.params.pagination;f&&(f=f[`${u==="prev"?"previous":"next"}ElementSibling`],f&&(f.classList.add(`${g}-${u}`),f=f[`${u==="prev"?"previous":"next"}ElementSibling`],f&&f.classList.add(`${g}-${u}-${u}`)))}function p(f){const u=f.target.closest(q(e.params.pagination.bulletClass));if(!u)return;f.preventDefault();const g=re(u)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===g)return;e.slideToLoop(g)}else e.slideTo(g)}function m(){const f=e.rtl,u=e.params.pagination;if(c())return;let g=e.pagination.el;g=a(g);let E,M;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,I=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(M=e.previousRealIndex||0,E=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(E=e.snapIndex,M=e.previousSnapIndex):(M=e.previousIndex||0,E=e.activeIndex||0),u.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const b=e.pagination.bullets;let S,y,P;if(u.dynamicBullets&&(l=he(b[0],e.isHorizontal()?"width":"height",!0),g.forEach(T=>{T.style[e.isHorizontal()?"width":"height"]=`${l*(u.dynamicMainBullets+4)}px`}),u.dynamicMainBullets>1&&M!==void 0&&(o+=E-(M||0),o>u.dynamicMainBullets-1?o=u.dynamicMainBullets-1:o<0&&(o=0)),S=Math.max(E-o,0),y=S+(Math.min(b.length,u.dynamicMainBullets)-1),P=(y+S)/2),b.forEach(T=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(O=>`${u.bulletActiveClass}${O}`)].map(O=>typeof O=="string"&&O.includes(" ")?O.split(" "):O).flat();T.classList.remove(...L)}),g.length>1)b.forEach(T=>{const L=re(T);L===E?T.classList.add(...u.bulletActiveClass.split(" ")):e.isElement&&T.setAttribute("part","bullet"),u.dynamicBullets&&(L>=S&&L<=y&&T.classList.add(...`${u.bulletActiveClass}-main`.split(" ")),L===S&&d(T,"prev"),L===y&&d(T,"next"))});else{const T=b[E];if(T&&T.classList.add(...u.bulletActiveClass.split(" ")),e.isElement&&b.forEach((L,O)=>{L.setAttribute("part",O===E?"bullet-active":"bullet")}),u.dynamicBullets){const L=b[S],O=b[y];for(let $=S;$<=y;$+=1)b[$]&&b[$].classList.add(...`${u.bulletActiveClass}-main`.split(" "));d(L,"prev"),d(O,"next")}}if(u.dynamicBullets){const T=Math.min(b.length,u.dynamicMainBullets+4),L=(l*T-l)/2-P*l,O=f?"right":"left";b.forEach($=>{$.style[e.isHorizontal()?O:"top"]=`${L}px`})}}g.forEach((b,S)=>{if(u.type==="fraction"&&(b.querySelectorAll(q(u.currentClass)).forEach(y=>{y.textContent=u.formatFractionCurrent(E+1)}),b.querySelectorAll(q(u.totalClass)).forEach(y=>{y.textContent=u.formatFractionTotal(I)})),u.type==="progressbar"){let y;u.progressbarOpposite?y=e.isHorizontal()?"vertical":"horizontal":y=e.isHorizontal()?"horizontal":"vertical";const P=(E+1)/I;let T=1,L=1;y==="horizontal"?T=P:L=P,b.querySelectorAll(q(u.progressbarFillClass)).forEach(O=>{O.style.transform=`translate3d(0,0,0) scaleX(${T}) scaleY(${L})`,O.style.transitionDuration=`${e.params.speed}ms`})}u.type==="custom"&&u.renderCustom?(b.innerHTML=u.renderCustom(e,E+1,I),S===0&&n("paginationRender",b)):(S===0&&n("paginationRender",b),n("paginationUpdate",b)),e.params.watchOverflow&&e.enabled&&b.classList[e.isLocked?"add":"remove"](u.lockClass)})}function h(){const f=e.params.pagination;if(c())return;const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let g=e.pagination.el;g=a(g);let E="";if(f.type==="bullets"){let M=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&M>u&&(M=u);for(let A=0;A<M;A+=1)f.renderBullet?E+=f.renderBullet.call(e,A,f.bulletClass):E+=`<${f.bulletElement} ${e.isElement?'part="bullet"':""} class="${f.bulletClass}"></${f.bulletElement}>`}f.type==="fraction"&&(f.renderFraction?E=f.renderFraction.call(e,f.currentClass,f.totalClass):E=`<span class="${f.currentClass}"></span> / <span class="${f.totalClass}"></span>`),f.type==="progressbar"&&(f.renderProgressbar?E=f.renderProgressbar.call(e,f.progressbarFillClass):E=`<span class="${f.progressbarFillClass}"></span>`),e.pagination.bullets=[],g.forEach(M=>{f.type!=="custom"&&(M.innerHTML=E||""),f.type==="bullets"&&e.pagination.bullets.push(...M.querySelectorAll(q(f.bulletClass)))}),f.type!=="custom"&&n("paginationRender",g[0])}function w(){e.params.pagination=Je(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const f=e.params.pagination;if(!f.el)return;let u;typeof f.el=="string"&&e.isElement&&(u=e.el.querySelector(f.el)),!u&&typeof f.el=="string"&&(u=[...document.querySelectorAll(f.el)]),u||(u=f.el),!(!u||u.length===0)&&(e.params.uniqueNavElements&&typeof f.el=="string"&&Array.isArray(u)&&u.length>1&&(u=[...e.el.querySelectorAll(f.el)],u.length>1&&(u=u.filter(g=>Me(g,".swiper")[0]===e.el)[0])),Array.isArray(u)&&u.length===1&&(u=u[0]),Object.assign(e.pagination,{el:u}),u=a(u),u.forEach(g=>{f.type==="bullets"&&f.clickable&&g.classList.add(...(f.clickableClass||"").split(" ")),g.classList.add(f.modifierClass+f.type),g.classList.add(e.isHorizontal()?f.horizontalClass:f.verticalClass),f.type==="bullets"&&f.dynamicBullets&&(g.classList.add(`${f.modifierClass}${f.type}-dynamic`),o=0,f.dynamicMainBullets<1&&(f.dynamicMainBullets=1)),f.type==="progressbar"&&f.progressbarOpposite&&g.classList.add(f.progressbarOppositeClass),f.clickable&&g.addEventListener("click",p),e.enabled||g.classList.add(f.lockClass)}))}function x(){const f=e.params.pagination;if(c())return;let u=e.pagination.el;u&&(u=a(u),u.forEach(g=>{g.classList.remove(f.hiddenClass),g.classList.remove(f.modifierClass+f.type),g.classList.remove(e.isHorizontal()?f.horizontalClass:f.verticalClass),f.clickable&&(g.classList.remove(...(f.clickableClass||"").split(" ")),g.removeEventListener("click",p))})),e.pagination.bullets&&e.pagination.bullets.forEach(g=>g.classList.remove(...f.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const f=e.params.pagination;let{el:u}=e.pagination;u=a(u),u.forEach(g=>{g.classList.remove(f.horizontalClass,f.verticalClass),g.classList.add(e.isHorizontal()?f.horizontalClass:f.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?v():(w(),h(),m())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&m()}),s("snapIndexChange",()=>{m()}),s("snapGridLengthChange",()=>{h(),m()}),s("destroy",()=>{x()}),s("enable disable",()=>{let{el:f}=e.pagination;f&&(f=a(f),f.forEach(u=>u.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{m()}),s("click",(f,u)=>{const g=u.target,E=a(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&E&&E.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 M=E[0].classList.contains(e.params.pagination.hiddenClass);n(M===!0?"paginationShow":"paginationHide"),E.forEach(A=>A.classList.toggle(e.params.pagination.hiddenClass))}});const C=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:f}=e.pagination;f&&(f=a(f),f.forEach(u=>u.classList.remove(e.params.pagination.paginationDisabledClass))),w(),h(),m()},v=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:f}=e.pagination;f&&(f=a(f),f.forEach(u=>u.classList.add(e.params.pagination.paginationDisabledClass))),x()};Object.assign(e.pagination,{enable:C,disable:v,render:h,update:m,init:w,destroy:x})}let oe;function et(){const t=V(),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 Ie(){return oe||(oe=et()),oe}let de;function tt(t){let{userAgent:e}=t===void 0?{}:t;const i=Ie(),s=V(),n=s.navigator.platform,r=e||s.navigator.userAgent,l={ios:!1,android:!1},o=s.screen.width,a=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const p=r.match(/(iPod)(.*OS\s([\d_]+))?/),m=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=n==="Win32";let w=n==="MacIntel";const x=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&w&&i.touch&&x.indexOf(`${o}x${a}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),w=!1),c&&!h&&(l.os="android",l.android=!0),(d||m||p)&&(l.os="ios",l.ios=!0),l}function it(t){return t===void 0&&(t={}),de||(de=tt(t)),de}let ce;function st(){const t=V();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(l=>Number(l));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 rt(){return ce||(ce=st()),ce}function nt(t){let{swiper:e,on:i,emit:s}=t;const n=V();let r=null,l=null;const o=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(p=>{l=n.requestAnimationFrame(()=>{const{width:m,height:h}=e;let w=m,x=h;p.forEach(C=>{let{contentBoxSize:v,contentRect:f,target:u}=C;u&&u!==e.el||(w=f?f.width:(v[0]||v).inlineSize,x=f?f.height:(v[0]||v).blockSize)}),(w!==m||x!==h)&&o()})}),r.observe(e.el))},c=()=>{l&&n.cancelAnimationFrame(l),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){a();return}n.addEventListener("resize",o),n.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",d)})}function at(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=[],l=V(),o=function(d,p){p===void 0&&(p={});const m=l.MutationObserver||l.WebkitMutationObserver,h=new m(w=>{if(e.__preventObserver__)return;if(w.length===1){n("observerUpdate",w[0]);return}const x=function(){n("observerUpdate",w[0])};l.requestAnimationFrame?l.requestAnimationFrame(x):l.setTimeout(x,0)});h.observe(d,{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(h)},a=()=>{if(e.params.observer){if(e.params.observeParents){const d=Me(e.hostEl);for(let p=0;p<d.length;p+=1)o(d[p])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}},c=()=>{r.forEach(d=>{d.disconnect()}),r.splice(0,r.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",a),s("destroy",c)}var lt={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,l=new Array(r),o=0;o<r;o++)l[o]=arguments[o];e.apply(s,l)}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),l=0;l<n;l++)r[l]=arguments[l];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 ot(){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(k(s,"padding-left")||0,10)-parseInt(k(s,"padding-right")||0,10),i=i-parseInt(k(s,"padding-top")||0,10)-parseInt(k(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 dt(){const t=this;function e(S,y){return parseFloat(S.getPropertyValue(t.getDirectionLabel(y))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:l,wrongRTL:o}=t,a=t.virtual&&i.virtual.enabled,c=a?t.virtual.slides.length:t.slides.length,d=F(n,`.${t.params.slideClass}, swiper-slide`),p=a?t.virtual.slides.length:d.length;let m=[];const h=[],w=[];let x=i.slidesOffsetBefore;typeof x=="function"&&(x=i.slidesOffsetBefore.call(t));let C=i.slidesOffsetAfter;typeof C=="function"&&(C=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,f=t.slidesGrid.length;let u=i.spaceBetween,g=-x,E=0,M=0;if(typeof r>"u")return;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*r:typeof u=="string"&&(u=parseFloat(u)),t.virtualSize=-u,d.forEach(S=>{l?S.style.marginLeft="":S.style.marginRight="",S.style.marginBottom="",S.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(J(s,"--swiper-centered-offset-before",""),J(s,"--swiper-centered-offset-after",""));const A=i.grid&&i.grid.rows>1&&t.grid;A?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let I;const b=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(S=>typeof i.breakpoints[S].slidesPerView<"u").length>0;for(let S=0;S<p;S+=1){I=0;let y;if(d[S]&&(y=d[S]),A&&t.grid.updateSlide(S,y,d),!(d[S]&&k(y,"display")==="none")){if(i.slidesPerView==="auto"){b&&(d[S].style[t.getDirectionLabel("width")]="");const P=getComputedStyle(y),T=y.style.transform,L=y.style.webkitTransform;if(T&&(y.style.transform="none"),L&&(y.style.webkitTransform="none"),i.roundLengths)I=t.isHorizontal()?he(y,"width",!0):he(y,"height",!0);else{const O=e(P,"width"),$=e(P,"padding-left"),ae=e(P,"padding-right"),X=e(P,"margin-left"),D=e(P,"margin-right"),N=P.getPropertyValue("box-sizing");if(N&&N==="border-box")I=O+X+D;else{const{clientWidth:Ne,offsetWidth:Fe}=y;I=O+$+ae+X+D+(Fe-Ne)}}T&&(y.style.transform=T),L&&(y.style.webkitTransform=L),i.roundLengths&&(I=Math.floor(I))}else I=(r-(i.slidesPerView-1)*u)/i.slidesPerView,i.roundLengths&&(I=Math.floor(I)),d[S]&&(d[S].style[t.getDirectionLabel("width")]=`${I}px`);d[S]&&(d[S].swiperSlideSize=I),w.push(I),i.centeredSlides?(g=g+I/2+E/2+u,E===0&&S!==0&&(g=g-r/2-u),S===0&&(g=g-r/2-u),Math.abs(g)<1/1e3&&(g=0),i.roundLengths&&(g=Math.floor(g)),M%i.slidesPerGroup===0&&m.push(g),h.push(g)):(i.roundLengths&&(g=Math.floor(g)),(M-Math.min(t.params.slidesPerGroupSkip,M))%t.params.slidesPerGroup===0&&m.push(g),h.push(g),g=g+I+u),t.virtualSize+=I+u,E=I,M+=1}}if(t.virtualSize=Math.max(t.virtualSize,r)+C,l&&o&&(i.effect==="slide"||i.effect==="coverflow")&&(s.style.width=`${t.virtualSize+u}px`),i.setWrapperSize&&(s.style[t.getDirectionLabel("width")]=`${t.virtualSize+u}px`),A&&t.grid.updateWrapperSize(I,m),!i.centeredSlides){const S=[];for(let y=0;y<m.length;y+=1){let P=m[y];i.roundLengths&&(P=Math.floor(P)),m[y]<=t.virtualSize-r&&S.push(P)}m=S,Math.floor(t.virtualSize-r)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-r)}if(a&&i.loop){const S=w[0]+u;if(i.slidesPerGroup>1){const y=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),P=S*i.slidesPerGroup;for(let T=0;T<y;T+=1)m.push(m[m.length-1]+P)}for(let y=0;y<t.virtual.slidesBefore+t.virtual.slidesAfter;y+=1)i.slidesPerGroup===1&&m.push(m[m.length-1]+S),h.push(h[h.length-1]+S),t.virtualSize+=S}if(m.length===0&&(m=[0]),u!==0){const S=t.isHorizontal()&&l?"marginLeft":t.getDirectionLabel("marginRight");d.filter((y,P)=>!i.cssMode||i.loop?!0:P!==d.length-1).forEach(y=>{y.style[S]=`${u}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let S=0;w.forEach(P=>{S+=P+(u||0)}),S-=u;const y=S-r;m=m.map(P=>P<=0?-x:P>y?y+C:P)}if(i.centerInsufficientSlides){let S=0;if(w.forEach(y=>{S+=y+(u||0)}),S-=u,S<r){const y=(r-S)/2;m.forEach((P,T)=>{m[T]=P-y}),h.forEach((P,T)=>{h[T]=P+y})}}if(Object.assign(t,{slides:d,snapGrid:m,slidesGrid:h,slidesSizesGrid:w}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){J(s,"--swiper-centered-offset-before",`${-m[0]}px`),J(s,"--swiper-centered-offset-after",`${t.size/2-w[w.length-1]/2}px`);const S=-t.snapGrid[0],y=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(P=>P+S),t.slidesGrid=t.slidesGrid.map(P=>P+y)}if(p!==c&&t.emit("slidesLengthChange"),m.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==f&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),!a&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const S=`${i.containerModifierClass}backface-hidden`,y=t.el.classList.contains(S);p<=i.maxBackfaceHiddenSlides?y||t.el.classList.add(S):y&&t.el.classList.remove(S)}}function ct(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 l=o=>s?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{i.push(o)});else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){const o=e.activeIndex+r;if(o>e.slides.length&&!s)break;i.push(l(o))}else i.push(l(e.activeIndex));for(r=0;r<i.length;r+=1)if(typeof i[r]<"u"){const o=i[r].offsetHeight;n=o>n?o:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function ft(){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 ut(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 l=-t;n&&(l=t),s.forEach(a=>{a.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=i.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let a=0;a<s.length;a+=1){const c=s[a];let d=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=s[0].swiperSlideOffset);const p=(l+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+o),m=(l-r[0]+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+o),h=-(l-d),w=h+e.slidesSizesGrid[a],x=h>=0&&h<=e.size-e.slidesSizesGrid[a];(h>=0&&h<e.size-1||w>1&&w<=e.size||h<=0&&w>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(a),s[a].classList.add(i.slideVisibleClass)),x&&s[a].classList.add(i.slideFullyVisibleClass),c.progress=n?-p:p,c.originalProgress=n?-m:m}}function pt(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:l,progressLoop:o}=e;const a=r,c=l;if(s===0)n=0,r=!0,l=!0;else{n=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;r=d||n<=0,l=p||n>=1,d&&(n=0),p&&(n=1)}if(i.loop){const d=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),m=e.slidesGrid[d],h=e.slidesGrid[p],w=e.slidesGrid[e.slidesGrid.length-1],x=Math.abs(t);x>=m?o=(x-m)/w:o=(x+w-h)/w,o>1&&(o-=1)}Object.assign(e,{progress:n,progressLoop:o,isBeginning:r,isEnd:l}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!a&&e.emit("reachBeginning toEdge"),l&&!c&&e.emit("reachEnd toEdge"),(a&&!r||c&&!l)&&e.emit("fromEdge"),e.emit("progress",n)}function mt(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,l=t.grid&&i.grid&&i.grid.rows>1,o=p=>F(s,`.${i.slideClass}${p}, swiper-slide${p}`)[0];e.forEach(p=>{p.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let a,c,d;if(r)if(i.loop){let p=n-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),a=o(`[data-swiper-slide-index="${p}"]`)}else a=o(`[data-swiper-slide-index="${n}"]`);else l?(a=e.filter(p=>p.column===n)[0],d=e.filter(p=>p.column===n+1)[0],c=e.filter(p=>p.column===n-1)[0]):a=e[n];a&&(a.classList.add(i.slideActiveClass),l?(d&&d.classList.add(i.slideNextClass),c&&c.classList.add(i.slidePrevClass)):(d=Ze(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),d&&d.classList.add(i.slideNextClass),c=Ue(a,`.${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){let n=s.querySelector(`.${t.params.lazyPreloaderClass}`);!n&&t.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},fe=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},ge=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 l=n,o=[l-e];o.push(...Array.from({length:e}).map((a,c)=>l+s+c)),t.slides.forEach((a,c)=>{o.includes(a.column)&&fe(t,c)});return}const r=n+s-1;if(t.params.rewind||t.params.loop)for(let l=n-e;l<=r+e;l+=1){const o=(l%i+i)%i;(o<n||o>r)&&fe(t,o)}else for(let l=Math.max(n-e,0);l<=Math.min(r+e,i-1);l+=1)l!==n&&(l>r||l<n)&&fe(t,l)};function ht(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 gt(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:l,snapIndex:o}=e;let a=t,c;const d=h=>{let w=h-e.virtual.slidesBefore;return w<0&&(w=e.virtual.slides.length+w),w>=e.virtual.slides.length&&(w-=e.virtual.slides.length),w};if(typeof a>"u"&&(a=ht(e)),s.indexOf(i)>=0)c=s.indexOf(i);else{const h=Math.min(n.slidesPerGroupSkip,a);c=h+Math.floor((a-h)/n.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),a===r&&!e.params.loop){c!==o&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(a===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(a);return}const p=e.grid&&n.grid&&n.grid.rows>1;let m;if(e.virtual&&n.virtual.enabled&&n.loop)m=d(a);else if(p){const h=e.slides.filter(x=>x.column===a)[0];let w=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(w)&&(w=Math.max(e.slides.indexOf(h),0)),m=Math.floor(w/n.grid.rows)}else if(e.slides[a]){const h=e.slides[a].getAttribute("data-swiper-slide-index");h?m=parseInt(h,10):m=a}else m=a;Object.assign(e,{previousSnapIndex:o,snapIndex:c,previousRealIndex:l,realIndex:m,previousIndex:r,activeIndex:a}),e.initialized&&ge(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(l!==m&&e.emit("realIndexChange"),e.emit("slideChange"))}function vt(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!n&&o.matches&&o.matches(`.${s.slideClass}, swiper-slide`)&&(n=o)});let r=!1,l;if(n){for(let o=0;o<i.slides.length;o+=1)if(i.slides[o]===n){r=!0,l=o;break}}if(n&&r)i.clickedSlide=n,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=l;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}s.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var wt={updateSize:ot,updateSlides:dt,updateAutoHeight:ct,updateSlidesOffset:ft,updateSlidesProgress:ut,updateProgress:pt,updateSlidesClasses:mt,updateActiveIndex:gt,updateClickedSlide:vt};function St(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 l=Xe(r,t);return l+=e.cssOverflowAdjustment(),s&&(l=-l),l||0}function bt(t,e){const i=this,{rtlTranslate:s,params:n,wrapperEl:r,progress:l}=i;let o=0,a=0;const c=0;i.isHorizontal()?o=s?-t:t:a=t,n.roundLengths&&(o=Math.floor(o),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:a,n.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-o:-a:n.virtualTranslate||(i.isHorizontal()?o-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${a}px, ${c}px)`);let d;const p=i.maxTranslate()-i.minTranslate();p===0?d=0:d=(t-i.minTranslate())/p,d!==l&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function xt(){return-this.snapGrid[0]}function Tt(){return-this.snapGrid[this.snapGrid.length-1]}function yt(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:l,wrapperEl:o}=r;if(r.animating&&l.preventInteractionOnTransition)return!1;const a=r.minTranslate(),c=r.maxTranslate();let d;if(s&&t>a?d=a:s&&t<c?d=c:d=t,r.updateProgress(d),l.cssMode){const p=r.isHorizontal();if(e===0)o[p?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return Pe({swiper:r,targetPosition:-d,side:p?"left":"top"}),!0;o.scrollTo({[p?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(r.setTransition(0),r.setTranslate(d),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(d),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(m){!r||r.destroyed||m.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 Et={getTranslate:St,setTranslate:bt,minTranslate:xt,maxTranslate:Tt,translateTo:yt};function Ct(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function Le(t){let{swiper:e,runCallbacks:i,direction:s,step:n}=t;const{activeIndex:r,previousIndex:l}=e;let o=s;if(o||(r>l?o="next":r<l?o="prev":o="reset"),e.emit(`transition${n}`),i&&r!==l){if(o==="reset"){e.emit(`slideResetTransition${n}`);return}e.emit(`slideChangeTransition${n}`),o==="next"?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`)}}function Pt(t,e){t===void 0&&(t=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),Le({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Mt(t,e){t===void 0&&(t=!0);const i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),Le({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var It={setTransition:Ct,transitionStart:Pt,transitionEnd:Mt};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 l=t;l<0&&(l=0);const{params:o,snapGrid:a,slidesGrid:c,previousIndex:d,activeIndex:p,rtlTranslate:m,wrapperEl:h,enabled:w}=r;if(r.animating&&o.preventInteractionOnTransition||!w&&!s&&!n)return!1;const x=Math.min(r.params.slidesPerGroupSkip,l);let C=x+Math.floor((l-x)/r.params.slidesPerGroup);C>=a.length&&(C=a.length-1);const v=-a[C];if(o.normalizeSlideIndex)for(let u=0;u<c.length;u+=1){const g=-Math.floor(v*100),E=Math.floor(c[u]*100),M=Math.floor(c[u+1]*100);typeof c[u+1]<"u"?g>=E&&g<M-(M-E)/2?l=u:g>=E&&g<M&&(l=u+1):g>=E&&(l=u)}if(r.initialized&&l!==p&&(!r.allowSlideNext&&(m?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate())||!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(p||0)!==l))return!1;l!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(v);let f;if(l>p?f="next":l<p?f="prev":f="reset",m&&-v===r.translate||!m&&v===r.translate)return r.updateActiveIndex(l),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),o.effect!=="slide"&&r.setTranslate(v),f!=="reset"&&(r.transitionStart(i,f),r.transitionEnd(i,f)),!1;if(o.cssMode){const u=r.isHorizontal(),g=m?v:-v;if(e===0){const E=r.virtual&&r.params.virtual.enabled;E&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),E&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[u?"scrollLeft":"scrollTop"]=g})):h[u?"scrollLeft":"scrollTop"]=g,E&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return Pe({swiper:r,targetPosition:g,side:u?"left":"top"}),!0;h.scrollTo({[u?"left":"top"]:g,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(v),r.updateActiveIndex(l),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,f),e===0?r.transitionEnd(i,f):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(g){!r||r.destroyed||g.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,f))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function Ot(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,r=n.grid&&n.params.grid&&n.params.grid.rows>1;let l=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)l=l+n.virtual.slidesBefore;else{let o;if(r){const m=l*n.params.grid.rows;o=n.slides.filter(h=>h.getAttribute("data-swiper-slide-index")*1===m)[0].column}else o=n.getSlideIndexByData(l);const a=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:c}=n.params;let d=n.params.slidesPerView;d==="auto"?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let p=a-o<d;if(c&&(p=p||o<Math.ceil(d/2)),p){const m=c?o<n.activeIndex?"prev":"next":o-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:m,slideTo:!0,activeSlideIndex:m==="next"?o+1:o-a+1,slideRealIndex:m==="next"?n.realIndex:void 0})}if(r){const m=l*n.params.grid.rows;l=n.slides.filter(h=>h.getAttribute("data-swiper-slide-index")*1===m)[0].column}else l=n.getSlideIndexByData(l)}return requestAnimationFrame(()=>{n.slideTo(l,e,i,s)}),n}function zt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:n,params:r,animating:l}=s;if(!n)return s;let o=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndex<r.slidesPerGroupSkip?1:o,c=s.virtual&&r.virtual.enabled;if(r.loop){if(l&&!c&&r.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+a,t,e,i)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+a,t,e,i)}function At(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:l,rtlTranslate:o,enabled:a,animating:c}=s;if(!a)return s;const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const p=o?s.translate:-s.translate;function m(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const h=m(p),w=r.map(v=>m(v));let x=r[w.indexOf(h)-1];if(typeof x>"u"&&n.cssMode){let v;r.forEach((f,u)=>{h>=f&&(v=u)}),typeof v<"u"&&(x=r[v>0?v-1:v])}let C=0;if(typeof x<"u"&&(C=l.indexOf(x),C<0&&(C=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(C=C-s.slidesPerViewDynamic("previous",!0)+1,C=Math.max(C,0))),n.rewind&&s.isBeginning){const v=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(v,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(C,t,e,i)}),!0;return s.slideTo(C,t,e,i)}function _t(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 Gt(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 l=Math.min(n.params.slidesPerGroupSkip,r),o=l+Math.floor((r-l)/n.params.slidesPerGroup),a=n.rtlTranslate?n.translate:-n.translate;if(a>=n.snapGrid[o]){const c=n.snapGrid[o],d=n.snapGrid[o+1];a-c>(d-c)*s&&(r+=n.params.slidesPerGroup)}else{const c=n.snapGrid[o-1],d=n.snapGrid[o];a-c<=(d-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 l=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(F(i,`${l}[data-swiper-slide-index="${r}"]`)[0]),me(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(F(i,`${l}[data-swiper-slide-index="${r}"]`)[0]),me(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var Dt={slideTo:Lt,slideToLoop:Ot,slideNext:zt,slidePrev:At,slideReset:_t,slideToClosest:Gt,slideToClickedSlide:$t};function Bt(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const n=()=>{F(s,`.${i.slideClass}, swiper-slide`).forEach((p,m)=>{p.setAttribute("data-swiper-slide-index",m)})},r=e.grid&&i.grid&&i.grid.rows>1,l=i.slidesPerGroup*(r?i.grid.rows:1),o=e.slides.length%l!==0,a=r&&e.slides.length%i.grid.rows!==0,c=d=>{for(let p=0;p<d;p+=1){const m=e.isElement?se("swiper-slide",[i.slideBlankClass]):se("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(m)}};if(o){if(i.loopAddBlankSlides){const d=l-e.slides.length%l;c(d),e.recalcSlides(),e.updateSlides()}else ie("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else if(a){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;c(d),e.recalcSlides(),e.updateSlides()}else ie("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else n();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Vt(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:n,activeSlideIndex:r,byController:l,byMousewheel:o}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:p,slidesEl:m,params:h}=a,{centeredSlides:w}=h;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&h.virtual.enabled){i&&(!h.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):h.centeredSlides&&a.snapIndex<h.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=d,a.allowSlideNext=p,a.emit("loopFix");return}let x=h.slidesPerView;x==="auto"?x=a.slidesPerViewDynamic():(x=Math.ceil(parseFloat(h.slidesPerView,10)),w&&x%2===0&&(x=x+1));const C=h.slidesPerGroupAuto?x:h.slidesPerGroup;let v=C;v%C!==0&&(v+=C-v%C),v+=h.loopAdditionalSlides,a.loopedSlides=v;const f=a.grid&&h.grid&&h.grid.rows>1;c.length<x+v?ie("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):f&&h.grid.fill==="row"&&ie("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const u=[],g=[];let E=a.activeIndex;typeof r>"u"?r=a.getSlideIndex(c.filter(T=>T.classList.contains(h.slideActiveClass))[0]):E=r;const M=s==="next"||!s,A=s==="prev"||!s;let I=0,b=0;const S=f?Math.ceil(c.length/h.grid.rows):c.length,P=(f?c[r].column:r)+(w&&typeof n>"u"?-x/2+.5:0);if(P<v){I=Math.max(v-P,C);for(let T=0;T<v-P;T+=1){const L=T-Math.floor(T/S)*S;if(f){const O=S-L-1;for(let $=c.length-1;$>=0;$-=1)c[$].column===O&&u.push($)}else u.push(S-L-1)}}else if(P+x>S-v){b=Math.max(P-(S-v*2),C);for(let T=0;T<b;T+=1){const L=T-Math.floor(T/S)*S;f?c.forEach((O,$)=>{O.column===L&&g.push($)}):g.push(L)}}if(a.__preventObserver__=!0,requestAnimationFrame(()=>{a.__preventObserver__=!1}),A&&u.forEach(T=>{c[T].swiperLoopMoveDOM=!0,m.prepend(c[T]),c[T].swiperLoopMoveDOM=!1}),M&&g.forEach(T=>{c[T].swiperLoopMoveDOM=!0,m.append(c[T]),c[T].swiperLoopMoveDOM=!1}),a.recalcSlides(),h.slidesPerView==="auto"?a.updateSlides():f&&(u.length>0&&A||g.length>0&&M)&&a.slides.forEach((T,L)=>{a.grid.updateSlide(L,T,a.slides)}),h.watchSlidesProgress&&a.updateSlidesOffset(),i){if(u.length>0&&A){if(typeof e>"u"){const T=a.slidesGrid[E],O=a.slidesGrid[E+I]-T;o?a.setTranslate(a.translate-O):(a.slideTo(E+I,0,!1,!0),n&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-O,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-O))}else if(n){const T=f?u.length/h.grid.rows:u.length;a.slideTo(a.activeIndex+T,0,!1,!0),a.touchEventsData.currentTranslate=a.translate}}else if(g.length>0&&M)if(typeof e>"u"){const T=a.slidesGrid[E],O=a.slidesGrid[E-b]-T;o?a.setTranslate(a.translate-O):(a.slideTo(E-b,0,!1,!0),n&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-O,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-O))}else{const T=f?g.length/h.grid.rows:g.length;a.slideTo(a.activeIndex-T,0,!1,!0)}}if(a.allowSlidePrev=d,a.allowSlideNext=p,a.controller&&a.controller.control&&!l){const T={slideRealIndex:e,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({...T,slideTo:L.params.slidesPerView===h.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...T,slideTo:a.controller.control.params.slidesPerView===h.slidesPerView?i:!1})}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 Ft={loopCreate:Bt,loopFix:Vt,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 kt(){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:kt};function jt(t,e){e===void 0&&(e=this);function i(s){if(!s||s===W()||s===V())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 xe(t,e,i){const s=V(),{params:n}=t,r=n.edgeSwipeDetection,l=n.edgeSwipeThreshold;return r&&(i<=l||i>=s.innerWidth-l)?r==="prevent"?(e.preventDefault(),!0):!1:!0}function Wt(t){const e=this,i=W();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if(s.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(n.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){xe(e,s,s.targetTouches[0].pageX);return}const{params:r,touches:l,enabled:o}=e;if(!o||!r.simulateTouch&&s.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let a=s.target;if(r.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(a)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&d&&(a=d[0]);const p=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(s.target&&s.target.shadowRoot);if(r.noSwiping&&(m?jt(p,a):a.closest(p))){e.allowClick=!0;return}if(r.swipeHandler&&!a.closest(r.swipeHandler))return;l.currentX=s.pageX,l.currentY=s.pageY;const h=l.currentX,w=l.currentY;if(!xe(e,s,h))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=h,l.startY=w,n.touchStartTime=te(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let x=!0;a.matches(n.focusableElements)&&(x=!1,a.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==a&&i.activeElement.blur();const C=x&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||C)&&!a.isContentEditable&&s.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function qt(t){const e=W(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:l,enabled:o}=i;if(!o||!n.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),a.type==="pointermove"&&(s.touchId!==null||a.pointerId!==s.pointerId))return;let c;if(a.type==="touchmove"){if(c=[...a.changedTouches].filter(M=>M.identifier===s.touchId)[0],!c||c.identifier!==s.touchId)return}else c=a;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",a);return}const d=c.pageX,p=c.pageY;if(a.preventedByNestedSwiper){r.startX=d,r.startY=p;return}if(!i.allowTouchMove){a.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:d,startY:p,currentX:d,currentY:p}),s.touchStartTime=te());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(p<r.startY&&i.translate<=i.maxTranslate()||p>r.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(d<r.startX&&i.translate<=i.maxTranslate()||d>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}s.allowTouchCallbacks&&i.emit("touchMove",a),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=p;const m=r.currentX-r.startX,h=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(m**2+h**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+h*h>=25&&(M=Math.atan2(Math.abs(h),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){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&a.cancelable&&a.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&a.stopPropagation();let w=i.isHorizontal()?m:h,x=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(w=Math.abs(w)*(l?1:-1),x=Math.abs(x)*(l?1:-1)),r.diff=w,w*=n.touchRatio,l&&(w=-w,x=-x);const C=i.touchesDirection;i.swipeDirection=w>0?"prev":"next",i.touchesDirection=x>0?"prev":"next";const v=i.params.loop&&!n.cssMode,f=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(v&&f&&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 u;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&C!==i.touchesDirection&&v&&f&&Math.abs(w)>=1){Object.assign(r,{startX:d,startY:p,currentX:d,currentY:p,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=w+s.startTranslate;let g=!0,E=n.resistanceRatio;if(n.touchReleaseOnEdges&&(E=0),w>0?(v&&f&&!u&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(g=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+w)**E))):w<0&&(v&&f&&!u&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]: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()&&(g=!1,n.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-w)**E))),g&&(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(w)>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 Yt(t){const e=this,i=e.touchEventsData;let s=t;s.originalEvent&&(s=s.originalEvent);let n;if(s.type==="touchend"||s.type==="touchcancel"){if(n=[...s.changedTouches].filter(g=>g.identifier===i.touchId)[0],!n||n.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:l,touches:o,rtlTranslate:a,slidesGrid:c,enabled:d}=e;if(!d||!l.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&l.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}l.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const p=te(),m=p-i.touchStartTime;if(e.allowClick){const g=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(g&&g[0]||s.target,g),e.emit("tap click",s),m<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=te(),me(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||o.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let h;if(l.followFinger?h=a?e.translate:-e.translate:h=-i.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:h});return}let w=0,x=e.slidesSizesGrid[0];for(let g=0;g<c.length;g+=g<l.slidesPerGroupSkip?1:l.slidesPerGroup){const E=g<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;typeof c[g+E]<"u"?h>=c[g]&&h<c[g+E]&&(w=g,x=c[g+E]-c[g]):h>=c[g]&&(w=g,x=c[c.length-1]-c[c.length-2])}let C=null,v=null;l.rewind&&(e.isBeginning?v=l.virtual&&l.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(C=0));const f=(h-c[w])/x,u=w<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;if(m>l.longSwipesMs){if(!l.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(f>=l.longSwipesRatio?e.slideTo(l.rewind&&e.isEnd?C:w+u):e.slideTo(w)),e.swipeDirection==="prev"&&(f>1-l.longSwipesRatio?e.slideTo(w+u):v!==null&&f<0&&Math.abs(f)>l.longSwipesRatio?e.slideTo(v):e.slideTo(w))}else{if(!l.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(w+u):e.slideTo(w):(e.swipeDirection==="next"&&e.slideTo(C!==null?C:w+u),e.swipeDirection==="prev"&&e.slideTo(v!==null?v:w))}}function Te(){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,l=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=l&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!l?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 Xt(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Kt(){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 Ut(t){const e=this;Q(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Zt(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Oe=(t,e)=>{const i=W(),{params:s,el:n,wrapperEl:r,device:l}=t,o=!!s.nested,a=e==="on"?"addEventListener":"removeEventListener",c=e;i[a]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),n[a]("touchstart",t.onTouchStart,{passive:!1}),n[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("touchmove",t.onTouchMove,{passive:!1,capture:o}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:o}),i[a]("touchend",t.onTouchEnd,{passive:!0}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("touchcancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),i[a]("contextmenu",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](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Te,!0):t[c]("observerUpdate",Te,!0),n[a]("load",t.onLoad,{capture:!0})};function Jt(){const t=this,{params:e}=t;t.onTouchStart=Wt.bind(t),t.onTouchMove=qt.bind(t),t.onTouchEnd=Yt.bind(t),t.onDocumentTouchStart=Zt.bind(t),e.cssMode&&(t.onScroll=Kt.bind(t)),t.onClick=Xt.bind(t),t.onLoad=Ut.bind(t),Oe(t,"on")}function Qt(){Oe(this,"off")}var ei={attachEvents:Jt,detachEvents:Qt};const ye=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function ti(){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 l=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!l||t.currentBreakpoint===l)return;const a=(l in r?r[l]:void 0)||t.originalParams,c=ye(t,s),d=ye(t,a),p=s.enabled;c&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(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(v=>{if(typeof a[v]>"u")return;const f=s[v]&&s[v].enabled,u=a[v]&&a[v].enabled;f&&!u&&t[v].disable(),!f&&u&&t[v].enable()});const m=a.direction&&a.direction!==s.direction,h=s.loop&&(a.slidesPerView!==s.slidesPerView||m),w=s.loop;m&&i&&t.changeDirection(),B(t.params,a);const x=t.params.enabled,C=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!x?t.disable():!p&&x&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",a),i&&(h?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!w&&C?(t.loopCreate(e),t.updateSlides()):w&&!C&&t.loopDestroy()),t.emit("breakpoint",a)}function ii(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=V(),r=e==="window"?n.innerHeight:i.clientHeight,l=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const a=parseFloat(o.substr(1));return{value:r*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];e==="window"?n.matchMedia(`(min-width: ${c}px)`).matches&&(s=a):c<=i.clientWidth&&(s=a)}return s||"max"}var si={setBreakpoint:ti,getBreakpoint:ii};function ri(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 ni(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,l=ri(["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(...l),n.classList.add(...e),t.emitContainerClasses()}function ai(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var li={addClasses:ni,removeClasses:ai};function oi(){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 di={checkOverflow:oi},ve={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ci(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(t[n]===!0&&(t[n]={enabled:!0}),n==="navigation"&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),!(n in t&&"enabled"in r)){B(e,s);return}typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),B(e,s)}}const ue={eventsEmitter:lt,update:wt,translate:Et,transition:It,slide:Dt,loop:Ft,grabCursor:Ht,events:ei,breakpoints:si,checkOverflow:di,classes:li},pe={};let Se=class R{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 l=W();if(i.el&&typeof i.el=="string"&&l.querySelectorAll(i.el).length>1){const d=[];return l.querySelectorAll(i.el).forEach(p=>{const m=B({},i,{el:p});d.push(new R(m))}),d}const o=this;o.__swiper__=!0,o.support=Ie(),o.device=it({userAgent:i.userAgent}),o.browser=rt(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const a={};o.modules.forEach(d=>{d({params:i,swiper:o,extendParams:ci(i,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=B({},ve,a);return o.params=B({},c,pe,i),o.originalParams=B({},o.params),o.passedParams=B({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.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:o.params.allowSlideNext,allowSlidePrev:o.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:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:s}=this,n=F(i,`.${s.slideClass}, swiper-slide`),r=re(n[0]);return re(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=F(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(),l=(s.maxTranslate()-n)*e+n;s.translateTo(l,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:l,slidesSizesGrid:o,size:a,activeIndex:c}=s;let d=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let p=r[c]?r[c].swiperSlideSize:0,m;for(let h=c+1;h<r.length;h+=1)r[h]&&!m&&(p+=r[h].swiperSlideSize,d+=1,p>a&&(m=!0));for(let h=c-1;h>=0;h-=1)r[h]&&!m&&(p+=r[h].swiperSlideSize,d+=1,p>a&&(m=!0))}else if(e==="current")for(let p=c+1;p<r.length;p+=1)(i?l[p]+o[p]-l[c]<a:l[p]-l[c]<a)&&(d+=1);else for(let p=c-1;p>=0;p-=1)l[c]-l[p]<a&&(d+=1);return d}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(l=>{l.complete&&Q(e,l)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const l=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(l,e.maxTranslate()),e.minTranslate());e.setTranslate(o),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 l=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(l.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&&s.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(i.isElement=!0);const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):F(s,n())[0])();return!l&&i.params.createElements&&(l=se("div",i.params.wrapperClass),s.append(l),F(s,`.${i.params.slideClass}`).forEach(o=>{l.append(o)})),Object.assign(i,{el:s,wrapperEl:l,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:l,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||k(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||k(s,"direction")==="rtl"),wrongRTL:k(l,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;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();const n=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?Q(i,r):r.addEventListener("load",l=>{Q(i,l.target)})}),ge(i),i.initialized=!0,ge(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:l,slides:o}=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"),l.removeAttribute("style"),o&&o.length&&o.forEach(a=>{a.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,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,qe(s)),s.destroyed=!0),null}static extendDefaults(e){B(pe,e)}static get extendedDefaults(){return pe}static get defaults(){return ve}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);const i=R.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>R.installModule(i)),R):(R.installModule(e),R)}};Object.keys(ue).forEach(t=>{Object.keys(ue[t]).forEach(e=>{Se.prototype[e]=ue[t][e]})});Se.use([nt,at]);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","breakpointsBase","_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","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","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 H(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}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]:H(e[s])&&H(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 Ge(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function $e(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 fi(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function ui(t){let{swiper:e,slides:i,passedParams:s,changedParams:n,nextEl:r,prevEl:l,scrollbarEl:o,paginationEl:a}=t;const c=n.filter(b=>b!=="children"&&b!=="direction"&&b!=="wrapperClass"),{params:d,pagination:p,navigation:m,scrollbar:h,virtual:w,thumbs:x}=e;let C,v,f,u,g,E,M,A;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(C=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(v=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||a)&&(d.pagination||d.pagination===!1)&&p&&!p.el&&(f=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&h&&!h.el&&(u=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||l)&&(s.navigation.nextEl||r)&&(d.navigation||d.navigation===!1)&&m&&!m.prevEl&&!m.nextEl&&(g=!0);const I=b=>{e[b]&&(e[b].destroy(),b==="navigation"?(e.isElement&&(e[b].prevEl.remove(),e[b].nextEl.remove()),d[b].prevEl=void 0,d[b].nextEl=void 0,e[b].prevEl=void 0,e[b].nextEl=void 0):(e.isElement&&e[b].el.remove(),d[b].el=void 0,e[b].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!s.loop?E=!0:!d.loop&&s.loop?M=!0:A=!0),c.forEach(b=>{if(H(d[b])&&H(s[b]))Object.assign(d[b],s[b]),(b==="navigation"||b==="pagination"||b==="scrollbar")&&"enabled"in s[b]&&!s[b].enabled&&I(b);else{const S=s[b];(S===!0||S===!1)&&(b==="navigation"||b==="pagination"||b==="scrollbar")?S===!1&&I(b):d[b]=s[b]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),n.includes("children")&&i&&w&&d.virtual.enabled?(w.slides=i,w.update(!0)):n.includes("virtual")&&w&&d.virtual.enabled&&(i&&(w.slides=i),w.update(!0)),n.includes("children")&&i&&d.loop&&(A=!0),C&&x.init()&&x.update(!0),v&&(e.controller.control=d.controller.control),f&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),e.el.appendChild(a)),a&&(d.pagination.el=a),p.init(),p.render(),p.update()),u&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),h.init(),h.updateSize(),h.setTranslate()),g&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=e.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),e.el.appendChild(r)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),l.innerHTML=e.hostEl.constructor.prevButtonSvg,l.part.add("button-prev"),e.el.appendChild(l))),r&&(d.navigation.nextEl=r),l&&(d.navigation.prevEl=l),m.init(),m.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&e.changeDirection(s.direction,!1),(E||A)&&e.loopDestroy(),(M||A)&&e.loopCreate(),e.update()}function pi(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},s={},n={};j(i,ve),i._emitClasses=!0,i.init=!1;const r={},l=ze.map(a=>a.replace(/_/,"")),o=Object.assign({},t);return Object.keys(o).forEach(a=>{typeof t[a]>"u"||(l.indexOf(a)>=0?H(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 mi(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:r,scrollbarEl:l,swiper:o}=t;Ae(e)&&s&&n&&(o.params.navigation.nextEl=s,o.originalParams.navigation.nextEl=s,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),_e(e)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),Ge(e)&&l&&(o.params.scrollbar.el=l,o.originalParams.scrollbar.el=l),o.init(i)}function hi(t,e,i,s,n){const r=[];if(!e)return r;const l=a=>{r.indexOf(a)<0&&r.push(a)};if(i&&s){const a=s.map(n),c=i.map(n);a.join("")!==c.join("")&&l("children"),s.length!==i.length&&l("children")}return ze.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in e)if(H(t[a])&&H(e[a])){const c=Object.keys(t[a]),d=Object.keys(e[a]);c.length!==d.length?l(a):(c.forEach(p=>{t[a][p]!==e[a][p]&&l(a)}),d.forEach(p=>{t[a][p]!==e[a][p]&&l(a)}))}else t[a]!==e[a]&&l(a)}),r}const gi=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 ne(){return ne=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},ne.apply(this,arguments)}function De(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Be(t){const e=[];return _.Children.toArray(t).forEach(i=>{De(i)?e.push(i):i.props&&i.props.children&&Be(i.props.children).forEach(s=>e.push(s))}),e}function vi(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return _.Children.toArray(t).forEach(s=>{if(De(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=Be(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 wi(t,e,i){if(!i)return null;const s=d=>{let p=d;return d<0?p=e.length+d: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:l}=i,o=t.params.loop?-e.length:0,a=t.params.loop?e.length*2:e.length,c=[];for(let d=o;d<a;d+=1)d>=r&&d<=l&&c.push(e[s(d)]);return c.map((d,p)=>_.cloneElement(d,{swiper:t,style:n,key:`slide-${p}`}))}function Y(t,e){return typeof window>"u"?z.useEffect(t,e):z.useLayoutEffect(t,e)}const Ee=z.createContext(null),Si=z.createContext(null),Ve=z.forwardRef(function(t,e){let{className:i,tag:s="div",wrapperTag:n="div",children:r,onSwiper:l,...o}=t===void 0?{}:t,a=!1;const[c,d]=z.useState("swiper"),[p,m]=z.useState(null),[h,w]=z.useState(!1),x=z.useRef(!1),C=z.useRef(null),v=z.useRef(null),f=z.useRef(null),u=z.useRef(null),g=z.useRef(null),E=z.useRef(null),M=z.useRef(null),A=z.useRef(null),{params:I,passedParams:b,rest:S,events:y}=pi(o),{slides:P,slots:T}=vi(r),L=()=>{w(!h)};Object.assign(I.on,{_containerClasses(D,N){d(N)}});const O=()=>{Object.assign(I.on,y),a=!0;const D={...I};if(delete D.wrapperClass,v.current=new Se(D),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=P;const N={cache:!1,slides:P,renderExternal:m,renderExternalUpdate:!1};j(v.current.params.virtual,N),j(v.current.originalParams.virtual,N)}};C.current||O(),v.current&&v.current.on("_beforeBreakpoint",L);const $=()=>{a||!y||!v.current||Object.keys(y).forEach(D=>{v.current.on(D,y[D])})},ae=()=>{!y||!v.current||Object.keys(y).forEach(D=>{v.current.off(D,y[D])})};z.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",L)}),z.useEffect(()=>{!x.current&&v.current&&(v.current.emitSlidesClasses(),x.current=!0)}),Y(()=>{if(e&&(e.current=C.current),!!C.current)return v.current.destroyed&&O(),mi({el:C.current,nextEl:g.current,prevEl:E.current,paginationEl:M.current,scrollbarEl:A.current,swiper:v.current},I),l&&l(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Y(()=>{$();const D=hi(b,f.current,P,u.current,N=>N.key);return f.current=b,u.current=P,D.length&&v.current&&!v.current.destroyed&&ui({swiper:v.current,slides:P,passedParams:b,changedParams:D,nextEl:g.current,prevEl:E.current,scrollbarEl:A.current,paginationEl:M.current}),()=>{ae()}}),Y(()=>{gi(v.current)},[p]);function X(){return I.virtual?wi(v.current,P,p):P.map((D,N)=>_.cloneElement(D,{swiper:v.current,swiperSlideIndex:N}))}return _.createElement(s,ne({ref:C,className:$e(`${c}${i?` ${i}`:""}`)},S),_.createElement(Si.Provider,{value:v.current},T["container-start"],_.createElement(n,{className:fi(I.wrapperClass)},T["wrapper-start"],X(),T["wrapper-end"]),Ae(I)&&_.createElement(_.Fragment,null,_.createElement("div",{ref:E,className:"swiper-button-prev"}),_.createElement("div",{ref:g,className:"swiper-button-next"})),Ge(I)&&_.createElement("div",{ref:A,className:"swiper-scrollbar"}),_e(I)&&_.createElement("div",{ref:M,className:"swiper-pagination"}),T["container-end"]))});Ve.displayName="Swiper";const ee=z.forwardRef(function(t,e){let{tag:i="div",children:s,className:n="",swiper:r,zoom:l,lazy:o,virtualIndex:a,swiperSlideIndex:c,...d}=t===void 0?{}:t;const p=z.useRef(null),[m,h]=z.useState("swiper-slide"),[w,x]=z.useState(!1);function C(g,E,M){E===p.current&&h(M)}Y(()=>{if(typeof c<"u"&&(p.current.swiperSlideIndex=c),e&&(e.current=p.current),!(!p.current||!r)){if(r.destroyed){m!=="swiper-slide"&&h("swiper-slide");return}return r.on("_slideClass",C),()=>{r&&r.off("_slideClass",C)}}}),Y(()=>{r&&p.current&&!r.destroyed&&h(r.getSlideClasses(p.current))},[r]);const v={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},f=()=>typeof s=="function"?s(v):s,u=()=>{x(!0)};return _.createElement(i,ne({ref:p,className:$e(`${m}${n?` ${n}`:""}`),"data-swiper-slide-index":a,onLoad:u},d),l&&_.createElement(Ee.Provider,{value:v},_.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},f(),o&&!w&&_.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&_.createElement(Ee.Provider,{value:v},f(),o&&!w&&_.createElement("div",{className:"swiper-lazy-preloader"})))});ee.displayName="SwiperSlide";function Ti({isOpen:t,setIsOpen:e,handleSavePreference:i}){const[s]=He(),{t:n}=Re(),[r,l]=z.useState(),[o,a]=z.useState(0);return t?ke.createPortal(G.jsxs(K,{id:"TrashModal",onModalClose:()=>e(!1),size:"md",isOpen:t,focusId:"nextButtonId",children:[G.jsx(K.Header,{onModalClose:()=>e(!1),children:n("explorer.modal.onboarding.trash.title")}),G.jsx(K.Body,{children:G.jsxs(Ve,{modules:[Qe],onSwiper:c=>{l(c)},onSlideChange:c=>{a(c.progress)},pagination:{clickable:!0},children:[G.jsxs(ee,{children:[G.jsx(le,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:`${s}/onboarding/illu-trash-menu.svg`,alt:n("explorer.modal.onboarding.trash.screen1.alt")}),G.jsx("p",{children:n("explorer.modal.onboarding.trash.screen1.title")})]}),G.jsxs(ee,{children:[G.jsx(le,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${s}/onboarding/illu-trash-notif.svg`,alt:n("explorer.modal.onboarding.trash.screen2.alt")}),G.jsx("p",{children:n("explorer.modal.onboarding.trash.screen2.title")})]}),G.jsxs(ee,{children:[G.jsx(le,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${s}/onboarding/illu-trash-delete.svg`,alt:n("explorer.modal.onboarding.trash.screen3.alt")}),G.jsx("p",{children:n("explorer.modal.onboarding.trash.screen3.title")})]})]})}),G.jsxs(K.Footer,{children:[G.jsx(U,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>e(!1),children:n("explorer.modal.onboarding.trash.later")}),o>0&&G.jsx(U,{type:"button",color:"primary",variant:"outline",onClick:()=>r.slidePrev(),children:n("explorer.modal.onboarding.trash.prev")}),o<1&&G.jsx(U,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>r.slideNext(),children:n("explorer.modal.onboarding.trash.next")}),o===1&&G.jsx(U,{type:"button",color:"primary",variant:"filled",onClick:i,children:n("explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null}export{Ti as default};
|
package/dist/PublishModal.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{r as j,_ as ae,R as re,j as e,$ as te,f as D,a0 as se,a1 as le,a2 as ie,u as Y,i as K,m as ce,a3 as oe,c as ne,a4 as V,a5 as be,p as z,a as M,b as pe,M as S,H as F,F as y,U as L,y as P,B as H}from"./index.js";import{u as ue}from"./usePopper.js";import{S as G}from"./SelectList.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 W=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 J=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(Z,{formData:n})),a==null||a()}catch{p.error(e.jsx(Z,{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 Ne({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:q}=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(F,{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(L,{children:r("bpr.form.publication.title")}),e.jsx(P,{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(L,{children:r("bpr.form.publication.description")}),e.jsx(P,{type:"text",...c("description",{required:!0}),placeholder:r("bpr.form.publication.description.placeholder"),size:"md","aria-required":!0})]})]})]}),e.jsx("hr",{}),e.jsx(F,{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(W,{trigger:e.jsx(J,{title:r("bpr.form.publication.type"),size:"md",grow:!0,badgeContent:b==null?void 0:b.length}),content:e.jsx(G,{options:k,model:b,onChange:h=>d(h)})})}),e.jsx("div",{className:"col d-flex",children:e.jsx(W,{trigger:e.jsx(J,{title:r("bpr.form.publication.discipline"),size:"md",grow:!0,badgeContent:o==null?void 0:o.length}),content:e.jsx(G,{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:q,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:q,placeholderOption:_,defaultValue:_,"aria-required":!0})})})]})]}),e.jsx("div",{className:"mb-24",children:e.jsxs(y,{id:"keywords",isOptional:!0,children:[e.jsx(L,{children:r("bpr.form.publication.keywords")}),e.jsx(P,{type:"text",...c("keyWords"),size:"md",placeholder:r("bpr.form.publication.keywords.placeholder")})]})}),e.jsx("hr",{}),e.jsx(F,{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 Z({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{Z as PublishModalError,ge as PublishModalSuccess,Ne as default};
|
|
1
|
+
import{j as e,D as p,r as f,u as w,d as K,t as se,p as Q,n as ie,e as ce,a2 as k,a3 as oe,a4 as X,A as D,a as ne,M as _,H as F,F as R,Z as B,k as G,B as J,b as be}from"./index.js";import{u as ue,C as M}from"./index.esm.js";import{I as pe,T as de}from"./TextArea.js";import"/assets/js/edifice-ts-client/index.js";const ee=r=>e.jsx(p.Trigger,{...r,"aria-haspopup":"listbox",role:"combobox"});ee.displayName="SelectTrigger";const me=ee,re=({icon:r,options:s,overflow:b,block:o,variant:x,size:l,disabled:n,placeholderOption:j,onValueChange:v})=>{const[i,y]=f.useState(),{t:A}=w();f.useEffect(()=>{if(i){const c=typeof i=="object"?i.value:i;v==null||v(c)}},[i]);const N=typeof i=="object"?i.label:i;return e.jsxs(p,{overflow:b,block:o,children:[e.jsx(me,{icon:r,label:A(N||j),variant:x,size:l,disabled:n}),e.jsx(p.Menu,{role:"listbox",children:s==null?void 0:s.map(c=>{const S=typeof c=="object"?c.value:c,m=typeof c=="object"?c.label:c;return e.jsx(p.Item,{onClick:()=>y(c),children:m},S)})})]})};re.displayName="Select";const U=re;function he({onSuccess:r}){var T;const[s,b]=f.useState(!1),{user:o,appCode:x}=K(),{hotToast:l}=se(D),n=Q(),j=ie(),{publishApi:v}=ce(),[i,y]=f.useState(((T=n[0])==null?void 0:T.thumbnail)||""),{control:A,register:N,watch:c,setValue:S,handleSubmit:m,formState:{errors:C,isSubmitting:O,isDirty:E,isValid:P}}=ue({mode:"onChange"}),[d,z]=f.useState([]),[h,$]=f.useState([]);return{watch:c,setValue:S,selectedResources:n,control:A,register:N,handleSubmit:m,formState:{errors:C,isSubmitting:O,isDirty:E,isValid:P},publish:async a=>{const t=o?o==null?void 0:o.userId:"";try{b(!0);let u=new Blob;typeof i=="string"?u=await k.get(i,{responseType:"blob"}):i?u=await k.get(URL.createObjectURL(i),{responseType:"blob"}):n[0].thumbnail&&(u=await k.get(n[0].thumbnail,{responseType:"blob"}));const g=await k.get(`/userbook/avatar/${t}?thumbnail=48x48`,{responseType:"blob"}),I=await k.get(`/directory/user/${t}/attachment-school`,{responseType:"json"}),ae=oe[x],le={activityType:d,age:[a.ageMin,a.ageMax],application:X().libraryAppFilter??ae,cover:u,description:a.description,keyWords:a.keyWords,language:a.language,licence:"CC-BY",resourceId:n[0].assetId,resourceEntId:n[0].assetId,subjectArea:h,teacherAvatar:g,title:a.title,userId:t,userStructureName:I.name||(o==null?void 0:o.structureNames[0])},te=j.types[0],Z=await v(te,le);Z.success?l.success(e.jsx(ve,{result:Z}),{duration:1e4}):l.error(e.jsx(Y,{formData:a})),r==null||r()}catch{l.error(e.jsx(Y,{formData:a}))}finally{b(!1)}},handleDeleteImage:()=>{y("")},handleUploadImage:a=>{y(a)},selectedActivities:d,selectActivities:a=>{let t=[...d];const u=t.findIndex(g=>g===a);d.includes(a)?t=d.filter((g,I)=>I!==u):t=[...d,a],z(t)},selectedSubjectAreas:h,selectSubjects:a=>{let t=[...h];const u=t.findIndex(g=>g===a);h.includes(a)?t=h.filter((g,I)=>I!==u):t=[...h,a],$(t)},loaderPublish:s,cover:i}}function je(){const{t:r}=w(),s=[{value:"bpr.activityType.classroomActivity",label:r("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:r("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:r("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:r("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:r("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:r("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:r("bpr.activityType.courseElement")},{value:"bpr.other",label:r("bpr.other")}],b=[{value:"bpr.subjectArea.artActivity",label:r("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:r("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:r("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:r("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:r("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:r("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:r("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:r("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:r("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:r("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:r("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:r("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:r("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:r("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:r("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:r("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:r("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:r("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:r("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:r("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:r("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:r("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:r("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:r("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:r("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:r("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:r("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:r("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:r("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:r("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:r("bpr.subjectArea.technology")},{value:"bpr.other",label:r("bpr.other")}],o=[{value:"de_DE",label:r("de_DE")},{value:"en_EN",label:r("en_EN")},{value:"ar_DZ",label:r("ar_DZ")},{value:"es_ES",label:r("es_ES")},{value:"fr_FR",label:r("fr_FR")},{value:"it_IT",label:r("it_IT")},{value:"ja_JP",label:r("ja_JP")},{value:"zh_CN",label:r("zh_CN")},{value:"pt_PT",label:r("pt_PT")},{value:"ru_RU",label:r("ru_RU")},{value:"bpr.other",label:r("bpr.other")}];return{activityTypeOptions:s,subjectAreaOptions:b,languageOptions:o,ageOptions:["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"]}}function Ae({isOpen:r,onSuccess:s,onCancel:b}){var L,T;const{currentApp:o}=K(),[x]=be(),{t:l}=w(),{control:n,register:j,handleSubmit:v,publish:i,formState:{isDirty:y,isValid:A},handleUploadImage:N,selectedActivities:c,selectActivities:S,selectedSubjectAreas:m,selectSubjects:C,handleDeleteImage:O,loaderPublish:E,cover:P}=he({onSuccess:s}),d=Q(),{activityTypeOptions:z,subjectAreaOptions:h,languageOptions:$,ageOptions:q}=je(),H="bpr.form.publication.language",V="bpr.form.publication.age.min",W="bpr.form.publication.age.max";return ne.createPortal(e.jsxs(_,{isOpen:r,onModalClose:b,id:"libraryModal",size:"lg",children:[e.jsx(_.Header,{onModalClose:b,children:l("bpr.publish")}),e.jsx(_.Subtitle,{children:l("bpr.form.tip")}),e.jsxs(_.Body,{children:[e.jsx(F,{headingStyle:"h4",level:"h3",className:"mb-16",children:l("bpr.form.publication.heading.general")}),e.jsxs("form",{id:"libraryModalForm",onSubmit:v(i),children:[e.jsxs("div",{className:"d-block d-md-flex mb-24 gap-24",children:[e.jsxs("div",{style:{maxWidth:"160px"},children:[e.jsx("div",{className:"form-label",children:l("bpr.form.publication.cover.title")}),e.jsx(pe,{app:X().libraryAppFilter??o,src:(L=d[0])==null?void 0:L.thumbnail,label:l("bpr.form.publication.cover.upload.label"),addButtonLabel:l("bpr.form.publication.cover.upload.add"),deleteButtonLabel:l("bpr.form.publication.cover.upload.remove"),onUploadImage:N,onDeleteImage:O,className:"align-self-center"}),!P&&e.jsx("p",{className:"form-text is-invalid",children:e.jsx("em",{children:l("bpr.form.publication.cover.upload.required.image")})})]}),e.jsxs("div",{className:"flex-fill",children:[e.jsxs(R,{id:"title",className:"mb-16",isRequired:!0,children:[e.jsx(B,{children:l("bpr.form.publication.title")}),e.jsx(G,{type:"text",defaultValue:(T=d[0])==null?void 0:T.name,...j("title",{required:!0}),placeholder:l("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),e.jsxs(R,{id:"description",isRequired:!0,children:[e.jsx(B,{children:l("bpr.form.publication.description")}),e.jsx(de,{...j("description",{required:!0}),placeholder:l("bpr.form.publication.description.placeholder"),size:"md"})]})]})]}),e.jsx("hr",{}),e.jsx(F,{headingStyle:"h4",level:"h3",className:"mb-16",children:l("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(M,{name:"activityType",control:n,rules:{required:!0},render:({field:{onChange:a}})=>e.jsxs(p,{block:!0,overflow:!0,children:[e.jsx(p.Trigger,{size:"md",label:l("bpr.form.publication.type"),badgeContent:c==null?void 0:c.length}),e.jsx(p.Menu,{children:z.map((t,u)=>e.jsx(p.CheckboxItem,{value:t.value,model:c,onChange:()=>{S(t.value),a(t.value)},children:t.label},u))})]})})}),e.jsx("div",{className:"col d-flex",children:e.jsx(M,{name:"subjectArea",control:n,rules:{required:!0},render:({field:{onChange:a}})=>e.jsxs(p,{block:!0,overflow:!0,children:[e.jsx(p.Trigger,{size:"md",label:l("bpr.form.publication.discipline"),badgeContent:m==null?void 0:m.length}),e.jsx(p.Menu,{children:h.map((t,u)=>e.jsx(p.CheckboxItem,{value:t.value,model:m,onChange:()=>{C(t.value),a(t.value)},children:t.label},u))})]})})}),e.jsx("div",{className:"col",children:e.jsx(M,{name:"language",control:n,rules:{required:!0},render:({field:{onChange:a}})=>e.jsx(U,{block:!0,size:"md",onValueChange:a,options:$,"aria-required":!0,placeholderOption:H})})})]}),e.jsxs("div",{className:"mb-24",children:[e.jsx("label",{htmlFor:"",className:"form-label",children:l("bpr.form.publication.age")}),e.jsxs("div",{className:"d-flex gap-8",children:[e.jsx("div",{className:"col col-2",children:e.jsx(M,{name:"ageMin",control:n,rules:{required:!0,validate:(a,t)=>parseInt(a)<=parseInt(t.ageMax)},render:({field:{onChange:a}})=>e.jsx(U,{block:!0,size:"md",onValueChange:a,options:q,"aria-required":!0,placeholderOption:V})})}),e.jsx("div",{className:"col col-2",children:e.jsx(M,{name:"ageMax",control:n,rules:{required:!0,validate:(a,t)=>parseInt(a)>=parseInt(t.ageMin)},render:({field:{onChange:a}})=>e.jsx(U,{block:!0,size:"md",onValueChange:a,options:q,"aria-required":!0,placeholderOption:W})})})]})]}),e.jsx("div",{className:"mb-24",children:e.jsxs(R,{id:"keywords",isOptional:!0,children:[e.jsx(B,{children:l("bpr.form.publication.keywords")}),e.jsx(G,{type:"text",...j("keyWords"),size:"md",placeholder:l("bpr.form.publication.keywords.placeholder")})]})}),e.jsx("hr",{}),e.jsx(F,{headingStyle:"h4",level:"h3",className:"mb-16",children:l("bpr.form.publication.licence.text")}),e.jsxs("ul",{className:"mb-12",children:[e.jsxs("li",{children:[l("bpr.form.publication.licence.text.1"),e.jsx("img",{className:"ms-8 d-inline-block",src:`${x}/common/image-creative-commons.png`,alt:"licence creative commons"})]}),e.jsx("li",{children:l("bpr.form.publication.licence.text.2")})]}),e.jsx(D,{type:"info",className:"mb-12",children:l("bpr.form.publication.licence.text.3")}),e.jsx(D,{type:"warning",children:l("bpr.form.publication.licence.text.4")})]})]}),e.jsxs(_.Footer,{children:[e.jsx(J,{color:"tertiary",onClick:b,type:"button",variant:"ghost",children:l("cancel")}),e.jsx(J,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:E,disabled:!P||E||!y||!A,children:l("bpr.form.submit")})]})]}),document.getElementById("portal"))}function ve({result:r}){const{t:s}=w();return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"pt-24",children:s("bpr.form.publication.response.success.title")}),e.jsx("p",{className:"pt-24",children:s("bpr.form.publication.response.success.content.1")}),e.jsx("p",{className:"pt-24",children:s("bpr.form.publication.response.success.content.2")}),r.details.front_url&&e.jsx("p",{className:"pt-24 pb-24",children:e.jsx("a",{className:"button right-magnet",href:r.details.front_url,target:"_blank",rel:"noreferrer",children:s("bpr.form.publication.response.success.button")})})]})}function Y({formData:r}){const{t:s}=w(),b=o=>o.match(/^\s/);return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"pt-24",children:s("bpr.form.publication.response.error.title")}),e.jsx("p",{className:"pt-24 pb-24",children:e.jsx("strong",{children:s("bpr.form.publication.response.error.content")})}),e.jsxs("ul",{children:[b(r.title)&&e.jsx("li",{className:"pt-2 pb-2",children:e.jsx("strong",{children:s("bpr.form.publication.response.empty.title")})}),b(r.description)&&e.jsx("li",{className:"pt-2 pb-2",children:e.jsx("strong",{children:s("bpr.form.publication.response.empty.description")})})]})]})}export{Y as PublishModalError,ve as PublishModalSuccess,Ae as default};
|