ecars-web-lib 1.0.21 → 1.0.23

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/index.cjs.js CHANGED
@@ -1,13 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const dr=require("clsx"),C=require("react"),v=require("react/jsx-runtime"),cr=require("react-image-gallery"),ur=require("rc-slider");function fr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const w=fr(C),k=(e="",t,...r)=>{const n=e?`${e}__${t} ${t}`:t;return dr.clsx(n,r)},St=e=>e.charAt(0).toUpperCase()+e.slice(1);var xt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},it=C.createContext&&C.createContext(xt),pr=["attr","size","title"];function hr(e,t){if(e==null)return{};var r=mr(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mr(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xe.apply(this,arguments)}function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?st(Object(r),!0).forEach(function(n){gr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gr(e,t,r){return t=vr(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vr(e){var t=wr(e,"string");return typeof t=="symbol"?t:t+""}function wr(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bt(e){return e&&e.map((t,r)=>C.createElement(t.tag,be({key:r},t.attr),bt(t.child)))}function $(e){return t=>C.createElement(Sr,xe({attr:be({},e.attr)},t),bt(e.child))}function Sr(e){var t=r=>{var{attr:n,size:i,title:s}=e,a=hr(e,pr),o=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),C.createElement("svg",xe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:be(be({color:e.color||r.color},r.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&C.createElement("title",null,s),e.children)};return it!==void 0?C.createElement(it.Consumer,null,r=>t(r)):t(xt)}function xr(e){return $({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},child:[]}]})(e)}function br(e){return $({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}function Tr(e){return $({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function yr(e){return $({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Er(e){return $({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function Cr(e){return $({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"},child:[]}]})(e)}function Pr(e){return $({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z"},child:[]}]})(e)}function Ir(e){return $({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M260.062 32C138.605 32 40.134 129.701 40.134 250.232c0 41.23 11.532 79.79 31.559 112.687L32 480l121.764-38.682c31.508 17.285 67.745 27.146 106.298 27.146C381.535 468.464 480 370.749 480 250.232 480 129.701 381.535 32 260.062 32zm109.362 301.11c-5.174 12.827-28.574 24.533-38.899 25.072-10.314.547-10.608 7.994-66.84-16.434-56.225-24.434-90.052-83.844-92.719-87.67-2.669-3.812-21.78-31.047-20.749-58.455 1.038-27.413 16.047-40.346 21.404-45.725 5.351-5.387 11.486-6.352 15.232-6.413 4.428-.072 7.296-.132 10.573-.011 3.274.124 8.192-.685 12.45 10.639 4.256 11.323 14.443 39.153 15.746 41.989 1.302 2.839 2.108 6.126.102 9.771-2.012 3.653-3.042 5.935-5.961 9.083-2.935 3.148-6.174 7.042-8.792 9.449-2.92 2.665-5.97 5.572-2.9 11.269 3.068 5.693 13.653 24.356 29.779 39.736 20.725 19.771 38.598 26.329 44.098 29.317 5.515 3.004 8.806 2.67 12.226-.929 3.404-3.599 14.639-15.746 18.596-21.169 3.955-5.438 7.661-4.373 12.742-2.329 5.078 2.052 32.157 16.556 37.673 19.551 5.51 2.989 9.193 4.529 10.51 6.9 1.317 2.38.901 13.531-4.271 26.359z"},child:[]}]})(e)}function Mr(e){return $({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},child:[]}]})(e)}function Or(e){return $({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function _r(e){return $({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"},child:[]}]})(e)}function Lr(e){return $({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 378.7c-73.4 0-133.3 59.9-133.3 133.3S438.6 645.3 512 645.3 645.3 585.4 645.3 512 585.4 378.7 512 378.7zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zM512 717.1c-113.5 0-205.1-91.6-205.1-205.1S398.5 306.9 512 306.9 717.1 398.5 717.1 512 625.5 717.1 512 717.1zm213.5-370.7c-26.5 0-47.9-21.4-47.9-47.9s21.4-47.9 47.9-47.9 47.9 21.4 47.9 47.9a47.84 47.84 0 0 1-47.9 47.9z"},child:[]}]})(e)}function Ar(e){return $({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"},child:[]}]})(e)}const W={ArrowNarrowRight:yr,ArrowNarrowLeft:Tr,ArrowNarrowDown:br,Check:Cr,Close:Pr,Facebook:Mr,Twitter:Er,Youtube:Or,Instagram:Lr,Whatsapp:Ir,Email:xr},Nr=["Option 1","Option 2","Another Option"],Rr=100,kr=10,zr=Array.from({length:6},e=>({original:"src/assets/react.svg",thumbnail:"src/assets/react.svg"})),Dr=[{name:"Option 1",value:"1"},{name:"Option 2",value:"2"}],jr=[10,500],Br=[1,2,3],Fr=Object.freeze({GUIDES:"guides",REVIEWS:"reviews",NEWS:"news"}),Tt="categoryTestId",je=(e,t)=>{if(!e)return e;if(Array.isArray(e))return e.map(s=>je(s,t));if(!C.isValidElement(e)||!C.isValidElement(e))return e;const r=e.props.block??t,n=e.props.block?{}:{block:t},i=e.props.children?je(e.props.children,r):e.props.children;return C.cloneElement(e,n,i)},He=(e,t,r)=>({children:n,block:i=t,...s})=>{const a=je(n,i);return v.jsx(e,{...s,block:i,className:[r,t].filter(Boolean).join(" "),children:a})},We=e=>{const t=C.useRef(null),r=C.useMemo(()=>{var n;return{height:e?(n=t.current)==null?void 0:n.scrollHeight:0}},[e]);return{contentRef:t,style:r}},yt=e=>{const[t,r]=C.useState(!1);return C.useEffect(()=>{const n=window.matchMedia(e);n.matches!==t&&r(n.matches);const i=()=>{r(n.matches)};return n.addEventListener("change",i),()=>{n.removeEventListener("change",i)}},[t,e]),t},$r=e=>{const[t]=e,[r,n]=C.useState(t),[i,s]=C.useState(!1),a=yt("(pointer: coarse)");return{selectedOption:r,isDropdownOpen:i,handleOpenClick:()=>{a&&s(c=>!c)},handleOutside:c=>{s(c)},handleSelect:c=>{n(c),a&&s(!1)}}},Ye=e=>{const t=C.useRef(null);return C.useEffect(()=>{const r=n=>{const i=n.target;t.current&&i instanceof Node&&!t.current.contains(i)&&e(!1)};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[t,e]),t},Gr=({category:e,block:t})=>{const r=k(t,"category",`category--${e}`);return v.jsx("span",{"data-testid":Tt,className:r,children:St(e)})},Vr=({src:e,block:t})=>v.jsx("a",{className:k(t,"logo"),children:v.jsx("img",{src:e,alt:"Logo"})}),Hr=({id:e,block:t,...r})=>v.jsxs(ge.Block,{htmlFor:e,block:t,children:[v.jsx(ge.Input,{...r,id:e}),v.jsx(ge.Indicator,{})]}),Wr="checkboxTestId",Yr="checkboxTestInputId",Ur=({children:e,block:t,htmlFor:r="checkbox"})=>{const n=k(t,"checkbox");return v.jsx("label",{"data-testid":Wr,className:n,htmlFor:r,children:e})},qr=()=>v.jsx("span",{className:"checkbox__indicator",children:v.jsx(W.Check,{})}),Xr=({onChange:e,id:t="checkbox",checked:r=!1,disabled:n=!1,name:i="checkbox",hasError:s=!1})=>{const a=k("","checkbox__input",{error:s}),o=l=>{e&&e(l.target.checked)};return v.jsx("input",{"data-testid":Yr,name:i,disabled:n,className:a,checked:r,onChange:o,id:t,type:"checkbox"})},ge=Object.assign(Hr,{Block:Ur,Indicator:qr,Input:Xr}),Kr="dropdownTestId",Jr=({selectedOption:e,block:t,options:r,onSelect:n,handleOpen:i,isOpen:s,onClickOutside:a,theme:o})=>{const l=Ye(a);return v.jsxs("div",{"data-testid":Kr,ref:l,className:k(t,"dropdown-menu",`dropdown-menu--${o}`,{"_dropdown-active":s}),children:[v.jsx(de.Block,{children:v.jsx(de.Category,{handleOpen:i,item:e})}),v.jsx(de.List,{onSelect:n,options:r,selectedOption:e})]})},Qr=({selectedOption:e,options:t,onSelect:r})=>v.jsx("ul",{className:"dropdown-menu__list",children:t.map(n=>{const{value:i}=n,s=i===e.value;return v.jsx(de.Option,{option:n,onSelect:r,isSelected:s},i)})}),Zr=({option:e,isSelected:t,onSelect:r})=>{const{label:n,value:i,name:s}=e,a=()=>{r(e)};return v.jsxs("li",{"data-value":i,onClick:a,className:k("","dropdown-menu__option",{"_selected-option":t}),children:[n&&n," ",s]})},en=({item:e,handleOpen:t})=>v.jsxs("button",{onClick:t,className:"dropdown-menu__category",children:[e==null?void 0:e.label,e==null?void 0:e.name,v.jsx(W.ArrowNarrowDown,{className:"dropdown-menu__arrow"})]}),tn=({children:e})=>v.jsx("div",{className:"dropdown-menu__block",children:e}),de=Object.assign(Jr,{List:Qr,Option:Zr,Category:en,Block:tn}),rn="favButtonTestId",nn=({disabled:e,block:t,isFavorite:r,type:n,onClick:i})=>{const s=k(t,"favorite-button",`favorite-button--${n}`,{active:r});return v.jsx("button",{"data-testid":rn,disabled:e,className:s,onClick:i,type:"button",children:r?v.jsx(_r,{}):v.jsx(Ar,{})})},sn="fieldTestId",an="fieldLabelTestId",on=({label:e,block:t,children:r,error:n,id:i="input"})=>{const s=k(t,"field");return v.jsxs("div",{"data-testid":sn,className:s,children:[!!e&&v.jsx(Be.Label,{text:e,htmlFor:i}),C.cloneElement(r,{id:i,hasError:!!n}),!!n&&v.jsx(Be.Error,{errorText:n})]})},ln=({text:e,htmlFor:t="input"})=>v.jsx("label",{"data-testid":an,className:"field__label",htmlFor:t,children:e}),dn=({errorText:e})=>v.jsx("p",{className:"field__error",children:e}),Be=Object.assign(on,{Label:ln,Error:dn}),cn=({children:e})=>v.jsx("div",{className:"filter-accordion__block",children:e}),Et="filter-accordion",un="filterAccordionTestId",fn=He(cn,Et),pn=({onClick:e,title:t,isOpen:r,children:n})=>v.jsxs(se.Layout,{isOpen:r,children:[v.jsxs(se.Block,{block:Et,children:[v.jsx("h2",{className:"filter-accordion__title",children:t}),v.jsx(se.Reset,{}),v.jsx(se.Arrow,{onClick:e})]}),v.jsx(se.Content,{isOpen:r,children:n})]}),hn=({isOpen:e,block:t,children:r})=>v.jsx("div",{"data-testid":un,className:k(t,"filter-accordion",{"_active-accordion":e}),children:r}),mn=({onClick:e})=>v.jsx("button",{onClick:e,className:"filter-accordion__arrow",children:v.jsx(W.ArrowNarrowDown,{})}),gn="buttonTestId",Ue=({children:e,size:t,color:r,onClick:n,type:i="button",disabled:s=!1,isTransparent:a=!1,withIcon:o=!1,block:l})=>{const d=k(l,"button",`button--${t} button--${r}`,{"button--transparent":a,"button--icon":o});return v.jsx("button",{"data-testid":gn,disabled:s,type:i,className:d,onClick:n,children:e})},vn=({block:e})=>v.jsx(Ue,{block:e,isTransparent:!0,size:"small",color:"gray",children:"Reset"}),wn=({isOpen:e,children:t})=>{const{style:r,contentRef:n}=We(e);return v.jsx("div",{style:r,ref:n,className:"filter-accordion__content",children:v.jsx("div",{className:"filter-accordion__body",children:t})})},se=Object.assign(pn,{Layout:hn,Arrow:mn,Reset:vn,Block:fn,Content:wn}),Sn="leftIconButtonTestId",xn="rightIconButtonTestId",Ct=({RightIcon:e,LeftIcon:t,children:r,className:n,...i})=>v.jsxs(Ue,{withIcon:!0,...i,children:[!!t&&v.jsx(t,{className:n,"data-testid":Sn}),r,!!e&&v.jsx(e,{className:n,"data-testid":xn})]}),bn=({children:e,onClick:t,block:r})=>v.jsx(Ct,{type:"button",block:r,onClick:t,className:"button__close",RightIcon:W.Close,size:"small",color:"gray",children:e}),Tn=({images:e,block:t})=>v.jsx(cr,{items:e,additionalClass:t,showFullscreenButton:!1,showPlayButton:!1}),yn="inputTestId",Pt=({value:e,onChange:t,hasError:r,placeholder:n,block:i,disabled:s=!1,type:a="text",id:o="input",name:l="input",isReadOnly:d=!1,isTransparent:c=!1})=>{const u=k(i,"input",{error:r,transparent:c}),f=p=>{t&&t(p.currentTarget.value)};return v.jsx("input",{readOnly:d,onChange:f,disabled:s,autoComplete:"off","data-testid":yn,className:u,id:o,name:l,placeholder:n,value:e,type:a})};/**
2
- * react-router v7.8.2
3
- *
4
- * Copyright (c) Remix Software Inc.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */function D(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function X(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fe({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function qe(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function It(e,t,r="/"){return En(e,t,r,!1)}function En(e,t,r,n){let i=typeof t=="string"?qe(t):t,s=Z(i.pathname||"/",r);if(s==null)return null;let a=Mt(e);Cn(a);let o=null;for(let l=0;o==null&&l<a.length;++l){let d=zn(s);o=Rn(a[l],d,n)}return o}function Mt(e,t=[],r=[],n="",i=!1){let s=(a,o,l=i,d)=>{let c={relativePath:d===void 0?a.path||"":d,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&l)return;D(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let u=q([n,c.relativePath]),f=r.concat(c);a.children&&a.children.length>0&&(D(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),Mt(a.children,t,f,u,l)),!(a.path==null&&!a.index)&&t.push({path:u,score:An(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))s(a,o);else for(let d of Ot(a.path))s(a,o,!0,d)}),t}function Ot(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let a=Ot(n.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function Cn(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Nn(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Pn=/^:[\w-]+$/,In=3,Mn=2,On=1,_n=10,Ln=-2,at=e=>e==="*";function An(e,t){let r=e.split("/"),n=r.length;return r.some(at)&&(n+=Ln),t&&(n+=Mn),r.filter(i=>!at(i)).reduce((i,s)=>i+(Pn.test(s)?In:s===""?On:_n),n)}function Nn(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function Rn(e,t,r=!1){let{routesMeta:n}=e,i={},s="/",a=[];for(let o=0;o<n.length;++o){let l=n[o],d=o===n.length-1,c=s==="/"?t:t.slice(s.length)||"/",u=Te({path:l.relativePath,caseSensitive:l.caseSensitive,end:d},c),f=l.route;if(!u&&d&&r&&!n[n.length-1].route.index&&(u=Te({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:q([s,u.pathname]),pathnameBase:Fn(q([s,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(s=q([s,u.pathnameBase]))}return a}function Te(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=kn(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce((d,{paramName:c,isOptional:u},f)=>{if(c==="*"){let h=o[f]||"";a=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}const p=o[f];return u&&!p?d[c]=void 0:d[c]=(p||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:a,pattern:e}}function kn(e,t=!1,r=!0){X(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(n.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function zn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return X(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Z(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Dn(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?qe(e):e;return{pathname:r?r.startsWith("/")?r:jn(r,t):t,search:$n(n),hash:Gn(i)}}function jn(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Oe(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Bn(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _t(e){let t=Bn(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Lt(e,t,r,n=!1){let i;typeof e=="string"?i=qe(e):(i={...e},D(!i.pathname||!i.pathname.includes("?"),Oe("?","pathname","search",i)),D(!i.pathname||!i.pathname.includes("#"),Oe("#","pathname","hash",i)),D(!i.search||!i.search.includes("#"),Oe("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=r;else{let u=t.length-1;if(!n&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),u-=1;i.pathname=f.join("/")}o=u>=0?t[u]:"/"}let l=Dn(i,o),d=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(d||c)&&(l.pathname+="/"),l}var q=e=>e.join("/").replace(/\/\/+/g,"/"),Fn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$n=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Vn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var At=["POST","PUT","PATCH","DELETE"];new Set(At);var Hn=["GET",...At];new Set(Hn);var oe=w.createContext(null);oe.displayName="DataRouter";var Pe=w.createContext(null);Pe.displayName="DataRouterState";w.createContext(!1);var Nt=w.createContext({isTransitioning:!1});Nt.displayName="ViewTransition";var Wn=w.createContext(new Map);Wn.displayName="Fetchers";var Yn=w.createContext(null);Yn.displayName="Await";var K=w.createContext(null);K.displayName="Navigation";var Xe=w.createContext(null);Xe.displayName="Location";var J=w.createContext({outlet:null,matches:[],isDataRoute:!1});J.displayName="Route";var Ke=w.createContext(null);Ke.displayName="RouteError";function Un(e,{relative:t}={}){D(Ie(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=w.useContext(K),{hash:i,pathname:s,search:a}=fe(e,{relative:t}),o=s;return r!=="/"&&(o=s==="/"?r:q([r,s])),n.createHref({pathname:o,search:a,hash:i})}function Ie(){return w.useContext(Xe)!=null}function ne(){return D(Ie(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Xe).location}var Rt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kt(e){w.useContext(K).static||w.useLayoutEffect(e)}function qn(){let{isDataRoute:e}=w.useContext(J);return e?oi():Xn()}function Xn(){D(Ie(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(oe),{basename:t,navigator:r}=w.useContext(K),{matches:n}=w.useContext(J),{pathname:i}=ne(),s=JSON.stringify(_t(n)),a=w.useRef(!1);return kt(()=>{a.current=!0}),w.useCallback((l,d={})=>{if(X(a.current,Rt),!a.current)return;if(typeof l=="number"){r.go(l);return}let c=Lt(l,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:q([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,s,i,e])}w.createContext(null);function fe(e,{relative:t}={}){let{matches:r}=w.useContext(J),{pathname:n}=ne(),i=JSON.stringify(_t(r));return w.useMemo(()=>Lt(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function Kn(e,t,r,n,i){D(Ie(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=w.useContext(K),{matches:a}=w.useContext(J),o=a[a.length-1],l=o?o.params:{},d=o?o.pathname:"/",c=o?o.pathnameBase:"/",u=o&&o.route;{let g=u&&u.path||"";zt(d,!u||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
-
12
- Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let f=ne(),p;p=f;let h=p.pathname||"/",S=h;if(c!=="/"){let g=c.replace(/^\//,"").split("/");S="/"+h.replace(/^\//,"").split("/").slice(g.length).join("/")}let b=It(e,{pathname:S});return X(u||b!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),X(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),ti(b&&b.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:q([c,s.encodeLocation?s.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:q([c,s.encodeLocation?s.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,r,n,i)}function Jn(){let e=ai(),t=Vn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:s},"ErrorBoundary")," or"," ",w.createElement("code",{style:s},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:i},r):null,a)}var Qn=w.createElement(Jn,null),Zn=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?w.createElement(J.Provider,{value:this.props.routeContext},w.createElement(Ke.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ei({routeContext:e,match:t,children:r}){let n=w.useContext(oe);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(J.Provider,{value:e},r)}function ti(e,t=[],r=null,n=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,a=r==null?void 0:r.errors;if(a!=null){let d=s.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);D(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let o=!1,l=-1;if(r)for(let d=0;d<s.length;d++){let c=s[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=d),c.route.id){let{loaderData:u,errors:f}=r,p=c.route.loader&&!u.hasOwnProperty(c.route.id)&&(!f||f[c.route.id]===void 0);if(c.route.lazy||p){o=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}return s.reduceRight((d,c,u)=>{let f,p=!1,h=null,S=null;r&&(f=a&&c.route.id?a[c.route.id]:void 0,h=c.route.errorElement||Qn,o&&(l<0&&u===0?(zt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,S=null):l===u&&(p=!0,S=c.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,u+1)),m=()=>{let g;return f?g=h:p?g=S:c.route.Component?g=w.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=d,w.createElement(ei,{match:c,routeContext:{outlet:d,matches:b,isDataRoute:r!=null},children:g})};return r&&(c.route.ErrorBoundary||c.route.errorElement||u===0)?w.createElement(Zn,{location:r.location,revalidation:r.revalidation,component:h,error:f,children:m(),routeContext:{outlet:null,matches:b,isDataRoute:!0},unstable_onError:n}):m()},null)}function Je(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ri(e){let t=w.useContext(oe);return D(t,Je(e)),t}function ni(e){let t=w.useContext(Pe);return D(t,Je(e)),t}function ii(e){let t=w.useContext(J);return D(t,Je(e)),t}function Qe(e){let t=ii(e),r=t.matches[t.matches.length-1];return D(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function si(){return Qe("useRouteId")}function ai(){var n;let e=w.useContext(Ke),t=ni("useRouteError"),r=Qe("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function oi(){let{router:e}=ri("useNavigate"),t=Qe("useNavigate"),r=w.useRef(!1);return kt(()=>{r.current=!0}),w.useCallback(async(i,s={})=>{X(r.current,Rt),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var ot={};function zt(e,t,r){!t&&!ot[e]&&(ot[e]=!0,X(!1,r))}w.memo(li);function li({routes:e,future:t,state:r,unstable_onError:n}){return Kn(e,void 0,r,n,t)}var ve="get",we="application/x-www-form-urlencoded";function Me(e){return e!=null&&typeof e.tagName=="string"}function di(e){return Me(e)&&e.tagName.toLowerCase()==="button"}function ci(e){return Me(e)&&e.tagName.toLowerCase()==="form"}function ui(e){return Me(e)&&e.tagName.toLowerCase()==="input"}function fi(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pi(e,t){return e.button===0&&(!t||t==="_self")&&!fi(e)}var pe=null;function hi(){if(pe===null)try{new FormData(document.createElement("form"),0),pe=!1}catch{pe=!0}return pe}var mi=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _e(e){return e!=null&&!mi.has(e)?(X(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${we}"`),null):e}function gi(e,t){let r,n,i,s,a;if(ci(e)){let o=e.getAttribute("action");n=o?Z(o,t):null,r=e.getAttribute("method")||ve,i=_e(e.getAttribute("enctype"))||we,s=new FormData(e)}else if(di(e)||ui(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||o.getAttribute("action");if(n=l?Z(l,t):null,r=e.getAttribute("formmethod")||o.getAttribute("method")||ve,i=_e(e.getAttribute("formenctype"))||_e(o.getAttribute("enctype"))||we,s=new FormData(o,e),!hi()){let{name:d,type:c,value:u}=e;if(c==="image"){let f=d?`${d}.`:"";s.append(`${f}x`,"0"),s.append(`${f}y`,"0")}else d&&s.append(d,u)}}else{if(Me(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ve,n=null,i=we,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vi(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&Z(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function wi(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Si(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function xi(e,t,r){let n=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let a=await wi(s,r);return a.links?a.links():[]}return[]}));return Ei(n.flat(1).filter(Si).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function lt(e,t,r,n,i,s){let a=(l,d)=>r[d]?l.route.id!==r[d].route.id:!0,o=(l,d)=>{var c;return r[d].pathname!==l.pathname||((c=r[d].route.path)==null?void 0:c.endsWith("*"))&&r[d].params["*"]!==l.params["*"]};return s==="assets"?t.filter((l,d)=>a(l,d)||o(l,d)):s==="data"?t.filter((l,d)=>{var u;let c=n.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(a(l,d)||o(l,d))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((u=r[0])==null?void 0:u.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function bi(e,t,{includeHydrateFallback:r}={}){return Ti(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function Ti(e){return[...new Set(e)]}function yi(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Ei(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let s=JSON.stringify(yi(i));return r.has(s)||(r.add(s),n.push({key:s,link:i})),n},[])}function Dt(){let e=w.useContext(oe);return Ze(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ci(){let e=w.useContext(Pe);return Ze(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var et=w.createContext(void 0);et.displayName="FrameworkContext";function jt(){let e=w.useContext(et);return Ze(e,"You must render this element inside a <HydratedRouter> element"),e}function Pi(e,t){let r=w.useContext(et),[n,i]=w.useState(!1),[s,a]=w.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:d,onMouseLeave:c,onTouchStart:u}=t,f=w.useRef(null);w.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let S=m=>{m.forEach(g=>{a(g.isIntersecting)})},b=new IntersectionObserver(S,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[e]),w.useEffect(()=>{if(n){let S=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(S)}}},[n]);let p=()=>{i(!0)},h=()=>{i(!1),a(!1)};return r?e!=="intent"?[s,f,{}]:[s,f,{onFocus:le(o,p),onBlur:le(l,h),onMouseEnter:le(d,p),onMouseLeave:le(c,h),onTouchStart:le(u,p)}]:[!1,f,{}]}function le(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Ii({page:e,...t}){let{router:r}=Dt(),n=w.useMemo(()=>It(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?w.createElement(Oi,{page:e,matches:n,...t}):null}function Mi(e){let{manifest:t,routeModules:r}=jt(),[n,i]=w.useState([]);return w.useEffect(()=>{let s=!1;return xi(e,t,r).then(a=>{s||i(a)}),()=>{s=!0}},[e,t,r]),n}function Oi({page:e,matches:t,...r}){let n=ne(),{manifest:i,routeModules:s}=jt(),{basename:a}=Dt(),{loaderData:o,matches:l}=Ci(),d=w.useMemo(()=>lt(e,t,l,i,n,"data"),[e,t,l,i,n]),c=w.useMemo(()=>lt(e,t,l,i,n,"assets"),[e,t,l,i,n]),u=w.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let h=new Set,S=!1;if(t.forEach(m=>{var x;let g=i.routes[m.route.id];!g||!g.hasLoader||(!d.some(P=>P.route.id===m.route.id)&&m.route.id in o&&((x=s[m.route.id])!=null&&x.shouldRevalidate)||g.hasClientLoader?S=!0:h.add(m.route.id))}),h.size===0)return[];let b=vi(e,a,"data");return S&&h.size>0&&b.searchParams.set("_routes",t.filter(m=>h.has(m.route.id)).map(m=>m.route.id).join(",")),[b.pathname+b.search]},[a,o,n,i,d,t,e,s]),f=w.useMemo(()=>bi(c,i),[c,i]),p=Mi(c);return w.createElement(w.Fragment,null,u.map(h=>w.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...r})),f.map(h=>w.createElement("link",{key:h,rel:"modulepreload",href:h,...r})),p.map(({key:h,link:S})=>w.createElement("link",{key:h,nonce:r.nonce,...S})))}function _i(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Bt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Bt&&(window.__reactRouterVersion="7.8.2")}catch{}var Ft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tt=w.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:s,replace:a,state:o,target:l,to:d,preventScrollReset:c,viewTransition:u,...f},p){let{basename:h}=w.useContext(K),S=typeof d=="string"&&Ft.test(d),b,m=!1;if(typeof d=="string"&&S&&(b=d,Bt))try{let y=new URL(window.location.href),T=d.startsWith("//")?new URL(y.protocol+d):new URL(d),M=Z(T.pathname,h);T.origin===y.origin&&M!=null?d=M+T.search+T.hash:m=!0}catch{X(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=Un(d,{relative:i}),[x,P,E]=Pi(n,f),_=Ni(d,{replace:a,state:o,target:l,preventScrollReset:c,relative:i,viewTransition:u});function O(y){t&&t(y),y.defaultPrevented||_(y)}let I=w.createElement("a",{...f,...E,href:b||g,onClick:m||s?t:O,ref:_i(p,P),target:l,"data-discover":!S&&r==="render"?"true":void 0});return x&&!S?w.createElement(w.Fragment,null,I,w.createElement(Ii,{page:g})):I});tt.displayName="Link";var $t=w.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:s,to:a,viewTransition:o,children:l,...d},c){let u=fe(a,{relative:d.relative}),f=ne(),p=w.useContext(Pe),{navigator:h,basename:S}=w.useContext(K),b=p!=null&&ji(u)&&o===!0,m=h.encodeLocation?h.encodeLocation(u).pathname:u.pathname,g=f.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(g=g.toLowerCase(),x=x?x.toLowerCase():null,m=m.toLowerCase()),x&&S&&(x=Z(x,S)||x);const P=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let E=g===m||!i&&g.startsWith(m)&&g.charAt(P)==="/",_=x!=null&&(x===m||!i&&x.startsWith(m)&&x.charAt(m.length)==="/"),O={isActive:E,isPending:_,isTransitioning:b},I=E?t:void 0,y;typeof n=="function"?y=n(O):y=[n,E?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let T=typeof s=="function"?s(O):s;return w.createElement(tt,{...d,"aria-current":I,className:y,ref:c,style:T,to:a,viewTransition:o},typeof l=="function"?l(O):l)});$t.displayName="NavLink";var Li=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:s,method:a=ve,action:o,onSubmit:l,relative:d,preventScrollReset:c,viewTransition:u,...f},p)=>{let h=zi(),S=Di(o,{relative:d}),b=a.toLowerCase()==="get"?"get":"post",m=typeof o=="string"&&Ft.test(o),g=x=>{if(l&&l(x),x.defaultPrevented)return;x.preventDefault();let P=x.nativeEvent.submitter,E=(P==null?void 0:P.getAttribute("formmethod"))||a;h(P||x.currentTarget,{fetcherKey:t,method:E,navigate:r,replace:i,state:s,relative:d,preventScrollReset:c,viewTransition:u})};return w.createElement("form",{ref:p,method:b,action:S,onSubmit:n?l:g,...f,"data-discover":!m&&e==="render"?"true":void 0})});Li.displayName="Form";function Ai(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gt(e){let t=w.useContext(oe);return D(t,Ai(e)),t}function Ni(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:s,viewTransition:a}={}){let o=qn(),l=ne(),d=fe(e,{relative:s});return w.useCallback(c=>{if(pi(c,t)){c.preventDefault();let u=r!==void 0?r:Fe(l)===Fe(d);o(e,{replace:u,state:n,preventScrollReset:i,relative:s,viewTransition:a})}},[l,o,d,r,n,t,e,i,s,a])}var Ri=0,ki=()=>`__${String(++Ri)}__`;function zi(){let{router:e}=Gt("useSubmit"),{basename:t}=w.useContext(K),r=si();return w.useCallback(async(n,i={})=>{let{action:s,method:a,encType:o,formData:l,body:d}=gi(n,t);if(i.navigate===!1){let c=i.fetcherKey||ki();await e.fetch(c,r,i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:d,formMethod:i.method||a,formEncType:i.encType||o,flushSync:i.flushSync})}else await e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:d,formMethod:i.method||a,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function Di(e,{relative:t}={}){let{basename:r}=w.useContext(K),n=w.useContext(J);D(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),s={...fe(e||".",{relative:t})},a=ne();if(e==null){s.search=a.search;let o=new URLSearchParams(s.search),l=o.getAll("index");if(l.some(c=>c==="")){o.delete("index"),l.filter(u=>u).forEach(u=>o.append("index",u));let c=o.toString();s.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:q([r,s.pathname])),Fe(s)}function ji(e,{relative:t}={}){let r=w.useContext(Nt);D(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Gt("useViewTransitionState"),i=fe(e,{relative:t});if(!r.isTransitioning)return!1;let s=Z(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=Z(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Te(i.pathname,a)!=null||Te(i.pathname,s)!=null}const dt="routerLinkTestId",Vt=({color:e,block:t,href:r,to:n,children:i,withIcon:s=!1})=>{const a=k(t,"link",`link--${e}`,{"link--icon":s});return n?v.jsx(tt,{"data-testid":dt,to:n,className:a,children:i}):r?v.jsx("a",{href:r,"data-testid":dt,className:a,target:"_blank",rel:"noopener noreferrer",children:i}):null},Bi="leftIconLinkTestId",Fi="rightIconLinkTestId",$i=({RightIcon:e,LeftIcon:t,children:r,...n})=>v.jsxs(Vt,{withIcon:!0,...n,children:[!!t&&v.jsx(t,{"data-testid":Bi}),r,!!e&&v.jsx(e,{"data-testid":Fi})]}),Gi=({block:e,to:t,children:r})=>{const n=i=>k(e,"nav-link",{_active:i});return v.jsx($t,{className:({isActive:i})=>n(i),to:t,children:r})},Vi=Object.freeze({LEFT:"left",RIGHT:"right"}),Hi="paginationTestId",Wi="paginationArrowLeftTestId",Yi="paginationArrowRightTestId",Ui=({block:e,...t})=>v.jsx("div",{"data-testid":Hi,className:k(e,"pagination"),children:v.jsx(ce.Body,{...t})}),qi=({onClick:e,isSelected:t,page:r,disabled:n=!1})=>v.jsx("button",{disabled:n,onClick:e,className:k("","pagination__button",{"_current-page":t}),children:r}),Xi=({onClick:e,direction:t,disabled:r=!1})=>{const n=()=>t===Vi.LEFT?v.jsx(W.ArrowNarrowLeft,{"data-testid":Wi,className:"pagination__arrow"}):v.jsx(W.ArrowNarrowRight,{"data-testid":Yi,className:"pagination__arrow"});return v.jsx("button",{type:"button",onClick:e,disabled:r,className:"pagination__button",children:n()})},Ki=({pages:e,currentPage:t,onPageClick:r,onPrevClick:n,onNextClick:i,isLoading:s=!1})=>{const a=t===1||s,o=t===e.at(-1)||s,l=()=>e.map(d=>{const c=d===t,u=()=>{r(d)};return v.jsx(ce.Page,{isSelected:c,onClick:u,disabled:s,page:d},d)});return v.jsxs("div",{className:"pagination__body",children:[v.jsx(ce.Arrow,{disabled:a,onClick:n,direction:"left"}),l(),v.jsx(ce.Arrow,{disabled:o,onClick:i,direction:"right"})]})},ce=Object.assign(Ui,{Page:qi,Arrow:Xi,Body:Ki}),Ji=({block:e,...t})=>v.jsx(ur,{className:k(e,"range-slider"),...t,range:!0}),Qi=(e,t,r)=>{if(!r||!t.trim())return e;const n=e.filter(i=>i.toLowerCase().includes(t.toLowerCase()));return n.length>0?n:null},Zi=({options:e,onClick:t,handleSelect:r,onClickToOptions:n,isOpen:i,value:s,onChange:a,block:o,id:l="select",name:d="select",disabled:c,hasSearch:u=!1,...f})=>{const p=C.useMemo(()=>Qi(e,s,u),[e,s,u]),h=S=>{a(S),r(u)};return v.jsxs(ee.Wrapper,{onClickOutside:r,isOpen:i,block:o,disabled:c,children:[v.jsxs(ee.Block,{onClick:t,block:"select",children:[v.jsx(ee.Input,{disabled:c,id:l,name:d,value:s,onChange:h,hasSearch:u,...f}),v.jsx(ee.Arrow,{})]}),v.jsx(ee.List,{options:p,onClick:n,value:s})]})},es=({options:e,onClick:t,value:r})=>e?v.jsx("ul",{className:"select__options",children:e.map(n=>{const i=n===r,s=()=>{t(n)};return v.jsx(ee.Option,{isSelected:i,onOptionClick:s,option:n},n)})}):v.jsx("ul",{className:"select__options",children:v.jsx("li",{className:"select__option select__option_empty",children:"Nothing found"})}),ts=({isSelected:e,option:t,onOptionClick:r})=>v.jsx("li",{className:k("","select__option",{_selected:e}),onClick:r,children:t}),rs=({onChange:e,hasSearch:t,...r})=>v.jsx(Pt,{isReadOnly:!t,isTransparent:!0,onChange:e,...r}),ns=()=>v.jsx(W.ArrowNarrowDown,{className:"select__arrow"}),is=({children:e,onClick:t})=>v.jsx("div",{onClick:t,className:"select__block",children:e}),ss="selectTestId",as=He(is,"select"),os=({children:e,isOpen:t,onClickOutside:r,block:n,disabled:i=!1})=>{const s=Ye(r);return v.jsx("div",{ref:s,"data-testid":ss,className:k(n,"select",{_open:t,disabled:i}),children:e})},ee=Object.assign(Zi,{List:es,Option:ts,Input:rs,Arrow:ns,Wrapper:os,Block:as});function ct(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function rt(e,t){e===void 0&&(e={}),t===void 0&&(t={});const r=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:ct(t[n])&&ct(e[n])&&Object.keys(t[n]).length>0&&rt(e[n],t[n])})}const Ht={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 ie(){const e=typeof document<"u"?document:{};return rt(e,Ht),e}const ls={document:Ht,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 B(){const e=typeof window<"u"?window:{};return rt(e,ls),e}function ds(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function cs(e){const t=e;Object.keys(t).forEach(r=>{try{t[r]=null}catch{}try{delete t[r]}catch{}})}function Wt(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function ye(){return Date.now()}function us(e){const t=B();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}function fs(e,t){t===void 0&&(t="x");const r=B();let n,i,s;const a=us(e);return r.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new r.WebKitCSSMatrix(i==="none"?"":i)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),t==="x"&&(r.WebKitCSSMatrix?i=s.m41:n.length===16?i=parseFloat(n[12]):i=parseFloat(n[4])),t==="y"&&(r.WebKitCSSMatrix?i=s.m42:n.length===16?i=parseFloat(n[13]):i=parseFloat(n[5])),i||0}function he(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function ps(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function F(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const n=r<0||arguments.length<=r?void 0:arguments[r];if(n!=null&&!ps(n)){const i=Object.keys(Object(n)).filter(s=>t.indexOf(s)<0);for(let s=0,a=i.length;s<a;s+=1){const o=i[s],l=Object.getOwnPropertyDescriptor(n,o);l!==void 0&&l.enumerable&&(he(e[o])&&he(n[o])?n[o].__swiper__?e[o]=n[o]:F(e[o],n[o]):!he(e[o])&&he(n[o])?(e[o]={},n[o].__swiper__?e[o]=n[o]:F(e[o],n[o])):e[o]=n[o])}}}return e}function me(e,t,r){e.style.setProperty(t,r)}function Yt(e){let{swiper:t,targetPosition:r,side:n}=e;const i=B(),s=-t.translate;let a=null,o;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const d=r>s?"next":"prev",c=(f,p)=>d==="next"&&f>=p||d==="prev"&&f<=p,u=()=>{o=new Date().getTime(),a===null&&(a=o);const f=Math.max(Math.min((o-a)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=s+p*(r-s);if(c(h,r)&&(h=r),t.wrapperEl.scrollTo({[n]:h}),c(h,r)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:h})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function U(e,t){t===void 0&&(t="");const r=B(),n=[...e.children];return r.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(i=>i.matches(t)):n}function hs(e,t){const r=[t];for(;r.length>0;){const n=r.shift();if(e===n)return!0;r.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function ms(e,t){const r=B();let n=t.contains(e);return!n&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=hs(e,t))),n}function Ee(e){try{console.warn(e);return}catch{}}function $e(e,t){t===void 0&&(t=[]);const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:ds(t)),r}function gs(e,t){const r=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function vs(e,t){const r=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function Q(e,t){return B().getComputedStyle(e,null).getPropertyValue(t)}function ut(e){let t=e,r;if(t){for(r=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(r+=1);return r}}function ws(e,t){const r=[];let n=e.parentElement;for(;n;)r.push(n),n=n.parentElement;return r}function ft(e,t,r){const n=B();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function pt(e,t){t===void 0&&(t=""),typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:r=>r}).createHTML(t):e.innerHTML=t}let Le;function Ss(){const e=B(),t=ie();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ut(){return Le||(Le=Ss()),Le}let Ae;function xs(e){let{userAgent:t}=e===void 0?{}:e;const r=Ut(),n=B(),i=n.navigator.platform,s=t||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,l=n.screen.height,d=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i==="Win32";let h=i==="MacIntel";const S=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&h&&r.touch&&S.indexOf(`${o}x${l}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),d&&!p&&(a.os="android",a.android=!0),(c||f||u)&&(a.os="ios",a.ios=!0),a}function qt(e){return e===void 0&&(e={}),Ae||(Ae=xs(e)),Ae}let Ne;function bs(){const e=B(),t=qt();let r=!1;function n(){const o=e.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(n()){const o=String(e.navigator.userAgent);if(o.includes("Version/")){const[l,d]=o.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));r=l<16||l===16&&d<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=n(),a=s||i&&t.ios;return{isSafari:r||s,needPerspectiveFix:r,need3dFix:a,isWebView:i}}function Xt(){return Ne||(Ne=bs()),Ne}function Ts(e){let{swiper:t,on:r,emit:n}=e;const i=B();let s=null,a=null;const o=()=>{!t||t.destroyed||!t.initialized||(n("beforeResize"),n("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(u=>{a=i.requestAnimationFrame(()=>{const{width:f,height:p}=t;let h=f,S=p;u.forEach(b=>{let{contentBoxSize:m,contentRect:g,target:x}=b;x&&x!==t.el||(h=g?g.width:(m[0]||m).inlineSize,S=g?g.height:(m[0]||m).blockSize)}),(h!==f||S!==p)&&o()})}),s.observe(t.el))},d=()=>{a&&i.cancelAnimationFrame(a),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},c=()=>{!t||t.destroyed||!t.initialized||n("orientationchange")};r("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",o),i.addEventListener("orientationchange",c)}),r("destroy",()=>{d(),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",c)})}function ys(e){let{swiper:t,extendParams:r,on:n,emit:i}=e;const s=[],a=B(),o=function(c,u){u===void 0&&(u={});const f=a.MutationObserver||a.WebkitMutationObserver,p=new f(h=>{if(t.__preventObserver__)return;if(h.length===1){i("observerUpdate",h[0]);return}const S=function(){i("observerUpdate",h[0])};a.requestAnimationFrame?a.requestAnimationFrame(S):a.setTimeout(S,0)});p.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:t.isElement||(typeof u.childList>"u"?!0:u).childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),s.push(p)},l=()=>{if(t.params.observer){if(t.params.observeParents){const c=ws(t.hostEl);for(let u=0;u<c.length;u+=1)o(c[u])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}},d=()=>{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};r({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",d)}var Es={on(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const i=r?"unshift":"push";return e.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][i](t)}),n},once(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;function i(){n.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];t.apply(n,a)}return i.__emitterProxy=t,n.on(e,i,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const n=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[n](e),r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||e.split(" ").forEach(n=>{typeof t>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&r.eventsListeners[n].splice(s,1)})}),r},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,r,n;for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return typeof s[0]=="string"||Array.isArray(s[0])?(t=s[0],r=s.slice(1,s.length),n=e):(t=s[0].events,r=s[0].data,n=s[0].context||e),r.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach(l=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(d=>{d.apply(n,[l,...r])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(d=>{d.apply(n,r)})}),e}};function Cs(){const e=this;let t,r;const n=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=n.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?r=e.params.height:r=n.clientHeight,!(t===0&&e.isHorizontal()||r===0&&e.isVertical())&&(t=t-parseInt(Q(n,"padding-left")||0,10)-parseInt(Q(n,"padding-right")||0,10),r=r-parseInt(Q(n,"padding-top")||0,10)-parseInt(Q(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(r)&&(r=0),Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r}))}function Ps(){const e=this;function t(T,M){return parseFloat(T.getPropertyValue(e.getDirectionLabel(M))||0)}const r=e.params,{wrapperEl:n,slidesEl:i,size:s,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&r.virtual.enabled,d=l?e.virtual.slides.length:e.slides.length,c=U(i,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:c.length;let f=[];const p=[],h=[];let S=r.slidesOffsetBefore;typeof S=="function"&&(S=r.slidesOffsetBefore.call(e));let b=r.slidesOffsetAfter;typeof b=="function"&&(b=r.slidesOffsetAfter.call(e));const m=e.snapGrid.length,g=e.slidesGrid.length;let x=r.spaceBetween,P=-S,E=0,_=0;if(typeof s>"u")return;typeof x=="string"&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*s:typeof x=="string"&&(x=parseFloat(x)),e.virtualSize=-x,c.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(me(n,"--swiper-centered-offset-before",""),me(n,"--swiper-centered-offset-after",""));const O=r.grid&&r.grid.rows>1&&e.grid;O?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let I;const y=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(T=>typeof r.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<u;T+=1){I=0;let M;if(c[T]&&(M=c[T]),O&&e.grid.updateSlide(T,M,c),!(c[T]&&Q(M,"display")==="none")){if(r.slidesPerView==="auto"){y&&(c[T].style[e.getDirectionLabel("width")]="");const L=getComputedStyle(M),R=M.style.transform,G=M.style.webkitTransform;if(R&&(M.style.transform="none"),G&&(M.style.webkitTransform="none"),r.roundLengths)I=e.isHorizontal()?ft(M,"width"):ft(M,"height");else{const V=t(L,"width"),A=t(L,"padding-left"),z=t(L,"padding-right"),j=t(L,"margin-left"),N=t(L,"margin-right"),H=L.getPropertyValue("box-sizing");if(H&&H==="border-box")I=V+j+N;else{const{clientWidth:or,offsetWidth:lr}=M;I=V+A+z+j+N+(lr-or)}}R&&(M.style.transform=R),G&&(M.style.webkitTransform=G),r.roundLengths&&(I=Math.floor(I))}else I=(s-(r.slidesPerView-1)*x)/r.slidesPerView,r.roundLengths&&(I=Math.floor(I)),c[T]&&(c[T].style[e.getDirectionLabel("width")]=`${I}px`);c[T]&&(c[T].swiperSlideSize=I),h.push(I),r.centeredSlides?(P=P+I/2+E/2+x,E===0&&T!==0&&(P=P-s/2-x),T===0&&(P=P-s/2-x),Math.abs(P)<1/1e3&&(P=0),r.roundLengths&&(P=Math.floor(P)),_%r.slidesPerGroup===0&&f.push(P),p.push(P)):(r.roundLengths&&(P=Math.floor(P)),(_-Math.min(e.params.slidesPerGroupSkip,_))%e.params.slidesPerGroup===0&&f.push(P),p.push(P),P=P+I+x),e.virtualSize+=I+x,E=I,_+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+b,a&&o&&(r.effect==="slide"||r.effect==="coverflow")&&(n.style.width=`${e.virtualSize+x}px`),r.setWrapperSize&&(n.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),O&&e.grid.updateWrapperSize(I,f),!r.centeredSlides){const T=[];for(let M=0;M<f.length;M+=1){let L=f[M];r.roundLengths&&(L=Math.floor(L)),f[M]<=e.virtualSize-s&&T.push(L)}f=T,Math.floor(e.virtualSize-s)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-s)}if(l&&r.loop){const T=h[0]+x;if(r.slidesPerGroup>1){const M=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),L=T*r.slidesPerGroup;for(let R=0;R<M;R+=1)f.push(f[f.length-1]+L)}for(let M=0;M<e.virtual.slidesBefore+e.virtual.slidesAfter;M+=1)r.slidesPerGroup===1&&f.push(f[f.length-1]+T),p.push(p[p.length-1]+T),e.virtualSize+=T}if(f.length===0&&(f=[0]),x!==0){const T=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");c.filter((M,L)=>!r.cssMode||r.loop?!0:L!==c.length-1).forEach(M=>{M.style[T]=`${x}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let T=0;h.forEach(L=>{T+=L+(x||0)}),T-=x;const M=T>s?T-s:0;f=f.map(L=>L<=0?-S:L>M?M+b:L)}if(r.centerInsufficientSlides){let T=0;h.forEach(L=>{T+=L+(x||0)}),T-=x;const M=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(T+M<s){const L=(s-T-M)/2;f.forEach((R,G)=>{f[G]=R-L}),p.forEach((R,G)=>{p[G]=R+L})}}if(Object.assign(e,{slides:c,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){me(n,"--swiper-centered-offset-before",`${-f[0]}px`),me(n,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const T=-e.snapGrid[0],M=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+T),e.slidesGrid=e.slidesGrid.map(L=>L+M)}if(u!==d&&e.emit("slidesLengthChange"),f.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==g&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const T=`${r.containerModifierClass}backface-hidden`,M=e.el.classList.contains(T);u<=r.maxBackfaceHiddenSlides?M||e.el.classList.add(T):M&&e.el.classList.remove(T)}}function Is(e){const t=this,r=[],n=t.virtual&&t.params.virtual.enabled;let i=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=o=>n?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=>{r.push(o)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const o=t.activeIndex+s;if(o>t.slides.length&&!n)break;r.push(a(o))}else r.push(a(t.activeIndex));for(s=0;s<r.length;s+=1)if(typeof r[s]<"u"){const o=r[s].offsetHeight;i=o>i?o:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function Ms(){const e=this,t=e.slides,r=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-r-e.cssOverflowAdjustment()}const ht=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function Os(e){e===void 0&&(e=this&&this.translate||0);const t=this,r=t.params,{slides:n,rtlTranslate:i,snapGrid:s}=t;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;i&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=r.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<n.length;l+=1){const d=n[l];let c=d.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(c-=n[0].swiperSlideOffset);const u=(a+(r.centeredSlides?t.minTranslate():0)-c)/(d.swiperSlideSize+o),f=(a-s[0]+(r.centeredSlides?t.minTranslate():0)-c)/(d.swiperSlideSize+o),p=-(a-c),h=p+t.slidesSizesGrid[l],S=p>=0&&p<=t.size-t.slidesSizesGrid[l],b=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;b&&(t.visibleSlides.push(d),t.visibleSlidesIndexes.push(l)),ht(d,b,r.slideVisibleClass),ht(d,S,r.slideFullyVisibleClass),d.progress=i?-u:u,d.originalProgress=i?-f:f}}function _s(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const r=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:a,progressLoop:o}=t;const l=s,d=a;if(n===0)i=0,s=!0,a=!0;else{i=(e-t.minTranslate())/n;const c=Math.abs(e-t.minTranslate())<1,u=Math.abs(e-t.maxTranslate())<1;s=c||i<=0,a=u||i>=1,c&&(i=0),u&&(i=1)}if(r.loop){const c=t.getSlideIndexByData(0),u=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[c],p=t.slidesGrid[u],h=t.slidesGrid[t.slidesGrid.length-1],S=Math.abs(e);S>=f?o=(S-f)/h:o=(S+h-p)/h,o>1&&(o-=1)}Object.assign(t,{progress:i,progressLoop:o,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!d&&t.emit("reachEnd toEdge"),(l&&!s||d&&!a)&&t.emit("fromEdge"),t.emit("progress",i)}const Re=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function Ls(){const e=this,{slides:t,params:r,slidesEl:n,activeIndex:i}=e,s=e.virtual&&r.virtual.enabled,a=e.grid&&r.grid&&r.grid.rows>1,o=u=>U(n,`.${r.slideClass}${u}, swiper-slide${u}`)[0];let l,d,c;if(s)if(r.loop){let u=i-e.virtual.slidesBefore;u<0&&(u=e.virtual.slides.length+u),u>=e.virtual.slides.length&&(u-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${u}"]`)}else l=o(`[data-swiper-slide-index="${i}"]`);else a?(l=t.find(u=>u.column===i),c=t.find(u=>u.column===i+1),d=t.find(u=>u.column===i-1)):l=t[i];l&&(a||(c=vs(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!c&&(c=t[0]),d=gs(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!d===0&&(d=t[t.length-1]))),t.forEach(u=>{Re(u,u===l,r.slideActiveClass),Re(u,u===c,r.slideNextClass),Re(u,u===d,r.slidePrevClass)}),e.emitSlidesClasses()}const Se=(e,t)=>{if(!e||e.destroyed||!e.params)return;const r=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,n=t.closest(r());if(n){let i=n.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(n.shadowRoot?i=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(i=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},ke=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},Ge=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);const n=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const a=i,o=[a-t];o.push(...Array.from({length:t}).map((l,d)=>a+n+d)),e.slides.forEach((l,d)=>{o.includes(l.column)&&ke(e,d)});return}const s=i+n-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=s+t;a+=1){const o=(a%r+r)%r;(o<i||o>s)&&ke(e,o)}else for(let a=Math.max(i-t,0);a<=Math.min(s+t,r-1);a+=1)a!==i&&(a>s||a<i)&&ke(e,a)};function As(e){const{slidesGrid:t,params:r}=e,n=e.rtlTranslate?e.translate:-e.translate;let i;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?n>=t[s]&&n<t[s+1]-(t[s+1]-t[s])/2?i=s:n>=t[s]&&n<t[s+1]&&(i=s+1):n>=t[s]&&(i=s);return r.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function Ns(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:i,activeIndex:s,realIndex:a,snapIndex:o}=t;let l=e,d;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=As(t)),n.indexOf(r)>=0)d=n.indexOf(r);else{const p=Math.min(i.slidesPerGroupSkip,l);d=p+Math.floor((l-p)/i.slidesPerGroup)}if(d>=n.length&&(d=n.length-1),l===s&&!t.params.loop){d!==o&&(t.snapIndex=d,t.emit("snapIndexChange"));return}if(l===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(l);return}const u=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled&&i.loop)f=c(l);else if(u){const p=t.slides.find(S=>S.column===l);let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(p),0)),f=Math.floor(h/i.grid.rows)}else if(t.slides[l]){const p=t.slides[l].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=l}else f=l;Object.assign(t,{previousSnapIndex:o,snapIndex:d,previousRealIndex:a,realIndex:f,previousIndex:s,activeIndex:l}),t.initialized&&Ge(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==f&&t.emit("realIndexChange"),t.emit("slideChange"))}function Rs(e,t){const r=this,n=r.params;let i=e.closest(`.${n.slideClass}, swiper-slide`);!i&&r.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(o=>{!i&&o.matches&&o.matches(`.${n.slideClass}, swiper-slide`)&&(i=o)});let s=!1,a;if(i){for(let o=0;o<r.slides.length;o+=1)if(r.slides[o]===i){s=!0,a=o;break}}if(i&&s)r.clickedSlide=i,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=a;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}n.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var ks={updateSize:Cs,updateSlides:Ps,updateAutoHeight:Is,updateSlidesOffset:Ms,updateSlidesProgress:Os,updateProgress:_s,updateSlidesClasses:Ls,updateActiveIndex:Ns,updateClickedSlide:Rs};function zs(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:r,rtlTranslate:n,translate:i,wrapperEl:s}=t;if(r.virtualTranslate)return n?-i:i;if(r.cssMode)return i;let a=fs(s,e);return a+=t.cssOverflowAdjustment(),n&&(a=-a),a||0}function Ds(e,t){const r=this,{rtlTranslate:n,params:i,wrapperEl:s,progress:a}=r;let o=0,l=0;const d=0;r.isHorizontal()?o=n?-e:e:l=e,i.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?o:l,i.cssMode?s[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-o:-l:i.virtualTranslate||(r.isHorizontal()?o-=r.cssOverflowAdjustment():l-=r.cssOverflowAdjustment(),s.style.transform=`translate3d(${o}px, ${l}px, ${d}px)`);let c;const u=r.maxTranslate()-r.minTranslate();u===0?c=0:c=(e-r.minTranslate())/u,c!==a&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function js(){return-this.snapGrid[0]}function Bs(){return-this.snapGrid[this.snapGrid.length-1]}function Fs(e,t,r,n,i){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),r===void 0&&(r=!0),n===void 0&&(n=!0);const s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),d=s.maxTranslate();let c;if(n&&e>l?c=l:n&&e<d?c=d:c=e,s.updateProgress(c),a.cssMode){const u=s.isHorizontal();if(t===0)o[u?"scrollLeft":"scrollTop"]=-c;else{if(!s.support.smoothScroll)return Yt({swiper:s,targetPosition:-c,side:u?"left":"top"}),!0;o.scrollTo({[u?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(c),r&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(c),r&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(f){!s||s.destroyed||f.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,r&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var $s={getTranslate:zs,setTranslate:Ds,minTranslate:js,maxTranslate:Bs,translateTo:Fs};function Gs(e,t){const r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${e}ms`,r.wrapperEl.style.transitionDelay=e===0?"0ms":""),r.emit("setTransition",e,t)}function Kt(e){let{swiper:t,runCallbacks:r,direction:n,step:i}=e;const{activeIndex:s,previousIndex:a}=t;let o=n;o||(s>a?o="next":s<a?o="prev":o="reset"),t.emit(`transition${i}`),r&&o==="reset"?t.emit(`slideResetTransition${i}`):r&&s!==a&&(t.emit(`slideChangeTransition${i}`),o==="next"?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`))}function Vs(e,t){e===void 0&&(e=!0);const r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),Kt({swiper:r,runCallbacks:e,direction:t,step:"Start"}))}function Hs(e,t){e===void 0&&(e=!0);const r=this,{params:n}=r;r.animating=!1,!n.cssMode&&(r.setTransition(0),Kt({swiper:r,runCallbacks:e,direction:t,step:"End"}))}var Ws={setTransition:Gs,transitionStart:Vs,transitionEnd:Hs};function Ys(e,t,r,n,i){e===void 0&&(e=0),r===void 0&&(r=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:d,previousIndex:c,activeIndex:u,rtlTranslate:f,wrapperEl:p,enabled:h}=s;if(!h&&!n&&!i||s.destroyed||s.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=s.params.speed);const S=Math.min(s.params.slidesPerGroupSkip,a);let b=S+Math.floor((a-S)/s.params.slidesPerGroup);b>=l.length&&(b=l.length-1);const m=-l[b];if(o.normalizeSlideIndex)for(let O=0;O<d.length;O+=1){const I=-Math.floor(m*100),y=Math.floor(d[O]*100),T=Math.floor(d[O+1]*100);typeof d[O+1]<"u"?I>=y&&I<T-(T-y)/2?a=O:I>=y&&I<T&&(a=O+1):I>=y&&(a=O)}if(s.initialized&&a!==u&&(!s.allowSlideNext&&(f?m>s.translate&&m>s.minTranslate():m<s.translate&&m<s.minTranslate())||!s.allowSlidePrev&&m>s.translate&&m>s.maxTranslate()&&(u||0)!==a))return!1;a!==(c||0)&&r&&s.emit("beforeSlideChangeStart"),s.updateProgress(m);let g;a>u?g="next":a<u?g="prev":g="reset";const x=s.virtual&&s.params.virtual.enabled;if(!(x&&i)&&(f&&-m===s.translate||!f&&m===s.translate))return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),o.effect!=="slide"&&s.setTranslate(m),g!=="reset"&&(s.transitionStart(r,g),s.transitionEnd(r,g)),!1;if(o.cssMode){const O=s.isHorizontal(),I=f?m:-m;if(t===0)x&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),x&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[O?"scrollLeft":"scrollTop"]=I})):p[O?"scrollLeft":"scrollTop"]=I,x&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Yt({swiper:s,targetPosition:I,side:O?"left":"top"}),!0;p.scrollTo({[O?"left":"top"]:I,behavior:"smooth"})}return!0}const _=Xt().isSafari;return x&&!i&&_&&s.isElement&&s.virtual.update(!1,!1,a),s.setTransition(t),s.setTranslate(m),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,n),s.transitionStart(r,g),t===0?s.transitionEnd(r,g):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(I){!s||s.destroyed||I.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(r,g))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Us(e,t,r,n){e===void 0&&(e=0),r===void 0&&(r=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const s=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a=a+i.virtual.slidesBefore;else{let o;if(s){const f=a*i.params.grid.rows;o=i.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===f).column}else o=i.getSlideIndexByData(a);const l=s?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:d}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),d&&c%2===0&&(c=c+1));let u=l-o<c;if(d&&(u=u||o<Math.ceil(c/2)),n&&d&&i.params.slidesPerView!=="auto"&&!s&&(u=!1),u){const f=d?o<i.activeIndex?"prev":"next":o-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?o+1:o-l+1,slideRealIndex:f==="next"?i.realIndex:void 0})}if(s){const f=a*i.params.grid.rows;a=i.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===f).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,t,r,n)}),i}function qs(e,t,r){t===void 0&&(t=!0);const n=this,{enabled:i,params:s,animating:a}=n;if(!i||n.destroyed)return n;typeof e>"u"&&(e=n.params.speed);let o=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<s.slidesPerGroupSkip?1:o,d=n.virtual&&s.virtual.enabled;if(s.loop){if(a&&!d&&s.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+l,e,t,r)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,e,t,r):n.slideTo(n.activeIndex+l,e,t,r)}function Xs(e,t,r){t===void 0&&(t=!0);const n=this,{params:i,snapGrid:s,slidesGrid:a,rtlTranslate:o,enabled:l,animating:d}=n;if(!l||n.destroyed)return n;typeof e>"u"&&(e=n.params.speed);const c=n.virtual&&i.virtual.enabled;if(i.loop){if(d&&!c&&i.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const u=o?n.translate:-n.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(u),h=s.map(g=>f(g)),S=i.freeMode&&i.freeMode.enabled;let b=s[h.indexOf(p)-1];if(typeof b>"u"&&(i.cssMode||S)){let g;s.forEach((x,P)=>{p>=x&&(g=P)}),typeof g<"u"&&(b=S?s[g]:s[g>0?g-1:g])}let m=0;if(typeof b<"u"&&(m=a.indexOf(b),m<0&&(m=n.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(m=m-n.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&n.isBeginning){const g=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(g,e,t,r)}else if(i.loop&&n.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{n.slideTo(m,e,t,r)}),!0;return n.slideTo(m,e,t,r)}function Ks(e,t,r){t===void 0&&(t=!0);const n=this;if(!n.destroyed)return typeof e>"u"&&(e=n.params.speed),n.slideTo(n.activeIndex,e,t,r)}function Js(e,t,r,n){t===void 0&&(t=!0),n===void 0&&(n=.5);const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let s=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[o]){const d=i.snapGrid[o],c=i.snapGrid[o+1];l-d>(c-d)*n&&(s+=i.params.slidesPerGroup)}else{const d=i.snapGrid[o-1],c=i.snapGrid[o];l-d<=(c-d)*n&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,r)}function Qs(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:r}=e,n=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.getSlideIndexWhenGrid(e.clickedIndex),s;const a=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(s):i>(o?(e.slides.length-n)/2-(e.params.grid.rows-1):e.slides.length-n)?(e.loopFix(),i=e.getSlideIndex(U(r,`${a}[data-swiper-slide-index="${s}"]`)[0]),Wt(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var Zs={slideTo:Ys,slideToLoop:Us,slideNext:qs,slidePrev:Xs,slideReset:Ks,slideToClosest:Js,slideToClickedSlide:Qs};function ea(e,t){const r=this,{params:n,slidesEl:i}=r;if(!n.loop||r.virtual&&r.params.virtual.enabled)return;const s=()=>{U(i,`.${n.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},a=()=>{const f=U(i,`.${n.slideBlankClass}`);f.forEach(p=>{p.remove()}),f.length>0&&(r.recalcSlides(),r.updateSlides())},o=r.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||o)&&a();const l=n.slidesPerGroup*(o?n.grid.rows:1),d=r.slides.length%l!==0,c=o&&r.slides.length%n.grid.rows!==0,u=f=>{for(let p=0;p<f;p+=1){const h=r.isElement?$e("swiper-slide",[n.slideBlankClass]):$e("div",[n.slideClass,n.slideBlankClass]);r.slidesEl.append(h)}};if(d){if(n.loopAddBlankSlides){const f=l-r.slides.length%l;u(f),r.recalcSlides(),r.updateSlides()}else Ee("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(c){if(n.loopAddBlankSlides){const f=n.grid.rows-r.slides.length%n.grid.rows;u(f),r.recalcSlides(),r.updateSlides()}else Ee("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();r.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next",initial:t})}function ta(e){let{slideRealIndex:t,slideTo:r=!0,direction:n,setTranslate:i,activeSlideIndex:s,initial:a,byController:o,byMousewheel:l}=e===void 0?{}:e;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:f,slidesEl:p,params:h}=d,{centeredSlides:S,initialSlide:b}=h;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&h.virtual.enabled){r&&(!h.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):h.centeredSlides&&d.snapIndex<h.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=u,d.allowSlideNext=f,d.emit("loopFix");return}let m=h.slidesPerView;m==="auto"?m=d.slidesPerViewDynamic():(m=Math.ceil(parseFloat(h.slidesPerView,10)),S&&m%2===0&&(m=m+1));const g=h.slidesPerGroupAuto?m:h.slidesPerGroup;let x=S?Math.max(g,Math.ceil(m/2)):g;x%g!==0&&(x+=g-x%g),x+=h.loopAdditionalSlides,d.loopedSlides=x;const P=d.grid&&h.grid&&h.grid.rows>1;c.length<m+x||d.params.effect==="cards"&&c.length<m+x*2?Ee("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):P&&h.grid.fill==="row"&&Ee("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],_=[],O=P?Math.ceil(c.length/h.grid.rows):c.length,I=a&&O-b<m&&!S;let y=I?b:d.activeIndex;typeof s>"u"?s=d.getSlideIndex(c.find(A=>A.classList.contains(h.slideActiveClass))):y=s;const T=n==="next"||!n,M=n==="prev"||!n;let L=0,R=0;const V=(P?c[s].column:s)+(S&&typeof i>"u"?-m/2+.5:0);if(V<x){L=Math.max(x-V,g);for(let A=0;A<x-V;A+=1){const z=A-Math.floor(A/O)*O;if(P){const j=O-z-1;for(let N=c.length-1;N>=0;N-=1)c[N].column===j&&E.push(N)}else E.push(O-z-1)}}else if(V+m>O-x){R=Math.max(V-(O-x*2),g),I&&(R=Math.max(R,m-O+b+1));for(let A=0;A<R;A+=1){const z=A-Math.floor(A/O)*O;P?c.forEach((j,N)=>{j.column===z&&_.push(N)}):_.push(z)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),d.params.effect==="cards"&&c.length<m+x*2&&(_.includes(s)&&_.splice(_.indexOf(s),1),E.includes(s)&&E.splice(E.indexOf(s),1)),M&&E.forEach(A=>{c[A].swiperLoopMoveDOM=!0,p.prepend(c[A]),c[A].swiperLoopMoveDOM=!1}),T&&_.forEach(A=>{c[A].swiperLoopMoveDOM=!0,p.append(c[A]),c[A].swiperLoopMoveDOM=!1}),d.recalcSlides(),h.slidesPerView==="auto"?d.updateSlides():P&&(E.length>0&&M||_.length>0&&T)&&d.slides.forEach((A,z)=>{d.grid.updateSlide(z,A,d.slides)}),h.watchSlidesProgress&&d.updateSlidesOffset(),r){if(E.length>0&&M){if(typeof t>"u"){const A=d.slidesGrid[y],j=d.slidesGrid[y+L]-A;l?d.setTranslate(d.translate-j):(d.slideTo(y+Math.ceil(L),0,!1,!0),i&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-j,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-j))}else if(i){const A=P?E.length/h.grid.rows:E.length;d.slideTo(d.activeIndex+A,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(_.length>0&&T)if(typeof t>"u"){const A=d.slidesGrid[y],j=d.slidesGrid[y-R]-A;l?d.setTranslate(d.translate-j):(d.slideTo(y-R,0,!1,!0),i&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-j,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-j))}else{const A=P?_.length/h.grid.rows:_.length;d.slideTo(d.activeIndex-A,0,!1,!0)}}if(d.allowSlidePrev=u,d.allowSlideNext=f,d.controller&&d.controller.control&&!o){const A={slideRealIndex:t,direction:n,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...A,slideTo:z.params.slidesPerView===h.slidesPerView?r:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...A,slideTo:d.controller.control.params.slidesPerView===h.slidesPerView?r:!1})}d.emit("loopFix")}function ra(){const e=this,{params:t,slidesEl:r}=e;if(!t.loop||!r||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];e.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;n[s]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),n.forEach(i=>{r.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var na={loopCreate:ea,loopFix:ta,loopDestroy:ra};function ia(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function sa(){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}))}var aa={setGrabCursor:ia,unsetGrabCursor:sa};function oa(e,t){t===void 0&&(t=this);function r(n){if(!n||n===ie()||n===B())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return!i&&!n.getRootNode?null:i||r(n.getRootNode().host)}return r(t)}function mt(e,t,r){const n=B(),{params:i}=e,s=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return s&&(r<=a||r>=n.innerWidth-a)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function la(e){const t=this,r=ie();let n=e;n.originalEvent&&(n=n.originalEvent);const i=t.touchEventsData;if(n.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==n.pointerId)return;i.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(i.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){mt(t,n,n.targetTouches[0].pageX);return}const{params:s,touches:a,enabled:o}=t;if(!o||!s.simulateTouch&&n.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=n.target;if(s.touchEventsTarget==="wrapper"&&!ms(l,t.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||i.isTouched&&i.isMoved)return;const d=!!s.noSwipingClass&&s.noSwipingClass!=="",c=n.composedPath?n.composedPath():n.path;d&&n.target&&n.target.shadowRoot&&c&&(l=c[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(s.noSwiping&&(f?oa(u,l):l.closest(u))){t.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const p=a.currentX,h=a.currentY;if(!mt(t,n,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=h,i.touchStartTime=ye(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let S=!0;l.matches(i.focusableElements)&&(S=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),r.activeElement&&r.activeElement.matches(i.focusableElements)&&r.activeElement!==l&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!l.matches(i.focusableElements))&&r.activeElement.blur();const b=S&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||b)&&!l.isContentEditable&&n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function da(e){const t=ie(),r=this,n=r.touchEventsData,{params:i,touches:s,rtlTranslate:a,enabled:o}=r;if(!o||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let d;if(l.type==="touchmove"){if(d=[...l.changedTouches].find(E=>E.identifier===n.touchId),!d||d.identifier!==n.touchId)return}else d=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l);return}const c=d.pageX,u=d.pageY;if(l.preventedByNestedSwiper){s.startX=c,s.startY=u;return}if(!r.allowTouchMove){l.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:c,startY:u,currentX:c,currentY:u}),n.touchStartTime=ye());return}if(i.touchReleaseOnEdges&&!i.loop)if(r.isVertical()){if(u<s.startY&&r.translate<=r.maxTranslate()||u>s.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(a&&(c>s.startX&&-r.translate<=r.maxTranslate()||c<s.startX&&-r.translate>=r.minTranslate()))return;if(!a&&(c<s.startX&&r.translate<=r.maxTranslate()||c>s.startX&&r.translate>=r.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==l.target&&l.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&l.target===t.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}n.allowTouchCallbacks&&r.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=c,s.currentY=u;const f=s.currentX-s.startX,p=s.currentY-s.startY;if(r.params.threshold&&Math.sqrt(f**2+p**2)<r.params.threshold)return;if(typeof n.isScrolling>"u"){let E;r.isHorizontal()&&s.currentY===s.startY||r.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:f*f+p*p>=25&&(E=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,n.isScrolling=r.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let h=r.isHorizontal()?f:p,S=r.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(h=Math.abs(h)*(a?1:-1),S=Math.abs(S)*(a?1:-1)),s.diff=h,h*=i.touchRatio,a&&(h=-h,S=-S);const b=r.touchesDirection;r.swipeDirection=h>0?"prev":"next",r.touchesDirection=S>0?"prev":"next";const m=r.params.loop&&!i.cssMode,g=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if(m&&g&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(E)}n.allowMomentumBounce=!1,i.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)}if(new Date().getTime(),i._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&b!==r.touchesDirection&&m&&g&&Math.abs(h)>=1){Object.assign(s,{startX:c,startY:u,currentX:c,currentY:u,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}r.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=h+n.startTranslate;let x=!0,P=i.resistanceRatio;if(i.touchReleaseOnEdges&&(P=0),h>0?(m&&g&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(i.slidesPerView!=="auto"&&r.slides.length-i.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(x=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+h)**P))):h<0&&(m&&g&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(i.slidesPerView!=="auto"&&r.slides.length-i.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(i.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),n.currentTranslate<r.maxTranslate()&&(x=!1,i.resistance&&(n.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-n.startTranslate-h)**P))),x&&(l.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),i.threshold>0)if(Math.abs(h)>i.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=r.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function ca(e){const t=this,r=t.touchEventsData;let n=e;n.originalEvent&&(n=n.originalEvent);let i;if(n.type==="touchend"||n.type==="touchcancel"){if(i=[...n.changedTouches].find(E=>E.identifier===r.touchId),!i||i.identifier!==r.touchId)return}else{if(r.touchId!==null||n.pointerId!==r.pointerId)return;i=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(t.browser.isSafari||t.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:a,touches:o,rtlTranslate:l,slidesGrid:d,enabled:c}=t;if(!c||!a.simulateTouch&&n.pointerType==="mouse")return;if(r.allowTouchCallbacks&&t.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&a.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}a.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=ye(),f=u-r.touchStartTime;if(t.allowClick){const E=n.path||n.composedPath&&n.composedPath();t.updateClickedSlide(E&&E[0]||n.target,E),t.emit("tap click",n),f<300&&u-r.lastClickTime<300&&t.emit("doubleTap doubleClick",n)}if(r.lastClickTime=ye(),Wt(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||o.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let p;if(a.followFinger?p=l?t.translate:-t.translate:p=-r.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const h=p>=-t.maxTranslate()&&!t.params.loop;let S=0,b=t.slidesSizesGrid[0];for(let E=0;E<d.length;E+=E<a.slidesPerGroupSkip?1:a.slidesPerGroup){const _=E<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof d[E+_]<"u"?(h||p>=d[E]&&p<d[E+_])&&(S=E,b=d[E+_]-d[E]):(h||p>=d[E])&&(S=E,b=d[d.length-1]-d[d.length-2])}let m=null,g=null;a.rewind&&(t.isBeginning?g=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const x=(p-d[S])/b,P=S<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(x>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?m:S+P):t.slideTo(S)),t.swipeDirection==="prev"&&(x>1-a.longSwipesRatio?t.slideTo(S+P):g!==null&&x<0&&Math.abs(x)>a.longSwipesRatio?t.slideTo(g):t.slideTo(S))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(n.target===t.navigation.nextEl||n.target===t.navigation.prevEl)?n.target===t.navigation.nextEl?t.slideTo(S+P):t.slideTo(S):(t.swipeDirection==="next"&&t.slideTo(m!==null?m:S+P),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:S))}}function gt(){const e=this,{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:s}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&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&&!a?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=i,e.allowSlideNext=n,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function ua(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function fa(){const e=this,{wrapperEl:t,rtlTranslate:r,enabled:n}=e;if(!n)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 i;const s=e.maxTranslate()-e.minTranslate();s===0?i=0:i=(e.translate-e.minTranslate())/s,i!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function pa(e){const t=this;Se(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function ha(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Jt=(e,t)=>{const r=ie(),{params:n,el:i,wrapperEl:s,device:a}=e,o=!!n.nested,l=t==="on"?"addEventListener":"removeEventListener",d=t;!i||typeof i=="string"||(r[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),r[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),r[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),r[l]("touchend",e.onTouchEnd,{passive:!0}),r[l]("pointerup",e.onTouchEnd,{passive:!0}),r[l]("pointercancel",e.onTouchEnd,{passive:!0}),r[l]("touchcancel",e.onTouchEnd,{passive:!0}),r[l]("pointerout",e.onTouchEnd,{passive:!0}),r[l]("pointerleave",e.onTouchEnd,{passive:!0}),r[l]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[l]("click",e.onClick,!0),n.cssMode&&s[l]("scroll",e.onScroll),n.updateOnWindowResize?e[d](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",gt,!0):e[d]("observerUpdate",gt,!0),i[l]("load",e.onLoad,{capture:!0}))};function ma(){const e=this,{params:t}=e;e.onTouchStart=la.bind(e),e.onTouchMove=da.bind(e),e.onTouchEnd=ca.bind(e),e.onDocumentTouchStart=ha.bind(e),t.cssMode&&(e.onScroll=fa.bind(e)),e.onClick=ua.bind(e),e.onLoad=pa.bind(e),Jt(e,"on")}function ga(){Jt(this,"off")}var va={attachEvents:ma,detachEvents:ga};const vt=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function wa(){const e=this,{realIndex:t,initialized:r,params:n,el:i}=e,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=ie(),o=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?e.el:a.querySelector(n.breakpointsBase),d=e.getBreakpoint(s,o,l);if(!d||e.currentBreakpoint===d)return;const u=(d in s?s[d]:void 0)||e.originalParams,f=vt(e,n),p=vt(e,u),h=e.params.grabCursor,S=u.grabCursor,b=n.enabled;f&&!p?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&p&&(i.classList.add(`${n.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&n.grid.fill==="column")&&i.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!S?e.unsetGrabCursor():!h&&S&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(_=>{if(typeof u[_]>"u")return;const O=n[_]&&n[_].enabled,I=u[_]&&u[_].enabled;O&&!I&&e[_].disable(),!O&&I&&e[_].enable()});const m=u.direction&&u.direction!==n.direction,g=n.loop&&(u.slidesPerView!==n.slidesPerView||m),x=n.loop;m&&r&&e.changeDirection(),F(e.params,u);const P=e.params.enabled,E=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),b&&!P?e.disable():!b&&P&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",u),r&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!x&&E?(e.loopCreate(t),e.updateSlides()):x&&!E&&e.loopDestroy()),e.emit("breakpoint",u)}function Sa(e,t,r){if(t===void 0&&(t="window"),!e||t==="container"&&!r)return;let n=!1;const i=B(),s=t==="window"?i.innerHeight:r.clientHeight,a=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:s*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){const{point:l,value:d}=a[o];t==="window"?i.matchMedia(`(min-width: ${d}px)`).matches&&(n=l):d<=r.clientWidth&&(n=l)}return n||"max"}var xa={setBreakpoint:wa,getBreakpoint:Sa};function ba(e,t){const r=[];return e.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(i=>{n[i]&&r.push(t+i)}):typeof n=="string"&&r.push(t+n)}),r}function Ta(){const e=this,{classNames:t,params:r,rtl:n,el:i,device:s}=e,a=ba(["initialized",r.direction,{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()}function ya(){const e=this,{el:t,classNames:r}=e;!t||typeof t=="string"||(t.classList.remove(...r),e.emitContainerClasses())}var Ea={addClasses:Ta,removeClasses:ya};function Ca(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:n}=r;if(n){const i=e.slides.length-1,s=e.slidesGrid[i]+e.slidesSizesGrid[i]+n*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;r.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),r.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Pa={checkOverflow:Ca},Ve={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ia(e,t){return function(n){n===void 0&&(n={});const i=Object.keys(n)[0],s=n[i];if(typeof s!="object"||s===null){F(t,n);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in s)){F(t,n);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),F(t,n)}}const ze={eventsEmitter:Es,update:ks,translate:$s,transition:Ws,slide:Zs,loop:na,grabCursor:aa,events:va,breakpoints:xa,checkOverflow:Pa,classes:Ea},De={};let nt=class Y{constructor(){let t,r;for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];i.length===1&&i[0].constructor&&Object.prototype.toString.call(i[0]).slice(8,-1)==="Object"?r=i[0]:[t,r]=i,r||(r={}),r=F({},r),t&&!r.el&&(r.el=t);const a=ie();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const c=[];return a.querySelectorAll(r.el).forEach(u=>{const f=F({},r,{el:u});c.push(new Y(f))}),c}const o=this;o.__swiper__=!0,o.support=Ut(),o.device=qt({userAgent:r.userAgent}),o.browser=Xt(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const l={};o.modules.forEach(c=>{c({params:r,swiper:o,extendParams:Ia(r,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const d=F({},Ve,l);return o.params=F({},d,De,r),o.originalParams=F({},o.params),o.passedParams=F({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(c=>{o.on(c,o.params.on[c])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(t){return this.isHorizontal()?t:{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"}[t]}getSlideIndex(t){const{slidesEl:r,params:n}=this,i=U(r,`.${n.slideClass}, swiper-slide`),s=ut(i[0]);return ut(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:r,params:n}=t;t.slides=U(r,`.${n.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,r){const n=this;t=Math.min(Math.max(t,0),1);const i=n.minTranslate(),a=(n.maxTranslate()-i)*t+i;n.translateTo(a,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=t.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",r.join(" "))}getSlideClasses(t){const r=this;return r.destroyed?"":t.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=[];t.slides.forEach(n=>{const i=t.getSlideClasses(n);r.push({slideEl:n,classNames:i}),t.emit("_slideClass",n,i)}),t.emit("_slideClasses",r)}slidesPerViewDynamic(t,r){t===void 0&&(t="current"),r===void 0&&(r=!1);const n=this,{params:i,slides:s,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:d}=n;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let u=s[d]?Math.ceil(s[d].swiperSlideSize):0,f;for(let p=d+1;p<s.length;p+=1)s[p]&&!f&&(u+=Math.ceil(s[p].swiperSlideSize),c+=1,u>l&&(f=!0));for(let p=d-1;p>=0;p-=1)s[p]&&!f&&(u+=s[p].swiperSlideSize,c+=1,u>l&&(f=!0))}else if(t==="current")for(let u=d+1;u<s.length;u+=1)(r?a[u]+o[u]-a[d]<l:a[u]-a[d]<l)&&(c+=1);else for(let u=d-1;u>=0;u-=1)a[d]-a[u]<l&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:r,params:n}=t;n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Se(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const a=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&t.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&t.isEnd&&!n.centeredSlides){const a=t.virtual&&n.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(a.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,r){r===void 0&&(r=!0);const n=this,i=n.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${t}`),n.emitContainerClasses(),n.params.direction=t,n.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(t){const r=this;r.rtl&&t==="rtl"||!r.rtl&&t==="ltr"||(r.rtl=t==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(t){const r=this;if(r.mounted)return!0;let n=t||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const i=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):U(n,i())[0];return!a&&r.params.createElements&&(a=$e("div",r.params.wrapperClass),n.append(a),U(n,`.${r.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(r,{el:n,wrapperEl:a,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Q(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Q(n,"direction")==="rtl"),wrongRTL:Q(a,"display")==="-webkit-box"}),!0}init(t){const r=this;if(r.initialized||r.mount(t)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(void 0,!0),r.attachEvents();const i=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&i.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?Se(r,s):s.addEventListener("load",a=>{Se(r,a.target)})}),Ge(r),r.initialized=!0,Ge(r),r.emit("init"),r.emit("afterInit"),r}destroy(t,r){t===void 0&&(t=!0),r===void 0&&(r=!0);const n=this,{params:i,el:s,wrapperEl:a,slides:o}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),r&&(n.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),t!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),cs(n)),n.destroyed=!0),null}static extendDefaults(t){F(De,t)}static get extendedDefaults(){return De}static get defaults(){return Ve}static installModule(t){Y.prototype.__modules__||(Y.prototype.__modules__=[]);const r=Y.prototype.__modules__;typeof t=="function"&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(r=>Y.installModule(r)),Y):(Y.installModule(t),Y)}};Object.keys(ze).forEach(e=>{Object.keys(ze[e]).forEach(t=>{nt.prototype[t]=ze[e][t]})});nt.use([Ts,ys]);const Qt=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function re(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function ae(e,t){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:re(t[n])&&re(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:ae(e[n],t[n]):e[n]=t[n]})}function Zt(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function er(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function tr(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function rr(e){e===void 0&&(e="");const t=e.split(" ").map(n=>n.trim()).filter(n=>!!n),r=[];return t.forEach(n=>{r.indexOf(n)<0&&r.push(n)}),r.join(" ")}function Ma(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Oa(e){let{swiper:t,slides:r,passedParams:n,changedParams:i,nextEl:s,prevEl:a,scrollbarEl:o,paginationEl:l}=e;const d=i.filter(y=>y!=="children"&&y!=="direction"&&y!=="wrapperClass"),{params:c,pagination:u,navigation:f,scrollbar:p,virtual:h,thumbs:S}=t;let b,m,g,x,P,E,_,O;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(b=!0),i.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(m=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(g=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&(x=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||s)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(P=!0);const I=y=>{t[y]&&(t[y].destroy(),y==="navigation"?(t.isElement&&(t[y].prevEl.remove(),t[y].nextEl.remove()),c[y].prevEl=void 0,c[y].nextEl=void 0,t[y].prevEl=void 0,t[y].nextEl=void 0):(t.isElement&&t[y].el.remove(),c[y].el=void 0,t[y].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!n.loop?E=!0:!c.loop&&n.loop?_=!0:O=!0),d.forEach(y=>{if(re(c[y])&&re(n[y]))Object.assign(c[y],n[y]),(y==="navigation"||y==="pagination"||y==="scrollbar")&&"enabled"in n[y]&&!n[y].enabled&&I(y);else{const T=n[y];(T===!0||T===!1)&&(y==="navigation"||y==="pagination"||y==="scrollbar")?T===!1&&I(y):c[y]=n[y]}}),d.includes("controller")&&!m&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&r&&h&&c.virtual.enabled?(h.slides=r,h.update(!0)):i.includes("virtual")&&h&&c.virtual.enabled&&(r&&(h.slides=r),h.update(!0)),i.includes("children")&&r&&c.loop&&(O=!0),b&&S.init()&&S.update(!0),m&&(t.controller.control=c.controller.control),g&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),u.init(),u.render(),u.update()),x&&(t.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),t.el.appendChild(o)),o&&(c.scrollbar.el=o),p.init(),p.updateSize(),p.setTranslate()),P&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),pt(s,t.hostEl.constructor.nextButtonSvg),s.part.add("button-next"),t.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),pt(a,t.hostEl.constructor.prevButtonSvg),a.part.add("button-prev"),t.el.appendChild(a))),s&&(c.navigation.nextEl=s),a&&(c.navigation.prevEl=a),f.init(),f.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&t.changeDirection(n.direction,!1),(E||O)&&t.loopDestroy(),(_||O)&&t.loopCreate(),t.update()}function _a(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const r={on:{}},n={},i={};ae(r,Ve),r._emitClasses=!0,r.init=!1;const s={},a=Qt.map(l=>l.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(l=>{typeof e[l]>"u"||(a.indexOf(l)>=0?re(e[l])?(r[l]={},i[l]={},ae(r[l],e[l]),ae(i[l],e[l])):(r[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?n[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:r.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:s[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{r[l]===!0&&(r[l]={}),r[l]===!1&&delete r[l]}),{params:r,passedParams:i,rest:s,events:n}}function La(e,t){let{el:r,nextEl:n,prevEl:i,paginationEl:s,scrollbarEl:a,swiper:o}=e;Zt(t)&&n&&i&&(o.params.navigation.nextEl=n,o.originalParams.navigation.nextEl=n,o.params.navigation.prevEl=i,o.originalParams.navigation.prevEl=i),er(t)&&s&&(o.params.pagination.el=s,o.originalParams.pagination.el=s),tr(t)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(r)}function Aa(e,t,r,n,i){const s=[];if(!t)return s;const a=l=>{s.indexOf(l)<0&&s.push(l)};if(r&&n){const l=n.map(i),d=r.map(i);l.join("")!==d.join("")&&a("children"),n.length!==r.length&&a("children")}return Qt.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(re(e[l])&&re(t[l])){const d=Object.keys(e[l]),c=Object.keys(t[l]);d.length!==c.length?a(l):(d.forEach(u=>{e[l][u]!==t[l][u]&&a(l)}),c.forEach(u=>{e[l][u]!==t[l][u]&&a(l)}))}else e[l]!==t[l]&&a(l)}),s}const Na=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ce.apply(this,arguments)}function nr(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ir(e){const t=[];return C.Children.toArray(e).forEach(r=>{nr(r)?t.push(r):r.props&&r.props.children&&ir(r.props.children).forEach(n=>t.push(n))}),t}function Ra(e){const t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return C.Children.toArray(e).forEach(n=>{if(nr(n))t.push(n);else if(n.props&&n.props.slot&&r[n.props.slot])r[n.props.slot].push(n);else if(n.props&&n.props.children){const i=ir(n.props.children);i.length>0?i.forEach(s=>t.push(s)):r["container-end"].push(n)}else r["container-end"].push(n)}),{slides:t,slots:r}}function ka(e,t,r){if(!r)return null;const n=c=>{let u=c;return c<0?u=t.length+c:u>=t.length&&(u=u-t.length),u},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:s,to:a}=r,o=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,d=[];for(let c=o;c<l;c+=1)c>=s&&c<=a&&d.push(t[n(c)]);return d.map((c,u)=>C.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${u}`}))}function ue(e,t){return typeof window>"u"?C.useEffect(e,t):C.useLayoutEffect(e,t)}const wt=C.createContext(null),za=C.createContext(null),sr=C.forwardRef(function(e,t){let{className:r,tag:n="div",wrapperTag:i="div",children:s,onSwiper:a,...o}=e===void 0?{}:e,l=!1;const[d,c]=C.useState("swiper"),[u,f]=C.useState(null),[p,h]=C.useState(!1),S=C.useRef(!1),b=C.useRef(null),m=C.useRef(null),g=C.useRef(null),x=C.useRef(null),P=C.useRef(null),E=C.useRef(null),_=C.useRef(null),O=C.useRef(null),{params:I,passedParams:y,rest:T,events:M}=_a(o),{slides:L,slots:R}=Ra(s),G=()=>{h(!p)};Object.assign(I.on,{_containerClasses(N,H){c(H)}});const V=()=>{Object.assign(I.on,M),l=!0;const N={...I};if(delete N.wrapperClass,m.current=new nt(N),m.current.virtual&&m.current.params.virtual.enabled){m.current.virtual.slides=L;const H={cache:!1,slides:L,renderExternal:f,renderExternalUpdate:!1};ae(m.current.params.virtual,H),ae(m.current.originalParams.virtual,H)}};b.current||V(),m.current&&m.current.on("_beforeBreakpoint",G);const A=()=>{l||!M||!m.current||Object.keys(M).forEach(N=>{m.current.on(N,M[N])})},z=()=>{!M||!m.current||Object.keys(M).forEach(N=>{m.current.off(N,M[N])})};C.useEffect(()=>()=>{m.current&&m.current.off("_beforeBreakpoint",G)}),C.useEffect(()=>{!S.current&&m.current&&(m.current.emitSlidesClasses(),S.current=!0)}),ue(()=>{if(t&&(t.current=b.current),!!b.current)return m.current.destroyed&&V(),La({el:b.current,nextEl:P.current,prevEl:E.current,paginationEl:_.current,scrollbarEl:O.current,swiper:m.current},I),a&&!m.current.destroyed&&a(m.current),()=>{m.current&&!m.current.destroyed&&m.current.destroy(!0,!1)}},[]),ue(()=>{A();const N=Aa(y,g.current,L,x.current,H=>H.key);return g.current=y,x.current=L,N.length&&m.current&&!m.current.destroyed&&Oa({swiper:m.current,slides:L,passedParams:y,changedParams:N,nextEl:P.current,prevEl:E.current,scrollbarEl:O.current,paginationEl:_.current}),()=>{z()}}),ue(()=>{Na(m.current)},[u]);function j(){return I.virtual?ka(m.current,L,u):L.map((N,H)=>C.cloneElement(N,{swiper:m.current,swiperSlideIndex:H}))}return C.createElement(n,Ce({ref:b,className:rr(`${d}${r?` ${r}`:""}`)},T),C.createElement(za.Provider,{value:m.current},R["container-start"],C.createElement(i,{className:Ma(I.wrapperClass)},R["wrapper-start"],j(),R["wrapper-end"]),Zt(I)&&C.createElement(C.Fragment,null,C.createElement("div",{ref:E,className:"swiper-button-prev"}),C.createElement("div",{ref:P,className:"swiper-button-next"})),tr(I)&&C.createElement("div",{ref:O,className:"swiper-scrollbar"}),er(I)&&C.createElement("div",{ref:_,className:"swiper-pagination"}),R["container-end"]))});sr.displayName="Swiper";const ar=C.forwardRef(function(e,t){let{tag:r="div",children:n,className:i="",swiper:s,zoom:a,lazy:o,virtualIndex:l,swiperSlideIndex:d,...c}=e===void 0?{}:e;const u=C.useRef(null),[f,p]=C.useState("swiper-slide"),[h,S]=C.useState(!1);function b(P,E,_){E===u.current&&p(_)}ue(()=>{if(typeof d<"u"&&(u.current.swiperSlideIndex=d),t&&(t.current=u.current),!(!u.current||!s)){if(s.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return s.on("_slideClass",b),()=>{s&&s.off("_slideClass",b)}}}),ue(()=>{s&&u.current&&!s.destroyed&&p(s.getSlideClasses(u.current))},[s]);const m={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(m):n,x=()=>{S(!0)};return C.createElement(r,Ce({ref:u,className:rr(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:x},c),a&&C.createElement(wt.Provider,{value:m},C.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},g(),o&&!h&&C.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&C.createElement(wt.Provider,{value:m},g(),o&&!h&&C.createElement("div",{className:"swiper-lazy-preloader"})))});ar.displayName="SwiperSlide";const Da="sliderTestId",ja=({spaceBetween:e,slidesPerView:t,block:r,breakpoints:n,modules:i,children:s})=>v.jsx(sr,{className:k(r,"slider"),"data-testid":Da,modules:i,spaceBetween:e,slidesPerView:t,breakpoints:n,children:s}),Ba=Object.assign(ja,{Slide:ar}),Fa=Object.freeze({LEFT:"left",RIGHT:"right"}),$a="sliderNavigateTestId",Ga="navigateButtonTestId",Va={left:v.jsx(W.ArrowNarrowLeft,{}),right:v.jsx(W.ArrowNarrowRight,{})},Ha=({placement:e})=>v.jsx("button",{"data-testid":Ga,type:"button",className:"slider-navigate__button",children:Va[e]}),Wa=()=>v.jsx("div",{"data-testid":$a,className:"slider-navigate",children:Object.values(Fa).map(e=>v.jsx(Ha,{placement:e},e))}),Ya=({block:e,isOpen:t,textContent:r,title:n,onClick:i})=>v.jsxs(te.Layout,{isOpen:t,block:e,children:[v.jsx(te.Block,{title:n,onClick:i}),v.jsx(te.Content,{isOpen:t,children:r})]}),Ua=({isOpen:e,children:t})=>{const{style:r,contentRef:n}=We(e);return v.jsx("div",{style:r,className:"accordion__content",children:v.jsx("p",{className:"accordion__text",ref:n,children:t})})},qa=()=>v.jsx(W.ArrowNarrowDown,{className:"accordion__arrow"}),Xa=({title:e})=>v.jsx("h3",{className:"accordion__title",children:e}),Ka=({onClick:e,title:t})=>v.jsxs(te.Button,{onClick:e,children:[v.jsx(te.Title,{title:t}),v.jsx(te.Arrow,{})]}),Ja="accordionTestId",Qa=({block:e,isOpen:t,children:r})=>v.jsx("div",{"data-testid":Ja,className:k(e,"accordion",{_active:t}),children:r}),Za=({onClick:e,children:t})=>v.jsx("button",{onClick:e,type:"button",className:"accordion__button",children:t}),te=Object.assign(Ya,{Content:Ua,Arrow:qa,Title:Xa,Block:Ka,Layout:Qa,Button:Za});exports.Accordion=te;exports.Button=Ue;exports.ButtonWithIcon=Ct;exports.CATEGORIES_LIST=Fr;exports.CATEGORY_TEST_ID=Tt;exports.Category=Gr;exports.Checkbox=ge;exports.Dropdown=de;exports.FavButton=nn;exports.Field=Be;exports.FilterAccordion=se;exports.FilterButton=bn;exports.Gallery=Tn;exports.Icons=W;exports.Input=Pt;exports.LinkWithIcon=$i;exports.Logo=Vr;exports.NavLink=Gi;exports.Pagination=ce;exports.RangeSlider=Ji;exports.RouterLink=Vt;exports.Select=ee;exports.Slider=Ba;exports.SliderNavigate=Wa;exports.capitalizeFirstLetter=St;exports.cn=k;exports.dropdownOptionsMock=Dr;exports.imagesMock=zr;exports.pageSizeMock=kr;exports.rangeSliderArrayMock=jr;exports.selectOptionsMock=Nr;exports.sliderSlideArrayMock=Br;exports.totalCountPageMock=Rr;exports.useAccordionHeight=We;exports.useClickOutside=Ye;exports.useDropdown=$r;exports.useMatchMedia=yt;exports.withBlockClass=He;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const gt=require("clsx"),T=require("react"),g=require("react/jsx-runtime"),vt=require("react-image-gallery"),Ve=require("react-router"),wt=require("rc-slider"),z=(e="",t,...i)=>{const s=e?`${e}__${t} ${t}`:t;return gt.clsx(s,i)},Fe=e=>e.charAt(0).toUpperCase()+e.slice(1);var He={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Me=T.createContext&&T.createContext(He),St=["attr","size","title"];function Tt(e,t){if(e==null)return{};var i=xt(e,t),s,r;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)s=n[r],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(i[s]=e[s])}return i}function xt(e,t){if(e==null)return{};var i={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;i[s]=e[s]}return i}function oe(){return oe=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},oe.apply(this,arguments)}function Oe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,s)}return i}function ae(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Oe(Object(i),!0).forEach(function(s){bt(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Oe(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function bt(e,t,i){return t=Et(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Et(e){var t=yt(e,"string");return typeof t=="symbol"?t:t+""}function yt(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $e(e){return e&&e.map((t,i)=>T.createElement(t.tag,ae({key:i},t.attr),$e(t.child)))}function G(e){return t=>T.createElement(Ct,oe({attr:ae({},e.attr)},t),$e(e.child))}function Ct(e){var t=i=>{var{attr:s,size:r,title:n}=e,a=Tt(e,St),o=r||i.size||"1em",l;return i.className&&(l=i.className),e.className&&(l=(l?l+" ":"")+e.className),T.createElement("svg",oe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,s,a,{className:l,style:ae(ae({color:e.color||i.color},i.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),n&&T.createElement("title",null,n),e.children)};return Me!==void 0?T.createElement(Me.Consumer,null,i=>t(i)):t(He)}function It(e){return G({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},child:[]}]})(e)}function Pt(e){return G({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}function _t(e){return G({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function Mt(e){return G({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Ot(e){return G({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function Lt(e){return G({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"},child:[]}]})(e)}function At(e){return G({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z"},child:[]}]})(e)}function Nt(e){return G({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M260.062 32C138.605 32 40.134 129.701 40.134 250.232c0 41.23 11.532 79.79 31.559 112.687L32 480l121.764-38.682c31.508 17.285 67.745 27.146 106.298 27.146C381.535 468.464 480 370.749 480 250.232 480 129.701 381.535 32 260.062 32zm109.362 301.11c-5.174 12.827-28.574 24.533-38.899 25.072-10.314.547-10.608 7.994-66.84-16.434-56.225-24.434-90.052-83.844-92.719-87.67-2.669-3.812-21.78-31.047-20.749-58.455 1.038-27.413 16.047-40.346 21.404-45.725 5.351-5.387 11.486-6.352 15.232-6.413 4.428-.072 7.296-.132 10.573-.011 3.274.124 8.192-.685 12.45 10.639 4.256 11.323 14.443 39.153 15.746 41.989 1.302 2.839 2.108 6.126.102 9.771-2.012 3.653-3.042 5.935-5.961 9.083-2.935 3.148-6.174 7.042-8.792 9.449-2.92 2.665-5.97 5.572-2.9 11.269 3.068 5.693 13.653 24.356 29.779 39.736 20.725 19.771 38.598 26.329 44.098 29.317 5.515 3.004 8.806 2.67 12.226-.929 3.404-3.599 14.639-15.746 18.596-21.169 3.955-5.438 7.661-4.373 12.742-2.329 5.078 2.052 32.157 16.556 37.673 19.551 5.51 2.989 9.193 4.529 10.51 6.9 1.317 2.38.901 13.531-4.271 26.359z"},child:[]}]})(e)}function zt(e){return G({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},child:[]}]})(e)}function jt(e){return G({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function Bt(e){return G({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"},child:[]}]})(e)}function Dt(e){return G({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 378.7c-73.4 0-133.3 59.9-133.3 133.3S438.6 645.3 512 645.3 645.3 585.4 645.3 512 585.4 378.7 512 378.7zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zM512 717.1c-113.5 0-205.1-91.6-205.1-205.1S398.5 306.9 512 306.9 717.1 398.5 717.1 512 625.5 717.1 512 717.1zm213.5-370.7c-26.5 0-47.9-21.4-47.9-47.9s21.4-47.9 47.9-47.9 47.9 21.4 47.9 47.9a47.84 47.84 0 0 1-47.9 47.9z"},child:[]}]})(e)}function kt(e){return G({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"},child:[]}]})(e)}const H={ArrowNarrowRight:Mt,ArrowNarrowLeft:_t,ArrowNarrowDown:Pt,Check:Lt,Close:At,Facebook:zt,Twitter:Ot,Youtube:jt,Instagram:Dt,Whatsapp:Nt,Email:It},Gt=["Option 1","Option 2","Another Option"],Rt=100,Vt=10,Ft=Array.from({length:6},e=>({original:"src/assets/react.svg",thumbnail:"src/assets/react.svg"})),Ht=[{name:"Option 1",value:"1"},{name:"Option 2",value:"2"}],$t=[10,500],Wt=[1,2,3],qt=Object.freeze({GUIDES:"guides",REVIEWS:"reviews",NEWS:"news"}),We="categoryTestId",we=(e,t)=>{if(!e)return e;if(Array.isArray(e))return e.map(n=>we(n,t));if(!T.isValidElement(e)||!T.isValidElement(e))return e;const i=e.props.block??t,s=e.props.block?{}:{block:t},r=e.props.children?we(e.props.children,i):e.props.children;return T.cloneElement(e,s,r)},Ee=(e,t,i)=>({children:s,block:r=t,...n})=>{const a=we(s,r);return g.jsx(e,{...n,block:r,className:[i,t].filter(Boolean).join(" "),children:a})},ye=e=>{const t=T.useRef(null),i=T.useMemo(()=>{var s;return{height:e?(s=t.current)==null?void 0:s.scrollHeight:0}},[e]);return{contentRef:t,style:i}},qe=e=>{const[t,i]=T.useState(!1);return T.useEffect(()=>{const s=window.matchMedia(e);s.matches!==t&&i(s.matches);const r=()=>{i(s.matches)};return s.addEventListener("change",r),()=>{s.removeEventListener("change",r)}},[t,e]),t},Yt=e=>{const[t]=e,[i,s]=T.useState(t),[r,n]=T.useState(!1),a=qe("(pointer: coarse)");return{selectedOption:i,isDropdownOpen:r,handleOpenClick:()=>{a&&n(c=>!c)},handleOutside:c=>{n(c)},handleSelect:c=>{s(c),a&&n(!1)}}},Ce=e=>{const t=T.useRef(null);return T.useEffect(()=>{const i=s=>{const r=s.target;t.current&&r instanceof Node&&!t.current.contains(r)&&e(!1)};return document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[t,e]),t},Xt=({category:e,block:t})=>{const i=z(t,"category",`category--${e}`);return g.jsx("span",{"data-testid":We,className:i,children:Fe(e)})},Ut=({src:e,block:t})=>g.jsx("a",{className:z(t,"logo"),children:g.jsx("img",{src:e,alt:"Logo"})}),Kt=({id:e,block:t,...i})=>g.jsxs(re.Block,{htmlFor:e,block:t,children:[g.jsx(re.Input,{...i,id:e}),g.jsx(re.Indicator,{})]}),Qt="checkboxTestId",Zt="checkboxTestInputId",Jt=({children:e,block:t,htmlFor:i="checkbox"})=>{const s=z(t,"checkbox");return g.jsx("label",{"data-testid":Qt,className:s,htmlFor:i,children:e})},ei=()=>g.jsx("span",{className:"checkbox__indicator",children:g.jsx(H.Check,{})}),ti=({onChange:e,id:t="checkbox",checked:i=!1,disabled:s=!1,name:r="checkbox",hasError:n=!1})=>{const a=z("","checkbox__input",{error:n}),o=l=>{e&&e(l.target.checked)};return g.jsx("input",{"data-testid":Zt,name:r,disabled:s,className:a,checked:i,onChange:o,id:t,type:"checkbox"})},re=Object.assign(Kt,{Block:Jt,Indicator:ei,Input:ti}),ii="dropdownTestId",si=({selectedOption:e,block:t,options:i,onSelect:s,handleOpen:r,isOpen:n,onClickOutside:a,theme:o})=>{const l=Ce(a);return g.jsxs("div",{"data-testid":ii,ref:l,className:z(t,"dropdown-menu",`dropdown-menu--${o}`,{"_dropdown-active":n}),children:[g.jsx(J.Block,{children:g.jsx(J.Category,{handleOpen:r,item:e})}),g.jsx(J.List,{onSelect:s,options:i,selectedOption:e})]})},ri=({selectedOption:e,options:t,onSelect:i})=>g.jsx("ul",{className:"dropdown-menu__list",children:t.map(s=>{const{value:r}=s,n=r===e.value;return g.jsx(J.Option,{option:s,onSelect:i,isSelected:n},r)})}),ni=({option:e,isSelected:t,onSelect:i})=>{const{label:s,value:r,name:n}=e,a=()=>{i(e)};return g.jsxs("li",{"data-value":r,onClick:a,className:z("","dropdown-menu__option",{"_selected-option":t}),children:[s&&s," ",n]})},oi=({item:e,handleOpen:t})=>g.jsxs("button",{onClick:t,className:"dropdown-menu__category",children:[e==null?void 0:e.label,e==null?void 0:e.name,g.jsx(H.ArrowNarrowDown,{className:"dropdown-menu__arrow"})]}),ai=({children:e})=>g.jsx("div",{className:"dropdown-menu__block",children:e}),J=Object.assign(si,{List:ri,Option:ni,Category:oi,Block:ai}),li="favButtonTestId",di=({disabled:e,block:t,isFavorite:i,type:s,onClick:r})=>{const n=z(t,"favorite-button",`favorite-button--${s}`,{active:i});return g.jsx("button",{"data-testid":li,disabled:e,className:n,onClick:r,type:"button",children:i?g.jsx(Bt,{}):g.jsx(kt,{})})},ci="fieldTestId",ui="fieldLabelTestId",fi=({label:e,block:t,children:i,error:s,id:r="input"})=>{const n=z(t,"field");return g.jsxs("div",{"data-testid":ci,className:n,children:[!!e&&g.jsx(Se.Label,{text:e,htmlFor:r}),T.cloneElement(i,{id:r,hasError:!!s}),!!s&&g.jsx(Se.Error,{errorText:s})]})},pi=({text:e,htmlFor:t="input"})=>g.jsx("label",{"data-testid":ui,className:"field__label",htmlFor:t,children:e}),hi=({errorText:e})=>g.jsx("p",{className:"field__error",children:e}),Se=Object.assign(fi,{Label:pi,Error:hi}),mi=({children:e})=>g.jsx("div",{className:"filter-accordion__block",children:e}),Ye="filter-accordion",gi="filterAccordionTestId",vi=Ee(mi,Ye),wi=({onClick:e,title:t,isOpen:i,children:s})=>g.jsxs(Q.Layout,{isOpen:i,children:[g.jsxs(Q.Block,{block:Ye,children:[g.jsx("h2",{className:"filter-accordion__title",children:t}),g.jsx(Q.Reset,{}),g.jsx(Q.Arrow,{onClick:e})]}),g.jsx(Q.Content,{isOpen:i,children:s})]}),Si=({isOpen:e,block:t,children:i})=>g.jsx("div",{"data-testid":gi,className:z(t,"filter-accordion",{"_active-accordion":e}),children:i}),Ti=({onClick:e})=>g.jsx("button",{onClick:e,className:"filter-accordion__arrow",children:g.jsx(H.ArrowNarrowDown,{})}),xi="buttonTestId",Ie=({children:e,size:t,color:i,onClick:s,type:r="button",disabled:n=!1,isTransparent:a=!1,withIcon:o=!1,block:l})=>{const d=z(l,"button",`button--${t} button--${i}`,{"button--transparent":a,"button--icon":o});return g.jsx("button",{"data-testid":xi,disabled:n,type:r,className:d,onClick:s,children:e})},bi=({block:e})=>g.jsx(Ie,{block:e,isTransparent:!0,size:"small",color:"gray",children:"Reset"}),Ei=({isOpen:e,children:t})=>{const{style:i,contentRef:s}=ye(e);return g.jsx("div",{style:i,ref:s,className:"filter-accordion__content",children:g.jsx("div",{className:"filter-accordion__body",children:t})})},Q=Object.assign(wi,{Layout:Si,Arrow:Ti,Reset:bi,Block:vi,Content:Ei}),yi="leftIconButtonTestId",Ci="rightIconButtonTestId",Xe=({RightIcon:e,LeftIcon:t,children:i,className:s,...r})=>g.jsxs(Ie,{withIcon:!0,...r,children:[!!t&&g.jsx(t,{className:s,"data-testid":yi}),i,!!e&&g.jsx(e,{className:s,"data-testid":Ci})]}),Ii=({children:e,onClick:t,block:i})=>g.jsx(Xe,{type:"button",block:i,onClick:t,className:"button__close",RightIcon:H.Close,size:"small",color:"gray",children:e}),Pi=({images:e,block:t})=>g.jsx(vt,{items:e,additionalClass:t,showFullscreenButton:!1,showPlayButton:!1}),_i="inputTestId",Ue=({value:e,onChange:t,hasError:i,placeholder:s,block:r,disabled:n=!1,type:a="text",id:o="input",name:l="input",isReadOnly:d=!1,isTransparent:c=!1})=>{const u=z(r,"input",{error:i,transparent:c}),f=p=>{t&&t(p.currentTarget.value)};return g.jsx("input",{readOnly:d,onChange:f,disabled:n,autoComplete:"off","data-testid":_i,className:u,id:o,name:l,placeholder:s,value:e,type:a})},Le="routerLinkTestId",Ke=({color:e,block:t,href:i,to:s,children:r,withIcon:n=!1})=>{const a=z(t,"link",`link--${e}`,{"link--icon":n});return s?g.jsx(Ve.Link,{"data-testid":Le,to:s,className:a,children:r}):i?g.jsx("a",{href:i,"data-testid":Le,className:a,target:"_blank",rel:"noopener noreferrer",children:r}):null},Mi="leftIconLinkTestId",Oi="rightIconLinkTestId",Li=({RightIcon:e,LeftIcon:t,children:i,...s})=>g.jsxs(Ke,{withIcon:!0,...s,children:[!!t&&g.jsx(t,{"data-testid":Mi}),i,!!e&&g.jsx(e,{"data-testid":Oi})]}),Ai=({block:e,to:t,children:i})=>{const s=r=>z(e,"nav-link",{_active:r});return g.jsx(Ve.NavLink,{className:({isActive:r})=>s(r),to:t,children:i})},Ni=Object.freeze({LEFT:"left",RIGHT:"right"}),zi="paginationTestId",ji="paginationArrowLeftTestId",Bi="paginationArrowRightTestId",Di=({block:e,...t})=>g.jsx("div",{"data-testid":zi,className:z(e,"pagination"),children:g.jsx(ee.Body,{...t})}),ki=({onClick:e,isSelected:t,page:i,disabled:s=!1})=>g.jsx("button",{disabled:s,onClick:e,className:z("","pagination__button",{"_current-page":t}),children:i}),Gi=({onClick:e,direction:t,disabled:i=!1})=>{const s=()=>t===Ni.LEFT?g.jsx(H.ArrowNarrowLeft,{"data-testid":ji,className:"pagination__arrow"}):g.jsx(H.ArrowNarrowRight,{"data-testid":Bi,className:"pagination__arrow"});return g.jsx("button",{type:"button",onClick:e,disabled:i,className:"pagination__button",children:s()})},Ri=({pages:e,currentPage:t,onPageClick:i,onPrevClick:s,onNextClick:r,isLoading:n=!1})=>{const a=t===1||n,o=t===e.at(-1)||n,l=()=>e.map(d=>{const c=d===t,u=()=>{i(d)};return g.jsx(ee.Page,{isSelected:c,onClick:u,disabled:n,page:d},d)});return g.jsxs("div",{className:"pagination__body",children:[g.jsx(ee.Arrow,{disabled:a,onClick:s,direction:"left"}),l(),g.jsx(ee.Arrow,{disabled:o,onClick:r,direction:"right"})]})},ee=Object.assign(Di,{Page:ki,Arrow:Gi,Body:Ri}),Vi=({block:e,...t})=>g.jsx(wt,{className:z(e,"range-slider"),...t,range:!0}),Fi=(e,t,i)=>{if(!i||!t.trim())return e;const s=e.filter(r=>r.toLowerCase().includes(t.toLowerCase()));return s.length>0?s:null},Hi=({options:e,onClick:t,handleSelect:i,onClickToOptions:s,isOpen:r,value:n,onChange:a,block:o,id:l="select",name:d="select",disabled:c,hasSearch:u=!1,...f})=>{const p=T.useMemo(()=>Fi(e,n,u),[e,n,u]),h=w=>{a(w),i(u)};return g.jsxs(Y.Wrapper,{onClickOutside:i,isOpen:r,block:o,disabled:c,children:[g.jsxs(Y.Block,{onClick:t,block:"select",children:[g.jsx(Y.Input,{disabled:c,id:l,name:d,value:n,onChange:h,hasSearch:u,...f}),g.jsx(Y.Arrow,{})]}),g.jsx(Y.List,{options:p,onClick:s,value:n})]})},$i=({options:e,onClick:t,value:i})=>e?g.jsx("ul",{className:"select__options",children:e.map(s=>{const r=s===i,n=()=>{t(s)};return g.jsx(Y.Option,{isSelected:r,onOptionClick:n,option:s},s)})}):g.jsx("ul",{className:"select__options",children:g.jsx("li",{className:"select__option select__option_empty",children:"Nothing found"})}),Wi=({isSelected:e,option:t,onOptionClick:i})=>g.jsx("li",{className:z("","select__option",{_selected:e}),onClick:i,children:t}),qi=({onChange:e,hasSearch:t,...i})=>g.jsx(Ue,{isReadOnly:!t,isTransparent:!0,onChange:e,...i}),Yi=()=>g.jsx(H.ArrowNarrowDown,{className:"select__arrow"}),Xi=({children:e,onClick:t})=>g.jsx("div",{onClick:t,className:"select__block",children:e}),Ui="selectTestId",Ki=Ee(Xi,"select"),Qi=({children:e,isOpen:t,onClickOutside:i,block:s,disabled:r=!1})=>{const n=Ce(i);return g.jsx("div",{ref:n,"data-testid":Ui,className:z(s,"select",{_open:t,disabled:r}),children:e})},Y=Object.assign(Hi,{List:$i,Option:Wi,Input:qi,Arrow:Yi,Wrapper:Qi,Block:Ki});function Ae(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Pe(e,t){e===void 0&&(e={}),t===void 0&&(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]:Ae(t[s])&&Ae(e[s])&&Object.keys(t[s]).length>0&&Pe(e[s],t[s])})}const Qe={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 K(){const e=typeof document<"u"?document:{};return Pe(e,Qe),e}const Zi={document:Qe,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 Pe(e,Zi),e}function Ji(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function es(e){const t=e;Object.keys(t).forEach(i=>{try{t[i]=null}catch{}try{delete t[i]}catch{}})}function Ze(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function le(){return Date.now()}function ts(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 is(e,t){t===void 0&&(t="x");const i=D();let s,r,n;const a=ts(e);return i.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(r==="none"?"":r)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.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 ie(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function ss(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function k(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const s=i<0||arguments.length<=i?void 0:arguments[i];if(s!=null&&!ss(s)){const r=Object.keys(Object(s)).filter(n=>t.indexOf(n)<0);for(let n=0,a=r.length;n<a;n+=1){const o=r[n],l=Object.getOwnPropertyDescriptor(s,o);l!==void 0&&l.enumerable&&(ie(e[o])&&ie(s[o])?s[o].__swiper__?e[o]=s[o]:k(e[o],s[o]):!ie(e[o])&&ie(s[o])?(e[o]={},s[o].__swiper__?e[o]=s[o]:k(e[o],s[o])):e[o]=s[o])}}}return e}function se(e,t,i){e.style.setProperty(t,i)}function Je(e){let{swiper:t,targetPosition:i,side:s}=e;const r=D(),n=-t.translate;let a=null,o;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const d=i>n?"next":"prev",c=(f,p)=>d==="next"&&f>=p||d==="prev"&&f<=p,u=()=>{o=new Date().getTime(),a===null&&(a=o);const f=Math.max(Math.min((o-a)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=n+p*(i-n);if(c(h,i)&&(h=i),t.wrapperEl.scrollTo({[s]:h}),c(h,i)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:h})}),r.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=r.requestAnimationFrame(u)};u()}function W(e,t){t===void 0&&(t="");const i=D(),s=[...e.children];return i.HTMLSlotElement&&e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t?s.filter(r=>r.matches(t)):s}function rs(e,t){const i=[t];for(;i.length>0;){const s=i.shift();if(e===s)return!0;i.push(...s.children,...s.shadowRoot?s.shadowRoot.children:[],...s.assignedElements?s.assignedElements():[])}}function ns(e,t){const i=D();let s=t.contains(e);return!s&&i.HTMLSlotElement&&t instanceof HTMLSlotElement&&(s=[...t.assignedElements()].includes(e),s||(s=rs(e,t))),s}function de(e){try{console.warn(e);return}catch{}}function Te(e,t){t===void 0&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:Ji(t)),i}function os(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 as(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 q(e,t){return D().getComputedStyle(e,null).getPropertyValue(t)}function Ne(e){let t=e,i;if(t){for(i=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(i+=1);return i}}function ls(e,t){const i=[];let s=e.parentElement;for(;s;)i.push(s),s=s.parentElement;return i}function ze(e,t,i){const s=D();return 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"))}function je(e,t){t===void 0&&(t=""),typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:i=>i}).createHTML(t):e.innerHTML=t}let ue;function ds(){const e=D(),t=K();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function et(){return ue||(ue=ds()),ue}let fe;function cs(e){let{userAgent:t}=e===void 0?{}:e;const i=et(),s=D(),r=s.navigator.platform,n=t||s.navigator.userAgent,a={ios:!1,android:!1},o=s.screen.width,l=s.screen.height,d=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=r==="Win32";let h=r==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&h&&i.touch&&w.indexOf(`${o}x${l}`)>=0&&(c=n.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),d&&!p&&(a.os="android",a.android=!0),(c||f||u)&&(a.os="ios",a.ios=!0),a}function tt(e){return e===void 0&&(e={}),fe||(fe=cs(e)),fe}let pe;function us(){const e=D(),t=tt();let i=!1;function s(){const o=e.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(s()){const o=String(e.navigator.userAgent);if(o.includes("Version/")){const[l,d]=o.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));i=l<16||l===16&&d<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=s(),a=n||r&&t.ios;return{isSafari:i||n,needPerspectiveFix:i,need3dFix:a,isWebView:r}}function it(){return pe||(pe=us()),pe}function fs(e){let{swiper:t,on:i,emit:s}=e;const r=D();let n=null,a=null;const o=()=>{!t||t.destroyed||!t.initialized||(s("beforeResize"),s("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(n=new ResizeObserver(u=>{a=r.requestAnimationFrame(()=>{const{width:f,height:p}=t;let h=f,w=p;u.forEach(P=>{let{contentBoxSize:m,contentRect:x,target:v}=P;v&&v!==t.el||(h=x?x.width:(m[0]||m).inlineSize,w=x?x.height:(m[0]||m).blockSize)}),(h!==f||w!==p)&&o()})}),n.observe(t.el))},d=()=>{a&&r.cancelAnimationFrame(a),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null)},c=()=>{!t||t.destroyed||!t.initialized||s("orientationchange")};i("init",()=>{if(t.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",c)}),i("destroy",()=>{d(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",c)})}function ps(e){let{swiper:t,extendParams:i,on:s,emit:r}=e;const n=[],a=D(),o=function(c,u){u===void 0&&(u={});const f=a.MutationObserver||a.WebkitMutationObserver,p=new f(h=>{if(t.__preventObserver__)return;if(h.length===1){r("observerUpdate",h[0]);return}const w=function(){r("observerUpdate",h[0])};a.requestAnimationFrame?a.requestAnimationFrame(w):a.setTimeout(w,0)});p.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:t.isElement||(typeof u.childList>"u"?!0:u).childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),n.push(p)},l=()=>{if(t.params.observer){if(t.params.observeParents){const c=ls(t.hostEl);for(let u=0;u<c.length;u+=1)o(c[u])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}},d=()=>{n.forEach(c=>{c.disconnect()}),n.splice(0,n.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",d)}var hs={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(){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];t.apply(s,a)}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(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,i,s;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return typeof n[0]=="string"||Array.isArray(n[0])?(t=n[0],i=n.slice(1,n.length),s=e):(t=n[0].events,i=n[0].data,s=n[0].context||e),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(l=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(d=>{d.apply(s,[l,...i])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(d=>{d.apply(s,i)})}),e}};function ms(){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(q(s,"padding-left")||0,10)-parseInt(q(s,"padding-right")||0,10),i=i-parseInt(q(s,"padding-top")||0,10)-parseInt(q(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 gs(){const e=this;function t(S,y){return parseFloat(S.getPropertyValue(e.getDirectionLabel(y))||0)}const i=e.params,{wrapperEl:s,slidesEl:r,size:n,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&i.virtual.enabled,d=l?e.virtual.slides.length:e.slides.length,c=W(r,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:c.length;let f=[];const p=[],h=[];let w=i.slidesOffsetBefore;typeof w=="function"&&(w=i.slidesOffsetBefore.call(e));let P=i.slidesOffsetAfter;typeof P=="function"&&(P=i.slidesOffsetAfter.call(e));const m=e.snapGrid.length,x=e.slidesGrid.length;let v=i.spaceBetween,C=-w,b=0,O=0;if(typeof n>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*n:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,c.forEach(S=>{a?S.style.marginLeft="":S.style.marginRight="",S.style.marginBottom="",S.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(se(s,"--swiper-centered-offset-before",""),se(s,"--swiper-centered-offset-after",""));const _=i.grid&&i.grid.rows>1&&e.grid;_?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let I;const E=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(S=>typeof i.breakpoints[S].slidesPerView<"u").length>0;for(let S=0;S<u;S+=1){I=0;let y;if(c[S]&&(y=c[S]),_&&e.grid.updateSlide(S,y,c),!(c[S]&&q(y,"display")==="none")){if(i.slidesPerView==="auto"){E&&(c[S].style[e.getDirectionLabel("width")]="");const M=getComputedStyle(y),N=y.style.transform,R=y.style.webkitTransform;if(N&&(y.style.transform="none"),R&&(y.style.webkitTransform="none"),i.roundLengths)I=e.isHorizontal()?ze(y,"width"):ze(y,"height");else{const V=t(M,"width"),L=t(M,"padding-left"),j=t(M,"padding-right"),B=t(M,"margin-left"),A=t(M,"margin-right"),F=M.getPropertyValue("box-sizing");if(F&&F==="border-box")I=V+B+A;else{const{clientWidth:ht,offsetWidth:mt}=y;I=V+L+j+B+A+(mt-ht)}}N&&(y.style.transform=N),R&&(y.style.webkitTransform=R),i.roundLengths&&(I=Math.floor(I))}else I=(n-(i.slidesPerView-1)*v)/i.slidesPerView,i.roundLengths&&(I=Math.floor(I)),c[S]&&(c[S].style[e.getDirectionLabel("width")]=`${I}px`);c[S]&&(c[S].swiperSlideSize=I),h.push(I),i.centeredSlides?(C=C+I/2+b/2+v,b===0&&S!==0&&(C=C-n/2-v),S===0&&(C=C-n/2-v),Math.abs(C)<1/1e3&&(C=0),i.roundLengths&&(C=Math.floor(C)),O%i.slidesPerGroup===0&&f.push(C),p.push(C)):(i.roundLengths&&(C=Math.floor(C)),(O-Math.min(e.params.slidesPerGroupSkip,O))%e.params.slidesPerGroup===0&&f.push(C),p.push(C),C=C+I+v),e.virtualSize+=I+v,b=I,O+=1}}if(e.virtualSize=Math.max(e.virtualSize,n)+P,a&&o&&(i.effect==="slide"||i.effect==="coverflow")&&(s.style.width=`${e.virtualSize+v}px`),i.setWrapperSize&&(s.style[e.getDirectionLabel("width")]=`${e.virtualSize+v}px`),_&&e.grid.updateWrapperSize(I,f),!i.centeredSlides){const S=[];for(let y=0;y<f.length;y+=1){let M=f[y];i.roundLengths&&(M=Math.floor(M)),f[y]<=e.virtualSize-n&&S.push(M)}f=S,Math.floor(e.virtualSize-n)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-n)}if(l&&i.loop){const S=h[0]+v;if(i.slidesPerGroup>1){const y=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),M=S*i.slidesPerGroup;for(let N=0;N<y;N+=1)f.push(f[f.length-1]+M)}for(let y=0;y<e.virtual.slidesBefore+e.virtual.slidesAfter;y+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+S),p.push(p[p.length-1]+S),e.virtualSize+=S}if(f.length===0&&(f=[0]),v!==0){const S=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");c.filter((y,M)=>!i.cssMode||i.loop?!0:M!==c.length-1).forEach(y=>{y.style[S]=`${v}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let S=0;h.forEach(M=>{S+=M+(v||0)}),S-=v;const y=S>n?S-n:0;f=f.map(M=>M<=0?-w:M>y?y+P:M)}if(i.centerInsufficientSlides){let S=0;h.forEach(M=>{S+=M+(v||0)}),S-=v;const y=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(S+y<n){const M=(n-S-y)/2;f.forEach((N,R)=>{f[R]=N-M}),p.forEach((N,R)=>{p[R]=N+M})}}if(Object.assign(e,{slides:c,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){se(s,"--swiper-centered-offset-before",`${-f[0]}px`),se(s,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const S=-e.snapGrid[0],y=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+S),e.slidesGrid=e.slidesGrid.map(M=>M+y)}if(u!==d&&e.emit("slidesLengthChange"),f.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==x&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const S=`${i.containerModifierClass}backface-hidden`,y=e.el.classList.contains(S);u<=i.maxBackfaceHiddenSlides?y||e.el.classList.add(S):y&&e.el.classList.remove(S)}}function vs(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 a=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(a(o))}else i.push(a(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 ws(){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()}const Be=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};function Ss(e){e===void 0&&(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 a=-e;r&&(a=e),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 l=0;l<s.length;l+=1){const d=s[l];let c=d.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=s[0].swiperSlideOffset);const u=(a+(i.centeredSlides?t.minTranslate():0)-c)/(d.swiperSlideSize+o),f=(a-n[0]+(i.centeredSlides?t.minTranslate():0)-c)/(d.swiperSlideSize+o),p=-(a-c),h=p+t.slidesSizesGrid[l],w=p>=0&&p<=t.size-t.slidesSizesGrid[l],P=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;P&&(t.visibleSlides.push(d),t.visibleSlidesIndexes.push(l)),Be(d,P,i.slideVisibleClass),Be(d,w,i.slideFullyVisibleClass),d.progress=r?-u:u,d.originalProgress=r?-f:f}}function Ts(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:n,isEnd:a,progressLoop:o}=t;const l=n,d=a;if(s===0)r=0,n=!0,a=!0;else{r=(e-t.minTranslate())/s;const c=Math.abs(e-t.minTranslate())<1,u=Math.abs(e-t.maxTranslate())<1;n=c||r<=0,a=u||r>=1,c&&(r=0),u&&(r=1)}if(i.loop){const c=t.getSlideIndexByData(0),u=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[c],p=t.slidesGrid[u],h=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);w>=f?o=(w-f)/h:o=(w+h-p)/h,o>1&&(o-=1)}Object.assign(t,{progress:r,progressLoop:o,isBeginning:n,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),n&&!l&&t.emit("reachBeginning toEdge"),a&&!d&&t.emit("reachEnd toEdge"),(l&&!n||d&&!a)&&t.emit("fromEdge"),t.emit("progress",r)}const he=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};function xs(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:r}=e,n=e.virtual&&i.virtual.enabled,a=e.grid&&i.grid&&i.grid.rows>1,o=u=>W(s,`.${i.slideClass}${u}, swiper-slide${u}`)[0];let l,d,c;if(n)if(i.loop){let u=r-e.virtual.slidesBefore;u<0&&(u=e.virtual.slides.length+u),u>=e.virtual.slides.length&&(u-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${u}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else a?(l=t.find(u=>u.column===r),c=t.find(u=>u.column===r+1),d=t.find(u=>u.column===r-1)):l=t[r];l&&(a||(c=as(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=t[0]),d=os(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d===0&&(d=t[t.length-1]))),t.forEach(u=>{he(u,u===l,i.slideActiveClass),he(u,u===c,i.slideNextClass),he(u,u===d,i.slidePrevClass)}),e.emitSlidesClasses()}const ne=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,s=t.closest(i());if(s){let r=s.querySelector(`.${e.params.lazyPreloaderClass}`);!r&&e.isElement&&(s.shadowRoot?r=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(r=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},me=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},xe=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;if(e.params.grid&&e.params.grid.rows>1){const a=r,o=[a-t];o.push(...Array.from({length:t}).map((l,d)=>a+s+d)),e.slides.forEach((l,d)=>{o.includes(l.column)&&me(e,d)});return}const n=r+s-1;if(e.params.rewind||e.params.loop)for(let a=r-t;a<=n+t;a+=1){const o=(a%i+i)%i;(o<r||o>n)&&me(e,o)}else for(let a=Math.max(r-t,0);a<=Math.min(n+t,i-1);a+=1)a!==r&&(a>n||a<r)&&me(e,a)};function bs(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 Es(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:r,activeIndex:n,realIndex:a,snapIndex:o}=t;let l=e,d;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=bs(t)),s.indexOf(i)>=0)d=s.indexOf(i);else{const p=Math.min(r.slidesPerGroupSkip,l);d=p+Math.floor((l-p)/r.slidesPerGroup)}if(d>=s.length&&(d=s.length-1),l===n&&!t.params.loop){d!==o&&(t.snapIndex=d,t.emit("snapIndexChange"));return}if(l===n&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(l);return}const u=t.grid&&r.grid&&r.grid.rows>1;let f;if(t.virtual&&r.virtual.enabled&&r.loop)f=c(l);else if(u){const p=t.slides.find(w=>w.column===l);let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(p),0)),f=Math.floor(h/r.grid.rows)}else if(t.slides[l]){const p=t.slides[l].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=l}else f=l;Object.assign(t,{previousSnapIndex:o,snapIndex:d,previousRealIndex:a,realIndex:f,previousIndex:n,activeIndex:l}),t.initialized&&xe(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==f&&t.emit("realIndexChange"),t.emit("slideChange"))}function ys(e,t){const i=this,s=i.params;let r=e.closest(`.${s.slideClass}, swiper-slide`);!r&&i.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${s.slideClass}, swiper-slide`)&&(r=o)});let n=!1,a;if(r){for(let o=0;o<i.slides.length;o+=1)if(i.slides[o]===r){n=!0,a=o;break}}if(r&&n)i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}s.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Cs={updateSize:ms,updateSlides:gs,updateAutoHeight:vs,updateSlidesOffset:ws,updateSlidesProgress:Ss,updateProgress:Ts,updateSlidesClasses:xs,updateActiveIndex:Es,updateClickedSlide:ys};function Is(e){e===void 0&&(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 a=is(n,e);return a+=t.cssOverflowAdjustment(),s&&(a=-a),a||0}function Ps(e,t){const i=this,{rtlTranslate:s,params:r,wrapperEl:n,progress:a}=i;let o=0,l=0;const d=0;i.isHorizontal()?o=s?-e:e:l=e,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l,r.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-o:-l:r.virtualTranslate||(i.isHorizontal()?o-=i.cssOverflowAdjustment():l-=i.cssOverflowAdjustment(),n.style.transform=`translate3d(${o}px, ${l}px, ${d}px)`);let c;const u=i.maxTranslate()-i.minTranslate();u===0?c=0:c=(e-i.minTranslate())/u,c!==a&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function _s(){return-this.snapGrid[0]}function Ms(){return-this.snapGrid[this.snapGrid.length-1]}function Os(e,t,i,s,r){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),i===void 0&&(i=!0),s===void 0&&(s=!0);const n=this,{params:a,wrapperEl:o}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const l=n.minTranslate(),d=n.maxTranslate();let c;if(s&&e>l?c=l:s&&e<d?c=d:c=e,n.updateProgress(c),a.cssMode){const u=n.isHorizontal();if(t===0)o[u?"scrollLeft":"scrollTop"]=-c;else{if(!n.support.smoothScroll)return Je({swiper:n,targetPosition:-c,side:u?"left":"top"}),!0;o.scrollTo({[u?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(n.setTransition(0),n.setTranslate(c),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(c),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(f){!n||n.destroyed||f.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,n.animating=!1,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var Ls={getTranslate:Is,setTranslate:Ps,minTranslate:_s,maxTranslate:Ms,translateTo:Os};function As(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=e===0?"0ms":""),i.emit("setTransition",e,t)}function st(e){let{swiper:t,runCallbacks:i,direction:s,step:r}=e;const{activeIndex:n,previousIndex:a}=t;let o=s;o||(n>a?o="next":n<a?o="prev":o="reset"),t.emit(`transition${r}`),i&&o==="reset"?t.emit(`slideResetTransition${r}`):i&&n!==a&&(t.emit(`slideChangeTransition${r}`),o==="next"?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`))}function Ns(e,t){e===void 0&&(e=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),st({swiper:i,runCallbacks:e,direction:t,step:"Start"}))}function zs(e,t){e===void 0&&(e=!0);const i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),st({swiper:i,runCallbacks:e,direction:t,step:"End"}))}var js={setTransition:As,transitionStart:Ns,transitionEnd:zs};function Bs(e,t,i,s,r){e===void 0&&(e=0),i===void 0&&(i=!0),typeof e=="string"&&(e=parseInt(e,10));const n=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:d,previousIndex:c,activeIndex:u,rtlTranslate:f,wrapperEl:p,enabled:h}=n;if(!h&&!s&&!r||n.destroyed||n.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=n.params.speed);const w=Math.min(n.params.slidesPerGroupSkip,a);let P=w+Math.floor((a-w)/n.params.slidesPerGroup);P>=l.length&&(P=l.length-1);const m=-l[P];if(o.normalizeSlideIndex)for(let _=0;_<d.length;_+=1){const I=-Math.floor(m*100),E=Math.floor(d[_]*100),S=Math.floor(d[_+1]*100);typeof d[_+1]<"u"?I>=E&&I<S-(S-E)/2?a=_:I>=E&&I<S&&(a=_+1):I>=E&&(a=_)}if(n.initialized&&a!==u&&(!n.allowSlideNext&&(f?m>n.translate&&m>n.minTranslate():m<n.translate&&m<n.minTranslate())||!n.allowSlidePrev&&m>n.translate&&m>n.maxTranslate()&&(u||0)!==a))return!1;a!==(c||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(m);let x;a>u?x="next":a<u?x="prev":x="reset";const v=n.virtual&&n.params.virtual.enabled;if(!(v&&r)&&(f&&-m===n.translate||!f&&m===n.translate))return n.updateActiveIndex(a),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),o.effect!=="slide"&&n.setTranslate(m),x!=="reset"&&(n.transitionStart(i,x),n.transitionEnd(i,x)),!1;if(o.cssMode){const _=n.isHorizontal(),I=f?m:-m;if(t===0)v&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),v&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[_?"scrollLeft":"scrollTop"]=I})):p[_?"scrollLeft":"scrollTop"]=I,v&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1});else{if(!n.support.smoothScroll)return Je({swiper:n,targetPosition:I,side:_?"left":"top"}),!0;p.scrollTo({[_?"left":"top"]:I,behavior:"smooth"})}return!0}const O=it().isSafari;return v&&!r&&O&&n.isElement&&n.virtual.update(!1,!1,a),n.setTransition(t),n.setTranslate(m),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,x),t===0?n.transitionEnd(i,x):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(I){!n||n.destroyed||I.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,x))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function Ds(e,t,i,s){e===void 0&&(e=0),i===void 0&&(i=!0),typeof e=="string"&&(e=parseInt(e,10));const r=this;if(r.destroyed)return;typeof t>"u"&&(t=r.params.speed);const n=r.grid&&r.params.grid&&r.params.grid.rows>1;let a=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a=a+r.virtual.slidesBefore;else{let o;if(n){const f=a*r.params.grid.rows;o=r.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===f).column}else o=r.getSlideIndexByData(a);const l=n?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:d}=r.params;let c=r.params.slidesPerView;c==="auto"?c=r.slidesPerViewDynamic():(c=Math.ceil(parseFloat(r.params.slidesPerView,10)),d&&c%2===0&&(c=c+1));let u=l-o<c;if(d&&(u=u||o<Math.ceil(c/2)),s&&d&&r.params.slidesPerView!=="auto"&&!n&&(u=!1),u){const f=d?o<r.activeIndex?"prev":"next":o-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?o+1:o-l+1,slideRealIndex:f==="next"?r.realIndex:void 0})}if(n){const f=a*r.params.grid.rows;a=r.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===f).column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame(()=>{r.slideTo(a,t,i,s)}),r}function ks(e,t,i){t===void 0&&(t=!0);const s=this,{enabled:r,params:n,animating:a}=s;if(!r||s.destroyed)return s;typeof e>"u"&&(e=s.params.speed);let o=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<n.slidesPerGroupSkip?1:o,d=s.virtual&&n.virtual.enabled;if(n.loop){if(a&&!d&&n.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,e,t,i)}),!0}return n.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)}function Gs(e,t,i){t===void 0&&(t=!0);const s=this,{params:r,snapGrid:n,slidesGrid:a,rtlTranslate:o,enabled:l,animating:d}=s;if(!l||s.destroyed)return s;typeof e>"u"&&(e=s.params.speed);const c=s.virtual&&r.virtual.enabled;if(r.loop){if(d&&!c&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const u=o?s.translate:-s.translate;function f(x){return x<0?-Math.floor(Math.abs(x)):Math.floor(x)}const p=f(u),h=n.map(x=>f(x)),w=r.freeMode&&r.freeMode.enabled;let P=n[h.indexOf(p)-1];if(typeof P>"u"&&(r.cssMode||w)){let x;n.forEach((v,C)=>{p>=v&&(x=C)}),typeof x<"u"&&(P=w?n[x]:n[x>0?x-1:x])}let m=0;if(typeof P<"u"&&(m=a.indexOf(P),m<0&&(m=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(m=m-s.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),r.rewind&&s.isBeginning){const x=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(x,e,t,i)}else if(r.loop&&s.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(m,e,t,i)}),!0;return s.slideTo(m,e,t,i)}function Rs(e,t,i){t===void 0&&(t=!0);const s=this;if(!s.destroyed)return typeof e>"u"&&(e=s.params.speed),s.slideTo(s.activeIndex,e,t,i)}function Vs(e,t,i,s){t===void 0&&(t=!0),s===void 0&&(s=.5);const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);let n=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,n),o=a+Math.floor((n-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const d=r.snapGrid[o],c=r.snapGrid[o+1];l-d>(c-d)*s&&(n+=r.params.slidesPerGroup)}else{const d=r.snapGrid[o-1],c=r.snapGrid[o];l-d<=(c-d)*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 Fs(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,s=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.getSlideIndexWhenGrid(e.clickedIndex),n;const a=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(n):r>(o?(e.slides.length-s)/2-(e.params.grid.rows-1):e.slides.length-s)?(e.loopFix(),r=e.getSlideIndex(W(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),Ze(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}var Hs={slideTo:Bs,slideToLoop:Ds,slideNext:ks,slidePrev:Gs,slideReset:Rs,slideToClosest:Vs,slideToClickedSlide:Fs};function $s(e,t){const i=this,{params:s,slidesEl:r}=i;if(!s.loop||i.virtual&&i.params.virtual.enabled)return;const n=()=>{W(r,`.${s.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},a=()=>{const f=W(r,`.${s.slideBlankClass}`);f.forEach(p=>{p.remove()}),f.length>0&&(i.recalcSlides(),i.updateSlides())},o=i.grid&&s.grid&&s.grid.rows>1;s.loopAddBlankSlides&&(s.slidesPerGroup>1||o)&&a();const l=s.slidesPerGroup*(o?s.grid.rows:1),d=i.slides.length%l!==0,c=o&&i.slides.length%s.grid.rows!==0,u=f=>{for(let p=0;p<f;p+=1){const h=i.isElement?Te("swiper-slide",[s.slideBlankClass]):Te("div",[s.slideClass,s.slideBlankClass]);i.slidesEl.append(h)}};if(d){if(s.loopAddBlankSlides){const f=l-i.slides.length%l;u(f),i.recalcSlides(),i.updateSlides()}else de("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else if(c){if(s.loopAddBlankSlides){const f=s.grid.rows-i.slides.length%s.grid.rows;u(f),i.recalcSlides(),i.updateSlides()}else de("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else n();i.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next",initial:t})}function Ws(e){let{slideRealIndex:t,slideTo:i=!0,direction:s,setTranslate:r,activeSlideIndex:n,initial:a,byController:o,byMousewheel:l}=e===void 0?{}:e;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:f,slidesEl:p,params:h}=d,{centeredSlides:w,initialSlide:P}=h;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&h.virtual.enabled){i&&(!h.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):h.centeredSlides&&d.snapIndex<h.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=u,d.allowSlideNext=f,d.emit("loopFix");return}let m=h.slidesPerView;m==="auto"?m=d.slidesPerViewDynamic():(m=Math.ceil(parseFloat(h.slidesPerView,10)),w&&m%2===0&&(m=m+1));const x=h.slidesPerGroupAuto?m:h.slidesPerGroup;let v=w?Math.max(x,Math.ceil(m/2)):x;v%x!==0&&(v+=x-v%x),v+=h.loopAdditionalSlides,d.loopedSlides=v;const C=d.grid&&h.grid&&h.grid.rows>1;c.length<m+v||d.params.effect==="cards"&&c.length<m+v*2?de("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):C&&h.grid.fill==="row"&&de("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],O=[],_=C?Math.ceil(c.length/h.grid.rows):c.length,I=a&&_-P<m&&!w;let E=I?P:d.activeIndex;typeof n>"u"?n=d.getSlideIndex(c.find(L=>L.classList.contains(h.slideActiveClass))):E=n;const S=s==="next"||!s,y=s==="prev"||!s;let M=0,N=0;const V=(C?c[n].column:n)+(w&&typeof r>"u"?-m/2+.5:0);if(V<v){M=Math.max(v-V,x);for(let L=0;L<v-V;L+=1){const j=L-Math.floor(L/_)*_;if(C){const B=_-j-1;for(let A=c.length-1;A>=0;A-=1)c[A].column===B&&b.push(A)}else b.push(_-j-1)}}else if(V+m>_-v){N=Math.max(V-(_-v*2),x),I&&(N=Math.max(N,m-_+P+1));for(let L=0;L<N;L+=1){const j=L-Math.floor(L/_)*_;C?c.forEach((B,A)=>{B.column===j&&O.push(A)}):O.push(j)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),d.params.effect==="cards"&&c.length<m+v*2&&(O.includes(n)&&O.splice(O.indexOf(n),1),b.includes(n)&&b.splice(b.indexOf(n),1)),y&&b.forEach(L=>{c[L].swiperLoopMoveDOM=!0,p.prepend(c[L]),c[L].swiperLoopMoveDOM=!1}),S&&O.forEach(L=>{c[L].swiperLoopMoveDOM=!0,p.append(c[L]),c[L].swiperLoopMoveDOM=!1}),d.recalcSlides(),h.slidesPerView==="auto"?d.updateSlides():C&&(b.length>0&&y||O.length>0&&S)&&d.slides.forEach((L,j)=>{d.grid.updateSlide(j,L,d.slides)}),h.watchSlidesProgress&&d.updateSlidesOffset(),i){if(b.length>0&&y){if(typeof t>"u"){const L=d.slidesGrid[E],B=d.slidesGrid[E+M]-L;l?d.setTranslate(d.translate-B):(d.slideTo(E+Math.ceil(M),0,!1,!0),r&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-B,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-B))}else if(r){const L=C?b.length/h.grid.rows:b.length;d.slideTo(d.activeIndex+L,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(O.length>0&&S)if(typeof t>"u"){const L=d.slidesGrid[E],B=d.slidesGrid[E-N]-L;l?d.setTranslate(d.translate-B):(d.slideTo(E-N,0,!1,!0),r&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-B,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-B))}else{const L=C?O.length/h.grid.rows:O.length;d.slideTo(d.activeIndex-L,0,!1,!0)}}if(d.allowSlidePrev=u,d.allowSlideNext=f,d.controller&&d.controller.control&&!o){const L={slideRealIndex:t,direction:s,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(j=>{!j.destroyed&&j.params.loop&&j.loopFix({...L,slideTo:j.params.slidesPerView===h.slidesPerView?i:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...L,slideTo:d.controller.control.params.slidesPerView===h.slidesPerView?i:!1})}d.emit("loopFix")}function qs(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||!i||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)}var Ys={loopCreate:$s,loopFix:Ws,loopDestroy:qs};function Xs(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 Us(){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}))}var Ks={setGrabCursor:Xs,unsetGrabCursor:Us};function Qs(e,t){t===void 0&&(t=this);function i(s){if(!s||s===K()||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 De(e,t,i){const s=D(),{params:r}=e,n=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return n&&(i<=a||i>=s.innerWidth-a)?n==="prevent"?(t.preventDefault(),!0):!1:!0}function Zs(e){const t=this,i=K();let s=e;s.originalEvent&&(s=s.originalEvent);const r=t.touchEventsData;if(s.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==s.pointerId)return;r.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(r.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){De(t,s,s.targetTouches[0].pageX);return}const{params:n,touches:a,enabled:o}=t;if(!o||!n.simulateTouch&&s.pointerType==="mouse"||t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let l=s.target;if(n.touchEventsTarget==="wrapper"&&!ns(l,t.wrapperEl)||"which"in s&&s.which===3||"button"in s&&s.button>0||r.isTouched&&r.isMoved)return;const d=!!n.noSwipingClass&&n.noSwipingClass!=="",c=s.composedPath?s.composedPath():s.path;d&&s.target&&s.target.shadowRoot&&c&&(l=c[0]);const u=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,f=!!(s.target&&s.target.shadowRoot);if(n.noSwiping&&(f?Qs(u,l):l.closest(u))){t.allowClick=!0;return}if(n.swipeHandler&&!l.closest(n.swipeHandler))return;a.currentX=s.pageX,a.currentY=s.pageY;const p=a.currentX,h=a.currentY;if(!De(t,s,p))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=h,r.touchStartTime=le(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let w=!0;l.matches(r.focusableElements)&&(w=!1,l.nodeName==="SELECT"&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==l&&(s.pointerType==="mouse"||s.pointerType!=="mouse"&&!l.matches(r.focusableElements))&&i.activeElement.blur();const P=w&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||P)&&!l.isContentEditable&&s.preventDefault(),n.freeMode&&n.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function Js(e){const t=K(),i=this,s=i.touchEventsData,{params:r,touches:n,rtlTranslate:a,enabled:o}=i;if(!o||!r.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(s.touchId!==null||l.pointerId!==s.pointerId))return;let d;if(l.type==="touchmove"){if(d=[...l.changedTouches].find(b=>b.identifier===s.touchId),!d||d.identifier!==s.touchId)return}else d=l;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l);return}const c=d.pageX,u=d.pageY;if(l.preventedByNestedSwiper){n.startX=c,n.startY=u;return}if(!i.allowTouchMove){l.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:c,startY:u,currentX:c,currentY:u}),s.touchStartTime=le());return}if(r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(u<n.startY&&i.translate<=i.maxTranslate()||u>n.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else{if(a&&(c>n.startX&&-i.translate<=i.maxTranslate()||c<n.startX&&-i.translate>=i.minTranslate()))return;if(!a&&(c<n.startX&&i.translate<=i.maxTranslate()||c>n.startX&&i.translate>=i.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==l.target&&l.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&l.target===t.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",l),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=c,n.currentY=u;const f=n.currentX-n.startX,p=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(f**2+p**2)<i.params.threshold)return;if(typeof s.isScrolling>"u"){let b;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:f*f+p*p>=25&&(b=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,s.isScrolling=i.isHorizontal()?b>r.touchAngle:90-b>r.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||l.type==="touchmove"&&s.preventTouchMoveFromPointerMove){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let h=i.isHorizontal()?f:p,w=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(h=Math.abs(h)*(a?1:-1),w=Math.abs(w)*(a?1:-1)),n.diff=h,h*=r.touchRatio,a&&(h=-h,w=-w);const P=i.touchesDirection;i.swipeDirection=h>0?"prev":"next",i.touchesDirection=w>0?"prev":"next";const m=i.params.loop&&!r.cssMode,x=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(m&&x&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const b=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(b)}s.allowMomentumBounce=!1,r.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l)}if(new Date().getTime(),r._loopSwapReset!==!1&&s.isMoved&&s.allowThresholdMove&&P!==i.touchesDirection&&m&&x&&Math.abs(h)>=1){Object.assign(n,{startX:c,startY:u,currentX:c,currentY:u,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=h+s.startTranslate;let v=!0,C=r.resistanceRatio;if(r.touchReleaseOnEdges&&(C=0),h>0?(m&&x&&s.allowThresholdMove&&s.currentTranslate>(r.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(r.slidesPerView!=="auto"&&i.slides.length-r.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween: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+h)**C))):h<0&&(m&&x&&s.allowThresholdMove&&s.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(r.slidesPerView!=="auto"&&i.slides.length-r.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):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-h)**C))),v&&(l.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(h)>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()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function er(e){const t=this,i=t.touchEventsData;let s=e;s.originalEvent&&(s=s.originalEvent);let r;if(s.type==="touchend"||s.type==="touchcancel"){if(r=[...s.changedTouches].find(b=>b.identifier===i.touchId),!r||r.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;r=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(t.browser.isSafari||t.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:o,rtlTranslate:l,slidesGrid:d,enabled:c}=t;if(!c||!a.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&t.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=le(),f=u-i.touchStartTime;if(t.allowClick){const b=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(b&&b[0]||s.target,b),t.emit("tap click",s),f<300&&u-i.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(i.lastClickTime=le(),Ze(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||o.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(a.followFinger?p=l?t.translate:-t.translate:p=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const h=p>=-t.maxTranslate()&&!t.params.loop;let w=0,P=t.slidesSizesGrid[0];for(let b=0;b<d.length;b+=b<a.slidesPerGroupSkip?1:a.slidesPerGroup){const O=b<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof d[b+O]<"u"?(h||p>=d[b]&&p<d[b+O])&&(w=b,P=d[b+O]-d[b]):(h||p>=d[b])&&(w=b,P=d[d.length-1]-d[d.length-2])}let m=null,x=null;a.rewind&&(t.isBeginning?x=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const v=(p-d[w])/P,C=w<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?m:w+C):t.slideTo(w)),t.swipeDirection==="prev"&&(v>1-a.longSwipesRatio?t.slideTo(w+C):x!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?t.slideTo(x):t.slideTo(w))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(s.target===t.navigation.nextEl||s.target===t.navigation.prevEl)?s.target===t.navigation.nextEl?t.slideTo(w+C):t.slideTo(w):(t.swipeDirection==="next"&&t.slideTo(m!==null?m:w+C),t.swipeDirection==="prev"&&t.slideTo(x!==null?x:w))}}function ke(){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,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&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&&!a?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 tr(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ir(){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 sr(e){const t=this;ne(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function rr(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const rt=(e,t)=>{const i=K(),{params:s,el:r,wrapperEl:n,device:a}=e,o=!!s.nested,l=t==="on"?"addEventListener":"removeEventListener",d=t;!r||typeof r=="string"||(i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[l]("click",e.onClick,!0),s.cssMode&&n[l]("scroll",e.onScroll),s.updateOnWindowResize?e[d](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",ke,!0):e[d]("observerUpdate",ke,!0),r[l]("load",e.onLoad,{capture:!0}))};function nr(){const e=this,{params:t}=e;e.onTouchStart=Zs.bind(e),e.onTouchMove=Js.bind(e),e.onTouchEnd=er.bind(e),e.onDocumentTouchStart=rr.bind(e),t.cssMode&&(e.onScroll=ir.bind(e)),e.onClick=tr.bind(e),e.onLoad=sr.bind(e),rt(e,"on")}function or(){rt(this,"off")}var ar={attachEvents:nr,detachEvents:or};const Ge=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function lr(){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 a=K(),o=s.breakpointsBase==="window"||!s.breakpointsBase?s.breakpointsBase:"container",l=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?e.el:a.querySelector(s.breakpointsBase),d=e.getBreakpoint(n,o,l);if(!d||e.currentBreakpoint===d)return;const u=(d in n?n[d]:void 0)||e.originalParams,f=Ge(e,s),p=Ge(e,u),h=e.params.grabCursor,w=u.grabCursor,P=s.enabled;f&&!p?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&p&&(r.classList.add(`${s.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!w?e.unsetGrabCursor():!h&&w&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(O=>{if(typeof u[O]>"u")return;const _=s[O]&&s[O].enabled,I=u[O]&&u[O].enabled;_&&!I&&e[O].disable(),!_&&I&&e[O].enable()});const m=u.direction&&u.direction!==s.direction,x=s.loop&&(u.slidesPerView!==s.slidesPerView||m),v=s.loop;m&&i&&e.changeDirection(),k(e.params,u);const C=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),P&&!C?e.disable():!P&&C&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",u),i&&(x?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&b?(e.loopCreate(t),e.updateSlides()):v&&!b&&e.loopDestroy()),e.emit("breakpoint",u)}function dr(e,t,i){if(t===void 0&&(t="window"),!e||t==="container"&&!i)return;let s=!1;const r=D(),n=t==="window"?r.innerHeight:i.clientHeight,a=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:n*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){const{point:l,value:d}=a[o];t==="window"?r.matchMedia(`(min-width: ${d}px)`).matches&&(s=l):d<=i.clientWidth&&(s=l)}return s||"max"}var cr={setBreakpoint:lr,getBreakpoint:dr};function ur(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 fr(){const e=this,{classNames:t,params:i,rtl:s,el:r,device:n}=e,a=ur(["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(...a),r.classList.add(...t),e.emitContainerClasses()}function pr(){const e=this,{el:t,classNames:i}=e;!t||typeof t=="string"||(t.classList.remove(...i),e.emitContainerClasses())}var hr={addClasses:fr,removeClasses:pr};function mr(){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")}var gr={checkOverflow:mr},be={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function vr(e,t){return function(s){s===void 0&&(s={});const r=Object.keys(s)[0],n=s[r];if(typeof n!="object"||n===null){k(t,s);return}if(e[r]===!0&&(e[r]={enabled:!0}),r==="navigation"&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&"enabled"in n)){k(t,s);return}typeof e[r]=="object"&&!("enabled"in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),k(t,s)}}const ge={eventsEmitter:hs,update:Cs,translate:Ls,transition:js,slide:Hs,loop:Ys,grabCursor:Ks,events:ar,breakpoints:cr,checkOverflow:gr,classes:hr},ve={};let _e=class ${constructor(){let t,i;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?i=r[0]:[t,i]=r,i||(i={}),i=k({},i),t&&!i.el&&(i.el=t);const a=K();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const c=[];return a.querySelectorAll(i.el).forEach(u=>{const f=k({},i,{el:u});c.push(new $(f))}),c}const o=this;o.__swiper__=!0,o.support=et(),o.device=tt({userAgent:i.userAgent}),o.browser=it(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const l={};o.modules.forEach(c=>{c({params:i,swiper:o,extendParams:vr(i,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const d=k({},be,l);return o.params=k({},d,ve,i),o.originalParams=k({},o.params),o.passedParams=k({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(c=>{o.on(c,o.params.on[c])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(t){return this.isHorizontal()?t:{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"}[t]}getSlideIndex(t){const{slidesEl:i,params:s}=this,r=W(i,`.${s.slideClass}, swiper-slide`),n=Ne(r[0]);return Ne(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(i=>i.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:i,params:s}=t;t.slides=W(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(),a=(s.maxTranslate()-r)*t+r;s.translateTo(a,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,i){t===void 0&&(t="current"),i===void 0&&(i=!1);const s=this,{params:r,slides:n,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:d}=s;let c=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let u=n[d]?Math.ceil(n[d].swiperSlideSize):0,f;for(let p=d+1;p<n.length;p+=1)n[p]&&!f&&(u+=Math.ceil(n[p].swiperSlideSize),c+=1,u>l&&(f=!0));for(let p=d-1;p>=0;p-=1)n[p]&&!f&&(u+=n[p].swiperSlideSize,c+=1,u>l&&(f=!0))}else if(t==="current")for(let u=d+1;u<n.length;u+=1)(i?a[u]+o[u]-a[d]<l:a[u]-a[d]<l)&&(c+=1);else for(let u=d-1;u>=0;u-=1)a[d]-a[u]<l&&(c+=1);return c}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(a=>{a.complete&&ne(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function r(){const a=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let n;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&t.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){const a=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(a.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){i===void 0&&(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.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):W(s,r())[0];return!a&&i.params.createElements&&(a=Te("div",i.params.wrapperClass),s.append(a),W(s,`.${i.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(i,{el:s,wrapperEl:a,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:a,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||q(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||q(s,"direction")==="rtl"),wrongRTL:q(a,"display")==="-webkit-box"}),!0}init(t){const i=this;if(i.initialized||i.mount(t)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(void 0,!0),i.attachEvents();const r=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(n=>{n.complete?ne(i,n):n.addEventListener("load",a=>{ne(i,a.target)})}),xe(i),i.initialized=!0,xe(i),i.emit("init"),i.emit("afterInit"),i}destroy(t,i){t===void 0&&(t=!0),i===void 0&&(i=!0);const s=this,{params:r,el:n,wrapperEl:a,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&&typeof n!="string"&&n.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),t!==!1&&(s.el&&typeof s.el!="string"&&(s.el.swiper=null),es(s)),s.destroyed=!0),null}static extendDefaults(t){k(ve,t)}static get extendedDefaults(){return ve}static get defaults(){return be}static installModule(t){$.prototype.__modules__||($.prototype.__modules__=[]);const i=$.prototype.__modules__;typeof t=="function"&&i.indexOf(t)<0&&i.push(t)}static use(t){return Array.isArray(t)?(t.forEach(i=>$.installModule(i)),$):($.installModule(t),$)}};Object.keys(ge).forEach(e=>{Object.keys(ge[e]).forEach(t=>{_e.prototype[t]=ge[e][t]})});_e.use([fs,ps]);const nt=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function U(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Z(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]:U(t[s])&&U(e[s])&&Object.keys(t[s]).length>0?t[s].__swiper__?e[s]=t[s]:Z(e[s],t[s]):e[s]=t[s]})}function ot(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function at(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function lt(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function dt(e){e===void 0&&(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 wr(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Sr(e){let{swiper:t,slides:i,passedParams:s,changedParams:r,nextEl:n,prevEl:a,scrollbarEl:o,paginationEl:l}=e;const d=r.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:c,pagination:u,navigation:f,scrollbar:p,virtual:h,thumbs:w}=t;let P,m,x,v,C,b,O,_;r.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&!s.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(P=!0),r.includes("controller")&&s.controller&&s.controller.control&&c.controller&&!c.controller.control&&(m=!0),r.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(x=!0),r.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||o)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&(v=!0),r.includes("navigation")&&s.navigation&&(s.navigation.prevEl||a)&&(s.navigation.nextEl||n)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(C=!0);const I=E=>{t[E]&&(t[E].destroy(),E==="navigation"?(t.isElement&&(t[E].prevEl.remove(),t[E].nextEl.remove()),c[E].prevEl=void 0,c[E].nextEl=void 0,t[E].prevEl=void 0,t[E].nextEl=void 0):(t.isElement&&t[E].el.remove(),c[E].el=void 0,t[E].el=void 0))};r.includes("loop")&&t.isElement&&(c.loop&&!s.loop?b=!0:!c.loop&&s.loop?O=!0:_=!0),d.forEach(E=>{if(U(c[E])&&U(s[E]))Object.assign(c[E],s[E]),(E==="navigation"||E==="pagination"||E==="scrollbar")&&"enabled"in s[E]&&!s[E].enabled&&I(E);else{const S=s[E];(S===!0||S===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?S===!1&&I(E):c[E]=s[E]}}),d.includes("controller")&&!m&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),r.includes("children")&&i&&h&&c.virtual.enabled?(h.slides=i,h.update(!0)):r.includes("virtual")&&h&&c.virtual.enabled&&(i&&(h.slides=i),h.update(!0)),r.includes("children")&&i&&c.loop&&(_=!0),P&&w.init()&&w.update(!0),m&&(t.controller.control=c.controller.control),x&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),u.init(),u.render(),u.update()),v&&(t.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),t.el.appendChild(o)),o&&(c.scrollbar.el=o),p.init(),p.updateSize(),p.setTranslate()),C&&(t.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),je(n,t.hostEl.constructor.nextButtonSvg),n.part.add("button-next"),t.el.appendChild(n)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),je(a,t.hostEl.constructor.prevButtonSvg),a.part.add("button-prev"),t.el.appendChild(a))),n&&(c.navigation.nextEl=n),a&&(c.navigation.prevEl=a),f.init(),f.update()),r.includes("allowSlideNext")&&(t.allowSlideNext=s.allowSlideNext),r.includes("allowSlidePrev")&&(t.allowSlidePrev=s.allowSlidePrev),r.includes("direction")&&t.changeDirection(s.direction,!1),(b||_)&&t.loopDestroy(),(O||_)&&t.loopCreate(),t.update()}function Tr(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const i={on:{}},s={},r={};Z(i,be),i._emitClasses=!0,i.init=!1;const n={},a=nt.map(l=>l.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(l=>{typeof e[l]>"u"||(a.indexOf(l)>=0?U(e[l])?(i[l]={},r[l]={},Z(i[l],e[l]),Z(r[l],e[l])):(i[l]=e[l],r[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?s[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:i.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{i[l]===!0&&(i[l]={}),i[l]===!1&&delete i[l]}),{params:i,passedParams:r,rest:n,events:s}}function xr(e,t){let{el:i,nextEl:s,prevEl:r,paginationEl:n,scrollbarEl:a,swiper:o}=e;ot(t)&&s&&r&&(o.params.navigation.nextEl=s,o.originalParams.navigation.nextEl=s,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),at(t)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),lt(t)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(i)}function br(e,t,i,s,r){const n=[];if(!t)return n;const a=l=>{n.indexOf(l)<0&&n.push(l)};if(i&&s){const l=s.map(r),d=i.map(r);l.join("")!==d.join("")&&a("children"),s.length!==i.length&&a("children")}return nt.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(U(e[l])&&U(t[l])){const d=Object.keys(e[l]),c=Object.keys(t[l]);d.length!==c.length?a(l):(d.forEach(u=>{e[l][u]!==t[l][u]&&a(l)}),c.forEach(u=>{e[l][u]!==t[l][u]&&a(l)}))}else e[l]!==t[l]&&a(l)}),n}const Er=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function ce(){return ce=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},ce.apply(this,arguments)}function ct(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ut(e){const t=[];return T.Children.toArray(e).forEach(i=>{ct(i)?t.push(i):i.props&&i.props.children&&ut(i.props.children).forEach(s=>t.push(s))}),t}function yr(e){const t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return T.Children.toArray(e).forEach(s=>{if(ct(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=ut(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 Cr(e,t,i){if(!i)return null;const s=c=>{let u=c;return c<0?u=t.length+c:u>=t.length&&(u=u-t.length),u},r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:a}=i,o=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,d=[];for(let c=o;c<l;c+=1)c>=n&&c<=a&&d.push(t[s(c)]);return d.map((c,u)=>T.cloneElement(c,{swiper:e,style:r,key:c.props.virtualIndex||c.key||`slide-${u}`}))}function te(e,t){return typeof window>"u"?T.useEffect(e,t):T.useLayoutEffect(e,t)}const Re=T.createContext(null),Ir=T.createContext(null),ft=T.forwardRef(function(e,t){let{className:i,tag:s="div",wrapperTag:r="div",children:n,onSwiper:a,...o}=e===void 0?{}:e,l=!1;const[d,c]=T.useState("swiper"),[u,f]=T.useState(null),[p,h]=T.useState(!1),w=T.useRef(!1),P=T.useRef(null),m=T.useRef(null),x=T.useRef(null),v=T.useRef(null),C=T.useRef(null),b=T.useRef(null),O=T.useRef(null),_=T.useRef(null),{params:I,passedParams:E,rest:S,events:y}=Tr(o),{slides:M,slots:N}=yr(n),R=()=>{h(!p)};Object.assign(I.on,{_containerClasses(A,F){c(F)}});const V=()=>{Object.assign(I.on,y),l=!0;const A={...I};if(delete A.wrapperClass,m.current=new _e(A),m.current.virtual&&m.current.params.virtual.enabled){m.current.virtual.slides=M;const F={cache:!1,slides:M,renderExternal:f,renderExternalUpdate:!1};Z(m.current.params.virtual,F),Z(m.current.originalParams.virtual,F)}};P.current||V(),m.current&&m.current.on("_beforeBreakpoint",R);const L=()=>{l||!y||!m.current||Object.keys(y).forEach(A=>{m.current.on(A,y[A])})},j=()=>{!y||!m.current||Object.keys(y).forEach(A=>{m.current.off(A,y[A])})};T.useEffect(()=>()=>{m.current&&m.current.off("_beforeBreakpoint",R)}),T.useEffect(()=>{!w.current&&m.current&&(m.current.emitSlidesClasses(),w.current=!0)}),te(()=>{if(t&&(t.current=P.current),!!P.current)return m.current.destroyed&&V(),xr({el:P.current,nextEl:C.current,prevEl:b.current,paginationEl:O.current,scrollbarEl:_.current,swiper:m.current},I),a&&!m.current.destroyed&&a(m.current),()=>{m.current&&!m.current.destroyed&&m.current.destroy(!0,!1)}},[]),te(()=>{L();const A=br(E,x.current,M,v.current,F=>F.key);return x.current=E,v.current=M,A.length&&m.current&&!m.current.destroyed&&Sr({swiper:m.current,slides:M,passedParams:E,changedParams:A,nextEl:C.current,prevEl:b.current,scrollbarEl:_.current,paginationEl:O.current}),()=>{j()}}),te(()=>{Er(m.current)},[u]);function B(){return I.virtual?Cr(m.current,M,u):M.map((A,F)=>T.cloneElement(A,{swiper:m.current,swiperSlideIndex:F}))}return T.createElement(s,ce({ref:P,className:dt(`${d}${i?` ${i}`:""}`)},S),T.createElement(Ir.Provider,{value:m.current},N["container-start"],T.createElement(r,{className:wr(I.wrapperClass)},N["wrapper-start"],B(),N["wrapper-end"]),ot(I)&&T.createElement(T.Fragment,null,T.createElement("div",{ref:b,className:"swiper-button-prev"}),T.createElement("div",{ref:C,className:"swiper-button-next"})),lt(I)&&T.createElement("div",{ref:_,className:"swiper-scrollbar"}),at(I)&&T.createElement("div",{ref:O,className:"swiper-pagination"}),N["container-end"]))});ft.displayName="Swiper";const pt=T.forwardRef(function(e,t){let{tag:i="div",children:s,className:r="",swiper:n,zoom:a,lazy:o,virtualIndex:l,swiperSlideIndex:d,...c}=e===void 0?{}:e;const u=T.useRef(null),[f,p]=T.useState("swiper-slide"),[h,w]=T.useState(!1);function P(C,b,O){b===u.current&&p(O)}te(()=>{if(typeof d<"u"&&(u.current.swiperSlideIndex=d),t&&(t.current=u.current),!(!u.current||!n)){if(n.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return n.on("_slideClass",P),()=>{n&&n.off("_slideClass",P)}}}),te(()=>{n&&u.current&&!n.destroyed&&p(n.getSlideClasses(u.current))},[n]);const m={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},x=()=>typeof s=="function"?s(m):s,v=()=>{w(!0)};return T.createElement(i,ce({ref:u,className:dt(`${f}${r?` ${r}`:""}`),"data-swiper-slide-index":l,onLoad:v},c),a&&T.createElement(Re.Provider,{value:m},T.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},x(),o&&!h&&T.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&T.createElement(Re.Provider,{value:m},x(),o&&!h&&T.createElement("div",{className:"swiper-lazy-preloader"})))});pt.displayName="SwiperSlide";const Pr="sliderTestId",_r=({spaceBetween:e,slidesPerView:t,block:i,breakpoints:s,modules:r,children:n})=>g.jsx(ft,{className:z(i,"slider"),"data-testid":Pr,modules:r,spaceBetween:e,slidesPerView:t,breakpoints:s,children:n}),Mr=Object.assign(_r,{Slide:pt}),Or=Object.freeze({LEFT:"left",RIGHT:"right"}),Lr="sliderNavigateTestId",Ar="navigateButtonTestId",Nr={left:g.jsx(H.ArrowNarrowLeft,{}),right:g.jsx(H.ArrowNarrowRight,{})},zr=({placement:e})=>g.jsx("button",{"data-testid":Ar,type:"button",className:"slider-navigate__button",children:Nr[e]}),jr=()=>g.jsx("div",{"data-testid":Lr,className:"slider-navigate",children:Object.values(Or).map(e=>g.jsx(zr,{placement:e},e))}),Br=({block:e,isOpen:t,textContent:i,title:s,onClick:r})=>g.jsxs(X.Layout,{isOpen:t,block:e,children:[g.jsx(X.Block,{title:s,onClick:r}),g.jsx(X.Content,{isOpen:t,children:i})]}),Dr=({isOpen:e,children:t})=>{const{style:i,contentRef:s}=ye(e);return g.jsx("div",{style:i,className:"accordion__content",children:g.jsx("p",{className:"accordion__text",ref:s,children:t})})},kr=()=>g.jsx(H.ArrowNarrowDown,{className:"accordion__arrow"}),Gr=({title:e})=>g.jsx("h3",{className:"accordion__title",children:e}),Rr=({onClick:e,title:t})=>g.jsxs(X.Button,{onClick:e,children:[g.jsx(X.Title,{title:t}),g.jsx(X.Arrow,{})]}),Vr="accordionTestId",Fr=({block:e,isOpen:t,children:i})=>g.jsx("div",{"data-testid":Vr,className:z(e,"accordion",{_active:t}),children:i}),Hr=({onClick:e,children:t})=>g.jsx("button",{onClick:e,type:"button",className:"accordion__button",children:t}),X=Object.assign(Br,{Content:Dr,Arrow:kr,Title:Gr,Block:Rr,Layout:Fr,Button:Hr});exports.Accordion=X;exports.Button=Ie;exports.ButtonWithIcon=Xe;exports.CATEGORIES_LIST=qt;exports.CATEGORY_TEST_ID=We;exports.Category=Xt;exports.Checkbox=re;exports.Dropdown=J;exports.FavButton=di;exports.Field=Se;exports.FilterAccordion=Q;exports.FilterButton=Ii;exports.Gallery=Pi;exports.Icons=H;exports.Input=Ue;exports.LinkWithIcon=Li;exports.Logo=Ut;exports.NavLink=Ai;exports.Pagination=ee;exports.RangeSlider=Vi;exports.RouterLink=Ke;exports.Select=Y;exports.Slider=Mr;exports.SliderNavigate=jr;exports.capitalizeFirstLetter=Fe;exports.cn=z;exports.dropdownOptionsMock=Ht;exports.imagesMock=Ft;exports.pageSizeMock=Vt;exports.rangeSliderArrayMock=$t;exports.selectOptionsMock=Gt;exports.sliderSlideArrayMock=Wt;exports.totalCountPageMock=Rt;exports.useAccordionHeight=ye;exports.useClickOutside=Ce;exports.useDropdown=Yt;exports.useMatchMedia=qe;exports.withBlockClass=Ee;
13
2
  //# sourceMappingURL=index.cjs.js.map