pb-sxp-ui 1.15.30 → 1.15.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +1 -1
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +1 -1
- package/lib/core/context/SxpDataSourceProvider.js +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import{isEmpty as si,cloneDeep as fi,isEqual as Rn,debounce as Si,throttle as Bn,get as Fn}from"lodash";import{v4 as Xo}from"uuid";import qo from"pako";import v,{useContext as xi,useMemo as fe,memo as je,useEffect as ve,createContext as Ti,useState as Z,useRef as ce,useCallback as se,forwardRef as ri,useImperativeHandle as Ei,useLayoutEffect as Yo}from"react";import Wn from"qs";import Go from"eventemitter3";import{css as Be}from"@emotion/css";import*as zn from"react-dom";import Zo from"react-dom";function rt(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l<n.length;l++)e.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(t,n[l])&&(i[n[l]]=t[n[l]]);return i}function pt(t,e,i,n){function l(o){return o instanceof i?o:new i(function(a){a(o)})}return new(i||(i=Promise))(function(o,a){function d(r){try{c(n.next(r))}catch(h){a(h)}}function s(r){try{c(n.throw(r))}catch(h){a(h)}}function c(r){r.done?o(r.value):l(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ko=/:\w+/g;var Un=(t,e)=>pt(void 0,void 0,void 0,function*(){const i={},n={};for(let l=0;l<e?.length;l++){const{id:o,method:a,url:d,urlParams:s,name:c,queryString:r,headers:h,body:f}=e[l];let m=d;s&&Object.entries(s).forEach(([y,g])=>{m=m.replace(Ko,x=>x===y?g:x)}),r&&(m+=r),n[o]=c;try{const y=yield fetch(m,{method:a,headers:Object.assign({"Content-Type":"application/json"},h),body:JSON.stringify(f)}).then(g=>g.json());i[o]=y}catch(y){console.error("DataSource request error: ",y),i[o]={}}}return{$store:i,idMapName:n}});const Hn="SXP_TOKEN_INFO",_o=(t,e)=>pt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),l=t.getAppId(),o=t.getApiUrl(),a=window.localStorage.getItem(Hn);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":l||""}}).then(r=>r.json());if(c.success){const r=c.data;d=Object.assign(Object.assign({},r),{expireTime:Date.now()+r.expire*1e3}),window.localStorage.setItem(Hn,JSON.stringify(d))}}return d});function Wi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let l;if(e=e||i.length,t)for(l=0;l<t;l++)n[l]=i[0|Math.random()*e];else{let o;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",l=0;l<36;l++)n[l]||(o=0|Math.random()*16,n[l]=i[l===19?o&3|8:o])}return n.join("")}const Jo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let l=0;for(;l<t;)e+=i.charAt(Math.floor(Math.random()*n)),l+=1;return e},Qo=()=>{const t=Xo();return t?.replaceAll?t.replaceAll("-",""):Jo(32)},De=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],l=e?.["fontFamily-en"];if(!n&&!l)return t;let o=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${l??"inherit"}`,r=f=>{const m=f.search(a),y=f.search(d);return m!==-1&&y!==-1&&m<y&&(i+=`<span style="${s}">${f.substring(m,y)}</span>`,o=f.substring(y,f?.length)),m!==-1&&y!==-1&&m>y&&(i+=`<span style="${c}">${f.substring(y,m)}</span>`,o=f.substring(m,f?.length)),m===-1?(i+=`<span style="${c}">${f.substring(y,f?.length)}</span>`,o="",!1):y===-1?(i+=`<span style="${s}">${f.substring(m,f?.length)}</span>`,o="",!1):!0};let h=!0;for(;h;)h=r(o);return i};function Xn(t){const i=document.cookie.split(";");let n=null;return i.forEach(l=>{const[o,a]=l.trim().split("=");o===t&&(n=a)}),n??""}function ln(){const t=self.navigator.userAgent;return t?/TalkBack/i.test(t)||/Funtouch/i.test(t)||/VoiceOver/i.test(t)||/NVDA/i.test(t)||/JAWS/i.test(t)||/ChromeVox/i.test(t):!1}function di(t){if(!t)return;const e=[];for(let l=0;l<t.length;l++){const o=t[l],a=t.substring(l+1,t.length);o==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(l)}const i=e.length>0?[]:[t];let n=0;return e?.map(l=>{i?.push(t.substring(n,l)),n=l+1,l===e[e.length-1]&&l<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function qn(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),n=new Uint8Array(i),l=qo.inflate(n,{to:"string"});return JSON.parse(l)}let an=null;const $o={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class el{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,an)return an;an=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?$o[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Ot=null;const tl={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{Ot||(Ot=new el),n&&Ot.setApiUrl(n),Ot.setAppId(t),Ot.setTenantId(e),Ot.setEnv(i)},getDetail:t=>{if(!Ot)return;const e=Ot.getTenantId(),i=Ot.getAppId(),n=Ot.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>pt(void 0,void 0,void 0,function*(){var o,a;const d=yield l.json(),s=qn((o=d?.data)===null||o===void 0?void 0:o.data);if(s){const{$store:c}=yield Un(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=s,Object.assign(d.data.data,{__STORE__:c})}return d}))},getSxpDetailByPageId:t=>pt(void 0,void 0,void 0,function*(){if(!Ot)return;const e=Ot.getTenantId(),i=Ot.getAppId(),n=Ot.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>pt(void 0,void 0,void 0,function*(){var o;const a=yield l.json();return a.success?(o=a?.data)===null||o===void 0?void 0:o.map(s=>Object.assign(Object.assign({},s),{data:qn(s?.data)})):void 0}))}),getSxpRecommendVideoData:t=>pt(void 0,void 0,void 0,function*(){if(!Ot)return;const e=yield _o(Ot,t),i=Wi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");si(n)&&(n=Wi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const l=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return l?.data||null})};function $t(){return xi(lo)}function il(){return xi(oo)}const sn="feRealSessionIdKey",Yn=()=>{const t=Qo();return`${Date.now()}${t}`},nl=()=>{let t=ol();return t||(t=Yn(),window.localStorage.setItem(sn,t)),t},rn=()=>{const t=Yn();window.localStorage.setItem(sn,t)},ol=()=>window.localStorage.getItem(sn),Gn="SXP_FAKE_USER_ID",Zn="FAKE_USER_STATE",Kn="AGREE_POLICY",_n="SLIDE_SKIP_STATE",Jn="CCONTSENT_STATE",Qn="USER_CONSENT_RESULT",ll=()=>{let t=window.localStorage.getItem(Gn);return si(t)&&(t=Wi(36,62),window.localStorage.setItem(Gn,t)),t},al=()=>{const t=window.localStorage.getItem(Zn);return si(t)&&window.localStorage.setItem(Zn,"true"),si(t)},sl=()=>{const t=window.localStorage.getItem(_n);return si(t)},rl=()=>{window.localStorage.setItem(_n,"true")},dl=()=>{const t=window.localStorage.getItem(Jn);return si(t)&&window.localStorage.setItem(Jn,"true"),si(t)},$n=()=>window.localStorage.getItem(Qn)==="true",eo=()=>{window.localStorage.setItem(Qn,"true")};function kt(t,e){const{appDomain:i}=Xe();return fe(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const xt=new Go;var bt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(bt||(bt={}));const cl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:l,privacy_policy_title:o})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Xe(),s=fe(()=>{var h;const f=location.search.slice(1),m={};(h=di(f.replace(/\+/g,"%2B")))===null||h===void 0||h.map(y=>{const g=y.split("=")[0],x=y.split("=")[1];m[g]=x});for(const y in m)m[y]=m[y].replace(/%2B/g,"+");return m},[]),c=h=>{var f;return(f=s[h])!==null&&f!==void 0?f:null};ve(()=>{d?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const r=()=>{d?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),a?.(!0),window.localStorage.setItem(Kn,"yes")};return v.createElement("div",{className:"consent-bg"},v.createElement("div",{className:"consent"},v.createElement("div",{className:"consent-col"},v.createElement("div",{className:"consent-title"},i??"Privacy Policy"),v.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),v.createElement("div",{className:"consent-col"},v.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:r},"Agree"),v.createElement("a",{className:"consent-policy",target:"_blank",href:l?`https://${l}`:void 0},o??"More information"))))};var ul=je(cl);const to=Ti({rtcList:[],tagList:[]});var dn;(function(t){t[t.BFF=5]="BFF"})(dn||(dn={}));const zi="FOR U",vl=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:l,defaultSize:o,isPreview:a=!1,sxpParameter:d,appDomain:s,hashTagSize:c,loadingImage:r,isOpenHashTag:h=!1,enabledMetaConversionApi:f=!1,consentHeight:m,consentWidth:y,isOpenConsent:g=!1,isEditor:x=!1,utmParameter:p,channelQueryList:b,data:A,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:V})=>{var O,S,T,D,I;const[M,u]=Z([]),[B,W]=Z([]),[j,R]=Z(!0),[k,E]=Z({rtc:"",requestId:""}),N=ce(null),F=ce(!1),[U,G]=Z(()=>!!window.localStorage.getItem(Kn)),[$,ae]=Z(),[de,Q]=Z(),[Ee,Pe]=Z(h),[Ue,pe]=Z([]),[he,_e]=Z(0),[qe,Ye]=Z(!1),[Ie,tt]=Z(null),$e=ce(),et=ce(),vt=ce(),[It,Fe]=Z(zi),me=ce(-1),H=ce(null),[J,be]=Z(!1),[Y,ye]=Z((S=(O=A?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||S===void 0?void 0:S.globalConfig),[Se,te]=Z(),[z,We]=Z(!1),[nt,ht]=Z(),[Ge,it]=Z(),[Re,ot]=Z([]),[ct,gt]=Z(),[Rt,Bt]=Z(),Tt=fe(()=>Se??A,[Se,A]),wt=fe(()=>{var X,q,re,Oe;return(((Oe=(re=(q=(X=Y?.consent)===null||X===void 0?void 0:X[0])===null||q===void 0?void 0:q.item)===null||re===void 0?void 0:re.props)===null||Oe===void 0?void 0:Oe.privacy_necessity)&&!U&&!x||g)&&z},[U,Y,g,x,z]),qt=se(X=>{V?.(X),it(X)},[]),Ct=se(X=>{var q;const re=X?.recList;return(q=re?.map(we=>{var xe,Ve,ze,Ce,L,K;if(!((xe=we?.video)===null||xe===void 0)&&xe.bindProducts&&((ze=(Ve=we?.video)===null||Ve===void 0?void 0:Ve.bindProducts)===null||ze===void 0?void 0:ze.length)>0){const _=(K=(L=(Ce=we?.video)===null||Ce===void 0?void 0:Ce.bindProducts)===null||L===void 0?void 0:L.filter(oe=>!!oe?.bindCta))!==null&&K!==void 0?K:[];return Object.assign(Object.assign({},we),{video:Object.assign(Object.assign({},we?.video),{bindProducts:_})})}return we}))!==null&&q!==void 0?q:[]},[]);ve(()=>{let X;return Re.length>0&&(X=setInterval(()=>{const re=new Date,Oe=15*1e3;ot(we=>we.filter(xe=>re-xe.time<=Oe))},1e3)),()=>{clearInterval(X)}},[Re]),ve(()=>{const X=q=>{$e.current=q};return xt.on(bt.CHANGE_THEME_TAG,X),()=>{xt.off(bt.CHANGE_THEME_TAG,X)}},[]),ve(()=>{Pe(h)},[h]);const Ke=fe(()=>e?.find(X=>X.type===dn.BFF),[e]),ke=fe(()=>{var X;return((X=Ke?.headers)===null||X===void 0?void 0:X["x-app-id"])+ll()},[Ke]),ee=se((X,q)=>{var re,Oe;if(!Ke)return;const we=Ke.url;if(q?.query){const L=Wn.stringify(q.query);X=`${X}?${L}`}let xe=!1;const Ve={},ze=location.search.slice(1);(re=di(ze))===null||re===void 0||re.forEach(L=>{const K=L.split("=")[0],_=L.split("=")[1];Ve[K]=_});const Ce=Ve?.cl_source;return Ce&&(!((Oe=["40A-SPRK--DRESS_EYEWEAR-","41A-SPRK--MADRAGUE-","42A-SPRK--MOOD-","43A-SPRK--SUMMER-","44A-SPRK--DRESS_EYEWEAR-","45A-SPRK--MADRAGUE-","46A-SPRK--MOOD-","47A-SPRK--SUMMER-","48A-SPRK--DRESS_EYEWEAR-","49A-SPRK--MADRAGUE-","50A-SPRK--MOOD-","51A-SPRK--SUMMER-"])===null||Oe===void 0)&&Oe.includes(Ce))&&(xe=!0),q.type==="beacon"&&navigator.sendBeacon&&!xe?navigator.sendBeacon(`${we}/api/${X}`,new Blob([JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},q.body),Ke.headers),{"x-user-id":ke}))))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${we}/api/${X}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":ke},Ke.headers),method:q.method,body:JSON.stringify(xe?{body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},q.body),Ke.headers),{"x-user-id":ke}))))}:q.body)},xe&&{keepalive:!0})).then(L=>L.json()).catch(L=>Promise.reject(L))},[Ke,ke]),Je=se((X,q)=>{if(!Ke)return;const re=Ke.url;if(q?.query){const Oe=Wn.stringify(q.query);X=`${X}?${Oe}`}return window.fetch(`${re}/admin/${X}`,{headers:Object.assign({"Content-Type":"application/json"},Ke.headers),method:q.method,body:JSON.stringify(q.body)}).then(Oe=>Oe.json()).catch(Oe=>Promise.reject(Oe))},[Ke]),At=se(X=>pt(void 0,void 0,void 0,function*(){var q,re,Oe,we,xe,Ve,ze,Ce,L,K,_,oe,le,Ae;if(X=Object.assign(Object.assign({maxSize:(q=X?.maxSize)!==null&&q!==void 0?q:l,defaultSize:(re=X?.defaultSize)!==null&&re!==void 0?re:o,hashTag:X?.hashTag,traceInfo:X?.traceInfo,themeTag:X?.themeTag,pageNum:X?.pageNum,contentFilter:X?.contentFilter,productFilter:X?.productFilter},Rt&&{chatlabsId:Rt}),C&&{type:"story"}),Ge)X=Object.assign(Object.assign({},X),{channel:decodeURIComponent(Ge)});else if(i){const ue=(xe=(we=(Oe=di(i))===null||Oe===void 0?void 0:Oe.filter(ge=>{var ie,He;const Te=ge.split("=")[0];return(He=(ie=p?.channels)!==null&&ie!==void 0?ie:[])===null||He===void 0?void 0:He.includes(Te)}))===null||we===void 0?void 0:we.join("&"))!==null&&xe!==void 0?xe:"";ue&&(X=Object.assign(Object.assign({},X),{channel:decodeURIComponent(ue)}))}if(x){let ue=1;if(X=Object.assign(Object.assign(Object.assign({},X),{directPage:!0,level:1}),!i&&b&&b?.length>0&&{channel:b?.[0]}),!X?.channel||F.current)return;F.current=!0;let ge=[],ie=null;const He=Te=>pt(void 0,void 0,void 0,function*(){var Me,dt,at,lt,st,mt;if(Te.pageNum=ue,ie=yield Je?.("recommend/direct_page",{method:"POST",body:Te}),!ie?.success)return;R(!1),ge=ge.concat((lt=(at=(dt=(Me=ie?.data)===null||Me===void 0?void 0:Me.recList)===null||dt===void 0?void 0:dt.filter)===null||at===void 0?void 0:at.call(dt,Qe=>Qe?.product||Qe?.video))!==null&<!==void 0?lt:[]),M?.length===0&&(u(Ct(Object.assign(Object.assign({},ie?.data),{recList:ge}))),pe(Ct(Object.assign(Object.assign({},ie?.data),{recList:ge})))),((mt=(st=ie?.data)===null||st===void 0?void 0:st.recList)===null||mt===void 0?void 0:mt.some(Qe=>Qe?.product||Qe?.video))&&(ue=ue+1,yield He(Te))});return yield He(X),!X?.hashTag&&ie&&E({rtc:(Ve=ie?.data)===null||Ve===void 0?void 0:Ve.rtc,requestId:(ze=ie?.data)===null||ze===void 0?void 0:ze.requestId}),Object.assign(Object.assign({},ie?.data),{recList:ge})}Y?.enablePreview&&(X=Object.assign(Object.assign({},X),{directPage:!0,level:1,pageNum:(Ce=X?.pageNum)!==null&&Ce!==void 0?Ce:1}));const ne=yield ee?.("v1/recommend/list",{method:"POST",body:X});if(ne?.success){if(X?.hashTag||E({rtc:ne.data.rtc,requestId:ne.data.requestId}),Y?.enablePreview&&!x){let ue=[];return ue=ue.concat((oe=(_=(K=(L=ne?.data)===null||L===void 0?void 0:L.recList)===null||K===void 0?void 0:K.filter)===null||_===void 0?void 0:_.call(K,ie=>ie?.product||ie?.video))!==null&&oe!==void 0?oe:[]),((Ae=(le=ne?.data)===null||le===void 0?void 0:le.recList)===null||Ae===void 0?void 0:Ae.some(ie=>ie?.product||ie?.video))||be(!0),Object.assign(Object.assign({},ne.data),{recList:ue})}return ne?.data}}),[ee,i,l,o,b,Ge,Rt,Je]),ni=se(X=>pt(void 0,void 0,void 0,function*(){var q,re,Oe,we;if(M.length<=0)return;const xe=M?.[M?.length-1],Ve=yield At(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:de?.hashTag},((q=xe?.product)===null||q===void 0?void 0:q.itemId)&&{productFilter:[(re=xe?.product)===null||re===void 0?void 0:re.itemId]}),((Oe=xe?.video)===null||Oe===void 0?void 0:Oe.itemId)&&{contentFilter:[(we=xe?.video)===null||we===void 0?void 0:we.itemId]}),{themeTag:$e.current}),Y?.enablePreview&&!x&&{pageNum:X}));return u(M.concat(Ct(Ve))),pe(Ue.concat(Ct(Ve))),Ve}),[At,M,de,Ue]),oi=se((X,q)=>{var re,Oe,we,xe,Ve;let ze=!1;const Ce=(Oe=(re=A?.data)===null||re===void 0?void 0:re.sxpPageConf)===null||Oe===void 0?void 0:Oe.globalConfig;if(!((we=Ce?.session)===null||we===void 0)&&we.enable){const L=localStorage.getItem("sessionStartTime"),K=L?JSON.parse(L):new Date().getTime();Math.floor((new Date().getTime()-K)/1e3/60)>=((Ve=(xe=Ce?.session)===null||xe===void 0?void 0:xe.expires)!==null&&Ve!==void 0?Ve:30)&&(q?.("sessionTimeOut"),rn(),et.current=new Date,ze=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else X&&rn();return ze},[A]),Et=se(({userInfo:X,eventInfo:q,reportLayId:re=!0})=>{var Oe,we;if(!n||Y?.enablePreview)return;X||(X={});const xe=nl(),Ve={},ze=location.search.slice(1);(Oe=di(ze))===null||Oe===void 0||Oe.forEach(oe=>{const le=oe.split("=")[0],Ae=oe.split("=")[1];Ve[le]=Ae});const Ce=Ve?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:xe,rtc:k.rtc,requestId:k.requestId},{playbookType:ct}),nt&&re&&{layoutVariantId:nt}),q),q?.position&&Ge&&{position:Number(q?.position)+1+""}),Ce&&{clSource:Ce}),K=Object.entries(X).map(([oe,le])=>({name:oe,value:le})),_=Object.entries(L).map(([oe,le])=>le&&{name:oe,value:le}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",X),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),ee?.(`v2/cld/${(we=Ke?.headers)===null||we===void 0?void 0:we["x-app-id"]}/${q?.eventSubject}${Ce?`/${decodeURIComponent(Ce)}`:""}`,{method:"POST",body:{userInfo:K,eventInfo:_},type:"beacon"})},[ee,k,n,Y?.enablePreview,nt,Y,ct,Ke]),vi=se((X,q)=>{var re,Oe,we;const xe=fi(X),Ve=new URLSearchParams(window.location.search),ze=Ve?.get("fbclid"),Ce={event_source_url:(re=window?.location)===null||re===void 0?void 0:re.href,external_id:ke,client_user_agent:(we=(Oe=window?.navigator)===null||Oe===void 0?void 0:Oe.userAgent)!==null&&we!==void 0?we:"",fbc:ze?`fb.2.${new Date().getTime()}.${ze}`:"",fbp:Xn("_fbp")?`${Xn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},L=/\{\{(.*?)\}\}/g,K=_=>{if(_){if(_ instanceof Array)_?.map(oe=>K(oe));else for(const oe in _)if(Object.prototype.hasOwnProperty.call(_,oe)){const le=_?.[oe];if(typeof le=="object")K(le);else if(typeof le=="string"){const Ae=le?.match(L);Ae&&Ae.forEach(ne=>{var ue;const ge=ne.substring(2,ne.length-2);try{let ie=new Function("fix_par","product",`return ${ge}`)(Ce,q);ie?(ge?.indexOf("currency")!==-1&&ie?.indexOf("-")!==-1&&typeof ie=="string"&&(ie=(ue=ie?.split("-"))===null||ue===void 0?void 0:ue[0]),_[oe]=ie):delete _[oe]}catch(ie){delete _[oe],console.error("An error occurred:",ie?.message)}})}}}};return K(xe),xe},[ke]),li=se(({eventName:X,product:q})=>{var re,Oe,we,xe,Ve,ze;if(!n||Y?.enablePreview)return;const Ce=(re=Y?.pixel)===null||re===void 0?void 0:re[X];if(Ce?.event_name&&typeof window?.fbq=="function"){let oe=function(le,Ae,ne){const ue=new RegExp("([?&])"+Ae+"=.*?(&|$)","i"),ge=le.indexOf("?")!==-1?"&":"?";return le.match(ue)?le.replace(ue,"$1"+Ae+"="+ne+"$2"):le+ge+Ae+"="+ne};if(X==="PageView"&&Ce?.event_name==="PageView"){const le=window.location.href,Ae=oe(le,"timestamp",Date.now());history.pushState({path:Ae},"",Ae)}else{const le=vi(Ce);window?.fbq("track",Ce?.event_name,le),X==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view")}}else X==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const L=(Oe=Y?.tiktokPixel)===null||Oe===void 0?void 0:Oe[X];L?.event_name&&typeof window?.ttq=="function"&&window?.ttq.track(L?.event_name,L);const K=(we=Y?.tiktokPixel)===null||we===void 0?void 0:we[X];K?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",K?.event_name,K);const _=(xe=Y?.converApi)===null||xe===void 0?void 0:xe[X];if(f&&_){const oe=vi(_,q),le={},Ae=location.search.slice(1);(Ve=di(Ae))===null||Ve===void 0||Ve.forEach(ue=>{const ge=ue.split("=")[0],ie=ue.split("=")[1];le[ge]=ie});const ne=le?.cl_source;ee?.(`v2/fb/${(ze=Ke?.headers)===null||ze===void 0?void 0:ze["x-app-id"]}/${X}${ne?`/${decodeURIComponent(ne)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[ee,n,f,Y,Ke,vi]),pi=se(X=>pt(void 0,void 0,void 0,function*(){const q=yield ee?.("v1/recommend/like",{method:"POST",body:X});return q?.success}),[ee]),Qt=se(X=>pt(void 0,void 0,void 0,function*(){const q=yield ee?.("v1/recommend/unlike",{method:"POST",body:X});return q?.success}),[ee]),Xt=se(X=>pt(void 0,void 0,void 0,function*(){const q=yield ee?.("v1/customform",{method:"POST",body:X});return q?.success}),[ee]),zt=se(X=>pt(void 0,void 0,void 0,function*(){var q,re,Oe,we,xe,Ve,ze,Ce;const L=!!(!((Oe=(re=(q=X?.data)===null||q===void 0?void 0:q.sxpPageConf)===null||re===void 0?void 0:re.globalConfig)===null||Oe===void 0)&&Oe.isShowTag);if(!(!i||!L))try{const K=(Ve=(xe=(we=di(i))===null||we===void 0?void 0:we.filter(oe=>{var le,Ae;const ne=oe.split("=")[0];return(Ae=(le=p?.channels)!==null&&le!==void 0?le:[])===null||Ae===void 0?void 0:Ae.includes(ne)}))===null||xe===void 0?void 0:xe.join("&"))!==null&&Ve!==void 0?Ve:"",_=yield ee?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(K)}});W((Ce=(ze=_?.data)===null||ze===void 0?void 0:ze.tags)!==null&&Ce!==void 0?Ce:[])}catch(K){console.log("e",K)}}),[ee,i]),Pt=se((X,q,re,Oe)=>{var we,xe,Ve,ze,Ce,L,K,_,oe,le,Ae,ne,ue,ge,ie,He,Te,Me,dt,at,lt,st,mt,yt,Qe,St,Ne,Le,Dt,Mt,mi,ut,ai,en,tn,nn;const Zt=re?.bindCta,Ho=((we=q?.video)===null||we===void 0?void 0:we.bindProduct)||((xe=q?.video)===null||xe===void 0?void 0:xe.bindProducts)&&((ze=(Ve=q?.video)===null||Ve===void 0?void 0:Ve.bindProducts)===null||ze===void 0?void 0:ze.length)>0;let Fi="",on=null;qe?Fi="hashTagPage":!((Ce=q?.video)===null||Ce===void 0)&&Ce.url?(Fi="videoPage",on="video"):!((K=(L=q?.video)===null||L===void 0?void 0:L.imgUrls)===null||K===void 0)&&K.length&&(Fi="imagePage",on="image");const Vn=(ge=(ne=(_=re?.tags)!==null&&_!==void 0?_:(Ae=(le=(oe=q?.video)===null||oe===void 0?void 0:oe.bindProducts)===null||le===void 0?void 0:le[0])===null||Ae===void 0?void 0:Ae.tags)!==null&&ne!==void 0?ne:(ue=q?.video)===null||ue===void 0?void 0:ue.tags)!==null&&ge!==void 0?ge:(ie=q?.product)===null||ie===void 0?void 0:ie.tags;Et?.({eventInfo:Object.assign(Object.assign({},X),{ctaId:(He=Zt?.itemId)!==null&&He!==void 0?He:"",ctaName:(Te=Zt?.title)!==null&&Te!==void 0?Te:"",contentTags:Vn?JSON.stringify(Vn):"",position:Oe+"",contentId:(dt=(Me=q?.video)===null||Me===void 0?void 0:Me.itemId)!==null&&dt!==void 0?dt:"",productId:Ho?re?.itemId:"",traceInfo:(tn=(ut=(Ne=(mt=(at=Zt?.traceInfo)!==null&&at!==void 0?at:(st=(lt=q?.video)===null||lt===void 0?void 0:lt.bindCta)===null||st===void 0?void 0:st.traceInfo)!==null&&mt!==void 0?mt:(St=(Qe=(yt=q?.video)===null||yt===void 0?void 0:yt.bindProduct)===null||Qe===void 0?void 0:Qe.bindCta)===null||St===void 0?void 0:St.traceInfo)!==null&&Ne!==void 0?Ne:(mi=(Mt=(Dt=(Le=q?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Dt===void 0?void 0:Dt[0])===null||Mt===void 0?void 0:Mt.bindCta)===null||mi===void 0?void 0:mi.traceInfo)!==null&&ut!==void 0?ut:(en=(ai=q?.product)===null||ai===void 0?void 0:ai.bindCta)===null||en===void 0?void 0:en.traceInfo)!==null&&tn!==void 0?tn:"",fromKName:Fi,fromKPage:(nn=location?.href)!==null&&nn!==void 0?nn:"",contentFormat:on})})},[Et,qe]),Vi=se(()=>{var X,q,re;const Oe=location.search.slice(1),we={};(X=di(Oe.replace(/\+/g,"%2B")))===null||X===void 0||X.map(ze=>{const Ce=ze.split("=")[0],L=ze.split("=")[1];we[Ce]=L});for(const ze in we)we[ze]=we[ze].replace(/%2B/g,"+");const xe=ze=>{var Ce;return(Ce=we[ze])!==null&&Ce!==void 0?Ce:""},Ve=new Date;et.current=Ve,Et?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:xe("utm_source"),utmMedium:xe("utm_medium"),utmCampaign:xe("utm_campaign"),utmId:xe("utm_id"),utmContent:xe("utm_content"),enterTime:Math.floor(Ve/1e3)+"",requestId:null,enterUrl:(re=(q=window?.location)===null||q===void 0?void 0:q.href)!==null&&re!==void 0?re:""},reportLayId:!1})},[Et]),Ri=se(()=>pt(void 0,void 0,void 0,function*(){var X,q;const re=yield ee?.("v1/account",{method:"GET"});return Bt((X=re?.data)===null||X===void 0?void 0:X.chatLabsId),((q=re?.data)===null||q===void 0?void 0:q.consentResult)==="true"}),[ee]),Bi=se(X=>pt(void 0,void 0,void 0,function*(){const q=yield ee?.("v1/account/consent",{method:"POST",body:{consentResult:X}});return q?.success}),[ee]);ve(()=>{wt||Vi()},[wt]),ve(()=>{if(wt||a)return;R(!0);let X,q;At().then(re=>{var Oe,we,xe,Ve,ze,Ce,L,K,_,oe,le;if(re){const Ae=Ct(re);let ne,ue;if(re?.layoutVariantId){X=re?.layoutVariantId,ht(re?.layoutVariantId);const ge=(we=(Oe=re?.layoutVariantId)===null||Oe===void 0?void 0:Oe.split("-"))===null||we===void 0?void 0:we[1];ge&&(ne=w?.find(ie=>ie?.id===ge),ne?(te(ne),document.title=(xe=ne?.name)!==null&&xe!==void 0?xe:"home",ue=(ze=(Ve=ne?.data)===null||Ve===void 0?void 0:Ve.sxpPageConf)===null||ze===void 0?void 0:ze.globalConfig,ye(ue),P?.(ne?.data),!((_=(K=(L=(Ce=ue?.consent)===null||Ce===void 0?void 0:Ce[0])===null||L===void 0?void 0:L.item)===null||K===void 0?void 0:K.props)===null||_===void 0)&&_.privacy_necessity&&We(!0)):We(!0))}else We(!0);if(Ge||(ue?.playbook==="organic menu"||!ue&&Y?.playbook==="organic menu"?(gt("organicMenu"),Ae.unshift("organic menu"),q="organicMenu"):(gt("paidMedia"),q="paidMedia")),u(Ae),pe(Ae),zt(ne??Tt),Ge){const ge=Ae?.[0],ie=((oe=ge?.video)===null||oe===void 0?void 0:oe.traceInfo)||((le=ge?.product)===null||le===void 0?void 0:le.traceInfo)||"";Et?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ie,branchfeed:Ge},X&&{layoutVariantId:X})}),Et?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ie,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-vt?.current)/1e3)+""},X&&{layoutVariantId:X})})}}}).finally(()=>{Et({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},X&&{layoutVariantId:X}),q&&{playbookType:q})}),R(!1)})},[wt,Ge]),ve(()=>{a&&(R(!0),zt(A),At().then(X=>{if(X){const q=Ct(X);Y?.playbook==="organic menu"&&!Ge&&q.unshift("organic menu"),u(q),pe(q)}}).finally(()=>{R(!1)}))},[At,zt,Ge]);const $i=kt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return v.createElement(to.Provider,{value:{rtcList:M,setRtcList:u,mutateLike:pi,mutateUnlike:Qt,submitForm:Xt,popupDetailData:$,loadVideos:ni,setPopupDetailData:ae,getRecommendVideos:At,bffEventReport:Et,isPreview:a,loading:j,sxpParameter:d,waterFallData:de,setWaterFallData:Q,ctaEvent:Pt,swiperRef:N,openHashtag:Ee,setOpenHashtag:Pe,cacheRtcList:Ue,setCacheRtcList:pe,cacheActiveIndex:he,setCacheActiveIndex:_e,isFromHashtag:qe,setIsFromHashtag:Ye,appDomain:s,hashTagSize:c,loadingImage:r??$i,isOpenHashTag:h,tagList:B,setLoading:R,videoRef:Ie,setVideoRef:tt,bffFbReport:li,isAgreePolicy:U,setIsAgreePolicy:G,curTime:et,h5EnterLink:Vi,themeTag:$e,isShowConsent:wt,selectTag:It,setSelectTag:Fe,globalConfig:Y,popupCurTimeRef:H,checkCommodityIndexRef:me,isEditor:x,isNoMoreData:J,updateChannel:qt,channel:Ge,eventTimeList:Re,setEventTimeList:ot,multiPostTimeRef:vt,refreshFeSession:oi,getAccount:Ri,accountSonsent:Bi,isDiyH5:C}},wt?v.createElement(ul,Object.assign({},(I=(D=(T=Y?.consent)===null||T===void 0?void 0:T[0])===null||D===void 0?void 0:D.item)===null||I===void 0?void 0:I.props)):t({rtcList:M,mutateLike:pi,mutateUnlike:Qt,submitForm:Xt,tagList:B,pageData:Tt}))};var io=je(vl);function Xe(){return xi(to)}var no;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(no||(no={}));const oo=Ti({$store:{},options:[],configs:[]}),pl=({children:t,isSsr:e,enable:i})=>{const[n,l]=Z([]),{schema:o}=$t(),[a,d]=Z(o.__STORE__||{}),[s,c]=Z([]);ve(()=>{var f;e||Rn(s,o?.dataSource)||c((f=o?.dataSource)!==null&&f!==void 0?f:[])},[o?.dataSource,e]);const r=se(()=>pt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:m}=yield Un("",s);d(f),h(f,m)}),[s]),h=(f,m)=>{const y=[];Object.entries(f).forEach(([g,x])=>{Object.keys(x).forEach(p=>{const b={label:`${m[g]} - ${p}`,value:`{{ ${g}.${p} }}`};y.push(b)})}),l(y)};return ve(()=>{e||r()},[r,e,o]),i?v.createElement(oo.Provider,{value:{$store:o.__STORE__||a,options:n,configs:s}},t):t};var ml=je(pl);const Ui={id:Wi(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},cn={id:"",duration:0,name:"none"},lo=v.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Ui],redoStack:[],popup:cn,setPopup:()=>{}}),ao=ri(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:l=!0,utmVal:o},a)=>{const[d,s]=Z(null),[c,r]=Z(n||{pointData:[Ui],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[h,f]=Z([Ui]),[m,y]=Z([[Ui]]),[g,x]=Z([]),[p,b]=Z(cn);typeof window<"u"&&(window.sxpPopup=(V,O)=>{b(Object.assign(Object.assign(Object.assign({},cn),{id:V}),O))}),typeof window<"u"&&(window.getJointUtmLink=V=>(rl(),V?.indexOf("?")!==-1?V+(o?"&"+o:""):V+(o?"?"+o:""))),ve(()=>{y([c.pointData]),x([])},[c.type]);const A=se(V=>{const O=fi(c);O&&(O.dataSource=V,r?.(O))},[c]),[w,C]=Z();Ei(a,()=>({loadSchema(V){V&&(y([V.pointData]),r(V))},exportSchema(){return fi(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=fe(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return v.createElement(lo.Provider,{value:{resolver:e,currentNode:d,schema:c,setCurrentNode:s,setSchema:r,saveDataSource:A,prePiontData:h,setPrePiontData:f,pageInfoData:w,setPageInfoData:V=>C(Object.assign(Object.assign({},w),V)),undoStack:m,redoStack:g,setRedoStack:x,setUndoStack:y,getCurPageConf:P,popup:p,setPopup:b}},v.createElement(ml,{isSsr:i,enable:l},t))});var fl=Object.freeze({__proto__:null,EditorCore:ao}),hl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Al=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Nt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:l}=Xe(),o=se((s,c,r,h,f,m)=>{var y,g,x,p,b,A,w,C,P,V,O,S,T,D,I,M,u,B,W,j,R,k,E,N,F,U,G,$,ae,de,Q,Ee,Pe,Ue,pe,he,_e,qe;if(n?.findIndex(et=>et.target===s?.target)!==-1)return;s&&l?.(et=>[...et,{target:s?.target,time:new Date}]);let Ie="";e&&(!((g=(y=c?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0)&&g.length||!((x=c?.video)===null||x===void 0)&&x.bindProduct)?Ie="pdpPage":i?Ie="hashTagPage":!((p=c?.video)===null||p===void 0)&&p.url?Ie="videoPage":!((b=c?.video)===null||b===void 0)&&b.imgUrls&&(!((w=(A=c?.video)===null||A===void 0?void 0:A.imgUrls)===null||w===void 0)&&w.length)?Ie="imagePage":c?.product&&(Ie="productPage");const tt=(D=(S=(C=r?.tags)!==null&&C!==void 0?C:(O=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||O===void 0?void 0:O.tags)!==null&&S!==void 0?S:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&D!==void 0?D:(I=c?.product)===null||I===void 0?void 0:I.tags;let $e=null;!((M=c?.video)===null||M===void 0)&&M.url?$e="video":!((u=c?.video)===null||u===void 0)&&u.imgUrls&&(!((W=(B=c?.video)===null||B===void 0?void 0:B.imgUrls)===null||W===void 0)&&W.length)&&($e="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(j=r?.itemId)!==null&&j!==void 0?j:"",productName:(R=r?.title)!==null&&R!==void 0?R:"",price:r?.price?r?.price+"":"0",productCollection:(k=r?.collection)!==null&&k!==void 0?k:"",fromKName:Ie,fromKPage:location?.href,contentTags:tt?JSON.stringify(tt):"",position:f+"",contentId:(N=(E=c?.video)===null||E===void 0?void 0:E.itemId)!==null&&N!==void 0?N:"",ctatId:(F=h?.itemId)!==null&&F!==void 0?F:"",traceInfo:(qe=(pe=(Pe=(ae=(U=m??r?.traceInfo)!==null&&U!==void 0?U:($=(G=c?.video)===null||G===void 0?void 0:G.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&ae!==void 0?ae:(Ee=(Q=(de=c?.video)===null||de===void 0?void 0:de.bindProducts)===null||Q===void 0?void 0:Q[0])===null||Ee===void 0?void 0:Ee.traceInfo)!==null&&Pe!==void 0?Pe:(Ue=c?.product)===null||Ue===void 0?void 0:Ue.traceInfo)!==null&&pe!==void 0?pe:(_e=(he=c?.video)===null||he===void 0?void 0:he.bindCta)===null||_e===void 0?void 0:_e.traceInfo)!==null&&qe!==void 0?qe:""},$e&&{contentFormat:$e})})},[t,e,i,n]),a=se((s,c,r,h,f)=>{var m,y,g,x,p,b,A,w,C,P,V,O,S,T;let D="";e&&(!((y=(m=s?.video)===null||m===void 0?void 0:m.bindProducts)===null||y===void 0)&&y.length||!((g=s?.video)===null||g===void 0)&&g.bindProduct)?D="pdpPage":s?.product&&(D="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:D,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:f+"",contentId:(x=s?.video)===null||x===void 0?void 0:x.itemId,ctatId:r?.itemId,traceInfo:(T=(O=(w=(p=c?.traceInfo)!==null&&p!==void 0?p:(A=(b=s?.video)===null||b===void 0?void 0:b.bindProduct)===null||A===void 0?void 0:A.traceInfo)!==null&&w!==void 0?w:(V=(P=(C=s?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||V===void 0?void 0:V.traceInfo)!==null&&O!==void 0?O:(S=s?.product)===null||S===void 0?void 0:S.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-h)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),d=se((s,c,r,h)=>{c&&c===zi&&t?.({eventInfo:{lastFeed:s,themeTags:r?`['${r}']`:"",hashTags:h?`['${h}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:a,backMainFeed:d}}const bl=({layout:t,columns:e,onChange:i})=>v.createElement(v.Fragment,null,e?.map((n,l)=>v.createElement("div",{key:l,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&v.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&v.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var gl=je(bl);const yl=t=>{var e,i,{columns:n,style:l,title:o,textStyle:a,submitBgColor:d,submitColor:s,submitText:c,layoutType:r="inline",isExternalLink:h,isPopup:f,onClick:m,onClose:y,submitButtonStyle:g}=t,x=rt(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:p,popupDetailData:b}=Xe(),{jumpToWeb:A}=Nt(),[w,C]=Z(!1),[P,V]=Z({}),[O,S]=Z(0),T=fe(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),D=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),I=fe(()=>fi(n)||T,[n,T]),M=se(B=>{const{name:W,value:j}=B.target;V(Object.assign(Object.assign({},P),{[W]:j}))},[P]),u=Si(B=>pt(void 0,void 0,void 0,function*(){var W,j,R,k,E;const N=P;if(!N)return;const F=(j=(W=Object.keys(N))===null||W===void 0?void 0:W.map(G=>{var $;return{name:G,value:($=N[G])!==null&&$!==void 0?$:""}}))===null||j===void 0?void 0:j.filter(G=>G?.value);if(!F||!F?.length)return;C(!0);const U=yield p?.({attributes:F});if(C(!1),U){if(h){const G=b,$=(R=G?.video)===null||R===void 0?void 0:R.bindProduct,ae=(E=(k=G?.video)===null||k===void 0?void 0:k.bindProduct)===null||E===void 0?void 0:E.bindCta,de=b?.index;A(B,G,$,ae,de)}f||y?.(),m?.()}}),1e3);return ve(()=>{const B=()=>{var W,j;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((j=document?.body)===null||j===void 0?void 0:j.clientHeight))<D?S(50):S(0)};return window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B)}},[]),v.createElement("div",{className:"pb-appoint-form"},v.createElement("div",{className:`pb-appoint-form-title ${Be(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:De(o,a)}}),v.createElement("div",Object.assign({className:Be(Object.assign(Object.assign({},l),{marginTop:O}))},x),v.createElement("div",{className:"pb-appoint-form-container"},v.createElement(gl,{columns:I,layout:r,onChange:M}))),v.createElement("div",{className:"pb-appoint-form-btn-wrapper"},v.createElement("button",{"aria-label":c,onClick:u,className:"pb-appoint-form-btn",style:Object.assign({color:s,background:d},g),dangerouslySetInnerHTML:{__html:De(w?"loading...":c,g)}})))};var wl=je(yl);function ft(t,e){return t.extend=e,t}const Sl=ft(wl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Al,bindableProps:[],interactionRender:hl},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var xl=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function so(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function un(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:so(e[i])&&so(t[i])&&Object.keys(e[i]).length>0&&un(t[i],e[i])})}const ro={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 Vt(){const t=typeof document<"u"?document:{};return un(t,ro),t}const Tl={document:ro,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Lt(){const t=typeof window<"u"?window:{};return un(t,Tl),t}function ei(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function El(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function hi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Ut(){return Date.now()}function Il(t){const e=Lt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function kl(t,e){e===void 0&&(e="x");const i=Lt();let n,l,o;const a=Il(t);return i.WebKitCSSMatrix?(l=a.transform||a.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(d=>d.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(l==="none"?"":l)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?l=o.m41:n.length===16?l=parseFloat(n[12]):l=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?l=o.m42:n.length===16?l=parseFloat(n[13]):l=parseFloat(n[5])),l||0}function Hi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Cl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Ft(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Cl(n)){const l=Object.keys(Object(n)).filter(o=>e.indexOf(o)<0);for(let o=0,a=l.length;o<a;o+=1){const d=l[o],s=Object.getOwnPropertyDescriptor(n,d);s!==void 0&&s.enumerable&&(Hi(t[d])&&Hi(n[d])?n[d].__swiper__?t[d]=n[d]:Ft(t[d],n[d]):!Hi(t[d])&&Hi(n[d])?(t[d]={},n[d].__swiper__?t[d]=n[d]:Ft(t[d],n[d])):t[d]=n[d])}}}return t}function Xi(t,e,i){t.style.setProperty(e,i)}function co(t){let{swiper:e,targetPosition:i,side:n}=t;const l=Lt(),o=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const c=i>o?"next":"prev",r=(f,m)=>c==="next"&&f>=m||c==="prev"&&f<=m,h=()=>{d=new Date().getTime(),a===null&&(a=d);const f=Math.max(Math.min((d-a)/s,1),0),m=.5-Math.cos(f*Math.PI)/2;let y=o+m*(i-o);if(r(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),r(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(h)};h()}function Yt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function qi(t){try{console.warn(t);return}catch{}}function Ai(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ei(e)),i}function uo(t){const e=Lt(),i=Vt(),n=t.getBoundingClientRect(),l=i.body,o=t.clientTop||l.clientTop||0,a=t.clientLeft||l.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-o,left:n.left+s-a}}function Pl(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Ol(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ti(t,e){return Lt().getComputedStyle(t,null).getPropertyValue(e)}function Ii(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Yi(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function vn(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function pn(t,e,i){const n=Lt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ze(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let mn;function Ll(){const t=Lt(),e=Vt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function vo(){return mn||(mn=Ll()),mn}let fn;function jl(t){let{userAgent:e}=t===void 0?{}:t;const i=vo(),n=Lt(),l=n.navigator.platform,o=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let r=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!r&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let y=l==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!r&&y&&i.touch&&g.indexOf(`${d}x${s}`)>=0&&(r=o.match(/(Version)\/([\d.]+)/),r||(r=[0,1,"13_0_0"]),y=!1),c&&!m&&(a.os="android",a.android=!0),(r||f||h)&&(a.os="ios",a.ios=!0),a}function po(t){return t===void 0&&(t={}),fn||(fn=jl(t)),fn}let hn;function Ml(){const t=Lt(),e=po();let i=!1;function n(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(n()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[s,c]=d.split("Version/")[1].split(" ")[0].split(".").map(r=>Number(r));i=s<16||s===16&&c<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n(),a=o||l&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:a,isWebView:l}}function Nl(){return hn||(hn=Ml()),hn}function Dl(t){let{swiper:e,on:i,emit:n}=t;const l=Lt();let o=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(h=>{a=l.requestAnimationFrame(()=>{const{width:f,height:m}=e;let y=f,g=m;h.forEach(x=>{let{contentBoxSize:p,contentRect:b,target:A}=x;A&&A!==e.el||(y=b?b.width:(p[0]||p).inlineSize,g=b?b.height:(p[0]||p).blockSize)}),(y!==f||g!==m)&&d()})}),o.observe(e.el))},c=()=>{a&&l.cancelAnimationFrame(a),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){s();return}l.addEventListener("resize",d),l.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),l.removeEventListener("resize",d),l.removeEventListener("orientationchange",r)})}function Vl(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=[],a=Lt(),d=function(r,h){h===void 0&&(h={});const f=a.MutationObserver||a.WebkitMutationObserver,m=new f(y=>{if(e.__preventObserver__)return;if(y.length===1){l("observerUpdate",y[0]);return}const g=function(){l("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(g):a.setTimeout(g,0)});m.observe(r,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:typeof h.childList>"u"?!0:h.childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),o.push(m)},s=()=>{if(e.params.observer){if(e.params.observeParents){const r=Yi(e.hostEl);for(let h=0;h<r.length;h+=1)d(r[h])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},c=()=>{o.forEach(r=>{r.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Rl={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const l=i?"unshift":"push";return t.split(" ").forEach(o=>{n.eventsListeners[o]||(n.eventsListeners[o]=[]),n.eventsListeners[o][l](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function l(){n.off(t,l),l.__emitterProxy&&delete l.__emitterProxy;for(var o=arguments.length,a=new Array(o),d=0;d<o;d++)a[d]=arguments[d];e.apply(n,a)}return l.__emitterProxy=e,n.on(t,l,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((l,o)=>{(l===e||l.__emitterProxy&&l.__emitterProxy===e)&&i.eventsListeners[n].splice(o,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var l=arguments.length,o=new Array(l),a=0;a<l;a++)o[a]=arguments[a];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),n=t):(e=o[0].events,i=o[0].data,n=o[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(n,i)})}),t}};function Bl(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ti(n,"padding-left")||0,10)-parseInt(ti(n,"padding-right")||0,10),i=i-parseInt(ti(n,"padding-top")||0,10)-parseInt(ti(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Fl(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:n,slidesEl:l,size:o,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Yt(l,`.${t.params.slideClass}, swiper-slide`),h=s?t.virtual.slides.length:r.length;let f=[];const m=[],y=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,b=t.slidesGrid.length;let A=i.spaceBetween,w=-g,C=0,P=0;if(typeof o>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*o:typeof A=="string"&&(A=parseFloat(A)),t.virtualSize=-A,r.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Xi(n,"--swiper-centered-offset-before",""),Xi(n,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(r):t.grid&&t.grid.unsetSlides();let O;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<h;T+=1){O=0;let D;if(r[T]&&(D=r[T]),V&&t.grid.updateSlide(T,D,r),!(r[T]&&ti(D,"display")==="none")){if(i.slidesPerView==="auto"){S&&(r[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(D),M=D.style.transform,u=D.style.webkitTransform;if(M&&(D.style.transform="none"),u&&(D.style.webkitTransform="none"),i.roundLengths)O=t.isHorizontal()?pn(D,"width",!0):pn(D,"height",!0);else{const B=e(I,"width"),W=e(I,"padding-left"),j=e(I,"padding-right"),R=e(I,"margin-left"),k=e(I,"margin-right"),E=I.getPropertyValue("box-sizing");if(E&&E==="border-box")O=B+R+k;else{const{clientWidth:N,offsetWidth:F}=D;O=B+W+j+R+k+(F-N)}}M&&(D.style.transform=M),u&&(D.style.webkitTransform=u),i.roundLengths&&(O=Math.floor(O))}else O=(o-(i.slidesPerView-1)*A)/i.slidesPerView,i.roundLengths&&(O=Math.floor(O)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${O}px`);r[T]&&(r[T].swiperSlideSize=O),y.push(O),i.centeredSlides?(w=w+O/2+C/2+A,C===0&&T!==0&&(w=w-o/2-A),T===0&&(w=w-o/2-A),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),m.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+O+A),t.virtualSize+=O+A,C=O,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+x,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+A}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+A}px`),V&&t.grid.updateWrapperSize(O,f),!i.centeredSlides){const T=[];for(let D=0;D<f.length;D+=1){let I=f[D];i.roundLengths&&(I=Math.floor(I)),f[D]<=t.virtualSize-o&&T.push(I)}f=T,Math.floor(t.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-o)}if(s&&i.loop){const T=y[0]+A;if(i.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let M=0;M<D;M+=1)f.push(f[f.length-1]+I)}for(let D=0;D<t.virtual.slidesBefore+t.virtual.slidesAfter;D+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),m.push(m[m.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),A!==0){const T=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");r.filter((D,I)=>!i.cssMode||i.loop?!0:I!==r.length-1).forEach(D=>{D.style[T]=`${A}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(I=>{T+=I+(A||0)}),T-=A;const D=T-o;f=f.map(I=>I<=0?-g:I>D?D+x:I)}if(i.centerInsufficientSlides){let T=0;y.forEach(I=>{T+=I+(A||0)}),T-=A;const D=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+D<o){const I=(o-T-D)/2;f.forEach((M,u)=>{f[u]=M-I}),m.forEach((M,u)=>{m[u]=M+I})}}if(Object.assign(t,{slides:r,snapGrid:f,slidesGrid:m,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Xi(n,"--swiper-centered-offset-before",`${-f[0]}px`),Xi(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+D)}if(h!==c&&t.emit("slidesLengthChange"),f.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,D=t.el.classList.contains(T);h<=i.maxBackfaceHiddenSlides?D||t.el.classList.add(T):D&&t.el.classList.remove(T)}}function Wl(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let l=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>n?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const d=e.activeIndex+o;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const d=i[o].offsetHeight;l=d>l?d:l}(l||l===0)&&(e.wrapperEl.style.height=`${l}px`)}function zl(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const mo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Ul(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:l,snapGrid:o}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;l&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let s=0;s<n.length;s+=1){const c=n[s];let r=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(r-=n[0].swiperSlideOffset);const h=(a+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),f=(a-o[0]+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),m=-(a-r),y=m+e.slidesSizesGrid[s],g=m>=0&&m<=e.size-e.slidesSizesGrid[s],x=m>=0&&m<e.size-1||y>1&&y<=e.size||m<=0&&y>=e.size;x&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s)),mo(c,x,i.slideVisibleClass),mo(c,g,i.slideFullyVisibleClass),c.progress=l?-h:h,c.originalProgress=l?-f:f}}function Hl(t){const e=this;if(typeof t>"u"){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:l,isBeginning:o,isEnd:a,progressLoop:d}=e;const s=o,c=a;if(n===0)l=0,o=!0,a=!0;else{l=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;o=r||l<=0,a=h||l>=1,r&&(l=0),h&&(l=1)}if(i.loop){const r=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[r],m=e.slidesGrid[h],y=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?d=(g-f)/y:d=(g+y-m)/y,d>1&&(d-=1)}Object.assign(e,{progress:l,progressLoop:d,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!o||c&&!a)&&e.emit("fromEdge"),e.emit("progress",l)}const An=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Xl(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:l}=t,o=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=h=>Yt(n,`.${i.slideClass}${h}, swiper-slide${h}`)[0];let s,c,r;if(o)if(i.loop){let h=l-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),s=d(`[data-swiper-slide-index="${h}"]`)}else s=d(`[data-swiper-slide-index="${l}"]`);else a?(s=e.filter(h=>h.column===l)[0],r=e.filter(h=>h.column===l+1)[0],c=e.filter(h=>h.column===l-1)[0]):s=e[l];s&&(a||(r=Ol(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Pl(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(h=>{An(h,h===s,i.slideActiveClass),An(h,h===r,i.slideNextClass),An(h,h===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Gi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let l=n.querySelector(`.${t.params.lazyPreloaderClass}`);!l&&t.isElement&&(n.shadowRoot?l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),l&&l.remove())})),l&&l.remove()}},bn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},gn=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),l=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=l,d=[a-e];d.push(...Array.from({length:e}).map((s,c)=>a+n+c)),t.slides.forEach((s,c)=>{d.includes(s.column)&&bn(t,c)});return}const o=l+n-1;if(t.params.rewind||t.params.loop)for(let a=l-e;a<=o+e;a+=1){const d=(a%i+i)%i;(d<l||d>o)&&bn(t,d)}else for(let a=Math.max(l-e,0);a<=Math.min(o+e,i-1);a+=1)a!==l&&(a>o||a<l)&&bn(t,a)};function ql(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let l;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?n>=e[o]&&n<e[o+1]-(e[o+1]-e[o])/2?l=o:n>=e[o]&&n<e[o+1]&&(l=o+1):n>=e[o]&&(l=o);return i.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function Yl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:l,activeIndex:o,realIndex:a,snapIndex:d}=e;let s=t,c;const r=m=>{let y=m-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof s>"u"&&(s=ql(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const m=Math.min(l.slidesPerGroupSkip,s);c=m+Math.floor((s-m)/l.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===o&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const h=e.grid&&l.grid&&l.grid.rows>1;let f;if(e.virtual&&l.virtual.enabled&&l.loop)f=r(s);else if(h){const m=e.slides.filter(g=>g.column===s)[0];let y=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(m),0)),f=Math.floor(y/l.grid.rows)}else if(e.slides[s]){const m=e.slides[s].getAttribute("data-swiper-slide-index");m?f=parseInt(m,10):f=s}else f=s;Object.assign(e,{previousSnapIndex:d,snapIndex:c,previousRealIndex:a,realIndex:f,previousIndex:o,activeIndex:s}),e.initialized&&gn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Gl(t,e){const i=this,n=i.params;let l=t.closest(`.${n.slideClass}, swiper-slide`);!l&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!l&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(l=d)});let o=!1,a;if(l){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===l){o=!0,a=d;break}}if(l&&o)i.clickedSlide=l,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Zl={updateSize:Bl,updateSlides:Fl,updateAutoHeight:Wl,updateSlidesOffset:zl,updateSlidesProgress:Ul,updateProgress:Hl,updateSlidesClasses:Xl,updateActiveIndex:Yl,updateClickedSlide:Gl};function Kl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:l,wrapperEl:o}=e;if(i.virtualTranslate)return n?-l:l;if(i.cssMode)return l;let a=kl(o,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function _l(t,e){const i=this,{rtlTranslate:n,params:l,wrapperEl:o,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,l.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,l.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:l.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${d}px, ${s}px, ${c}px)`);let r;const h=i.maxTranslate()-i.minTranslate();h===0?r=0:r=(t-i.minTranslate())/h,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Jl(){return-this.snapGrid[0]}function Ql(){return-this.snapGrid[this.snapGrid.length-1]}function $l(t,e,i,n,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const o=this,{params:a,wrapperEl:d}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const s=o.minTranslate(),c=o.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,o.updateProgress(r),a.cssMode){const h=o.isHorizontal();if(e===0)d[h?"scrollLeft":"scrollTop"]=-r;else{if(!o.support.smoothScroll)return co({swiper:o,targetPosition:-r,side:h?"left":"top"}),!0;d.scrollTo({[h?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,l),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,l),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var ea={getTranslate:Kl,setTranslate:_l,minTranslate:Jl,maxTranslate:Ql,translateTo:$l};function ta(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function fo(t){let{swiper:e,runCallbacks:i,direction:n,step:l}=t;const{activeIndex:o,previousIndex:a}=e;let d=n;if(d||(o>a?d="next":o<a?d="prev":d="reset"),e.emit(`transition${l}`),i&&o!==a){if(d==="reset"){e.emit(`slideResetTransition${l}`);return}e.emit(`slideChangeTransition${l}`),d==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`)}}function ia(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),fo({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function na(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),fo({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var oa={setTransition:ta,transitionStart:ia,transitionEnd:na};function la(t,e,i,n,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:s,slidesGrid:c,previousIndex:r,activeIndex:h,rtlTranslate:f,wrapperEl:m,enabled:y}=o;if(!y&&!n&&!l||o.destroyed||o.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,a);let x=g+Math.floor((a-g)/o.params.slidesPerGroup);x>=s.length&&(x=s.length-1);const p=-s[x];if(d.normalizeSlideIndex)for(let A=0;A<c.length;A+=1){const w=-Math.floor(p*100),C=Math.floor(c[A]*100),P=Math.floor(c[A+1]*100);typeof c[A+1]<"u"?w>=C&&w<P-(P-C)/2?a=A:w>=C&&w<P&&(a=A+1):w>=C&&(a=A)}if(o.initialized&&a!==h&&(!o.allowSlideNext&&(f?p>o.translate&&p>o.minTranslate():p<o.translate&&p<o.minTranslate())||!o.allowSlidePrev&&p>o.translate&&p>o.maxTranslate()&&(h||0)!==a))return!1;a!==(r||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(p);let b;if(a>h?b="next":a<h?b="prev":b="reset",f&&-p===o.translate||!f&&p===o.translate)return o.updateActiveIndex(a),d.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),d.effect!=="slide"&&o.setTranslate(p),b!=="reset"&&(o.transitionStart(i,b),o.transitionEnd(i,b)),!1;if(d.cssMode){const A=o.isHorizontal(),w=f?p:-p;if(e===0){const C=o.virtual&&o.params.virtual.enabled;C&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),C&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[A?"scrollLeft":"scrollTop"]=w})):m[A?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return co({swiper:o,targetPosition:w,side:A?"left":"top"}),!0;m.scrollTo({[A?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(p),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,b),e===0?o.transitionEnd(i,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function aa(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;if(l.destroyed)return;typeof e>"u"&&(e=l.params.speed);const o=l.grid&&l.params.grid&&l.params.grid.rows>1;let a=t;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)a=a+l.virtual.slidesBefore;else{let d;if(o){const f=a*l.params.grid.rows;d=l.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else d=l.getSlideIndexByData(a);const s=o?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:c}=l.params;let r=l.params.slidesPerView;r==="auto"?r=l.slidesPerViewDynamic():(r=Math.ceil(parseFloat(l.params.slidesPerView,10)),c&&r%2===0&&(r=r+1));let h=s-d<r;if(c&&(h=h||d<Math.ceil(r/2)),n&&c&&l.params.slidesPerView!=="auto"&&!o&&(h=!1),h){const f=c?d<l.activeIndex?"prev":"next":d-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?d+1:d-s+1,slideRealIndex:f==="next"?l.realIndex:void 0})}if(o){const f=a*l.params.grid.rows;a=l.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=l.getSlideIndexByData(a)}return requestAnimationFrame(()=>{l.slideTo(a,e,i,n)}),l}function sa(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:l,params:o,animating:a}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<o.slidesPerGroupSkip?1:d,c=n.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function ra(t,e,i){e===void 0&&(e=!0);const n=this,{params:l,snapGrid:o,slidesGrid:a,rtlTranslate:d,enabled:s,animating:c}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const r=n.virtual&&l.virtual.enabled;if(l.loop){if(c&&!r&&l.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const h=d?n.translate:-n.translate;function f(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const m=f(h),y=o.map(p=>f(p));let g=o[y.indexOf(m)-1];if(typeof g>"u"&&l.cssMode){let p;o.forEach((b,A)=>{m>=b&&(p=A)}),typeof p<"u"&&(g=o[p>0?p-1:p])}let x=0;if(typeof g<"u"&&(x=a.indexOf(g),x<0&&(x=n.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(x=x-n.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),l.rewind&&n.isBeginning){const p=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(p,t,e,i)}else if(l.loop&&n.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(x,t,e,i)}),!0;return n.slideTo(x,t,e,i)}function da(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function ca(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const l=this;if(l.destroyed)return;typeof t>"u"&&(t=l.params.speed);let o=l.activeIndex;const a=Math.min(l.params.slidesPerGroupSkip,o),d=a+Math.floor((o-a)/l.params.slidesPerGroup),s=l.rtlTranslate?l.translate:-l.translate;if(s>=l.snapGrid[d]){const c=l.snapGrid[d],r=l.snapGrid[d+1];s-c>(r-c)*n&&(o+=l.params.slidesPerGroup)}else{const c=l.snapGrid[d-1],r=l.snapGrid[d];s-c<=(r-c)*n&&(o-=l.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,l.slidesGrid.length-1),l.slideTo(o,t,e,i)}function ua(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let l=t.clickedIndex,o;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?l<t.loopedSlides-n/2||l>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),l=t.getSlideIndex(Yt(i,`${a}[data-swiper-slide-index="${o}"]`)[0]),hi(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-n?(t.loopFix(),l=t.getSlideIndex(Yt(i,`${a}[data-swiper-slide-index="${o}"]`)[0]),hi(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}var va={slideTo:la,slideToLoop:aa,slideNext:sa,slidePrev:ra,slideReset:da,slideToClosest:ca,slideToClickedSlide:ua};function pa(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const l=()=>{Yt(n,`.${i.slideClass}, swiper-slide`).forEach((h,f)=>{h.setAttribute("data-swiper-slide-index",f)})},o=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(o?i.grid.rows:1),d=e.slides.length%a!==0,s=o&&e.slides.length%i.grid.rows!==0,c=r=>{for(let h=0;h<r;h+=1){const f=e.isElement?Ai("swiper-slide",[i.slideBlankClass]):Ai("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(d){if(i.loopAddBlankSlides){const r=a-e.slides.length%a;c(r),e.recalcSlides(),e.updateSlides()}else qi("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)");l()}else if(s){if(i.loopAddBlankSlides){const r=i.grid.rows-e.slides.length%i.grid.rows;c(r),e.recalcSlides(),e.updateSlides()}else qi("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)");l()}else l();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ma(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:l,activeSlideIndex:o,byController:a,byMousewheel:d}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:c,allowSlidePrev:r,allowSlideNext:h,slidesEl:f,params:m}=s,{centeredSlides:y}=m;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):m.centeredSlides&&s.snapIndex<m.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=r,s.allowSlideNext=h,s.emit("loopFix");return}let g=m.slidesPerView;g==="auto"?g=s.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),y&&g%2===0&&(g=g+1));const x=m.slidesPerGroupAuto?g:m.slidesPerGroup;let p=x;p%x!==0&&(p+=x-p%x),p+=m.loopAdditionalSlides,s.loopedSlides=p;const b=s.grid&&m.grid&&m.grid.rows>1;c.length<g+p?qi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&m.grid.fill==="row"&&qi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const A=[],w=[];let C=s.activeIndex;typeof o>"u"?o=s.getSlideIndex(c.filter(M=>M.classList.contains(m.slideActiveClass))[0]):C=o;const P=n==="next"||!n,V=n==="prev"||!n;let O=0,S=0;const T=b?Math.ceil(c.length/m.grid.rows):c.length,I=(b?c[o].column:o)+(y&&typeof l>"u"?-g/2+.5:0);if(I<p){O=Math.max(p-I,x);for(let M=0;M<p-I;M+=1){const u=M-Math.floor(M/T)*T;if(b){const B=T-u-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===B&&A.push(W)}else A.push(T-u-1)}}else if(I+g>T-p){S=Math.max(I-(T-p*2),x);for(let M=0;M<S;M+=1){const u=M-Math.floor(M/T)*T;b?c.forEach((B,W)=>{B.column===u&&w.push(W)}):w.push(u)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),V&&A.forEach(M=>{c[M].swiperLoopMoveDOM=!0,f.prepend(c[M]),c[M].swiperLoopMoveDOM=!1}),P&&w.forEach(M=>{c[M].swiperLoopMoveDOM=!0,f.append(c[M]),c[M].swiperLoopMoveDOM=!1}),s.recalcSlides(),m.slidesPerView==="auto"?s.updateSlides():b&&(A.length>0&&V||w.length>0&&P)&&s.slides.forEach((M,u)=>{s.grid.updateSlide(u,M,s.slides)}),m.watchSlidesProgress&&s.updateSlidesOffset(),i){if(A.length>0&&V){if(typeof e>"u"){const M=s.slidesGrid[C],B=s.slidesGrid[C+O]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C+Math.ceil(O),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else if(l){const M=b?A.length/m.grid.rows:A.length;s.slideTo(s.activeIndex+M,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&P)if(typeof e>"u"){const M=s.slidesGrid[C],B=s.slidesGrid[C-S]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C-S,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else{const M=b?w.length/m.grid.rows:w.length;s.slideTo(s.activeIndex-M,0,!1,!0)}}if(s.allowSlidePrev=r,s.allowSlideNext=h,s.controller&&s.controller.control&&!a){const M={slideRealIndex:e,direction:n,setTranslate:l,activeSlideIndex:o,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(u=>{!u.destroyed&&u.params.loop&&u.loopFix({...M,slideTo:u.params.slidesPerView===m.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...M,slideTo:s.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}s.emit("loopFix")}function fa(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(l=>{const o=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;n[o]=l}),t.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),n.forEach(l=>{i.append(l)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ha={loopCreate:pa,loopFix:ma,loopDestroy:fa};function Aa(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function ba(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var ga={setGrabCursor:Aa,unsetGrabCursor:ba};function ya(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Vt()||n===Lt())return null;n.assignedSlot&&(n=n.assignedSlot);const l=n.closest(t);return!l&&!n.getRootNode?null:l||i(n.getRootNode().host)}return i(e)}function ho(t,e,i){const n=Lt(),{params:l}=t,o=l.edgeSwipeDetection,a=l.edgeSwipeThreshold;return o&&(i<=a||i>=n.innerWidth-a)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function wa(t){const e=this,i=Vt();let n=t;n.originalEvent&&(n=n.originalEvent);const l=e.touchEventsData;if(n.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==n.pointerId)return;l.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(l.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){ho(e,n,n.targetTouches[0].pageX);return}const{params:o,touches:a,enabled:d}=e;if(!d||!o.simulateTouch&&n.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let s=n.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||l.isTouched&&l.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const h=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(f?ya(h,s):s.closest(h))){e.allowClick=!0;return}if(o.swipeHandler&&!s.closest(o.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const m=a.currentX,y=a.currentY;if(!ho(e,n,m))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=y,l.touchStartTime=Ut(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(l.allowThresholdMove=!1);let g=!0;s.matches(l.focusableElements)&&(g=!1,s.nodeName==="SELECT"&&(l.isTouched=!1)),i.activeElement&&i.activeElement.matches(l.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const x=g&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||x)&&!s.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Sa(t){const e=Vt(),i=this,n=i.touchEventsData,{params:l,touches:o,rtlTranslate:a,enabled:d}=i;if(!d||!l.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let c;if(s.type==="touchmove"){if(c=[...s.changedTouches].filter(P=>P.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const r=c.pageX,h=c.pageY;if(s.preventedByNestedSwiper){o.startX=r,o.startY=h;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:r,startY:h,currentX:r,currentY:h}),n.touchStartTime=Ut());return}if(l.touchReleaseOnEdges&&!l.loop){if(i.isVertical()){if(h<o.startY&&i.translate<=i.maxTranslate()||h>o.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<o.startX&&i.translate<=i.maxTranslate()||r>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=r,o.currentY=h;const f=o.currentX-o.startX,m=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:f*f+m*m>=25&&(P=Math.atan2(Math.abs(m),Math.abs(f))*180/Math.PI,n.isScrolling=i.isHorizontal()?P>l.touchAngle:90-P>l.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!l.cssMode&&s.cancelable&&s.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&s.stopPropagation();let y=i.isHorizontal()?f:m,g=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;l.oneWayMovement&&(y=Math.abs(y)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),o.diff=y,y*=l.touchRatio,a&&(y=-y,g=-g);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const p=i.params.loop&&!l.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(p&&b&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}n.allowMomentumBounce=!1,l.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let A;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&x!==i.touchesDirection&&p&&b&&Math.abs(y)>=1){Object.assign(o,{startX:r,startY:h,currentX:r,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let w=!0,C=l.resistanceRatio;if(l.touchReleaseOnEdges&&(C=0),y>0?(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,l.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**C))):y<0&&(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(l.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,l.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**C))),w&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),l.threshold>0)if(Math.abs(y)>l.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{n.currentTranslate=n.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function xa(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let l;if(n.type==="touchend"||n.type==="touchcancel"){if(l=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!l||l.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;l=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:s,slidesGrid:c,enabled:r}=e;if(!r||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=Ut(),f=h-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),f<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Ut(),hi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let m;if(a.followFinger?m=s?e.translate:-e.translate:m=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const y=m>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const P=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[C+P]<"u"?(y||m>=c[C]&&m<c[C+P])&&(g=C,x=c[C+P]-c[C]):(y||m>=c[C])&&(g=C,x=c[c.length-1]-c[c.length-2])}let p=null,b=null;a.rewind&&(e.isBeginning?b=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const A=(m-c[g])/x,w=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(A>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?p:g+w):e.slideTo(g)),e.swipeDirection==="prev"&&(A>1-a.longSwipesRatio?e.slideTo(g+w):b!==null&&A<0&&Math.abs(A)>a.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(g+w):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:g+w),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function Ao(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:l,snapGrid:o}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=l,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function Ta(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ea(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let l;const o=t.maxTranslate()-t.minTranslate();o===0?l=0:l=(t.translate-t.minTranslate())/o,l!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Ia(t){const e=this;Gi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ka(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const bo=(t,e)=>{const i=Vt(),{params:n,el:l,wrapperEl:o,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!l||typeof l=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),l[s]("touchstart",t.onTouchStart,{passive:!1}),l[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:d}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&l[s]("click",t.onClick,!0),n.cssMode&&o[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ao,!0):t[c]("observerUpdate",Ao,!0),l[s]("load",t.onLoad,{capture:!0}))};function Ca(){const t=this,{params:e}=t;t.onTouchStart=wa.bind(t),t.onTouchMove=Sa.bind(t),t.onTouchEnd=xa.bind(t),t.onDocumentTouchStart=ka.bind(t),e.cssMode&&(t.onScroll=Ea.bind(t)),t.onClick=Ta.bind(t),t.onLoad=Ia.bind(t),bo(t,"on")}function Pa(){bo(this,"off")}var Oa={attachEvents:Ca,detachEvents:Pa};const go=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function La(){const t=this,{realIndex:e,initialized:i,params:n,el:l}=t,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in o?o[a]:void 0)||t.originalParams,c=go(t,n),r=go(t,s),h=t.params.grabCursor,f=s.grabCursor,m=n.enabled;c&&!r?(l.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(l.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&l.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),h&&!f?t.unsetGrabCursor():!h&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof s[A]>"u")return;const w=n[A]&&n[A].enabled,C=s[A]&&s[A].enabled;w&&!C&&t[A].disable(),!w&&C&&t[A].enable()});const y=s.direction&&s.direction!==n.direction,g=n.loop&&(s.slidesPerView!==n.slidesPerView||y),x=n.loop;y&&i&&t.changeDirection(),Ft(t.params,s);const p=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!p?t.disable():!m&&p&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",s),i&&(g?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&b?(t.loopCreate(e),t.updateSlides()):x&&!b&&t.loopDestroy()),t.emit("breakpoint",s)}function ja(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const l=Lt(),o=e==="window"?l.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:o*s,point:d}}return{value:d,point:d}});a.sort((d,s)=>parseInt(d.value,10)-parseInt(s.value,10));for(let d=0;d<a.length;d+=1){const{point:s,value:c}=a[d];e==="window"?l.matchMedia(`(min-width: ${c}px)`).matches&&(n=s):c<=i.clientWidth&&(n=s)}return n||"max"}var Ma={setBreakpoint:La,getBreakpoint:ja};function Na(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(l=>{n[l]&&i.push(e+l)}):typeof n=="string"&&i.push(e+n)}),i}function Da(){const t=this,{classNames:e,params:i,rtl:n,el:l,device:o}=t,a=Na(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),l.classList.add(...e),t.emitContainerClasses()}function Va(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Ra={addClasses:Da,removeClasses:Va};function Ba(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const l=t.slides.length-1,o=t.slidesGrid[l]+t.slidesSizesGrid[l]+n*2;t.isLocked=t.size>o}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Fa={checkOverflow:Ba},yn={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 Wa(t,e){return function(n){n===void 0&&(n={});const l=Object.keys(n)[0],o=n[l];if(typeof o!="object"||o===null){Ft(e,n);return}if(t[l]===!0&&(t[l]={enabled:!0}),l==="navigation"&&t[l]&&t[l].enabled&&!t[l].prevEl&&!t[l].nextEl&&(t[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&t[l]&&t[l].enabled&&!t[l].el&&(t[l].auto=!0),!(l in t&&"enabled"in o)){Ft(e,n);return}typeof t[l]=="object"&&!("enabled"in t[l])&&(t[l].enabled=!0),t[l]||(t[l]={enabled:!1}),Ft(e,n)}}const wn={eventsEmitter:Rl,update:Zl,translate:ea,transition:oa,slide:va,loop:ha,grabCursor:ga,events:Oa,breakpoints:Ma,checkOverflow:Fa,classes:Ra},Sn={};let xn=class Jt{constructor(){let e,i;for(var n=arguments.length,l=new Array(n),o=0;o<n;o++)l[o]=arguments[o];l.length===1&&l[0].constructor&&Object.prototype.toString.call(l[0]).slice(8,-1)==="Object"?i=l[0]:[e,i]=l,i||(i={}),i=Ft({},i),e&&!i.el&&(i.el=e);const a=Vt();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const r=[];return a.querySelectorAll(i.el).forEach(h=>{const f=Ft({},i,{el:h});r.push(new Jt(f))}),r}const d=this;d.__swiper__=!0,d.support=vo(),d.device=po({userAgent:i.userAgent}),d.browser=Nl(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const s={};d.modules.forEach(r=>{r({params:i,swiper:d,extendParams:Wa(i,s),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const c=Ft({},yn,s);return d.params=Ft({},c,Sn,i),d.originalParams=Ft({},d.params),d.passedParams=Ft({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(r=>{d.on(r,d.params.on[r])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.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:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,l=Yt(i,`.${n.slideClass}, swiper-slide`),o=Ii(l[0]);return Ii(e)-o}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Yt(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const l=n.minTranslate(),a=(n.maxTranslate()-l)*e+l;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const l=e.getSlideClasses(n);i.push({slideEl:n,classNames:l}),e.emit("_slideClass",n,l)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:l,slides:o,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let h=o[c]?Math.ceil(o[c].swiperSlideSize):0,f;for(let m=c+1;m<o.length;m+=1)o[m]&&!f&&(h+=Math.ceil(o[m].swiperSlideSize),r+=1,h>s&&(f=!0));for(let m=c-1;m>=0;m-=1)o[m]&&!f&&(h+=o[m].swiperSlideSize,r+=1,h>s&&(f=!0))}else if(e==="current")for(let h=c+1;h<o.length;h+=1)(i?a[h]+d[h]-a[c]<s:a[h]-a[c]<s)&&(r+=1);else for(let h=c-1;h>=0;h-=1)a[c]-a[h]<s&&(r+=1);return r}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Gi(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function l(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)l(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(a.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||l()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,l=n.params.direction;return e||(e=l==="horizontal"?"vertical":"horizontal"),e===l||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${l}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(o=>{e==="vertical"?o.style.width="":o.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const l=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(l()):Yt(n,l())[0];return!a&&i.params.createElements&&(a=Ai("div",i.params.wrapperClass),n.append(a),Yt(n,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||ti(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ti(n,"direction")==="rtl"),wrongRTL:ti(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const l=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&l.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(o=>{o.complete?Gi(i,o):o.addEventListener("load",a=>{Gi(i,a.target)})}),gn(i),i.initialized=!0,gn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:l,el:o,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),l.loop&&n.loopDestroy(),i&&(n.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),El(n)),n.destroyed=!0),null}static extendDefaults(e){Ft(Sn,e)}static get extendedDefaults(){return Sn}static get defaults(){return yn}static installModule(e){Jt.prototype.__modules__||(Jt.prototype.__modules__=[]);const i=Jt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Jt.installModule(i)),Jt):(Jt.installModule(e),Jt)}};Object.keys(wn).forEach(t=>{Object.keys(wn[t]).forEach(e=>{xn.prototype[e]=wn[t][e]})}),xn.use([Dl,Vl]);const yo=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ci(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function bi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:ci(e[n])&&ci(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:bi(t[n],e[n]):t[n]=e[n]})}function wo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function So(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function xo(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function To(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function za(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ua(t){let{swiper:e,slides:i,passedParams:n,changedParams:l,nextEl:o,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=l.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:r,pagination:h,navigation:f,scrollbar:m,virtual:y,thumbs:g}=e;let x,p,b,A,w,C,P,V;l.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(x=!0),l.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(p=!0),l.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&h&&!h.el&&(b=!0),l.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&m&&!m.el&&(A=!0),l.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||o)&&(r.navigation||r.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const O=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),r[S].prevEl=void 0,r[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),r[S].el=void 0,e[S].el=void 0))};l.includes("loop")&&e.isElement&&(r.loop&&!n.loop?C=!0:!r.loop&&n.loop?P=!0:V=!0),c.forEach(S=>{if(ci(r[S])&&ci(n[S]))Object.assign(r[S],n[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in n[S]&&!n[S].enabled&&O(S);else{const T=n[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&O(S):r[S]=n[S]}}),c.includes("controller")&&!p&&e.controller&&e.controller.control&&r.controller&&r.controller.control&&(e.controller.control=r.controller.control),l.includes("children")&&i&&y&&r.virtual.enabled?(y.slides=i,y.update(!0)):l.includes("virtual")&&y&&r.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),l.includes("children")&&i&&r.loop&&(V=!0),x&&g.init()&&g.update(!0),p&&(e.controller.control=r.controller.control),b&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(r.pagination.el=s),h.init(),h.render(),h.update()),A&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(r.scrollbar.el=d),m.init(),m.updateSize(),m.setTranslate()),w&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=e.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),e.el.appendChild(o)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),o&&(r.navigation.nextEl=o),a&&(r.navigation.prevEl=a),f.init(),f.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),l.includes("direction")&&e.changeDirection(n.direction,!1),(C||V)&&e.loopDestroy(),(P||V)&&e.loopCreate(),e.update()}function Ha(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},l={};bi(i,yn),i._emitClasses=!0,i.init=!1;const o={},a=yo.map(s=>s.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?ci(t[s])?(i[s]={},l[s]={},bi(i[s],t[s]),bi(l[s],t[s])):(i[s]=t[s],l[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:o[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:l,rest:o,events:n}}function Xa(t,e){let{el:i,nextEl:n,prevEl:l,paginationEl:o,scrollbarEl:a,swiper:d}=t;wo(e)&&n&&l&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=l,d.originalParams.navigation.prevEl=l),So(e)&&o&&(d.params.pagination.el=o,d.originalParams.pagination.el=o),xo(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function qa(t,e,i,n,l){const o=[];if(!e)return o;const a=s=>{o.indexOf(s)<0&&o.push(s)};if(i&&n){const s=n.map(l),c=i.map(l);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return yo.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(ci(t[s])&&ci(e[s])){const c=Object.keys(t[s]),r=Object.keys(e[s]);c.length!==r.length?a(s):(c.forEach(h=>{t[s][h]!==e[s][h]&&a(s)}),r.forEach(h=>{t[s][h]!==e[s][h]&&a(s)}))}else t[s]!==e[s]&&a(s)}),o}const Ya=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Zi(){return Zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Zi.apply(this,arguments)}function Eo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Io(t){const e=[];return v.Children.toArray(t).forEach(i=>{Eo(i)?e.push(i):i.props&&i.props.children&&Io(i.props.children).forEach(n=>e.push(n))}),e}function Ga(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return v.Children.toArray(t).forEach(n=>{if(Eo(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const l=Io(n.props.children);l.length>0?l.forEach(o=>e.push(o)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Za(t,e,i){if(!i)return null;const n=r=>{let h=r;return r<0?h=e.length+r:h>=e.length&&(h=h-e.length),h},l=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:a}=i,d=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,c=[];for(let r=d;r<s;r+=1)r>=o&&r<=a&&c.push(e[n(r)]);return c.map((r,h)=>v.cloneElement(r,{swiper:t,style:l,key:r.props.virtualIndex||r.key||`slide-${h}`}))}function ki(t,e){return typeof window>"u"?ve(t,e):Yo(t,e)}const Tn=Ti(null),Ci=()=>xi(Tn),Ka=Ti(null),Kt=ri(function(t,e){let{className:i,tag:n="div",wrapperTag:l="div",children:o,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=Z("swiper"),[h,f]=Z(null),[m,y]=Z(!1),g=ce(!1),x=ce(null),p=ce(null),b=ce(null),A=ce(null),w=ce(null),C=ce(null),P=ce(null),V=ce(null),{params:O,passedParams:S,rest:T,events:D}=Ha(d),{slides:I,slots:M}=Ga(o),u=()=>{y(!m)};Object.assign(O.on,{_containerClasses(k,E){r(E)}});const B=()=>{Object.assign(O.on,D),s=!0;const k={...O};if(delete k.wrapperClass,p.current=new xn(k),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=I;const E={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};bi(p.current.params.virtual,E),bi(p.current.originalParams.virtual,E)}};x.current||B(),p.current&&p.current.on("_beforeBreakpoint",u);const W=()=>{s||!D||!p.current||Object.keys(D).forEach(k=>{p.current.on(k,D[k])})},j=()=>{!D||!p.current||Object.keys(D).forEach(k=>{p.current.off(k,D[k])})};ve(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",u)}),ve(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),ki(()=>{if(e&&(e.current=x.current),!!x.current)return p.current.destroyed&&B(),Xa({el:x.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:V.current,swiper:p.current},O),a&&!p.current.destroyed&&a(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),ki(()=>{W();const k=qa(S,b.current,I,A.current,E=>E.key);return b.current=S,A.current=I,k.length&&p.current&&!p.current.destroyed&&Ua({swiper:p.current,slides:I,passedParams:S,changedParams:k,nextEl:w.current,prevEl:C.current,scrollbarEl:V.current,paginationEl:P.current}),()=>{j()}}),ki(()=>{Ya(p.current)},[h]);function R(){return O.virtual?Za(p.current,I,h):I.map((k,E)=>v.cloneElement(k,{swiper:p.current,swiperSlideIndex:E}))}return v.createElement(n,Zi({ref:x,className:To(`${c}${i?` ${i}`:""}`)},T),v.createElement(Ka.Provider,{value:p.current},M["container-start"],v.createElement(l,{className:za(O.wrapperClass)},M["wrapper-start"],R(),M["wrapper-end"]),wo(O)&&v.createElement(v.Fragment,null,v.createElement("div",{ref:C,className:"swiper-button-prev"}),v.createElement("div",{ref:w,className:"swiper-button-next"})),xo(O)&&v.createElement("div",{ref:V,className:"swiper-scrollbar"}),So(O)&&v.createElement("div",{ref:P,className:"swiper-pagination"}),M["container-end"]))});Kt.displayName="Swiper";const Wt=ri(function(t,e){let{tag:i="div",children:n,className:l="",swiper:o,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const h=ce(null),[f,m]=Z("swiper-slide"),[y,g]=Z(!1);function x(w,C,P){C===h.current&&m(P)}ki(()=>{if(typeof c<"u"&&(h.current.swiperSlideIndex=c),e&&(e.current=h.current),!(!h.current||!o)){if(o.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return o.on("_slideClass",x),()=>{o&&o.off("_slideClass",x)}}}),ki(()=>{o&&h.current&&!o.destroyed&&m(o.getSlideClasses(h.current))},[o]);const p={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof n=="function"?n(p):n,A=()=>{g(!0)};return v.createElement(i,Zi({ref:h,className:To(`${f}${l?` ${l}`:""}`),"data-swiper-slide-index":s,onLoad:A},r),a&&v.createElement(Tn.Provider,{value:p},v.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),d&&!y&&v.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&v.createElement(Tn.Provider,{value:p},b(),d&&!y&&v.createElement("div",{className:"swiper-lazy-preloader"})))});Wt.displayName="SwiperSlide";function En(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Vt(),a=Lt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function d(r){if(!e.enabled)return;const{rtlTranslate:h}=e;let f=r;f.originalEvent&&(f=f.originalEvent);const m=f.keyCode||f.charCode,y=e.params.keyboard.pageUpDown,g=y&&m===33,x=y&&m===34,p=m===37,b=m===39,A=m===38,w=m===40;if(!e.allowSlideNext&&(e.isHorizontal()&&b||e.isVertical()&&w||x)||!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&A||g))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(g||x||p||b||A||w)){let C=!1;if(Yi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Yi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,V=P.clientWidth,O=P.clientHeight,S=a.innerWidth,T=a.innerHeight,D=uo(P);h&&(D.left-=P.scrollLeft);const I=[[D.left,D.top],[D.left+V,D.top],[D.left,D.top+O],[D.left+V,D.top+O]];for(let M=0;M<I.length;M+=1){const u=I[M];if(u[0]>=0&&u[0]<=S&&u[1]>=0&&u[1]<=T){if(u[0]===0&&u[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((g||x||p||b)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((x||b)&&!h||(g||p)&&h)&&e.slideNext(),((g||p)&&!h||(x||b)&&h)&&e.slidePrev()):((g||x||A||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(x||w)&&e.slideNext(),(g||A)&&e.slidePrev()),l("keyPress",m)}}function s(){e.keyboard.enabled||(o.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(o.removeEventListener("keydown",d),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function Ki(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Lt();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,d=Ut(),s;const c=[];function r(A){let V=0,O=0,S=0,T=0;return"detail"in A&&(O=A.detail),"wheelDelta"in A&&(O=-A.wheelDelta/120),"wheelDeltaY"in A&&(O=-A.wheelDeltaY/120),"wheelDeltaX"in A&&(V=-A.wheelDeltaX/120),"axis"in A&&A.axis===A.HORIZONTAL_AXIS&&(V=O,O=0),S=V*10,T=O*10,"deltaY"in A&&(T=A.deltaY),"deltaX"in A&&(S=A.deltaX),A.shiftKey&&!S&&(S=T,T=0),(S||T)&&A.deltaMode&&(A.deltaMode===1?(S*=40,T*=40):(S*=800,T*=800)),S&&!V&&(V=S<1?-1:1),T&&!O&&(O=T<1?-1:1),{spinX:V,spinY:O,pixelX:S,pixelY:T}}function h(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(A){return e.params.mousewheel.thresholdDelta&&A.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Ut()-d<e.params.mousewheel.thresholdTime?!1:A.delta>=6&&Ut()-d<60?!0:(A.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),l("scroll",A.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),l("scroll",A.raw)),d=new o.Date().getTime(),!1)}function y(A){const w=e.params.mousewheel;if(A.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function g(A){let w=A,C=!0;if(!e.enabled||A.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let V=e.el;e.params.mousewheel.eventsTarget!=="container"&&(V=document.querySelector(e.params.mousewheel.eventsTarget));const O=V&&V.contains(w.target);if(!e.mouseEntered&&!O&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let S=0;const T=e.rtlTranslate?-1:1,D=r(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(D.pixelX)>Math.abs(D.pixelY))S=-D.pixelX*T;else return!0;else if(Math.abs(D.pixelY)>Math.abs(D.pixelX))S=-D.pixelY;else return!0;else S=Math.abs(D.pixelX)>Math.abs(D.pixelY)?-D.pixelX*T:-D.pixelY;if(S===0)return!0;P.invert&&(S=-S);let I=e.getTranslate()+S*P.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),C=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:Ut(),delta:Math.abs(S),direction:Math.sign(S),raw:A};c.length>=2&&c.shift();const u=c.length?c[c.length-1]:void 0;if(c.push(M),u?(M.direction!==u.direction||M.delta>u.delta||M.time>u.time+150)&&m(M):m(M),y(M))return!0}else{const M={time:Ut(),delta:Math.abs(S),direction:Math.sign(S)},u=s&&M.time<s.time+500&&M.delta<=s.delta&&M.direction===s.direction;if(!u){s=void 0;let B=e.getTranslate()+S*P.sensitivity;const W=e.isBeginning,j=e.isEnd;if(B>=e.minTranslate()&&(B=e.minTranslate()),B<=e.maxTranslate()&&(B=e.maxTranslate()),e.setTransition(0),e.setTranslate(B),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!j&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const R=c.length?c[c.length-1]:void 0,k=c[0];if(c.push(M),R&&(M.delta>R.delta||M.direction!==R.direction))c.splice(0);else if(c.length>=15&&M.time-k.time<500&&k.delta-M.delta>=1&&M.delta<=6){const E=S>0?.8:.2;s=M,c.splice(0),a=hi(()=>{e.slideToClosest(e.params.speed,!0,void 0,E)},0)}a||(a=hi(()=>{s=M,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(u||l("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(B===e.minTranslate()||B===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function x(A){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[A]("mouseenter",h),w[A]("mouseleave",f),w[A]("wheel",g)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&p()}),n("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:p,disable:b})}function In(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(l=>{if(!i[l]&&i.auto===!0){let o=Yt(t.el,`.${n[l]}`)[0];o||(o=Ai("div",n[l]),o.className=n[l],t.el.append(o)),i[l]=o,e[l]=o}}),i}function kn(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function o(y){let g;return y&&typeof y=="string"&&e.isElement&&(g=e.el.querySelector(y),g)?g:(y&&(typeof y=="string"&&(g=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&g&&g.length>1&&e.el.querySelectorAll(y).length===1?g=e.el.querySelector(y):g&&g.length===1&&(g=g[0])),y&&!g?y:g)}function a(y,g){const x=e.params.navigation;y=Ze(y),y.forEach(p=>{p&&(p.classList[g?"add":"remove"](...x.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](x.lockClass))})}function d(){const{nextEl:y,prevEl:g}=e.navigation;if(e.params.loop){a(g,!1),a(y,!1);return}a(g,e.isBeginning&&!e.params.rewind),a(y,e.isEnd&&!e.params.rewind)}function s(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function r(){const y=e.params.navigation;if(e.params.navigation=In(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let g=o(y.nextEl),x=o(y.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:x}),g=Ze(g),x=Ze(x);const p=(b,A)=>{b&&b.addEventListener("click",A==="next"?c:s),!e.enabled&&b&&b.classList.add(...y.lockClass.split(" "))};g.forEach(b=>p(b,"next")),x.forEach(b=>p(b,"prev"))}function h(){let{nextEl:y,prevEl:g}=e.navigation;y=Ze(y),g=Ze(g);const x=(p,b)=>{p.removeEventListener("click",b==="next"?c:s),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(p=>x(p,"next")),g.forEach(p=>x(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?m():(r(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{nextEl:y,prevEl:g}=e.navigation;if(y=Ze(y),g=Ze(g),e.enabled){d();return}[...y,...g].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),n("click",(y,g)=>{let{nextEl:x,prevEl:p}=e.navigation;x=Ze(x),p=Ze(p);const b=g.target;let A=p.includes(b)||x.includes(b);if(e.isElement&&!A){const w=g.path||g.composedPath&&g.composedPath();w&&(A=w.find(C=>x.includes(C)||p.includes(C)))}if(e.params.navigation.hideOnClick&&!A){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let w;x.length?w=x[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(w=p[0].classList.contains(e.params.navigation.hiddenClass)),l(w===!0?"navigationShow":"navigationHide"),[...x,...p].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),r(),d()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:f,disable:m,update:d,init:r,destroy:h})}function _t(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pi(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let a,d=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(p,b){const{bulletActiveClass:A}=e.params.pagination;p&&(p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${A}-${b}`),p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${A}-${b}-${b}`)))}function r(p){const b=p.target.closest(_t(e.params.pagination.bulletClass));if(!b)return;p.preventDefault();const A=Ii(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===A)return;e.slideToLoop(A)}else e.slideTo(A)}function h(){const p=e.rtl,b=e.params.pagination;if(s())return;let A=e.pagination.el;A=Ze(A);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,V=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let S,T,D;if(b.dynamicBullets&&(a=pn(O[0],e.isHorizontal()?"width":"height",!0),A.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&C!==void 0&&(d+=w-(C||0),d>b.dynamicMainBullets-1?d=b.dynamicMainBullets-1:d<0&&(d=0)),S=Math.max(w-d,0),T=S+(Math.min(O.length,b.dynamicMainBullets)-1),D=(T+S)/2),O.forEach(I=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(u=>`${b.bulletActiveClass}${u}`)].map(u=>typeof u=="string"&&u.includes(" ")?u.split(" "):u).flat();I.classList.remove(...M)}),A.length>1)O.forEach(I=>{const M=Ii(I);M===w?I.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),b.dynamicBullets&&(M>=S&&M<=T&&I.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),M===S&&c(I,"prev"),M===T&&c(I,"next"))});else{const I=O[w];if(I&&I.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&O.forEach((M,u)=>{M.setAttribute("part",u===w?"bullet-active":"bullet")}),b.dynamicBullets){const M=O[S],u=O[T];for(let B=S;B<=T;B+=1)O[B]&&O[B].classList.add(...`${b.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(u,"next")}}if(b.dynamicBullets){const I=Math.min(O.length,b.dynamicMainBullets+4),M=(a*I-a)/2-D*a,u=p?"right":"left";O.forEach(B=>{B.style[e.isHorizontal()?u:"top"]=`${M}px`})}}A.forEach((O,S)=>{if(b.type==="fraction"&&(O.querySelectorAll(_t(b.currentClass)).forEach(T=>{T.textContent=b.formatFractionCurrent(w+1)}),O.querySelectorAll(_t(b.totalClass)).forEach(T=>{T.textContent=b.formatFractionTotal(V)})),b.type==="progressbar"){let T;b.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const D=(w+1)/V;let I=1,M=1;T==="horizontal"?I=D:M=D,O.querySelectorAll(_t(b.progressbarFillClass)).forEach(u=>{u.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${M})`,u.style.transitionDuration=`${e.params.speed}ms`})}b.type==="custom"&&b.renderCustom?(O.innerHTML=b.renderCustom(e,w+1,V),S===0&&l("paginationRender",O)):(S===0&&l("paginationRender",O),l("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](b.lockClass)})}function f(){const p=e.params.pagination;if(s())return;const b=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let A=e.pagination.el;A=Ze(A);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>b&&(C=b);for(let P=0;P<C;P+=1)p.renderBullet?w+=p.renderBullet.call(e,P,p.bulletClass):w+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],A.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(_t(p.bulletClass)))}),p.type!=="custom"&&l("paginationRender",A[0])}function m(){e.params.pagination=In(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let b;typeof p.el=="string"&&e.isElement&&(b=e.el.querySelector(p.el)),!b&&typeof p.el=="string"&&(b=[...document.querySelectorAll(p.el)]),b||(b=p.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(p.el)],b.length>1&&(b=b.filter(A=>Yi(A,".swiper")[0]===e.el)[0])),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=Ze(b),b.forEach(A=>{p.type==="bullets"&&p.clickable&&A.classList.add(...(p.clickableClass||"").split(" ")),A.classList.add(p.modifierClass+p.type),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(A.classList.add(`${p.modifierClass}${p.type}-dynamic`),d=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&A.classList.add(p.progressbarOppositeClass),p.clickable&&A.addEventListener("click",r),e.enabled||A.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(s())return;let b=e.pagination.el;b&&(b=Ze(b),b.forEach(A=>{A.classList.remove(p.hiddenClass),A.classList.remove(p.modifierClass+p.type),A.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(A.classList.remove(...(p.clickableClass||"").split(" ")),A.removeEventListener("click",r))})),e.pagination.bullets&&e.pagination.bullets.forEach(A=>A.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:b}=e.pagination;b=Ze(b),b.forEach(A=>{A.classList.remove(p.horizontalClass,p.verticalClass),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?x():(m(),f(),h())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),n("snapIndexChange",()=>{h()}),n("snapGridLengthChange",()=>{f(),h()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{h()}),n("click",(p,b)=>{const A=b.target,w=Ze(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!A.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&A===e.navigation.nextEl||e.navigation.prevEl&&A===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);l(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),m(),f(),h()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:g,disable:x,render:f,update:h,init:m,destroy:y})}function _a(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Vt();let a=!1,d=null,s=null,c,r,h,f;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:M}=e,{dragEl:u,el:B}=I,W=e.params.scrollbar,j=e.params.loop?e.progressLoop:e.progress;let R=r,k=(h-r)*j;M?(k=-k,k>0?(R=r-k,k=0):-k+r>h&&(R=h+k)):k<0?(R=r+k,k=0):k+r>h&&(R=h-k),e.isHorizontal()?(u.style.transform=`translate3d(${k}px, 0, 0)`,u.style.width=`${R}px`):(u.style.transform=`translate3d(0px, ${k}px, 0)`,u.style.height=`${R}px`),W.hide&&(clearTimeout(d),B.style.opacity=1,d=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function y(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:M,el:u}=I;M.style.width="",M.style.height="",h=e.isHorizontal()?u.offsetWidth:u.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?r=h*f:r=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${r}px`:M.style.height=`${r}px`,f>=1?u.style.display="none":u.style.display="",e.params.scrollbar.hide&&(u.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(I){return e.isHorizontal()?I.clientX:I.clientY}function p(I){const{scrollbar:M,rtlTranslate:u}=e,{el:B}=M;let W;W=(x(I)-uo(B)[e.isHorizontal()?"left":"top"]-(c!==null?c:r/2))/(h-r),W=Math.max(Math.min(W,1),0),u&&(W=1-W);const j=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(j),e.setTranslate(j),e.updateActiveIndex(),e.updateSlidesClasses()}function b(I){const M=e.params.scrollbar,{scrollbar:u,wrapperEl:B}=e,{el:W,dragEl:j}=u;a=!0,c=I.target===j?x(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),B.style.transitionDuration="100ms",j.style.transitionDuration="100ms",p(I),clearTimeout(s),W.style.transitionDuration="0ms",M.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),l("scrollbarDragStart",I)}function A(I){const{scrollbar:M,wrapperEl:u}=e,{el:B,dragEl:W}=M;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,p(I),u.style.transitionDuration="0ms",B.style.transitionDuration="0ms",W.style.transitionDuration="0ms",l("scrollbarDragMove",I))}function w(I){const M=e.params.scrollbar,{scrollbar:u,wrapperEl:B}=e,{el:W}=u;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),M.hide&&(clearTimeout(s),s=hi(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),l("scrollbarDragEnd",I),M.snapOnRelease&&e.slideToClosest())}function C(I){const{scrollbar:M,params:u}=e,B=M.el;if(!B)return;const W=B,j=u.passiveListeners?{passive:!1,capture:!1}:!1,R=u.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const k=I==="on"?"addEventListener":"removeEventListener";W[k]("pointerdown",b,j),o[k]("pointermove",A,j),o[k]("pointerup",w,R)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function O(){const{scrollbar:I,el:M}=e;e.params.scrollbar=In(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const u=e.params.scrollbar;if(!u.el)return;let B;if(typeof u.el=="string"&&e.isElement&&(B=e.el.querySelector(u.el)),!B&&typeof u.el=="string"){if(B=o.querySelectorAll(u.el),!B.length)return}else B||(B=u.el);e.params.uniqueNavElements&&typeof u.el=="string"&&B.length>1&&M.querySelectorAll(u.el).length===1&&(B=M.querySelector(u.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass);let W;B&&(W=B.querySelector(_t(e.params.scrollbar.dragClass)),W||(W=Ai("div",e.params.scrollbar.dragClass),B.append(W))),Object.assign(I,{el:B,dragEl:W}),u.draggable&&P(),B&&B.classList[e.enabled?"remove":"add"](...ei(e.params.scrollbar.lockClass))}function S(){const I=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...ei(e.isHorizontal()?I.horizontalClass:I.verticalClass)),V()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:M}=e.scrollbar;M=Ze(M),M.forEach(u=>{u.classList.remove(I.horizontalClass,I.verticalClass),u.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?D():(O(),g(),m())}),n("update resize observerUpdate lock unlock changeDirection",()=>{g()}),n("setTranslate",()=>{m()}),n("setTransition",(I,M)=>{y(M)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...ei(e.params.scrollbar.lockClass))}),n("destroy",()=>{S()});const T=()=>{e.el.classList.remove(...ei(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ei(e.params.scrollbar.scrollbarDisabledClass)),O(),g(),m()},D=()=>{e.el.classList.add(...ei(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ei(e.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(e.scrollbar,{enable:T,disable:D,updateSize:g,setTranslate:m,init:O,destroy:S})}function Cn(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let l=null,o,a,d=new Date().getTime();function s(j){const R=l;R.length!==0&&(R.innerHTML="",R.innerHTML=j)}function c(j){j===void 0&&(j=16);const R=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(j).replace(/x/g,R)}function r(j){j=Ze(j),j.forEach(R=>{R.setAttribute("tabIndex","0")})}function h(j){j=Ze(j),j.forEach(R=>{R.setAttribute("tabIndex","-1")})}function f(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("role",R)})}function m(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-roledescription",R)})}function y(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-controls",R)})}function g(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-label",R)})}function x(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("id",R)})}function p(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-live",R)})}function b(j){j=Ze(j),j.forEach(R=>{R.setAttribute("aria-disabled",!0)})}function A(j){j=Ze(j),j.forEach(R=>{R.setAttribute("aria-disabled",!1)})}function w(j){if(j.keyCode!==13&&j.keyCode!==32)return;const R=e.params.a11y,k=j.target;if(!(e.pagination&&e.pagination.el&&(k===e.pagination.el||e.pagination.el.contains(j.target))&&!j.target.matches(_t(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const E=Ze(e.navigation.prevEl);Ze(e.navigation.nextEl).includes(k)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(R.lastSlideMessage):s(R.nextSlideMessage)),E.includes(k)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(R.firstSlideMessage):s(R.prevSlideMessage))}e.pagination&&k.matches(_t(e.params.pagination.bulletClass))&&k.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:j,prevEl:R}=e.navigation;R&&(e.isBeginning?(b(R),h(R)):(A(R),r(R))),j&&(e.isEnd?(b(j),h(j)):(A(j),r(j)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return P()&&e.params.pagination.clickable}function O(){const j=e.params.a11y;P()&&e.pagination.bullets.forEach(R=>{e.params.pagination.clickable&&(r(R),e.params.pagination.renderBullet||(f(R,"button"),g(R,j.paginationBulletMessage.replace(/\{\{index\}\}/,Ii(R)+1)))),R.matches(_t(e.params.pagination.bulletActiveClass))?R.setAttribute("aria-current","true"):R.removeAttribute("aria-current")})}const S=(j,R,k)=>{r(j),j.tagName!=="BUTTON"&&(f(j,"button"),j.addEventListener("keydown",w)),g(j,k),y(j,R)},T=j=>{a&&a!==j.target&&!a.contains(j.target)&&(o=!0),e.a11y.clicked=!0},D=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=j=>{d=new Date().getTime()},M=j=>{if(e.a11y.clicked||new Date().getTime()-d<100)return;const R=j.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!R||!e.slides.includes(R))return;a=R;const k=e.slides.indexOf(R)===e.activeIndex,E=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(R);k||E||j.sourceCapabilities&&j.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(R.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(R),0),o=!1)}))},u=()=>{const j=e.params.a11y;j.itemRoleDescriptionMessage&&m(e.slides,j.itemRoleDescriptionMessage),j.slideRole&&f(e.slides,j.slideRole);const R=e.slides.length;j.slideLabelMessage&&e.slides.forEach((k,E)=>{const N=e.params.loop?parseInt(k.getAttribute("data-swiper-slide-index"),10):E,F=j.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,R);g(k,F)})},B=()=>{const j=e.params.a11y;e.el.append(l);const R=e.el;j.containerRoleDescriptionMessage&&m(R,j.containerRoleDescriptionMessage),j.containerMessage&&g(R,j.containerMessage);const k=e.wrapperEl,E=j.id||k.getAttribute("id")||`swiper-wrapper-${c(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(k,E),p(k,N),u();let{nextEl:F,prevEl:U}=e.navigation?e.navigation:{};F=Ze(F),U=Ze(U),F&&F.forEach($=>S($,E,j.nextSlideMessage)),U&&U.forEach($=>S($,E,j.prevSlideMessage)),V()&&Ze(e.pagination.el).forEach(ae=>{ae.addEventListener("keydown",w)}),Vt().addEventListener("visibilitychange",I),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",D,!0)};function W(){l&&l.remove();let{nextEl:j,prevEl:R}=e.navigation?e.navigation:{};j=Ze(j),R=Ze(R),j&&j.forEach(E=>E.removeEventListener("keydown",w)),R&&R.forEach(E=>E.removeEventListener("keydown",w)),V()&&Ze(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),Vt().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",D,!0))}n("beforeInit",()=>{l=Ai("span",e.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&B()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&u()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),n("destroy",()=>{e.params.a11y.enabled&&W()})}function Oi(t){let{swiper:e,extendParams:i,on:n,emit:l,params:o}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,d,s=o&&o.autoplay?o.autoplay.delay:3e3,c=o&&o.autoplay?o.autoplay.delay:3e3,r,h=new Date().getTime(),f,m,y,g,x,p,b;function A(R){!e||e.destroyed||!e.wrapperEl||R.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",A),!(b||R.detail&&R.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(c=r,f=!1);const R=e.autoplay.paused?r:h+c-new Date().getTime();e.autoplay.timeLeft=R,l("autoplayTimeLeft",R,R/s),d=requestAnimationFrame(()=>{w()})},C=()=>{let R;return e.virtual&&e.params.virtual.enabled?R=e.slides.filter(E=>E.classList.contains("swiper-slide-active"))[0]:R=e.slides[e.activeIndex],R?parseInt(R.getAttribute("data-swiper-autoplay"),10):void 0},P=R=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),w();let k=typeof R>"u"?e.params.autoplay.delay:R;s=e.params.autoplay.delay,c=e.params.autoplay.delay;const E=C();!Number.isNaN(E)&&E>0&&typeof R>"u"&&(k=E,s=E,c=E),r=k;const N=e.params.speed,F=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),l("autoplay")),e.params.cssMode&&(h=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return k>0?(clearTimeout(a),a=setTimeout(()=>{F()},k)):requestAnimationFrame(()=>{F()}),k},V=()=>{h=new Date().getTime(),e.autoplay.running=!0,P(),l("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),l("autoplayStop")},S=(R,k)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),R||(p=!0);const E=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",A):T()};if(e.autoplay.paused=!0,k){x&&(r=e.params.autoplay.delay),x=!1,E();return}r=(r||e.params.autoplay.delay)-(new Date().getTime()-h),!(e.isEnd&&r<0&&!e.params.loop)&&(r<0&&(r=0),E())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(h=new Date().getTime(),p?(p=!1,P(r)):P(),e.autoplay.paused=!1,l("autoplayResume"))},D=()=>{if(e.destroyed||!e.autoplay.running)return;const R=Vt();R.visibilityState==="hidden"&&(p=!0,S(!0)),R.visibilityState==="visible"&&T()},I=R=>{R.pointerType==="mouse"&&(p=!0,b=!0,!(e.animating||e.autoplay.paused)&&S(!0))},M=R=>{R.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&T())},u=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",M))},B=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",M))},W=()=>{Vt().addEventListener("visibilitychange",D)},j=()=>{Vt().removeEventListener("visibilitychange",D)};n("init",()=>{e.params.autoplay.enabled&&(u(),W(),V())}),n("destroy",()=>{B(),j(),e.autoplay.running&&O()}),n("_freeModeStaticRelease",()=>{(y||p)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?O():S(!0,!0)}),n("beforeTransitionStart",(R,k,E)=>{e.destroyed||!e.autoplay.running||(E||!e.params.autoplay.disableOnInteraction?S(!0,!0):O())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}m=!0,y=!1,p=!1,g=setTimeout(()=>{p=!0,y=!0,S(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(g),clearTimeout(a),e.params.autoplay.disableOnInteraction){y=!1,m=!1;return}y&&e.params.cssMode&&T(),y=!1,m=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:V,stop:O,pause:S,resume:T})}function Ja(t){let{swiper:e,extendParams:i,emit:n,once:l}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:c}=e;s.velocities.length===0&&s.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Ut()})}function d(s){let{currentPos:c}=s;if(e.params.cssMode)return;const{params:r,wrapperEl:h,rtlTranslate:f,snapGrid:m,touchEventsData:y}=e,x=Ut()-y.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(r.freeMode.momentum){if(y.velocities.length>1){const O=y.velocities.pop(),S=y.velocities.pop(),T=O.position-S.position,D=O.time-S.time;e.velocity=T/D,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(D>150||Ut()-O.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,y.velocities.length=0;let p=1e3*r.freeMode.momentumRatio;const b=e.velocity*p;let A=e.translate+b;f&&(A=-A);let w=!1,C;const P=Math.abs(e.velocity)*20*r.freeMode.momentumBounceRatio;let V;if(A<e.maxTranslate())r.freeMode.momentumBounce?(A+e.maxTranslate()<-P&&(A=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.maxTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(A>e.minTranslate())r.freeMode.momentumBounce?(A-e.minTranslate()>P&&(A=e.minTranslate()+P),C=e.minTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.minTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(r.freeMode.sticky){let O;for(let S=0;S<m.length;S+=1)if(m[S]>-A){O=S;break}Math.abs(m[O]-A)<Math.abs(m[O-1]-A)||e.swipeDirection==="next"?A=m[O]:A=m[O-1],A=-A}if(V&&l("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?p=Math.abs((-A-e.translate)/e.velocity):p=Math.abs((A-e.translate)/e.velocity),r.freeMode.sticky){const O=Math.abs((f?-A:A)-e.translate),S=e.slidesSizesGrid[e.activeIndex];O<S?p=r.speed:O<2*S?p=r.speed*1.5:p=r.speed*2.5}}else if(r.freeMode.sticky){e.slideToClosest();return}r.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating=!0,vn(h,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(C),vn(h,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(A),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,vn(h,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(A),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeMode.sticky){e.slideToClosest();return}else r.freeMode&&n("_freeModeNoMomentumRelease");(!r.freeMode.momentum||x>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:a,onTouchEnd:d}})}const Qa=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const l=ce(),{popupDetailData:o}=Xe();return ve(()=>{var a,d;n&&((a=l?.current)===null||a===void 0||a.swiper.slideTo((d=o?.multiCheckIndex)!==null&&d!==void 0?d:0))},[o,n]),v.createElement(Kt,{role:"list",tag:"ul",ref:l,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Ja,_a,Ki],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Li=je(Qa);const $a=ri((t,e)=>{const{src:i,onLoad:n,style:l,className:o,loading:a,alt:d="image"}=t,[s,c]=Z(i),r=ce(null),[h,f]=Z(!1);return Ei(e,()=>({setSrc:m=>{m&&c(m)}})),ve(()=>{i&&c(i)},[i]),ve(()=>{const m=()=>{i&&!h&&r.current&&(r.current.src="",r.current.src=i)};return xt.on(bt.PAGE_DID_SHOW,m),()=>{xt.off(bt.PAGE_DID_SHOW,m)}},[i,h]),v.createElement(v.Fragment,null,!h&&!s&&v.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),s?.includes(".avif")?v.createElement("picture",null,v.createElement("source",{type:"image/avif",srcSet:s}),v.createElement("source",{type:"image/webp",srcSet:`${s}?imageMogr2/format/webp`}),v.createElement("source",{type:"image/jpeg",srcSet:`${s}?imageMogr2/format/jpg`}),v.createElement("img",{ref:r,className:o,src:s,style:Object.assign({},l),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d})):v.createElement("img",{ref:r,className:o,src:s,style:Object.assign({},l),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d}))});var jt=je($a);const es=({products:t,data:e,defImg:i,style:n,onCLick:l,popupDetailData:o,check:a})=>{var d;const{productView:s}=Nt(),{popupCurTimeRef:c}=Xe(),r=(h,f)=>{if(a===f)return;const m=t?.[a];s(o,m,m?.bindCta,c.current,o?.index),l?.(f)};return v.createElement(v.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&v.createElement(Li,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=o?t:[0,1,2,3])===null||d===void 0?void 0:d.map((h,f)=>{var m,y,g;return v.createElement(v.Fragment,null,h?.bindCta?v.createElement(Wt,{className:Be({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{r(h,f)},key:f},v.createElement(jt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(g=(m=h?.cover)!==null&&m!==void 0?m:(y=h?.homePage)===null||y===void 0?void 0:y[0])!==null&&g!==void 0?g:i})):null)})))};var ko=je(es);const ts="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",is=({visible:t,onClose:e,children:i,modalStyle:n,padding:l,popup:o,schema:a,fullHeight:d=window.innerHeight,isFullScreen:s=!1,openState:c})=>{var r,h,f,m,y,g,x,p,b,A,w,C,P,V,O,S,T,D,I,M,u,B,W,j;const R=ce(null),k=ce(null),E=ce(null),N=ce(null),F=ce(null),U=d*.2,G=s?d:d*.8,[$,ae]=Z(U),[de,Q]=Z(!1),Ee=ce(null),{globalConfig:Pe,popupDetailData:Ue}=Xe(),{schema:pe,popup:he}=$t(),[_e,qe]=Z(15);ve(()=>{const me=document.getElementById("sxp-render"),H=document.getElementById("pb-modal");H?Ee.current=H:(Ee.current=document.createElement("div"),Ee.current.setAttribute("id","pb-modal"),me?.appendChild(Ee.current))},[]);const Ye=fe(()=>o?.id&&o?.id!==""||t,[t,o]),Ie=fe(()=>{var me,H,J;const be=a??pe;return(J=(H=(me=be?.sxpPageConf)===null||me===void 0?void 0:me.globalConfig)===null||H===void 0?void 0:H.popupList)===null||J===void 0?void 0:J.find(ye=>ye?.id===o?.id)},[o,a,pe]),tt=fe(()=>{var me,H;return((H=(me=Ie?.item)===null||me===void 0?void 0:me.event)===null||H===void 0?void 0:H.isScrollFullScreen)||!1},[Ie]);ve(()=>{Ye?Q(!0):setTimeout(()=>{Q(!1),ae(U)},o?.duration)},[Ye,o]);const $e=se(()=>i,[he,c,Pe,a]);if(ve(()=>{const me=H=>{var J=H?.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),be=J?.[0],Y=J?.[J?.length-1],ye=9;H.addEventListener("keydown",function(Se){(Se.key==="Escape"||Se.key==="Esc")&&(et(),Se.preventDefault());var te=Se.key==="Tab"||Se.keyCode===ye;te&&(Se.shiftKey?document?.activeElement===be&&(Y?.focus(),Se.preventDefault()):document?.activeElement===Y&&(be?.focus(),Se.preventDefault()))}),be?.focus()};return F?.current&&me(F?.current),()=>{var H;(H=F?.current)===null||H===void 0||H.removeEventListener("keydown",me)}},[F,de,he]),!Ee.current)return null;const et=Si(()=>{e?.()},300),vt=me=>{R.current=me.touches[0],k.current=me.touches[0],E.current=!0},It=me=>{requestAnimationFrame(()=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const J=me.touches[0].clientY,be=me.touches[0].clientX,Y=R.current.clientY-J;R.current=me.touches[0];const ye=J-k.current.clientY,Se=be-k.current.clientX;if(Math.abs(Se)>Math.abs(ye))return;const te=$-Y;te>0&&ae(te)}})},Fe=me=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const J=me.changedTouches[0].clientY-k.current.clientY,be=me.changedTouches[0].clientX-k.current.clientX;if(Math.abs(be)>Math.abs(J))return;const Y=k.current.clientY-R.current.clientY;Y>0?ae(0):$<U&&Y<0?ae(U):$>=U&&Y<0&&e?.()}E.current=!1};return zn.createPortal(v.createElement(v.Fragment,null,de&&v.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ye?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:et},v.createElement("div",{style:{position:"relative",left:`${(m=(f=(h=(r=Ie?.item)===null||r===void 0?void 0:r.props)===null||h===void 0?void 0:h.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&m!==void 0?m:0}px`,right:`${(p=(x=(g=(y=Ie?.item)===null||y===void 0?void 0:y.props)===null||g===void 0?void 0:g.popupBg)===null||x===void 0?void 0:x.horizontalMargin)!==null&&p!==void 0?p:0}px`,bottom:`${(C=(w=(A=(b=Ie?.item)===null||b===void 0?void 0:b.props)===null||A===void 0?void 0:A.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0}px`,overflow:"hidden",width:`calc(100% - ${((S=(O=(V=(P=Ie?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&S!==void 0?S:0)*2}px)`,height:"100%"}},v.createElement("div",Object.assign({ref:F,className:`modal-container ${Ye?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=Ie?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:l,animationDuration:((D=o?.duration)!==null&&D!==void 0?D:0)/1e3+"s"},tt&&{transform:`translateY(${$}px)`}),{overflow:"hidden",borderRadius:`${(B=(u=(M=(I=Ie?.item)===null||I===void 0?void 0:I.props)===null||M===void 0?void 0:M.popupBg)===null||u===void 0?void 0:u.borderRadius)!==null&&B!==void 0?B:0}px`,zIndex:9}),onClick:me=>{me.stopPropagation(),me.preventDefault()}},tt&&{onTouchMove:It,onTouchStart:vt,onTouchEnd:Fe}),v.createElement("div",Object.assign({id:"modal-content",ref:N,style:{height:tt?d:G,overflow:tt&&$<=0||!tt?"auto":"hidden",zIndex:1}},((j=(W=Ie?.item)===null||W===void 0?void 0:W.props)===null||j===void 0?void 0:j.enableFixedCloseButton)&&{onScroll:me=>{var H;qe(15-((H=me?.target)===null||H===void 0?void 0:H.scrollTop))}}),$e()),v.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:_e}},v.createElement("img",{src:Pe?.popupCloseIcon||ts,alt:"close button",className:"modal-icon"})))))),Ee.current)};var gi=je(is);const ns=({text:t,maxStr:e=108,style:i,className:n,onClick:l,foldText:o,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=Z(!1),[h,f]=Z(!1),m=i||{},{lineClamp:y}=m,g=rt(m,["lineClamp"]),x=Number(y||2),p=ce(null),b=ce(null),A=ce(),w=()=>{r(!c)},C=se(()=>{!p.current||!b.current||!d||!t||c||requestAnimationFrame(()=>{const P=p.current.getBoundingClientRect().height,V=b.current.getBoundingClientRect().height,O=P>V+1;f(O)})},[d,t,c]);return ve(()=>{if(p.current)return A.current=new ResizeObserver(C),A.current.observe(p.current),C(),()=>{var P;(P=A.current)===null||P===void 0||P.disconnect()}},[C]),v.createElement("div",{className:n,style:Object.assign(Object.assign({},g),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},v.createElement("div",{ref:b,style:Object.assign(Object.assign({},!c&&d&&{WebkitLineClamp:x,lineClamp:x,textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical"}),{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content"}),dangerouslySetInnerHTML:{__html:De(t?.replace(/\n/g,"</br>"),g)}}),v.createElement("div",{ref:p,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",position:"absolute",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:De(t?.replace(/\n/g,"</br>"),g)}}),t&&d&&h&&v.createElement("button",{"aria-label":c?a||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:l??w,dangerouslySetInnerHTML:{__html:De(c?a||"show less":o||"show more",g)}}))};var ji=je(ns);const os=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:l,src:o}=t;switch(i){case 2:return n||null;case 3:return o||null;default:return l&&l.length>0?(e=l[0])===null||e===void 0?void 0:e.url:null}},ls=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Mi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:l})=>{var o,a,d,s,c,r,h,f;let m="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return m;let g=i?.priceSymbol,x=t?.currency?(d=(a=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||a===void 0?void 0:a.toUpperCase())!==null&&d!==void 0?d:"":"$";const p=e===void 0||e;let b=y?.toString();g?.showTwoDecimalPoint&&(b=y?.toFixed(2));let A=(s=b?.indexOf("."))!==null&&s!==void 0?s:-1;if(p){m=(c=y?.toLocaleString("zh",{minimumFractionDigits:g?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let w=0,C=A??m?.length;g?.millesimalSymbol==="."?m=m?.replace(/\,/g,function(P,V){return V>=w&&V<C?".":P}):g?.millesimalSymbol===" "&&(m=m?.replace(","," "))}else m=`${g?.showTwoDecimalPoint?y?.toFixed(2):y}`;return g?.decimalPoint===","&&A>0&&(m=m=m?.replace(/\./g,function(w,C){return C>=A&&C<m?.length?",":w})),x=`<span style="font-family:${(f=(h=(r=i?.priceSymbol)===null||r===void 0?void 0:r.fontFamily)!==null&&h!==void 0?h:l?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${x}</span>`,m=De(m,l),g?.currencyPosition&&g?.currencyPosition!=="none"?m=g?.currencyPosition==="left"?x+m:m+x:g?.currencyPosition!=="none"&&(m=x+m),m},as=t=>{var e,i,n,l,o,a,d,s,c,r,h,f,m,y,g,x,p,b,A,w,C,P,V,O,{content:S,style:T,bgImg:D,onClick:I,schema:M,isDefault:u,bottom_image:B,tipText:W,isPost:j,viewTime:R,rec:k,swiper:E,commodityStyles:N,buttonStyle:F,index:U,commodityGroup:G,popupBg:$,iframeIcon:ae,commodityImgRatio:de,isTel:Q,iframeBgColor:Ee,isActive:Pe=!0}=t,Ue=rt(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:pe,popupDetailData:he,isPreview:_e,bffFbReport:qe,popupCurTimeRef:Ye,checkCommodityIndexRef:Ie,globalConfig:tt}=Xe(),{jumpToWeb:$e,productView:et}=Nt(),vt=ce(null),[It,Fe]=Z(!1),[me,H]=Z(!1),[J,be]=Z((e=he?.multiCheckIndex)!==null&&e!==void 0?e:0),Y=ce(),[ye,Se]=Z(0),te=j?k:he;let z=j?te?.product:(n=(i=te?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(o=(l=te?.video)===null||l===void 0?void 0:l.bindProducts)===null||o===void 0?void 0:o[0],We=j?(a=te?.product)===null||a===void 0?void 0:a.bindCta:(c=(s=(d=te?.video)===null||d===void 0?void 0:d.bindProduct)===null||s===void 0?void 0:s.bindCta)!==null&&c!==void 0?c:(f=(h=(r=te?.video)===null||r===void 0?void 0:r.bindProducts)===null||h===void 0?void 0:h[0])===null||f===void 0?void 0:f.bindCta;const nt=j?U:he?.index;if(!j&&G?.open&&(!((m=te?.video)===null||m===void 0)&&m.bindProducts)&&((g=(y=te?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0?void 0:g.length)>0){Ie.current=J;const ee=(x=te?.video)===null||x===void 0?void 0:x.bindProducts[J];z=ee,We=ee?.bindCta}const ht=ee=>{z?.link&&($e(ee,te,z,We,nt),j||et(te,z,We,R||vt.current,nt),window.location.href=window.getJointUtmLink(z.link))};ve(()=>{Pe&&(qe?.({eventName:"ProductView",product:z}),qe?.({eventName:"PageView",product:z}))},[Pe,qe]),ve(()=>{const ee=()=>{vt.current=new Date};return ee(),window.addEventListener("pageshow",ee),()=>{window.removeEventListener("pageshow",ee)}},[]);const Ge=Mi({product:z,enableFormattedPrice:(p=N?.price)===null||p===void 0?void 0:p.enableFormattedPrice,globalConfig:tt,style:N?.price}),it=(_e?375:(b=T?.width)!==null&&b!==void 0?b:window.innerWidth)-((A=$?.horizontalMargin)!==null&&A!==void 0?A:0)*2,Re=de?it*(de.h/de.w):it,ot=({isPost:ee})=>{var Je,At,ni,oi;return v.createElement("div",null,v.createElement("div",{className:"pb-commondity-content-collection",style:gt(N?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:De((Je=z?.collection)!==null&&Je!==void 0?Je:"Tiffany Lock",N?.collection)}}),v.createElement("div",{className:"pb-commondity-content-title",style:gt(N?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:De((At=z?.title)!==null&&At!==void 0?At:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),v.createElement("div",{className:"pb-commondity-content-price",style:gt(N?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:Ge??""}}),v.createElement("div",{hidden:!!z&&!z?.taxInfo,style:gt(N?.taxInfo),dangerouslySetInnerHTML:{__html:De((ni=z?.taxInfo)!==null&&ni!==void 0?ni:"\u7A0E\u8D39",N?.taxInfo)}}),v.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},v.createElement(ji,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>Fe(!0),isPost:ee,text:(oi=z?.info)!==null&&oi!==void 0?oi:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
1
|
+
import{isEmpty as si,cloneDeep as fi,isEqual as Rn,debounce as Si,throttle as Bn,get as Fn}from"lodash";import{v4 as Xo}from"uuid";import qo from"pako";import v,{useContext as xi,useMemo as fe,memo as je,useEffect as ve,createContext as Ti,useState as Z,useRef as ce,useCallback as se,forwardRef as ri,useImperativeHandle as Ei,useLayoutEffect as Yo}from"react";import Wn from"qs";import Go from"eventemitter3";import{css as Be}from"@emotion/css";import*as zn from"react-dom";import Zo from"react-dom";function rt(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l<n.length;l++)e.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(t,n[l])&&(i[n[l]]=t[n[l]]);return i}function pt(t,e,i,n){function l(o){return o instanceof i?o:new i(function(a){a(o)})}return new(i||(i=Promise))(function(o,a){function d(r){try{c(n.next(r))}catch(h){a(h)}}function s(r){try{c(n.throw(r))}catch(h){a(h)}}function c(r){r.done?o(r.value):l(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ko=/:\w+/g;var Un=(t,e)=>pt(void 0,void 0,void 0,function*(){const i={},n={};for(let l=0;l<e?.length;l++){const{id:o,method:a,url:d,urlParams:s,name:c,queryString:r,headers:h,body:f}=e[l];let m=d;s&&Object.entries(s).forEach(([y,g])=>{m=m.replace(Ko,x=>x===y?g:x)}),r&&(m+=r),n[o]=c;try{const y=yield fetch(m,{method:a,headers:Object.assign({"Content-Type":"application/json"},h),body:JSON.stringify(f)}).then(g=>g.json());i[o]=y}catch(y){console.error("DataSource request error: ",y),i[o]={}}}return{$store:i,idMapName:n}});const Hn="SXP_TOKEN_INFO",_o=(t,e)=>pt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),l=t.getAppId(),o=t.getApiUrl(),a=window.localStorage.getItem(Hn);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":l||""}}).then(r=>r.json());if(c.success){const r=c.data;d=Object.assign(Object.assign({},r),{expireTime:Date.now()+r.expire*1e3}),window.localStorage.setItem(Hn,JSON.stringify(d))}}return d});function Wi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let l;if(e=e||i.length,t)for(l=0;l<t;l++)n[l]=i[0|Math.random()*e];else{let o;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",l=0;l<36;l++)n[l]||(o=0|Math.random()*16,n[l]=i[l===19?o&3|8:o])}return n.join("")}const Jo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let l=0;for(;l<t;)e+=i.charAt(Math.floor(Math.random()*n)),l+=1;return e},Qo=()=>{const t=Xo();return t?.replaceAll?t.replaceAll("-",""):Jo(32)},De=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],l=e?.["fontFamily-en"];if(!n&&!l)return t;let o=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${l??"inherit"}`,r=f=>{const m=f.search(a),y=f.search(d);return m!==-1&&y!==-1&&m<y&&(i+=`<span style="${s}">${f.substring(m,y)}</span>`,o=f.substring(y,f?.length)),m!==-1&&y!==-1&&m>y&&(i+=`<span style="${c}">${f.substring(y,m)}</span>`,o=f.substring(m,f?.length)),m===-1?(i+=`<span style="${c}">${f.substring(y,f?.length)}</span>`,o="",!1):y===-1?(i+=`<span style="${s}">${f.substring(m,f?.length)}</span>`,o="",!1):!0};let h=!0;for(;h;)h=r(o);return i};function Xn(t){const i=document.cookie.split(";");let n=null;return i.forEach(l=>{const[o,a]=l.trim().split("=");o===t&&(n=a)}),n??""}function ln(){const t=self.navigator.userAgent;return t?/TalkBack/i.test(t)||/Funtouch/i.test(t)||/VoiceOver/i.test(t)||/NVDA/i.test(t)||/JAWS/i.test(t)||/ChromeVox/i.test(t):!1}function di(t){if(!t)return;const e=[];for(let l=0;l<t.length;l++){const o=t[l],a=t.substring(l+1,t.length);o==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(l)}const i=e.length>0?[]:[t];let n=0;return e?.map(l=>{i?.push(t.substring(n,l)),n=l+1,l===e[e.length-1]&&l<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function qn(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),n=new Uint8Array(i),l=qo.inflate(n,{to:"string"});return JSON.parse(l)}let an=null;const $o={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class el{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,an)return an;an=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?$o[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Ot=null;const tl={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{Ot||(Ot=new el),n&&Ot.setApiUrl(n),Ot.setAppId(t),Ot.setTenantId(e),Ot.setEnv(i)},getDetail:t=>{if(!Ot)return;const e=Ot.getTenantId(),i=Ot.getAppId(),n=Ot.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>pt(void 0,void 0,void 0,function*(){var o,a;const d=yield l.json(),s=qn((o=d?.data)===null||o===void 0?void 0:o.data);if(s){const{$store:c}=yield Un(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=s,Object.assign(d.data.data,{__STORE__:c})}return d}))},getSxpDetailByPageId:t=>pt(void 0,void 0,void 0,function*(){if(!Ot)return;const e=Ot.getTenantId(),i=Ot.getAppId(),n=Ot.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>pt(void 0,void 0,void 0,function*(){var o;const a=yield l.json();return a.success?(o=a?.data)===null||o===void 0?void 0:o.map(s=>Object.assign(Object.assign({},s),{data:qn(s?.data)})):void 0}))}),getSxpRecommendVideoData:t=>pt(void 0,void 0,void 0,function*(){if(!Ot)return;const e=yield _o(Ot,t),i=Wi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");si(n)&&(n=Wi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const l=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return l?.data||null})};function $t(){return xi(lo)}function il(){return xi(oo)}const sn="feRealSessionIdKey",Yn=()=>{const t=Qo();return`${Date.now()}${t}`},nl=()=>{let t=ol();return t||(t=Yn(),window.localStorage.setItem(sn,t)),t},rn=()=>{const t=Yn();window.localStorage.setItem(sn,t)},ol=()=>window.localStorage.getItem(sn),Gn="SXP_FAKE_USER_ID",Zn="FAKE_USER_STATE",Kn="AGREE_POLICY",_n="SLIDE_SKIP_STATE",Jn="CCONTSENT_STATE",Qn="USER_CONSENT_RESULT",ll=()=>{let t=window.localStorage.getItem(Gn);return si(t)&&(t=Wi(36,62),window.localStorage.setItem(Gn,t)),t},al=()=>{const t=window.localStorage.getItem(Zn);return si(t)&&window.localStorage.setItem(Zn,"true"),si(t)},sl=()=>{const t=window.localStorage.getItem(_n);return si(t)},rl=()=>{window.localStorage.setItem(_n,"true")},dl=()=>{const t=window.localStorage.getItem(Jn);return si(t)&&window.localStorage.setItem(Jn,"true"),si(t)},$n=()=>window.localStorage.getItem(Qn)==="true",eo=()=>{window.localStorage.setItem(Qn,"true")};function kt(t,e){const{appDomain:i}=Xe();return fe(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const xt=new Go;var bt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(bt||(bt={}));const cl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:l,privacy_policy_title:o})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Xe(),s=fe(()=>{var h;const f=location.search.slice(1),m={};(h=di(f.replace(/\+/g,"%2B")))===null||h===void 0||h.map(y=>{const g=y.split("=")[0],x=y.split("=")[1];m[g]=x});for(const y in m)m[y]=m[y].replace(/%2B/g,"+");return m},[]),c=h=>{var f;return(f=s[h])!==null&&f!==void 0?f:null};ve(()=>{d?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const r=()=>{d?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),a?.(!0),window.localStorage.setItem(Kn,"yes")};return v.createElement("div",{className:"consent-bg"},v.createElement("div",{className:"consent"},v.createElement("div",{className:"consent-col"},v.createElement("div",{className:"consent-title"},i??"Privacy Policy"),v.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),v.createElement("div",{className:"consent-col"},v.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:r},"Agree"),v.createElement("a",{className:"consent-policy",target:"_blank",href:l?`https://${l}`:void 0},o??"More information"))))};var ul=je(cl);const to=Ti({rtcList:[],tagList:[]});var dn;(function(t){t[t.BFF=5]="BFF"})(dn||(dn={}));const zi="FOR U",vl=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:l,defaultSize:o,isPreview:a=!1,sxpParameter:d,appDomain:s,hashTagSize:c,loadingImage:r,isOpenHashTag:h=!1,enabledMetaConversionApi:f=!1,consentHeight:m,consentWidth:y,isOpenConsent:g=!1,isEditor:x=!1,utmParameter:p,channelQueryList:b,data:A,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:V})=>{var O,S,T,D,I;const[M,u]=Z([]),[B,W]=Z([]),[j,R]=Z(!0),[k,E]=Z({rtc:"",requestId:""}),N=ce(null),F=ce(!1),[U,G]=Z(()=>!!window.localStorage.getItem(Kn)),[$,ae]=Z(),[de,Q]=Z(),[Ee,Pe]=Z(h),[Ue,pe]=Z([]),[he,_e]=Z(0),[qe,Ye]=Z(!1),[Ie,tt]=Z(null),$e=ce(),et=ce(),vt=ce(),[It,Fe]=Z(zi),me=ce(-1),H=ce(null),[J,be]=Z(!1),[Y,ye]=Z((S=(O=A?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||S===void 0?void 0:S.globalConfig),[Se,te]=Z(),[z,We]=Z(!1),[nt,ht]=Z(),[Ge,it]=Z(),[Re,ot]=Z([]),[ct,gt]=Z(),[Rt,Bt]=Z(),Tt=fe(()=>Se??A,[Se,A]),wt=fe(()=>{var X,q,re,Oe;return(((Oe=(re=(q=(X=Y?.consent)===null||X===void 0?void 0:X[0])===null||q===void 0?void 0:q.item)===null||re===void 0?void 0:re.props)===null||Oe===void 0?void 0:Oe.privacy_necessity)&&!U&&!x||g)&&z},[U,Y,g,x,z]),qt=se(X=>{V?.(X),it(X)},[]),Ct=se(X=>{var q;const re=X?.recList;return(q=re?.map(we=>{var xe,Ve,ze,Ce,L,K;if(!((xe=we?.video)===null||xe===void 0)&&xe.bindProducts&&((ze=(Ve=we?.video)===null||Ve===void 0?void 0:Ve.bindProducts)===null||ze===void 0?void 0:ze.length)>0){const _=(K=(L=(Ce=we?.video)===null||Ce===void 0?void 0:Ce.bindProducts)===null||L===void 0?void 0:L.filter(oe=>!!oe?.bindCta))!==null&&K!==void 0?K:[];return Object.assign(Object.assign({},we),{video:Object.assign(Object.assign({},we?.video),{bindProducts:_})})}return we}))!==null&&q!==void 0?q:[]},[]);ve(()=>{let X;return Re.length>0&&(X=setInterval(()=>{const re=new Date,Oe=15*1e3;ot(we=>we.filter(xe=>re-xe.time<=Oe))},1e3)),()=>{clearInterval(X)}},[Re]),ve(()=>{const X=q=>{$e.current=q};return xt.on(bt.CHANGE_THEME_TAG,X),()=>{xt.off(bt.CHANGE_THEME_TAG,X)}},[]),ve(()=>{Pe(h)},[h]);const Ke=fe(()=>e?.find(X=>X.type===dn.BFF),[e]),ke=fe(()=>{var X;return((X=Ke?.headers)===null||X===void 0?void 0:X["x-app-id"])+ll()},[Ke]),ee=se((X,q)=>{var re,Oe;if(!Ke)return;const we=Ke.url;if(q?.query){const L=Wn.stringify(q.query);X=`${X}?${L}`}let xe=!1;const Ve={},ze=location.search.slice(1);(re=di(ze))===null||re===void 0||re.forEach(L=>{const K=L.split("=")[0],_=L.split("=")[1];Ve[K]=_});const Ce=Ve?.cl_source;return Ce&&(!((Oe=["40A-SPRK--DRESS_EYEWEAR-","41A-SPRK--MADRAGUE-","42A-SPRK--MOOD-","43A-SPRK--SUMMER-","44A-SPRK--DRESS_EYEWEAR-","45A-SPRK--MADRAGUE-","46A-SPRK--MOOD-","47A-SPRK--SUMMER-","48A-SPRK--DRESS_EYEWEAR-","49A-SPRK--MADRAGUE-","50A-SPRK--MOOD-","51A-SPRK--SUMMER-"])===null||Oe===void 0)&&Oe.includes(Ce))&&(xe=!0),q.type==="beacon"&&navigator.sendBeacon&&!xe?navigator.sendBeacon(`${we}/api/${X}`,new Blob([JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},q.body),Ke.headers),{"x-user-id":ke}))))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${we}/api/${X}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":ke},Ke.headers),method:q.method,body:JSON.stringify(xe?{body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},q.body),Ke.headers),{"x-user-id":ke}))))}:q.body)},xe&&{keepalive:!0})).then(L=>L.json()).catch(L=>Promise.reject(L))},[Ke,ke]),Je=se((X,q)=>{if(!Ke)return;const re=Ke.url;if(q?.query){const Oe=Wn.stringify(q.query);X=`${X}?${Oe}`}return window.fetch(`${re}/admin/${X}`,{headers:Object.assign({"Content-Type":"application/json"},Ke.headers),method:q.method,body:JSON.stringify(q.body)}).then(Oe=>Oe.json()).catch(Oe=>Promise.reject(Oe))},[Ke]),At=se(X=>pt(void 0,void 0,void 0,function*(){var q,re,Oe,we,xe,Ve,ze,Ce,L,K,_,oe,le,Ae;if(X=Object.assign(Object.assign({maxSize:(q=X?.maxSize)!==null&&q!==void 0?q:l,defaultSize:(re=X?.defaultSize)!==null&&re!==void 0?re:o,hashTag:X?.hashTag,traceInfo:X?.traceInfo,themeTag:X?.themeTag,pageNum:X?.pageNum,contentFilter:X?.contentFilter,productFilter:X?.productFilter},Rt&&{chatlabsId:Rt}),C&&{type:"story"}),Ge)X=Object.assign(Object.assign({},X),{channel:decodeURIComponent(Ge)});else if(i){const ue=(xe=(we=(Oe=di(i))===null||Oe===void 0?void 0:Oe.filter(ge=>{var ie,He;const Te=ge.split("=")[0];return(He=(ie=p?.channels)!==null&&ie!==void 0?ie:[])===null||He===void 0?void 0:He.includes(Te)}))===null||we===void 0?void 0:we.join("&"))!==null&&xe!==void 0?xe:"";ue&&(X=Object.assign(Object.assign({},X),{channel:decodeURIComponent(ue)}))}if(x){let ue=1;if(X=Object.assign(Object.assign(Object.assign({},X),{directPage:!0,level:1}),!i&&b&&b?.length>0&&{channel:b?.[0]}),!X?.channel||F.current)return;F.current=!0;let ge=[],ie=null;const He=Te=>pt(void 0,void 0,void 0,function*(){var Me,dt,at,lt,st,mt;if(Te.pageNum=ue,ie=yield Je?.("recommend/direct_page",{method:"POST",body:Te}),!ie?.success)return;R(!1),ge=ge.concat((lt=(at=(dt=(Me=ie?.data)===null||Me===void 0?void 0:Me.recList)===null||dt===void 0?void 0:dt.filter)===null||at===void 0?void 0:at.call(dt,Qe=>Qe?.product||Qe?.video))!==null&<!==void 0?lt:[]),M?.length===0&&(u(Ct(Object.assign(Object.assign({},ie?.data),{recList:ge}))),pe(Ct(Object.assign(Object.assign({},ie?.data),{recList:ge})))),((mt=(st=ie?.data)===null||st===void 0?void 0:st.recList)===null||mt===void 0?void 0:mt.some(Qe=>Qe?.product||Qe?.video))&&(ue=ue+1,yield He(Te))});return yield He(X),!X?.hashTag&&ie&&E({rtc:(Ve=ie?.data)===null||Ve===void 0?void 0:Ve.rtc,requestId:(ze=ie?.data)===null||ze===void 0?void 0:ze.requestId}),Object.assign(Object.assign({},ie?.data),{recList:ge})}Y?.enablePreview&&(X=Object.assign(Object.assign({},X),{directPage:!0,level:1,pageNum:(Ce=X?.pageNum)!==null&&Ce!==void 0?Ce:1}));const ne=yield ee?.("v1/recommend/list",{method:"POST",body:X});if(ne?.success){if(X?.hashTag||E({rtc:ne.data.rtc,requestId:ne.data.requestId}),Y?.enablePreview&&!x){let ue=[];return ue=ue.concat((oe=(_=(K=(L=ne?.data)===null||L===void 0?void 0:L.recList)===null||K===void 0?void 0:K.filter)===null||_===void 0?void 0:_.call(K,ie=>ie?.product||ie?.video))!==null&&oe!==void 0?oe:[]),((Ae=(le=ne?.data)===null||le===void 0?void 0:le.recList)===null||Ae===void 0?void 0:Ae.some(ie=>ie?.product||ie?.video))||be(!0),Object.assign(Object.assign({},ne.data),{recList:ue})}return ne?.data}}),[ee,i,l,o,b,Ge,Rt,Je]),ni=se(X=>pt(void 0,void 0,void 0,function*(){var q,re,Oe,we;if(M.length<=0)return;const xe=M?.[M?.length-1],Ve=yield At(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:de?.hashTag},((q=xe?.product)===null||q===void 0?void 0:q.itemId)&&{productFilter:[(re=xe?.product)===null||re===void 0?void 0:re.itemId]}),((Oe=xe?.video)===null||Oe===void 0?void 0:Oe.itemId)&&{contentFilter:[(we=xe?.video)===null||we===void 0?void 0:we.itemId]}),{themeTag:$e.current}),Y?.enablePreview&&!x&&{pageNum:X}));return u(M.concat(Ct(Ve))),pe(Ue.concat(Ct(Ve))),Ve}),[At,M,de,Ue]),oi=se((X,q)=>{var re,Oe,we,xe,Ve;let ze=!1;const Ce=(Oe=(re=A?.data)===null||re===void 0?void 0:re.sxpPageConf)===null||Oe===void 0?void 0:Oe.globalConfig;if(!((we=Ce?.session)===null||we===void 0)&&we.enable){const L=localStorage.getItem("sessionStartTime"),K=L?JSON.parse(L):new Date().getTime();Math.floor((new Date().getTime()-K)/1e3/60)>=((Ve=(xe=Ce?.session)===null||xe===void 0?void 0:xe.expires)!==null&&Ve!==void 0?Ve:30)&&(q?.("sessionTimeOut"),rn(),et.current=new Date,ze=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else X&&rn();return ze},[A]),Et=se(({userInfo:X,eventInfo:q,reportLayId:re=!0})=>{var Oe,we;if(!n||Y?.enablePreview)return;X||(X={});const xe=nl(),Ve={},ze=location.search.slice(1);(Oe=di(ze))===null||Oe===void 0||Oe.forEach(oe=>{const le=oe.split("=")[0],Ae=oe.split("=")[1];Ve[le]=Ae});const Ce=Ve?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:xe,rtc:k.rtc,requestId:k.requestId},{playbookType:ct}),nt&&re&&{layoutVariantId:nt}),q),q?.position&&Ge&&{position:Number(q?.position)+1+""}),Ce&&{clSource:Ce}),K=Object.entries(X).map(([oe,le])=>({name:oe,value:le})),_=Object.entries(L).map(([oe,le])=>le&&{name:oe,value:le}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",X),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),ee?.(`v2/cld/${(we=Ke?.headers)===null||we===void 0?void 0:we["x-app-id"]}/${q?.eventSubject}${Ce?`/${decodeURIComponent(Ce)}`:""}`,{method:"POST",body:{userInfo:K,eventInfo:_},type:"beacon"})},[ee,k,n,Y?.enablePreview,nt,Y,ct,Ke]),vi=se((X,q)=>{var re,Oe,we;const xe=fi(X),Ve=new URLSearchParams(window.location.search),ze=Ve?.get("fbclid"),Ce={event_source_url:(re=window?.location)===null||re===void 0?void 0:re.href,external_id:ke,client_user_agent:(we=(Oe=window?.navigator)===null||Oe===void 0?void 0:Oe.userAgent)!==null&&we!==void 0?we:"",fbc:ze?`fb.2.${new Date().getTime()}.${ze}`:"",fbp:Xn("_fbp")?`${Xn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},L=/\{\{(.*?)\}\}/g,K=_=>{if(_){if(_ instanceof Array)_?.map(oe=>K(oe));else for(const oe in _)if(Object.prototype.hasOwnProperty.call(_,oe)){const le=_?.[oe];if(typeof le=="object")K(le);else if(typeof le=="string"){const Ae=le?.match(L);Ae&&Ae.forEach(ne=>{var ue;const ge=ne.substring(2,ne.length-2);try{let ie=new Function("fix_par","product",`return ${ge}`)(Ce,q);ie?(ge?.indexOf("currency")!==-1&&ie?.indexOf("-")!==-1&&typeof ie=="string"&&(ie=(ue=ie?.split("-"))===null||ue===void 0?void 0:ue[0]),_[oe]=ie):delete _[oe]}catch(ie){delete _[oe],console.error("An error occurred:",ie?.message)}})}}}};return K(xe),xe},[ke]),li=se(({eventName:X,product:q})=>{var re,Oe,we,xe,Ve,ze;if(!n||Y?.enablePreview)return;const Ce=(re=Y?.pixel)===null||re===void 0?void 0:re[X];if(Ce?.event_name&&typeof window?.fbq=="function"){let oe=function(le,Ae,ne){const ue=new RegExp("([?&])"+Ae+"=.*?(&|$)","i"),ge=le.indexOf("?")!==-1?"&":"?";return le.match(ue)?le.replace(ue,"$1"+Ae+"="+ne+"$2"):le+ge+Ae+"="+ne};if(X==="PageView"&&Ce?.event_name==="PageView"){const le=window.location.href,Ae=oe(le,"timestamp",Date.now());history.pushState({path:Ae},"",Ae)}else{const le=vi(Ce);window?.fbq("track",Ce?.event_name,le),X==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view")}}else X==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const L=(Oe=Y?.tiktokPixel)===null||Oe===void 0?void 0:Oe[X];L?.event_name&&typeof window?.ttq=="function"&&window?.ttq.track(L?.event_name,L);const K=(we=Y?.snapchatPixel)===null||we===void 0?void 0:we[X];K?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",K?.event_name,K);const _=(xe=Y?.converApi)===null||xe===void 0?void 0:xe[X];if(f&&_){const oe=vi(_,q),le={},Ae=location.search.slice(1);(Ve=di(Ae))===null||Ve===void 0||Ve.forEach(ue=>{const ge=ue.split("=")[0],ie=ue.split("=")[1];le[ge]=ie});const ne=le?.cl_source;ee?.(`v2/fb/${(ze=Ke?.headers)===null||ze===void 0?void 0:ze["x-app-id"]}/${X}${ne?`/${decodeURIComponent(ne)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[ee,n,f,Y,Ke,vi]),pi=se(X=>pt(void 0,void 0,void 0,function*(){const q=yield ee?.("v1/recommend/like",{method:"POST",body:X});return q?.success}),[ee]),Qt=se(X=>pt(void 0,void 0,void 0,function*(){const q=yield ee?.("v1/recommend/unlike",{method:"POST",body:X});return q?.success}),[ee]),Xt=se(X=>pt(void 0,void 0,void 0,function*(){const q=yield ee?.("v1/customform",{method:"POST",body:X});return q?.success}),[ee]),zt=se(X=>pt(void 0,void 0,void 0,function*(){var q,re,Oe,we,xe,Ve,ze,Ce;const L=!!(!((Oe=(re=(q=X?.data)===null||q===void 0?void 0:q.sxpPageConf)===null||re===void 0?void 0:re.globalConfig)===null||Oe===void 0)&&Oe.isShowTag);if(!(!i||!L))try{const K=(Ve=(xe=(we=di(i))===null||we===void 0?void 0:we.filter(oe=>{var le,Ae;const ne=oe.split("=")[0];return(Ae=(le=p?.channels)!==null&&le!==void 0?le:[])===null||Ae===void 0?void 0:Ae.includes(ne)}))===null||xe===void 0?void 0:xe.join("&"))!==null&&Ve!==void 0?Ve:"",_=yield ee?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(K)}});W((Ce=(ze=_?.data)===null||ze===void 0?void 0:ze.tags)!==null&&Ce!==void 0?Ce:[])}catch(K){console.log("e",K)}}),[ee,i]),Pt=se((X,q,re,Oe)=>{var we,xe,Ve,ze,Ce,L,K,_,oe,le,Ae,ne,ue,ge,ie,He,Te,Me,dt,at,lt,st,mt,yt,Qe,St,Ne,Le,Dt,Mt,mi,ut,ai,en,tn,nn;const Zt=re?.bindCta,Ho=((we=q?.video)===null||we===void 0?void 0:we.bindProduct)||((xe=q?.video)===null||xe===void 0?void 0:xe.bindProducts)&&((ze=(Ve=q?.video)===null||Ve===void 0?void 0:Ve.bindProducts)===null||ze===void 0?void 0:ze.length)>0;let Fi="",on=null;qe?Fi="hashTagPage":!((Ce=q?.video)===null||Ce===void 0)&&Ce.url?(Fi="videoPage",on="video"):!((K=(L=q?.video)===null||L===void 0?void 0:L.imgUrls)===null||K===void 0)&&K.length&&(Fi="imagePage",on="image");const Vn=(ge=(ne=(_=re?.tags)!==null&&_!==void 0?_:(Ae=(le=(oe=q?.video)===null||oe===void 0?void 0:oe.bindProducts)===null||le===void 0?void 0:le[0])===null||Ae===void 0?void 0:Ae.tags)!==null&&ne!==void 0?ne:(ue=q?.video)===null||ue===void 0?void 0:ue.tags)!==null&&ge!==void 0?ge:(ie=q?.product)===null||ie===void 0?void 0:ie.tags;Et?.({eventInfo:Object.assign(Object.assign({},X),{ctaId:(He=Zt?.itemId)!==null&&He!==void 0?He:"",ctaName:(Te=Zt?.title)!==null&&Te!==void 0?Te:"",contentTags:Vn?JSON.stringify(Vn):"",position:Oe+"",contentId:(dt=(Me=q?.video)===null||Me===void 0?void 0:Me.itemId)!==null&&dt!==void 0?dt:"",productId:Ho?re?.itemId:"",traceInfo:(tn=(ut=(Ne=(mt=(at=Zt?.traceInfo)!==null&&at!==void 0?at:(st=(lt=q?.video)===null||lt===void 0?void 0:lt.bindCta)===null||st===void 0?void 0:st.traceInfo)!==null&&mt!==void 0?mt:(St=(Qe=(yt=q?.video)===null||yt===void 0?void 0:yt.bindProduct)===null||Qe===void 0?void 0:Qe.bindCta)===null||St===void 0?void 0:St.traceInfo)!==null&&Ne!==void 0?Ne:(mi=(Mt=(Dt=(Le=q?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Dt===void 0?void 0:Dt[0])===null||Mt===void 0?void 0:Mt.bindCta)===null||mi===void 0?void 0:mi.traceInfo)!==null&&ut!==void 0?ut:(en=(ai=q?.product)===null||ai===void 0?void 0:ai.bindCta)===null||en===void 0?void 0:en.traceInfo)!==null&&tn!==void 0?tn:"",fromKName:Fi,fromKPage:(nn=location?.href)!==null&&nn!==void 0?nn:"",contentFormat:on})})},[Et,qe]),Vi=se(()=>{var X,q,re;const Oe=location.search.slice(1),we={};(X=di(Oe.replace(/\+/g,"%2B")))===null||X===void 0||X.map(ze=>{const Ce=ze.split("=")[0],L=ze.split("=")[1];we[Ce]=L});for(const ze in we)we[ze]=we[ze].replace(/%2B/g,"+");const xe=ze=>{var Ce;return(Ce=we[ze])!==null&&Ce!==void 0?Ce:""},Ve=new Date;et.current=Ve,Et?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:xe("utm_source"),utmMedium:xe("utm_medium"),utmCampaign:xe("utm_campaign"),utmId:xe("utm_id"),utmContent:xe("utm_content"),enterTime:Math.floor(Ve/1e3)+"",requestId:null,enterUrl:(re=(q=window?.location)===null||q===void 0?void 0:q.href)!==null&&re!==void 0?re:""},reportLayId:!1})},[Et]),Ri=se(()=>pt(void 0,void 0,void 0,function*(){var X,q;const re=yield ee?.("v1/account",{method:"GET"});return Bt((X=re?.data)===null||X===void 0?void 0:X.chatLabsId),((q=re?.data)===null||q===void 0?void 0:q.consentResult)==="true"}),[ee]),Bi=se(X=>pt(void 0,void 0,void 0,function*(){const q=yield ee?.("v1/account/consent",{method:"POST",body:{consentResult:X}});return q?.success}),[ee]);ve(()=>{wt||Vi()},[wt]),ve(()=>{if(wt||a)return;R(!0);let X,q;At().then(re=>{var Oe,we,xe,Ve,ze,Ce,L,K,_,oe,le;if(re){const Ae=Ct(re);let ne,ue;if(re?.layoutVariantId){X=re?.layoutVariantId,ht(re?.layoutVariantId);const ge=(we=(Oe=re?.layoutVariantId)===null||Oe===void 0?void 0:Oe.split("-"))===null||we===void 0?void 0:we[1];ge&&(ne=w?.find(ie=>ie?.id===ge),ne?(te(ne),document.title=(xe=ne?.name)!==null&&xe!==void 0?xe:"home",ue=(ze=(Ve=ne?.data)===null||Ve===void 0?void 0:Ve.sxpPageConf)===null||ze===void 0?void 0:ze.globalConfig,ye(ue),P?.(ne?.data),!((_=(K=(L=(Ce=ue?.consent)===null||Ce===void 0?void 0:Ce[0])===null||L===void 0?void 0:L.item)===null||K===void 0?void 0:K.props)===null||_===void 0)&&_.privacy_necessity&&We(!0)):We(!0))}else We(!0);if(Ge||(ue?.playbook==="organic menu"||!ue&&Y?.playbook==="organic menu"?(gt("organicMenu"),Ae.unshift("organic menu"),q="organicMenu"):(gt("paidMedia"),q="paidMedia")),u(Ae),pe(Ae),zt(ne??Tt),Ge){const ge=Ae?.[0],ie=((oe=ge?.video)===null||oe===void 0?void 0:oe.traceInfo)||((le=ge?.product)===null||le===void 0?void 0:le.traceInfo)||"";Et?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ie,branchfeed:Ge},X&&{layoutVariantId:X})}),Et?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ie,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-vt?.current)/1e3)+""},X&&{layoutVariantId:X})})}}}).finally(()=>{Et({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},X&&{layoutVariantId:X}),q&&{playbookType:q})}),R(!1)})},[wt,Ge]),ve(()=>{a&&(R(!0),zt(A),At().then(X=>{if(X){const q=Ct(X);Y?.playbook==="organic menu"&&!Ge&&q.unshift("organic menu"),u(q),pe(q)}}).finally(()=>{R(!1)}))},[At,zt,Ge]);const $i=kt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return v.createElement(to.Provider,{value:{rtcList:M,setRtcList:u,mutateLike:pi,mutateUnlike:Qt,submitForm:Xt,popupDetailData:$,loadVideos:ni,setPopupDetailData:ae,getRecommendVideos:At,bffEventReport:Et,isPreview:a,loading:j,sxpParameter:d,waterFallData:de,setWaterFallData:Q,ctaEvent:Pt,swiperRef:N,openHashtag:Ee,setOpenHashtag:Pe,cacheRtcList:Ue,setCacheRtcList:pe,cacheActiveIndex:he,setCacheActiveIndex:_e,isFromHashtag:qe,setIsFromHashtag:Ye,appDomain:s,hashTagSize:c,loadingImage:r??$i,isOpenHashTag:h,tagList:B,setLoading:R,videoRef:Ie,setVideoRef:tt,bffFbReport:li,isAgreePolicy:U,setIsAgreePolicy:G,curTime:et,h5EnterLink:Vi,themeTag:$e,isShowConsent:wt,selectTag:It,setSelectTag:Fe,globalConfig:Y,popupCurTimeRef:H,checkCommodityIndexRef:me,isEditor:x,isNoMoreData:J,updateChannel:qt,channel:Ge,eventTimeList:Re,setEventTimeList:ot,multiPostTimeRef:vt,refreshFeSession:oi,getAccount:Ri,accountSonsent:Bi,isDiyH5:C}},wt?v.createElement(ul,Object.assign({},(I=(D=(T=Y?.consent)===null||T===void 0?void 0:T[0])===null||D===void 0?void 0:D.item)===null||I===void 0?void 0:I.props)):t({rtcList:M,mutateLike:pi,mutateUnlike:Qt,submitForm:Xt,tagList:B,pageData:Tt}))};var io=je(vl);function Xe(){return xi(to)}var no;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(no||(no={}));const oo=Ti({$store:{},options:[],configs:[]}),pl=({children:t,isSsr:e,enable:i})=>{const[n,l]=Z([]),{schema:o}=$t(),[a,d]=Z(o.__STORE__||{}),[s,c]=Z([]);ve(()=>{var f;e||Rn(s,o?.dataSource)||c((f=o?.dataSource)!==null&&f!==void 0?f:[])},[o?.dataSource,e]);const r=se(()=>pt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:m}=yield Un("",s);d(f),h(f,m)}),[s]),h=(f,m)=>{const y=[];Object.entries(f).forEach(([g,x])=>{Object.keys(x).forEach(p=>{const b={label:`${m[g]} - ${p}`,value:`{{ ${g}.${p} }}`};y.push(b)})}),l(y)};return ve(()=>{e||r()},[r,e,o]),i?v.createElement(oo.Provider,{value:{$store:o.__STORE__||a,options:n,configs:s}},t):t};var ml=je(pl);const Ui={id:Wi(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},cn={id:"",duration:0,name:"none"},lo=v.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Ui],redoStack:[],popup:cn,setPopup:()=>{}}),ao=ri(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:l=!0,utmVal:o},a)=>{const[d,s]=Z(null),[c,r]=Z(n||{pointData:[Ui],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[h,f]=Z([Ui]),[m,y]=Z([[Ui]]),[g,x]=Z([]),[p,b]=Z(cn);typeof window<"u"&&(window.sxpPopup=(V,O)=>{b(Object.assign(Object.assign(Object.assign({},cn),{id:V}),O))}),typeof window<"u"&&(window.getJointUtmLink=V=>(rl(),V?.indexOf("?")!==-1?V+(o?"&"+o:""):V+(o?"?"+o:""))),ve(()=>{y([c.pointData]),x([])},[c.type]);const A=se(V=>{const O=fi(c);O&&(O.dataSource=V,r?.(O))},[c]),[w,C]=Z();Ei(a,()=>({loadSchema(V){V&&(y([V.pointData]),r(V))},exportSchema(){return fi(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=fe(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return v.createElement(lo.Provider,{value:{resolver:e,currentNode:d,schema:c,setCurrentNode:s,setSchema:r,saveDataSource:A,prePiontData:h,setPrePiontData:f,pageInfoData:w,setPageInfoData:V=>C(Object.assign(Object.assign({},w),V)),undoStack:m,redoStack:g,setRedoStack:x,setUndoStack:y,getCurPageConf:P,popup:p,setPopup:b}},v.createElement(ml,{isSsr:i,enable:l},t))});var fl=Object.freeze({__proto__:null,EditorCore:ao}),hl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Al=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Nt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:l}=Xe(),o=se((s,c,r,h,f,m)=>{var y,g,x,p,b,A,w,C,P,V,O,S,T,D,I,M,u,B,W,j,R,k,E,N,F,U,G,$,ae,de,Q,Ee,Pe,Ue,pe,he,_e,qe;if(n?.findIndex(et=>et.target===s?.target)!==-1)return;s&&l?.(et=>[...et,{target:s?.target,time:new Date}]);let Ie="";e&&(!((g=(y=c?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0)&&g.length||!((x=c?.video)===null||x===void 0)&&x.bindProduct)?Ie="pdpPage":i?Ie="hashTagPage":!((p=c?.video)===null||p===void 0)&&p.url?Ie="videoPage":!((b=c?.video)===null||b===void 0)&&b.imgUrls&&(!((w=(A=c?.video)===null||A===void 0?void 0:A.imgUrls)===null||w===void 0)&&w.length)?Ie="imagePage":c?.product&&(Ie="productPage");const tt=(D=(S=(C=r?.tags)!==null&&C!==void 0?C:(O=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||O===void 0?void 0:O.tags)!==null&&S!==void 0?S:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&D!==void 0?D:(I=c?.product)===null||I===void 0?void 0:I.tags;let $e=null;!((M=c?.video)===null||M===void 0)&&M.url?$e="video":!((u=c?.video)===null||u===void 0)&&u.imgUrls&&(!((W=(B=c?.video)===null||B===void 0?void 0:B.imgUrls)===null||W===void 0)&&W.length)&&($e="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(j=r?.itemId)!==null&&j!==void 0?j:"",productName:(R=r?.title)!==null&&R!==void 0?R:"",price:r?.price?r?.price+"":"0",productCollection:(k=r?.collection)!==null&&k!==void 0?k:"",fromKName:Ie,fromKPage:location?.href,contentTags:tt?JSON.stringify(tt):"",position:f+"",contentId:(N=(E=c?.video)===null||E===void 0?void 0:E.itemId)!==null&&N!==void 0?N:"",ctatId:(F=h?.itemId)!==null&&F!==void 0?F:"",traceInfo:(qe=(pe=(Pe=(ae=(U=m??r?.traceInfo)!==null&&U!==void 0?U:($=(G=c?.video)===null||G===void 0?void 0:G.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&ae!==void 0?ae:(Ee=(Q=(de=c?.video)===null||de===void 0?void 0:de.bindProducts)===null||Q===void 0?void 0:Q[0])===null||Ee===void 0?void 0:Ee.traceInfo)!==null&&Pe!==void 0?Pe:(Ue=c?.product)===null||Ue===void 0?void 0:Ue.traceInfo)!==null&&pe!==void 0?pe:(_e=(he=c?.video)===null||he===void 0?void 0:he.bindCta)===null||_e===void 0?void 0:_e.traceInfo)!==null&&qe!==void 0?qe:""},$e&&{contentFormat:$e})})},[t,e,i,n]),a=se((s,c,r,h,f)=>{var m,y,g,x,p,b,A,w,C,P,V,O,S,T;let D="";e&&(!((y=(m=s?.video)===null||m===void 0?void 0:m.bindProducts)===null||y===void 0)&&y.length||!((g=s?.video)===null||g===void 0)&&g.bindProduct)?D="pdpPage":s?.product&&(D="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:D,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:f+"",contentId:(x=s?.video)===null||x===void 0?void 0:x.itemId,ctatId:r?.itemId,traceInfo:(T=(O=(w=(p=c?.traceInfo)!==null&&p!==void 0?p:(A=(b=s?.video)===null||b===void 0?void 0:b.bindProduct)===null||A===void 0?void 0:A.traceInfo)!==null&&w!==void 0?w:(V=(P=(C=s?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||V===void 0?void 0:V.traceInfo)!==null&&O!==void 0?O:(S=s?.product)===null||S===void 0?void 0:S.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-h)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),d=se((s,c,r,h)=>{c&&c===zi&&t?.({eventInfo:{lastFeed:s,themeTags:r?`['${r}']`:"",hashTags:h?`['${h}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:a,backMainFeed:d}}const bl=({layout:t,columns:e,onChange:i})=>v.createElement(v.Fragment,null,e?.map((n,l)=>v.createElement("div",{key:l,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&v.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&v.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var gl=je(bl);const yl=t=>{var e,i,{columns:n,style:l,title:o,textStyle:a,submitBgColor:d,submitColor:s,submitText:c,layoutType:r="inline",isExternalLink:h,isPopup:f,onClick:m,onClose:y,submitButtonStyle:g}=t,x=rt(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:p,popupDetailData:b}=Xe(),{jumpToWeb:A}=Nt(),[w,C]=Z(!1),[P,V]=Z({}),[O,S]=Z(0),T=fe(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),D=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),I=fe(()=>fi(n)||T,[n,T]),M=se(B=>{const{name:W,value:j}=B.target;V(Object.assign(Object.assign({},P),{[W]:j}))},[P]),u=Si(B=>pt(void 0,void 0,void 0,function*(){var W,j,R,k,E;const N=P;if(!N)return;const F=(j=(W=Object.keys(N))===null||W===void 0?void 0:W.map(G=>{var $;return{name:G,value:($=N[G])!==null&&$!==void 0?$:""}}))===null||j===void 0?void 0:j.filter(G=>G?.value);if(!F||!F?.length)return;C(!0);const U=yield p?.({attributes:F});if(C(!1),U){if(h){const G=b,$=(R=G?.video)===null||R===void 0?void 0:R.bindProduct,ae=(E=(k=G?.video)===null||k===void 0?void 0:k.bindProduct)===null||E===void 0?void 0:E.bindCta,de=b?.index;A(B,G,$,ae,de)}f||y?.(),m?.()}}),1e3);return ve(()=>{const B=()=>{var W,j;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((j=document?.body)===null||j===void 0?void 0:j.clientHeight))<D?S(50):S(0)};return window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B)}},[]),v.createElement("div",{className:"pb-appoint-form"},v.createElement("div",{className:`pb-appoint-form-title ${Be(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:De(o,a)}}),v.createElement("div",Object.assign({className:Be(Object.assign(Object.assign({},l),{marginTop:O}))},x),v.createElement("div",{className:"pb-appoint-form-container"},v.createElement(gl,{columns:I,layout:r,onChange:M}))),v.createElement("div",{className:"pb-appoint-form-btn-wrapper"},v.createElement("button",{"aria-label":c,onClick:u,className:"pb-appoint-form-btn",style:Object.assign({color:s,background:d},g),dangerouslySetInnerHTML:{__html:De(w?"loading...":c,g)}})))};var wl=je(yl);function ft(t,e){return t.extend=e,t}const Sl=ft(wl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Al,bindableProps:[],interactionRender:hl},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var xl=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function so(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function un(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:so(e[i])&&so(t[i])&&Object.keys(e[i]).length>0&&un(t[i],e[i])})}const ro={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 Vt(){const t=typeof document<"u"?document:{};return un(t,ro),t}const Tl={document:ro,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Lt(){const t=typeof window<"u"?window:{};return un(t,Tl),t}function ei(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function El(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function hi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Ut(){return Date.now()}function Il(t){const e=Lt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function kl(t,e){e===void 0&&(e="x");const i=Lt();let n,l,o;const a=Il(t);return i.WebKitCSSMatrix?(l=a.transform||a.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(d=>d.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(l==="none"?"":l)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?l=o.m41:n.length===16?l=parseFloat(n[12]):l=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?l=o.m42:n.length===16?l=parseFloat(n[13]):l=parseFloat(n[5])),l||0}function Hi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Cl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Ft(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Cl(n)){const l=Object.keys(Object(n)).filter(o=>e.indexOf(o)<0);for(let o=0,a=l.length;o<a;o+=1){const d=l[o],s=Object.getOwnPropertyDescriptor(n,d);s!==void 0&&s.enumerable&&(Hi(t[d])&&Hi(n[d])?n[d].__swiper__?t[d]=n[d]:Ft(t[d],n[d]):!Hi(t[d])&&Hi(n[d])?(t[d]={},n[d].__swiper__?t[d]=n[d]:Ft(t[d],n[d])):t[d]=n[d])}}}return t}function Xi(t,e,i){t.style.setProperty(e,i)}function co(t){let{swiper:e,targetPosition:i,side:n}=t;const l=Lt(),o=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const c=i>o?"next":"prev",r=(f,m)=>c==="next"&&f>=m||c==="prev"&&f<=m,h=()=>{d=new Date().getTime(),a===null&&(a=d);const f=Math.max(Math.min((d-a)/s,1),0),m=.5-Math.cos(f*Math.PI)/2;let y=o+m*(i-o);if(r(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),r(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(h)};h()}function Yt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function qi(t){try{console.warn(t);return}catch{}}function Ai(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ei(e)),i}function uo(t){const e=Lt(),i=Vt(),n=t.getBoundingClientRect(),l=i.body,o=t.clientTop||l.clientTop||0,a=t.clientLeft||l.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-o,left:n.left+s-a}}function Pl(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Ol(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ti(t,e){return Lt().getComputedStyle(t,null).getPropertyValue(e)}function Ii(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Yi(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function vn(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function pn(t,e,i){const n=Lt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ze(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let mn;function Ll(){const t=Lt(),e=Vt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function vo(){return mn||(mn=Ll()),mn}let fn;function jl(t){let{userAgent:e}=t===void 0?{}:t;const i=vo(),n=Lt(),l=n.navigator.platform,o=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let r=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!r&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let y=l==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!r&&y&&i.touch&&g.indexOf(`${d}x${s}`)>=0&&(r=o.match(/(Version)\/([\d.]+)/),r||(r=[0,1,"13_0_0"]),y=!1),c&&!m&&(a.os="android",a.android=!0),(r||f||h)&&(a.os="ios",a.ios=!0),a}function po(t){return t===void 0&&(t={}),fn||(fn=jl(t)),fn}let hn;function Ml(){const t=Lt(),e=po();let i=!1;function n(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(n()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[s,c]=d.split("Version/")[1].split(" ")[0].split(".").map(r=>Number(r));i=s<16||s===16&&c<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n(),a=o||l&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:a,isWebView:l}}function Nl(){return hn||(hn=Ml()),hn}function Dl(t){let{swiper:e,on:i,emit:n}=t;const l=Lt();let o=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(h=>{a=l.requestAnimationFrame(()=>{const{width:f,height:m}=e;let y=f,g=m;h.forEach(x=>{let{contentBoxSize:p,contentRect:b,target:A}=x;A&&A!==e.el||(y=b?b.width:(p[0]||p).inlineSize,g=b?b.height:(p[0]||p).blockSize)}),(y!==f||g!==m)&&d()})}),o.observe(e.el))},c=()=>{a&&l.cancelAnimationFrame(a),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){s();return}l.addEventListener("resize",d),l.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),l.removeEventListener("resize",d),l.removeEventListener("orientationchange",r)})}function Vl(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=[],a=Lt(),d=function(r,h){h===void 0&&(h={});const f=a.MutationObserver||a.WebkitMutationObserver,m=new f(y=>{if(e.__preventObserver__)return;if(y.length===1){l("observerUpdate",y[0]);return}const g=function(){l("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(g):a.setTimeout(g,0)});m.observe(r,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:typeof h.childList>"u"?!0:h.childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),o.push(m)},s=()=>{if(e.params.observer){if(e.params.observeParents){const r=Yi(e.hostEl);for(let h=0;h<r.length;h+=1)d(r[h])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},c=()=>{o.forEach(r=>{r.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Rl={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const l=i?"unshift":"push";return t.split(" ").forEach(o=>{n.eventsListeners[o]||(n.eventsListeners[o]=[]),n.eventsListeners[o][l](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function l(){n.off(t,l),l.__emitterProxy&&delete l.__emitterProxy;for(var o=arguments.length,a=new Array(o),d=0;d<o;d++)a[d]=arguments[d];e.apply(n,a)}return l.__emitterProxy=e,n.on(t,l,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((l,o)=>{(l===e||l.__emitterProxy&&l.__emitterProxy===e)&&i.eventsListeners[n].splice(o,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var l=arguments.length,o=new Array(l),a=0;a<l;a++)o[a]=arguments[a];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),n=t):(e=o[0].events,i=o[0].data,n=o[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(n,i)})}),t}};function Bl(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ti(n,"padding-left")||0,10)-parseInt(ti(n,"padding-right")||0,10),i=i-parseInt(ti(n,"padding-top")||0,10)-parseInt(ti(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Fl(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:n,slidesEl:l,size:o,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Yt(l,`.${t.params.slideClass}, swiper-slide`),h=s?t.virtual.slides.length:r.length;let f=[];const m=[],y=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,b=t.slidesGrid.length;let A=i.spaceBetween,w=-g,C=0,P=0;if(typeof o>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*o:typeof A=="string"&&(A=parseFloat(A)),t.virtualSize=-A,r.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Xi(n,"--swiper-centered-offset-before",""),Xi(n,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(r):t.grid&&t.grid.unsetSlides();let O;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<h;T+=1){O=0;let D;if(r[T]&&(D=r[T]),V&&t.grid.updateSlide(T,D,r),!(r[T]&&ti(D,"display")==="none")){if(i.slidesPerView==="auto"){S&&(r[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(D),M=D.style.transform,u=D.style.webkitTransform;if(M&&(D.style.transform="none"),u&&(D.style.webkitTransform="none"),i.roundLengths)O=t.isHorizontal()?pn(D,"width",!0):pn(D,"height",!0);else{const B=e(I,"width"),W=e(I,"padding-left"),j=e(I,"padding-right"),R=e(I,"margin-left"),k=e(I,"margin-right"),E=I.getPropertyValue("box-sizing");if(E&&E==="border-box")O=B+R+k;else{const{clientWidth:N,offsetWidth:F}=D;O=B+W+j+R+k+(F-N)}}M&&(D.style.transform=M),u&&(D.style.webkitTransform=u),i.roundLengths&&(O=Math.floor(O))}else O=(o-(i.slidesPerView-1)*A)/i.slidesPerView,i.roundLengths&&(O=Math.floor(O)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${O}px`);r[T]&&(r[T].swiperSlideSize=O),y.push(O),i.centeredSlides?(w=w+O/2+C/2+A,C===0&&T!==0&&(w=w-o/2-A),T===0&&(w=w-o/2-A),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),m.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+O+A),t.virtualSize+=O+A,C=O,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+x,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+A}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+A}px`),V&&t.grid.updateWrapperSize(O,f),!i.centeredSlides){const T=[];for(let D=0;D<f.length;D+=1){let I=f[D];i.roundLengths&&(I=Math.floor(I)),f[D]<=t.virtualSize-o&&T.push(I)}f=T,Math.floor(t.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-o)}if(s&&i.loop){const T=y[0]+A;if(i.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let M=0;M<D;M+=1)f.push(f[f.length-1]+I)}for(let D=0;D<t.virtual.slidesBefore+t.virtual.slidesAfter;D+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),m.push(m[m.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),A!==0){const T=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");r.filter((D,I)=>!i.cssMode||i.loop?!0:I!==r.length-1).forEach(D=>{D.style[T]=`${A}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(I=>{T+=I+(A||0)}),T-=A;const D=T-o;f=f.map(I=>I<=0?-g:I>D?D+x:I)}if(i.centerInsufficientSlides){let T=0;y.forEach(I=>{T+=I+(A||0)}),T-=A;const D=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+D<o){const I=(o-T-D)/2;f.forEach((M,u)=>{f[u]=M-I}),m.forEach((M,u)=>{m[u]=M+I})}}if(Object.assign(t,{slides:r,snapGrid:f,slidesGrid:m,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Xi(n,"--swiper-centered-offset-before",`${-f[0]}px`),Xi(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+D)}if(h!==c&&t.emit("slidesLengthChange"),f.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,D=t.el.classList.contains(T);h<=i.maxBackfaceHiddenSlides?D||t.el.classList.add(T):D&&t.el.classList.remove(T)}}function Wl(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let l=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>n?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const d=e.activeIndex+o;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const d=i[o].offsetHeight;l=d>l?d:l}(l||l===0)&&(e.wrapperEl.style.height=`${l}px`)}function zl(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const mo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Ul(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:l,snapGrid:o}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;l&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let s=0;s<n.length;s+=1){const c=n[s];let r=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(r-=n[0].swiperSlideOffset);const h=(a+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),f=(a-o[0]+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),m=-(a-r),y=m+e.slidesSizesGrid[s],g=m>=0&&m<=e.size-e.slidesSizesGrid[s],x=m>=0&&m<e.size-1||y>1&&y<=e.size||m<=0&&y>=e.size;x&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s)),mo(c,x,i.slideVisibleClass),mo(c,g,i.slideFullyVisibleClass),c.progress=l?-h:h,c.originalProgress=l?-f:f}}function Hl(t){const e=this;if(typeof t>"u"){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:l,isBeginning:o,isEnd:a,progressLoop:d}=e;const s=o,c=a;if(n===0)l=0,o=!0,a=!0;else{l=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;o=r||l<=0,a=h||l>=1,r&&(l=0),h&&(l=1)}if(i.loop){const r=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[r],m=e.slidesGrid[h],y=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?d=(g-f)/y:d=(g+y-m)/y,d>1&&(d-=1)}Object.assign(e,{progress:l,progressLoop:d,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!o||c&&!a)&&e.emit("fromEdge"),e.emit("progress",l)}const An=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Xl(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:l}=t,o=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=h=>Yt(n,`.${i.slideClass}${h}, swiper-slide${h}`)[0];let s,c,r;if(o)if(i.loop){let h=l-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),s=d(`[data-swiper-slide-index="${h}"]`)}else s=d(`[data-swiper-slide-index="${l}"]`);else a?(s=e.filter(h=>h.column===l)[0],r=e.filter(h=>h.column===l+1)[0],c=e.filter(h=>h.column===l-1)[0]):s=e[l];s&&(a||(r=Ol(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Pl(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(h=>{An(h,h===s,i.slideActiveClass),An(h,h===r,i.slideNextClass),An(h,h===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Gi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let l=n.querySelector(`.${t.params.lazyPreloaderClass}`);!l&&t.isElement&&(n.shadowRoot?l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),l&&l.remove())})),l&&l.remove()}},bn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},gn=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),l=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=l,d=[a-e];d.push(...Array.from({length:e}).map((s,c)=>a+n+c)),t.slides.forEach((s,c)=>{d.includes(s.column)&&bn(t,c)});return}const o=l+n-1;if(t.params.rewind||t.params.loop)for(let a=l-e;a<=o+e;a+=1){const d=(a%i+i)%i;(d<l||d>o)&&bn(t,d)}else for(let a=Math.max(l-e,0);a<=Math.min(o+e,i-1);a+=1)a!==l&&(a>o||a<l)&&bn(t,a)};function ql(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let l;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?n>=e[o]&&n<e[o+1]-(e[o+1]-e[o])/2?l=o:n>=e[o]&&n<e[o+1]&&(l=o+1):n>=e[o]&&(l=o);return i.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function Yl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:l,activeIndex:o,realIndex:a,snapIndex:d}=e;let s=t,c;const r=m=>{let y=m-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof s>"u"&&(s=ql(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const m=Math.min(l.slidesPerGroupSkip,s);c=m+Math.floor((s-m)/l.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===o&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const h=e.grid&&l.grid&&l.grid.rows>1;let f;if(e.virtual&&l.virtual.enabled&&l.loop)f=r(s);else if(h){const m=e.slides.filter(g=>g.column===s)[0];let y=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(m),0)),f=Math.floor(y/l.grid.rows)}else if(e.slides[s]){const m=e.slides[s].getAttribute("data-swiper-slide-index");m?f=parseInt(m,10):f=s}else f=s;Object.assign(e,{previousSnapIndex:d,snapIndex:c,previousRealIndex:a,realIndex:f,previousIndex:o,activeIndex:s}),e.initialized&&gn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Gl(t,e){const i=this,n=i.params;let l=t.closest(`.${n.slideClass}, swiper-slide`);!l&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!l&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(l=d)});let o=!1,a;if(l){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===l){o=!0,a=d;break}}if(l&&o)i.clickedSlide=l,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Zl={updateSize:Bl,updateSlides:Fl,updateAutoHeight:Wl,updateSlidesOffset:zl,updateSlidesProgress:Ul,updateProgress:Hl,updateSlidesClasses:Xl,updateActiveIndex:Yl,updateClickedSlide:Gl};function Kl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:l,wrapperEl:o}=e;if(i.virtualTranslate)return n?-l:l;if(i.cssMode)return l;let a=kl(o,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function _l(t,e){const i=this,{rtlTranslate:n,params:l,wrapperEl:o,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,l.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,l.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:l.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${d}px, ${s}px, ${c}px)`);let r;const h=i.maxTranslate()-i.minTranslate();h===0?r=0:r=(t-i.minTranslate())/h,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Jl(){return-this.snapGrid[0]}function Ql(){return-this.snapGrid[this.snapGrid.length-1]}function $l(t,e,i,n,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const o=this,{params:a,wrapperEl:d}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const s=o.minTranslate(),c=o.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,o.updateProgress(r),a.cssMode){const h=o.isHorizontal();if(e===0)d[h?"scrollLeft":"scrollTop"]=-r;else{if(!o.support.smoothScroll)return co({swiper:o,targetPosition:-r,side:h?"left":"top"}),!0;d.scrollTo({[h?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,l),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,l),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var ea={getTranslate:Kl,setTranslate:_l,minTranslate:Jl,maxTranslate:Ql,translateTo:$l};function ta(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function fo(t){let{swiper:e,runCallbacks:i,direction:n,step:l}=t;const{activeIndex:o,previousIndex:a}=e;let d=n;if(d||(o>a?d="next":o<a?d="prev":d="reset"),e.emit(`transition${l}`),i&&o!==a){if(d==="reset"){e.emit(`slideResetTransition${l}`);return}e.emit(`slideChangeTransition${l}`),d==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`)}}function ia(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),fo({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function na(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),fo({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var oa={setTransition:ta,transitionStart:ia,transitionEnd:na};function la(t,e,i,n,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:s,slidesGrid:c,previousIndex:r,activeIndex:h,rtlTranslate:f,wrapperEl:m,enabled:y}=o;if(!y&&!n&&!l||o.destroyed||o.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,a);let x=g+Math.floor((a-g)/o.params.slidesPerGroup);x>=s.length&&(x=s.length-1);const p=-s[x];if(d.normalizeSlideIndex)for(let A=0;A<c.length;A+=1){const w=-Math.floor(p*100),C=Math.floor(c[A]*100),P=Math.floor(c[A+1]*100);typeof c[A+1]<"u"?w>=C&&w<P-(P-C)/2?a=A:w>=C&&w<P&&(a=A+1):w>=C&&(a=A)}if(o.initialized&&a!==h&&(!o.allowSlideNext&&(f?p>o.translate&&p>o.minTranslate():p<o.translate&&p<o.minTranslate())||!o.allowSlidePrev&&p>o.translate&&p>o.maxTranslate()&&(h||0)!==a))return!1;a!==(r||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(p);let b;if(a>h?b="next":a<h?b="prev":b="reset",f&&-p===o.translate||!f&&p===o.translate)return o.updateActiveIndex(a),d.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),d.effect!=="slide"&&o.setTranslate(p),b!=="reset"&&(o.transitionStart(i,b),o.transitionEnd(i,b)),!1;if(d.cssMode){const A=o.isHorizontal(),w=f?p:-p;if(e===0){const C=o.virtual&&o.params.virtual.enabled;C&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),C&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[A?"scrollLeft":"scrollTop"]=w})):m[A?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return co({swiper:o,targetPosition:w,side:A?"left":"top"}),!0;m.scrollTo({[A?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(p),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,b),e===0?o.transitionEnd(i,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function aa(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;if(l.destroyed)return;typeof e>"u"&&(e=l.params.speed);const o=l.grid&&l.params.grid&&l.params.grid.rows>1;let a=t;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)a=a+l.virtual.slidesBefore;else{let d;if(o){const f=a*l.params.grid.rows;d=l.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else d=l.getSlideIndexByData(a);const s=o?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:c}=l.params;let r=l.params.slidesPerView;r==="auto"?r=l.slidesPerViewDynamic():(r=Math.ceil(parseFloat(l.params.slidesPerView,10)),c&&r%2===0&&(r=r+1));let h=s-d<r;if(c&&(h=h||d<Math.ceil(r/2)),n&&c&&l.params.slidesPerView!=="auto"&&!o&&(h=!1),h){const f=c?d<l.activeIndex?"prev":"next":d-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?d+1:d-s+1,slideRealIndex:f==="next"?l.realIndex:void 0})}if(o){const f=a*l.params.grid.rows;a=l.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=l.getSlideIndexByData(a)}return requestAnimationFrame(()=>{l.slideTo(a,e,i,n)}),l}function sa(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:l,params:o,animating:a}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<o.slidesPerGroupSkip?1:d,c=n.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function ra(t,e,i){e===void 0&&(e=!0);const n=this,{params:l,snapGrid:o,slidesGrid:a,rtlTranslate:d,enabled:s,animating:c}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const r=n.virtual&&l.virtual.enabled;if(l.loop){if(c&&!r&&l.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const h=d?n.translate:-n.translate;function f(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const m=f(h),y=o.map(p=>f(p));let g=o[y.indexOf(m)-1];if(typeof g>"u"&&l.cssMode){let p;o.forEach((b,A)=>{m>=b&&(p=A)}),typeof p<"u"&&(g=o[p>0?p-1:p])}let x=0;if(typeof g<"u"&&(x=a.indexOf(g),x<0&&(x=n.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(x=x-n.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),l.rewind&&n.isBeginning){const p=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(p,t,e,i)}else if(l.loop&&n.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(x,t,e,i)}),!0;return n.slideTo(x,t,e,i)}function da(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function ca(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const l=this;if(l.destroyed)return;typeof t>"u"&&(t=l.params.speed);let o=l.activeIndex;const a=Math.min(l.params.slidesPerGroupSkip,o),d=a+Math.floor((o-a)/l.params.slidesPerGroup),s=l.rtlTranslate?l.translate:-l.translate;if(s>=l.snapGrid[d]){const c=l.snapGrid[d],r=l.snapGrid[d+1];s-c>(r-c)*n&&(o+=l.params.slidesPerGroup)}else{const c=l.snapGrid[d-1],r=l.snapGrid[d];s-c<=(r-c)*n&&(o-=l.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,l.slidesGrid.length-1),l.slideTo(o,t,e,i)}function ua(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let l=t.clickedIndex,o;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?l<t.loopedSlides-n/2||l>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),l=t.getSlideIndex(Yt(i,`${a}[data-swiper-slide-index="${o}"]`)[0]),hi(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-n?(t.loopFix(),l=t.getSlideIndex(Yt(i,`${a}[data-swiper-slide-index="${o}"]`)[0]),hi(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}var va={slideTo:la,slideToLoop:aa,slideNext:sa,slidePrev:ra,slideReset:da,slideToClosest:ca,slideToClickedSlide:ua};function pa(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const l=()=>{Yt(n,`.${i.slideClass}, swiper-slide`).forEach((h,f)=>{h.setAttribute("data-swiper-slide-index",f)})},o=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(o?i.grid.rows:1),d=e.slides.length%a!==0,s=o&&e.slides.length%i.grid.rows!==0,c=r=>{for(let h=0;h<r;h+=1){const f=e.isElement?Ai("swiper-slide",[i.slideBlankClass]):Ai("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(d){if(i.loopAddBlankSlides){const r=a-e.slides.length%a;c(r),e.recalcSlides(),e.updateSlides()}else qi("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)");l()}else if(s){if(i.loopAddBlankSlides){const r=i.grid.rows-e.slides.length%i.grid.rows;c(r),e.recalcSlides(),e.updateSlides()}else qi("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)");l()}else l();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ma(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:l,activeSlideIndex:o,byController:a,byMousewheel:d}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:c,allowSlidePrev:r,allowSlideNext:h,slidesEl:f,params:m}=s,{centeredSlides:y}=m;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):m.centeredSlides&&s.snapIndex<m.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=r,s.allowSlideNext=h,s.emit("loopFix");return}let g=m.slidesPerView;g==="auto"?g=s.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),y&&g%2===0&&(g=g+1));const x=m.slidesPerGroupAuto?g:m.slidesPerGroup;let p=x;p%x!==0&&(p+=x-p%x),p+=m.loopAdditionalSlides,s.loopedSlides=p;const b=s.grid&&m.grid&&m.grid.rows>1;c.length<g+p?qi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&m.grid.fill==="row"&&qi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const A=[],w=[];let C=s.activeIndex;typeof o>"u"?o=s.getSlideIndex(c.filter(M=>M.classList.contains(m.slideActiveClass))[0]):C=o;const P=n==="next"||!n,V=n==="prev"||!n;let O=0,S=0;const T=b?Math.ceil(c.length/m.grid.rows):c.length,I=(b?c[o].column:o)+(y&&typeof l>"u"?-g/2+.5:0);if(I<p){O=Math.max(p-I,x);for(let M=0;M<p-I;M+=1){const u=M-Math.floor(M/T)*T;if(b){const B=T-u-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===B&&A.push(W)}else A.push(T-u-1)}}else if(I+g>T-p){S=Math.max(I-(T-p*2),x);for(let M=0;M<S;M+=1){const u=M-Math.floor(M/T)*T;b?c.forEach((B,W)=>{B.column===u&&w.push(W)}):w.push(u)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),V&&A.forEach(M=>{c[M].swiperLoopMoveDOM=!0,f.prepend(c[M]),c[M].swiperLoopMoveDOM=!1}),P&&w.forEach(M=>{c[M].swiperLoopMoveDOM=!0,f.append(c[M]),c[M].swiperLoopMoveDOM=!1}),s.recalcSlides(),m.slidesPerView==="auto"?s.updateSlides():b&&(A.length>0&&V||w.length>0&&P)&&s.slides.forEach((M,u)=>{s.grid.updateSlide(u,M,s.slides)}),m.watchSlidesProgress&&s.updateSlidesOffset(),i){if(A.length>0&&V){if(typeof e>"u"){const M=s.slidesGrid[C],B=s.slidesGrid[C+O]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C+Math.ceil(O),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else if(l){const M=b?A.length/m.grid.rows:A.length;s.slideTo(s.activeIndex+M,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&P)if(typeof e>"u"){const M=s.slidesGrid[C],B=s.slidesGrid[C-S]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C-S,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else{const M=b?w.length/m.grid.rows:w.length;s.slideTo(s.activeIndex-M,0,!1,!0)}}if(s.allowSlidePrev=r,s.allowSlideNext=h,s.controller&&s.controller.control&&!a){const M={slideRealIndex:e,direction:n,setTranslate:l,activeSlideIndex:o,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(u=>{!u.destroyed&&u.params.loop&&u.loopFix({...M,slideTo:u.params.slidesPerView===m.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...M,slideTo:s.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}s.emit("loopFix")}function fa(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(l=>{const o=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;n[o]=l}),t.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),n.forEach(l=>{i.append(l)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ha={loopCreate:pa,loopFix:ma,loopDestroy:fa};function Aa(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function ba(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var ga={setGrabCursor:Aa,unsetGrabCursor:ba};function ya(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Vt()||n===Lt())return null;n.assignedSlot&&(n=n.assignedSlot);const l=n.closest(t);return!l&&!n.getRootNode?null:l||i(n.getRootNode().host)}return i(e)}function ho(t,e,i){const n=Lt(),{params:l}=t,o=l.edgeSwipeDetection,a=l.edgeSwipeThreshold;return o&&(i<=a||i>=n.innerWidth-a)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function wa(t){const e=this,i=Vt();let n=t;n.originalEvent&&(n=n.originalEvent);const l=e.touchEventsData;if(n.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==n.pointerId)return;l.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(l.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){ho(e,n,n.targetTouches[0].pageX);return}const{params:o,touches:a,enabled:d}=e;if(!d||!o.simulateTouch&&n.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let s=n.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||l.isTouched&&l.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const h=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(f?ya(h,s):s.closest(h))){e.allowClick=!0;return}if(o.swipeHandler&&!s.closest(o.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const m=a.currentX,y=a.currentY;if(!ho(e,n,m))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=y,l.touchStartTime=Ut(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(l.allowThresholdMove=!1);let g=!0;s.matches(l.focusableElements)&&(g=!1,s.nodeName==="SELECT"&&(l.isTouched=!1)),i.activeElement&&i.activeElement.matches(l.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const x=g&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||x)&&!s.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Sa(t){const e=Vt(),i=this,n=i.touchEventsData,{params:l,touches:o,rtlTranslate:a,enabled:d}=i;if(!d||!l.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let c;if(s.type==="touchmove"){if(c=[...s.changedTouches].filter(P=>P.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const r=c.pageX,h=c.pageY;if(s.preventedByNestedSwiper){o.startX=r,o.startY=h;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:r,startY:h,currentX:r,currentY:h}),n.touchStartTime=Ut());return}if(l.touchReleaseOnEdges&&!l.loop){if(i.isVertical()){if(h<o.startY&&i.translate<=i.maxTranslate()||h>o.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<o.startX&&i.translate<=i.maxTranslate()||r>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=r,o.currentY=h;const f=o.currentX-o.startX,m=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:f*f+m*m>=25&&(P=Math.atan2(Math.abs(m),Math.abs(f))*180/Math.PI,n.isScrolling=i.isHorizontal()?P>l.touchAngle:90-P>l.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!l.cssMode&&s.cancelable&&s.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&s.stopPropagation();let y=i.isHorizontal()?f:m,g=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;l.oneWayMovement&&(y=Math.abs(y)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),o.diff=y,y*=l.touchRatio,a&&(y=-y,g=-g);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const p=i.params.loop&&!l.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(p&&b&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}n.allowMomentumBounce=!1,l.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let A;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&x!==i.touchesDirection&&p&&b&&Math.abs(y)>=1){Object.assign(o,{startX:r,startY:h,currentX:r,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let w=!0,C=l.resistanceRatio;if(l.touchReleaseOnEdges&&(C=0),y>0?(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,l.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**C))):y<0&&(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(l.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,l.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**C))),w&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),l.threshold>0)if(Math.abs(y)>l.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{n.currentTranslate=n.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function xa(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let l;if(n.type==="touchend"||n.type==="touchcancel"){if(l=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!l||l.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;l=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:s,slidesGrid:c,enabled:r}=e;if(!r||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=Ut(),f=h-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),f<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Ut(),hi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let m;if(a.followFinger?m=s?e.translate:-e.translate:m=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const y=m>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const P=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[C+P]<"u"?(y||m>=c[C]&&m<c[C+P])&&(g=C,x=c[C+P]-c[C]):(y||m>=c[C])&&(g=C,x=c[c.length-1]-c[c.length-2])}let p=null,b=null;a.rewind&&(e.isBeginning?b=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const A=(m-c[g])/x,w=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(A>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?p:g+w):e.slideTo(g)),e.swipeDirection==="prev"&&(A>1-a.longSwipesRatio?e.slideTo(g+w):b!==null&&A<0&&Math.abs(A)>a.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(g+w):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:g+w),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function Ao(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:l,snapGrid:o}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=l,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function Ta(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ea(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let l;const o=t.maxTranslate()-t.minTranslate();o===0?l=0:l=(t.translate-t.minTranslate())/o,l!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Ia(t){const e=this;Gi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ka(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const bo=(t,e)=>{const i=Vt(),{params:n,el:l,wrapperEl:o,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!l||typeof l=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),l[s]("touchstart",t.onTouchStart,{passive:!1}),l[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:d}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&l[s]("click",t.onClick,!0),n.cssMode&&o[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ao,!0):t[c]("observerUpdate",Ao,!0),l[s]("load",t.onLoad,{capture:!0}))};function Ca(){const t=this,{params:e}=t;t.onTouchStart=wa.bind(t),t.onTouchMove=Sa.bind(t),t.onTouchEnd=xa.bind(t),t.onDocumentTouchStart=ka.bind(t),e.cssMode&&(t.onScroll=Ea.bind(t)),t.onClick=Ta.bind(t),t.onLoad=Ia.bind(t),bo(t,"on")}function Pa(){bo(this,"off")}var Oa={attachEvents:Ca,detachEvents:Pa};const go=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function La(){const t=this,{realIndex:e,initialized:i,params:n,el:l}=t,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in o?o[a]:void 0)||t.originalParams,c=go(t,n),r=go(t,s),h=t.params.grabCursor,f=s.grabCursor,m=n.enabled;c&&!r?(l.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(l.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&l.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),h&&!f?t.unsetGrabCursor():!h&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof s[A]>"u")return;const w=n[A]&&n[A].enabled,C=s[A]&&s[A].enabled;w&&!C&&t[A].disable(),!w&&C&&t[A].enable()});const y=s.direction&&s.direction!==n.direction,g=n.loop&&(s.slidesPerView!==n.slidesPerView||y),x=n.loop;y&&i&&t.changeDirection(),Ft(t.params,s);const p=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!p?t.disable():!m&&p&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",s),i&&(g?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&b?(t.loopCreate(e),t.updateSlides()):x&&!b&&t.loopDestroy()),t.emit("breakpoint",s)}function ja(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const l=Lt(),o=e==="window"?l.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:o*s,point:d}}return{value:d,point:d}});a.sort((d,s)=>parseInt(d.value,10)-parseInt(s.value,10));for(let d=0;d<a.length;d+=1){const{point:s,value:c}=a[d];e==="window"?l.matchMedia(`(min-width: ${c}px)`).matches&&(n=s):c<=i.clientWidth&&(n=s)}return n||"max"}var Ma={setBreakpoint:La,getBreakpoint:ja};function Na(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(l=>{n[l]&&i.push(e+l)}):typeof n=="string"&&i.push(e+n)}),i}function Da(){const t=this,{classNames:e,params:i,rtl:n,el:l,device:o}=t,a=Na(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),l.classList.add(...e),t.emitContainerClasses()}function Va(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Ra={addClasses:Da,removeClasses:Va};function Ba(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const l=t.slides.length-1,o=t.slidesGrid[l]+t.slidesSizesGrid[l]+n*2;t.isLocked=t.size>o}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Fa={checkOverflow:Ba},yn={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 Wa(t,e){return function(n){n===void 0&&(n={});const l=Object.keys(n)[0],o=n[l];if(typeof o!="object"||o===null){Ft(e,n);return}if(t[l]===!0&&(t[l]={enabled:!0}),l==="navigation"&&t[l]&&t[l].enabled&&!t[l].prevEl&&!t[l].nextEl&&(t[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&t[l]&&t[l].enabled&&!t[l].el&&(t[l].auto=!0),!(l in t&&"enabled"in o)){Ft(e,n);return}typeof t[l]=="object"&&!("enabled"in t[l])&&(t[l].enabled=!0),t[l]||(t[l]={enabled:!1}),Ft(e,n)}}const wn={eventsEmitter:Rl,update:Zl,translate:ea,transition:oa,slide:va,loop:ha,grabCursor:ga,events:Oa,breakpoints:Ma,checkOverflow:Fa,classes:Ra},Sn={};let xn=class Jt{constructor(){let e,i;for(var n=arguments.length,l=new Array(n),o=0;o<n;o++)l[o]=arguments[o];l.length===1&&l[0].constructor&&Object.prototype.toString.call(l[0]).slice(8,-1)==="Object"?i=l[0]:[e,i]=l,i||(i={}),i=Ft({},i),e&&!i.el&&(i.el=e);const a=Vt();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const r=[];return a.querySelectorAll(i.el).forEach(h=>{const f=Ft({},i,{el:h});r.push(new Jt(f))}),r}const d=this;d.__swiper__=!0,d.support=vo(),d.device=po({userAgent:i.userAgent}),d.browser=Nl(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const s={};d.modules.forEach(r=>{r({params:i,swiper:d,extendParams:Wa(i,s),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const c=Ft({},yn,s);return d.params=Ft({},c,Sn,i),d.originalParams=Ft({},d.params),d.passedParams=Ft({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(r=>{d.on(r,d.params.on[r])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.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:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,l=Yt(i,`.${n.slideClass}, swiper-slide`),o=Ii(l[0]);return Ii(e)-o}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Yt(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const l=n.minTranslate(),a=(n.maxTranslate()-l)*e+l;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const l=e.getSlideClasses(n);i.push({slideEl:n,classNames:l}),e.emit("_slideClass",n,l)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:l,slides:o,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let h=o[c]?Math.ceil(o[c].swiperSlideSize):0,f;for(let m=c+1;m<o.length;m+=1)o[m]&&!f&&(h+=Math.ceil(o[m].swiperSlideSize),r+=1,h>s&&(f=!0));for(let m=c-1;m>=0;m-=1)o[m]&&!f&&(h+=o[m].swiperSlideSize,r+=1,h>s&&(f=!0))}else if(e==="current")for(let h=c+1;h<o.length;h+=1)(i?a[h]+d[h]-a[c]<s:a[h]-a[c]<s)&&(r+=1);else for(let h=c-1;h>=0;h-=1)a[c]-a[h]<s&&(r+=1);return r}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Gi(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function l(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)l(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(a.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||l()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,l=n.params.direction;return e||(e=l==="horizontal"?"vertical":"horizontal"),e===l||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${l}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(o=>{e==="vertical"?o.style.width="":o.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const l=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(l()):Yt(n,l())[0];return!a&&i.params.createElements&&(a=Ai("div",i.params.wrapperClass),n.append(a),Yt(n,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||ti(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ti(n,"direction")==="rtl"),wrongRTL:ti(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const l=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&l.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(o=>{o.complete?Gi(i,o):o.addEventListener("load",a=>{Gi(i,a.target)})}),gn(i),i.initialized=!0,gn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:l,el:o,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),l.loop&&n.loopDestroy(),i&&(n.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),El(n)),n.destroyed=!0),null}static extendDefaults(e){Ft(Sn,e)}static get extendedDefaults(){return Sn}static get defaults(){return yn}static installModule(e){Jt.prototype.__modules__||(Jt.prototype.__modules__=[]);const i=Jt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Jt.installModule(i)),Jt):(Jt.installModule(e),Jt)}};Object.keys(wn).forEach(t=>{Object.keys(wn[t]).forEach(e=>{xn.prototype[e]=wn[t][e]})}),xn.use([Dl,Vl]);const yo=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ci(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function bi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:ci(e[n])&&ci(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:bi(t[n],e[n]):t[n]=e[n]})}function wo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function So(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function xo(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function To(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function za(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ua(t){let{swiper:e,slides:i,passedParams:n,changedParams:l,nextEl:o,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=l.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:r,pagination:h,navigation:f,scrollbar:m,virtual:y,thumbs:g}=e;let x,p,b,A,w,C,P,V;l.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(x=!0),l.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(p=!0),l.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&h&&!h.el&&(b=!0),l.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&m&&!m.el&&(A=!0),l.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||o)&&(r.navigation||r.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const O=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),r[S].prevEl=void 0,r[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),r[S].el=void 0,e[S].el=void 0))};l.includes("loop")&&e.isElement&&(r.loop&&!n.loop?C=!0:!r.loop&&n.loop?P=!0:V=!0),c.forEach(S=>{if(ci(r[S])&&ci(n[S]))Object.assign(r[S],n[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in n[S]&&!n[S].enabled&&O(S);else{const T=n[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&O(S):r[S]=n[S]}}),c.includes("controller")&&!p&&e.controller&&e.controller.control&&r.controller&&r.controller.control&&(e.controller.control=r.controller.control),l.includes("children")&&i&&y&&r.virtual.enabled?(y.slides=i,y.update(!0)):l.includes("virtual")&&y&&r.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),l.includes("children")&&i&&r.loop&&(V=!0),x&&g.init()&&g.update(!0),p&&(e.controller.control=r.controller.control),b&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(r.pagination.el=s),h.init(),h.render(),h.update()),A&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(r.scrollbar.el=d),m.init(),m.updateSize(),m.setTranslate()),w&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=e.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),e.el.appendChild(o)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),o&&(r.navigation.nextEl=o),a&&(r.navigation.prevEl=a),f.init(),f.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),l.includes("direction")&&e.changeDirection(n.direction,!1),(C||V)&&e.loopDestroy(),(P||V)&&e.loopCreate(),e.update()}function Ha(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},l={};bi(i,yn),i._emitClasses=!0,i.init=!1;const o={},a=yo.map(s=>s.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?ci(t[s])?(i[s]={},l[s]={},bi(i[s],t[s]),bi(l[s],t[s])):(i[s]=t[s],l[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:o[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:l,rest:o,events:n}}function Xa(t,e){let{el:i,nextEl:n,prevEl:l,paginationEl:o,scrollbarEl:a,swiper:d}=t;wo(e)&&n&&l&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=l,d.originalParams.navigation.prevEl=l),So(e)&&o&&(d.params.pagination.el=o,d.originalParams.pagination.el=o),xo(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function qa(t,e,i,n,l){const o=[];if(!e)return o;const a=s=>{o.indexOf(s)<0&&o.push(s)};if(i&&n){const s=n.map(l),c=i.map(l);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return yo.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(ci(t[s])&&ci(e[s])){const c=Object.keys(t[s]),r=Object.keys(e[s]);c.length!==r.length?a(s):(c.forEach(h=>{t[s][h]!==e[s][h]&&a(s)}),r.forEach(h=>{t[s][h]!==e[s][h]&&a(s)}))}else t[s]!==e[s]&&a(s)}),o}const Ya=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Zi(){return Zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Zi.apply(this,arguments)}function Eo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Io(t){const e=[];return v.Children.toArray(t).forEach(i=>{Eo(i)?e.push(i):i.props&&i.props.children&&Io(i.props.children).forEach(n=>e.push(n))}),e}function Ga(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return v.Children.toArray(t).forEach(n=>{if(Eo(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const l=Io(n.props.children);l.length>0?l.forEach(o=>e.push(o)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Za(t,e,i){if(!i)return null;const n=r=>{let h=r;return r<0?h=e.length+r:h>=e.length&&(h=h-e.length),h},l=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:a}=i,d=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,c=[];for(let r=d;r<s;r+=1)r>=o&&r<=a&&c.push(e[n(r)]);return c.map((r,h)=>v.cloneElement(r,{swiper:t,style:l,key:r.props.virtualIndex||r.key||`slide-${h}`}))}function ki(t,e){return typeof window>"u"?ve(t,e):Yo(t,e)}const Tn=Ti(null),Ci=()=>xi(Tn),Ka=Ti(null),Kt=ri(function(t,e){let{className:i,tag:n="div",wrapperTag:l="div",children:o,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=Z("swiper"),[h,f]=Z(null),[m,y]=Z(!1),g=ce(!1),x=ce(null),p=ce(null),b=ce(null),A=ce(null),w=ce(null),C=ce(null),P=ce(null),V=ce(null),{params:O,passedParams:S,rest:T,events:D}=Ha(d),{slides:I,slots:M}=Ga(o),u=()=>{y(!m)};Object.assign(O.on,{_containerClasses(k,E){r(E)}});const B=()=>{Object.assign(O.on,D),s=!0;const k={...O};if(delete k.wrapperClass,p.current=new xn(k),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=I;const E={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};bi(p.current.params.virtual,E),bi(p.current.originalParams.virtual,E)}};x.current||B(),p.current&&p.current.on("_beforeBreakpoint",u);const W=()=>{s||!D||!p.current||Object.keys(D).forEach(k=>{p.current.on(k,D[k])})},j=()=>{!D||!p.current||Object.keys(D).forEach(k=>{p.current.off(k,D[k])})};ve(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",u)}),ve(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),ki(()=>{if(e&&(e.current=x.current),!!x.current)return p.current.destroyed&&B(),Xa({el:x.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:V.current,swiper:p.current},O),a&&!p.current.destroyed&&a(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),ki(()=>{W();const k=qa(S,b.current,I,A.current,E=>E.key);return b.current=S,A.current=I,k.length&&p.current&&!p.current.destroyed&&Ua({swiper:p.current,slides:I,passedParams:S,changedParams:k,nextEl:w.current,prevEl:C.current,scrollbarEl:V.current,paginationEl:P.current}),()=>{j()}}),ki(()=>{Ya(p.current)},[h]);function R(){return O.virtual?Za(p.current,I,h):I.map((k,E)=>v.cloneElement(k,{swiper:p.current,swiperSlideIndex:E}))}return v.createElement(n,Zi({ref:x,className:To(`${c}${i?` ${i}`:""}`)},T),v.createElement(Ka.Provider,{value:p.current},M["container-start"],v.createElement(l,{className:za(O.wrapperClass)},M["wrapper-start"],R(),M["wrapper-end"]),wo(O)&&v.createElement(v.Fragment,null,v.createElement("div",{ref:C,className:"swiper-button-prev"}),v.createElement("div",{ref:w,className:"swiper-button-next"})),xo(O)&&v.createElement("div",{ref:V,className:"swiper-scrollbar"}),So(O)&&v.createElement("div",{ref:P,className:"swiper-pagination"}),M["container-end"]))});Kt.displayName="Swiper";const Wt=ri(function(t,e){let{tag:i="div",children:n,className:l="",swiper:o,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const h=ce(null),[f,m]=Z("swiper-slide"),[y,g]=Z(!1);function x(w,C,P){C===h.current&&m(P)}ki(()=>{if(typeof c<"u"&&(h.current.swiperSlideIndex=c),e&&(e.current=h.current),!(!h.current||!o)){if(o.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return o.on("_slideClass",x),()=>{o&&o.off("_slideClass",x)}}}),ki(()=>{o&&h.current&&!o.destroyed&&m(o.getSlideClasses(h.current))},[o]);const p={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof n=="function"?n(p):n,A=()=>{g(!0)};return v.createElement(i,Zi({ref:h,className:To(`${f}${l?` ${l}`:""}`),"data-swiper-slide-index":s,onLoad:A},r),a&&v.createElement(Tn.Provider,{value:p},v.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),d&&!y&&v.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&v.createElement(Tn.Provider,{value:p},b(),d&&!y&&v.createElement("div",{className:"swiper-lazy-preloader"})))});Wt.displayName="SwiperSlide";function En(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Vt(),a=Lt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function d(r){if(!e.enabled)return;const{rtlTranslate:h}=e;let f=r;f.originalEvent&&(f=f.originalEvent);const m=f.keyCode||f.charCode,y=e.params.keyboard.pageUpDown,g=y&&m===33,x=y&&m===34,p=m===37,b=m===39,A=m===38,w=m===40;if(!e.allowSlideNext&&(e.isHorizontal()&&b||e.isVertical()&&w||x)||!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&A||g))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(g||x||p||b||A||w)){let C=!1;if(Yi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Yi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,V=P.clientWidth,O=P.clientHeight,S=a.innerWidth,T=a.innerHeight,D=uo(P);h&&(D.left-=P.scrollLeft);const I=[[D.left,D.top],[D.left+V,D.top],[D.left,D.top+O],[D.left+V,D.top+O]];for(let M=0;M<I.length;M+=1){const u=I[M];if(u[0]>=0&&u[0]<=S&&u[1]>=0&&u[1]<=T){if(u[0]===0&&u[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((g||x||p||b)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((x||b)&&!h||(g||p)&&h)&&e.slideNext(),((g||p)&&!h||(x||b)&&h)&&e.slidePrev()):((g||x||A||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(x||w)&&e.slideNext(),(g||A)&&e.slidePrev()),l("keyPress",m)}}function s(){e.keyboard.enabled||(o.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(o.removeEventListener("keydown",d),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function Ki(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Lt();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,d=Ut(),s;const c=[];function r(A){let V=0,O=0,S=0,T=0;return"detail"in A&&(O=A.detail),"wheelDelta"in A&&(O=-A.wheelDelta/120),"wheelDeltaY"in A&&(O=-A.wheelDeltaY/120),"wheelDeltaX"in A&&(V=-A.wheelDeltaX/120),"axis"in A&&A.axis===A.HORIZONTAL_AXIS&&(V=O,O=0),S=V*10,T=O*10,"deltaY"in A&&(T=A.deltaY),"deltaX"in A&&(S=A.deltaX),A.shiftKey&&!S&&(S=T,T=0),(S||T)&&A.deltaMode&&(A.deltaMode===1?(S*=40,T*=40):(S*=800,T*=800)),S&&!V&&(V=S<1?-1:1),T&&!O&&(O=T<1?-1:1),{spinX:V,spinY:O,pixelX:S,pixelY:T}}function h(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(A){return e.params.mousewheel.thresholdDelta&&A.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Ut()-d<e.params.mousewheel.thresholdTime?!1:A.delta>=6&&Ut()-d<60?!0:(A.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),l("scroll",A.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),l("scroll",A.raw)),d=new o.Date().getTime(),!1)}function y(A){const w=e.params.mousewheel;if(A.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function g(A){let w=A,C=!0;if(!e.enabled||A.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let V=e.el;e.params.mousewheel.eventsTarget!=="container"&&(V=document.querySelector(e.params.mousewheel.eventsTarget));const O=V&&V.contains(w.target);if(!e.mouseEntered&&!O&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let S=0;const T=e.rtlTranslate?-1:1,D=r(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(D.pixelX)>Math.abs(D.pixelY))S=-D.pixelX*T;else return!0;else if(Math.abs(D.pixelY)>Math.abs(D.pixelX))S=-D.pixelY;else return!0;else S=Math.abs(D.pixelX)>Math.abs(D.pixelY)?-D.pixelX*T:-D.pixelY;if(S===0)return!0;P.invert&&(S=-S);let I=e.getTranslate()+S*P.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),C=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:Ut(),delta:Math.abs(S),direction:Math.sign(S),raw:A};c.length>=2&&c.shift();const u=c.length?c[c.length-1]:void 0;if(c.push(M),u?(M.direction!==u.direction||M.delta>u.delta||M.time>u.time+150)&&m(M):m(M),y(M))return!0}else{const M={time:Ut(),delta:Math.abs(S),direction:Math.sign(S)},u=s&&M.time<s.time+500&&M.delta<=s.delta&&M.direction===s.direction;if(!u){s=void 0;let B=e.getTranslate()+S*P.sensitivity;const W=e.isBeginning,j=e.isEnd;if(B>=e.minTranslate()&&(B=e.minTranslate()),B<=e.maxTranslate()&&(B=e.maxTranslate()),e.setTransition(0),e.setTranslate(B),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!j&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const R=c.length?c[c.length-1]:void 0,k=c[0];if(c.push(M),R&&(M.delta>R.delta||M.direction!==R.direction))c.splice(0);else if(c.length>=15&&M.time-k.time<500&&k.delta-M.delta>=1&&M.delta<=6){const E=S>0?.8:.2;s=M,c.splice(0),a=hi(()=>{e.slideToClosest(e.params.speed,!0,void 0,E)},0)}a||(a=hi(()=>{s=M,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(u||l("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(B===e.minTranslate()||B===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function x(A){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[A]("mouseenter",h),w[A]("mouseleave",f),w[A]("wheel",g)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&p()}),n("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:p,disable:b})}function In(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(l=>{if(!i[l]&&i.auto===!0){let o=Yt(t.el,`.${n[l]}`)[0];o||(o=Ai("div",n[l]),o.className=n[l],t.el.append(o)),i[l]=o,e[l]=o}}),i}function kn(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function o(y){let g;return y&&typeof y=="string"&&e.isElement&&(g=e.el.querySelector(y),g)?g:(y&&(typeof y=="string"&&(g=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&g&&g.length>1&&e.el.querySelectorAll(y).length===1?g=e.el.querySelector(y):g&&g.length===1&&(g=g[0])),y&&!g?y:g)}function a(y,g){const x=e.params.navigation;y=Ze(y),y.forEach(p=>{p&&(p.classList[g?"add":"remove"](...x.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](x.lockClass))})}function d(){const{nextEl:y,prevEl:g}=e.navigation;if(e.params.loop){a(g,!1),a(y,!1);return}a(g,e.isBeginning&&!e.params.rewind),a(y,e.isEnd&&!e.params.rewind)}function s(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function r(){const y=e.params.navigation;if(e.params.navigation=In(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let g=o(y.nextEl),x=o(y.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:x}),g=Ze(g),x=Ze(x);const p=(b,A)=>{b&&b.addEventListener("click",A==="next"?c:s),!e.enabled&&b&&b.classList.add(...y.lockClass.split(" "))};g.forEach(b=>p(b,"next")),x.forEach(b=>p(b,"prev"))}function h(){let{nextEl:y,prevEl:g}=e.navigation;y=Ze(y),g=Ze(g);const x=(p,b)=>{p.removeEventListener("click",b==="next"?c:s),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(p=>x(p,"next")),g.forEach(p=>x(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?m():(r(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{nextEl:y,prevEl:g}=e.navigation;if(y=Ze(y),g=Ze(g),e.enabled){d();return}[...y,...g].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),n("click",(y,g)=>{let{nextEl:x,prevEl:p}=e.navigation;x=Ze(x),p=Ze(p);const b=g.target;let A=p.includes(b)||x.includes(b);if(e.isElement&&!A){const w=g.path||g.composedPath&&g.composedPath();w&&(A=w.find(C=>x.includes(C)||p.includes(C)))}if(e.params.navigation.hideOnClick&&!A){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let w;x.length?w=x[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(w=p[0].classList.contains(e.params.navigation.hiddenClass)),l(w===!0?"navigationShow":"navigationHide"),[...x,...p].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),r(),d()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:f,disable:m,update:d,init:r,destroy:h})}function _t(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pi(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let a,d=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(p,b){const{bulletActiveClass:A}=e.params.pagination;p&&(p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${A}-${b}`),p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${A}-${b}-${b}`)))}function r(p){const b=p.target.closest(_t(e.params.pagination.bulletClass));if(!b)return;p.preventDefault();const A=Ii(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===A)return;e.slideToLoop(A)}else e.slideTo(A)}function h(){const p=e.rtl,b=e.params.pagination;if(s())return;let A=e.pagination.el;A=Ze(A);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,V=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let S,T,D;if(b.dynamicBullets&&(a=pn(O[0],e.isHorizontal()?"width":"height",!0),A.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&C!==void 0&&(d+=w-(C||0),d>b.dynamicMainBullets-1?d=b.dynamicMainBullets-1:d<0&&(d=0)),S=Math.max(w-d,0),T=S+(Math.min(O.length,b.dynamicMainBullets)-1),D=(T+S)/2),O.forEach(I=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(u=>`${b.bulletActiveClass}${u}`)].map(u=>typeof u=="string"&&u.includes(" ")?u.split(" "):u).flat();I.classList.remove(...M)}),A.length>1)O.forEach(I=>{const M=Ii(I);M===w?I.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),b.dynamicBullets&&(M>=S&&M<=T&&I.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),M===S&&c(I,"prev"),M===T&&c(I,"next"))});else{const I=O[w];if(I&&I.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&O.forEach((M,u)=>{M.setAttribute("part",u===w?"bullet-active":"bullet")}),b.dynamicBullets){const M=O[S],u=O[T];for(let B=S;B<=T;B+=1)O[B]&&O[B].classList.add(...`${b.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(u,"next")}}if(b.dynamicBullets){const I=Math.min(O.length,b.dynamicMainBullets+4),M=(a*I-a)/2-D*a,u=p?"right":"left";O.forEach(B=>{B.style[e.isHorizontal()?u:"top"]=`${M}px`})}}A.forEach((O,S)=>{if(b.type==="fraction"&&(O.querySelectorAll(_t(b.currentClass)).forEach(T=>{T.textContent=b.formatFractionCurrent(w+1)}),O.querySelectorAll(_t(b.totalClass)).forEach(T=>{T.textContent=b.formatFractionTotal(V)})),b.type==="progressbar"){let T;b.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const D=(w+1)/V;let I=1,M=1;T==="horizontal"?I=D:M=D,O.querySelectorAll(_t(b.progressbarFillClass)).forEach(u=>{u.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${M})`,u.style.transitionDuration=`${e.params.speed}ms`})}b.type==="custom"&&b.renderCustom?(O.innerHTML=b.renderCustom(e,w+1,V),S===0&&l("paginationRender",O)):(S===0&&l("paginationRender",O),l("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](b.lockClass)})}function f(){const p=e.params.pagination;if(s())return;const b=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let A=e.pagination.el;A=Ze(A);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>b&&(C=b);for(let P=0;P<C;P+=1)p.renderBullet?w+=p.renderBullet.call(e,P,p.bulletClass):w+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],A.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(_t(p.bulletClass)))}),p.type!=="custom"&&l("paginationRender",A[0])}function m(){e.params.pagination=In(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let b;typeof p.el=="string"&&e.isElement&&(b=e.el.querySelector(p.el)),!b&&typeof p.el=="string"&&(b=[...document.querySelectorAll(p.el)]),b||(b=p.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(p.el)],b.length>1&&(b=b.filter(A=>Yi(A,".swiper")[0]===e.el)[0])),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=Ze(b),b.forEach(A=>{p.type==="bullets"&&p.clickable&&A.classList.add(...(p.clickableClass||"").split(" ")),A.classList.add(p.modifierClass+p.type),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(A.classList.add(`${p.modifierClass}${p.type}-dynamic`),d=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&A.classList.add(p.progressbarOppositeClass),p.clickable&&A.addEventListener("click",r),e.enabled||A.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(s())return;let b=e.pagination.el;b&&(b=Ze(b),b.forEach(A=>{A.classList.remove(p.hiddenClass),A.classList.remove(p.modifierClass+p.type),A.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(A.classList.remove(...(p.clickableClass||"").split(" ")),A.removeEventListener("click",r))})),e.pagination.bullets&&e.pagination.bullets.forEach(A=>A.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:b}=e.pagination;b=Ze(b),b.forEach(A=>{A.classList.remove(p.horizontalClass,p.verticalClass),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?x():(m(),f(),h())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),n("snapIndexChange",()=>{h()}),n("snapGridLengthChange",()=>{f(),h()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{h()}),n("click",(p,b)=>{const A=b.target,w=Ze(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!A.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&A===e.navigation.nextEl||e.navigation.prevEl&&A===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);l(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),m(),f(),h()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:g,disable:x,render:f,update:h,init:m,destroy:y})}function _a(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Vt();let a=!1,d=null,s=null,c,r,h,f;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:M}=e,{dragEl:u,el:B}=I,W=e.params.scrollbar,j=e.params.loop?e.progressLoop:e.progress;let R=r,k=(h-r)*j;M?(k=-k,k>0?(R=r-k,k=0):-k+r>h&&(R=h+k)):k<0?(R=r+k,k=0):k+r>h&&(R=h-k),e.isHorizontal()?(u.style.transform=`translate3d(${k}px, 0, 0)`,u.style.width=`${R}px`):(u.style.transform=`translate3d(0px, ${k}px, 0)`,u.style.height=`${R}px`),W.hide&&(clearTimeout(d),B.style.opacity=1,d=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function y(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:M,el:u}=I;M.style.width="",M.style.height="",h=e.isHorizontal()?u.offsetWidth:u.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?r=h*f:r=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${r}px`:M.style.height=`${r}px`,f>=1?u.style.display="none":u.style.display="",e.params.scrollbar.hide&&(u.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(I){return e.isHorizontal()?I.clientX:I.clientY}function p(I){const{scrollbar:M,rtlTranslate:u}=e,{el:B}=M;let W;W=(x(I)-uo(B)[e.isHorizontal()?"left":"top"]-(c!==null?c:r/2))/(h-r),W=Math.max(Math.min(W,1),0),u&&(W=1-W);const j=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(j),e.setTranslate(j),e.updateActiveIndex(),e.updateSlidesClasses()}function b(I){const M=e.params.scrollbar,{scrollbar:u,wrapperEl:B}=e,{el:W,dragEl:j}=u;a=!0,c=I.target===j?x(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),B.style.transitionDuration="100ms",j.style.transitionDuration="100ms",p(I),clearTimeout(s),W.style.transitionDuration="0ms",M.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),l("scrollbarDragStart",I)}function A(I){const{scrollbar:M,wrapperEl:u}=e,{el:B,dragEl:W}=M;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,p(I),u.style.transitionDuration="0ms",B.style.transitionDuration="0ms",W.style.transitionDuration="0ms",l("scrollbarDragMove",I))}function w(I){const M=e.params.scrollbar,{scrollbar:u,wrapperEl:B}=e,{el:W}=u;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),M.hide&&(clearTimeout(s),s=hi(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),l("scrollbarDragEnd",I),M.snapOnRelease&&e.slideToClosest())}function C(I){const{scrollbar:M,params:u}=e,B=M.el;if(!B)return;const W=B,j=u.passiveListeners?{passive:!1,capture:!1}:!1,R=u.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const k=I==="on"?"addEventListener":"removeEventListener";W[k]("pointerdown",b,j),o[k]("pointermove",A,j),o[k]("pointerup",w,R)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function O(){const{scrollbar:I,el:M}=e;e.params.scrollbar=In(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const u=e.params.scrollbar;if(!u.el)return;let B;if(typeof u.el=="string"&&e.isElement&&(B=e.el.querySelector(u.el)),!B&&typeof u.el=="string"){if(B=o.querySelectorAll(u.el),!B.length)return}else B||(B=u.el);e.params.uniqueNavElements&&typeof u.el=="string"&&B.length>1&&M.querySelectorAll(u.el).length===1&&(B=M.querySelector(u.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass);let W;B&&(W=B.querySelector(_t(e.params.scrollbar.dragClass)),W||(W=Ai("div",e.params.scrollbar.dragClass),B.append(W))),Object.assign(I,{el:B,dragEl:W}),u.draggable&&P(),B&&B.classList[e.enabled?"remove":"add"](...ei(e.params.scrollbar.lockClass))}function S(){const I=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...ei(e.isHorizontal()?I.horizontalClass:I.verticalClass)),V()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:M}=e.scrollbar;M=Ze(M),M.forEach(u=>{u.classList.remove(I.horizontalClass,I.verticalClass),u.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?D():(O(),g(),m())}),n("update resize observerUpdate lock unlock changeDirection",()=>{g()}),n("setTranslate",()=>{m()}),n("setTransition",(I,M)=>{y(M)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...ei(e.params.scrollbar.lockClass))}),n("destroy",()=>{S()});const T=()=>{e.el.classList.remove(...ei(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ei(e.params.scrollbar.scrollbarDisabledClass)),O(),g(),m()},D=()=>{e.el.classList.add(...ei(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ei(e.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(e.scrollbar,{enable:T,disable:D,updateSize:g,setTranslate:m,init:O,destroy:S})}function Cn(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let l=null,o,a,d=new Date().getTime();function s(j){const R=l;R.length!==0&&(R.innerHTML="",R.innerHTML=j)}function c(j){j===void 0&&(j=16);const R=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(j).replace(/x/g,R)}function r(j){j=Ze(j),j.forEach(R=>{R.setAttribute("tabIndex","0")})}function h(j){j=Ze(j),j.forEach(R=>{R.setAttribute("tabIndex","-1")})}function f(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("role",R)})}function m(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-roledescription",R)})}function y(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-controls",R)})}function g(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-label",R)})}function x(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("id",R)})}function p(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-live",R)})}function b(j){j=Ze(j),j.forEach(R=>{R.setAttribute("aria-disabled",!0)})}function A(j){j=Ze(j),j.forEach(R=>{R.setAttribute("aria-disabled",!1)})}function w(j){if(j.keyCode!==13&&j.keyCode!==32)return;const R=e.params.a11y,k=j.target;if(!(e.pagination&&e.pagination.el&&(k===e.pagination.el||e.pagination.el.contains(j.target))&&!j.target.matches(_t(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const E=Ze(e.navigation.prevEl);Ze(e.navigation.nextEl).includes(k)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(R.lastSlideMessage):s(R.nextSlideMessage)),E.includes(k)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(R.firstSlideMessage):s(R.prevSlideMessage))}e.pagination&&k.matches(_t(e.params.pagination.bulletClass))&&k.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:j,prevEl:R}=e.navigation;R&&(e.isBeginning?(b(R),h(R)):(A(R),r(R))),j&&(e.isEnd?(b(j),h(j)):(A(j),r(j)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return P()&&e.params.pagination.clickable}function O(){const j=e.params.a11y;P()&&e.pagination.bullets.forEach(R=>{e.params.pagination.clickable&&(r(R),e.params.pagination.renderBullet||(f(R,"button"),g(R,j.paginationBulletMessage.replace(/\{\{index\}\}/,Ii(R)+1)))),R.matches(_t(e.params.pagination.bulletActiveClass))?R.setAttribute("aria-current","true"):R.removeAttribute("aria-current")})}const S=(j,R,k)=>{r(j),j.tagName!=="BUTTON"&&(f(j,"button"),j.addEventListener("keydown",w)),g(j,k),y(j,R)},T=j=>{a&&a!==j.target&&!a.contains(j.target)&&(o=!0),e.a11y.clicked=!0},D=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=j=>{d=new Date().getTime()},M=j=>{if(e.a11y.clicked||new Date().getTime()-d<100)return;const R=j.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!R||!e.slides.includes(R))return;a=R;const k=e.slides.indexOf(R)===e.activeIndex,E=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(R);k||E||j.sourceCapabilities&&j.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(R.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(R),0),o=!1)}))},u=()=>{const j=e.params.a11y;j.itemRoleDescriptionMessage&&m(e.slides,j.itemRoleDescriptionMessage),j.slideRole&&f(e.slides,j.slideRole);const R=e.slides.length;j.slideLabelMessage&&e.slides.forEach((k,E)=>{const N=e.params.loop?parseInt(k.getAttribute("data-swiper-slide-index"),10):E,F=j.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,R);g(k,F)})},B=()=>{const j=e.params.a11y;e.el.append(l);const R=e.el;j.containerRoleDescriptionMessage&&m(R,j.containerRoleDescriptionMessage),j.containerMessage&&g(R,j.containerMessage);const k=e.wrapperEl,E=j.id||k.getAttribute("id")||`swiper-wrapper-${c(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(k,E),p(k,N),u();let{nextEl:F,prevEl:U}=e.navigation?e.navigation:{};F=Ze(F),U=Ze(U),F&&F.forEach($=>S($,E,j.nextSlideMessage)),U&&U.forEach($=>S($,E,j.prevSlideMessage)),V()&&Ze(e.pagination.el).forEach(ae=>{ae.addEventListener("keydown",w)}),Vt().addEventListener("visibilitychange",I),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",D,!0)};function W(){l&&l.remove();let{nextEl:j,prevEl:R}=e.navigation?e.navigation:{};j=Ze(j),R=Ze(R),j&&j.forEach(E=>E.removeEventListener("keydown",w)),R&&R.forEach(E=>E.removeEventListener("keydown",w)),V()&&Ze(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),Vt().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",D,!0))}n("beforeInit",()=>{l=Ai("span",e.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&B()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&u()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),n("destroy",()=>{e.params.a11y.enabled&&W()})}function Oi(t){let{swiper:e,extendParams:i,on:n,emit:l,params:o}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,d,s=o&&o.autoplay?o.autoplay.delay:3e3,c=o&&o.autoplay?o.autoplay.delay:3e3,r,h=new Date().getTime(),f,m,y,g,x,p,b;function A(R){!e||e.destroyed||!e.wrapperEl||R.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",A),!(b||R.detail&&R.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(c=r,f=!1);const R=e.autoplay.paused?r:h+c-new Date().getTime();e.autoplay.timeLeft=R,l("autoplayTimeLeft",R,R/s),d=requestAnimationFrame(()=>{w()})},C=()=>{let R;return e.virtual&&e.params.virtual.enabled?R=e.slides.filter(E=>E.classList.contains("swiper-slide-active"))[0]:R=e.slides[e.activeIndex],R?parseInt(R.getAttribute("data-swiper-autoplay"),10):void 0},P=R=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),w();let k=typeof R>"u"?e.params.autoplay.delay:R;s=e.params.autoplay.delay,c=e.params.autoplay.delay;const E=C();!Number.isNaN(E)&&E>0&&typeof R>"u"&&(k=E,s=E,c=E),r=k;const N=e.params.speed,F=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),l("autoplay")),e.params.cssMode&&(h=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return k>0?(clearTimeout(a),a=setTimeout(()=>{F()},k)):requestAnimationFrame(()=>{F()}),k},V=()=>{h=new Date().getTime(),e.autoplay.running=!0,P(),l("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),l("autoplayStop")},S=(R,k)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),R||(p=!0);const E=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",A):T()};if(e.autoplay.paused=!0,k){x&&(r=e.params.autoplay.delay),x=!1,E();return}r=(r||e.params.autoplay.delay)-(new Date().getTime()-h),!(e.isEnd&&r<0&&!e.params.loop)&&(r<0&&(r=0),E())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(h=new Date().getTime(),p?(p=!1,P(r)):P(),e.autoplay.paused=!1,l("autoplayResume"))},D=()=>{if(e.destroyed||!e.autoplay.running)return;const R=Vt();R.visibilityState==="hidden"&&(p=!0,S(!0)),R.visibilityState==="visible"&&T()},I=R=>{R.pointerType==="mouse"&&(p=!0,b=!0,!(e.animating||e.autoplay.paused)&&S(!0))},M=R=>{R.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&T())},u=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",M))},B=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",M))},W=()=>{Vt().addEventListener("visibilitychange",D)},j=()=>{Vt().removeEventListener("visibilitychange",D)};n("init",()=>{e.params.autoplay.enabled&&(u(),W(),V())}),n("destroy",()=>{B(),j(),e.autoplay.running&&O()}),n("_freeModeStaticRelease",()=>{(y||p)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?O():S(!0,!0)}),n("beforeTransitionStart",(R,k,E)=>{e.destroyed||!e.autoplay.running||(E||!e.params.autoplay.disableOnInteraction?S(!0,!0):O())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}m=!0,y=!1,p=!1,g=setTimeout(()=>{p=!0,y=!0,S(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(g),clearTimeout(a),e.params.autoplay.disableOnInteraction){y=!1,m=!1;return}y&&e.params.cssMode&&T(),y=!1,m=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:V,stop:O,pause:S,resume:T})}function Ja(t){let{swiper:e,extendParams:i,emit:n,once:l}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:c}=e;s.velocities.length===0&&s.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Ut()})}function d(s){let{currentPos:c}=s;if(e.params.cssMode)return;const{params:r,wrapperEl:h,rtlTranslate:f,snapGrid:m,touchEventsData:y}=e,x=Ut()-y.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(r.freeMode.momentum){if(y.velocities.length>1){const O=y.velocities.pop(),S=y.velocities.pop(),T=O.position-S.position,D=O.time-S.time;e.velocity=T/D,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(D>150||Ut()-O.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,y.velocities.length=0;let p=1e3*r.freeMode.momentumRatio;const b=e.velocity*p;let A=e.translate+b;f&&(A=-A);let w=!1,C;const P=Math.abs(e.velocity)*20*r.freeMode.momentumBounceRatio;let V;if(A<e.maxTranslate())r.freeMode.momentumBounce?(A+e.maxTranslate()<-P&&(A=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.maxTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(A>e.minTranslate())r.freeMode.momentumBounce?(A-e.minTranslate()>P&&(A=e.minTranslate()+P),C=e.minTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.minTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(r.freeMode.sticky){let O;for(let S=0;S<m.length;S+=1)if(m[S]>-A){O=S;break}Math.abs(m[O]-A)<Math.abs(m[O-1]-A)||e.swipeDirection==="next"?A=m[O]:A=m[O-1],A=-A}if(V&&l("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?p=Math.abs((-A-e.translate)/e.velocity):p=Math.abs((A-e.translate)/e.velocity),r.freeMode.sticky){const O=Math.abs((f?-A:A)-e.translate),S=e.slidesSizesGrid[e.activeIndex];O<S?p=r.speed:O<2*S?p=r.speed*1.5:p=r.speed*2.5}}else if(r.freeMode.sticky){e.slideToClosest();return}r.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating=!0,vn(h,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(C),vn(h,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(A),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,vn(h,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(A),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeMode.sticky){e.slideToClosest();return}else r.freeMode&&n("_freeModeNoMomentumRelease");(!r.freeMode.momentum||x>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:a,onTouchEnd:d}})}const Qa=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const l=ce(),{popupDetailData:o}=Xe();return ve(()=>{var a,d;n&&((a=l?.current)===null||a===void 0||a.swiper.slideTo((d=o?.multiCheckIndex)!==null&&d!==void 0?d:0))},[o,n]),v.createElement(Kt,{role:"list",tag:"ul",ref:l,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Ja,_a,Ki],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Li=je(Qa);const $a=ri((t,e)=>{const{src:i,onLoad:n,style:l,className:o,loading:a,alt:d="image"}=t,[s,c]=Z(i),r=ce(null),[h,f]=Z(!1);return Ei(e,()=>({setSrc:m=>{m&&c(m)}})),ve(()=>{i&&c(i)},[i]),ve(()=>{const m=()=>{i&&!h&&r.current&&(r.current.src="",r.current.src=i)};return xt.on(bt.PAGE_DID_SHOW,m),()=>{xt.off(bt.PAGE_DID_SHOW,m)}},[i,h]),v.createElement(v.Fragment,null,!h&&!s&&v.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),s?.includes(".avif")?v.createElement("picture",null,v.createElement("source",{type:"image/avif",srcSet:s}),v.createElement("source",{type:"image/webp",srcSet:`${s}?imageMogr2/format/webp`}),v.createElement("source",{type:"image/jpeg",srcSet:`${s}?imageMogr2/format/jpg`}),v.createElement("img",{ref:r,className:o,src:s,style:Object.assign({},l),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d})):v.createElement("img",{ref:r,className:o,src:s,style:Object.assign({},l),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d}))});var jt=je($a);const es=({products:t,data:e,defImg:i,style:n,onCLick:l,popupDetailData:o,check:a})=>{var d;const{productView:s}=Nt(),{popupCurTimeRef:c}=Xe(),r=(h,f)=>{if(a===f)return;const m=t?.[a];s(o,m,m?.bindCta,c.current,o?.index),l?.(f)};return v.createElement(v.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&v.createElement(Li,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=o?t:[0,1,2,3])===null||d===void 0?void 0:d.map((h,f)=>{var m,y,g;return v.createElement(v.Fragment,null,h?.bindCta?v.createElement(Wt,{className:Be({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{r(h,f)},key:f},v.createElement(jt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(g=(m=h?.cover)!==null&&m!==void 0?m:(y=h?.homePage)===null||y===void 0?void 0:y[0])!==null&&g!==void 0?g:i})):null)})))};var ko=je(es);const ts="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",is=({visible:t,onClose:e,children:i,modalStyle:n,padding:l,popup:o,schema:a,fullHeight:d=window.innerHeight,isFullScreen:s=!1,openState:c})=>{var r,h,f,m,y,g,x,p,b,A,w,C,P,V,O,S,T,D,I,M,u,B,W,j;const R=ce(null),k=ce(null),E=ce(null),N=ce(null),F=ce(null),U=d*.2,G=s?d:d*.8,[$,ae]=Z(U),[de,Q]=Z(!1),Ee=ce(null),{globalConfig:Pe,popupDetailData:Ue}=Xe(),{schema:pe,popup:he}=$t(),[_e,qe]=Z(15);ve(()=>{const me=document.getElementById("sxp-render"),H=document.getElementById("pb-modal");H?Ee.current=H:(Ee.current=document.createElement("div"),Ee.current.setAttribute("id","pb-modal"),me?.appendChild(Ee.current))},[]);const Ye=fe(()=>o?.id&&o?.id!==""||t,[t,o]),Ie=fe(()=>{var me,H,J;const be=a??pe;return(J=(H=(me=be?.sxpPageConf)===null||me===void 0?void 0:me.globalConfig)===null||H===void 0?void 0:H.popupList)===null||J===void 0?void 0:J.find(ye=>ye?.id===o?.id)},[o,a,pe]),tt=fe(()=>{var me,H;return((H=(me=Ie?.item)===null||me===void 0?void 0:me.event)===null||H===void 0?void 0:H.isScrollFullScreen)||!1},[Ie]);ve(()=>{Ye?Q(!0):setTimeout(()=>{Q(!1),ae(U)},o?.duration)},[Ye,o]);const $e=se(()=>i,[he,c,Pe,a]);if(ve(()=>{const me=H=>{var J=H?.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),be=J?.[0],Y=J?.[J?.length-1],ye=9;H.addEventListener("keydown",function(Se){(Se.key==="Escape"||Se.key==="Esc")&&(et(),Se.preventDefault());var te=Se.key==="Tab"||Se.keyCode===ye;te&&(Se.shiftKey?document?.activeElement===be&&(Y?.focus(),Se.preventDefault()):document?.activeElement===Y&&(be?.focus(),Se.preventDefault()))}),be?.focus()};return F?.current&&me(F?.current),()=>{var H;(H=F?.current)===null||H===void 0||H.removeEventListener("keydown",me)}},[F,de,he]),!Ee.current)return null;const et=Si(()=>{e?.()},300),vt=me=>{R.current=me.touches[0],k.current=me.touches[0],E.current=!0},It=me=>{requestAnimationFrame(()=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const J=me.touches[0].clientY,be=me.touches[0].clientX,Y=R.current.clientY-J;R.current=me.touches[0];const ye=J-k.current.clientY,Se=be-k.current.clientX;if(Math.abs(Se)>Math.abs(ye))return;const te=$-Y;te>0&&ae(te)}})},Fe=me=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const J=me.changedTouches[0].clientY-k.current.clientY,be=me.changedTouches[0].clientX-k.current.clientX;if(Math.abs(be)>Math.abs(J))return;const Y=k.current.clientY-R.current.clientY;Y>0?ae(0):$<U&&Y<0?ae(U):$>=U&&Y<0&&e?.()}E.current=!1};return zn.createPortal(v.createElement(v.Fragment,null,de&&v.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ye?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:et},v.createElement("div",{style:{position:"relative",left:`${(m=(f=(h=(r=Ie?.item)===null||r===void 0?void 0:r.props)===null||h===void 0?void 0:h.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&m!==void 0?m:0}px`,right:`${(p=(x=(g=(y=Ie?.item)===null||y===void 0?void 0:y.props)===null||g===void 0?void 0:g.popupBg)===null||x===void 0?void 0:x.horizontalMargin)!==null&&p!==void 0?p:0}px`,bottom:`${(C=(w=(A=(b=Ie?.item)===null||b===void 0?void 0:b.props)===null||A===void 0?void 0:A.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0}px`,overflow:"hidden",width:`calc(100% - ${((S=(O=(V=(P=Ie?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&S!==void 0?S:0)*2}px)`,height:"100%"}},v.createElement("div",Object.assign({ref:F,className:`modal-container ${Ye?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=Ie?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:l,animationDuration:((D=o?.duration)!==null&&D!==void 0?D:0)/1e3+"s"},tt&&{transform:`translateY(${$}px)`}),{overflow:"hidden",borderRadius:`${(B=(u=(M=(I=Ie?.item)===null||I===void 0?void 0:I.props)===null||M===void 0?void 0:M.popupBg)===null||u===void 0?void 0:u.borderRadius)!==null&&B!==void 0?B:0}px`,zIndex:9}),onClick:me=>{me.stopPropagation(),me.preventDefault()}},tt&&{onTouchMove:It,onTouchStart:vt,onTouchEnd:Fe}),v.createElement("div",Object.assign({id:"modal-content",ref:N,style:{height:tt?d:G,overflow:tt&&$<=0||!tt?"auto":"hidden",zIndex:1}},((j=(W=Ie?.item)===null||W===void 0?void 0:W.props)===null||j===void 0?void 0:j.enableFixedCloseButton)&&{onScroll:me=>{var H;qe(15-((H=me?.target)===null||H===void 0?void 0:H.scrollTop))}}),$e()),v.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:_e}},v.createElement("img",{src:Pe?.popupCloseIcon||ts,alt:"close button",className:"modal-icon"})))))),Ee.current)};var gi=je(is);const ns=({text:t,maxStr:e=108,style:i,className:n,onClick:l,foldText:o,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=Z(!1),[h,f]=Z(!1),m=i||{},{lineClamp:y}=m,g=rt(m,["lineClamp"]),x=Number(y||2),p=ce(null),b=ce(null),A=ce(),w=()=>{r(!c)},C=se(()=>{!p.current||!b.current||!d||!t||c||requestAnimationFrame(()=>{const P=p.current.getBoundingClientRect().height,V=b.current.getBoundingClientRect().height,O=P>V+1;f(O)})},[d,t,c]);return ve(()=>{if(p.current)return A.current=new ResizeObserver(C),A.current.observe(p.current),C(),()=>{var P;(P=A.current)===null||P===void 0||P.disconnect()}},[C]),v.createElement("div",{className:n,style:Object.assign(Object.assign({},g),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},v.createElement("div",{ref:b,style:Object.assign(Object.assign({},!c&&d&&{WebkitLineClamp:x,lineClamp:x,textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical"}),{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content"}),dangerouslySetInnerHTML:{__html:De(t?.replace(/\n/g,"</br>"),g)}}),v.createElement("div",{ref:p,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",position:"absolute",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:De(t?.replace(/\n/g,"</br>"),g)}}),t&&d&&h&&v.createElement("button",{"aria-label":c?a||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:l??w,dangerouslySetInnerHTML:{__html:De(c?a||"show less":o||"show more",g)}}))};var ji=je(ns);const os=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:l,src:o}=t;switch(i){case 2:return n||null;case 3:return o||null;default:return l&&l.length>0?(e=l[0])===null||e===void 0?void 0:e.url:null}},ls=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Mi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:l})=>{var o,a,d,s,c,r,h,f;let m="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return m;let g=i?.priceSymbol,x=t?.currency?(d=(a=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||a===void 0?void 0:a.toUpperCase())!==null&&d!==void 0?d:"":"$";const p=e===void 0||e;let b=y?.toString();g?.showTwoDecimalPoint&&(b=y?.toFixed(2));let A=(s=b?.indexOf("."))!==null&&s!==void 0?s:-1;if(p){m=(c=y?.toLocaleString("zh",{minimumFractionDigits:g?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let w=0,C=A??m?.length;g?.millesimalSymbol==="."?m=m?.replace(/\,/g,function(P,V){return V>=w&&V<C?".":P}):g?.millesimalSymbol===" "&&(m=m?.replace(","," "))}else m=`${g?.showTwoDecimalPoint?y?.toFixed(2):y}`;return g?.decimalPoint===","&&A>0&&(m=m=m?.replace(/\./g,function(w,C){return C>=A&&C<m?.length?",":w})),x=`<span style="font-family:${(f=(h=(r=i?.priceSymbol)===null||r===void 0?void 0:r.fontFamily)!==null&&h!==void 0?h:l?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${x}</span>`,m=De(m,l),g?.currencyPosition&&g?.currencyPosition!=="none"?m=g?.currencyPosition==="left"?x+m:m+x:g?.currencyPosition!=="none"&&(m=x+m),m},as=t=>{var e,i,n,l,o,a,d,s,c,r,h,f,m,y,g,x,p,b,A,w,C,P,V,O,{content:S,style:T,bgImg:D,onClick:I,schema:M,isDefault:u,bottom_image:B,tipText:W,isPost:j,viewTime:R,rec:k,swiper:E,commodityStyles:N,buttonStyle:F,index:U,commodityGroup:G,popupBg:$,iframeIcon:ae,commodityImgRatio:de,isTel:Q,iframeBgColor:Ee,isActive:Pe=!0}=t,Ue=rt(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:pe,popupDetailData:he,isPreview:_e,bffFbReport:qe,popupCurTimeRef:Ye,checkCommodityIndexRef:Ie,globalConfig:tt}=Xe(),{jumpToWeb:$e,productView:et}=Nt(),vt=ce(null),[It,Fe]=Z(!1),[me,H]=Z(!1),[J,be]=Z((e=he?.multiCheckIndex)!==null&&e!==void 0?e:0),Y=ce(),[ye,Se]=Z(0),te=j?k:he;let z=j?te?.product:(n=(i=te?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(o=(l=te?.video)===null||l===void 0?void 0:l.bindProducts)===null||o===void 0?void 0:o[0],We=j?(a=te?.product)===null||a===void 0?void 0:a.bindCta:(c=(s=(d=te?.video)===null||d===void 0?void 0:d.bindProduct)===null||s===void 0?void 0:s.bindCta)!==null&&c!==void 0?c:(f=(h=(r=te?.video)===null||r===void 0?void 0:r.bindProducts)===null||h===void 0?void 0:h[0])===null||f===void 0?void 0:f.bindCta;const nt=j?U:he?.index;if(!j&&G?.open&&(!((m=te?.video)===null||m===void 0)&&m.bindProducts)&&((g=(y=te?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0?void 0:g.length)>0){Ie.current=J;const ee=(x=te?.video)===null||x===void 0?void 0:x.bindProducts[J];z=ee,We=ee?.bindCta}const ht=ee=>{z?.link&&($e(ee,te,z,We,nt),j||et(te,z,We,R||vt.current,nt),window.location.href=window.getJointUtmLink(z.link))};ve(()=>{Pe&&(qe?.({eventName:"ProductView",product:z}),qe?.({eventName:"PageView",product:z}))},[Pe,qe]),ve(()=>{const ee=()=>{vt.current=new Date};return ee(),window.addEventListener("pageshow",ee),()=>{window.removeEventListener("pageshow",ee)}},[]);const Ge=Mi({product:z,enableFormattedPrice:(p=N?.price)===null||p===void 0?void 0:p.enableFormattedPrice,globalConfig:tt,style:N?.price}),it=(_e?375:(b=T?.width)!==null&&b!==void 0?b:window.innerWidth)-((A=$?.horizontalMargin)!==null&&A!==void 0?A:0)*2,Re=de?it*(de.h/de.w):it,ot=({isPost:ee})=>{var Je,At,ni,oi;return v.createElement("div",null,v.createElement("div",{className:"pb-commondity-content-collection",style:gt(N?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:De((Je=z?.collection)!==null&&Je!==void 0?Je:"Tiffany Lock",N?.collection)}}),v.createElement("div",{className:"pb-commondity-content-title",style:gt(N?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:De((At=z?.title)!==null&&At!==void 0?At:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),v.createElement("div",{className:"pb-commondity-content-price",style:gt(N?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:Ge??""}}),v.createElement("div",{hidden:!!z&&!z?.taxInfo,style:gt(N?.taxInfo),dangerouslySetInnerHTML:{__html:De((ni=z?.taxInfo)!==null&&ni!==void 0?ni:"\u7A0E\u8D39",N?.taxInfo)}}),v.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},v.createElement(ji,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>Fe(!0),isPost:ee,text:(oi=z?.info)!==null&&oi!==void 0?oi:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
2
2
|
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
3
3
|
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
4
4
|
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|