ode-explorer 1.0.0-dev.202306051744 → 1.0.0-dev.202306091239
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/Card.js +1 -0
- package/dist/DeleteModal.js +1 -1
- package/dist/EditFolderModal.js +1 -1
- package/dist/EditResourceModal.js +1 -1
- package/dist/EmptyScreen.js +1 -1
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/FoldersList.js +1 -1
- package/dist/ImagePicker.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 +2 -2
- package/dist/ResourcesList.js +1 -0
- package/dist/SelectList.js +1 -1
- package/dist/ShareResourceModal.js +1 -1
- package/dist/Tooltip.js +1 -0
- package/dist/TrashedResourceModal.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +76 -44
- package/dist/style.css +1 -1
- package/dist/usePopper.js +1 -0
- package/dist/version.txt +1 -1
- package/package.json +22 -25
package/dist/Card.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as E,f as a,c as s,w as F,ad as U,ae as G,af as q,ag as D,ah as H,I as J,a7 as K,s as M,ai as Q}from"./index.js";import{T as n}from"./Tooltip.js";const d=E.forwardRef(({app:l,className:h,creatorName:r="tom.mate",isAnimated:x=!1,isFolder:t=!1,isLoading:e=!1,isSelected:m=!1,isShared:p=!1,isPublic:j=!1,name:g="Resource",resourceSrc:i="",updatedAt:v="2 days ago",userSrc:o="",onOpen:u,onSelect:c,messagePublic:N,messageShared:f,...$},b)=>{const{getIconCode:w}=D(),C=a("card",{"placeholder-glow":e,"is-selected":m,"is-animated":x},h),y=a("card-title body text-break text-truncate text-truncate--2 pe-16",{placeholder:e}),I=a("card-text small",{placeholder:e}),O=a("small text-truncate",{placeholder:e}),T=a("d-inline-flex align-items-center gap-8 text-truncate",{placeholder:e}),z=l?w(l):"placeholder",P=a(`color-app-${z}`,{placeholder:e});function k(B){B.stopPropagation(),c==null||c()}const A=t?s.jsx(H,{width:"48",height:"48",className:P}):i?s.jsx("div",{className:"card-image",children:s.jsx(J,{alt:"",src:i,width:"80",height:"80",objectFit:"cover",className:"h-full"})}):s.jsx(K,{app:l,iconFit:"ratio",size:"80",variant:"rounded"}),R=o?s.jsx(M,{alt:r,size:"xs",src:o,variant:"circle",width:"24",height:"24"}):s.jsx(Q,{});return s.jsxs("div",{ref:b,className:C,...$,children:[!e&&s.jsx(F,{"aria-label":"Open Action Bar",className:"z-3",color:"secondary",icon:s.jsx(U,{}),onClick:k,variant:"ghost"}),s.jsx("button",{onClick:u,className:"position-absolute bottom-0 end-0 top-0 start-0 opacity-0 z-1 w-100","aria-label":"Open resource"}),s.jsxs("div",{className:"card-body",children:[A,s.jsxs("div",{children:[s.jsx("h3",{className:y,children:s.jsx("strong",{children:g})}),t?null:s.jsx("p",{className:"card-text small",children:s.jsx("em",{className:I,children:v})})]})]}),t?null:s.jsxs("div",{className:"card-footer gap-16",children:[s.jsxs("div",{className:T,children:[R,s.jsx("p",{className:O,children:r})]}),s.jsxs("div",{className:"d-inline-flex align-items-center gap-8",children:[j&&s.jsx(n,{message:N,placement:"top",children:s.jsx(G,{width:16,height:16})}),p&&s.jsx(n,{message:f,placement:"top",children:s.jsx(q,{width:16,height:16})})]})]})]})});d.displayName="Card";const W=d;export{W as C};
|
package/dist/DeleteModal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h,
|
|
1
|
+
import{h,D as u,E as x,G as p,p as m,A as j,u as y,a as f,j as e,M as n,B as i}from"./index.js";function D({onSuccess:s}){const{i18n:l}=h(),o=u(),t=x(),r=p(),{hotToast:a}=m(j);async function d(){try{r?(await o.mutate(),a.success(l("explorer.removed.from.trash"))):(await t.mutate(),a.success(l("explorer.trash.title"))),s==null||s()}catch(c){console.error(c)}}return{isTrashFolder:r,onDelete:d}}function T({isOpen:s,onSuccess:l=()=>({}),onCancel:o=()=>({})}){const{i18n:t}=y(),{isTrashFolder:r,onDelete:a}=D({onSuccess:l});return f.createPortal(e.jsxs(n,{isOpen:s,onModalClose:o,id:"deleteModal",children:[e.jsx(n.Header,{onModalClose:o,children:t(r?"explorer.delete.title":"explorer.trash.title")}),e.jsx(n.Body,{children:e.jsx("p",{className:"body",children:t(r?"explorer.delete.subtitle":"explorer.trash.subtitle")})}),e.jsxs(n.Footer,{children:[e.jsx(i,{color:"tertiary",onClick:o,type:"button",variant:"ghost",children:t("explorer.cancel")}),e.jsx(i,{color:"primary",onClick:a,type:"button",variant:"filled",children:t(r?"explorer.delete":"explorer.trash")})]})]}),document.getElementById("portal"))}export{T as default};
|
package/dist/EditFolderModal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{K as B,P as D,Q as q,U,r as C,W as w,h as L,a as P,j as r,M as s,F as R,X as V,C as _,B as y}from"./index.js";import{u as k}from"./index.esm.js";function z({edit:a,onSuccess:e,onClose:i}){var F;const n=B(),t=D(),m=q(),c=U(),u=a?(F=n[0])==null?void 0:F.name:void 0,{reset:o,register:f,handleSubmit:d,setFocus:p,formState:{errors:x,isSubmitting:h,isDirty:I,isValid:E}}=k({mode:"onChange",values:{name:u||""}}),g=C.useId(),M=async function({name:j}){var b;try{if(a){const l=(b=n[0])==null?void 0:b.parentId,v=n[0].id;await c.mutate({folderId:v,parentId:l,name:j}),o(),e==null||e()}else{const l=(t==null?void 0:t.id)||w.DEFAULT;await m.mutate({name:j,parentId:l}),o(),e==null||e()}}catch(l){console.error(l)}};function $(){o(),i()}return{formId:`createModal_${g}`,errors:x,isSubmitting:h,isDirty:I,isValid:E,register:f,setFocus:p,handleSubmit:d,onCancel:$,onSubmit:M}}function T({isOpen:a,edit:e,onSuccess:i,onCancel:n}){const{i18n:t}=L(),{isDirty:m,isValid:c,isSubmitting:u,formId:o,onSubmit:f,onCancel:d,handleSubmit:p,register:x,setFocus:h}=z({edit:e,onSuccess:i,onClose:n});return C.useEffect(()=>{a&&h("name")},[a]),P.createPortal(r.jsxs(s,{isOpen:a,onModalClose:d,id:"modal_"+o,children:[r.jsx(s.Header,{onModalClose:d,children:t(e?"explorer.rename.folder":"explorer.create.folder")}),r.jsx(s.Body,{children:r.jsx("form",{id:o,onSubmit:p(f),children:r.jsxs(R,{id:"nameFolder",isRequired:!0,children:[r.jsx(V,{children:t("explorer.create.folder.name")}),r.jsx(_,{type:"text",...x("name",{required:!0}),placeholder:t("explorer.create.folder.name"),size:"md","aria-required":!0})]})})}),r.jsxs(s.Footer,{children:[r.jsx(y,{color:"tertiary",onClick:d,type:"button",variant:"ghost",children:t("explorer.cancel")}),r.jsx(y,{form:o,type:"submit",color:"primary",variant:"filled",disabled:!m||!c||u,children:t(e?"explorer.rename":"explorer.create")})]})]}),document.getElementById("portal"))}export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as G,
|
|
1
|
+
import{h as G,n as J,m as z,r as c,p as K,j as e,A,u as Q,a as W,M as y,H as _,F as d,X as E,C as P,Y as ee,B,Z as se}from"./index.js";import{I as le}from"./ImagePicker.js";import{u as te}from"./index.esm.js";function re({resource:p,onSuccess:a,onCancel:v}){const{i18n:r}=G(),s=J(),u=z(),{reset:C,register:F,handleSubmit:t,setFocus:w,formState:{errors:m,isSubmitting:I,isValid:$}}=te({mode:"onChange"}),i=c.useId(),[M,x]=c.useState(new Date().getTime()),[n,N]=c.useState(!p.public),[g,h]=c.useState(p.slug||""),[k,b]=c.useState(!1),{hotToast:f}=K(A),[R,j]=c.useState({name:"",image:u[0].thumbnail}),T=l=>{j(l)},o=()=>{j({name:"",image:""})};function D(l){N(!l),l||(h(""),x(new Date().getTime()))}function L(l){if(!l)return"";const S="àáäâãåăæçèéëêǵḧìíïîḿńǹñòóöôœøṕŕßśșțùúüûǘẃẍÿź·/_,:;",O="aaaaaaaaceeeeghiiiimnnnooooooprssstuuuuuwxyz------",X=new RegExp(S.split("").join("|"),"g"),Y=l.toString().toLowerCase().replace(/\s+/g,"-").replace(X,Z=>O.charAt(S.indexOf(Z))).replace(/&/g,"-and-").replace(/[^\w\\-]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");h(Y)}const V=async function(l){try{await s.mutateAsync({description:l.description,entId:u[0].assetId,name:l.title,public:l.enablePublic,slug:l.safeSlug,trashed:u[0].trashed,thumbnail:R.image}),b(!1),f.success(e.jsxs(e.Fragment,{children:[e.jsx("strong",{children:r("explorer.resource.updated")}),e.jsxs("p",{children:["Titre: ",l.title]}),e.jsxs("p",{children:["Description: ",l.description]}),e.jsxs("p",{children:["Public:"," ",l.enablePublic?r("explorer.enable.public.yes"):r("explorer.enable.public.no")]})]})),a==null||a()}catch(S){b(!0),console.error(S)}};function q(){navigator.clipboard.writeText(`${window.location.origin}/${g}`),f.success(r("explorer.copy.clipboard"))}function H(){C(),v()}const U=`resource_edit_modal_${i}`;return{slug:g,disableSlug:n,formId:U,errors:m,isSubmitting:I,isValid:$,versionSlug:M,correctSlug:k,onPublicChange:D,onSlugChange:L,register:F,setFocus:w,handleSubmit:t,onFormCancel:H,onSubmit:V,handleUploadImage:T,handleDeleteImage:o,onCopyToClipBoard:q}}function ne({isOpen:p,edit:a,onSuccess:v,onCancel:r}){const{i18n:s,appCode:u,currentApp:C}=Q(),t=z()[0],{slug:w,formId:m,isValid:I,isSubmitting:$,disableSlug:i,versionSlug:M,correctSlug:x,register:n,handleSubmit:N,onSubmit:g,handleUploadImage:h,handleDeleteImage:k,onCopyToClipBoard:b,onSlugChange:f,onPublicChange:R}=re({resource:t,onSuccess:v,onCancel:r}),j=`${new Date().getTime()}_${i}`,T=`${M}_slug`;return W.createPortal(e.jsxs(y,{id:"resource_edit_modal",size:"lg",isOpen:p,onModalClose:r,children:[e.jsx(y.Header,{onModalClose:r,children:s(a?"explorer.resource.editModal.header.edit":"explorer.resource.editModal.header.create")}),e.jsxs(y.Body,{children:[e.jsx(_,{headingStyle:"h4",level:"h3",className:"mb-16",children:s("explorer.resource.editModal.heading.general")}),e.jsxs("form",{id:m,onSubmit:N(g),children:[e.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 mb-24",children:[e.jsx(le,{app:C,src:t==null?void 0:t.thumbnail,label:s("explorer.imagepicker.label"),addButtonLabel:s("explorer.imagepicker.button.add"),deleteButtonLabel:s("explorer.imagepicker.button.delete"),onUploadImage:h,onDeleteImage:k,className:"align-self-center"}),e.jsxs("div",{className:"col",children:[e.jsxs(d,{id:"title",className:"mb-16",isRequired:!0,children:[e.jsx(E,{children:s("title")}),e.jsx(P,{type:"text",defaultValue:a?t==null?void 0:t.name:"",...n("title",{required:!0}),placeholder:s("explorer.resource.editModal.title.placeholder"),size:"md","aria-required":!0})]}),e.jsxs(d,{id:"description",isOptional:!0,children:[e.jsx(E,{children:s("description")}),e.jsx(P,{type:"text",defaultValue:a?t==null?void 0:t.description:"",...n("description"),placeholder:s("explorer.resource.editModal.description.placeholder"),size:"md"})]})]})]}),e.jsxs(_,{headingStyle:"h4",level:"h3",className:"mb-16",children:[s("explorer.resource.editModal.heading.access"),u]}),e.jsx(A,{type:"info",children:s("explorer.resource.editModal.access.alert")}),e.jsxs(d,{id:"flexSwitchCheckDefault",className:"form-switch d-flex gap-8 mt-16 mb-8",children:[e.jsx(d.Input,{type:"checkbox",role:"switch",...n("enablePublic",{value:t.public,onChange:o=>R(o.target.checked)}),className:"form-check-input mt-0",size:"md"},j),e.jsx(d.Label,{className:"form-check-label mb-0",children:s("explorer.resource.editModal.access.flexSwitchCheckDefault.label")})]}),e.jsx(d,{id:"slug",status:x?"invalid":void 0,children:e.jsxs("div",{className:"d-flex flex-wrap align-items-center gap-4",children:[e.jsxs("div",{children:[window.location.origin,"/"]}),e.jsxs("div",{className:"flex-fill",children:[e.jsx(P,{type:"text",...n("safeSlug",{validate:{required:o=>!o&&!i?s("explorer.slug.name.mandatory"):!0},disabled:i,value:w,onChange:o=>f(o.target.value)}),size:"md",placeholder:s("explorer.resource.editModal.access.url.extension")},T),x&&e.jsx("div",{className:"position-absolute",children:e.jsx(ee,{children:s("explorer.slug.name.error")})})]}),e.jsx(B,{color:"primary",disabled:i,onClick:()=>{b(t.slug)},type:"button",leftIcon:e.jsx(se,{}),variant:"ghost",className:"text-nowrap",children:s("explorer.resource.editModal.access.url.button")})]})})]})]}),e.jsxs(y.Footer,{children:[e.jsx(B,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:s("explorer.cancel")}),e.jsx(B,{form:m,type:"submit",color:"primary",variant:"filled",disabled:!I||$,children:s(a?"save":"explorer.create")})]})]}),document.getElementById("portal"))}export{ne as default};
|
package/dist/EmptyScreen.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as e,H as n}from"./index.js";const m=({imageSrc:s,imageAlt:t="",title:a,text:c})=>e.jsxs("div",{className:"emptyscreen",children:[s&&e.jsx("div",{className:"emptyscreen-image mb-12",children:e.jsx("img",{className:"mx-auto",src:s,alt:t,width:"250",height:"250"})}),a&&e.jsx(n,{level:"h2",headingStyle:"h2",className:"text-secondary mb-8",children:a}),c&&e.jsx("div",{className:"text",children:c})]});m.displayName="EmptyScreen";const r=m;export{r as E};
|
package/dist/EmptyScreenApp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as s,
|
|
1
|
+
import{u as s,a8 as n,j as a}from"./index.js";import{E as c}from"./EmptyScreen.js";function d(){const{i18n:r,appCode:o,theme:e}=s(),{data:l}=n(),t=l==null?void 0:l.find(i=>i.id==="create"),p=()=>t!=null&&t.available&&(e!=null&&e.is1d)?r("explorer.emptyScreen.blog.txt1d.create"):t!=null&&t.available&&!(e!=null&&e.is1d)?r("explorer.emptyScreen.blog.txt2d.create"):!(t!=null&&t.available)&&(e!=null&&e.is1d)?r("explorer.emptyScreen.blog.txt1d.consultation"):r("explorer.emptyScreen.blog.txt2d.consultation");return a.jsx(c,{imageSrc:`${e==null?void 0:e.bootstrapPath}/images/emptyscreen/illu-${o}.svg`,imageAlt:r("explorer.emptyScreen.app.alt"),title:`${t!=null&&t.available?r("explorer.emptyScreen.blog.title.create"):r("explorer.emptyScreen.blog.title.consultation")}`,text:p()})}export{d as default};
|
package/dist/FoldersList.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as S,
|
|
1
|
+
import{u as S,a9 as h,K as j,aa as f,b as y,ab as C,j as o,$ as a}from"./index.js";import{C as I}from"./Card.js";import"./Tooltip.js";import"./usePopper.js";const O=()=>{var c,d;const{currentApp:p}=S(),{data:e,isFetching:u}=h(),n=j(),i=f(),{setSelectedFolders:l,setFolderIds:r,openFolder:m}=y();function g(s){i.includes(s.id)?(r(i.filter(t=>t!==s.id)),l(n.filter(t=>t.id!==s.id))):(r([...i,s.id]),l([...n,s]))}const F=C({from:{opacity:0},to:{opacity:1}});return(c=e==null?void 0:e.pages[0])!=null&&c.folders.length?o.jsx(a.ul,{className:"grid ps-0 list-unstyled mb-24",children:(d=e==null?void 0:e.pages[0])==null?void 0:d.folders.map(s=>{const{id:t,name:x}=s;return o.jsx(a.li,{className:"g-col-4",style:{...F},children:o.jsx(I,{app:p,name:x,isFolder:!0,isLoading:u,isSelected:i.includes(s.id),onOpen:()=>m({folder:s,folderId:s.id}),onSelect:()=>g(s)})},t)})}):null};export{O as default};
|
package/dist/ImagePicker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as s,f as R,c as a,F as d,w as p,a5 as L,a6 as E,C as N,s as S,a7 as z}from"./index.js";const u=s.forwardRef(({label:h,addButtonLabel:x="Add image",deleteButtonLabel:v="Delete image",src:f,className:j,app:D,onUploadImage:C,onDeleteImage:w},I)=>{const r=s.useRef(null),[n,o]=s.useState({name:"",image:f||""}),[,c]=s.useState(!1),l=e=>{o({...n,name:"",image:""});const t=e==null?void 0:e[0];if(!t)return;const i={...n,name:t.name,image:URL.createObjectURL(t)};o(i),C(i)},P=()=>{var e;(e=r.current)==null||e.click()},$=()=>{r.current&&(r.current.value="");const e={...n,name:"",image:""};o(e),w()},b=e=>{l(e.target.files)},g=e=>{e.preventDefault(),e.stopPropagation(),c(!0)},m=e=>{e.preventDefault(),e.stopPropagation(),c(!1)},k=e=>{var i;m(e);const t=(i=e.dataTransfer)==null?void 0:i.files;l(t),r.current&&t&&(r.current.files=t)},y=R("image-input",j);return a.jsxs(d,{id:"image-input",className:y,onDragEnter:g,onDragOver:g,onDragLeave:m,onDrop:k,ref:I,children:[a.jsxs("div",{className:"image-input-actions gap-8",children:[a.jsx(p,{"aria-label":x,color:"tertiary",icon:a.jsx(L,{}),onClick:P,type:"button",variant:"ghost"}),a.jsx(p,{"aria-label":v,color:"danger",disabled:!n.image,icon:a.jsx(E,{width:"20",height:"20"}),onClick:$,type:"button",variant:"ghost"})]}),a.jsxs(d.Label,{children:[a.jsx("span",{className:"visually-hidden",children:h}),a.jsx(N,{accept:"image/*",hidden:!0,onChange:b,ref:r,size:"sm",type:"file"}),n.image?a.jsx(S,{alt:n.name,src:n.image,size:"xl"}):a.jsx(z,{app:D,iconFit:"ratio",size:"160",variant:"rounded"})]})]})});u.displayName="ImagePicker";const F=u;export{F as I};
|
package/dist/Library.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,
|
|
1
|
+
import{r as n,c as r,I as c,B as p,d,g as x,u as m,j as g}from"./index.js";const i=n.forwardRef(({text:a,textButton:t,src:e,alt:s,url:o},l)=>r.jsx(r.Fragment,{children:r.jsxs("div",{ref:l,className:"p-16",children:[r.jsx(c,{width:"270",height:"140",loading:"lazy",className:"rounded",src:e,alt:s}),r.jsx("p",{className:"m-8",children:a}),r.jsx("a",{href:o,target:"_blank",rel:"noreferrer",children:r.jsx(p,{rightIcon:r.jsx(d,{}),className:"py-0 px-8",variant:"ghost",color:"primary",children:t})})]})}));i.displayName="Library";const h=i;function u(a){return a.charAt(0).toUpperCase()+a.slice(1)}const b=()=>{const a=x(),{i18n:t,theme:e}=m(),s=`https://library.opendigitaleducation.com/search/?application%5B0%5D=${u(a.app)}&page=1&sort_field=views&sort_order=desc`;return g.jsx(h,{src:`${e==null?void 0:e.bootstrapPath}/images/image-library.svg`,url:s,alt:t("explorer.libray.img.alt"),text:t("explorer.libray.title"),textButton:t("explorer.libray.btn")})};export{b as default};
|
package/dist/MoveModal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,
|
|
1
|
+
import{r as p,J as v,K as I,m as M,b as T,N as y,u as b,O as j,a as F,j as t,M as n,T as S,B as x}from"./index.js";function w({onSuccess:s}){const[a,r]=p.useState(),l=v(),d=I(),c=M(),{foldTreeItem:i,unfoldTreeItem:m}=T(),u=y();async function f(){try{if(!a)throw new Error("explorer.move.selection.empty");await l.mutate(a),await(s==null?void 0:s())}catch(e){console.error(e)}}const h=e=>{for(const o of d)if(e===o.id||e===o.parentId)return!1;for(const o of c)if(e===((o==null?void 0:o.folderIds)&&o.folderIds[0]))return!1;return!0};return{disableSubmit:!a,handleTreeItemSelect:e=>{h(e)?r(e):r(void 0)},handleTreeItemFold:i,handleTreeItemUnfold:async e=>await m(e,u),onMove:()=>{f()}}}function B({isOpen:s,onSuccess:a,onCancel:r}){const{i18n:l}=b(),{handleTreeItemFold:d,handleTreeItemSelect:c,handleTreeItemUnfold:i,onMove:m,disableSubmit:u}=w({onSuccess:a}),f=j();return F.createPortal(t.jsxs(n,{isOpen:s,onModalClose:r,id:"moveModal",children:[t.jsx(n.Header,{onModalClose:r,children:l("explorer.move.title")}),t.jsx(n.Subtitle,{children:l("explorer.move.subtitle")}),t.jsx(n.Body,{children:t.jsx(S,{data:f,onTreeItemSelect:c,onTreeItemFold:d,onTreeItemUnfold:i})}),t.jsxs(n.Footer,{children:[t.jsx(x,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:l("explorer.cancel")}),t.jsx(x,{color:"primary",onClick:m,type:"button",variant:"filled",disabled:u,children:l("explorer.move")})]})]}),document.getElementById("portal"))}export{B as default};
|
package/dist/OnboardingTrash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as I,r as O,u as je,a as Fe,j as A,M as Z,I as re,B as J}from"./index.js";function ve(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function me(e={},t={}){Object.keys(t).forEach(s=>{typeof e[s]>"u"?e[s]=t[s]:ve(t[s])&&ve(e[s])&&Object.keys(t[s]).length>0&&me(e[s],t[s])})}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 R(){const e=typeof document<"u"?document:{};return me(e,Ce),e}const He={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(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function G(){const e=typeof window<"u"?window:{};return me(e,He),e}function Re(e){const t=e;Object.keys(t).forEach(s=>{try{t[s]=null}catch{}try{delete t[s]}catch{}})}function fe(e,t=0){return setTimeout(e,t)}function q(){return Date.now()}function We(e){const t=G();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}function Xe(e,t="x"){const s=G();let i,r,n;const l=We(e);return s.WebKitCSSMatrix?(r=l.transform||l.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new s.WebKitCSSMatrix(r==="none"?"":r)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),t==="x"&&(s.WebKitCSSMatrix?r=n.m41:i.length===16?r=parseFloat(i[12]):r=parseFloat(i[4])),t==="y"&&(s.WebKitCSSMatrix?r=n.m42:i.length===16?r=parseFloat(i[13]):r=parseFloat(i[5])),r||0}function Q(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Ye(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function $(...e){const t=Object(e[0]),s=["__proto__","constructor","prototype"];for(let i=1;i<e.length;i+=1){const r=e[i];if(r!=null&&!Ye(r)){const n=Object.keys(Object(r)).filter(l=>s.indexOf(l)<0);for(let l=0,o=n.length;l<o;l+=1){const a=n[l],c=Object.getOwnPropertyDescriptor(r,a);c!==void 0&&c.enumerable&&(Q(t[a])&&Q(r[a])?r[a].__swiper__?t[a]=r[a]:$(t[a],r[a]):!Q(t[a])&&Q(r[a])?(t[a]={},r[a].__swiper__?t[a]=r[a]:$(t[a],r[a])):t[a]=r[a])}}}return t}function ee(e,t,s){e.style.setProperty(t,s)}function Ee({swiper:e,targetPosition:t,side:s}){const i=G(),r=-e.translate;let n=null,l;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const a=t>r?"next":"prev",c=(f,m)=>a==="next"&&f>=m||a==="prev"&&f<=m,h=()=>{l=new Date().getTime(),n===null&&(n=l);const f=Math.max(Math.min((l-n)/o,1),0),m=.5-Math.cos(f*Math.PI)/2;let p=r+m*(t-r);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[s]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:p})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(h)};h()}function N(e,t=""){return[...e.children].filter(s=>s.matches(t))}function Me(e,t=[]){const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:[t]),s}function qe(e,t){const s=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&s.push(i):s.push(i),e=i}return s}function Ue(e,t){const s=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&s.push(i):s.push(i),e=i}return s}function V(e,t){return G().getComputedStyle(e,null).getPropertyValue(t)}function F(e){let t=e,s;if(t){for(s=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(s+=1);return s}}function Pe(e,t){const s=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&s.push(i):s.push(i),i=i.parentElement;return s}function ue(e,t,s){const i=G();return s?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let ae;function Ke(){const e=G(),t=R();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Le(){return ae||(ae=Ke()),ae}let le;function Ze({userAgent:e}={}){const t=Le(),s=G(),i=s.navigator.platform,r=e||s.navigator.userAgent,n={ios:!1,android:!1},l=s.screen.width,o=s.screen.height,a=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad).*OS\s([\d_]+)/);const h=r.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=i==="Win32";let p=i==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&w.indexOf(`${l}x${o}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),a&&!m&&(n.os="android",n.android=!0),(c||f||h)&&(n.os="ios",n.ios=!0),n}function Je(e={}){return le||(le=Ze(e)),le}let oe;function Qe(){const e=G();let t=!1;function s(){const i=e.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(s()){const i=String(e.navigator.userAgent);if(i.includes("Version/")){const[r,n]=i.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));t=r<16||r===16&&n<2}}return{isSafari:t||s(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function et(){return oe||(oe=Qe()),oe}function tt({swiper:e,on:t,emit:s}){const i=G();let r=null,n=null;const l=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(h=>{n=i.requestAnimationFrame(()=>{const{width:f,height:m}=e;let p=f,w=m;h.forEach(({contentBoxSize:b,contentRect:x,target:d})=>{d&&d!==e.el||(p=x?x.width:(b[0]||b).inlineSize,w=x?x.height:(b[0]||b).blockSize)}),(p!==f||w!==m)&&l()})}),r.observe(e.el))},a=()=>{n&&i.cancelAnimationFrame(n),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},c=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver<"u"){o();return}i.addEventListener("resize",l),i.addEventListener("orientationchange",c)}),t("destroy",()=>{a(),i.removeEventListener("resize",l),i.removeEventListener("orientationchange",c)})}function it({swiper:e,extendParams:t,on:s,emit:i}){const r=[],n=G(),l=(c,h={})=>{const f=n.MutationObserver||n.WebkitMutationObserver,m=new f(p=>{if(p.length===1){i("observerUpdate",p[0]);return}const w=function(){i("observerUpdate",p[0])};n.requestAnimationFrame?n.requestAnimationFrame(w):n.setTimeout(w,0)});m.observe(c,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:typeof h.childList>"u"?!0:h.childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),r.push(m)},o=()=>{if(e.params.observer){if(e.params.observeParents){const c=Pe(e.el);for(let h=0;h<c.length;h+=1)l(c[h])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},a=()=>{r.forEach(c=>{c.disconnect()}),r.splice(0,r.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",o),s("destroy",a)}const st={on(e,t,s){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const r=s?"unshift":"push";return e.split(" ").forEach(n=>{i.eventsListeners[n]||(i.eventsListeners[n]=[]),i.eventsListeners[n][r](t)}),i},once(e,t,s){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;function r(...n){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(i,n)}return r.__emitterProxy=t,i.on(e,r,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const i=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[i](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed||!s.eventsListeners||e.split(" ").forEach(i=>{typeof t>"u"?s.eventsListeners[i]=[]:s.eventsListeners[i]&&s.eventsListeners[i].forEach((r,n)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&s.eventsListeners[i].splice(n,1)})}),s},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let s,i,r;return typeof e[0]=="string"||Array.isArray(e[0])?(s=e[0],i=e.slice(1,e.length),r=t):(s=e[0].events,i=e[0].data,r=e[0].context||t),i.unshift(r),(Array.isArray(s)?s:s.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(o=>{o.apply(r,[l,...i])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(o=>{o.apply(r,i)})}),t}};function nt(){const e=this;let t,s;const i=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=i.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?s=e.params.height:s=i.clientHeight,!(t===0&&e.isHorizontal()||s===0&&e.isVertical())&&(t=t-parseInt(V(i,"padding-left")||0,10)-parseInt(V(i,"padding-right")||0,10),s=s-parseInt(V(i,"padding-top")||0,10)-parseInt(V(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))}function rt(){const e=this;function t(v){return e.isHorizontal()?v:{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"}[v]}function s(v,T){return parseFloat(v.getPropertyValue(t(T))||0)}const i=e.params,{wrapperEl:r,slidesEl:n,size:l,rtlTranslate:o,wrongRTL:a}=e,c=e.virtual&&i.virtual.enabled,h=c?e.virtual.slides.length:e.slides.length,f=N(n,`.${e.params.slideClass}, swiper-slide`),m=c?e.virtual.slides.length:f.length;let p=[];const w=[],b=[];let x=i.slidesOffsetBefore;typeof x=="function"&&(x=i.slidesOffsetBefore.call(e));let d=i.slidesOffsetAfter;typeof d=="function"&&(d=i.slidesOffsetAfter.call(e));const u=e.snapGrid.length,g=e.slidesGrid.length;let S=i.spaceBetween,E=-x,C=0,L=0;if(typeof l>"u")return;typeof S=="string"&&S.indexOf("%")>=0&&(S=parseFloat(S.replace("%",""))/100*l),e.virtualSize=-S,f.forEach(v=>{o?v.style.marginLeft="":v.style.marginRight="",v.style.marginBottom="",v.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(ee(r,"--swiper-centered-offset-before",""),ee(r,"--swiper-centered-offset-after",""));const y=i.grid&&i.grid.rows>1&&e.grid;y&&e.grid.initSlides(m);let M;const k=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(v=>typeof i.breakpoints[v].slidesPerView<"u").length>0;for(let v=0;v<m;v+=1){M=0;let T;if(f[v]&&(T=f[v]),y&&e.grid.updateSlide(v,T,m,t),!(f[v]&&V(T,"display")==="none")){if(i.slidesPerView==="auto"){k&&(f[v].style[t("width")]="");const P=getComputedStyle(T),z=T.style.transform,W=T.style.webkitTransform;if(z&&(T.style.transform="none"),W&&(T.style.webkitTransform="none"),i.roundLengths)M=e.isHorizontal()?ue(T,"width",!0):ue(T,"height",!0);else{const K=s(P,"width"),se=s(P,"padding-left"),ne=s(P,"padding-right"),_=s(P,"margin-left"),B=s(P,"margin-right"),ge=P.getPropertyValue("box-sizing");if(ge&&ge==="border-box")M=K+_+B;else{const{clientWidth:Ne,offsetWidth:Ve}=T;M=K+se+ne+_+B+(Ve-Ne)}}z&&(T.style.transform=z),W&&(T.style.webkitTransform=W),i.roundLengths&&(M=Math.floor(M))}else M=(l-(i.slidesPerView-1)*S)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),f[v]&&(f[v].style[t("width")]=`${M}px`);f[v]&&(f[v].swiperSlideSize=M),b.push(M),i.centeredSlides?(E=E+M/2+C/2+S,C===0&&v!==0&&(E=E-l/2-S),v===0&&(E=E-l/2-S),Math.abs(E)<1/1e3&&(E=0),i.roundLengths&&(E=Math.floor(E)),L%i.slidesPerGroup===0&&p.push(E),w.push(E)):(i.roundLengths&&(E=Math.floor(E)),(L-Math.min(e.params.slidesPerGroupSkip,L))%e.params.slidesPerGroup===0&&p.push(E),w.push(E),E=E+M+S),e.virtualSize+=M+S,C=M,L+=1}}if(e.virtualSize=Math.max(e.virtualSize,l)+d,o&&a&&(i.effect==="slide"||i.effect==="coverflow")&&(r.style.width=`${e.virtualSize+i.spaceBetween}px`),i.setWrapperSize&&(r.style[t("width")]=`${e.virtualSize+i.spaceBetween}px`),y&&e.grid.updateWrapperSize(M,p,t),!i.centeredSlides){const v=[];for(let T=0;T<p.length;T+=1){let P=p[T];i.roundLengths&&(P=Math.floor(P)),p[T]<=e.virtualSize-l&&v.push(P)}p=v,Math.floor(e.virtualSize-l)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-l)}if(c&&i.loop){const v=b[0]+S;if(i.slidesPerGroup>1){const T=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),P=v*i.slidesPerGroup;for(let z=0;z<T;z+=1)p.push(p[p.length-1]+P)}for(let T=0;T<e.virtual.slidesBefore+e.virtual.slidesAfter;T+=1)i.slidesPerGroup===1&&p.push(p[p.length-1]+v),w.push(w[w.length-1]+v),e.virtualSize+=v}if(p.length===0&&(p=[0]),i.spaceBetween!==0){const v=e.isHorizontal()&&o?"marginLeft":t("marginRight");f.filter((T,P)=>!i.cssMode||i.loop?!0:P!==f.length-1).forEach(T=>{T.style[v]=`${S}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let v=0;b.forEach(P=>{v+=P+(i.spaceBetween?i.spaceBetween:0)}),v-=i.spaceBetween;const T=v-l;p=p.map(P=>P<0?-x:P>T?T+d:P)}if(i.centerInsufficientSlides){let v=0;if(b.forEach(T=>{v+=T+(i.spaceBetween?i.spaceBetween:0)}),v-=i.spaceBetween,v<l){const T=(l-v)/2;p.forEach((P,z)=>{p[z]=P-T}),w.forEach((P,z)=>{w[z]=P+T})}}if(Object.assign(e,{slides:f,snapGrid:p,slidesGrid:w,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){ee(r,"--swiper-centered-offset-before",`${-p[0]}px`),ee(r,"--swiper-centered-offset-after",`${e.size/2-b[b.length-1]/2}px`);const v=-e.snapGrid[0],T=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(P=>P+v),e.slidesGrid=e.slidesGrid.map(P=>P+T)}if(m!==h&&e.emit("slidesLengthChange"),p.length!==u&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),w.length!==g&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const v=`${i.containerModifierClass}backface-hidden`,T=e.el.classList.contains(v);m<=i.maxBackfaceHiddenSlides?T||e.el.classList.add(v):T&&e.el.classList.remove(v)}}function at(e){const t=this,s=[],i=t.virtual&&t.params.virtual.enabled;let r=0,n;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=o=>i?t.slides.filter(a=>parseInt(a.getAttribute("data-swiper-slide-index"),10)===o)[0]:t.slides[o];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(o=>{s.push(o)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const o=t.activeIndex+n;if(o>t.slides.length&&!i)break;s.push(l(o))}else s.push(l(t.activeIndex));for(n=0;n<s.length;n+=1)if(typeof s[n]<"u"){const o=s[n].offsetHeight;r=o>r?o:r}(r||r===0)&&(t.wrapperEl.style.height=`${r}px`)}function lt(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-s}function ot(e=this&&this.translate||0){const t=this,s=t.params,{slides:i,rtlTranslate:r,snapGrid:n}=t;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;r&&(l=e),i.forEach(o=>{o.classList.remove(s.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let o=0;o<i.length;o+=1){const a=i[o];let c=a.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(c-=i[0].swiperSlideOffset);const h=(l+(s.centeredSlides?t.minTranslate():0)-c)/(a.swiperSlideSize+s.spaceBetween),f=(l-n[0]+(s.centeredSlides?t.minTranslate():0)-c)/(a.swiperSlideSize+s.spaceBetween),m=-(l-c),p=m+t.slidesSizesGrid[o];(m>=0&&m<t.size-1||p>1&&p<=t.size||m<=0&&p>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(o),i[o].classList.add(s.slideVisibleClass)),a.progress=r?-h:h,a.originalProgress=r?-f:f}}function dt(e){const t=this;if(typeof e>"u"){const h=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*h||0}const s=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:n,isEnd:l,progressLoop:o}=t;const a=n,c=l;if(i===0)r=0,n=!0,l=!0;else{r=(e-t.minTranslate())/i;const h=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;n=h||r<=0,l=f||r>=1,h&&(r=0),f&&(r=1)}if(s.loop){const h=F(t.slides.filter(x=>x.getAttribute("data-swiper-slide-index")==="0")[0]),f=F(t.slides.filter(x=>x.getAttribute("data-swiper-slide-index")*1===t.slides.length-1)[0]),m=t.slidesGrid[h],p=t.slidesGrid[f],w=t.slidesGrid[t.slidesGrid.length-1],b=Math.abs(e);b>=m?o=(b-m)/w:o=(b+w-p)/w,o>1&&(o-=1)}Object.assign(t,{progress:r,progressLoop:o,isBeginning:n,isEnd:l}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),n&&!a&&t.emit("reachBeginning toEdge"),l&&!c&&t.emit("reachEnd toEdge"),(a&&!n||c&&!l)&&t.emit("fromEdge"),t.emit("progress",r)}function ct(){const e=this,{slides:t,params:s,slidesEl:i,activeIndex:r}=e,n=e.virtual&&s.virtual.enabled,l=a=>N(i,`.${s.slideClass}${a}, swiper-slide${a}`)[0];t.forEach(a=>{a.classList.remove(s.slideActiveClass,s.slideNextClass,s.slidePrevClass)});let o;if(n)if(s.loop){let a=r-e.virtual.slidesBefore;a<0&&(a=e.virtual.slides.length+a),a>=e.virtual.slides.length&&(a-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${a}"]`)}else o=l(`[data-swiper-slide-index="${r}"]`);else o=t[r];if(o){o.classList.add(s.slideActiveClass);let a=Ue(o,`.${s.slideClass}, swiper-slide`)[0];s.loop&&!a&&(a=t[0]),a&&a.classList.add(s.slideNextClass);let c=qe(o,`.${s.slideClass}, swiper-slide`)[0];s.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(s.slidePrevClass)}e.emitSlidesClasses()}function ft(e){const{slidesGrid:t,params:s}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let n=0;n<t.length;n+=1)typeof t[n+1]<"u"?i>=t[n]&&i<t[n+1]-(t[n+1]-t[n])/2?r=n:i>=t[n]&&i<t[n+1]&&(r=n+1):i>=t[n]&&(r=n);return s.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function ut(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:n,realIndex:l,snapIndex:o}=t;let a=e,c;const h=m=>{let p=m-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof a>"u"&&(a=ft(t)),i.indexOf(s)>=0)c=i.indexOf(s);else{const m=Math.min(r.slidesPerGroupSkip,a);c=m+Math.floor((a-m)/r.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),a===n){c!==o&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=h(a));return}let f;t.virtual&&r.virtual.enabled&&r.loop?f=h(a):t.slides[a]?f=parseInt(t.slides[a].getAttribute("data-swiper-slide-index")||a,10):f=a,Object.assign(t,{snapIndex:c,realIndex:f,previousIndex:n,activeIndex:a}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function pt(e){const t=this,s=t.params,i=e.closest(`.${s.slideClass}, swiper-slide`);let r=!1,n;if(i){for(let l=0;l<t.slides.length;l+=1)if(t.slides[l]===i){r=!0,n=l;break}}if(i&&r)t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=n;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}s.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const ht={updateSize:nt,updateSlides:rt,updateAutoHeight:at,updateSlidesOffset:lt,updateSlidesProgress:ot,updateProgress:dt,updateSlidesClasses:ct,updateActiveIndex:ut,updateClickedSlide:pt};function mt(e=this.isHorizontal()?"x":"y"){const t=this,{params:s,rtlTranslate:i,translate:r,wrapperEl:n}=t;if(s.virtualTranslate)return i?-r:r;if(s.cssMode)return r;let l=Xe(n,e);return i&&(l=-l),l||0}function gt(e,t){const s=this,{rtlTranslate:i,params:r,wrapperEl:n,progress:l}=s;let o=0,a=0;const c=0;s.isHorizontal()?o=i?-e:e:a=e,r.roundLengths&&(o=Math.floor(o),a=Math.floor(a)),r.cssMode?n[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-o:-a:r.virtualTranslate||(n.style.transform=`translate3d(${o}px, ${a}px, ${c}px)`),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:a;let h;const f=s.maxTranslate()-s.minTranslate();f===0?h=0:h=(e-s.minTranslate())/f,h!==l&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)}function vt(){return-this.snapGrid[0]}function St(){return-this.snapGrid[this.snapGrid.length-1]}function bt(e=0,t=this.params.speed,s=!0,i=!0,r){const n=this,{params:l,wrapperEl:o}=n;if(n.animating&&l.preventInteractionOnTransition)return!1;const a=n.minTranslate(),c=n.maxTranslate();let h;if(i&&e>a?h=a:i&&e<c?h=c:h=e,n.updateProgress(h),l.cssMode){const f=n.isHorizontal();if(t===0)o[f?"scrollLeft":"scrollTop"]=-h;else{if(!n.support.smoothScroll)return Ee({swiper:n,targetPosition:-h,side:f?"left":"top"}),!0;o.scrollTo({[f?"left":"top"]:-h,behavior:"smooth"})}return!0}return t===0?(n.setTransition(0),n.setTranslate(h),s&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(h),s&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(m){!n||n.destroyed||m.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,s&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}const wt={getTranslate:mt,setTranslate:gt,minTranslate:vt,maxTranslate:St,translateTo:bt};function xt(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`),s.emit("setTransition",e,t)}function Oe({swiper:e,runCallbacks:t,direction:s,step:i}){const{activeIndex:r,previousIndex:n}=e;let l=s;if(l||(r>n?l="next":r<n?l="prev":l="reset"),e.emit(`transition${i}`),t&&r!==n){if(l==="reset"){e.emit(`slideResetTransition${i}`);return}e.emit(`slideChangeTransition${i}`),l==="next"?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`)}}function Tt(e=!0,t){const s=this,{params:i}=s;i.cssMode||(i.autoHeight&&s.updateAutoHeight(),Oe({swiper:s,runCallbacks:e,direction:t,step:"Start"}))}function yt(e=!0,t){const s=this,{params:i}=s;s.animating=!1,!i.cssMode&&(s.setTransition(0),Oe({swiper:s,runCallbacks:e,direction:t,step:"End"}))}const Ct={setTransition:xt,transitionStart:Tt,transitionEnd:yt};function Et(e=0,t=this.params.speed,s=!0,i,r){typeof e=="string"&&(e=parseInt(e,10));const n=this;let l=e;l<0&&(l=0);const{params:o,snapGrid:a,slidesGrid:c,previousIndex:h,activeIndex:f,rtlTranslate:m,wrapperEl:p,enabled:w}=n;if(n.animating&&o.preventInteractionOnTransition||!w&&!i&&!r)return!1;const b=Math.min(n.params.slidesPerGroupSkip,l);let x=b+Math.floor((l-b)/n.params.slidesPerGroup);x>=a.length&&(x=a.length-1);const d=-a[x];if(o.normalizeSlideIndex)for(let g=0;g<c.length;g+=1){const S=-Math.floor(d*100),E=Math.floor(c[g]*100),C=Math.floor(c[g+1]*100);typeof c[g+1]<"u"?S>=E&&S<C-(C-E)/2?l=g:S>=E&&S<C&&(l=g+1):S>=E&&(l=g)}if(n.initialized&&l!==f&&(!n.allowSlideNext&&d<n.translate&&d<n.minTranslate()||!n.allowSlidePrev&&d>n.translate&&d>n.maxTranslate()&&(f||0)!==l))return!1;l!==(h||0)&&s&&n.emit("beforeSlideChangeStart"),n.updateProgress(d);let u;if(l>f?u="next":l<f?u="prev":u="reset",m&&-d===n.translate||!m&&d===n.translate)return n.updateActiveIndex(l),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),o.effect!=="slide"&&n.setTranslate(d),u!=="reset"&&(n.transitionStart(s,u),n.transitionEnd(s,u)),!1;if(o.cssMode){const g=n.isHorizontal(),S=m?d:-d;if(t===0){const E=n.virtual&&n.params.virtual.enabled;E&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),E&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[g?"scrollLeft":"scrollTop"]=S})):p[g?"scrollLeft":"scrollTop"]=S,E&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return Ee({swiper:n,targetPosition:S,side:g?"left":"top"}),!0;p.scrollTo({[g?"left":"top"]:S,behavior:"smooth"})}return!0}return n.setTransition(t),n.setTranslate(d),n.updateActiveIndex(l),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,i),n.transitionStart(s,u),t===0?n.transitionEnd(s,u):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(S){!n||n.destroyed||S.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(s,u))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function Mt(e=0,t=this.params.speed,s=!0,i){typeof e=="string"&&(e=parseInt(e,10));const r=this;let n=e;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?n=n+r.virtual.slidesBefore:n=F(r.slides.filter(l=>l.getAttribute("data-swiper-slide-index")*1===n)[0])),r.slideTo(n,t,s,i)}function Pt(e=this.params.speed,t=!0,s){const i=this,{enabled:r,params:n,animating:l}=i;if(!r)return i;let o=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const a=i.activeIndex<n.slidesPerGroupSkip?1:o,c=i.virtual&&n.virtual.enabled;if(n.loop){if(l&&!c&&n.loopPreventsSliding)return!1;i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft}return n.rewind&&i.isEnd?i.slideTo(0,e,t,s):i.slideTo(i.activeIndex+a,e,t,s)}function Lt(e=this.params.speed,t=!0,s){const i=this,{params:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:a,animating:c}=i;if(!a)return i;const h=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!h&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const f=o?i.translate:-i.translate;function m(d){return d<0?-Math.floor(Math.abs(d)):Math.floor(d)}const p=m(f),w=n.map(d=>m(d));let b=n[w.indexOf(p)-1];if(typeof b>"u"&&r.cssMode){let d;n.forEach((u,g)=>{p>=u&&(d=g)}),typeof d<"u"&&(b=n[d>0?d-1:d])}let x=0;if(typeof b<"u"&&(x=l.indexOf(b),x<0&&(x=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(x=x-i.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),r.rewind&&i.isBeginning){const d=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(d,e,t,s)}return i.slideTo(x,e,t,s)}function Ot(e=this.params.speed,t=!0,s){const i=this;return i.slideTo(i.activeIndex,e,t,s)}function zt(e=this.params.speed,t=!0,s,i=.5){const r=this;let n=r.activeIndex;const l=Math.min(r.params.slidesPerGroupSkip,n),o=l+Math.floor((n-l)/r.params.slidesPerGroup),a=r.rtlTranslate?r.translate:-r.translate;if(a>=r.snapGrid[o]){const c=r.snapGrid[o],h=r.snapGrid[o+1];a-c>(h-c)*i&&(n+=r.params.slidesPerGroup)}else{const c=r.snapGrid[o-1],h=r.snapGrid[o];a-c<=(h-c)*i&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,s)}function It(){const e=this,{params:t,slidesEl:s}=e,i=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.clickedIndex,n;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-i/2||r>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),r=F(N(s,`${l}[data-swiper-slide-index="${n}"]`)[0]),fe(()=>{e.slideTo(r)})):e.slideTo(r):r>e.slides.length-i?(e.loopFix(),r=F(N(s,`${l}[data-swiper-slide-index="${n}"]`)[0]),fe(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}const At={slideTo:Et,slideToLoop:Mt,slideNext:Pt,slidePrev:Lt,slideReset:Ot,slideToClosest:zt,slideToClickedSlide:It};function _t(e){const t=this,{params:s,slidesEl:i}=t;if(!s.loop||t.virtual&&t.params.virtual.enabled)return;N(i,`.${s.slideClass}, swiper-slide`).forEach((n,l)=>{n.setAttribute("data-swiper-slide-index",l)}),t.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next"})}function $t({slideRealIndex:e,slideTo:t=!0,direction:s,setTranslate:i,activeSlideIndex:r,byController:n,byMousewheel:l}={}){const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:a,allowSlidePrev:c,allowSlideNext:h,slidesEl:f,params:m}=o;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&m.virtual.enabled){t&&(!m.centeredSlides&&o.snapIndex===0?o.slideTo(o.virtual.slides.length,0,!1,!0):m.centeredSlides&&o.snapIndex<m.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=h,o.emit("loopFix");return}const p=m.slidesPerView==="auto"?o.slidesPerViewDynamic():Math.ceil(parseFloat(m.slidesPerView,10));let w=m.loopedSlides||p;w%m.slidesPerGroup!==0&&(w+=m.slidesPerGroup-w%m.slidesPerGroup),o.loopedSlides=w;const b=[],x=[];let d=o.activeIndex;typeof r>"u"?r=F(o.slides.filter(C=>C.classList.contains("swiper-slide-active"))[0]):d=r;const u=s==="next"||!s,g=s==="prev"||!s;let S=0,E=0;if(r<w){S=w-r;for(let C=0;C<w-r;C+=1){const L=C-Math.floor(C/a.length)*a.length;b.push(a.length-L-1)}}else if(r>o.slides.length-w*2){E=r-(o.slides.length-w*2);for(let C=0;C<E;C+=1){const L=C-Math.floor(C/a.length)*a.length;x.push(L)}}if(g&&b.forEach(C=>{f.prepend(o.slides[C])}),u&&x.forEach(C=>{f.append(o.slides[C])}),o.recalcSlides(),m.watchSlidesProgress&&o.updateSlidesOffset(),t){if(b.length>0&&g)if(typeof e>"u"){const C=o.slidesGrid[d],y=o.slidesGrid[d+S]-C;l?o.setTranslate(o.translate-y):(o.slideTo(d+S,0,!1,!0),i&&(o.touches[o.isHorizontal()?"startX":"startY"]+=y))}else i&&o.slideToLoop(e,0,!1,!0);else if(x.length>0&&u)if(typeof e>"u"){const C=o.slidesGrid[d],y=o.slidesGrid[d-E]-C;l?o.setTranslate(o.translate-y):(o.slideTo(d-E,0,!1,!0),i&&(o.touches[o.isHorizontal()?"startX":"startY"]+=y))}else o.slideToLoop(e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=h,o.controller&&o.controller.control&&!n){const C={slideRealIndex:e,slideTo:!1,direction:s,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach(L=>{L.params.loop&&L.loopFix(C)}):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix(C)}o.emit("loopFix")}function Gt(){const e=this,{slides:t,params:s,slidesEl:i}=e;if(!s.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];t.forEach(n=>{const l=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;r[l]=n}),t.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),r.forEach(n=>{i.append(n)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const Bt={loopCreate:_t,loopFix:$t,loopDestroy:Gt};function kt(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;s.style.cursor="move",s.style.cursor=e?"grabbing":"grab"}function Dt(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const Nt={setGrabCursor:kt,unsetGrabCursor:Dt};function Vt(e,t=this){function s(i){if(!i||i===R()||i===G())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(e);return!r&&!i.getRootNode?null:r||s(i.getRootNode().host)}return s(t)}function jt(e){const t=this,s=R(),i=G(),r=t.touchEventsData;r.evCache.push(e);const{params:n,touches:l,enabled:o}=t;if(!o||!n.simulateTouch&&e.pointerType==="mouse"||t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let a=e;a.originalEvent&&(a=a.originalEvent);let c=a.target;if(n.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in a&&a.which===3||"button"in a&&a.button>0||r.isTouched&&r.isMoved)return;const h=!!n.noSwipingClass&&n.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;h&&a.target&&a.target.shadowRoot&&f&&(c=f[0]);const m=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,p=!!(a.target&&a.target.shadowRoot);if(n.noSwiping&&(p?Vt(m,c):c.closest(m))){t.allowClick=!0;return}if(n.swipeHandler&&!c.closest(n.swipeHandler))return;l.currentX=a.pageX,l.currentY=a.pageY;const w=l.currentX,b=l.currentY,x=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,d=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(x&&(w<=d||w>=i.innerWidth-d))if(x==="prevent")e.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=w,l.startY=b,r.touchStartTime=q(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let u=!0;c.matches(r.focusableElements)&&(u=!1,c.nodeName==="SELECT"&&(r.isTouched=!1)),s.activeElement&&s.activeElement.matches(r.focusableElements)&&s.activeElement!==c&&s.activeElement.blur();const g=u&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||g)&&!c.isContentEditable&&a.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}function Ft(e){const t=R(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:o}=s;if(!o||!r.simulateTouch&&e.pointerType==="mouse")return;let a=e;if(a.originalEvent&&(a=a.originalEvent),!i.isTouched){i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",a);return}const c=i.evCache.findIndex(C=>C.pointerId===a.pointerId);c>=0&&(i.evCache[c]=a);const h=i.evCache.length>1?i.evCache[0]:a,f=h.pageX,m=h.pageY;if(a.preventedByNestedSwiper){n.startX=f,n.startY=m;return}if(!s.allowTouchMove){a.target.matches(i.focusableElements)||(s.allowClick=!1),i.isTouched&&(Object.assign(n,{startX:f,startY:m,prevX:s.touches.currentX,prevY:s.touches.currentY,currentX:f,currentY:m}),i.touchStartTime=q());return}if(r.touchReleaseOnEdges&&!r.loop){if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(f<n.startX&&s.translate<=s.maxTranslate()||f>n.startX&&s.translate>=s.minTranslate())return}if(t.activeElement&&a.target===t.activeElement&&a.target.matches(i.focusableElements)){i.isMoved=!0,s.allowClick=!1;return}if(i.allowTouchCallbacks&&s.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;n.currentX=f,n.currentY=m;const p=n.currentX-n.startX,w=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(p**2+w**2)<s.params.threshold)return;if(typeof i.isScrolling>"u"){let C;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:p*p+w*w>=25&&(C=Math.atan2(Math.abs(w),Math.abs(p))*180/Math.PI,i.isScrolling=s.isHorizontal()?C>r.touchAngle:90-C>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",a),typeof i.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(i.startMoving=!0),i.isScrolling||s.zoom&&s.params.zoom&&s.params.zoom.enabled&&i.evCache.length>1){i.isTouched=!1;return}if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation();let b=s.isHorizontal()?p:w,x=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(b=Math.abs(b)*(l?1:-1),x=Math.abs(x)*(l?1:-1)),n.diff=b,b*=r.touchRatio,l&&(b=-b,x=-x);const d=s.touchesDirection;s.swipeDirection=b>0?"prev":"next",s.touchesDirection=x>0?"prev":"next";const u=s.params.loop&&!r.cssMode;if(!i.isMoved){if(u&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const C=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});s.wrapperEl.dispatchEvent(C)}i.allowMomentumBounce=!1,r.grabCursor&&(s.allowSlideNext===!0||s.allowSlidePrev===!0)&&s.setGrabCursor(!0),s.emit("sliderFirstMove",a)}let g;i.isMoved&&d!==s.touchesDirection&&u&&Math.abs(b)>=1&&(s.loopFix({direction:s.swipeDirection,setTranslate:!0}),g=!0),s.emit("sliderMove",a),i.isMoved=!0,i.currentTranslate=b+i.startTranslate;let S=!0,E=r.resistanceRatio;if(r.touchReleaseOnEdges&&(E=0),b>0?(u&&!g&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.size/2:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(S=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+b)**E))):b<0&&(u&&!g&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.size/2:s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-(r.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<s.maxTranslate()&&(S=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-b)**E))),S&&(a.preventedByNestedSwiper=!0),!s.allowSlideNext&&s.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&s.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&!s.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(b)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),s.params.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function Ht(e){const t=this,s=t.touchEventsData,i=s.evCache.findIndex(g=>g.pointerId===e.pointerId);if(i>=0&&s.evCache.splice(i,1),["pointercancel","pointerout","pointerleave"].includes(e.type))return;const{params:r,touches:n,rtlTranslate:l,slidesGrid:o,enabled:a}=t;if(!a||!r.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),s.allowTouchCallbacks&&t.emit("touchEnd",c),s.allowTouchCallbacks=!1,!s.isTouched){s.isMoved&&r.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,s.startMoving=!1;return}r.grabCursor&&s.isMoved&&s.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const h=q(),f=h-s.touchStartTime;if(t.allowClick){const g=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(g&&g[0]||c.target),t.emit("tap click",c),f<300&&h-s.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(s.lastClickTime=q(),fe(()=>{t.destroyed||(t.allowClick=!0)}),!s.isTouched||!s.isMoved||!t.swipeDirection||n.diff===0||s.currentTranslate===s.startTranslate){s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;return}s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;let m;if(r.followFinger?m=l?t.translate:-t.translate:m=-s.currentTranslate,r.cssMode)return;if(t.params.freeMode&&r.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:m});return}let p=0,w=t.slidesSizesGrid[0];for(let g=0;g<o.length;g+=g<r.slidesPerGroupSkip?1:r.slidesPerGroup){const S=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof o[g+S]<"u"?m>=o[g]&&m<o[g+S]&&(p=g,w=o[g+S]-o[g]):m>=o[g]&&(p=g,w=o[o.length-1]-o[o.length-2])}let b=null,x=null;r.rewind&&(t.isBeginning?x=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const d=(m-o[p])/w,u=p<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(d>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?b:p+u):t.slideTo(p)),t.swipeDirection==="prev"&&(d>1-r.longSwipesRatio?t.slideTo(p+u):x!==null&&d<0&&Math.abs(d)>r.longSwipesRatio?t.slideTo(x):t.slideTo(p))}else{if(!r.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+u):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:p+u),t.swipeDirection==="prev"&&t.slideTo(x!==null?x:p))}}let Se;function be(){const e=this,{params:t,el:s}=e;if(s&&s.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:n}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!o?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(Se),Se=setTimeout(()=>{e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function Rt(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Wt(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:i}=e;if(!i)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let r;const n=e.maxTranslate()-e.minTranslate();n===0?r=0:r=(e.translate-e.minTranslate())/n,r!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}const te=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,i=t.closest(s());if(i){const r=i.querySelector(`.${e.params.lazyPreloaderClass}`);r&&r.remove()}};function Xt(e){const t=this;te(t,e.target),t.update()}let we=!1;function Yt(){}const ze=(e,t)=>{const s=R(),{params:i,el:r,wrapperEl:n,device:l}=e,o=!!i.nested,a=t==="on"?"addEventListener":"removeEventListener",c=t;r[a]("pointerdown",e.onTouchStart,{passive:!1}),s[a]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[a]("pointerup",e.onTouchEnd,{passive:!0}),s[a]("pointercancel",e.onTouchEnd,{passive:!0}),s[a]("pointerout",e.onTouchEnd,{passive:!0}),s[a]("pointerleave",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[a]("click",e.onClick,!0),i.cssMode&&n[a]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",be,!0):e[c]("observerUpdate",be,!0),r[a]("load",e.onLoad,{capture:!0})};function qt(){const e=this,t=R(),{params:s}=e;e.onTouchStart=jt.bind(e),e.onTouchMove=Ft.bind(e),e.onTouchEnd=Ht.bind(e),s.cssMode&&(e.onScroll=Wt.bind(e)),e.onClick=Rt.bind(e),e.onLoad=Xt.bind(e),we||(t.addEventListener("touchstart",Yt),we=!0),ze(e,"on")}function Ut(){ze(this,"off")}const Kt={attachEvents:qt,detachEvents:Ut},xe=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Zt(){const e=this,{realIndex:t,initialized:s,params:i,el:r}=e,n=i.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const l=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const a=(l in n?n[l]:void 0)||e.originalParams,c=xe(e,i),h=xe(e,a),f=i.enabled;c&&!h?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&h&&(r.classList.add(`${i.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&i.grid.fill==="column")&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(b=>{const x=i[b]&&i[b].enabled,d=a[b]&&a[b].enabled;x&&!d&&e[b].disable(),!x&&d&&e[b].enable()});const m=a.direction&&a.direction!==i.direction,p=i.loop&&(a.slidesPerView!==i.slidesPerView||m);m&&s&&e.changeDirection(),$(e.params,a);const w=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!w?e.disable():!f&&w&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",a),p&&s&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",a)}function Jt(e,t="window",s){if(!e||t==="container"&&!s)return;let i=!1;const r=G(),n=t==="window"?r.innerHeight:s.clientHeight,l=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const a=parseFloat(o.substr(1));return{value:n*a,point:o}}return{value:o,point:o}});l.sort((o,a)=>parseInt(o.value,10)-parseInt(a.value,10));for(let o=0;o<l.length;o+=1){const{point:a,value:c}=l[o];t==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(i=a):c<=s.clientWidth&&(i=a)}return i||"max"}const Qt={setBreakpoint:Zt,getBreakpoint:Jt};function ei(e,t){const s=[];return e.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&s.push(t+r)}):typeof i=="string"&&s.push(t+i)}),s}function ti(){const e=this,{classNames:t,params:s,rtl:i,el:r,device:n}=e,l=ei(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:i},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&s.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...l),r.classList.add(...t),e.emitContainerClasses()}function ii(){const e=this,{el:t,classNames:s}=e;t.classList.remove(...s),e.emitContainerClasses()}const si={addClasses:ti,removeClasses:ii};function ni(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:i}=s;if(i){const r=e.slides.length-1,n=e.slidesGrid[r]+e.slidesSizesGrid[r]+i*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;s.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),s.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const ri={checkOverflow:ni},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",runCallbacksOnInit:!0,_emitClasses:!1};function ai(e,t){return function(i={}){const r=Object.keys(i)[0],n=i[r];if(typeof n!="object"||n===null){$(t,i);return}if(["navigation","pagination","scrollbar"].indexOf(r)>=0&&e[r]===!0&&(e[r]={auto:!0}),!(r in e&&"enabled"in n)){$(t,i);return}e[r]===!0&&(e[r]={enabled:!0}),typeof e[r]=="object"&&!("enabled"in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),$(t,i)}}const de={eventsEmitter:st,update:ht,translate:wt,transition:Ct,slide:At,loop:Bt,grabCursor:Nt,events:Kt,breakpoints:Qt,checkOverflow:ri,classes:si},ce={};let U=class D{constructor(...t){let s,i;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?i=t[0]:[s,i]=t,i||(i={}),i=$({},i),s&&!i.el&&(i.el=s);const r=R();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const a=[];return r.querySelectorAll(i.el).forEach(c=>{const h=$({},i,{el:c});a.push(new D(h))}),a}const n=this;n.__swiper__=!0,n.support=Le(),n.device=Je({userAgent:i.userAgent}),n.browser=et(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],i.modules&&Array.isArray(i.modules)&&n.modules.push(...i.modules);const l={};n.modules.forEach(a=>{a({params:i,swiper:n,extendParams:ai(i,l),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const o=$({},Te,l);return n.params=$({},o,ce,i),n.originalParams=$({},n.params),n.passedParams=$({},i),n.params&&n.params.on&&Object.keys(n.params.on).forEach(a=>{n.on(a,n.params.on[a])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:s,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:q(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}recalcSlides(){const t=this,{slidesEl:s,params:i}=t;t.slides=N(s,`.${i.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,s){const i=this;t=Math.min(Math.max(t,0),1);const r=i.minTranslate(),l=(i.maxTranslate()-r)*t+r;i.translateTo(l,typeof s>"u"?0:s),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const s=t.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",s.join(" "))}getSlideClasses(t){const s=this;return s.destroyed?"":t.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(s.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const s=[];t.slides.forEach(i=>{const r=t.getSlideClasses(i);s.push({slideEl:i,classNames:r}),t.emit("_slideClass",i,r)}),t.emit("_slideClasses",s)}slidesPerViewDynamic(t="current",s=!1){const i=this,{params:r,slides:n,slidesGrid:l,slidesSizesGrid:o,size:a,activeIndex:c}=i;let h=1;if(r.centeredSlides){let f=n[c].swiperSlideSize,m;for(let p=c+1;p<n.length;p+=1)n[p]&&!m&&(f+=n[p].swiperSlideSize,h+=1,f>a&&(m=!0));for(let p=c-1;p>=0;p-=1)n[p]&&!m&&(f+=n[p].swiperSlideSize,h+=1,f>a&&(m=!0))}else if(t==="current")for(let f=c+1;f<n.length;f+=1)(s?l[f]+o[f]-l[c]<a:l[f]-l[c]<a)&&(h+=1);else for(let f=c-1;f>=0;f-=1)l[c]-l[f]<a&&(h+=1);return h}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:s,params:i}=t;i.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&te(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function r(){const l=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let n;t.params.freeMode&&t.params.freeMode.enabled?(r(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?n=t.slideTo(t.slides.length-1,0,!1,!0):n=t.slideTo(t.activeIndex,0,!1,!0),n||r()),i.watchOverflow&&s!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,s=!0){const i=this,r=i.params.direction;return t||(t=r==="horizontal"?"vertical":"horizontal"),t===r||t!=="horizontal"&&t!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${r}`),i.el.classList.add(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.forEach(n=>{t==="vertical"?n.style.width="":n.style.height=""}),i.emit("changeDirection"),s&&i.update()),i}changeLanguageDirection(t){const s=this;s.rtl&&t==="rtl"||!s.rtl&&t==="ltr"||(s.rtl=t==="rtl",s.rtlTranslate=s.params.direction==="horizontal"&&s.rtl,s.rtl?(s.el.classList.add(`${s.params.containerModifierClass}rtl`),s.el.dir="rtl"):(s.el.classList.remove(`${s.params.containerModifierClass}rtl`),s.el.dir="ltr"),s.update())}mount(t){const s=this;if(s.mounted)return!0;let i=t||s.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=s,i.shadowEl&&(s.isElement=!0);const r=()=>`.${(s.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=(()=>i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(r()):N(i,r())[0])();return!l&&s.params.createElements&&(l=Me("div",s.params.wrapperClass),i.append(l),N(i,`.${s.params.slideClass}`).forEach(o=>{l.append(o)})),Object.assign(s,{el:i,wrapperEl:l,slidesEl:s.isElement?i:l,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||V(i,"direction")==="rtl",rtlTranslate:s.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||V(i,"direction")==="rtl"),wrongRTL:V(l,"display")==="-webkit-box"}),!0}init(t){const s=this;return s.initialized||s.mount(t)===!1||(s.emit("beforeInit"),s.params.breakpoints&&s.setBreakpoint(),s.addClasses(),s.updateSize(),s.updateSlides(),s.params.watchOverflow&&s.checkOverflow(),s.params.grabCursor&&s.enabled&&s.setGrabCursor(),s.params.loop&&s.virtual&&s.params.virtual.enabled?s.slideTo(s.params.initialSlide+s.virtual.slidesBefore,0,s.params.runCallbacksOnInit,!1,!0):s.slideTo(s.params.initialSlide,0,s.params.runCallbacksOnInit,!1,!0),s.params.loop&&s.loopCreate(),s.attachEvents(),[...s.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete?te(s,r):r.addEventListener("load",n=>{te(s,n.target)})}),s.initialized=!0,s.emit("init"),s.emit("afterInit")),s}destroy(t=!0,s=!0){const i=this,{params:r,el:n,wrapperEl:l,slides:o}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),s&&(i.removeClasses(),n.removeAttribute("style"),l.removeAttribute("style"),o&&o.length&&o.forEach(a=>{a.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(a=>{i.off(a)}),t!==!1&&(i.el.swiper=null,Re(i)),i.destroyed=!0),null}static extendDefaults(t){$(ce,t)}static get extendedDefaults(){return ce}static get defaults(){return Te}static installModule(t){D.prototype.__modules__||(D.prototype.__modules__=[]);const s=D.prototype.__modules__;typeof t=="function"&&s.indexOf(t)<0&&s.push(t)}static use(t){return Array.isArray(t)?(t.forEach(s=>D.installModule(s)),D):(D.installModule(t),D)}};Object.keys(de).forEach(e=>{Object.keys(de[e]).forEach(t=>{U.prototype[t]=de[e][t]})});U.use([tt,it]);function li(e,t,s,i){return e.params.createElements&&Object.keys(i).forEach(r=>{if(!s[r]&&s.auto===!0){let n=N(e.el,`.${i[r]}`)[0];n||(n=Me("div",i[r]),n.className=i[r],e.el.append(n)),s[r]=n,t[r]=n}}),s}function X(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function oi({swiper:e,extendParams:t,on:s,emit:i}){const r="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:d=>d,formatFractionTotal:d=>d,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,bullets:[]};let n,l=0;const o=d=>(Array.isArray(d)||(d=[d].filter(u=>!!u)),d);function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(d,u){const{bulletActiveClass:g}=e.params.pagination;d&&(d=d[`${u==="prev"?"previous":"next"}ElementSibling`],d&&(d.classList.add(`${g}-${u}`),d=d[`${u==="prev"?"previous":"next"}ElementSibling`],d&&d.classList.add(`${g}-${u}-${u}`)))}function h(d){const u=d.target.closest(X(e.params.pagination.bulletClass));if(!u)return;d.preventDefault();const g=F(u)*e.params.slidesPerGroup;e.params.loop?e.slideToLoop(g):e.slideTo(g)}function f(){const d=e.rtl,u=e.params.pagination;if(a())return;let g=e.pagination.el;g=o(g);let S;const E=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,C=e.params.loop?Math.ceil(E/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex:typeof e.snapIndex<"u"?S=e.snapIndex:S=e.activeIndex||0,u.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const L=e.pagination.bullets;let y,M,k;if(u.dynamicBullets&&(n=ue(L[0],e.isHorizontal()?"width":"height",!0),g.forEach(v=>{v.style[e.isHorizontal()?"width":"height"]=`${n*(u.dynamicMainBullets+4)}px`}),u.dynamicMainBullets>1&&e.previousIndex!==void 0&&(l+=S-(e.previousIndex||0),l>u.dynamicMainBullets-1?l=u.dynamicMainBullets-1:l<0&&(l=0)),y=Math.max(S-l,0),M=y+(Math.min(L.length,u.dynamicMainBullets)-1),k=(M+y)/2),L.forEach(v=>{v.classList.remove(...["","-next","-next-next","-prev","-prev-prev","-main"].map(T=>`${u.bulletActiveClass}${T}`))}),g.length>1)L.forEach(v=>{const T=F(v);T===S&&v.classList.add(u.bulletActiveClass),u.dynamicBullets&&(T>=y&&T<=M&&v.classList.add(`${u.bulletActiveClass}-main`),T===y&&c(v,"prev"),T===M&&c(v,"next"))});else{const v=L[S];if(v&&v.classList.add(u.bulletActiveClass),u.dynamicBullets){const T=L[y],P=L[M];for(let z=y;z<=M;z+=1)L[z].classList.add(`${u.bulletActiveClass}-main`);c(T,"prev"),c(P,"next")}}if(u.dynamicBullets){const v=Math.min(L.length,u.dynamicMainBullets+4),T=(n*v-n)/2-k*n,P=d?"right":"left";L.forEach(z=>{z.style[e.isHorizontal()?P:"top"]=`${T}px`})}}g.forEach((L,y)=>{if(u.type==="fraction"&&(L.querySelectorAll(X(u.currentClass)).forEach(M=>{M.textContent=u.formatFractionCurrent(S+1)}),L.querySelectorAll(X(u.totalClass)).forEach(M=>{M.textContent=u.formatFractionTotal(C)})),u.type==="progressbar"){let M;u.progressbarOpposite?M=e.isHorizontal()?"vertical":"horizontal":M=e.isHorizontal()?"horizontal":"vertical";const k=(S+1)/C;let v=1,T=1;M==="horizontal"?v=k:T=k,L.querySelectorAll(X(u.progressbarFillClass)).forEach(P=>{P.style.transform=`translate3d(0,0,0) scaleX(${v}) scaleY(${T})`,P.style.transitionDuration=`${e.params.speed}ms`})}u.type==="custom"&&u.renderCustom?(L.innerHTML=u.renderCustom(e,S+1,C),y===0&&i("paginationRender",L)):(y===0&&i("paginationRender",L),i("paginationUpdate",L)),e.params.watchOverflow&&e.enabled&&L.classList[e.isLocked?"add":"remove"](u.lockClass)})}function m(){const d=e.params.pagination;if(a())return;const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let g=e.pagination.el;g=o(g);let S="";if(d.type==="bullets"){let E=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&E>u&&(E=u);for(let C=0;C<E;C+=1)d.renderBullet?S+=d.renderBullet.call(e,C,d.bulletClass):S+=`<${d.bulletElement} class="${d.bulletClass}"></${d.bulletElement}>`}d.type==="fraction"&&(d.renderFraction?S=d.renderFraction.call(e,d.currentClass,d.totalClass):S=`<span class="${d.currentClass}"></span> / <span class="${d.totalClass}"></span>`),d.type==="progressbar"&&(d.renderProgressbar?S=d.renderProgressbar.call(e,d.progressbarFillClass):S=`<span class="${d.progressbarFillClass}"></span>`),g.forEach(E=>{d.type!=="custom"&&(E.innerHTML=S||""),d.type==="bullets"&&(e.pagination.bullets=[...E.querySelectorAll(X(d.bulletClass))])}),d.type!=="custom"&&i("paginationRender",g[0])}function p(){e.params.pagination=li(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const d=e.params.pagination;if(!d.el)return;let u;typeof d.el=="string"&&e.isElement&&(u=e.el.shadowRoot.querySelector(d.el)),!u&&typeof d.el=="string"&&(u=[...document.querySelectorAll(d.el)]),u||(u=d.el),!(!u||u.length===0)&&(e.params.uniqueNavElements&&typeof d.el=="string"&&Array.isArray(u)&&u.length>1&&(u=[...e.el.querySelectorAll(d.el)],u.length>1&&(u=u.filter(g=>Pe(g,".swiper")[0]===e.el)[0])),Array.isArray(u)&&u.length===1&&(u=u[0]),Object.assign(e.pagination,{el:u}),u=o(u),u.forEach(g=>{d.type==="bullets"&&d.clickable&&g.classList.add(d.clickableClass),g.classList.add(d.modifierClass+d.type),g.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(g.classList.add(`${d.modifierClass}${d.type}-dynamic`),l=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&g.classList.add(d.progressbarOppositeClass),d.clickable&&g.addEventListener("click",h),e.enabled||g.classList.add(d.lockClass)}))}function w(){const d=e.params.pagination;if(a())return;let u=e.pagination.el;u&&(u=o(u),u.forEach(g=>{g.classList.remove(d.hiddenClass),g.classList.remove(d.modifierClass+d.type),g.classList.remove(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.clickable&&g.removeEventListener("click",h)})),e.pagination.bullets&&e.pagination.bullets.forEach(g=>g.classList.remove(d.bulletActiveClass))}s("init",()=>{e.params.pagination.enabled===!1?x():(p(),m(),f())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),s("snapIndexChange",()=>{f()}),s("snapGridLengthChange",()=>{m(),f()}),s("destroy",()=>{w()}),s("enable disable",()=>{let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{f()}),s("click",(d,u)=>{const g=u.target;let{el:S}=e.pagination;if(Array.isArray(S)||(S=[S].filter(E=>!!E)),e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.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 E=S[0].classList.contains(e.params.pagination.hiddenClass);i(E===!0?"paginationShow":"paginationHide"),S.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList.remove(e.params.pagination.paginationDisabledClass))),p(),m(),f()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList.add(e.params.pagination.paginationDisabledClass))),w()};Object.assign(e.pagination,{enable:b,disable:x,render:m,update:f,init:p,destroy:w})}function H(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function j(e,t){const s=["__proto__","constructor","prototype"];Object.keys(t).filter(i=>s.indexOf(i)<0).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:H(t[i])&&H(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:j(e[i],t[i]):e[i]=t[i]})}function Ie(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Ae(e={}){return e.pagination&&typeof e.pagination.el>"u"}function _e(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function $e(e=""){const t=e.split(" ").map(i=>i.trim()).filter(i=>!!i),s=[];return t.forEach(i=>{s.indexOf(i)<0&&s.push(i)}),s.join(" ")}function di(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Ge=["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","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","injectStyles","injectStylesUrls"];function ci(e={},t=!0){const s={on:{}},i={},r={};j(s,U.defaults),j(s,U.extendedDefaults),s._emitClasses=!0,s.init=!1;const n={},l=Ge.map(a=>a.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(a=>{typeof e[a]>"u"||(l.indexOf(a)>=0?H(e[a])?(s[a]={},r[a]={},j(s[a],e[a]),j(r[a],e[a])):(s[a]=e[a],r[a]=e[a]):a.search(/on[A-Z]/)===0&&typeof e[a]=="function"?t?i[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:s.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(a=>{s[a]===!0&&(s[a]={}),s[a]===!1&&delete s[a]}),{params:s,passedParams:r,rest:n,events:i}}function fi({el:e,nextEl:t,prevEl:s,paginationEl:i,scrollbarEl:r,swiper:n},l){Ie(l)&&t&&s&&(n.params.navigation.nextEl=t,n.originalParams.navigation.nextEl=t,n.params.navigation.prevEl=s,n.originalParams.navigation.prevEl=s),Ae(l)&&i&&(n.params.pagination.el=i,n.originalParams.pagination.el=i),_e(l)&&r&&(n.params.scrollbar.el=r,n.originalParams.scrollbar.el=r),n.init(e)}function ui(e,t,s,i,r){const n=[];if(!t)return n;const l=a=>{n.indexOf(a)<0&&n.push(a)};if(s&&i){const a=i.map(r),c=s.map(r);a.join("")!==c.join("")&&l("children"),i.length!==s.length&&l("children")}return Ge.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(H(e[a])&&H(t[a])){const c=Object.keys(e[a]),h=Object.keys(t[a]);c.length!==h.length?l(a):(c.forEach(f=>{e[a][f]!==t[a][f]&&l(a)}),h.forEach(f=>{e[a][f]!==t[a][f]&&l(a)}))}else e[a]!==t[a]&&l(a)}),n}function Be(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ke(e){const t=[];return I.Children.toArray(e).forEach(s=>{Be(s)?t.push(s):s.props&&s.props.children&&ke(s.props.children).forEach(i=>t.push(i))}),t}function pi(e){const t=[],s={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return I.Children.toArray(e).forEach(i=>{if(Be(i))t.push(i);else if(i.props&&i.props.slot&&s[i.props.slot])s[i.props.slot].push(i);else if(i.props&&i.props.children){const r=ke(i.props.children);r.length>0?r.forEach(n=>t.push(n)):s["container-end"].push(i)}else s["container-end"].push(i)}),{slides:t,slots:s}}function hi({swiper:e,slides:t,passedParams:s,changedParams:i,nextEl:r,prevEl:n,scrollbarEl:l,paginationEl:o}){const a=i.filter(y=>y!=="children"&&y!=="direction"&&y!=="wrapperClass"),{params:c,pagination:h,navigation:f,scrollbar:m,virtual:p,thumbs:w}=e;let b,x,d,u,g,S,E,C;i.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(b=!0),i.includes("controller")&&s.controller&&s.controller.control&&c.controller&&!c.controller.control&&(x=!0),i.includes("pagination")&&s.pagination&&(s.pagination.el||o)&&(c.pagination||c.pagination===!1)&&h&&!h.el&&(d=!0),i.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||l)&&(c.scrollbar||c.scrollbar===!1)&&m&&!m.el&&(u=!0),i.includes("navigation")&&s.navigation&&(s.navigation.prevEl||n)&&(s.navigation.nextEl||r)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(g=!0);const L=y=>{e[y]&&(e[y].destroy(),y==="navigation"?(e.isElement&&(e[y].prevEl.remove(),e[y].nextEl.remove()),c[y].prevEl=void 0,c[y].nextEl=void 0,e[y].prevEl=void 0,e[y].nextEl=void 0):(e.isElement&&e[y].el.remove(),c[y].el=void 0,e[y].el=void 0))};i.includes("loop")&&e.isElement&&(c.loop&&!s.loop?S=!0:!c.loop&&s.loop?E=!0:C=!0),a.forEach(y=>{if(H(c[y])&&H(s[y]))j(c[y],s[y]);else{const M=s[y];(M===!0||M===!1)&&(y==="navigation"||y==="pagination"||y==="scrollbar")?M===!1&&L(y):c[y]=s[y]}}),a.includes("controller")&&!x&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),i.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),i.includes("children")&&t&&c.loop&&(C=!0),b&&w.init()&&w.update(!0),x&&(e.controller.control=c.controller.control),d&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(o)),o&&(c.pagination.el=o),h.init(),h.render(),h.update()),u&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(c.scrollbar.el=l),m.init(),m.updateSize(),m.setTranslate()),g&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(r)),(!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(n))),r&&(c.navigation.nextEl=r),n&&(c.navigation.prevEl=n),f.init(),f.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),i.includes("direction")&&e.changeDirection(s.direction,!1),(S||C)&&e.loopDestroy(),(E||C)&&e.loopCreate(),e.update()}function mi(e,t,s){if(!s)return null;const i=h=>{let f=h;return h<0?f=t.length+h:f>=t.length&&(f=f-t.length),f},r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${s.offset}px`}:{top:`${s.offset}px`},{from:n,to:l}=s,o=e.params.loop?-t.length:0,a=e.params.loop?t.length*2:t.length,c=[];for(let h=o;h<a;h+=1)h>=n&&h<=l&&c.push(t[i(h)]);return c.map(h=>I.cloneElement(h,{swiper:e,style:r}))}const gi=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Y(e,t){return typeof window>"u"?O.useEffect(e,t):O.useLayoutEffect(e,t)}const ye=O.createContext(null),vi=O.createContext(null);function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},pe.apply(this,arguments)}const De=O.forwardRef(function(e,t){let{className:s,tag:i="div",wrapperTag:r="div",children:n,onSwiper:l,...o}=e===void 0?{}:e,a=!1;const[c,h]=O.useState("swiper"),[f,m]=O.useState(null),[p,w]=O.useState(!1),b=O.useRef(!1),x=O.useRef(null),d=O.useRef(null),u=O.useRef(null),g=O.useRef(null),S=O.useRef(null),E=O.useRef(null),C=O.useRef(null),L=O.useRef(null),{params:y,passedParams:M,rest:k,events:v}=ci(o),{slides:T,slots:P}=pi(n),z=()=>{w(!p)};Object.assign(y.on,{_containerClasses(_,B){h(B)}});const W=()=>{Object.assign(y.on,v),a=!0;const _={...y};if(delete _.wrapperClass,d.current=new U(_),d.current.virtual&&d.current.params.virtual.enabled){d.current.virtual.slides=T;const B={cache:!1,slides:T,renderExternal:m,renderExternalUpdate:!1};j(d.current.params.virtual,B),j(d.current.originalParams.virtual,B)}};x.current||W(),d.current&&d.current.on("_beforeBreakpoint",z);const K=()=>{a||!v||!d.current||Object.keys(v).forEach(_=>{d.current.on(_,v[_])})},se=()=>{!v||!d.current||Object.keys(v).forEach(_=>{d.current.off(_,v[_])})};O.useEffect(()=>()=>{d.current&&d.current.off("_beforeBreakpoint",z)}),O.useEffect(()=>{!b.current&&d.current&&(d.current.emitSlidesClasses(),b.current=!0)}),Y(()=>{if(t&&(t.current=x.current),!!x.current)return d.current.destroyed&&W(),fi({el:x.current,nextEl:S.current,prevEl:E.current,paginationEl:C.current,scrollbarEl:L.current,swiper:d.current},y),l&&l(d.current),()=>{d.current&&!d.current.destroyed&&d.current.destroy(!0,!1)}},[]),Y(()=>{K();const _=ui(M,u.current,T,g.current,B=>B.key);return u.current=M,g.current=T,_.length&&d.current&&!d.current.destroyed&&hi({swiper:d.current,slides:T,passedParams:M,changedParams:_,nextEl:S.current,prevEl:E.current,scrollbarEl:L.current,paginationEl:C.current}),()=>{se()}}),Y(()=>{gi(d.current)},[f]);function ne(){return y.virtual?mi(d.current,T,f):T.map((_,B)=>I.cloneElement(_,{swiper:d.current,swiperSlideIndex:B}))}return I.createElement(i,pe({ref:x,className:$e(`${c}${s?` ${s}`:""}`)},k),I.createElement(vi.Provider,{value:d.current},P["container-start"],I.createElement(r,{className:di(y.wrapperClass)},P["wrapper-start"],ne(),P["wrapper-end"]),Ie(y)&&I.createElement(I.Fragment,null,I.createElement("div",{ref:E,className:"swiper-button-prev"}),I.createElement("div",{ref:S,className:"swiper-button-next"})),_e(y)&&I.createElement("div",{ref:L,className:"swiper-scrollbar"}),Ae(y)&&I.createElement("div",{ref:C,className:"swiper-pagination"}),P["container-end"]))});De.displayName="Swiper";function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},he.apply(this,arguments)}const ie=O.forwardRef(function(e,t){let{tag:s="div",children:i,className:r="",swiper:n,zoom:l,lazy:o,virtualIndex:a,swiperSlideIndex:c,...h}=e===void 0?{}:e;const f=O.useRef(null),[m,p]=O.useState("swiper-slide"),[w,b]=O.useState(!1);function x(S,E,C){E===f.current&&p(C)}Y(()=>{if(typeof c<"u"&&(f.current.swiperSlideIndex=c),t&&(t.current=f.current),!(!f.current||!n)){if(n.destroyed){m!=="swiper-slide"&&p("swiper-slide");return}return n.on("_slideClass",x),()=>{n&&n.off("_slideClass",x)}}}),Y(()=>{n&&f.current&&!n.destroyed&&p(n.getSlideClasses(f.current))},[n]);const d={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},u=()=>typeof i=="function"?i(d):i,g=()=>{b(!0)};return I.createElement(s,he({ref:f,className:$e(`${m}${r?` ${r}`:""}`),"data-swiper-slide-index":a,onLoad:g},h),l&&I.createElement(ye.Provider,{value:d},I.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},u(),o&&!w&&I.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&I.createElement(ye.Provider,{value:d},u(),o&&!w&&I.createElement("div",{className:"swiper-lazy-preloader"})))});ie.displayName="SwiperSlide";function bi({isOpen:e,setIsOpen:t,handleSavePreference:s}){const{i18n:i,theme:r}=je(),[n,l]=O.useState(),[o,a]=O.useState(0);return e?Fe.createPortal(A.jsxs(Z,{id:"TrashModal",onModalClose:()=>t(!1),size:"md",isOpen:e,focusId:"nextButtonId",children:[A.jsx(Z.Header,{onModalClose:()=>t(!1),children:i("explorer.modal.onboarding.trash.title")}),A.jsx(Z.Body,{children:A.jsxs(De,{modules:[oi],onSwiper:c=>{l(c)},onSlideChange:c=>{a(c.progress)},pagination:{clickable:!0},children:[A.jsxs(ie,{children:[A.jsx(re,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/onboarding/corbeille-menu.svg`,alt:i("explorer.modal.onboarding.trash.screen1.alt")}),A.jsx("p",{children:i("explorer.modal.onboarding.trash.screen1.title")})]}),A.jsxs(ie,{children:[A.jsx(re,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/onboarding/corbeille-notif.svg`,alt:i("explorer.modal.onboarding.trash.screen2.alt")}),A.jsx("p",{children:i("explorer.modal.onboarding.trash.screen2.title")})]}),A.jsxs(ie,{children:[A.jsx(re,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/onboarding/corbeille-delete.svg`,alt:i("explorer.modal.onboarding.trash.screen3.alt")}),A.jsx("p",{children:i("explorer.modal.onboarding.trash.screen3.title")})]})]})}),A.jsxs(Z.Footer,{children:[A.jsx(J,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>t(!1),children:i("explorer.modal.onboarding.trash.later")}),o>0&&A.jsx(J,{type:"button",color:"primary",variant:"outline",onClick:()=>n.slidePrev(),children:i("explorer.modal.onboarding.trash.prev")}),o<1&&A.jsx(J,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>n.slideNext(),children:i("explorer.modal.onboarding.trash.next")}),o===1&&A.jsx(J,{type:"button",color:"primary",variant:"filled",onClick:s,children:i("explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null}export{bi as default};
|
|
1
|
+
import{R as z,r as O,u as Fe,a as He,j as _,M as U,I as re,B as K}from"./index.js";function Se(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ge(e={},t={}){Object.keys(t).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:Se(t[i])&&Se(e[i])&&Object.keys(t[i]).length>0&&ge(e[i],t[i])})}const Ee={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function R(){const e=typeof document<"u"?document:{};return ge(e,Ee),e}const Re={document:Ee,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function D(){const e=typeof window<"u"?window:{};return ge(e,Re),e}function We(e){const t=e;Object.keys(t).forEach(i=>{try{t[i]=null}catch{}try{delete t[i]}catch{}})}function fe(e,t=0){return setTimeout(e,t)}function te(){return Date.now()}function Xe(e){const t=D();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}function Ye(e,t="x"){const i=D();let s,r,n;const l=Xe(e);return i.WebKitCSSMatrix?(r=l.transform||l.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(r==="none"?"":r)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),t==="x"&&(i.WebKitCSSMatrix?r=n.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),t==="y"&&(i.WebKitCSSMatrix?r=n.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function Z(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function qe(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function B(...e){const t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let s=1;s<e.length;s+=1){const r=e[s];if(r!=null&&!qe(r)){const n=Object.keys(Object(r)).filter(l=>i.indexOf(l)<0);for(let l=0,o=n.length;l<o;l+=1){const a=n[l],c=Object.getOwnPropertyDescriptor(r,a);c!==void 0&&c.enumerable&&(Z(t[a])&&Z(r[a])?r[a].__swiper__?t[a]=r[a]:B(t[a],r[a]):!Z(t[a])&&Z(r[a])?(t[a]={},r[a].__swiper__?t[a]=r[a]:B(t[a],r[a])):t[a]=r[a])}}}return t}function J(e,t,i){e.style.setProperty(t,i)}function Me({swiper:e,targetPosition:t,side:i}){const s=D(),r=-e.translate;let n=null,l;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const a=t>r?"next":"prev",c=(f,h)=>a==="next"&&f>=h||a==="prev"&&f<=h,m=()=>{l=new Date().getTime(),n===null&&(n=l);const f=Math.max(Math.min((l-n)/o,1),0),h=.5-Math.cos(f*Math.PI)/2;let p=r+h*(t-r);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[i]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:p})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(m)};m()}function N(e,t=""){return[...e.children].filter(i=>i.matches(t))}function Pe(e,t=[]){const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:[t]),i}function Ue(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}function Ke(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}function j(e,t){return D().getComputedStyle(e,null).getPropertyValue(t)}function ie(e){let t=e,i;if(t){for(i=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(i+=1);return i}}function Le(e,t){const i=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function ue(e,t,i){const s=D();return i?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let ae;function Ze(){const e=D(),t=R();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ie(){return ae||(ae=Ze()),ae}let le;function Je({userAgent:e}={}){const t=Ie(),i=D(),s=i.navigator.platform,r=e||i.navigator.userAgent,n={ios:!1,android:!1},l=i.screen.width,o=i.screen.height,a=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad).*OS\s([\d_]+)/);const m=r.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let p=s==="MacIntel";const x=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&x.indexOf(`${l}x${o}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),a&&!h&&(n.os="android",n.android=!0),(c||f||m)&&(n.os="ios",n.ios=!0),n}function Qe(e={}){return le||(le=Je(e)),le}let oe;function et(){const e=D();let t=!1;function i(){const s=e.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(i()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[r,n]=s.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));t=r<16||r===16&&n<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function tt(){return oe||(oe=et()),oe}function it({swiper:e,on:t,emit:i}){const s=D();let r=null,n=null;const l=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(m=>{n=s.requestAnimationFrame(()=>{const{width:f,height:h}=e;let p=f,x=h;m.forEach(({contentBoxSize:b,contentRect:E,target:d})=>{d&&d!==e.el||(p=E?E.width:(b[0]||b).inlineSize,x=E?E.height:(b[0]||b).blockSize)}),(p!==f||x!==h)&&l()})}),r.observe(e.el))},a=()=>{n&&s.cancelAnimationFrame(n),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},c=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){o();return}s.addEventListener("resize",l),s.addEventListener("orientationchange",c)}),t("destroy",()=>{a(),s.removeEventListener("resize",l),s.removeEventListener("orientationchange",c)})}function st({swiper:e,extendParams:t,on:i,emit:s}){const r=[],n=D(),l=(c,m={})=>{const f=n.MutationObserver||n.WebkitMutationObserver,h=new f(p=>{if(e.__preventObserver__)return;if(p.length===1){s("observerUpdate",p[0]);return}const x=function(){s("observerUpdate",p[0])};n.requestAnimationFrame?n.requestAnimationFrame(x):n.setTimeout(x,0)});h.observe(c,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),r.push(h)},o=()=>{if(e.params.observer){if(e.params.observeParents){const c=Le(e.el);for(let m=0;m<c.length;m+=1)l(c[m])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},a=()=>{r.forEach(c=>{c.disconnect()}),r.splice(0,r.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",o),i("destroy",a)}const nt={on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;const r=i?"unshift":"push";return e.split(" ").forEach(n=>{s.eventsListeners[n]||(s.eventsListeners[n]=[]),s.eventsListeners[n][r](t)}),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;function r(...n){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(s,n)}return r.__emitterProxy=t,s.on(e,r,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||e.split(" ").forEach(s=>{typeof t>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((r,n)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&i.eventsListeners[s].splice(n,1)})}),i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let i,s,r;return typeof e[0]=="string"||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),r=t):(i=e[0].events,s=e[0].data,r=e[0].context||t),s.unshift(r),(Array.isArray(i)?i:i.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(o=>{o.apply(r,[l,...s])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(o=>{o.apply(r,s)})}),t}};function rt(){const e=this;let t,i;const s=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=s.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?i=e.params.height:i=s.clientHeight,!(t===0&&e.isHorizontal()||i===0&&e.isVertical())&&(t=t-parseInt(j(s,"padding-left")||0,10)-parseInt(j(s,"padding-right")||0,10),i=i-parseInt(j(s,"padding-top")||0,10)-parseInt(j(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))}function at(){const e=this;function t(y){return e.isHorizontal()?y:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[y]}function i(y,w){return parseFloat(y.getPropertyValue(t(w))||0)}const s=e.params,{wrapperEl:r,slidesEl:n,size:l,rtlTranslate:o,wrongRTL:a}=e,c=e.virtual&&s.virtual.enabled,m=c?e.virtual.slides.length:e.slides.length,f=N(n,`.${e.params.slideClass}, swiper-slide`),h=c?e.virtual.slides.length:f.length;let p=[];const x=[],b=[];let E=s.slidesOffsetBefore;typeof E=="function"&&(E=s.slidesOffsetBefore.call(e));let d=s.slidesOffsetAfter;typeof d=="function"&&(d=s.slidesOffsetAfter.call(e));const u=e.snapGrid.length,g=e.slidesGrid.length;let v=s.spaceBetween,T=-E,C=0,I=0;if(typeof l>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*l:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,f.forEach(y=>{o?y.style.marginLeft="":y.style.marginRight="",y.style.marginBottom="",y.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(J(r,"--swiper-centered-offset-before",""),J(r,"--swiper-centered-offset-after",""));const S=s.grid&&s.grid.rows>1&&e.grid;S&&e.grid.initSlides(h);let P;const A=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(y=>typeof s.breakpoints[y].slidesPerView<"u").length>0;for(let y=0;y<h;y+=1){P=0;let w;if(f[y]&&(w=f[y]),S&&e.grid.updateSlide(y,w,h,t),!(f[y]&&j(w,"display")==="none")){if(s.slidesPerView==="auto"){A&&(f[y].style[t("width")]="");const M=getComputedStyle(w),L=w.style.transform,G=w.style.webkitTransform;if(L&&(w.style.transform="none"),G&&(w.style.webkitTransform="none"),s.roundLengths)P=e.isHorizontal()?ue(w,"width",!0):ue(w,"height",!0);else{const q=i(M,"width"),se=i(M,"padding-left"),ne=i(M,"padding-right"),$=i(M,"margin-left"),k=i(M,"margin-right"),ve=M.getPropertyValue("box-sizing");if(ve&&ve==="border-box")P=q+$+k;else{const{clientWidth:Ve,offsetWidth:je}=w;P=q+se+ne+$+k+(je-Ve)}}L&&(w.style.transform=L),G&&(w.style.webkitTransform=G),s.roundLengths&&(P=Math.floor(P))}else P=(l-(s.slidesPerView-1)*v)/s.slidesPerView,s.roundLengths&&(P=Math.floor(P)),f[y]&&(f[y].style[t("width")]=`${P}px`);f[y]&&(f[y].swiperSlideSize=P),b.push(P),s.centeredSlides?(T=T+P/2+C/2+v,C===0&&y!==0&&(T=T-l/2-v),y===0&&(T=T-l/2-v),Math.abs(T)<1/1e3&&(T=0),s.roundLengths&&(T=Math.floor(T)),I%s.slidesPerGroup===0&&p.push(T),x.push(T)):(s.roundLengths&&(T=Math.floor(T)),(I-Math.min(e.params.slidesPerGroupSkip,I))%e.params.slidesPerGroup===0&&p.push(T),x.push(T),T=T+P+v),e.virtualSize+=P+v,C=P,I+=1}}if(e.virtualSize=Math.max(e.virtualSize,l)+d,o&&a&&(s.effect==="slide"||s.effect==="coverflow")&&(r.style.width=`${e.virtualSize+v}px`),s.setWrapperSize&&(r.style[t("width")]=`${e.virtualSize+v}px`),S&&e.grid.updateWrapperSize(P,p,t),!s.centeredSlides){const y=[];for(let w=0;w<p.length;w+=1){let M=p[w];s.roundLengths&&(M=Math.floor(M)),p[w]<=e.virtualSize-l&&y.push(M)}p=y,Math.floor(e.virtualSize-l)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-l)}if(c&&s.loop){const y=b[0]+v;if(s.slidesPerGroup>1){const w=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),M=y*s.slidesPerGroup;for(let L=0;L<w;L+=1)p.push(p[p.length-1]+M)}for(let w=0;w<e.virtual.slidesBefore+e.virtual.slidesAfter;w+=1)s.slidesPerGroup===1&&p.push(p[p.length-1]+y),x.push(x[x.length-1]+y),e.virtualSize+=y}if(p.length===0&&(p=[0]),v!==0){const y=e.isHorizontal()&&o?"marginLeft":t("marginRight");f.filter((w,M)=>!s.cssMode||s.loop?!0:M!==f.length-1).forEach(w=>{w.style[y]=`${v}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let y=0;b.forEach(M=>{y+=M+(v||0)}),y-=v;const w=y-l;p=p.map(M=>M<0?-E:M>w?w+d:M)}if(s.centerInsufficientSlides){let y=0;if(b.forEach(w=>{y+=w+(v||0)}),y-=v,y<l){const w=(l-y)/2;p.forEach((M,L)=>{p[L]=M-w}),x.forEach((M,L)=>{x[L]=M+w})}}if(Object.assign(e,{slides:f,snapGrid:p,slidesGrid:x,slidesSizesGrid:b}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){J(r,"--swiper-centered-offset-before",`${-p[0]}px`),J(r,"--swiper-centered-offset-after",`${e.size/2-b[b.length-1]/2}px`);const y=-e.snapGrid[0],w=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+y),e.slidesGrid=e.slidesGrid.map(M=>M+w)}if(h!==m&&e.emit("slidesLengthChange"),p.length!==u&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),x.length!==g&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const y=`${s.containerModifierClass}backface-hidden`,w=e.el.classList.contains(y);h<=s.maxBackfaceHiddenSlides?w||e.el.classList.add(y):w&&e.el.classList.remove(y)}}function lt(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let r=0,n;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=o=>s?t.slides[t.getSlideIndexByData(o)]:t.slides[o];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(o=>{i.push(o)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const o=t.activeIndex+n;if(o>t.slides.length&&!s)break;i.push(l(o))}else i.push(l(t.activeIndex));for(n=0;n<i.length;n+=1)if(typeof i[n]<"u"){const o=i[n].offsetHeight;r=o>r?o:r}(r||r===0)&&(t.wrapperEl.style.height=`${r}px`)}function ot(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=(e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop)-i-e.cssOverflowAdjustment()}function dt(e=this&&this.translate||0){const t=this,i=t.params,{slides:s,rtlTranslate:r,snapGrid:n}=t;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;r&&(l=e),s.forEach(a=>{a.classList.remove(i.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=i.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:typeof o=="string"&&(o=parseFloat(o));for(let a=0;a<s.length;a+=1){const c=s[a];let m=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(m-=s[0].swiperSlideOffset);const f=(l+(i.centeredSlides?t.minTranslate():0)-m)/(c.swiperSlideSize+o),h=(l-n[0]+(i.centeredSlides?t.minTranslate():0)-m)/(c.swiperSlideSize+o),p=-(l-m),x=p+t.slidesSizesGrid[a];(p>=0&&p<t.size-1||x>1&&x<=t.size||p<=0&&x>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(a),s[a].classList.add(i.slideVisibleClass)),c.progress=r?-f:f,c.originalProgress=r?-h:h}}function ct(e){const t=this;if(typeof e>"u"){const m=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*m||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:n,isEnd:l,progressLoop:o}=t;const a=n,c=l;if(s===0)r=0,n=!0,l=!0;else{r=(e-t.minTranslate())/s;const m=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;n=m||r<=0,l=f||r>=1,m&&(r=0),f&&(r=1)}if(i.loop){const m=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),h=t.slidesGrid[m],p=t.slidesGrid[f],x=t.slidesGrid[t.slidesGrid.length-1],b=Math.abs(e);b>=h?o=(b-h)/x:o=(b+x-p)/x,o>1&&(o-=1)}Object.assign(t,{progress:r,progressLoop:o,isBeginning:n,isEnd:l}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),n&&!a&&t.emit("reachBeginning toEdge"),l&&!c&&t.emit("reachEnd toEdge"),(a&&!n||c&&!l)&&t.emit("fromEdge"),t.emit("progress",r)}function ft(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:r}=e,n=e.virtual&&i.virtual.enabled,l=a=>N(s,`.${i.slideClass}${a}, swiper-slide${a}`)[0];t.forEach(a=>{a.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let o;if(n)if(i.loop){let a=r-e.virtual.slidesBefore;a<0&&(a=e.virtual.slides.length+a),a>=e.virtual.slides.length&&(a-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${a}"]`)}else o=l(`[data-swiper-slide-index="${r}"]`);else o=t[r];if(o){o.classList.add(i.slideActiveClass);let a=Ke(o,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!a&&(a=t[0]),a&&a.classList.add(i.slideNextClass);let c=Ue(o,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(i.slidePrevClass)}e.emitSlidesClasses()}const Q=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,s=t.closest(i());if(s){const r=s.querySelector(`.${e.params.lazyPreloaderClass}`);r&&r.remove()}},be=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},pe=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const s=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex,n=r+s-1;if(e.params.rewind)for(let l=r-t;l<=n+t;l+=1){const o=(l%i+i)%i;o!==r&&o>n&&be(e,o)}else for(let l=Math.max(n-t,0);l<=Math.min(n+t,i-1);l+=1)l!==r&&l>n&&be(e,l)};function ut(e){const{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let r;for(let n=0;n<t.length;n+=1)typeof t[n+1]<"u"?s>=t[n]&&s<t[n+1]-(t[n+1]-t[n])/2?r=n:s>=t[n]&&s<t[n+1]&&(r=n+1):s>=t[n]&&(r=n);return i.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function pt(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:r,activeIndex:n,realIndex:l,snapIndex:o}=t;let a=e,c;const m=h=>{let p=h-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof a>"u"&&(a=ut(t)),s.indexOf(i)>=0)c=s.indexOf(i);else{const h=Math.min(r.slidesPerGroupSkip,a);c=h+Math.floor((a-h)/r.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),a===n){c!==o&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=m(a));return}let f;t.virtual&&r.virtual.enabled&&r.loop?f=m(a):t.slides[a]?f=parseInt(t.slides[a].getAttribute("data-swiper-slide-index")||a,10):f=a,Object.assign(t,{previousSnapIndex:o,snapIndex:c,previousRealIndex:l,realIndex:f,previousIndex:n,activeIndex:a}),t.initialized&&pe(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function mt(e){const t=this,i=t.params,s=e.closest(`.${i.slideClass}, swiper-slide`);let r=!1,n;if(s){for(let l=0;l<t.slides.length;l+=1)if(t.slides[l]===s){r=!0,n=l;break}}if(s&&r)t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=n;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}i.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const ht={updateSize:rt,updateSlides:at,updateAutoHeight:lt,updateSlidesOffset:ot,updateSlidesProgress:dt,updateProgress:ct,updateSlidesClasses:ft,updateActiveIndex:pt,updateClickedSlide:mt};function gt(e=this.isHorizontal()?"x":"y"){const t=this,{params:i,rtlTranslate:s,translate:r,wrapperEl:n}=t;if(i.virtualTranslate)return s?-r:r;if(i.cssMode)return r;let l=Ye(n,e);return l+=t.cssOverflowAdjustment(),s&&(l=-l),l||0}function vt(e,t){const i=this,{rtlTranslate:s,params:r,wrapperEl:n,progress:l}=i;let o=0,a=0;const c=0;i.isHorizontal()?o=s?-e:e:a=e,r.roundLengths&&(o=Math.floor(o),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:a,r.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-o:-a:r.virtualTranslate||(i.isHorizontal()?o-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),n.style.transform=`translate3d(${o}px, ${a}px, ${c}px)`);let m;const f=i.maxTranslate()-i.minTranslate();f===0?m=0:m=(e-i.minTranslate())/f,m!==l&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function St(){return-this.snapGrid[0]}function bt(){return-this.snapGrid[this.snapGrid.length-1]}function xt(e=0,t=this.params.speed,i=!0,s=!0,r){const n=this,{params:l,wrapperEl:o}=n;if(n.animating&&l.preventInteractionOnTransition)return!1;const a=n.minTranslate(),c=n.maxTranslate();let m;if(s&&e>a?m=a:s&&e<c?m=c:m=e,n.updateProgress(m),l.cssMode){const f=n.isHorizontal();if(t===0)o[f?"scrollLeft":"scrollTop"]=-m;else{if(!n.support.smoothScroll)return Me({swiper:n,targetPosition:-m,side:f?"left":"top"}),!0;o.scrollTo({[f?"left":"top"]:-m,behavior:"smooth"})}return!0}return t===0?(n.setTransition(0),n.setTranslate(m),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(m),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(h){!n||n.destroyed||h.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}const wt={getTranslate:gt,setTranslate:vt,minTranslate:St,maxTranslate:bt,translateTo:xt};function Tt(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`),i.emit("setTransition",e,t)}function Oe({swiper:e,runCallbacks:t,direction:i,step:s}){const{activeIndex:r,previousIndex:n}=e;let l=i;if(l||(r>n?l="next":r<n?l="prev":l="reset"),e.emit(`transition${s}`),t&&r!==n){if(l==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),l==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function yt(e=!0,t){const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),Oe({swiper:i,runCallbacks:e,direction:t,step:"Start"}))}function Ct(e=!0,t){const i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),Oe({swiper:i,runCallbacks:e,direction:t,step:"End"}))}const Et={setTransition:Tt,transitionStart:yt,transitionEnd:Ct};function Mt(e=0,t=this.params.speed,i=!0,s,r){typeof e=="string"&&(e=parseInt(e,10));const n=this;let l=e;l<0&&(l=0);const{params:o,snapGrid:a,slidesGrid:c,previousIndex:m,activeIndex:f,rtlTranslate:h,wrapperEl:p,enabled:x}=n;if(n.animating&&o.preventInteractionOnTransition||!x&&!s&&!r)return!1;const b=Math.min(n.params.slidesPerGroupSkip,l);let E=b+Math.floor((l-b)/n.params.slidesPerGroup);E>=a.length&&(E=a.length-1);const d=-a[E];if(o.normalizeSlideIndex)for(let g=0;g<c.length;g+=1){const v=-Math.floor(d*100),T=Math.floor(c[g]*100),C=Math.floor(c[g+1]*100);typeof c[g+1]<"u"?v>=T&&v<C-(C-T)/2?l=g:v>=T&&v<C&&(l=g+1):v>=T&&(l=g)}if(n.initialized&&l!==f&&(!n.allowSlideNext&&d<n.translate&&d<n.minTranslate()||!n.allowSlidePrev&&d>n.translate&&d>n.maxTranslate()&&(f||0)!==l))return!1;l!==(m||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(d);let u;if(l>f?u="next":l<f?u="prev":u="reset",h&&-d===n.translate||!h&&d===n.translate)return n.updateActiveIndex(l),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),o.effect!=="slide"&&n.setTranslate(d),u!=="reset"&&(n.transitionStart(i,u),n.transitionEnd(i,u)),!1;if(o.cssMode){const g=n.isHorizontal(),v=h?d:-d;if(t===0){const T=n.virtual&&n.params.virtual.enabled;T&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),T&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[g?"scrollLeft":"scrollTop"]=v})):p[g?"scrollLeft":"scrollTop"]=v,T&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return Me({swiper:n,targetPosition:v,side:g?"left":"top"}),!0;p.scrollTo({[g?"left":"top"]:v,behavior:"smooth"})}return!0}return n.setTransition(t),n.setTranslate(d),n.updateActiveIndex(l),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,u),t===0?n.transitionEnd(i,u):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(v){!n||n.destroyed||v.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,u))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function Pt(e=0,t=this.params.speed,i=!0,s){typeof e=="string"&&(e=parseInt(e,10));const r=this;let n=e;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?n=n+r.virtual.slidesBefore:n=r.getSlideIndexByData(n)),r.slideTo(n,t,i,s)}function Lt(e=this.params.speed,t=!0,i){const s=this,{enabled:r,params:n,animating:l}=s;if(!r)return s;let o=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndex<n.slidesPerGroupSkip?1:o,c=s.virtual&&n.virtual.enabled;if(n.loop){if(l&&!c&&n.loopPreventsSliding)return!1;s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft}return n.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+a,e,t,i)}function It(e=this.params.speed,t=!0,i){const s=this,{params:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:a,animating:c}=s;if(!a)return s;const m=s.virtual&&r.virtual.enabled;if(r.loop){if(c&&!m&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=o?s.translate:-s.translate;function h(d){return d<0?-Math.floor(Math.abs(d)):Math.floor(d)}const p=h(f),x=n.map(d=>h(d));let b=n[x.indexOf(p)-1];if(typeof b>"u"&&r.cssMode){let d;n.forEach((u,g)=>{p>=u&&(d=g)}),typeof d<"u"&&(b=n[d>0?d-1:d])}let E=0;if(typeof b<"u"&&(E=l.indexOf(b),E<0&&(E=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(E=E-s.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),r.rewind&&s.isBeginning){const d=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(d,e,t,i)}return s.slideTo(E,e,t,i)}function Ot(e=this.params.speed,t=!0,i){const s=this;return s.slideTo(s.activeIndex,e,t,i)}function zt(e=this.params.speed,t=!0,i,s=.5){const r=this;let n=r.activeIndex;const l=Math.min(r.params.slidesPerGroupSkip,n),o=l+Math.floor((n-l)/r.params.slidesPerGroup),a=r.rtlTranslate?r.translate:-r.translate;if(a>=r.snapGrid[o]){const c=r.snapGrid[o],m=r.snapGrid[o+1];a-c>(m-c)*s&&(n+=r.params.slidesPerGroup)}else{const c=r.snapGrid[o-1],m=r.snapGrid[o];a-c<=(m-c)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,i)}function At(){const e=this,{params:t,slidesEl:i}=e,s=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.clickedIndex,n;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-s/2||r>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),r=e.getSlideIndex(N(i,`${l}[data-swiper-slide-index="${n}"]`)[0]),fe(()=>{e.slideTo(r)})):e.slideTo(r):r>e.slides.length-s?(e.loopFix(),r=e.getSlideIndex(N(i,`${l}[data-swiper-slide-index="${n}"]`)[0]),fe(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}const _t={slideTo:Mt,slideToLoop:Pt,slideNext:Lt,slidePrev:It,slideReset:Ot,slideToClosest:zt,slideToClickedSlide:At};function $t(e){const t=this,{params:i,slidesEl:s}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;N(s,`.${i.slideClass}, swiper-slide`).forEach((n,l)=>{n.setAttribute("data-swiper-slide-index",l)}),t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})}function Gt({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:s,activeSlideIndex:r,byController:n,byMousewheel:l}={}){const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:a,allowSlidePrev:c,allowSlideNext:m,slidesEl:f,params:h}=o;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&h.virtual.enabled){t&&(!h.centeredSlides&&o.snapIndex===0?o.slideTo(o.virtual.slides.length,0,!1,!0):h.centeredSlides&&o.snapIndex<h.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=m,o.emit("loopFix");return}const p=h.slidesPerView==="auto"?o.slidesPerViewDynamic():Math.ceil(parseFloat(h.slidesPerView,10));let x=h.loopedSlides||p;x%h.slidesPerGroup!==0&&(x+=h.slidesPerGroup-x%h.slidesPerGroup),o.loopedSlides=x;const b=[],E=[];let d=o.activeIndex;typeof r>"u"?r=o.getSlideIndex(o.slides.filter(C=>C.classList.contains(h.slideActiveClass))[0]):d=r;const u=i==="next"||!i,g=i==="prev"||!i;let v=0,T=0;if(r<x){v=Math.max(x-r,h.slidesPerGroup);for(let C=0;C<x-r;C+=1){const I=C-Math.floor(C/a.length)*a.length;b.push(a.length-I-1)}}else if(r>o.slides.length-x*2){T=Math.max(r-(o.slides.length-x*2),h.slidesPerGroup);for(let C=0;C<T;C+=1){const I=C-Math.floor(C/a.length)*a.length;E.push(I)}}if(g&&b.forEach(C=>{o.slides[C].swiperLoopMoveDOM=!0,f.prepend(o.slides[C]),o.slides[C].swiperLoopMoveDOM=!1}),u&&E.forEach(C=>{o.slides[C].swiperLoopMoveDOM=!0,f.append(o.slides[C]),o.slides[C].swiperLoopMoveDOM=!1}),o.recalcSlides(),h.slidesPerView==="auto"&&o.updateSlides(),h.watchSlidesProgress&&o.updateSlidesOffset(),t){if(b.length>0&&g)if(typeof e>"u"){const C=o.slidesGrid[d],S=o.slidesGrid[d+v]-C;l?o.setTranslate(o.translate-S):(o.slideTo(d+v,0,!1,!0),s&&(o.touches[o.isHorizontal()?"startX":"startY"]+=S))}else s&&o.slideToLoop(e,0,!1,!0);else if(E.length>0&&u)if(typeof e>"u"){const C=o.slidesGrid[d],S=o.slidesGrid[d-T]-C;l?o.setTranslate(o.translate-S):(o.slideTo(d-T,0,!1,!0),s&&(o.touches[o.isHorizontal()?"startX":"startY"]+=S))}else o.slideToLoop(e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=m,o.controller&&o.controller.control&&!n){const C={slideRealIndex:e,slideTo:!1,direction:i,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach(I=>{!I.destroyed&&I.params.loop&&I.loopFix(C)}):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix(C)}o.emit("loopFix")}function Bt(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[n]=r}),e.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{i.append(r)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const Dt={loopCreate:$t,loopFix:Gt,loopDestroy:Bt};function kt(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Nt(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const Vt={setGrabCursor:kt,unsetGrabCursor:Nt};function jt(e,t=this){function i(s){if(!s||s===R()||s===D())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(e);return!r&&!s.getRootNode?null:r||i(s.getRootNode().host)}return i(t)}function Ft(e){const t=this,i=R(),s=D(),r=t.touchEventsData;r.evCache.push(e);const{params:n,touches:l,enabled:o}=t;if(!o||!n.simulateTouch&&e.pointerType==="mouse"||t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let a=e;a.originalEvent&&(a=a.originalEvent);let c=a.target;if(n.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in a&&a.which===3||"button"in a&&a.button>0||r.isTouched&&r.isMoved)return;const m=!!n.noSwipingClass&&n.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;m&&a.target&&a.target.shadowRoot&&f&&(c=f[0]);const h=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,p=!!(a.target&&a.target.shadowRoot);if(n.noSwiping&&(p?jt(h,c):c.closest(h))){t.allowClick=!0;return}if(n.swipeHandler&&!c.closest(n.swipeHandler))return;l.currentX=a.pageX,l.currentY=a.pageY;const x=l.currentX,b=l.currentY,E=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,d=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(E&&(x<=d||x>=s.innerWidth-d))if(E==="prevent")e.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=x,l.startY=b,r.touchStartTime=te(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let u=!0;c.matches(r.focusableElements)&&(u=!1,c.nodeName==="SELECT"&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==c&&i.activeElement.blur();const g=u&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||g)&&!c.isContentEditable&&a.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}function Ht(e){const t=R(),i=this,s=i.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:o}=i;if(!o||!r.simulateTouch&&e.pointerType==="mouse")return;let a=e;if(a.originalEvent&&(a=a.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",a);return}const c=s.evCache.findIndex(C=>C.pointerId===a.pointerId);c>=0&&(s.evCache[c]=a);const m=s.evCache.length>1?s.evCache[0]:a,f=m.pageX,h=m.pageY;if(a.preventedByNestedSwiper){n.startX=f,n.startY=h;return}if(!i.allowTouchMove){a.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:f,startY:h,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:f,currentY:h}),s.touchStartTime=te());return}if(r.touchReleaseOnEdges&&!r.loop){if(i.isVertical()){if(h<n.startY&&i.translate<=i.maxTranslate()||h>n.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(f<n.startX&&i.translate<=i.maxTranslate()||f>n.startX&&i.translate>=i.minTranslate())return}if(t.activeElement&&a.target===t.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}if(s.allowTouchCallbacks&&i.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;n.currentX=f,n.currentY=h;const p=n.currentX-n.startX,x=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(p**2+x**2)<i.params.threshold)return;if(typeof s.isScrolling>"u"){let C;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:p*p+x*x>=25&&(C=Math.atan2(Math.abs(x),Math.abs(p))*180/Math.PI,s.isScrolling=i.isHorizontal()?C>r.touchAngle:90-C>r.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation();let b=i.isHorizontal()?p:x,E=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(b=Math.abs(b)*(l?1:-1),E=Math.abs(E)*(l?1:-1)),n.diff=b,b*=r.touchRatio,l&&(b=-b,E=-E);const d=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=E>0?"prev":"next";const u=i.params.loop&&!r.cssMode;if(!s.isMoved){if(u&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const C=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(C)}s.allowMomentumBounce=!1,r.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let g;s.isMoved&&d!==i.touchesDirection&&u&&Math.abs(b)>=1&&(i.loopFix({direction:i.swipeDirection,setTranslate:!0}),g=!0),i.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=b+s.startTranslate;let v=!0,T=r.resistanceRatio;if(r.touchReleaseOnEdges&&(T=0),b>0?(u&&!g&&s.currentTranslate>(r.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(v=!1,r.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+b)**T))):b<0&&(u&&!g&&s.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(r.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(v=!1,r.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-b)**T))),v&&(a.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(b)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Rt(e){const t=this,i=t.touchEventsData,s=i.evCache.findIndex(g=>g.pointerId===e.pointerId);if(s>=0&&i.evCache.splice(s,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:r,touches:n,rtlTranslate:l,slidesGrid:o,enabled:a}=t;if(!a||!r.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const m=te(),f=m-i.touchStartTime;if(t.allowClick){const g=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(g&&g[0]||c.target),t.emit("tap click",c),f<300&&m-i.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(i.lastClickTime=te(),fe(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||n.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let h;if(r.followFinger?h=l?t.translate:-t.translate:h=-i.currentTranslate,r.cssMode)return;if(t.params.freeMode&&r.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:h});return}let p=0,x=t.slidesSizesGrid[0];for(let g=0;g<o.length;g+=g<r.slidesPerGroupSkip?1:r.slidesPerGroup){const v=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof o[g+v]<"u"?h>=o[g]&&h<o[g+v]&&(p=g,x=o[g+v]-o[g]):h>=o[g]&&(p=g,x=o[o.length-1]-o[o.length-2])}let b=null,E=null;r.rewind&&(t.isBeginning?E=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const d=(h-o[p])/x,u=p<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(d>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?b:p+u):t.slideTo(p)),t.swipeDirection==="prev"&&(d>1-r.longSwipesRatio?t.slideTo(p+u):E!==null&&d<0&&Math.abs(d)>r.longSwipesRatio?t.slideTo(E):t.slideTo(p))}else{if(!r.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+u):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:p+u),t.swipeDirection==="prev"&&t.slideTo(E!==null?E:p))}}function xe(){const e=this,{params:t,el:i}=e;if(i&&i.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!o?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function Wt(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Xt(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let r;const n=e.maxTranslate()-e.minTranslate();n===0?r=0:r=(e.translate-e.minTranslate())/n,r!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Yt(e){const t=this;Q(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let we=!1;function qt(){}const ze=(e,t)=>{const i=R(),{params:s,el:r,wrapperEl:n,device:l}=e,o=!!s.nested,a=t==="on"?"addEventListener":"removeEventListener",c=t;r[a]("pointerdown",e.onTouchStart,{passive:!1}),i[a]("pointermove",e.onTouchMove,{passive:!1,capture:o}),i[a]("pointerup",e.onTouchEnd,{passive:!0}),i[a]("pointercancel",e.onTouchEnd,{passive:!0}),i[a]("pointerout",e.onTouchEnd,{passive:!0}),i[a]("pointerleave",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[a]("click",e.onClick,!0),s.cssMode&&n[a]("scroll",e.onScroll),s.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",xe,!0):e[c]("observerUpdate",xe,!0),r[a]("load",e.onLoad,{capture:!0})};function Ut(){const e=this,t=R(),{params:i}=e;e.onTouchStart=Ft.bind(e),e.onTouchMove=Ht.bind(e),e.onTouchEnd=Rt.bind(e),i.cssMode&&(e.onScroll=Xt.bind(e)),e.onClick=Wt.bind(e),e.onLoad=Yt.bind(e),we||(t.addEventListener("touchstart",qt),we=!0),ze(e,"on")}function Kt(){ze(this,"off")}const Zt={attachEvents:Ut,detachEvents:Kt},Te=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Jt(){const e=this,{realIndex:t,initialized:i,params:s,el:r}=e,n=s.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const l=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const a=(l in n?n[l]:void 0)||e.originalParams,c=Te(e,s),m=Te(e,a),f=s.enabled;c&&!m?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&m&&(r.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(b=>{const E=s[b]&&s[b].enabled,d=a[b]&&a[b].enabled;E&&!d&&e[b].disable(),!E&&d&&e[b].enable()});const h=a.direction&&a.direction!==s.direction,p=s.loop&&(a.slidesPerView!==s.slidesPerView||h);h&&i&&e.changeDirection(),B(e.params,a);const x=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!x?e.disable():!f&&x&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",a),p&&i&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",a)}function Qt(e,t="window",i){if(!e||t==="container"&&!i)return;let s=!1;const r=D(),n=t==="window"?r.innerHeight:i.clientHeight,l=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const a=parseFloat(o.substr(1));return{value:n*a,point:o}}return{value:o,point:o}});l.sort((o,a)=>parseInt(o.value,10)-parseInt(a.value,10));for(let o=0;o<l.length;o+=1){const{point:a,value:c}=l[o];t==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(s=a):c<=i.clientWidth&&(s=a)}return s||"max"}const ei={setBreakpoint:Jt,getBreakpoint:Qt};function ti(e,t){const i=[];return e.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(r=>{s[r]&&i.push(t+r)}):typeof s=="string"&&i.push(t+s)}),i}function ii(){const e=this,{classNames:t,params:i,rtl:s,el:r,device:n}=e,l=ti(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...l),r.classList.add(...t),e.emitContainerClasses()}function si(){const e=this,{el:t,classNames:i}=e;t.classList.remove(...i),e.emitContainerClasses()}const ni={addClasses:ii,removeClasses:si};function ri(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const r=e.slides.length-1,n=e.slidesGrid[r]+e.slidesSizesGrid[r]+s*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;i.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),i.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const ai={checkOverflow:ri},ye={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function li(e,t){return function(s={}){const r=Object.keys(s)[0],n=s[r];if(typeof n!="object"||n===null){B(t,s);return}if(["navigation","pagination","scrollbar"].indexOf(r)>=0&&e[r]===!0&&(e[r]={auto:!0}),!(r in e&&"enabled"in n)){B(t,s);return}e[r]===!0&&(e[r]={enabled:!0}),typeof e[r]=="object"&&!("enabled"in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),B(t,s)}}const de={eventsEmitter:nt,update:ht,translate:wt,transition:Et,slide:_t,loop:Dt,grabCursor:Vt,events:Zt,breakpoints:ei,checkOverflow:ai,classes:ni},ce={};let Y=class V{constructor(...t){let i,s;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?s=t[0]:[i,s]=t,s||(s={}),s=B({},s),i&&!s.el&&(s.el=i);const r=R();if(s.el&&typeof s.el=="string"&&r.querySelectorAll(s.el).length>1){const a=[];return r.querySelectorAll(s.el).forEach(c=>{const m=B({},s,{el:c});a.push(new V(m))}),a}const n=this;n.__swiper__=!0,n.support=Ie(),n.device=Qe({userAgent:s.userAgent}),n.browser=tt(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],s.modules&&Array.isArray(s.modules)&&n.modules.push(...s.modules);const l={};n.modules.forEach(a=>{a({params:s,swiper:n,extendParams:li(s,l),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const o=B({},ye,l);return n.params=B({},o,ce,s),n.originalParams=B({},n.params),n.passedParams=B({},s),n.params&&n.params.on&&Object.keys(n.params.on).forEach(a=>{n.on(a,n.params.on[a])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}getSlideIndex(t){const{slidesEl:i,params:s}=this,r=N(i,`.${s.slideClass}, swiper-slide`),n=ie(r[0]);return ie(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:i,params:s}=t;t.slides=N(i,`.${s.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,i){const s=this;t=Math.min(Math.max(t,0),1);const r=s.minTranslate(),l=(s.maxTranslate()-r)*t+r;s.translateTo(l,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=t.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",i.join(" "))}getSlideClasses(t){const i=this;return i.destroyed?"":t.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=[];t.slides.forEach(s=>{const r=t.getSlideClasses(s);i.push({slideEl:s,classNames:r}),t.emit("_slideClass",s,r)}),t.emit("_slideClasses",i)}slidesPerViewDynamic(t="current",i=!1){const s=this,{params:r,slides:n,slidesGrid:l,slidesSizesGrid:o,size:a,activeIndex:c}=s;let m=1;if(r.centeredSlides){let f=n[c].swiperSlideSize,h;for(let p=c+1;p<n.length;p+=1)n[p]&&!h&&(f+=n[p].swiperSlideSize,m+=1,f>a&&(h=!0));for(let p=c-1;p>=0;p-=1)n[p]&&!h&&(f+=n[p].swiperSlideSize,m+=1,f>a&&(h=!0))}else if(t==="current")for(let f=c+1;f<n.length;f+=1)(i?l[f]+o[f]-l[c]<a:l[f]-l[c]<a)&&(m+=1);else for(let f=c-1;f>=0;f-=1)l[c]-l[f]<a&&(m+=1);return m}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:i,params:s}=t;s.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&Q(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function r(){const l=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let n;if(t.params.freeMode&&t.params.freeMode.enabled)r(),t.params.autoHeight&&t.updateAutoHeight();else{if((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides){const l=t.virtual&&t.params.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(l.length-1,0,!1,!0)}else n=t.slideTo(t.activeIndex,0,!1,!0);n||r()}s.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,i=!0){const s=this,r=s.params.direction;return t||(t=r==="horizontal"?"vertical":"horizontal"),t===r||t!=="horizontal"&&t!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${r}`),s.el.classList.add(`${s.params.containerModifierClass}${t}`),s.emitContainerClasses(),s.params.direction=t,s.slides.forEach(n=>{t==="vertical"?n.style.width="":n.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(t){const i=this;i.rtl&&t==="rtl"||!i.rtl&&t==="ltr"||(i.rtl=t==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(t){const i=this;if(i.mounted)return!0;let s=t||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.shadowEl&&(i.isElement=!0);const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):N(s,r())[0])();return!l&&i.params.createElements&&(l=Pe("div",i.params.wrapperClass),s.append(l),N(s,`.${i.params.slideClass}`).forEach(o=>{l.append(o)})),Object.assign(i,{el:s,wrapperEl:l,slidesEl:i.isElement?s:l,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||j(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||j(s,"direction")==="rtl"),wrongRTL:j(l,"display")==="-webkit-box"}),!0}init(t){const i=this;return i.initialized||i.mount(t)===!1||(i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents(),[...i.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete?Q(i,r):r.addEventListener("load",n=>{Q(i,n.target)})}),pe(i),i.initialized=!0,pe(i),i.emit("init"),i.emit("afterInit")),i}destroy(t=!0,i=!0){const s=this,{params:r,el:n,wrapperEl:l,slides:o}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),r.loop&&s.loopDestroy(),i&&(s.removeClasses(),n.removeAttribute("style"),l.removeAttribute("style"),o&&o.length&&o.forEach(a=>{a.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(a=>{s.off(a)}),t!==!1&&(s.el.swiper=null,We(s)),s.destroyed=!0),null}static extendDefaults(t){B(ce,t)}static get extendedDefaults(){return ce}static get defaults(){return ye}static installModule(t){V.prototype.__modules__||(V.prototype.__modules__=[]);const i=V.prototype.__modules__;typeof t=="function"&&i.indexOf(t)<0&&i.push(t)}static use(t){return Array.isArray(t)?(t.forEach(i=>V.installModule(i)),V):(V.installModule(t),V)}};Object.keys(de).forEach(e=>{Object.keys(de[e]).forEach(t=>{Y.prototype[t]=de[e][t]})});Y.use([it,st]);function oi(e,t,i,s){return e.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&i.auto===!0){let n=N(e.el,`.${s[r]}`)[0];n||(n=Pe("div",s[r]),n.className=s[r],e.el.append(n)),i[r]=n,t[r]=n}}),i}function W(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function di({swiper:e,extendParams:t,on:i,emit:s}){const r="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:d=>d,formatFractionTotal:d=>d,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,bullets:[]};let n,l=0;const o=d=>(Array.isArray(d)||(d=[d].filter(u=>!!u)),d);function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(d,u){const{bulletActiveClass:g}=e.params.pagination;d&&(d=d[`${u==="prev"?"previous":"next"}ElementSibling`],d&&(d.classList.add(`${g}-${u}`),d=d[`${u==="prev"?"previous":"next"}ElementSibling`],d&&d.classList.add(`${g}-${u}-${u}`)))}function m(d){const u=d.target.closest(W(e.params.pagination.bulletClass));if(!u)return;d.preventDefault();const g=ie(u)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===g)return;const v=e.getSlideIndexByData(g),T=e.getSlideIndexByData(e.realIndex);v>e.slides.length-e.loopedSlides&&e.loopFix({direction:v>T?"next":"prev",activeSlideIndex:v,slideTo:!1}),e.slideToLoop(g)}else e.slideTo(g)}function f(){const d=e.rtl,u=e.params.pagination;if(a())return;let g=e.pagination.el;g=o(g);let v,T;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,I=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(T=e.previousRealIndex||0,v=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(v=e.snapIndex,T=e.previousSnapIndex):(T=e.previousIndex||0,v=e.activeIndex||0),u.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const S=e.pagination.bullets;let P,A,y;if(u.dynamicBullets&&(n=ue(S[0],e.isHorizontal()?"width":"height",!0),g.forEach(w=>{w.style[e.isHorizontal()?"width":"height"]=`${n*(u.dynamicMainBullets+4)}px`}),u.dynamicMainBullets>1&&T!==void 0&&(l+=v-(T||0),l>u.dynamicMainBullets-1?l=u.dynamicMainBullets-1:l<0&&(l=0)),P=Math.max(v-l,0),A=P+(Math.min(S.length,u.dynamicMainBullets)-1),y=(A+P)/2),S.forEach(w=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${u.bulletActiveClass}${L}`)].map(L=>typeof L=="string"&&L.includes(" ")?L.split(" "):L).flat();w.classList.remove(...M)}),g.length>1)S.forEach(w=>{const M=ie(w);M===v&&w.classList.add(...u.bulletActiveClass.split(" ")),u.dynamicBullets&&(M>=P&&M<=A&&w.classList.add(...`${u.bulletActiveClass}-main`.split(" ")),M===P&&c(w,"prev"),M===A&&c(w,"next"))});else{const w=S[v];if(w&&w.classList.add(...u.bulletActiveClass.split(" ")),u.dynamicBullets){const M=S[P],L=S[A];for(let G=P;G<=A;G+=1)S[G]&&S[G].classList.add(...`${u.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(L,"next")}}if(u.dynamicBullets){const w=Math.min(S.length,u.dynamicMainBullets+4),M=(n*w-n)/2-y*n,L=d?"right":"left";S.forEach(G=>{G.style[e.isHorizontal()?L:"top"]=`${M}px`})}}g.forEach((S,P)=>{if(u.type==="fraction"&&(S.querySelectorAll(W(u.currentClass)).forEach(A=>{A.textContent=u.formatFractionCurrent(v+1)}),S.querySelectorAll(W(u.totalClass)).forEach(A=>{A.textContent=u.formatFractionTotal(I)})),u.type==="progressbar"){let A;u.progressbarOpposite?A=e.isHorizontal()?"vertical":"horizontal":A=e.isHorizontal()?"horizontal":"vertical";const y=(v+1)/I;let w=1,M=1;A==="horizontal"?w=y:M=y,S.querySelectorAll(W(u.progressbarFillClass)).forEach(L=>{L.style.transform=`translate3d(0,0,0) scaleX(${w}) scaleY(${M})`,L.style.transitionDuration=`${e.params.speed}ms`})}u.type==="custom"&&u.renderCustom?(S.innerHTML=u.renderCustom(e,v+1,I),P===0&&s("paginationRender",S)):(P===0&&s("paginationRender",S),s("paginationUpdate",S)),e.params.watchOverflow&&e.enabled&&S.classList[e.isLocked?"add":"remove"](u.lockClass)})}function h(){const d=e.params.pagination;if(a())return;const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let g=e.pagination.el;g=o(g);let v="";if(d.type==="bullets"){let T=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&T>u&&(T=u);for(let C=0;C<T;C+=1)d.renderBullet?v+=d.renderBullet.call(e,C,d.bulletClass):v+=`<${d.bulletElement} class="${d.bulletClass}"></${d.bulletElement}>`}d.type==="fraction"&&(d.renderFraction?v=d.renderFraction.call(e,d.currentClass,d.totalClass):v=`<span class="${d.currentClass}"></span> / <span class="${d.totalClass}"></span>`),d.type==="progressbar"&&(d.renderProgressbar?v=d.renderProgressbar.call(e,d.progressbarFillClass):v=`<span class="${d.progressbarFillClass}"></span>`),e.pagination.bullets=[],g.forEach(T=>{d.type!=="custom"&&(T.innerHTML=v||""),d.type==="bullets"&&e.pagination.bullets.push(...T.querySelectorAll(W(d.bulletClass)))}),d.type!=="custom"&&s("paginationRender",g[0])}function p(){e.params.pagination=oi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const d=e.params.pagination;if(!d.el)return;let u;typeof d.el=="string"&&e.isElement&&(u=e.el.shadowRoot.querySelector(d.el)),!u&&typeof d.el=="string"&&(u=[...document.querySelectorAll(d.el)]),u||(u=d.el),!(!u||u.length===0)&&(e.params.uniqueNavElements&&typeof d.el=="string"&&Array.isArray(u)&&u.length>1&&(u=[...e.el.querySelectorAll(d.el)],u.length>1&&(u=u.filter(g=>Le(g,".swiper")[0]===e.el)[0])),Array.isArray(u)&&u.length===1&&(u=u[0]),Object.assign(e.pagination,{el:u}),u=o(u),u.forEach(g=>{d.type==="bullets"&&d.clickable&&g.classList.add(d.clickableClass),g.classList.add(d.modifierClass+d.type),g.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(g.classList.add(`${d.modifierClass}${d.type}-dynamic`),l=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&g.classList.add(d.progressbarOppositeClass),d.clickable&&g.addEventListener("click",m),e.enabled||g.classList.add(d.lockClass)}))}function x(){const d=e.params.pagination;if(a())return;let u=e.pagination.el;u&&(u=o(u),u.forEach(g=>{g.classList.remove(d.hiddenClass),g.classList.remove(d.modifierClass+d.type),g.classList.remove(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.clickable&&g.removeEventListener("click",m)})),e.pagination.bullets&&e.pagination.bullets.forEach(g=>g.classList.remove(...d.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const d=e.params.pagination;let{el:u}=e.pagination;u=o(u),u.forEach(g=>{g.classList.remove(d.horizontalClass,d.verticalClass),g.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass)})}),i("init",()=>{e.params.pagination.enabled===!1?E():(p(),h(),f())}),i("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),i("snapIndexChange",()=>{f()}),i("snapGridLengthChange",()=>{h(),f()}),i("destroy",()=>{x()}),i("enable disable",()=>{let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),i("lock unlock",()=>{f()}),i("click",(d,u)=>{const g=u.target;let{el:v}=e.pagination;if(Array.isArray(v)||(v=[v].filter(T=>!!T)),e.params.pagination.el&&e.params.pagination.hideOnClick&&v&&v.length>0&&!g.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&g===e.navigation.nextEl||e.navigation.prevEl&&g===e.navigation.prevEl))return;const T=v[0].classList.contains(e.params.pagination.hiddenClass);s(T===!0?"paginationShow":"paginationHide"),v.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList.remove(e.params.pagination.paginationDisabledClass))),p(),h(),f()},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=o(d),d.forEach(u=>u.classList.add(e.params.pagination.paginationDisabledClass))),x()};Object.assign(e.pagination,{enable:b,disable:E,render:h,update:f,init:p,destroy:x})}function H(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function F(e,t){const i=["__proto__","constructor","prototype"];Object.keys(t).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof e[s]>"u"?e[s]=t[s]:H(t[s])&&H(e[s])&&Object.keys(t[s]).length>0?t[s].__swiper__?e[s]=t[s]:F(e[s],t[s]):e[s]=t[s]})}function Ae(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function _e(e={}){return e.pagination&&typeof e.pagination.el>"u"}function $e(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Ge(e=""){const t=e.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return t.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function ci(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Be=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function fi(e={},t=!0){const i={on:{}},s={},r={};F(i,Y.defaults),F(i,Y.extendedDefaults),i._emitClasses=!0,i.init=!1;const n={},l=Be.map(a=>a.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(a=>{typeof e[a]>"u"||(l.indexOf(a)>=0?H(e[a])?(i[a]={},r[a]={},F(i[a],e[a]),F(r[a],e[a])):(i[a]=e[a],r[a]=e[a]):a.search(/on[A-Z]/)===0&&typeof e[a]=="function"?t?s[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(a=>{i[a]===!0&&(i[a]={}),i[a]===!1&&delete i[a]}),{params:i,passedParams:r,rest:n,events:s}}function ui({el:e,nextEl:t,prevEl:i,paginationEl:s,scrollbarEl:r,swiper:n},l){Ae(l)&&t&&i&&(n.params.navigation.nextEl=t,n.originalParams.navigation.nextEl=t,n.params.navigation.prevEl=i,n.originalParams.navigation.prevEl=i),_e(l)&&s&&(n.params.pagination.el=s,n.originalParams.pagination.el=s),$e(l)&&r&&(n.params.scrollbar.el=r,n.originalParams.scrollbar.el=r),n.init(e)}function pi(e,t,i,s,r){const n=[];if(!t)return n;const l=a=>{n.indexOf(a)<0&&n.push(a)};if(i&&s){const a=s.map(r),c=i.map(r);a.join("")!==c.join("")&&l("children"),s.length!==i.length&&l("children")}return Be.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(H(e[a])&&H(t[a])){const c=Object.keys(e[a]),m=Object.keys(t[a]);c.length!==m.length?l(a):(c.forEach(f=>{e[a][f]!==t[a][f]&&l(a)}),m.forEach(f=>{e[a][f]!==t[a][f]&&l(a)}))}else e[a]!==t[a]&&l(a)}),n}function De(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ke(e){const t=[];return z.Children.toArray(e).forEach(i=>{De(i)?t.push(i):i.props&&i.props.children&&ke(i.props.children).forEach(s=>t.push(s))}),t}function mi(e){const t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return z.Children.toArray(e).forEach(s=>{if(De(s))t.push(s);else if(s.props&&s.props.slot&&i[s.props.slot])i[s.props.slot].push(s);else if(s.props&&s.props.children){const r=ke(s.props.children);r.length>0?r.forEach(n=>t.push(n)):i["container-end"].push(s)}else i["container-end"].push(s)}),{slides:t,slots:i}}function hi({swiper:e,slides:t,passedParams:i,changedParams:s,nextEl:r,prevEl:n,scrollbarEl:l,paginationEl:o}){const a=s.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:c,pagination:m,navigation:f,scrollbar:h,virtual:p,thumbs:x}=e;let b,E,d,u,g,v,T,C;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(b=!0),s.includes("controller")&&i.controller&&i.controller.control&&c.controller&&!c.controller.control&&(E=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||o)&&(c.pagination||c.pagination===!1)&&m&&!m.el&&(d=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||l)&&(c.scrollbar||c.scrollbar===!1)&&h&&!h.el&&(u=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||n)&&(i.navigation.nextEl||r)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(g=!0);const I=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),c[S].prevEl=void 0,c[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),c[S].el=void 0,e[S].el=void 0))};s.includes("loop")&&e.isElement&&(c.loop&&!i.loop?v=!0:!c.loop&&i.loop?T=!0:C=!0),a.forEach(S=>{if(H(c[S])&&H(i[S]))F(c[S],i[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in i[S]&&!i[S].enabled&&I(S);else{const P=i[S];(P===!0||P===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?P===!1&&I(S):c[S]=i[S]}}),a.includes("controller")&&!E&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),s.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),s.includes("children")&&t&&c.loop&&(C=!0),b&&x.init()&&x.update(!0),E&&(e.controller.control=c.controller.control),d&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(o)),o&&(c.pagination.el=o),m.init(),m.render(),m.update()),u&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(c.scrollbar.el=l),h.init(),h.updateSize(),h.setTranslate()),g&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(r)),(!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(n))),r&&(c.navigation.nextEl=r),n&&(c.navigation.prevEl=n),f.init(),f.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),(v||C)&&e.loopDestroy(),(T||C)&&e.loopCreate(),e.update()}function gi(e,t,i){if(!i)return null;const s=m=>{let f=m;return m<0?f=t.length+m:f>=t.length&&(f=f-t.length),f},r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:l}=i,o=e.params.loop?-t.length:0,a=e.params.loop?t.length*2:t.length,c=[];for(let m=o;m<a;m+=1)m>=n&&m<=l&&c.push(t[s(m)]);return c.map((m,f)=>z.cloneElement(m,{swiper:e,style:r,key:`slide-${f}`}))}const vi=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function X(e,t){return typeof window>"u"?O.useEffect(e,t):O.useLayoutEffect(e,t)}const Ce=O.createContext(null),Si=O.createContext(null);function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},me.apply(this,arguments)}const Ne=O.forwardRef(function(e,t){let{className:i,tag:s="div",wrapperTag:r="div",children:n,onSwiper:l,...o}=e===void 0?{}:e,a=!1;const[c,m]=O.useState("swiper"),[f,h]=O.useState(null),[p,x]=O.useState(!1),b=O.useRef(!1),E=O.useRef(null),d=O.useRef(null),u=O.useRef(null),g=O.useRef(null),v=O.useRef(null),T=O.useRef(null),C=O.useRef(null),I=O.useRef(null),{params:S,passedParams:P,rest:A,events:y}=fi(o),{slides:w,slots:M}=mi(n),L=()=>{x(!p)};Object.assign(S.on,{_containerClasses($,k){m(k)}});const G=()=>{Object.assign(S.on,y),a=!0;const $={...S};if(delete $.wrapperClass,d.current=new Y($),d.current.virtual&&d.current.params.virtual.enabled){d.current.virtual.slides=w;const k={cache:!1,slides:w,renderExternal:h,renderExternalUpdate:!1};F(d.current.params.virtual,k),F(d.current.originalParams.virtual,k)}};E.current||G(),d.current&&d.current.on("_beforeBreakpoint",L);const q=()=>{a||!y||!d.current||Object.keys(y).forEach($=>{d.current.on($,y[$])})},se=()=>{!y||!d.current||Object.keys(y).forEach($=>{d.current.off($,y[$])})};O.useEffect(()=>()=>{d.current&&d.current.off("_beforeBreakpoint",L)}),O.useEffect(()=>{!b.current&&d.current&&(d.current.emitSlidesClasses(),b.current=!0)}),X(()=>{if(t&&(t.current=E.current),!!E.current)return d.current.destroyed&&G(),ui({el:E.current,nextEl:v.current,prevEl:T.current,paginationEl:C.current,scrollbarEl:I.current,swiper:d.current},S),l&&l(d.current),()=>{d.current&&!d.current.destroyed&&d.current.destroy(!0,!1)}},[]),X(()=>{q();const $=pi(P,u.current,w,g.current,k=>k.key);return u.current=P,g.current=w,$.length&&d.current&&!d.current.destroyed&&hi({swiper:d.current,slides:w,passedParams:P,changedParams:$,nextEl:v.current,prevEl:T.current,scrollbarEl:I.current,paginationEl:C.current}),()=>{se()}}),X(()=>{vi(d.current)},[f]);function ne(){return S.virtual?gi(d.current,w,f):w.map(($,k)=>z.cloneElement($,{swiper:d.current,swiperSlideIndex:k}))}return z.createElement(s,me({ref:E,className:Ge(`${c}${i?` ${i}`:""}`)},A),z.createElement(Si.Provider,{value:d.current},M["container-start"],z.createElement(r,{className:ci(S.wrapperClass)},M["wrapper-start"],ne(),M["wrapper-end"]),Ae(S)&&z.createElement(z.Fragment,null,z.createElement("div",{ref:T,className:"swiper-button-prev"}),z.createElement("div",{ref:v,className:"swiper-button-next"})),$e(S)&&z.createElement("div",{ref:I,className:"swiper-scrollbar"}),_e(S)&&z.createElement("div",{ref:C,className:"swiper-pagination"}),M["container-end"]))});Ne.displayName="Swiper";function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},he.apply(this,arguments)}const ee=O.forwardRef(function(e,t){let{tag:i="div",children:s,className:r="",swiper:n,zoom:l,lazy:o,virtualIndex:a,swiperSlideIndex:c,...m}=e===void 0?{}:e;const f=O.useRef(null),[h,p]=O.useState("swiper-slide"),[x,b]=O.useState(!1);function E(v,T,C){T===f.current&&p(C)}X(()=>{if(typeof c<"u"&&(f.current.swiperSlideIndex=c),t&&(t.current=f.current),!(!f.current||!n)){if(n.destroyed){h!=="swiper-slide"&&p("swiper-slide");return}return n.on("_slideClass",E),()=>{n&&n.off("_slideClass",E)}}}),X(()=>{n&&f.current&&!n.destroyed&&p(n.getSlideClasses(f.current))},[n]);const d={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},u=()=>typeof s=="function"?s(d):s,g=()=>{b(!0)};return z.createElement(i,he({ref:f,className:Ge(`${h}${r?` ${r}`:""}`),"data-swiper-slide-index":a,onLoad:g},m),l&&z.createElement(Ce.Provider,{value:d},z.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},u(),o&&!x&&z.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&z.createElement(Ce.Provider,{value:d},u(),o&&!x&&z.createElement("div",{className:"swiper-lazy-preloader"})))});ee.displayName="SwiperSlide";function xi({isOpen:e,setIsOpen:t,handleSavePreference:i}){const{i18n:s,theme:r}=Fe(),[n,l]=O.useState(),[o,a]=O.useState(0);return e?He.createPortal(_.jsxs(U,{id:"TrashModal",onModalClose:()=>t(!1),size:"md",isOpen:e,focusId:"nextButtonId",children:[_.jsx(U.Header,{onModalClose:()=>t(!1),children:s("explorer.modal.onboarding.trash.title")}),_.jsx(U.Body,{children:_.jsxs(Ne,{modules:[di],onSwiper:c=>{l(c)},onSlideChange:c=>{a(c.progress)},pagination:{clickable:!0},children:[_.jsxs(ee,{children:[_.jsx(re,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/images/onboarding/corbeille-menu.svg`,alt:s("explorer.modal.onboarding.trash.screen1.alt")}),_.jsx("p",{children:s("explorer.modal.onboarding.trash.screen1.title")})]}),_.jsxs(ee,{children:[_.jsx(re,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/images/onboarding/corbeille-notif.svg`,alt:s("explorer.modal.onboarding.trash.screen2.alt")}),_.jsx("p",{children:s("explorer.modal.onboarding.trash.screen2.title")})]}),_.jsxs(ee,{children:[_.jsx(re,{width:"270",height:"140",className:"mx-auto",loading:"lazy",src:`${r==null?void 0:r.bootstrapPath}/images/onboarding/corbeille-delete.svg`,alt:s("explorer.modal.onboarding.trash.screen3.alt")}),_.jsx("p",{children:s("explorer.modal.onboarding.trash.screen3.title")})]})]})}),_.jsxs(U.Footer,{children:[_.jsx(K,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>t(!1),children:s("explorer.modal.onboarding.trash.later")}),o>0&&_.jsx(K,{type:"button",color:"primary",variant:"outline",onClick:()=>n.slidePrev(),children:s("explorer.modal.onboarding.trash.prev")}),o<1&&_.jsx(K,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>n.slideNext(),children:s("explorer.modal.onboarding.trash.next")}),o===1&&_.jsx(K,{type:"button",color:"primary",variant:"filled",onClick:i,children:s("explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null}export{xi as default};
|