1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Ce9f3Myt.js","./BZJFtfsf.js","./entry.CFncbdTx.css","./Map.CLRkzFV5.css"])))=>i.map(i=>d[i]); 2import{d as Ge,_ as Be}from"./CFjV80WQ.js";import{u as ne,a as it,D as $}from"./CWB_h-v5.js";import{aQ as q,bu as He,aJ as M,aK as E,aT as ge,aM as O,aL as S,bf as Z,bg as se,aN as B,aO as U,by as nt,aX as R,aH as re,aS as ie,aI as H,b8 as Ne,aV as P,bb as te,bh as Re,aP as qe,bz as We,aY as le,bA as rt,bt as ot,bB as at,be as je,aR as lt,bs as dt,b2 as ct,bC as ut,bc as ft,b3 as pt,aG as Le,bw as ht,bD as mt,bE as gt,bF as vt,bG as wt,bH as Q,bI as de,bJ as ce,bK as St,bL as yt,bM as bt,bN as Tt,bO as ve,bP as we}from"#entry";import{u as _t}from"./DzF_9Kwz.js";import{_ as xt}from"./BozWoylx.js";import{_ as Ue}from"./D4tg8Z75.js";import{e as Et,g as kt,S as Mt,h as Pt}from"./D83FLyEC.js";import{_ as Ct}from"./DOlulrXR.js";try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dfe35714-0d0f-40a3-8a71-8ddd611f2ffa",e._sentryDebugIdIdentifier="sentry-dbid-dfe35714-0d0f-40a3-8a71-8ddd611f2ffa")})()}catch{}function Lt(){async function e(s){const{query:i,startswith:r,ineCode:n,quantity:a=10}=s,d={query:i||"",quantity:a,kind:"activity"};r&&(d.startswith=r),n&&(d.ine_code=n);try{return await $fetch("/api/suggest",{query:d})||{results:[]}}catch(o){return console.error("[useSuggestions] Error fetching activity suggestions:",o),{results:[]}}}async function t(s){const{query:i,ineCode:r}=s;try{const n=await $fetch("/api/suggest",{query:{query:i,ine_code:r,quantity:10,kind:"seo_expression"}});if(n?.results){let a=[...new Set(n.results.map(o=>o.suggestion))];const d=i.toLowerCase().replace(/-/g," ").trim();return a=a.filter(o=>o.toLowerCase()!==d),a}return[]}catch(n){return console.error("[useSuggestions] Error fetching SEO suggestions:",n),[]}}return{getActivitySuggestions:e,getSeoSuggestions:t}}const It={extends:Be,setup(){const e=ne(),{getActivitySuggestions:t}=Lt();return{searchStore:e,getActivitySuggestions:t}},data:()=>({model:{value:""},suggestions:{show:!1,data:[]},highlighted:null}),computed:{getInputLocation(){return this.searchStore.formInput.location},isActive(){return this.suggestions.show},uniqueSuggestions(){const e=this.suggestions?.data?.results||[],t=[];return new Set(e.map(i=>i.suggestion)).forEach(i=>{t.push(e.find(r=>r.suggestion===i))}),t.length<5?t:t.slice(0,5)},getActivity(){return this.searchStore.formInput.query||""}},watch:{getActivity(e){this.model.value=e},uniqueSuggestions(e){this.highlighted=e.length>0?0:null}},mounted(){this.initModelValue(),document.addEventListener("click",this.handleClickOutside),this.$nextTick(()=>{this.initModelValue()})},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},methods:{handleClickOutside(e){this.$refs.formFieldRef&&!this.$refs.formFieldRef.contains(e.target)&&this.closeSuggestions()},initModelValue(){this.model.value=this.getActivity||""},onKeyup(e){switch(e.keyCode){case 40:this.highlighted<this.uniqueSuggestions.length-1&&this.highlighted++;break;case 38:this.highlighted>0&&this.highlighted--;break;case 13:this.highlighted&&this.selectSuggestion(e,this.uniqueSuggestions[this.highlighted]);break;default:this.model.value=e.target.value,this.checkShowSuggestions();break}},checkShowSuggestions:Ge(async function(e){e||(this.model.value.length>
21?(await this.getSuggestions(),this.suggestions.data&&this.suggestions.data.results.length>0?this.openSuggestions():this.closeSuggestions()):this.closeSuggestions())},300),async getSuggestions(){const e={query:this.model.value||"",startswith:this.model.value?.charAt(0)||"a",quantity:50};this.getInputLocation&&(e.ineCode=this.getInputLocation.id);try{this.suggestions.data=await this.getActivitySuggestions(e)}catch{this.suggestions.data={results:[]}}this.matchingText()},closeSuggestions(){this.suggestions.show=!1},openSuggestions(){this.suggestions.show=!0},matchingText(e){const t=this.model.value.toLowerCase();this.suggestions.data&&Array.isArray(this.suggestions.data.results)&&this.suggestions.data.results.forEach(s=>{s.parsed=s.suggestion.toLowerCase().replace(`${t}`,`<span style="color:#232323">${t}</span>`)})},selectSuggestion(e,t){e.stopPropagation(),this.model.value=t?t.suggestion:e.currentTarget.getAttribute("data-value"),this.closeSuggestions()},validate(){return this.model.value?this.model.value.length<=2?this.onValidateError("Por favor, introduce un término de búsqueda de al menos 3 caracteres"):this.onValidateSuccess():this.onValidateError()},onValidateSuccess(){return this.resetErrorFocus(),!0},onValidateError(e){return this.validation.error=!0,this.validation.msg=e||"Por favor, introduce un término de búsqueda",!1},setModel(e){this.model.value=e},getModel(){return this.model.value},focusHandler(e){this.resetErrorFocus(),this.model.value.length>1&&this.suggestions.data&&this.suggestions.data.count>1&&this.checkShowSuggestions(),this.$emit("input-activity-focus")},blurHandler(){this.checkShowSuggestions(!0)}}},At=["value"],Ot={key:0,class:"form-suggestion"},Dt=["onClick"],zt=["data-value","innerHTML"],$t={key:1,class:"form-error-msg"};function Ft(e,t,s,i,r,n){const a=He("scroll-to-focus");return E(),M("div",{ref:"formFieldRef",class:B(["form-field",{error:e.validation.error,active:n.isActive}])},[ge(S("input",{value:e.model.value,class:"form-input",type:"text",placeholder:"¿Qué buscas?",tabindex:"0",onKeyup:t[0]||(t[0]=d=>n.onKeyup(d)),onFocus:t[1]||(t[1]=d=>n.focusHandler(d)),onBlur:t[2]||(t[2]=d=>n.blurHandler(d))},null,40,At),[[a,"#form-search"]]),e.suggestions.show?(E(),M("ul",Ot,[(E(!0),M(Z,null,se(n.uniqueSuggestions,(d,o)=>(E(),M("li",{key:`suggestion-${d.suggestion}-${o}`,class:B([{highlighted:e.highlighted===o},"form-suggestion-item"]),onClick:l=>n.selectSuggestion(l,d)},[S("span",{"data-value":d.suggestion,innerHTML:d.parsed},null,8,zt)],10,Dt))),128))])):O("",!0),e.validation.error?(E(),M("span",$t,U(e.validation.msg),1)):O("",!0)],2)}const Vt=q(It,[["render",Ft],["__scopeId","data-v-5311d6ae"]]),Gt={extends:Be,setup(){const e=_t(),t=ne(),s=it();return{mainStore:e,searchStore:t,geoStore:s}},data(){return{model:"",selected:{},highlighted:0,suggestions:{show:!1,data:[],limit:5},history:{show:!1,limit:5}}},computed:{getParam(){return this.mainStore.getParam},location(){return this.mainStore.getLocation},inputLocation(){return this.searchStore.searchForm.location},defaultLocation(){return this.searchStore.searchForm.defaultLocation},locationHistory(){return this.searchStore.searchForm.history},filteredSuggestions(){return this.suggestions.data.slice(0,this.suggestions.limit)},compositeLocationHistory(){return[...this.locationHistory,this.defaultLocation].slice(0,this.history.limit)},isActive(){return this.isSuggestionsActive||this.isHistoryActive},isSuggestionsActive(){return this.suggestions.show&&this.model.length>2},isHistoryActive(){return this.history.show&&this.compositeLocationHistory.length>1},inSearchPage(){return this.getParam("inSearchPage")}},watch:{inputLocation:{handler(e){e?this.setModel(e):(this.model="",this.selected={})},deep:!0,immediate:!0},location(e){this.inSearchPage||this.searchStore.setLocation(e)},isActive(){this.highlighted=0}},created(){this.initModel()},mounted(){document.addEventListener("click",this.handleClickOutside),this.$nextTick(()=>{this.initModel()})},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},methods:{handleClickOutside(e){this.$refs.formFieldRef&&!this.$refs.formFieldRef.contains(e.target)&&this.closeListings()},initModel(){this.inputLocation?this.setModel(this.inputLocation):this.location&&!this.inSearchPage&&(this.searchStore.setLocation(this.location),this.setModel(this.location))},setModel(e){if(!e){this.model="",this.selected={};return}this.model=e.value||e.district||e.municipality||e.province||"",this.selected={...e}},getSelected(){return this.selected},blurHandler(){this.checkShowSuggestions(!0)},focusHandler(e){this.$nextTick(()=>{this.model=e.target.value}),this.suggestions.show!==!0&&this.compositeLocationHistory.length>1?(this.history.show=!0,this.suggestions.show=!1):this.suggestions.data.length>1&&(this.history.show=!1,this.suggestions.show=!0),this.resetErrorFocus(),this.$emit("input-location-focus")},onKeyup(e){let t;switch(this.isSuggestionsActive?t=this.filteredSuggestions:t=this.isHistoryActive?this.compositeLocationHistory:null,e.keyCode){case 40:t&&this.highlighted<t.length-1&&this.highlighted++;break;case 38:this.highlighted>0&&this.highlighted--;break;case 13:t&&this.selectOption(e,t[this.highlighted]);break;default:this.model=e.target.value,this.model.length>2?this.checkShowSuggestions():this.history.show=!0;break}},checkShowSuggestions:Ge(async function(e){this.resetValidateError(),!e&&(this.model.length>2?(await this.showSuggestions(),this.history.show=!1):(this.suggestions.show=!1,this.history.show=!0))}
2,300),async showSuggestions(){const e=await this.getSuggestions();e.length>0?(this.suggestions.data=this.formatSuggestions(e),this.suggestions.show=!0):(this.suggestions.data=[],this.suggestions.show=!1)},async getSuggestions(){let e=null;try{const t=await $fetch(`/api/mapgarita/locations/name/${encodeURIComponent(this.model)}`,{query:{order_by_desc:"population",country:"España",exclude_all_area:!0}});t&&Array.isArray(t)&&(e=t)}catch(t){console.warn(t)}return e&&e.length>0?(e.sort((t,s)=>s.kind==="P"&&s.province===t.district?-1:0),e):[]},formatSuggestions(e){return e.reduce((t,s)=>{if(s.kind==="P")s.value=`${s.province}`,s.parsed=this.matchingText(s.value),s.value+=" (provincia)",s.parsed+=" (provincia)";else{s.value=s.district?s.district:s.municipality,s.parsed=this.matchingText(s.value);let i;s.district&&s.district!==s.municipality?i=s.municipality:i=s.municipality!==s.province?s.province:null,s.value+=i?`, ${i}`:"",s.parsed+=i?`, ${i}`:""}return[...t,s]},[])},matchingText(e){const t=this.model.toLowerCase();return`<span style="color:#232323">${e}</span>`.toLowerCase().replace(t,`<span style="font-weight:600">${t}</span>`)},capitalizeText(e){return typeof e!="string"?"":e.charAt(0).toUpperCase()+e.slice(1)},selectOption(e,t){e.stopPropagation(),this.setSelected(t),this.closeListings()},selectDefaultOption(){this.setSelected(this.defaultLocation)},setSelected(e){this.setModel(e)},validate(){const e=this.suggestions.data.find(s=>s.value===this.model),t=this.suggestions.data[0];return!this.model||this.model===this.defaultLocation.value?(this.selectDefaultOption(),!0):this.selected&&(this.selected.value===this.model&&this.selected.id||this.selected.value===this.model)?!0:e?(this.setSelected(e),!0):t?(this.setSelected(t),!0):!!(this.model&&this.selected&&(this.model===this.selected.district||this.model===this.selected.municipality||this.model===this.selected.province))},onValidateError(e){this.validation.error=!0,this.validation.msg=e||"Por favor, introduce una localidad válida"},resetValidateError(){this.validation.error=!1},closeListings(){this.suggestions.show=!1,this.history.show=!1},async askLocation(){const e=await this.geoStore.requestLocationPermission({skipCache:!0});e&&(this.searchStore.setLocation(e),this.searchStore.saveHistory(e))}}},Bt=["value"],Ht={key:0,class:"form-suggestion"},Nt=["onClick"],Rt=["data-value","data-id","innerHTML"],qt={key:1,class:"form-history"},Wt=["onClick"],jt={key:0,name:"time",class:"ion-icon ion-md-time","aria-hidden":"true"},Ut={key:2,class:"form-error-msg"};function Yt(e,t,s,i,r,n){const a=He("scroll-to-focus");return E(),M("div",{ref:"formFieldRef",class:B(["form-field",{error:e.validation.error,active:n.isActive}])},[ge(S("input",{value:r.model,class:"form-input",type:"text",placeholder:"¿Dónde buscas?",onKeyup:t[0]||(t[0]=d=>n.onKeyup(d)),onFocus:t[1]||(t[1]=d=>n.focusHandler(d)),onBlur:t[2]||(t[2]=(...d)=>n.blurHandler&&n.blurHandler(...d))},null,40,Bt),[[a,"#form-search"]]),S("button",{class:"form-location",type:"button","data-target":"GeolocationModal",onClick:t[3]||(t[3]=d=>n.askLocation())},[...t[4]||(t[4]=[S("em",{name:"locate",class:"form-location-icon ion-md-locate","data-target":"GeolocationModal","aria-hidden":"true"},null,-1),S("span",{class:"sr-only"},"enable location",-1)])]),n.isSuggestionsActive?(E(),M("ul",Ht,[(E(!0),M(Z,null,se(n.filteredSuggestions,(d,o)=>(E(),M("li",{key:"suggestion"+o,class:B([{highlighted:r.highlighted===o},"form-suggestion-item"]),onClick:l=>n.selectOption(l,d)},[S("span",{"data-value":d.value,"data-id":d.id,innerHTML:d.parsed},null,8,Rt)],10,Nt))),128))])):O("",!0),n.isHistoryActive?(E(),M("ul",qt,[(E(!0),M(Z,null,se(n.compositeLocationHistory,(d,o)=>(E(),M("li",{key:"history"+o,class:B([{highlighted:r.highlighted===o},"form-history-item"]),onClick:l=>n.selectOption(l,d)},[n.compositeLocationHistory[n.compositeLocationHistory.length-1]!==d?(E(),M("em",jt)):O("",!0),S("span",null,U(d.value),1)],10,Wt))),128))])):O("",!0),e.validation.error?(E(),M("span",Ut,U(e.validation.msg),1)):O("",!0)],2)}const Xt=q(Gt,[["render",Yt],["__scopeId","data-v-5f16bfe7"]]),Kt={setup(){return{searchStore:ne()}},computed:{getInputLocation(){return this.searchStore.searchForm.location},setMobileIdentificator(){let e="";return window.innerWidth<768&&(e="form-search"),e}}
2,methods:{submitForm(){try{this.validate()&&(this.saveSearch(),this.redirect(),this.$refs.activity.checkShowSuggestions(!0),this.$refs.location.checkShowSuggestions(!0),this.$emit("search-done"))}catch(e){console.error("[FormSearch] Error in submitForm:",e)}},validate(){if(!this.$refs.activity||!this.$refs.location)return!1;const e=this.$refs.activity.validate(),t=this.$refs.location.validate();return e&&t},saveSearch(){const e=this.$refs.location.getSelected();this.searchStore.saveHistory(e)},redirect(){if(!this.$refs.activity||!this.$refs.location){console.error("â [FormSearch] Component refs not available for redirect");return}const e=this.$refs.activity.getModel(),t=this.$refs.location.getSelected(),s={locality:t.value,query:e,ine_code:t.id||null,latitude:t.lat||null,longitude:t.lon||null,kind:t.kind||null,province:t.kind==="P"?t.province:null,page:1};if(this.removeNullValues(s),(this._.provides[nt]||this.$route).path==="/search"){const r=`/search?${new URLSearchParams(s).toString()}`;window.location.href=r}else this.$router.push({path:"/search",query:s}).catch(i=>{console.error("[FormSearch] Navigation failed:",i)})},removeNullValues(e){for(const t in e)(e[t]===null||e[t]===void 0)&&delete e[t]},onInputActivityFocus(){this.$refs.location.closeListings()},onInputLocationFocus(){this.$refs.activity.closeSuggestions()}}},Qt=["id"];function Jt(e,t,s,i,r,n){const a=Vt,d=Xt,o=xt;return E(),M("form",{id:n.setMobileIdentificator,class:"form-search"},[R(a,{ref:"activity",onInputActivityFocus:t[0]||(t[0]=l=>n.onInputActivityFocus())},null,512),R(d,{ref:"location",onInputLocationFocus:t[1]||(t[1]=l=>n.onInputLocationFocus())},null,512),R(o,{onSubmitForm:n.submitForm},null,8,["onSubmitForm"])],8,Qt)}const Zt=q(Kt,[["render",Jt]]),es={class:"applied-filters"},ts=["onClick"],ss={class:"filter-section"},is={class:"distance-slider"},ns={class:"label"},rs=["value"],os={class:"filter-section"},as={class:"schedule-options"},ls=["checked"],ds=["checked"],cs={class:"filter-section"},us={class:"sort-options"},fs=["checked"],ps=["checked"],hs=re({__name:"Filters",props:{initialFilters:{}},emits:["update:filters"],setup(e,{emit:t}){const s=e,i=t,r=ie(!1),n=ie({...s.initialFilters}),a=H(()=>s.initialFilters.distance!==$.distance||s.initialFilters.openNow!==$.openNow||s.initialFilters.openToday!==$.openToday||s.initialFilters.sortBy!==$.sortBy),d=H(()=>{const v=[];if(s.initialFilters.distance!==$.distance){const g=s.initialFilters.distance<=1?"Para ir andando":s.initialFilters.distance===16?"+15km":`${s.initialFilters.distance}km`;v.push({name:"distance",text:g,value:s.initialFilters.distance})}if(s.initialFilters.openNow!==$.openNow&&v.push({name:"openNow",text:"Abierto ahora",value:s.initialFilters.openNow}),s.initialFilters.openToday!==$.openToday&&v.push({name:"openToday",text:"Abre hoy",value:s.initialFilters.openToday}),s.initialFilters.sortBy!==$.sortBy){const g=s.initialFilters.sortBy==="rating"?"Más valorados":"Más cercanos";v.push({name:"sortBy",text:g,value:s.initialFilters.sortBy})}return v}),o=v=>{const g={...s.initialFilters};switch(v){case"distance":g.distance=$.distance;break;case"openNow":g.openNow=$.openNow;break;case"openToday":g.openToday=$.openToday;break;case"sortBy":g.sortBy=$.sortBy;break}return g};Ne(()=>s.initialFilters,v=>{n.value={...v}},{deep:!0});const l=()=>{r.value=!0},u=()=>{r.value=!1},c=v=>{n.value.distance=v},p=v=>{n.value.openNow=v},f=v=>{n.value.openToday=v},h=v=>{n.value.sortBy=v},m=()=>{i("update:filters",{...n.value}),u()},_=v=>{const g=o(v);g&&typeof g=="object"&&"distance"in g&&(n.value=g,i("update:filters",n.value))},b=()=>{n.value={...$},i("update:filters",{...n.value}),u()},w=H(()=>(n.value.distance-1)*100/15);return(v,g)=>(E(),M("div",{class:B(["filter-search",{filtered:P(a)}])},[S("button",{class:"filter-button",onClick:l},[...g[6]||(g[6]=[S("span",{class:"button-text"},"Filtros",-1),S("em",{name:"ios-arrow-down",class:"icon-laptop ion-icon ion-ios-arrow-forward","aria-hidden":"true"},null,-1),S("em",{name:"ios-options",class:"icon-mobile ion-icon ion-ios-options","aria-hidden":"true"},null,-1)])]),ge(S("div",es,[(E(!0),M(Z,null,se(P(d),(y,A)=>(E(),M("span",{key:"applied"+A,class:"applied-filter",onClick:L=>_(y.name)}
2,[g[7]||(g[7]=S("em",{name:"ios-close",class:"ion-icon ion-ios-close","aria-hidden":"true"},null,-1)),qe(" "+U(y.text),1)],8,ts))),128))],512),[[Re,P(a)]]),(E(),te(at,{to:"body"},[R(We,{name:"modal"},{default:le(()=>[P(r)?(E(),M("div",{key:0,class:"modal-overlay",onClick:u},[S("div",{class:"modal-content",onClick:g[5]||(g[5]=rt(()=>{},["stop"]))},[S("div",ss,[g[9]||(g[9]=S("h3",null,"Distancia",-1)),S("div",is,[S("div",ns,[S("span",{style:ot({left:P(w)+"%"})},U(P(n).distance<=1?"Para ir andando":P(n).distance===16?"+15km":`${P(n).distance}km`),5)]),S("input",{type:"range",min:"1",max:"16",step:"1",value:P(n).distance,onInput:g[0]||(g[0]=y=>c(parseInt(y.target.value)))},null,40,rs),g[8]||(g[8]=S("span",{class:"legend"},"+15km",-1))])]),S("div",os,[g[12]||(g[12]=S("h3",null,"Horario",-1)),S("div",as,[S("label",{class:B(["schedule-option",{active:P(n).openNow}])},[S("input",{type:"checkbox",checked:P(n).openNow,onChange:g[1]||(g[1]=y=>p(y.target.checked))},null,40,ls),g[10]||(g[10]=S("span",null,"Abierto ahora",-1))],2),S("label",{class:B(["schedule-option",{active:P(n).openToday}])},[S("input",{type:"checkbox",checked:P(n).openToday,onChange:g[2]||(g[2]=y=>f(y.target.checked))},null,40,ds),g[11]||(g[11]=S("span",null,"Abre hoy",-1))],2)])]),S("div",cs,[g[15]||(g[15]=S("h3",null,"Orden",-1)),S("div",us,[S("label",{class:B(["sort-option",{active:P(n).sortBy==="rating"}])},[S("input",{type:"radio",value:"rating",checked:P(n).sortBy==="rating",onChange:g[3]||(g[3]=y=>h("rating"))},null,40,fs),g[13]||(g[13]=S("span",null,"Más valorados",-1))],2),S("label",{class:B(["sort-option",{active:P(n).sortBy==="distance"}])},[S("input",{type:"radio",value:"distance",checked:P(n).sortBy==="distance",onChange:g[4]||(g[4]=y=>h("distance"))},null,40,ps),g[14]||(g[14]=S("span",null,"Más cercanos",-1))],2)])]),S("div",{class:"filter-actions"},[S("button",{type:"button",class:"clear-button",onClick:b}," Borrar "),S("button",{type:"button",class:"apply-button",onClick:m}," Aplicar ")])])])):O("",!0)]),_:1})]))],2))}}),ms=q(hs,[["__scopeId","data-v-1ec32915"]]),gs={class:"button-text mobile-text"},vs={class:"button-text desktop-text"},ws=re({__name:"MapButton",setup(e){const t=ne(),s=()=>{t.toggleMap()},i=H(()=>t.isMapShown);return(r,n)=>(E(),M("button",{class:"show-map-button",onClick:s},[S("span",gs,U(P(i)?"LISTA":"MAPA"),1),S("span",vs,U(P(i)?"OCULTAR MAPA":"MOSTRAR MAPA"),1),S("em",{class:B(["ion-icon mobile-icon",P(i)?"ion-ios-list":"ion-md-map"]),"aria-hidden":"true"},null,2)]))}}),Ss=q(ws,[["__scopeId","data-v-7c06398e"]]);function ys(e){const t=Array.isArray(e.pg)?e.pg[0]:e.pg,s=Array.isArray(e.page)?e.page[0]:e.page,i=t||s?parseInt(t||s,10):1,r=Array.isArray(e.closer_than)?e.closer_than[0]:e.closer_than,n=r?parseInt(r,10):$.distance*1e3,d=(Array.isArray(e.open)?e.open[0]:e.open)==="true",l=!!(Array.isArray(e.open_day)?e.open_day[0]:e.open_day),u=Array.isArray(e.sorting_criteria)?e.sorting_criteria[0]:e.sorting_criteria,c=u?u==="distance"?"distance":"rating":$.sortBy;return{page:i,filters:{distance:Math.round(n/1e3),openNow:d,openToday:l,sortBy:c==="distance"?"distance":"rating"}}}function bs(e,t,s={}){const i={...s};return i.page=t.toString(),e.sortBy==="distance"||e.distance!==$.distance?i.closer_than=(e.distance*1e3).toString():delete i.closer_than,e.openNow?i.open="true":delete i.open,e.openToday?i.open_day=new Date().toISOString().split("T")[0]:delete i.open_day,e.sortBy==="distance"?i.sorting_criteria="distance":e.sortBy!==$.sortBy?i.sorting_criteria="score":delete i.sorting_criteria,i}function Fn(e){return e.split("/").filter(t=>t.length!==0).map(t=>{try{return decodeURIComponent(t)}catch{return t}})}function Vn(e){return Et(e.replace(/\s+/g,"-").toLowerCase())}const Ts={class:"header-search"},_s={class:"header-search-wrapper"},xs={ref:"wrapperRef",class:"wrapper"},Es={class:"header-search-content"},ks=re({__name:"Search",props:{showFilters:{type:Boolean,default:!0}},setup(e){const t=ne(),s=je(),i=lt(),{filters:r}=ys(s.query),n=H(()=>t.filters&&Object.keys(t.filters).length>0?t.filters:r),a=ie({...n.value});Ne(n,c=>{a.value={...c}},{deep:!0});const d=c=>{a.value={...c},o()},o=()=>
2{if(a.value&&typeof a.value=="object"){t.resetPage();const c=bs(a.value,t.page,s.query);i.push({query:c})}},l=ie(!1),u=()=>{l.value=!1};return(c,p)=>{const f=Zt,h=ms,m=Ss,_=Ue;return E(),M("header",Ts,[S("div",_s,[S("div",xs,[S("div",Es,[R(f,{class:B({active:P(l)}),onSearchDone:u},null,8,["class"]),R(_,null,{default:le(()=>[e.showFilters?(E(),te(h,{key:0,"initial-filters":P(n),"onUpdate:filters":d},null,8,["initial-filters"])):O("",!0),e.showFilters?(E(),te(m,{key:1,class:"show-map-button-laptop"})):O("",!0)]),_:1}),dt(c.$slots,"default",{},void 0,!0)])],512)])])}}}),Gn=q(ks,[["__scopeId","data-v-237013a5"]]),ae=ie(!1),Ms=()=>{const e=()=>{{const r=localStorage.getItem("ageValidated");ae.value=r==="true"}},t=()=>{ae.value=!0,localStorage.setItem("ageValidated","true")},s=()=>{ae.value=!1,localStorage.removeItem("ageValidated")},i=H(()=>!ae.value);return e(),{ageValidated:H(()=>ae.value),needsAgeWarning:i,validateAge:t,invalidateAge:s,checkAgeValidation:e}},Ps={__name:"AgeWarningLink",props:{text:{type:String,required:!0}},emits:["age-accepted"],setup(e,{emit:t}){const s=ne(),{validateAge:i}=Ms(),r=()=>{i(),s.setValidAge(!0)};return(n,a)=>(E(),M("span",{class:"age-warning-link",onClick:r},U(e.text),1))}},Cs=q(Ps,[["__scopeId","data-v-ec6bd9a7"]]),Ls={class:"business-logo"},Is=["alt","src"],As={key:1,class:"business-inital-letter"},Os=re({__name:"Logo",props:{logoData:{default:void 0},logoName:{default:void 0}},setup(e){return(t,s)=>(E(),M("div",Ls,[t.logoData?(E(),M("img",{key:0,alt:t.logoData.title||"",src:t.logoData.image,class:"business-logo-img",itemprop:"logo",loading:"lazy",preset:"logo",modifiers:{fit:"cover"}},null,8,Is)):(E(),M("span",As,U(P(kt)(t.logoName)),1))]))}}),Ds=q(Os,[["__scopeId","data-v-c302b30d"]]),zs={key:0,class:"star-rate"},$s={__name:"StarRate",props:{ratings:{type:Object,required:!0}},setup(e){const t=e,s=r=>Math.round(r*2)/2,i=H(()=>{if(!t.ratings)return null;try{const r=t.ratings[4]||0,n=t.ratings[5]||0,a=r+n;if(a===0)return null;const d=s((r*4+n*5)/a);return d<4?null:d}catch{return null}});return(r,n)=>P(i)?(E(),M("ul",zs,[(E(!0),M(Z,null,se(Math.floor(P(i)),(a,d)=>(E(),M("li",{key:"fullstar"+d},[...n[0]||(n[0]=[S("em",{name:"star",class:"ion-icon ion-md-star","aria-hidden":"true"},null,-1)])]))),128)),(E(!0),M(Z,null,se(Math.ceil(P(i))-Math.floor(P(i)),(a,d)=>(E(),M("li",{key:"halfstar"+d},[...n[1]||(n[1]=[S("em",{name:"star-half",class:"ion-icon ion-md-star-half","aria-hidden":"true"},null,-1)])]))),128)),(E(!0),M(Z,null,se(5-Math.ceil(P(i)),(a,d)=>(E(),M("li",{key:"emptystar"+d},[...n[2]||(n[2]=[S("em",{name:"star-outline",class:"ion-icon ion-md-star-outline","aria-hidden":"true"},null,-1)])]))),128))])):O("",!0)}},Fs=q($s,[["__scopeId","data-v-f6eaa816"]]),Vs={key:0,class:"business-address"},Gs=re({__name:"Address",props:{address:{default:void 0},serviceArea:{default:void 0}},setup(e){const t=e,s=H(()=>t.address?.street&&t.serviceArea?.type!=="customer_location_only"),i=H(()=>{if(!t.address)return"";const r=[];if(t.address.street){let n=t.address.street;t.address.street_number&&(n+=` ${t.address.street_number}`),r.push(n)}return t.address.extra&&r.push(t.address.extra),t.address.postal_code&&r.push(t.address.postal_code),t.address.locality&&r.push(t.address.locality),t.address.municipality&&r.push(t.address.municipality),t.address.province&&r.push(t.address.province),r.join(", ")});return(r,n)=>P(s)?(E(),M("span",Vs,U(P(i)),1)):O("",!0)}}),Bs={},Hs={class:"business-certification"};function Ns(e,t){return E(),M("div",Hs,[...t[0]||(t[0]=[S("em",{name:"checkmark-circle",class:"ion-icon ion-md-checkmark-circle","aria-hidden":"true"},null,-1),S("span",null,"Recomendado por qdq",-1)])])}const Rs=q(Bs,[["render",Ns],["__scopeId","data-v-2e49a18b"]]),qs=()=>{const e=l=>{try{if(l?.opening_hours?.standard&&l?.opening_hours?.specific)return{opening_hours:{periods:l.opening_hours.standard},specific_opening_hours:l.opening_hours.specific}}catch(u){console.warn("Error convirtiendo formato de horarios:",u)}return null},t=(l,u)=>{if(!l)return null;const c=e({opening_hours:l});return c?r(c,"es-ES"):null},s=(l="es-ES")=>{const u=[],p=new Date;for(let f=0;f<7;f++){const h=i(p,f),m=h.toLocaleDateString(l,{weekday:"long"}),_=m.charAt(0);u.push({day:_.toUpperCase()+m.slice(1),dayEn:h.toLocaleDateString("en-US",{weekday:"long"}),closed:!0,open_now:!1,hours:[],date:h})}return u},i=(l,u)=>{const c=new Date(l);return c.setDate(l.getDate()+u),c},r=(l,u="es-ES",c)=>{if(!l?.opening_hours?.periods)return null;const p=s(u);return n(l,p),l.specific_opening_hours?.length&&l.specific_opening_hours.length>0&&o(l,p),a(p,u),p},n=(l,u)=>{l.opening_hours.periods?.forEach(c=>
2{const p=u.find(f=>f.dayEn.toLowerCase()===c.open_day.toLowerCase());p&&(p.closed=!1,p.hours.push({open_time:c.open_time,close_time:c.close_time}))})},a=(l,u,c)=>{const p=new Date,f=p.toLocaleDateString(u,{weekday:"long"}),h=l.find(m=>m.day.toLowerCase()===f.toLowerCase());if(!(!h||h.closed)){for(const m of h.hours)if(d(m,p)){h.open_now=!0;break}}},d=(l,u)=>{const[c,p]=l.open_time.split(":").map(Number),[f,h]=l.close_time.split(":").map(Number),m=new Date(u).setHours(c,p,0,0),_=(f<c?i(new Date(u),1):new Date(u)).setHours(f,h,0,0),b=u.getTime();return m<=b&&_>=b},o=(l,u)=>{if(!l.specific_opening_hours?.length)return;const c=new Date(u[0].date);c.setHours(0,0,0,0);const p=new Date(u[u.length-1].date);p.setHours(23,59,59,999);const f=l.specific_opening_hours.filter(h=>{const m=new Date(`${h.start_date} 00:00:00`),_=new Date(`${h.end_date} 23:59:59`);return c<=m&&p>=m||c<=_&&p>=_||m<=c&&_>=p});u.forEach(h=>{f.forEach(m=>{const _=new Date(`${m.start_date} 00:00:00`),b=new Date(`${m.end_date} 23:59:59`);_<=h.date&&b>=h.date&&(h.hours=[{open_time:m.open_time,close_time:m.close_time}],h.closed=m.closed||!1)})})};return{getTimeTable:t,scheduleConvertFormat:e,formatSchedule:r,getWeekArray:s,addDays:i,isOpenNow:a}},Ws={class:"business-open"},js=re({__name:"Open",props:{openingHours:{},timezone:{}},setup(e){const t=e,{getTimeTable:s}=qs(),i=H(()=>s(t.openingHours,t.timezone)),r=ie("");return ct(()=>{i.value?.[0]?r.value=i.value[0].open_now?"Abierto":"":r.value=""}),(n,a)=>ge((E(),M("div",Ws,[...a[0]||(a[0]=[S("em",{name:"time",class:"ion-icon ion-md-time","aria-hidden":"true"},null,-1),S("span",null,"Abierto",-1)])],512)),[[Re,P(r)]])}}),Us=q(js,[["__scopeId","data-v-067b0cca"]]),Ys=ut("/img/not-available-image.
2webp");function Xs(e){if(!e.name)throw new Error("Business name is required to create URL");let t=Mt(Pt(e.name));return t&&t[0]==="-"&&(t=t.substring(1)),`/${t}-${e.id}`.toString()}const Ks=ft(()=>pt(()=>import("./Ce9f3Myt.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.default||e)),Qs={class:"business-content"},Js={class:"business-header"},Zs={class:"business-title",itemprop:"name"},ei={key:1,class:"business-rate"},ti={key:"1",class:"business-img-wrapper"},si=["src"],ii={key:"3",class:"business-img-wrapper"},ni={key:1,class:"business-footer"},ri=["href"],oi=re({__name:"Card",props:{cardData:{},showContent:{type:Boolean,default:!1},thin:{type:Boolean,default:!1}},emits:["age-accepted"],setup(e,{emit:t}){const s=e,i=ne(),r=H(()=>s.showContent?!1:s.cardData.category?.age_warning&&!i.isValidAge),n=H(()=>s.cardData.address?.coordinates?Object.keys(s.cardData.address.coordinates).includes("longitude")&&Object.keys(s.cardData.address.coordinates).includes("latitude"):!1),a=H(()=>{if(!s.cardData.photos)return!1;const l=s.cardData.photos.find(u=>u.type==="cover"&&u.status==="published");return l?l.mobile_image||l.image:!1}),d=l=>l?.name?Xs(l):"",o=()=>s.cardData.photos?s.cardData.photos.find(u=>u.type==="logo"&&u.status==="published"):void 0;return(l,u)=>{const c=Cs,p=Ue,f=Ds,h=Fs,m=Gs,_=Ks,b=Rs,w=Us,v=Ct;return E(),M("div",{class:B(["business-card",{thin:l.thin}])},[R(p,{class:"prerender-age-warning"},{default:le(()=>[S("div",{class:B([{active:P(r)},"business-age-warning"])},[S("p",null,[u[0]||(u[0]=qe(" Para ver la información de este anuncio debes confirmar la mayorÃa de edad ",-1)),R(c,{text:"haciendo click aquÃ"})])],2)]),_:1}),R(v,{itemprop:"item",to:d(l.cardData),class:"business-card-link"},{default:le(()=>[S("div",Qs,[S("div",Js,[l.thin?O("",!0):(E(),te(f,{key:0,"logo-data":o(),"logo-name":l.cardData.name},null,8,["logo-data","logo-name"])),S("h2",Zs,U(l.cardData.name),1),l.cardData.paid?(E(),M("div",ei,[R(h,{ratings:l.cardData.ratings},null,8,["ratings"])])):O("",!0)]),R(m,{address:l.cardData.address,"service-area":l.cardData.service_area},null,8,["address","service-area"]),l.thin?O("",!0):(E(),M(Z,{key:0},[P(a)?(E(),M("div",ti,[R(We,{name:"fade"},{default:le(()=>[P(a)?(E(),M("img",{key:0,src:P(a),alt:"business image",class:"business-img",loading:"lazy",preset:"card",sizes:"sm:100vw md:50vw lg:400px",modifiers:{fit:"cover"}},null,8,si)):O("",!0)]),_:1})])):P(n)?(E(),te(_,{key:"2",class:"business-img-wrapper",coordinates:l.cardData.address.coordinates},null,8,["coordinates"])):(E(),M("div",ii,[...u[1]||(u[1]=[S("img",{src:Ys,alt:"business image",class:"business-img",loading:"lazy",preset:"card",sizes:"sm:100vw md:50vw lg:400px"},null,-1)])]))],64)),l.thin?O("",!0):(E(),M("div",ni,[l.cardData.verified&&l.cardData.paid?(E(),te(b,{key:0})):O("",!0),l.cardData.opening_hours&&l.cardData.timezone?(E(),te(w,{key:1,"opening-hours":l.cardData.opening_hours,timezone:l.cardData.timezone},null,8,["opening-hours","timezone"])):O("",!0)])),S("link",{href:d(l.cardData)},null,8,ri)])]),_:1},8,["to"])],2)}}}),Bn=q(oi,[["__scopeId","data-v-9d553de7"]]);function Ie(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Pe(e={},t={}){const s=["__proto__","constructor","prototype"];Object.keys(t).filter(i=>s.indexOf(i)<0).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:Ie(t[i])&&Ie(e[i])&&Object.keys(t[i]).length>0&&Pe(e[i],t[i])})}const Ye={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 oe(){const e=typeof document<"u"?document:{};return Pe(e,Ye),e}const ai={document:Ye,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(){}
vendor: 35,350 bytes, line 2
2,clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function F(){const e=typeof window<"u"?window:{};return Pe(e,ai),e}function li(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function di(e){const t=e;Object.keys(t).forEach(s=>{try{t[s]=null}catch{}try{delete t[s]}catch{}})}function Xe(e,t=0){return setTimeout(e,t)}function he(){return Date.now()}function ci(e){const t=F();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}function ui(e,t="x"){const s=F();let i,r,n;const a=ci(e);return s.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(d=>d.replace(",",".")).join(", ")),n=new s.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,"),i=n.toString().split(",")),t==="x"&&(s.WebKitCSSMatrix?r=n.m41:i.length===16?r=parseFloat(i[12]):r=parseFloat(i[4])),t==="y"&&(s.WebKitCSSMatrix?r=n.m42:i.length===16?r=parseFloat(i[13]):r=parseFloat(i[5])),r||0}function ue(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function fi(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function N(...e){const t=Object(e[0]),s=["__proto__","constructor","prototype"];for(let i=1;i<e.length;i+=1){const r=e[i];if(r!=null&&!fi(r)){const n=Object.keys(Object(r)).filter(a=>s.indexOf(a)<0);for(let a=0,d=n.length;a<d;a+=1){const o=n[a],l=Object.getOwnPropertyDescriptor(r,o);l!==void 0&&l.enumerable&&(ue(t[o])&&ue(r[o])?r[o].__swiper__?t[o]=r[o]:N(t[o],r[o]):!ue(t[o])&&ue(r[o])?(t[o]={},r[o].__swiper__?t[o]=r[o]:N(t[o],r[o])):t[o]=r[o])}}}return t}function fe(e,t,s){e.style.setProperty(t,s)}function Ke({swiper:e,targetPosition:t,side:s}){const i=F(),r=-e.translate;let n=null,a;const d=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const o=t>r?"next":"prev",l=(c,p)=>o==="next"&&c>=p||o==="prev"&&c<=p,u=()=>{a=new Date().getTime(),n===null&&(n=a);const c=Math.max(Math.min((a-n)/d,1),0),p=.5-Math.cos(c*Math.PI)/2;let f=r+p*(t-r);if(l(f,t)&&(f=t),e.wrapperEl.scrollTo({[s]:f}),l(f,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:f})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(u)};u()}function X(e,t=""){const s=F(),i=[...e.children];return s.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(r=>r.matches(t)):i}function pi(e,t){const s=[t];for(;s.length>0;){const i=s.shift();if(e===i)return!0;s.push(...i.children,...i.shadowRoot?i.shadowRoot.children:[],...i.assignedElements?i.assignedElements():[])}}function hi(e,t){const s=F();let i=t.contains(e);return!i&&s.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=pi(e,t))),i}function me(e){try{console.warn(e);return}catch{}}function ke(e,t=[]){const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:li(t)),s}function mi(e,t){const s=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&s.push(i):s.push(i),e=i}return s}function gi(e,t){const s=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&s.push(i):s.push(i),e=i}return s}function J(e,t){return F().getComputedStyle(e,null).getPropertyValue(t)}function Ae(e){let t=e,s;if(t){for(s=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(s+=1);return s}}function vi(e,t){const s=[];let i=e.parentElement;for(;i;)s.push(i),i=i.parentElement;return s}function Oe(e,t,s){const i=F();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Hn(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Nn(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:s=>s}).createHTML(t):e.innerHTML=t}let Se;function wi(){const e=F(),t=oe();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Qe(){return Se||(Se=wi()),Se}let ye;function Si({userAgent:e}={}){const t=Qe(),s=F(),i=s.navigator.platform,r=e||s.navigator.userAgent,n={ios:!1,android:!1},a=s.screen.width,d=s.screen.height,o=r.match(/(Android);?[\s\/]+([\d.]+)?/);let l=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),c=!l&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i==="Win32";let f=i==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!l&&f&&t.touch&&h.indexOf(`${a}x${d}`)>=0&&(l=r.match(/(Version)\/([\d.]+)/),l||(l=[0,1,"13_0_0"]),f=!1),o&&!p&&(n.os="android",n.android=!0),(l||c||u)&&(n.os="ios",n.ios=!0),n}function Je(e={}){return ye||(ye=Si(e)),ye}let be;function yi(){const e=F(),t=Je();let s=!1;function i(){const d=e.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(i()){const d=String(e.navigator.userAgent);if(d.includes("Version/")){const[o,l]=d.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));s=o<16||o===16&&l<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=i(),a=n||r&&t.ios;return{isSafari:s||n,needPerspectiveFix:s,need3dFix:a,isWebView:r}}function Ze(){return be||(be=yi()),be}function bi({swiper:e,on:t,emit:s}){const i=F();let r=null,n=null;const a=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(u=>{n=i.requestAnimationFrame(()=>{const{width:c,height:p}=e;let f=c,h=p;u.forEach(({contentBoxSize:m,contentRect:_,target:b})=>{b&&b!==e.el||(f=_?_.width:(m[0]||m).inlineSize,h=_?_.height:(m[0]||m).blockSize)}),(f!==c||h!==p)&&a()})}),r.observe(e.el))},o=()=>{n&&i.cancelAnimationFrame(n),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},l=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver<"u"){d();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",l)}),t("destroy",()=>{o(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",l)})}function Ti({swiper:e,extendParams:t,on:s,emit:i}){const r=[],n=F(),a=(l,u={})=>{const c=n.MutationObserver||n.WebkitMutationObserver,p=new c(f=>{if(e.__preventObserver__)return;if(f.length===1){i("observerUpdate",f[0]);return}const h=function(){i("observerUpdate",f[0])};n.requestAnimationFrame?n.requestAnimationFrame(h):n.setTimeout(h,0)});p.observe(l,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:e.isElement||(typeof u.childList>"u"?!0:u).childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),r.push(p)},d=()=>{if(e.params.observer){if(e.params.observeParents){const l=vi(e.hostEl);for(let u=0;u<l.length;u+=1)a(l[u])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},o=()=>{r.forEach(l=>{l.disconnect()}),r.splice(0,r.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",d),s("destroy",o)}var _i={on(e,t,s){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const r=s?"unshift":"push";return e.split(" ").forEach(n=>{i.eventsListeners[n]||(i.eventsListeners[n]=[]),i.eventsListeners[n][r](t)}),i},once(e,t,s){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;function r(...n){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(i,n)}return r.__emitterProxy=t,i.on(e,r,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const i=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[i](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed||!s.eventsListeners||e.split(" ").forEach(i=>{typeof t>"u"?s.eventsListeners[i]=[]:s.eventsListeners[i]&&s.eventsListeners[i].forEach((r,n)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&s.eventsListeners[i].splice(n,1)})}),s},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let s,i,r;return typeof e[0]=="string"||Array.isArray(e[0])?(s=e[0],i=e.slice(1,e.length),r=t):(s=e[0].events,i=e[0].data,r=e[0].context||t),i.unshift(r),(Array.isArray(s)?s:s.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(d=>{d.apply(r,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(d=>{d.apply(r,i)})}),t}};function xi(){const e=this;let t,s;const i=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=i.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?s=e.params.height:s=i.clientHeight,!(t===0&&e.isHorizontal()||s===0&&e.isVertical())&&(t=t-parseInt(J(i,"padding-left")||0,10)-parseInt(J(i,"padding-right")||0,10),s=s-parseInt(J(i,"padding-top")||0,10)-parseInt(J(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))}function Ei(){const e=this;function t(k,T){return parseFloat(k.getPropertyValue(e.getDirectionLabel(T))||0)}const s=e.params,{wrapperEl:i,slidesEl:r,rtlTranslate:n,wrongRTL:a}=e,d=e.virtual&&s.virtual.enabled,o=d?e.virtual.slides.length:e.slides.length,l=X(r,`.${e.params.slideClass}, swiper-slide`),u=d?e.virtual.slides.length:l.length;let c=[];const p=[],f=[];let h=s.slidesOffsetBefore;typeof h=="function"&&(h=s.slidesOffsetBefore.call(e));let m=s.slidesOffsetAfter;typeof m=="function"&&(m=s.slidesOffsetAfter.call(e));const _=e.snapGrid.length,b=e.slidesGrid.length,w=e.size-h-m;let v=s.spaceBetween,g=-h,y=0,A=0;if(typeof w>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*w:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v-h-m,l.forEach(k=>{n?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(fe(i,"--swiper-centered-offset-before",""),fe(i,"--swiper-centered-offset-after",""));const L=s.grid&&s.grid.rows>1&&e.grid;L?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let x;const D=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(k=>typeof s.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k<u;k+=1){x=0;const T=l[k];if(!(T&&(L&&e.grid.updateSlide(k,T,l),J(T,"display")==="none"))){if(d&&s.slidesPerView==="auto")s.virtual.slidesPerViewAutoSlideSize&&(x=s.virtual.slidesPerViewAutoSlideSize),x&&T&&(s.roundLengths&&(x=Math.floor(x)),T.style[e.getDirectionLabel("width")]=`${x}px`);else if(s.slidesPerView==="auto"){D&&(T.style[e.getDirectionLabel("width")]="");const I=getComputedStyle(T),V=T.style.transform,W=T.style.webkitTransform;if(V&&(T.style.transform="none"),W&&(T.style.webkitTransform="none"),s.roundLengths)x=e.isHorizontal()?Oe(T,"width"):Oe(T,"height");else{const Y=t(I,"width"),Ce=t(I,"padding-left"),ee=t(I,"padding-right"),C=t(I,"margin-left"),z=t(I,"margin-right"),G=I.getPropertyValue("box-sizing");if(G&&G==="border-box")x=Y+C+z;else{const{clientWidth:K,offsetWidth:st}=T;x=Y+Ce+ee+C+z+(st-K)}}V&&(T.style.transform=V),W&&(T.style.webkitTransform=W),s.roundLengths&&(x=Math.floor(x))}else x=(w-(s.slidesPerView-1)*v)/s.slidesPerView,s.roundLengths&&(x=Math.floor(x)),T&&(T.style[e.getDirectionLabel("width")]=`${x}px`);T&&(T.swiperSlideSize=x),f.push(x),s.centeredSlides?(g=g+x/2+y/2+v,y===0&&k!==0&&(g=g-w/2-v),k===0&&(g=g-w/2-v),Math.abs(g)<1/1e3&&(g=0),s.roundLengths&&(g=Math.floor(g)),A%s.slidesPerGroup===0&&c.push(g),p.push(g)):(s.roundLengths&&(g=Math.floor(g)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0&&c.push(g),p.push(g),g=g+x+v),e.virtualSize+=x+v,y=x,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,w)+m,n&&a&&(s.effect==="slide"||s.effect==="coverflow")&&(i.style.width=`${e.virtualSize+v}px`),s.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+v}px`),L&&e.grid.updateWrapperSize(x,c),!s.centeredSlides){const k=[];for(let T=0;T<c.length;T+=1){let I=c[T];s.roundLengths&&(I=Math.floor(I)),c[T]<=e.virtualSize-w&&k.push(I)}c=k,Math.floor(e.virtualSize-w)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-w)}if(d&&s.loop){const k=f[0]+v;if(s.slidesPerGroup>1){const T=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),I=k*s.slidesPerGroup;for(let V=0;V<T;V+=1)c.push(c[c.length-1]+I)}for(let T=0;T<e.virtual.slidesBefore+e.virtual.slidesAfter;T+=1)s.slidesPerGroup===1&&c.push(c[c.length-1]+k),p.push(p[p.length-1]+k),e.virtualSize+=k}if(c.length===0&&(c=[0]),v!==0){const k=e.isHorizontal()&&n?"marginLeft":e.getDirectionLabel("marginRight");l.filter((T,I)=>!s.cssMode||s.loop?!0:I!==l.length-1).forEach(T=>{T.style[k]=`${v}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let k=0;f.forEach(I=>{k+=I+(v||0)}),k-=v;const T=k>w?k-w:0;c=c.map(I=>I<=0?-h:I>T?T+m:I)}if(s.centerInsufficientSlides){let k=0;f.forEach(I=>{k+=I+(v||0)}),k-=v;const T=(h||0)+(m||0);if(k+T<w){const I=(w-k-T)/2;c.forEach((V,W)=>{c[W]=V-I}),p.forEach((V,W)=>{p[W]=V+I})}}if(Object.assign(e,{slides:l,snapGrid:c,slidesGrid:p,slidesSizesGrid:f}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){fe(i,"--swiper-centered-offset-before",`${-c[0]}px`),fe(i,"--swiper-centered-offset-after",`${e.size/2-f[f.length-1]/2}px`);const k=-e.snapGrid[0],T=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(I=>I+k),e.slidesGrid=e.slidesGrid.map(I=>I+T)}if(u!==o&&e.emit("slidesLengthChange"),c.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!d&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const k=`${s.containerModifierClass}backface-hidden`,T=e.el.classList.contains(k);u<=s.maxBackfaceHiddenSlides?T||e.el.classList.add(k):T&&e.el.classList.remove(k)}}function ki(e){const t=this,s=[],i=t.virtual&&t.params.virtual.enabled;let r=0,n;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=d=>i?t.slides[t.getSlideIndexByData(d)]:t.slides[d];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(d=>{s.push(d)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const d=t.activeIndex+n;if(d>t.slides.length&&!i)break;s.push(a(d))}else s.push(a(t.activeIndex));for(n=0;n<s.length;n+=1)if(typeof s[n]<"u"){const d=s[n].offsetHeight;r=d>r?d:r}(r||r===0)&&(t.wrapperEl.style.height=`${r}px`)}function Mi(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-s-e.cssOverflowAdjustment()}const De=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};function Pi(e=this&&this.translate||0){const t=this,s=t.params,{slides:i,rtlTranslate:r,snapGrid:n}=t;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;r&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let d=s.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*t.size:typeof d=="string"&&(d=parseFloat(d));for(let o=0;o<i.length;o+=1){const l=i[o];let u=l.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(u-=i[0].swiperSlideOffset);const c=(a+(s.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+d),p=(a-n[0]+(s.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+d),f=-(a-u),h=f+t.slidesSizesGrid[o],m=f>=0&&f<=t.size-t.slidesSizesGrid[o],_=f>=0&&f<t.size-1||h>1&&h<=t.size||f<=0&&h>=t.size;_&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(o)),De(l,_,s.slideVisibleClass),De(l,m,s.slideFullyVisibleClass),l.progress=r?-c:c,l.originalProgress=r?-p:p}}function Ci(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const s=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:n,isEnd:a,progressLoop:d}=t;const o=n,l=a;if(i===0)r=0,n=!0,a=!0;else{r=(e-t.minTranslate())/i;const u=Math.abs(e-t.minTranslate())<1,c=Math.abs(e-t.maxTranslate())<1;n=u||r<=0,a=c||r>=1,u&&(r=0),c&&(r=1)}if(s.loop){const u=t.getSlideIndexByData(0),c=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[u],f=t.slidesGrid[c],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=p?d=(m-p)/h:d=(m+h-f)/h,d>1&&(d-=1)}Object.assign(t,{progress:r,progressLoop:d,isBeginning:n,isEnd:a}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),n&&!o&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(o&&!n||l&&!a)&&t.emit("fromEdge"),t.emit("progress",r)}const Te=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};function Li(){const e=this,{slides:t,params:s,slidesEl:i,activeIndex:r}=e,n=e.virtual&&s.virtual.enabled,a=e.grid&&s.grid&&s.grid.rows>1,d=c=>X(i,`.${s.slideClass}${c}, swiper-slide${c}`)[0];let o,l,u;if(n)if(s.loop){let c=r-e.virtual.slidesBefore;c<0&&(c=e.virtual.slides.length+c),c>=e.virtual.slides.length&&(c-=e.virtual.slides.length),o=d(`[data-swiper-slide-index="${c}"]`)}else o=d(`[data-swiper-slide-index="${r}"]`);else a?(o=t.find(c=>c.column===r),u=t.find(c=>c.column===r+1),l=t.find(c=>c.column===r-1)):o=t[r];o&&(a||(u=gi(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!u&&(u=t[0]),l=mi(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!l===0&&(l=t[t.length-1]))),t.forEach(c=>{Te(c,c===o,s.slideActiveClass),Te(c,c===u,s.slideNextClass),Te(c,c===l,s.slidePrevClass)}),e.emitSlidesClasses()}const pe=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,i=t.closest(s());if(i){let r=i.querySelector(`.${e.params.lazyPreloaderClass}`);!r&&e.isElement&&(i.shadowRoot?r=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(r=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},_e=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},Me=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const i=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,d=[a-t];d.push(...Array.from({length:t}).map((o,l)=>a+i+l)),e.slides.forEach((o,l)=>{d.includes(o.column)&&_e(e,l)});return}const n=r+i-1;if(e.params.rewind||e.params.loop)for(let a=r-t;a<=n+t;a+=1){const d=(a%s+s)%s;(d<r||d>n)&&_e(e,d)}else for(let a=Math.max(r-t,0);a<=Math.min(n+t,s-1);a+=1)a!==r&&(a>n||a<r)&&_e(e,a)};function Ii(e){const{slidesGrid:t,params:s}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let n=0;n<t.length;n+=1)typeof t[n+1]<"u"?i>=t[n]&&i<t[n+1]-(t[n+1]-t[n])/2?r=n:i>=t[n]&&i<t[n+1]&&(r=n+1):i>=t[n]&&(r=n);return s.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function Ai(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:n,realIndex:a,snapIndex:d}=t;let o=e,l;const u=f=>{let h=f-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 o>"u"&&(o=Ii(t)),i.indexOf(s)>=0)l=i.indexOf(s);else{const f=Math.min(r.slidesPerGroupSkip,o);l=f+Math.floor((o-f)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),o===n&&!t.params.loop){l!==d&&(t.snapIndex=l,t.emit("snapIndexChange"));return}if(o===n&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=u(o);return}const c=t.grid&&r.grid&&r.grid.rows>1;let p;if(t.virtual&&r.virtual.enabled&&r.loop)p=u(o);else if(c){const f=t.slides.find(m=>m.column===o);let h=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(f),0)),p=Math.floor(h/r.grid.rows)}else if(t.slides[o]){const f=t.slides[o].getAttribute("data-swiper-slide-index");f?p=parseInt(f,10):p=o}else p=o;Object.assign(t,{previousSnapIndex:d,snapIndex:l,previousRealIndex:a,realIndex:p,previousIndex:n,activeIndex:o}),t.initialized&&Me(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==p&&t.emit("realIndexChange"),t.emit("slideChange"))}function Oi(e,t){const s=this,i=s.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(d=>{!r&&d.matches&&d.matches(`.${i.slideClass}, swiper-slide`)&&(r=d)});let n=!1,a;if(r){for(let d=0;d<s.slides.length;d+=1)if(s.slides[d]===r){n=!0,a=d;break}}if(r&&n)s.clickedSlide=r,s.virtual&&s.params.virtual.enabled?s.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):s.clickedIndex=a;else{s.clickedSlide=void 0,s.clickedIndex=void 0;return}i.slideToClickedSlide&&s.clickedIndex!==void 0&&s.clickedIndex!==s.activeIndex&&s.slideToClickedSlide()}var Di={updateSize:xi,updateSlides:Ei,updateAutoHeight:ki,updateSlidesOffset:Mi,updateSlidesProgress:Pi,updateProgress:Ci,updateSlidesClasses:Li,updateActiveIndex:Ai,updateClickedSlide:Oi};function zi(e=this.isHorizontal()?"x":"y"){const t=this,{params:s,rtlTranslate:i,translate:r,wrapperEl:n}=t;if(s.virtualTranslate)return i?-r:r;if(s.cssMode)return r;let a=ui(n,e);return a+=t.cssOverflowAdjustment(),i&&(a=-a),a||0}function $i(e,t){const s=this,{rtlTranslate:i,params:r,wrapperEl:n,progress:a}=s;let d=0,o=0;const l=0;s.isHorizontal()?d=i?-e:e:o=e,r.roundLengths&&(d=Math.floor(d),o=Math.floor(o)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?d:o,r.cssMode?n[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-d:-o:r.virtualTranslate||(s.isHorizontal()?d-=s.cssOverflowAdjustment():o-=s.cssOverflowAdjustment(),n.style.transform=`translate3d(${d}px, ${o}px, ${l}px)`);let u;const c=s.maxTranslate()-s.minTranslate();c===0?u=0:u=(e-s.minTranslate())/c,u!==a&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)}function Fi(){return-this.snapGrid[0]}function Vi(){return-this.snapGrid[this.snapGrid.length-1]}function Gi(e=0,t=this.params.speed,s=!0,i=!0,r){const n=this,{params:a,wrapperEl:d}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const o=n.minTranslate(),l=n.maxTranslate();let u;if(i&&e>o?u=o:i&&e<l?u=l:u=e,n.updateProgress(u),a.cssMode){const c=n.isHorizontal();if(t===0)d[c?"scrollLeft":"scrollTop"]=-u;else{if(!n.support.smoothScroll)return Ke({swiper:n,targetPosition:-u,side:c?"left":"top"}),!0;d.scrollTo({[c?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(n.setTransition(0),n.setTranslate(u),s&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(u),s&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(p){!n||n.destroyed||p.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,n.animating=!1,s&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var Bi={getTranslate:zi,setTranslate:$i,minTranslate:Fi,maxTranslate:Vi,translateTo:Gi};function Hi(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=e===0?"0ms":""),s.emit("setTransition",e,t)}function et({swiper:e,runCallbacks:t,direction:s,step:i}){const{activeIndex:r,previousIndex:n}=e;let a=s;a||(r>n?a="next":r<n?a="prev":a="reset"),e.emit(`transition${i}`),t&&a==="reset"?e.emit(`slideResetTransition${i}`):t&&r!==n&&(e.emit(`slideChangeTransition${i}`),a==="next"?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}function Ni(e=!0,t){const s=this,{params:i}=s;i.cssMode||(i.autoHeight&&s.updateAutoHeight(),et({swiper:s,runCallbacks:e,direction:t,step:"Start"}))}function Ri(e=!0,t){const s=this,{params:i}=s;s.animating=!1,!i.cssMode&&(s.setTransition(0),et({swiper:s,runCallbacks:e,direction:t,step:"End"}))}var qi={setTransition:Hi,transitionStart:Ni,transitionEnd:Ri};function Wi(e=0,t,s=!0,i,r){typeof e=="string"&&(e=parseInt(e,10));const n=this;let a=e;a<0&&(a=0);const{params:d,snapGrid:o,slidesGrid:l,previousIndex:u,activeIndex:c,rtlTranslate:p,wrapperEl:f,enabled:h}=n;if(!h&&!i&&!r||n.destroyed||n.animating&&d.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=n.params.speed);const m=Math.min(n.params.slidesPerGroupSkip,a);let _=m+Math.floor((a-m)/n.params.slidesPerGroup);_>=o.length&&(_=o.length-1);const b=-o[_];if(d.normalizeSlideIndex)for(let L=0;L<l.length;L+=1){const x=-Math.floor(b*100),D=Math.floor(l[L]*100),k=Math.floor(l[L+1]*100);typeof l[L+1]<"u"?x>=D&&x<k-(k-D)/2?a=L:x>=D&&x<k&&(a=L+1):x>=D&&(a=L)}if(n.initialized&&a!==c&&(!n.allowSlideNext&&(p?b>n.translate&&b>n.minTranslate():b<n.translate&&b<n.minTranslate())||!n.allowSlidePrev&&b>n.translate&&b>n.maxTranslate()&&(c||0)!==a))return!1;a!==(u||0)&&s&&n.emit("beforeSlideChangeStart"),n.updateProgress(b);let w;a>c?w="next":a<c?w="prev":w="reset";const v=n.virtual&&n.params.virtual.enabled;if(!(v&&r)&&(p&&-b===n.translate||!p&&b===n.translate))return n.updateActiveIndex(a),d.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),d.effect!=="slide"&&n.setTranslate(b),w!=="reset"&&(n.transitionStart(s,w),n.transitionEnd(s,w)),!1;if(d.cssMode){const L=n.isHorizontal(),x=p?b:-b;if(t===0)v&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),v&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[L?"scrollLeft":"scrollTop"]=x})):f[L?"scrollLeft":"scrollTop"]=x,v&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1});else{if(!n.support.smoothScroll)return Ke({swiper:n,targetPosition:x,side:L?"left":"top"}),!0;f.scrollTo({[L?"left":"top"]:x,behavior:"smooth"})}return!0}const A=Ze().isSafari;return v&&!r&&A&&n.isElement&&n.virtual.update(!1,!1,a),n.setTransition(t),n.setTranslate(b),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,i),n.transitionStart(s,w),t===0?n.transitionEnd(s,w):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(x){!n||n.destroyed||x.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(s,w))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function ji(e=0,t,s=!0,i){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 d;if(n){const m=a*r.params.grid.rows;d=r.slides.find(_=>_.getAttribute("data-swiper-slide-index")*1===m).column}else d=r.getSlideIndexByData(a);const o=n?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:l,slidesOffsetBefore:u,slidesOffsetAfter:c}=r.params,p=l||!!u||!!c;let f=r.params.slidesPerView;f==="auto"?f=r.slidesPerViewDynamic():(f=Math.ceil(parseFloat(r.params.slidesPerView,10)),p&&f%2===0&&(f=f+1));let h=o-d<f;if(p&&(h=h||d<Math.ceil(f/2)),i&&p&&r.params.slidesPerView!=="auto"&&!n&&(h=!1),h){const m=p?d<r.activeIndex?"prev":"next":d-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:m,slideTo:!0,activeSlideIndex:m==="next"?d+1:d-o+1,slideRealIndex:m==="next"?r.realIndex:void 0})}if(n){const m=a*r.params.grid.rows;a=r.slides.find(_=>_.getAttribute("data-swiper-slide-index")*1===m).column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame(()=>{r.slideTo(a,t,s,i)}),r}function Ui(e,t=!0,s){const i=this,{enabled:r,params:n,animating:a}=i;if(!r||i.destroyed)return i;typeof e>"u"&&(e=i.params.speed);let d=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(d=Math.max(i.slidesPerViewDynamic("current",!0),1));const o=i.activeIndex<n.slidesPerGroupSkip?1:d,l=i.virtual&&n.virtual.enabled;if(n.loop){if(a&&!l&&n.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+o,e,t,s)}),!0}return n.rewind&&i.isEnd?i.slideTo(0,e,t,s):i.slideTo(i.activeIndex+o,e,t,s)}function Yi(e,t=!0,s){const i=this,{params:r,snapGrid:n,slidesGrid:a,rtlTranslate:d,enabled:o,animating:l}=i;if(!o||i.destroyed)return i;typeof e>"u"&&(e=i.params.speed);const u=i.virtual&&r.virtual.enabled;if(r.loop){if(l&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const c=d?i.translate:-i.translate;function p(w){return w<0?-Math.floor(Math.abs(w)):Math.floor(w)}const f=p(c),h=n.map(w=>p(w)),m=r.freeMode&&r.freeMode.enabled;let _=n[h.indexOf(f)-1];if(typeof _>"u"&&(r.cssMode||m)){let w;n.forEach((v,g)=>{f>=v&&(w=g)}),typeof w<"u"&&(_=m?n[w]:n[w>0?w-1:w])}let b=0;if(typeof _<"u"&&(b=a.indexOf(_),b<0&&(b=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(b=b-i.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),r.rewind&&i.isBeginning){const w=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(w,e,t,s)}else if(r.loop&&i.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(b,e,t,s)}),!0;return i.slideTo(b,e,t,s)}function Xi(e,t=!0,s){const i=this;if(!i.destroyed)return typeof e>"u"&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,s)}function Ki(e,t=!0,s,i=.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),d=a+Math.floor((n-a)/r.params.slidesPerGroup),o=r.rtlTranslate?r.translate:-r.translate;if(o>=r.snapGrid[d]){const l=r.snapGrid[d],u=r.snapGrid[d+1];o-l>(u-l)*i&&(n+=r.params.slidesPerGroup)}else{const l=r.snapGrid[d-1],u=r.snapGrid[d];o-l<=(u-l)*i&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,s)}function Qi(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:s}=e,i=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.getSlideIndexWhenGrid(e.clickedIndex),n;const a=e.isElement?"swiper-slide":`.${t.slideClass}`,d=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>(d?(e.slides.length-i)/2-(e.params.grid.rows-1):e.slides.length-i)?(e.loopFix(),r=e.getSlideIndex(X(s,`${a}[data-swiper-slide-index="${n}"]`)[0]),Xe(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}var Ji={slideTo:Wi,slideToLoop:ji,slideNext:Ui,slidePrev:Yi,slideReset:Xi,slideToClosest:Ki,slideToClickedSlide:Qi};function Zi(e,t){const s=this,{params:i,slidesEl:r}=s;if(!i.loop||s.virtual&&s.params.virtual.enabled)return;const n=()=>{X(r,`.${i.slideClass}, swiper-slide`).forEach((h,m)=>{h.setAttribute("data-swiper-slide-index",m)})},a=()=>{const f=X(r,`.${i.slideBlankClass}`);f.forEach(h=>{h.remove()}),f.length>0&&(s.recalcSlides(),s.updateSlides())},d=s.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||d)&&a();const o=i.slidesPerGroup*(d?i.grid.rows:1),l=s.slides.length%o!==0,u=d&&s.slides.length%i.grid.rows!==0,c=f=>{for(let h=0;h<f;h+=1){const m=s.isElement?ke("swiper-slide",[i.slideBlankClass]):ke("div",[i.slideClass,i.slideBlankClass]);s.slidesEl.append(m)}};if(l){if(i.loopAddBlankSlides){const f=o-s.slides.length%o;c(f),s.recalcSlides(),s.updateSlides()}else me("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(u){if(i.loopAddBlankSlides){const f=i.grid.rows-s.slides.length%i.grid.rows;c(f),s.recalcSlides(),s.updateSlides()}else me("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();const p=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;s.loopFix({slideRealIndex:e,direction:p?void 0:"next",initial:t})}function en({slideRealIndex:e,slideTo:t=!0,direction:s,setTranslate:i,activeSlideIndex:r,initial:n,byController:a,byMousewheel:d}={}){const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:l,allowSlidePrev:u,allowSlideNext:c,slidesEl:p,params:f}=o,{centeredSlides:h,slidesOffsetBefore:m,slidesOffsetAfter:_,initialSlide:b}=f,w=h||!!m||!!_;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&f.virtual.enabled){t&&(!w&&o.snapIndex===0?o.slideTo(o.virtual.slides.length,0,!1,!0):w&&o.snapIndex<f.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0)),o.allowSlidePrev=u,o.allowSlideNext=c,o.emit("loopFix");return}let v=f.slidesPerView;v==="auto"?v=o.slidesPerViewDynamic():(v=Math.ceil(parseFloat(f.slidesPerView,10)),w&&v%2===0&&(v=v+1));const g=f.slidesPerGroupAuto?v:f.slidesPerGroup;let y=w?Math.max(g,Math.ceil(v/2)):g;y%g!==0&&(y+=g-y%g),y+=f.loopAdditionalSlides,o.loopedSlides=y;const A=o.grid&&f.grid&&f.grid.rows>1;l.length<v+y||o.params.effect==="cards"&&l.length<v+y*2?me("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"):A&&f.grid.fill==="row"&&me("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const L=[],x=[],D=A?Math.ceil(l.length/f.grid.rows):l.length,k=n&&D-b<v&&!w;let T=k?b:o.activeIndex;typeof r>"u"?r=o.getSlideIndex(l.find(C=>C.classList.contains(f.slideActiveClass))):T=r;const I=s==="next"||!s,V=s==="prev"||!s;let W=0,Y=0;const ee=(A?l[r].column:r)+(w&&typeof i>"u"?-v/2+.5:0);if(ee<y){W=Math.max(y-ee,g);for(let C=0;C<y-ee;C+=1){const z=C-Math.floor(C/D)*D;if(A){const G=D-z-1;for(let K=l.length-1;K>=0;K-=1)l[K].column===G&&L.push(K)}else L.push(D-z-1)}}else if(ee+v>
vendor: 15,484 bytes, line 2
2D-y){Y=Math.max(ee-(D-y*2),g),k&&(Y=Math.max(Y,v-D+b+1));for(let C=0;C<Y;C+=1){const z=C-Math.floor(C/D)*D;A?l.forEach((G,K)=>{G.column===z&&x.push(K)}):x.push(z)}}if(o.__preventObserver__=!0,requestAnimationFrame(()=>{o.__preventObserver__=!1}),o.params.effect==="cards"&&l.length<v+y*2&&(x.includes(r)&&x.splice(x.indexOf(r),1),L.includes(r)&&L.splice(L.indexOf(r),1)),V&&L.forEach(C=>{l[C].swiperLoopMoveDOM=!0,p.prepend(l[C]),l[C].swiperLoopMoveDOM=!1}),I&&x.forEach(C=>{l[C].swiperLoopMoveDOM=!0,p.append(l[C]),l[C].swiperLoopMoveDOM=!1}),o.recalcSlides(),f.slidesPerView==="auto"?o.updateSlides():A&&(L.length>0&&V||x.length>0&&I)&&o.slides.forEach((C,z)=>{o.grid.updateSlide(z,C,o.slides)}),f.watchSlidesProgress&&o.updateSlidesOffset(),t){if(L.length>0&&V){if(typeof e>"u"){const C=o.slidesGrid[T],G=o.slidesGrid[T+W]-C;d?o.setTranslate(o.translate-G):(o.slideTo(T+Math.ceil(W),0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-G,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-G))}else if(i){const C=A?L.length/f.grid.rows:L.length;o.slideTo(o.activeIndex+C,0,!1,!0),o.touchEventsData.currentTranslate=o.translate}}else if(x.length>0&&I)if(typeof e>"u"){const C=o.slidesGrid[T],G=o.slidesGrid[T-Y]-C;d?o.setTranslate(o.translate-G):(o.slideTo(T-Y,0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-G,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-G))}else{const C=A?x.length/f.grid.rows:x.length;o.slideTo(o.activeIndex-C,0,!1,!0)}}if(o.allowSlidePrev=u,o.allowSlideNext=c,o.controller&&o.controller.control&&!a){const C={slideRealIndex:e,direction:s,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...C,slideTo:z.params.slidesPerView===f.slidesPerView?t:!1})}):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix({...C,slideTo:o.controller.control.params.slidesPerView===f.slidesPerView?t:!1})}o.emit("loopFix")}function tn(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||!s||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;i[n]=r}),e.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),i.forEach(r=>{s.append(r)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var sn={loopCreate:Zi,loopFix:en,loopDestroy:tn};function nn(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function rn(){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 on={setGrabCursor:nn,unsetGrabCursor:rn};function an(e,t=this){function s(i){if(!i||i===oe()||i===F())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(e);return!r&&!i.getRootNode?null:r||s(i.getRootNode().host)}return s(t)}function ze(e,t,s){const i=F(),{params:r}=e,n=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return n&&(s<=a||s>=i.innerWidth-a)?n==="prevent"?(t.preventDefault(),!0):!1:!0}function ln(e){const t=this,s=oe();let i=e;i.originalEvent&&(i=i.originalEvent);const r=t.touchEventsData;if(i.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(r.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){ze(t,i,i.targetTouches[0].pageX);return}const{params:n,touches:a,enabled:d}=t;if(!d||!n.simulateTouch&&i.pointerType==="mouse"||t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let o=i.target;if(n.touchEventsTarget==="wrapper"&&!hi(o,t.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||r.isTouched&&r.isMoved)return;const l=!!n.noSwipingClass&&n.noSwipingClass!=="",u=i.composedPath?i.composedPath():i.path;l&&i.target&&i.target.shadowRoot&&u&&(o=u[0]);const c=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,p=!!(i.target&&i.target.shadowRoot);if(n.noSwiping&&(p?an(c,o):o.closest(c))){t.allowClick=!0;return}if(n.swipeHandler&&!o.closest(n.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const f=a.currentX,h=a.currentY;if(!ze(t,i,f))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=f,a.startY=h,r.touchStartTime=he(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let m=!0;o.matches(r.focusableElements)&&(m=!1,o.nodeName==="SELECT"&&(r.isTouched=!1)),s.activeElement&&s.activeElement.matches(r.focusableElements)&&s.activeElement!==o&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!o.matches(r.focusableElements))&&s.activeElement.blur();const _=m&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||_)&&!o.isContentEditable&&i.preventDefault(),n.freeMode&&n.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function dn(e){const t=oe(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:a,enabled:d}=s;if(!d||!r.simulateTouch&&e.pointerType==="mouse")return;let o=e;if(o.originalEvent&&(o=o.originalEvent),o.type==="pointermove"&&(i.touchId!==null||o.pointerId!==i.pointerId))return;let l;if(o.type==="touchmove"){if(l=[...o.changedTouches].find(y=>y.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=o;if(!i.isTouched){i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",o);return}const u=l.pageX,c=l.pageY;if(o.preventedByNestedSwiper){n.startX=u,n.startY=c;return}if(!s.allowTouchMove){o.target.matches(i.focusableElements)||(s.allowClick=!1),i.isTouched&&(Object.assign(n,{startX:u,startY:c,currentX:u,currentY:c}),i.touchStartTime=he());return}if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(c<n.startY&&s.translate<=s.maxTranslate()||c>n.startY&&s.translate>=s.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else{if(a&&(u>n.startX&&-s.translate<=s.maxTranslate()||u<n.startX&&-s.translate>=s.minTranslate()))return;if(!a&&(u<n.startX&&s.translate<=s.maxTranslate()||u>n.startX&&s.translate>=s.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==o.target&&o.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&o.target===t.activeElement&&o.target.matches(i.focusableElements)){i.isMoved=!0,s.allowClick=!1;return}i.allowTouchCallbacks&&s.emit("touchMove",o),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=u,n.currentY=c;const p=n.currentX-n.startX,f=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(p**2+f**2)<s.params.threshold)return;if(typeof i.isScrolling>"u"){let y;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:p*p+f*f>=25&&(y=Math.atan2(Math.abs(f),Math.abs(p))*180/Math.PI,i.isScrolling=s.isHorizontal()?y>r.touchAngle:90-y>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",o),typeof i.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(i.startMoving=!0),i.isScrolling||o.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&o.cancelable&&o.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&o.stopPropagation();let h=s.isHorizontal()?p:f,m=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(h=Math.abs(h)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),n.diff=h,h*=r.touchRatio,a&&(h=-h,m=-m);const _=s.touchesDirection;s.swipeDirection=h>0?"prev":"next",s.touchesDirection=m>0?"prev":"next";const b=s.params.loop&&!r.cssMode,w=s.touchesDirection==="next"&&s.allowSlideNext||s.touchesDirection==="prev"&&s.allowSlidePrev;if(!i.isMoved){if(b&&w&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const y=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});s.wrapperEl.dispatchEvent(y)}i.allowMomentumBounce=!1,r.grabCursor&&(s.allowSlideNext===!0||s.allowSlidePrev===!0)&&s.setGrabCursor(!0),s.emit("sliderFirstMove",o)}if(new Date().getTime(),r._loopSwapReset!==!1&&i.isMoved&&i.allowThresholdMove&&_!==s.touchesDirection&&b&&w&&Math.abs(h)>=1){Object.assign(n,{startX:u,startY:c,currentX:u,currentY:c,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}s.emit("sliderMove",o),i.isMoved=!0,i.currentTranslate=h+i.startTranslate;let v=!0,g=r.resistanceRatio;if(r.touchReleaseOnEdges&&(g=0),h>0?(b&&w&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]-(r.slidesPerView!=="auto"&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.activeIndex+1]+s.params.spaceBetween:0)-s.params.spaceBetween:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(v=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+h)**g))):h<0&&(b&&w&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween+(r.slidesPerView!=="auto"&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween:0):s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-(r.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<s.maxTranslate()&&(v=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-h)**g))),v&&(o.preventedByNestedSwiper=!0),!s.allowSlideNext&&s.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&s.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&!s.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(h)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function cn(e){const t=this,s=t.touchEventsData;let i=e;i.originalEvent&&(i=i.originalEvent);let r;if(i.type==="touchend"||i.type==="touchcancel"){if(r=[...i.changedTouches].find(y=>y.identifier===s.touchId),!r||r.identifier!==s.touchId)return}else{if(s.touchId!==null||i.pointerId!==s.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return;s.pointerId=null,s.touchId=null;const{params:a,touches:d,rtlTranslate:o,slidesGrid:l,enabled:u}=t;if(!u||!a.simulateTouch&&i.pointerType==="mouse")return;if(s.allowTouchCallbacks&&t.emit("touchEnd",i),s.allowTouchCallbacks=!1,!s.isTouched){s.isMoved&&a.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,s.startMoving=!1;return}a.grabCursor&&s.isMoved&&s.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const c=he(),p=c-s.touchStartTime;if(t.allowClick){const y=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(y&&y[0]||i.target,y),t.emit("tap click",i),p<300&&c-s.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(s.lastClickTime=he(),Xe(()=>{t.destroyed||(t.allowClick=!0)}),!s.isTouched||!s.isMoved||!t.swipeDirection||d.diff===0&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset){s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;return}s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;let f;if(a.followFinger?f=o?t.translate:-t.translate:f=-s.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}const h=f>=-t.maxTranslate()&&!t.params.loop;let m=0,_=t.slidesSizesGrid[0];for(let y=0;y<l.length;y+=y<a.slidesPerGroupSkip?1:a.slidesPerGroup){const A=y<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof l[y+A]<"u"?(h||f>=l[y]&&f<l[y+A])&&(m=y,_=l[y+A]-l[y]):(h||f>=l[y])&&(m=y,_=l[l.length-1]-l[l.length-2])}let b=null,w=null;a.rewind&&(t.isBeginning?w=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const v=(f-l[m])/_,g=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(p>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?b:m+g):t.slideTo(m)),t.swipeDirection==="prev"&&(v>1-a.longSwipesRatio?t.slideTo(m+g):w!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?t.slideTo(w):t.slideTo(m))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(m+g):t.slideTo(m):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:m+g),t.swipeDirection==="prev"&&t.slideTo(w!==null?w:m))}}function $e(){const e=this,{params:t,el:s}=e;if(s&&s.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:n}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const d=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!d?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=i,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function un(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function fn(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:i}=e;if(!i)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let r;const n=e.maxTranslate()-e.minTranslate();n===0?r=0:r=(e.translate-e.minTranslate())/n,r!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function pn(e){const t=this;pe(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update(
vendor: 16,447 bytes, line 2
2)}function hn(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const tt=(e,t)=>{const s=oe(),{params:i,el:r,wrapperEl:n,device:a}=e,d=!!i.nested,o=t==="on"?"addEventListener":"removeEventListener",l=t;!r||typeof r=="string"||(s[o]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:d}),r[o]("touchstart",e.onTouchStart,{passive:!1}),r[o]("pointerdown",e.onTouchStart,{passive:!1}),s[o]("touchmove",e.onTouchMove,{passive:!1,capture:d}),s[o]("pointermove",e.onTouchMove,{passive:!1,capture:d}),s[o]("touchend",e.onTouchEnd,{passive:!0}),s[o]("pointerup",e.onTouchEnd,{passive:!0}),s[o]("pointercancel",e.onTouchEnd,{passive:!0}),s[o]("touchcancel",e.onTouchEnd,{passive:!0}),s[o]("pointerout",e.onTouchEnd,{passive:!0}),s[o]("pointerleave",e.onTouchEnd,{passive:!0}),s[o]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[o]("click",e.onClick,!0),i.cssMode&&n[o]("scroll",e.onScroll),i.updateOnWindowResize?e[l](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",$e,!0):e[l]("observerUpdate",$e,!0),r[o]("load",e.onLoad,{capture:!0}))};function mn(){const e=this,{params:t}=e;e.onTouchStart=ln.bind(e),e.onTouchMove=dn.bind(e),e.onTouchEnd=cn.bind(e),e.onDocumentTouchStart=hn.bind(e),t.cssMode&&(e.onScroll=fn.bind(e)),e.onClick=un.bind(e),e.onLoad=pn.bind(e),tt(e,"on")}function gn(){tt(this,"off")}var vn={attachEvents:mn,detachEvents:gn};const Fe=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function wn(){const e=this,{realIndex:t,initialized:s,params:i,el:r}=e,n=i.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const a=oe(),d=i.breakpointsBase==="window"||!i.breakpointsBase?i.breakpointsBase:"container",o=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:a.querySelector(i.breakpointsBase),l=e.getBreakpoint(n,d,o);if(!l||e.currentBreakpoint===l)return;const c=(l in n?n[l]:void 0)||e.originalParams,p=Fe(e,i),f=Fe(e,c),h=e.params.grabCursor,m=c.grabCursor,_=i.enabled;p&&!f?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&f&&(r.classList.add(`${i.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&i.grid.fill==="column")&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!m?e.unsetGrabCursor():!h&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof c[A]>"u")return;const L=i[A]&&i[A].enabled,x=c[A]&&c[A].enabled;L&&!x&&e[A].disable(),!L&&x&&e[A].enable()});const b=c.direction&&c.direction!==i.direction,w=i.loop&&(c.slidesPerView!==i.slidesPerView||b),v=i.loop;b&&s&&e.changeDirection(),N(e.params,c);const g=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),_&&!g?e.disable():!_&&g&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),s&&(w?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&y?(e.loopCreate(t),e.updateSlides()):v&&!y&&e.loopDestroy()),e.emit("breakpoint",c)}function Sn(e,t="window",s){if(!e||t==="container"&&!s)return;let i=!1;const r=F(),n=t==="window"?r.innerHeight:s.clientHeight,a=Object.keys(e).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const o=parseFloat(d.substr(1));return{value:n*o,point:d}}return{value:d,point:d}});a.sort((d,o)=>parseInt(d.value,10)-parseInt(o.value,10));for(let d=0;d<a.length;d+=1){const{point:o,value:l}=a[d];t==="window"?r.matchMedia(`(min-width: ${l}px)`).matches&&(i=o):l<=s.clientWidth&&(i=o)}return i||"max"}var yn={setBreakpoint:wn,getBreakpoint:Sn};function bn(e,t){const s=[];return e.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&s.push(t+r)}):typeof i=="string"&&s.push(t+i)}),s}function Tn(){const e=this,{classNames:t,params:s,rtl:i,el:r,device:n}=e,a=bn(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:i},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&s.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...a),r.classList.add(...t),e.emitContainerClasses()}function _n(){const e=this,{el:t,classNames:s}=e;!t||typeof t=="string"||(t.classList.remove(...s),e.emitContainerClasses())}var xn={addClasses:Tn,removeClasses:_n};function En(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:i}=s;if(i){const r=e.slides.length-1,n=e.slidesGrid[r]+e.slidesSizesGrid[r]+i*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;s.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),s.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var kn={checkOverflow:En},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 Mn(e,t){return function(i={}){const r=Object.keys(i)[0],n=i[r];if(typeof n!="object"||n===null){N(t,i);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)){N(t,i);return}typeof e[r]=="object"&&!("enabled"in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),N(t,i)}}const xe={eventsEmitter:_i,update:Di,translate:Bi,transition:qi,slide:Ji,loop:sn,grabCursor:on,events:vn,breakpoints:yn,checkOverflow:kn,classes:xn},Ee={};class j{constructor(...t){let s,i;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?i=t[0]:[s,i]=t,i||(i={}),i=N({},i),s&&!i.el&&(i.el=s);const r=oe();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const o=[];return r.querySelectorAll(i.el).forEach(l=>{const u=N({},i,{el:l});o.push(new j(u))}),o}const n=this;n.__swiper__=!0,n.support=Qe(),n.device=Je({userAgent:i.userAgent}),n.browser=Ze(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],i.modules&&Array.isArray(i.modules)&&n.modules.push(...i.modules);const a={};n.modules.forEach(o=>{o({params:i,swiper:n,extendParams:Mn(i,a),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const d=N({},Ve,a);return n.params=N({},d,Ee,i),n.originalParams=N({},n.params),n.passedParams=N({},i),n.params&&n.params.on&&Object.keys(n.params.on).forEach(o=>{n.on(o,n.params.on[o])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:s,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}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:s,params:i}=this,r=X(s,`.${i.slideClass}, swiper-slide`),n=Ae(r[0]);return Ae(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(s=>s.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:s,params:i}=t;t.slides=X(s,`.${i.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,s){const i=this;t=Math.min(Math.max(t,0),1);const r=i.minTranslate(),a=(i.maxTranslate()-r)*t+r;i.translateTo(a,typeof s>"u"?0:s),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const s=t.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",s.join(" "))}getSlideClasses(t){const s=this;return s.destroyed?"":t.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(s.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const s=[];t.slides.forEach(i=>{const r=t.getSlideClasses(i);s.push({slideEl:i,classNames:r}),t.emit("_slideClass",i,r)}),t.emit("_slideClasses",s)}slidesPerViewDynamic(t="current",s=!1){const i=this,{params:r,slides:n,slidesGrid:a,slidesSizesGrid:d,size:o,activeIndex:l}=i;let u=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let c=n[l]?Math.ceil(n[l].swiperSlideSize):0,p;for(let f=l+1;f<n.length;f+=1)n[f]&&!p&&(c+=Math.ceil(n[f].swiperSlideSize),u+=1,c>o&&(p=!0));for(let f=l-1;f>=0;f-=1)n[f]&&!p&&(c+=n[f].swiperSlideSize,u+=1,c>o&&(p=!0))}else if(t==="current")for(let c=l+1;c<n.length;c+=1)(s?a[c]+d[c]-a[l]<o:a[c]-a[l]<o)&&(u+=1);else for(let c=l-1;c>=0;c-=1)a[l]-a[c]<o&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:s,params:i}=t;i.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&pe(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function r(){const a=t.rtlTranslate?t.translate*-1:t.translate,d=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(d),t.updateActiveIndex(),t.updateSlidesClasses()}let n;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)r(),i.autoHeight&&t.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&t.isEnd&&!i.centeredSlides){const a=t.virtual&&i.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()}i.watchOverflow&&s!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,s=!0){const i=this,r=i.params.direction;return t||(t=r==="horizontal"?"vertical":"horizontal"),t===r||t!=="horizontal"&&t!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${r}`),i.el.classList.add(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.forEach(n=>{t==="vertical"?n.style.width="":n.style.height=""}),i.emit("changeDirection"),s&&i.update()),i}changeLanguageDirection(t){const s=this;s.rtl&&t==="rtl"||!s.rtl&&t==="ltr"||(s.rtl=t==="rtl",s.rtlTranslate=s.params.direction==="horizontal"&&s.rtl,s.rtl?(s.el.classList.add(`${s.params.containerModifierClass}rtl`),s.el.dir="rtl"):(s.el.classList.remove(`${s.params.containerModifierClass}rtl`),s.el.dir="ltr"),s.update())}mount(t){const s=this;if(s.mounted)return!0;let i=t||s.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=s,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===s.params.swiperElementNodeName.toUpperCase()&&(s.isElement=!0);const r=()=>`.${(s.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(r()):X(i,r())[0];return!a&&s.params.createElements&&(a=ke("div",s.params.wrapperClass),i.append(a),X(i,`.${s.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(s,{el:i,wrapperEl:a,slidesEl:s.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:a,hostEl:s.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||J(i,"direction")==="rtl",rtlTranslate:s.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||J(i,"direction")==="rtl"),wrongRTL:J(a,"display")==="-webkit-box"}),!0}init(t){const s=this;if(s.initialized||s.mount(t)===!1)return s;s.emit("beforeInit"),s.params.breakpoints&&s.setBreakpoint(),s.addClasses(),s.updateSize(),s.updateSlides(),s.params.watchOverflow&&s.checkOverflow(),s.params.grabCursor&&s.enabled&&s.setGrabCursor(),s.params.loop&&s.virtual&&s.params.virtual.enabled?s.slideTo(s.params.initialSlide+s.virtual.slidesBefore,0,s.params.runCallbacksOnInit,!1,!0):s.slideTo(s.params.initialSlide,0,s.params.runCallbacksOnInit,!1,!0),s.params.loop&&s.loopCreate(void 0,!0),s.attachEvents();const r=[...s.el.querySelectorAll('[loading="lazy"]')];return s.isElement&&r.push(...s.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(n=>{n.complete?pe(s,n):n.addEventListener("load",a=>{pe(s,a.target)})}),Me(s),s.initialized=!0,Me(s),s.emit("init"),s.emit("afterInit"),s}destroy(t=!0,s=!0){const i=this,{params:r,el:n,wrapperEl:a,slides:d}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),s&&(i.removeClasses(),n&&typeof n!="string"&&n.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(o=>{o.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),o.removeAttribute("style"),o.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(o=>{i.off(o)}),t!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),di(i)),i.destroyed=!0),null}static extendDefaults(t){N(Ee,t)}static get extendedDefaults(){return Ee}static get defaults(){return Ve}static installModule(t){j.prototype.__modules__||(j.prototype.__modules__=[]);const s=j.prototype.__modules__;typeof t=="function"&&s.indexOf(t)<0&&s.push(t)}static use(t){return Array.isArray(t)?(t.forEach(s=>j.installModule(s)),j):(j.installModule(t),j)}}Object.keys(xe).forEach(e=>
2{Object.keys(xe[e]).forEach(t=>{j.prototype[t]=xe[e][t]})});j.use([bi,Ti]);const Rn=()=>{const e=(o,l,u,c)=>{o.addEventListener("click",function(){s(l,c)})},t=(o,l,u,c)=>{o.removeEventListener("click",function(){s(l,c)})},s=(o,l)=>l.map(u=>u.trackEvent(o.category,o.action,o.name,o.value)),i=(o,l)=>{const u={};return(!l||l!=="business_page")&&(o="qdq_"+o),u.category=o,u.action=o,u.name=o,u.value=1,u},r=(o,l,u,c)=>{l&&l.querySelectorAll(o).forEach(p=>{const f=i(p.dataset.conv,u),h=p.dataset["manual-track"];e(p,f,h,c)})},n=(o,l,u,c)=>{l&&l.querySelectorAll(o).forEach(p=>{const f=i(p.dataset.conv,u),h=p.dataset["manual-track"];t(p,f,h,c)})},a=o=>{const l=[];try{if(window){const c=Le().public.matomoUrl;if(!c)return console.warn("[Matomo] matomoUrl not configured in runtime config"),l;Array.isArray(o)&&o[0]&&l.push(window.Piwik.getTracker(`${c}/matomo.php`,o[0]))}}catch(u){console.error("[Matomo] Error creating tracker:",u)}return l};return{searchResultsHandler:async(o,l)=>{if(!(!Le().public.isEnabledConversionTracking||o===l))try{const c=await Promise.all(o.map(async h=>{try{return(await $fetch(`/api/presences/${h.id}`)).services||[]}catch(m){return console.error(`[Matomo] Error fetching presence ${h.id}:`,m),[]}})),p=c.flat().map(h=>h.id).filter(Boolean);if(!p.length)return;const f=await $fetch(`/api/matomo/${p.join(",")}`);c.forEach(h=>{h.forEach(m=>{if(f[m.id]){const _=a([f[m.id][0]]),b=i("print_customer_card",m.kind);_.forEach(w=>{w.trackEvent(b.category,b.action,b.name,b.value)})}})})}catch(c){console.error("[Matomo] Error tracking search results:",c)}},getMatomoTrackers:a,unsetElemsToTrack:n,setElemsToTrack:r,formatData:i,trackEvent:s}};function Pn(e){const t=ht(),s=je(),i=mt(),r=ie({path:s.fullPath,title:document.title});let n={path:"",title:""},a=()=>{};const d=t.hooks.hook("page:finish",()=>{Promise.race([new Promise(o=>setTimeout(o,100)),new Promise(o=>{a=i.hooks.hook("dom:rendered",()=>o())})]).finally(a).then(()=>{r.value={path:s.fullPath,title:document.title},(n.path!==r.value.path||n.title!==r.value.title)&&(e&&e(r.value),n=r.value)})});return gt(()=>{a(),d()}),r}wt({matomoUrl:Q(ce()),siteId:Q(St([ce(),yt()])),cloudId:Q(ce()),trackerUrl:Q(ce()),trackPageView:Q(de()),enableLinkTracking:Q(de()),disableCookies:Q(de()),watch:Q(de())});function qn(e){return vt("matomoAnalytics",t=>{const s=t?.cloudId?bt(Tt(t.cloudId)):void 0,i=t?.matomoUrl?t.matomoUrl:`https://cdn.matomo.cloud/${s}/`,r=window._paq=window._paq||[];return{scriptInput:{src:ve("/matomo.js",i),crossorigin:!1},schema:void 0,scriptOptions:{use(){return{_paq:{push:(...a)=>window._paq&&typeof window._paq.push=="function"?window._paq.push(...a):(window._paq=window._paq||[],window._paq.push(...a))}}}},clientInit:()=>{t?.enableLinkTracking&&r.push(["enableLinkTracking"]),t?.disableCookies&&r.push(["disableCookies"]),t?.trackerUrl||t?.matomoUrl?r.push(["setTrackerUrl",t?.trackerUrl?we(t.trackerUrl):ve("/matomo.php",we(t?.matomoUrl||""))]):s&&r.push(["setTrackerUrl",ve("/matomo.php",we(s))]),r.push(["setSiteId",String(t?.siteId)||"1"]),t?.trackPageView!==void 0?t.trackPageView&&r.push(["trackPageView"]):t?.watch!==!1&&Pn(n=>{window._paq.push(["setDocumentTitle",n.title]),window._paq.push(["setCustomUrl",n.path]),window._paq.push(["trackPageView"])})}}},e)}export{j as S,Fs as _,Bn as a,Ss as b,Xs as c,Ve as d,Fn as e,Gn as f,Rn as g,Ds as h,Gs as i,Us as j,Rs as k,X as l,ke as m,Hn as n,qs as o,ys as p,Nn as s,Vn as t,qn as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.