pb-sxp-ui 1.15.25 → 1.15.26
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +2 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +4 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/ExpandableText.js +28 -30
- package/lib/core/components/SxpPageRender/ExpandableText.js +28 -30
- 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 Hl}from"uuid";import Xl from"pako";import v,{useContext as xi,useMemo as me,memo as je,useEffect as ue,createContext as Ti,useState as G,useRef as de,useCallback as ae,forwardRef as ri,useImperativeHandle as Ei,useLayoutEffect as ql}from"react";import Wn from"qs";import Yl from"eventemitter3";import{css as Be}from"@emotion/css";import*as zn from"react-dom";import Gl 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 o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function pt(t,e,i,n){function o(l){return l instanceof i?l:new i(function(a){a(l)})}return new(i||(i=Promise))(function(l,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?l(r.value):o(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Zl=/:\w+/g;var Un=(t,e)=>pt(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:l,method:a,url:d,urlParams:s,name:c,queryString:r,headers:h,body:f}=e[o];let m=d;s&&Object.entries(s).forEach(([y,g])=>{m=m.replace(Zl,x=>x===y?g:x)}),r&&(m+=r),n[l]=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[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const Hn="SXP_TOKEN_INFO",Kl=(t,e)=>pt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=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(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).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 o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(l=0|Math.random()*16,n[o]=i[o===19?l&3|8:l])}return n.join("")}const _l=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},Jl=()=>{const t=Hl();return t?.replaceAll?t.replaceAll("-",""):_l(32)},De=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],o=e?.["fontFamily-en"];if(!n&&!o)return t;let l=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${o??"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>`,l=f.substring(y,f?.length)),m!==-1&&y!==-1&&m>y&&(i+=`<span style="${c}">${f.substring(y,m)}</span>`,l=f.substring(m,f?.length)),m===-1?(i+=`<span style="${c}">${f.substring(y,f?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${s}">${f.substring(m,f?.length)}</span>`,l="",!1):!0};let h=!0;for(;h;)h=r(l);return i};function Xn(t){const i=document.cookie.split(";");let n=null;return i.forEach(o=>{const[l,a]=o.trim().split("=");l===t&&(n=a)}),n??""}function on(){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 o=0;o<t.length;o++){const l=t[o],a=t.substring(o+1,t.length);l==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(o)}const i=e.length>0?[]:[t];let n=0;return e?.map(o=>{i?.push(t.substring(n,o)),n=o+1,o===e[e.length-1]&&o<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function qn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=Xl.inflate(n,{to:"string"});return JSON.parse(o)}let an=null;const Ql={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class $l{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?Ql[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Ot=null;const eo={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{Ot||(Ot=new $l),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(o=>pt(void 0,void 0,void 0,function*(){var l,a;const d=yield o.json(),s=qn((l=d?.data)===null||l===void 0?void 0:l.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(o=>pt(void 0,void 0,void 0,function*(){var l;const a=yield o.json();return a.success?(l=a?.data)===null||l===void 0?void 0:l.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 Kl(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 o=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(l=>l.json());return o?.data||null})};function $t(){return xi(ol)}function to(){return xi(ll)}const sn="feRealSessionIdKey",Yn=()=>{const t=Jl();return`${Date.now()}${t}`},io=()=>{let t=no();return t||(t=Yn(),window.localStorage.setItem(sn,t)),t},rn=()=>{const t=Yn();window.localStorage.setItem(sn,t)},no=()=>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",lo=()=>{let t=window.localStorage.getItem(Gn);return si(t)&&(t=Wi(36,62),window.localStorage.setItem(Gn,t)),t},oo=()=>{const t=window.localStorage.getItem(Zn);return si(t)&&window.localStorage.setItem(Zn,"true"),si(t)},ao=()=>{const t=window.localStorage.getItem(_n);return si(t)},so=()=>{window.localStorage.setItem(_n,"true")},ro=()=>{const t=window.localStorage.getItem(Jn);return si(t)&&window.localStorage.setItem(Jn,"true"),si(t)},$n=()=>window.localStorage.getItem(Qn)==="true",el=()=>{window.localStorage.setItem(Qn,"true")};function kt(t,e){const{appDomain:i}=Xe();return me(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const xt=new Yl;var bt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(bt||(bt={}));const co=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:o,privacy_policy_title:l})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Xe(),s=me(()=>{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};ue(()=>{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:o?`https://${o}`:void 0},l??"More information"))))};var uo=je(co);const tl=Ti({rtcList:[],tagList:[]});var dn;(function(t){t[t.BFF=5]="BFF"})(dn||(dn={}));const zi="FOR U",vo=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,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 L,S,T,D,I;const[M,u]=G([]),[B,W]=G([]),[j,R]=G(!0),[k,E]=G({rtc:"",requestId:""}),N=de(null),F=de(!1),[U,Y]=G(()=>!!window.localStorage.getItem(Kn)),[$,oe]=G(),[re,Q]=G(),[Te,Pe]=G(h),[Ue,ve]=G([]),[fe,_e]=G(0),[qe,Ye]=G(!1),[Ie,tt]=G(null),$e=de(),et=de(),vt=de(),[It,Fe]=G(zi),pe=de(-1),H=de(null),[J,be]=G(!1),[_,ge]=G((S=(L=A?.data)===null||L===void 0?void 0:L.sxpPageConf)===null||S===void 0?void 0:S.globalConfig),[we,te]=G(),[z,We]=G(!1),[nt,ht]=G(),[Ge,it]=G(),[Ve,lt]=G([]),[ct,gt]=G(),[Rt,Bt]=G(),Tt=me(()=>we??A,[we,A]),wt=me(()=>{var q,X,se,Oe;return(((Oe=(se=(X=(q=_?.consent)===null||q===void 0?void 0:q[0])===null||X===void 0?void 0:X.item)===null||se===void 0?void 0:se.props)===null||Oe===void 0?void 0:Oe.privacy_necessity)&&!U&&!x||g)&&z},[U,_,g,x,z]),qt=ae(q=>{V?.(q),it(q)},[]),Ct=ae(q=>{var X;const se=q?.recList;return(X=se?.map(ye=>{var Se,Ce,ze,Re,O,Z;if(!((Se=ye?.video)===null||Se===void 0)&&Se.bindProducts&&((ze=(Ce=ye?.video)===null||Ce===void 0?void 0:Ce.bindProducts)===null||ze===void 0?void 0:ze.length)>0){const K=(Z=(O=(Re=ye?.video)===null||Re===void 0?void 0:Re.bindProducts)===null||O===void 0?void 0:O.filter(ne=>!!ne?.bindCta))!==null&&Z!==void 0?Z:[];return Object.assign(Object.assign({},ye),{video:Object.assign(Object.assign({},ye?.video),{bindProducts:K})})}return ye}))!==null&&X!==void 0?X:[]},[]);ue(()=>{let q;return Ve.length>0&&(q=setInterval(()=>{const se=new Date,Oe=15*1e3;lt(ye=>ye.filter(Se=>se-Se.time<=Oe))},1e3)),()=>{clearInterval(q)}},[Ve]),ue(()=>{const q=X=>{$e.current=X};return xt.on(bt.CHANGE_THEME_TAG,q),()=>{xt.off(bt.CHANGE_THEME_TAG,q)}},[]),ue(()=>{Pe(h)},[h]);const Ke=me(()=>e?.find(q=>q.type===dn.BFF),[e]),ke=me(()=>{var q;return((q=Ke?.headers)===null||q===void 0?void 0:q["x-app-id"])+lo()},[Ke]),ee=ae((q,X)=>{var se,Oe;if(!Ke)return;const ye=Ke.url;if(X?.query){const O=Wn.stringify(X.query);q=`${q}?${O}`}let Se=!1;const Ce={},ze=location.search.slice(1);(se=di(ze))===null||se===void 0||se.forEach(O=>{const Z=O.split("=")[0],K=O.split("=")[1];Ce[Z]=K});const Re=Ce?.cl_source;return Re&&(!((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(Re))&&(Se=!0),X.type==="beacon"&&navigator.sendBeacon&&!Se?navigator.sendBeacon(`${ye}/api/${q}`,new Blob([JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},X.body),Ke.headers),{"x-user-id":ke}))))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${ye}/api/${q}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":ke},Ke.headers),method:X.method,body:JSON.stringify(Se?{body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},X.body),Ke.headers),{"x-user-id":ke}))))}:X.body)},Se&&{keepalive:!0})).then(O=>O.json()).catch(O=>Promise.reject(O))},[Ke,ke]),Je=ae((q,X)=>{if(!Ke)return;const se=Ke.url;if(X?.query){const Oe=Wn.stringify(X.query);q=`${q}?${Oe}`}return window.fetch(`${se}/admin/${q}`,{headers:Object.assign({"Content-Type":"application/json"},Ke.headers),method:X.method,body:JSON.stringify(X.body)}).then(Oe=>Oe.json()).catch(Oe=>Promise.reject(Oe))},[Ke]),At=ae(q=>pt(void 0,void 0,void 0,function*(){var X,se,Oe,ye,Se,Ce,ze,Re,O,Z,K,ne,ce,Ae;if(q=Object.assign(Object.assign({maxSize:(X=q?.maxSize)!==null&&X!==void 0?X:o,defaultSize:(se=q?.defaultSize)!==null&&se!==void 0?se:l,hashTag:q?.hashTag,traceInfo:q?.traceInfo,themeTag:q?.themeTag,pageNum:q?.pageNum,contentFilter:q?.contentFilter,productFilter:q?.productFilter},Rt&&{chatlabsId:Rt}),C&&{type:"story"}),Ge)q=Object.assign(Object.assign({},q),{channel:decodeURIComponent(Ge)});else if(i){const he=(Se=(ye=(Oe=di(i))===null||Oe===void 0?void 0:Oe.filter(Ee=>{var ie,He;const xe=Ee.split("=")[0];return(He=(ie=p?.channels)!==null&&ie!==void 0?ie:[])===null||He===void 0?void 0:He.includes(xe)}))===null||ye===void 0?void 0:ye.join("&"))!==null&&Se!==void 0?Se:"";he&&(q=Object.assign(Object.assign({},q),{channel:decodeURIComponent(he)}))}if(x){let he=1;if(q=Object.assign(Object.assign(Object.assign({},q),{directPage:!0,level:1}),!i&&b&&b?.length>0&&{channel:b?.[0]}),!q?.channel||F.current)return;F.current=!0;let Ee=[],ie=null;const He=xe=>pt(void 0,void 0,void 0,function*(){var Me,dt,at,ot,st,mt;if(xe.pageNum=he,ie=yield Je?.("recommend/direct_page",{method:"POST",body:xe}),!ie?.success)return;R(!1),Ee=Ee.concat((ot=(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&&ot!==void 0?ot:[]),M?.length===0&&(u(Ct(Object.assign(Object.assign({},ie?.data),{recList:Ee}))),ve(Ct(Object.assign(Object.assign({},ie?.data),{recList:Ee})))),((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))&&(he=he+1,yield He(xe))});return yield He(q),!q?.hashTag&&ie&&E({rtc:(Ce=ie?.data)===null||Ce===void 0?void 0:Ce.rtc,requestId:(ze=ie?.data)===null||ze===void 0?void 0:ze.requestId}),Object.assign(Object.assign({},ie?.data),{recList:Ee})}_?.enablePreview&&(q=Object.assign(Object.assign({},q),{directPage:!0,level:1,pageNum:(Re=q?.pageNum)!==null&&Re!==void 0?Re:1}));const le=yield ee?.("v1/recommend/list",{method:"POST",body:q});if(le?.success){if(q?.hashTag||E({rtc:le.data.rtc,requestId:le.data.requestId}),_?.enablePreview&&!x){let he=[];return he=he.concat((ne=(K=(Z=(O=le?.data)===null||O===void 0?void 0:O.recList)===null||Z===void 0?void 0:Z.filter)===null||K===void 0?void 0:K.call(Z,ie=>ie?.product||ie?.video))!==null&&ne!==void 0?ne:[]),((Ae=(ce=le?.data)===null||ce===void 0?void 0:ce.recList)===null||Ae===void 0?void 0:Ae.some(ie=>ie?.product||ie?.video))||be(!0),Object.assign(Object.assign({},le.data),{recList:he})}return le?.data}}),[ee,i,o,l,b,Ge,Rt,Je]),ni=ae(q=>pt(void 0,void 0,void 0,function*(){var X,se,Oe,ye;if(M.length<=0)return;const Se=M?.[M?.length-1],Ce=yield At(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:re?.hashTag},((X=Se?.product)===null||X===void 0?void 0:X.itemId)&&{productFilter:[(se=Se?.product)===null||se===void 0?void 0:se.itemId]}),((Oe=Se?.video)===null||Oe===void 0?void 0:Oe.itemId)&&{contentFilter:[(ye=Se?.video)===null||ye===void 0?void 0:ye.itemId]}),{themeTag:$e.current}),_?.enablePreview&&!x&&{pageNum:q}));return u(M.concat(Ct(Ce))),ve(Ue.concat(Ct(Ce))),Ce}),[At,M,re,Ue]),li=ae((q,X)=>{var se,Oe,ye,Se,Ce;let ze=!1;const Re=(Oe=(se=A?.data)===null||se===void 0?void 0:se.sxpPageConf)===null||Oe===void 0?void 0:Oe.globalConfig;if(!((ye=Re?.session)===null||ye===void 0)&&ye.enable){const O=localStorage.getItem("sessionStartTime"),Z=O?JSON.parse(O):new Date().getTime();Math.floor((new Date().getTime()-Z)/1e3/60)>=((Ce=(Se=Re?.session)===null||Se===void 0?void 0:Se.expires)!==null&&Ce!==void 0?Ce:30)&&(X?.("sessionTimeOut"),rn(),et.current=new Date,ze=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else q&&rn();return ze},[A]),Et=ae(({userInfo:q,eventInfo:X,reportLayId:se=!0})=>{var Oe,ye;if(!n||_?.enablePreview)return;q||(q={});const Se=io(),Ce={},ze=location.search.slice(1);(Oe=di(ze))===null||Oe===void 0||Oe.forEach(ne=>{const ce=ne.split("=")[0],Ae=ne.split("=")[1];Ce[ce]=Ae});const Re=Ce?.cl_source,O=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Se,rtc:k.rtc,requestId:k.requestId},{playbookType:ct}),nt&&se&&{layoutVariantId:nt}),X),X?.position&&Ge&&{position:Number(X?.position)+1+""}),Re&&{clSource:Re}),Z=Object.entries(q).map(([ne,ce])=>({name:ne,value:ce})),K=Object.entries(O).map(([ne,ce])=>ce&&{name:ne,value:ce}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",q),console.log("eventInfo:",O),console.log("========= \u7ED3\u675F ========="),ee?.(`v2/cld/${(ye=Ke?.headers)===null||ye===void 0?void 0:ye["x-app-id"]}/${X?.eventSubject}${Re?`/${decodeURIComponent(Re)}`:""}`,{method:"POST",body:{userInfo:Z,eventInfo:K},type:"beacon"})},[ee,k,n,_?.enablePreview,nt,_,ct,Ke]),vi=ae((q,X)=>{var se,Oe,ye;const Se=fi(q),Ce=new URLSearchParams(window.location.search),ze=Ce?.get("fbclid"),Re={event_source_url:(se=window?.location)===null||se===void 0?void 0:se.href,external_id:ke,client_user_agent:(ye=(Oe=window?.navigator)===null||Oe===void 0?void 0:Oe.userAgent)!==null&&ye!==void 0?ye:"",fbc:ze?`fb.2.${new Date().getTime()}.${ze}`:"",fbp:Xn("_fbp")?`${Xn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},O=/\{\{(.*?)\}\}/g,Z=K=>{if(K){if(K instanceof Array)K?.map(ne=>Z(ne));else for(const ne in K)if(Object.prototype.hasOwnProperty.call(K,ne)){const ce=K?.[ne];if(typeof ce=="object")Z(ce);else if(typeof ce=="string"){const Ae=ce?.match(O);Ae&&Ae.forEach(le=>{var he;const Ee=le.substring(2,le.length-2);try{let ie=new Function("fix_par","product",`return ${Ee}`)(Re,X);ie?(Ee?.indexOf("currency")!==-1&&ie?.indexOf("-")!==-1&&typeof ie=="string"&&(ie=(he=ie?.split("-"))===null||he===void 0?void 0:he[0]),K[ne]=ie):delete K[ne]}catch(ie){delete K[ne],console.error("An error occurred:",ie?.message)}})}}}};return Z(Se),Se},[ke]),oi=ae(({eventName:q,product:X})=>{var se,Oe,ye,Se;if(!n||_?.enablePreview)return;const Ce=(se=_?.pixel)===null||se===void 0?void 0:se[q];if(Ce?.event_name&&typeof window?.fbq=="function"){let Re=function(O,Z,K){const ne=new RegExp("([?&])"+Z+"=.*?(&|$)","i"),ce=O.indexOf("?")!==-1?"&":"?";return O.match(ne)?O.replace(ne,"$1"+Z+"="+K+"$2"):O+ce+Z+"="+K};if(q==="PageView"&&Ce?.event_name==="PageView"){const O=window.location.href,Z=Re(O,"timestamp",Date.now());history.pushState({path:Z},"",Z)}else{const O=vi(Ce);window?.fbq("track",Ce?.event_name,O),q==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view")}}else q==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const ze=(Oe=_?.converApi)===null||Oe===void 0?void 0:Oe[q];if(f&&ze){const Re=vi(ze,X),O={},Z=location.search.slice(1);(ye=di(Z))===null||ye===void 0||ye.forEach(ne=>{const ce=ne.split("=")[0],Ae=ne.split("=")[1];O[ce]=Ae});const K=O?.cl_source;ee?.(`v2/fb/${(Se=Ke?.headers)===null||Se===void 0?void 0:Se["x-app-id"]}/${q}${K?`/${decodeURIComponent(K)}`:""}`,{method:"POST",body:Re,type:"beacon"})}},[ee,n,f,_,Ke,vi]),pi=ae(q=>pt(void 0,void 0,void 0,function*(){const X=yield ee?.("v1/recommend/like",{method:"POST",body:q});return X?.success}),[ee]),Qt=ae(q=>pt(void 0,void 0,void 0,function*(){const X=yield ee?.("v1/recommend/unlike",{method:"POST",body:q});return X?.success}),[ee]),Xt=ae(q=>pt(void 0,void 0,void 0,function*(){const X=yield ee?.("v1/customform",{method:"POST",body:q});return X?.success}),[ee]),zt=ae(q=>pt(void 0,void 0,void 0,function*(){var X,se,Oe,ye,Se,Ce,ze,Re;const O=!!(!((Oe=(se=(X=q?.data)===null||X===void 0?void 0:X.sxpPageConf)===null||se===void 0?void 0:se.globalConfig)===null||Oe===void 0)&&Oe.isShowTag);if(!(!i||!O))try{const Z=(Ce=(Se=(ye=di(i))===null||ye===void 0?void 0:ye.filter(ne=>{var ce,Ae;const le=ne.split("=")[0];return(Ae=(ce=p?.channels)!==null&&ce!==void 0?ce:[])===null||Ae===void 0?void 0:Ae.includes(le)}))===null||Se===void 0?void 0:Se.join("&"))!==null&&Ce!==void 0?Ce:"",K=yield ee?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Z)}});W((Re=(ze=K?.data)===null||ze===void 0?void 0:ze.tags)!==null&&Re!==void 0?Re:[])}catch(Z){console.log("e",Z)}}),[ee,i]),Pt=ae((q,X,se,Oe)=>{var ye,Se,Ce,ze,Re,O,Z,K,ne,ce,Ae,le,he,Ee,ie,He,xe,Me,dt,at,ot,st,mt,yt,Qe,St,Ne,Le,Dt,jt,mi,ut,ai,en,tn,nn;const Zt=se?.bindCta,Ul=((ye=X?.video)===null||ye===void 0?void 0:ye.bindProduct)||((Se=X?.video)===null||Se===void 0?void 0:Se.bindProducts)&&((ze=(Ce=X?.video)===null||Ce===void 0?void 0:Ce.bindProducts)===null||ze===void 0?void 0:ze.length)>0;let Fi="",ln=null;qe?Fi="hashTagPage":!((Re=X?.video)===null||Re===void 0)&&Re.url?(Fi="videoPage",ln="video"):!((Z=(O=X?.video)===null||O===void 0?void 0:O.imgUrls)===null||Z===void 0)&&Z.length&&(Fi="imagePage",ln="image");const Vn=(Ee=(le=(K=se?.tags)!==null&&K!==void 0?K:(Ae=(ce=(ne=X?.video)===null||ne===void 0?void 0:ne.bindProducts)===null||ce===void 0?void 0:ce[0])===null||Ae===void 0?void 0:Ae.tags)!==null&&le!==void 0?le:(he=X?.video)===null||he===void 0?void 0:he.tags)!==null&&Ee!==void 0?Ee:(ie=X?.product)===null||ie===void 0?void 0:ie.tags;Et?.({eventInfo:Object.assign(Object.assign({},q),{ctaId:(He=Zt?.itemId)!==null&&He!==void 0?He:"",ctaName:(xe=Zt?.title)!==null&&xe!==void 0?xe:"",contentTags:Vn?JSON.stringify(Vn):"",position:Oe+"",contentId:(dt=(Me=X?.video)===null||Me===void 0?void 0:Me.itemId)!==null&&dt!==void 0?dt:"",productId:Ul?se?.itemId:"",traceInfo:(tn=(ut=(Ne=(mt=(at=Zt?.traceInfo)!==null&&at!==void 0?at:(st=(ot=X?.video)===null||ot===void 0?void 0:ot.bindCta)===null||st===void 0?void 0:st.traceInfo)!==null&&mt!==void 0?mt:(St=(Qe=(yt=X?.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=(jt=(Dt=(Le=X?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Dt===void 0?void 0:Dt[0])===null||jt===void 0?void 0:jt.bindCta)===null||mi===void 0?void 0:mi.traceInfo)!==null&&ut!==void 0?ut:(en=(ai=X?.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:ln})})},[Et,qe]),Vi=ae(()=>{var q,X,se;const Oe=location.search.slice(1),ye={};(q=di(Oe.replace(/\+/g,"%2B")))===null||q===void 0||q.map(ze=>{const Re=ze.split("=")[0],O=ze.split("=")[1];ye[Re]=O});for(const ze in ye)ye[ze]=ye[ze].replace(/%2B/g,"+");const Se=ze=>{var Re;return(Re=ye[ze])!==null&&Re!==void 0?Re:""},Ce=new Date;et.current=Ce,Et?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Se("utm_source"),utmMedium:Se("utm_medium"),utmCampaign:Se("utm_campaign"),utmId:Se("utm_id"),utmContent:Se("utm_content"),enterTime:Math.floor(Ce/1e3)+"",requestId:null,enterUrl:(se=(X=window?.location)===null||X===void 0?void 0:X.href)!==null&&se!==void 0?se:""},reportLayId:!1})},[Et]),Ri=ae(()=>pt(void 0,void 0,void 0,function*(){var q,X;const se=yield ee?.("v1/account",{method:"GET"});return Bt((q=se?.data)===null||q===void 0?void 0:q.chatLabsId),((X=se?.data)===null||X===void 0?void 0:X.consentResult)==="true"}),[ee]),Bi=ae(q=>pt(void 0,void 0,void 0,function*(){const X=yield ee?.("v1/account/consent",{method:"POST",body:{consentResult:q}});return X?.success}),[ee]);ue(()=>{wt||Vi()},[wt]),ue(()=>{if(wt||a)return;R(!0);let q,X;At().then(se=>{var Oe,ye,Se,Ce,ze,Re,O,Z,K,ne,ce;if(se){const Ae=Ct(se);let le,he;if(se?.layoutVariantId){q=se?.layoutVariantId,ht(se?.layoutVariantId);const Ee=(ye=(Oe=se?.layoutVariantId)===null||Oe===void 0?void 0:Oe.split("-"))===null||ye===void 0?void 0:ye[1];Ee&&(le=w?.find(ie=>ie?.id===Ee),le?(te(le),document.title=(Se=le?.name)!==null&&Se!==void 0?Se:"home",he=(ze=(Ce=le?.data)===null||Ce===void 0?void 0:Ce.sxpPageConf)===null||ze===void 0?void 0:ze.globalConfig,ge(he),P?.(le?.data),!((K=(Z=(O=(Re=he?.consent)===null||Re===void 0?void 0:Re[0])===null||O===void 0?void 0:O.item)===null||Z===void 0?void 0:Z.props)===null||K===void 0)&&K.privacy_necessity&&We(!0)):We(!0))}else We(!0);if(Ge||(he?.playbook==="organic menu"||!he&&_?.playbook==="organic menu"?(gt("organicMenu"),Ae.unshift("organic menu"),X="organicMenu"):(gt("paidMedia"),X="paidMedia")),u(Ae),ve(Ae),zt(le??Tt),Ge){const Ee=Ae?.[0],ie=((ne=Ee?.video)===null||ne===void 0?void 0:ne.traceInfo)||((ce=Ee?.product)===null||ce===void 0?void 0:ce.traceInfo)||"";Et?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ie,branchfeed:Ge},q&&{layoutVariantId:q})}),Et?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ie,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-vt?.current)/1e3)+""},q&&{layoutVariantId:q})})}}}).finally(()=>{Et({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},q&&{layoutVariantId:q}),X&&{playbookType:X})}),R(!1)})},[wt,Ge]),ue(()=>{a&&(R(!0),zt(A),At().then(q=>{if(q){const X=Ct(q);_?.playbook==="organic menu"&&!Ge&&X.unshift("organic menu"),u(X),ve(X)}}).finally(()=>{R(!1)}))},[At,zt,Ge]);const $i=kt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return v.createElement(tl.Provider,{value:{rtcList:M,setRtcList:u,mutateLike:pi,mutateUnlike:Qt,submitForm:Xt,popupDetailData:$,loadVideos:ni,setPopupDetailData:oe,getRecommendVideos:At,bffEventReport:Et,isPreview:a,loading:j,sxpParameter:d,waterFallData:re,setWaterFallData:Q,ctaEvent:Pt,swiperRef:N,openHashtag:Te,setOpenHashtag:Pe,cacheRtcList:Ue,setCacheRtcList:ve,cacheActiveIndex:fe,setCacheActiveIndex:_e,isFromHashtag:qe,setIsFromHashtag:Ye,appDomain:s,hashTagSize:c,loadingImage:r??$i,isOpenHashTag:h,tagList:B,setLoading:R,videoRef:Ie,setVideoRef:tt,bffFbReport:oi,isAgreePolicy:U,setIsAgreePolicy:Y,curTime:et,h5EnterLink:Vi,themeTag:$e,isShowConsent:wt,selectTag:It,setSelectTag:Fe,globalConfig:_,popupCurTimeRef:H,checkCommodityIndexRef:pe,isEditor:x,isNoMoreData:J,updateChannel:qt,channel:Ge,eventTimeList:Ve,setEventTimeList:lt,multiPostTimeRef:vt,refreshFeSession:li,getAccount:Ri,accountSonsent:Bi,isDiyH5:C}},wt?v.createElement(uo,Object.assign({},(I=(D=(T=_?.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 il=je(vo);function Xe(){return xi(tl)}var nl;(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"})(nl||(nl={}));const ll=Ti({$store:{},options:[],configs:[]}),po=({children:t,isSsr:e,enable:i})=>{const[n,o]=G([]),{schema:l}=$t(),[a,d]=G(l.__STORE__||{}),[s,c]=G([]);ue(()=>{var f;e||Rn(s,l?.dataSource)||c((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const r=ae(()=>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)})}),o(y)};return ue(()=>{e||r()},[r,e,l]),i?v.createElement(ll.Provider,{value:{$store:l.__STORE__||a,options:n,configs:s}},t):t};var mo=je(po);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"},ol=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:()=>{}}),al=ri(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:l},a)=>{const[d,s]=G(null),[c,r]=G(n||{pointData:[Ui],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[h,f]=G([Ui]),[m,y]=G([[Ui]]),[g,x]=G([]),[p,b]=G(cn);typeof window<"u"&&(window.sxpPopup=(V,L)=>{b(Object.assign(Object.assign(Object.assign({},cn),{id:V}),L))}),typeof window<"u"&&(window.getJointUtmLink=V=>(so(),V?.indexOf("?")!==-1?V+(l?"&"+l:""):V+(l?"?"+l:""))),ue(()=>{y([c.pointData]),x([])},[c.type]);const A=ae(V=>{const L=fi(c);L&&(L.dataSource=V,r?.(L))},[c]),[w,C]=G();Ei(a,()=>({loadSchema(V){V&&(y([V.pointData]),r(V))},exportSchema(){return fi(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=me(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return v.createElement(ol.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(mo,{isSsr:i,enable:o},t))});var fo=Object.freeze({__proto__:null,EditorCore:al}),ho=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Ao=[{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 Mt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:o}=Xe(),l=ae((s,c,r,h,f,m)=>{var y,g,x,p,b,A,w,C,P,V,L,S,T,D,I,M,u,B,W,j,R,k,E,N,F,U,Y,$,oe,re,Q,Te,Pe,Ue,ve,fe,_e,qe;if(n?.findIndex(et=>et.target===s?.target)!==-1)return;s&&o?.(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:(L=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||L===void 0?void 0:L.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=(ve=(Pe=(oe=(U=m??r?.traceInfo)!==null&&U!==void 0?U:($=(Y=c?.video)===null||Y===void 0?void 0:Y.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&oe!==void 0?oe:(Te=(Q=(re=c?.video)===null||re===void 0?void 0:re.bindProducts)===null||Q===void 0?void 0:Q[0])===null||Te===void 0?void 0:Te.traceInfo)!==null&&Pe!==void 0?Pe:(Ue=c?.product)===null||Ue===void 0?void 0:Ue.traceInfo)!==null&&ve!==void 0?ve:(_e=(fe=c?.video)===null||fe===void 0?void 0:fe.bindCta)===null||_e===void 0?void 0:_e.traceInfo)!==null&&qe!==void 0?qe:""},$e&&{contentFormat:$e})})},[t,e,i,n]),a=ae((s,c,r,h,f)=>{var m,y,g,x,p,b,A,w,C,P,V,L,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=(L=(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&&L!==void 0?L:(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=ae((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:l,productView:a,backMainFeed:d}}const bo=({layout:t,columns:e,onChange:i})=>v.createElement(v.Fragment,null,e?.map((n,o)=>v.createElement("div",{key:o,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 go=je(bo);const yo=t=>{var e,i,{columns:n,style:o,title:l,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}=Mt(),[w,C]=G(!1),[P,V]=G({}),[L,S]=G(0),T=me(()=>[{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=me(()=>fi(n)||T,[n,T]),M=ae(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(Y=>{var $;return{name:Y,value:($=N[Y])!==null&&$!==void 0?$:""}}))===null||j===void 0?void 0:j.filter(Y=>Y?.value);if(!F||!F?.length)return;C(!0);const U=yield p?.({attributes:F});if(C(!1),U){if(h){const Y=b,$=(R=Y?.video)===null||R===void 0?void 0:R.bindProduct,oe=(E=(k=Y?.video)===null||k===void 0?void 0:k.bindProduct)===null||E===void 0?void 0:E.bindCta,re=b?.index;A(B,Y,$,oe,re)}f||y?.(),m?.()}}),1e3);return ue(()=>{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(l,a)}}),v.createElement("div",Object.assign({className:Be(Object.assign(Object.assign({},o),{marginTop:L}))},x),v.createElement("div",{className:"pb-appoint-form-container"},v.createElement(go,{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 wo=je(yo);function ft(t,e){return t.extend=e,t}const So=ft(wo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Ao,bindableProps:[],interactionRender:ho},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 xo=[{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 sl(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]:sl(e[i])&&sl(t[i])&&Object.keys(e[i]).length>0&&un(t[i],e[i])})}const rl={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,rl),t}const To={document:rl,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,To),t}function ei(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Eo(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 Io(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 ko(t,e){e===void 0&&(e="x");const i=Lt();let n,o,l;const a=Io(t);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(d=>d.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(o==="none"?"":o)):(l=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function Hi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Co(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&&!Co(n)){const o=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,a=o.length;l<a;l+=1){const d=o[l],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 dl(t){let{swiper:e,targetPosition:i,side:n}=t;const o=Lt(),l=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"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=l+m*(i-l);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})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.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 cl(t){const e=Lt(),i=Vt(),n=t.getBoundingClientRect(),o=i.body,l=t.clientTop||o.clientTop||0,a=t.clientLeft||o.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-l,left:n.left+s-a}}function Po(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 Oo(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 Lo(){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 ul(){return mn||(mn=Lo()),mn}let fn;function jo(t){let{userAgent:e}=t===void 0?{}:t;const i=ul(),n=Lt(),o=n.navigator.platform,l=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let r=l.match(/(iPad).*OS\s([\d_]+)/);const h=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!r&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let y=o==="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=l.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 vl(t){return t===void 0&&(t={}),fn||(fn=jo(t)),fn}let hn;function Mo(){const t=Lt(),e=vl();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 o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=n(),a=l||o&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:a,isWebView:o}}function No(){return hn||(hn=Mo()),hn}function Do(t){let{swiper:e,on:i,emit:n}=t;const o=Lt();let l=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(h=>{a=o.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()})}),l.observe(e.el))},c=()=>{a&&o.cancelAnimationFrame(a),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",d),o.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),o.removeEventListener("resize",d),o.removeEventListener("orientationchange",r)})}function Vo(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],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){o("observerUpdate",y[0]);return}const g=function(){o("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}),l.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=()=>{l.forEach(r=>{r.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Ro={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var l=arguments.length,a=new Array(l),d=0;d<l;d++)a[d]=arguments[d];e.apply(n,a)}return o.__emitterProxy=e,n.on(t,o,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((o,l)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),n=t):(e=l[0].events,i=l[0].data,n=l[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 Bo(){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 Fo(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:l,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Yt(o,`.${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 l>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*l: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 L;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){L=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)L=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")L=B+R+k;else{const{clientWidth:N,offsetWidth:F}=D;L=B+W+j+R+k+(F-N)}}M&&(D.style.transform=M),u&&(D.style.webkitTransform=u),i.roundLengths&&(L=Math.floor(L))}else L=(l-(i.slidesPerView-1)*A)/i.slidesPerView,i.roundLengths&&(L=Math.floor(L)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${L}px`);r[T]&&(r[T].swiperSlideSize=L),y.push(L),i.centeredSlides?(w=w+L/2+C/2+A,C===0&&T!==0&&(w=w-l/2-A),T===0&&(w=w-l/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+L+A),t.virtualSize+=L+A,C=L,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+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(L,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-l&&T.push(I)}f=T,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}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-l;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<l){const I=(l-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 Wo(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,l;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(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const d=e.activeIndex+l;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const d=i[l].offsetHeight;o=d>o?d:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function zo(){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 pl=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Uo(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:l}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;o&&(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-l[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)),pl(c,x,i.slideVisibleClass),pl(c,g,i.slideFullyVisibleClass),c.progress=o?-h:h,c.originalProgress=o?-f:f}}function Ho(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:o,isBeginning:l,isEnd:a,progressLoop:d}=e;const s=l,c=a;if(n===0)o=0,l=!0,a=!0;else{o=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;l=r||o<=0,a=h||o>=1,r&&(o=0),h&&(o=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:o,progressLoop:d,isBeginning:l,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!l||c&&!a)&&e.emit("fromEdge"),e.emit("progress",o)}const An=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Xo(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,l=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(l)if(i.loop){let h=o-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="${o}"]`);else a?(s=e.filter(h=>h.column===o)[0],r=e.filter(h=>h.column===o+1)[0],c=e.filter(h=>h.column===o-1)[0]):s=e[o];s&&(a||(r=Oo(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Po(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 o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.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),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=o,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 l=o+n-1;if(t.params.rewind||t.params.loop)for(let a=o-e;a<=l+e;a+=1){const d=(a%i+i)%i;(d<o||d>l)&&bn(t,d)}else for(let a=Math.max(o-e,0);a<=Math.min(l+e,i-1);a+=1)a!==o&&(a>l||a<o)&&bn(t,a)};function qo(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?o=l:n>=e[l]&&n<e[l+1]&&(o=l+1):n>=e[l]&&(o=l);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function Yo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:l,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=qo(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const m=Math.min(o.slidesPerGroupSkip,s);c=m+Math.floor((s-m)/o.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===l&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const h=e.grid&&o.grid&&o.grid.rows>1;let f;if(e.virtual&&o.virtual.enabled&&o.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/o.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:l,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 Go(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!o&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(o=d)});let l=!1,a;if(o){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===o){l=!0,a=d;break}}if(o&&l)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.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 Zo={updateSize:Bo,updateSlides:Fo,updateAutoHeight:Wo,updateSlidesOffset:zo,updateSlidesProgress:Uo,updateProgress:Ho,updateSlidesClasses:Xo,updateActiveIndex:Yo,updateClickedSlide:Go};function Ko(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:l}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let a=ko(l,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function _o(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:l,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,o.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,o.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:o.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),l.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 Jo(){return-this.snapGrid[0]}function Qo(){return-this.snapGrid[this.snapGrid.length-1]}function $o(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:a,wrapperEl:d}=l;if(l.animating&&a.preventInteractionOnTransition)return!1;const s=l.minTranslate(),c=l.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,l.updateProgress(r),a.cssMode){const h=l.isHorizontal();if(e===0)d[h?"scrollLeft":"scrollTop"]=-r;else{if(!l.support.smoothScroll)return dl({swiper:l,targetPosition:-r,side:h?"left":"top"}),!0;d.scrollTo({[h?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(f){!l||l.destroyed||f.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var ea={getTranslate:Ko,setTranslate:_o,minTranslate:Jo,maxTranslate:Qo,translateTo:$o};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 ml(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:l,previousIndex:a}=e;let d=n;if(d||(l>a?d="next":l<a?d="prev":d="reset"),e.emit(`transition${o}`),i&&l!==a){if(d==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),d==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function ia(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),ml({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),ml({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var la={setTransition:ta,transitionStart:ia,transitionEnd:na};function oa(t,e,i,n,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=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}=l;if(!y&&!n&&!o||l.destroyed||l.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const g=Math.min(l.params.slidesPerGroupSkip,a);let x=g+Math.floor((a-g)/l.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(l.initialized&&a!==h&&(!l.allowSlideNext&&(f?p>l.translate&&p>l.minTranslate():p<l.translate&&p<l.minTranslate())||!l.allowSlidePrev&&p>l.translate&&p>l.maxTranslate()&&(h||0)!==a))return!1;a!==(r||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(p);let b;if(a>h?b="next":a<h?b="prev":b="reset",f&&-p===l.translate||!f&&p===l.translate)return l.updateActiveIndex(a),d.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),d.effect!=="slide"&&l.setTranslate(p),b!=="reset"&&(l.transitionStart(i,b),l.transitionEnd(i,b)),!1;if(d.cssMode){const A=l.isHorizontal(),w=f?p:-p;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[A?"scrollLeft":"scrollTop"]=w})):m[A?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return dl({swiper:l,targetPosition:w,side:A?"left":"top"}),!0;m.scrollTo({[A?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(p),l.updateActiveIndex(a),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,b),e===0?l.transitionEnd(i,b):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,b))}),l.wrapperEl.addEventListener("transitionend",l.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 o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);const l=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let d;if(l){const f=a*o.params.grid.rows;d=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else d=o.getSlideIndexByData(a);const s=l?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let r=o.params.slidesPerView;r==="auto"?r=o.slidesPerViewDynamic():(r=Math.ceil(parseFloat(o.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&&o.params.slidesPerView!=="auto"&&!l&&(h=!1),h){const f=c?d<o.activeIndex?"prev":"next":d-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?d+1:d-s+1,slideRealIndex:f==="next"?o.realIndex:void 0})}if(l){const f=a*o.params.grid.rows;a=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,e,i,n)}),o}function sa(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:o,params:l,animating:a}=n;if(!o||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<l.slidesPerGroupSkip?1:d,c=n.virtual&&l.virtual.enabled;if(l.loop){if(a&&!c&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return l.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:o,snapGrid:l,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&&o.virtual.enabled;if(o.loop){if(c&&!r&&o.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=l.map(p=>f(p));let g=l[y.indexOf(m)-1];if(typeof g>"u"&&o.cssMode){let p;l.forEach((b,A)=>{m>=b&&(p=A)}),typeof p<"u"&&(g=l[p>0?p-1:p])}let x=0;if(typeof g<"u"&&(x=a.indexOf(g),x<0&&(x=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(x=x-n.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),o.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(o.loop&&n.activeIndex===0&&o.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 o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);let l=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,l),d=a+Math.floor((l-a)/o.params.slidesPerGroup),s=o.rtlTranslate?o.translate:-o.translate;if(s>=o.snapGrid[d]){const c=o.snapGrid[d],r=o.snapGrid[d+1];s-c>(r-c)*n&&(l+=o.params.slidesPerGroup)}else{const c=o.snapGrid[d-1],r=o.snapGrid[d];s-c<=(r-c)*n&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,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 o=t.clickedIndex,l;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Yt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),hi(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Yt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),hi(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var va={slideTo:oa,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 o=()=>{Yt(n,`.${i.slideClass}, swiper-slide`).forEach((h,f)=>{h.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(l?i.grid.rows:1),d=e.slides.length%a!==0,s=l&&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)");o()}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)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ma(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:l,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 l>"u"?l=s.getSlideIndex(c.filter(M=>M.classList.contains(m.slideActiveClass))[0]):C=l;const P=n==="next"||!n,V=n==="prev"||!n;let L=0,S=0;const T=b?Math.ceil(c.length/m.grid.rows):c.length,I=(b?c[l].column:l)+(y&&typeof o>"u"?-g/2+.5:0);if(I<p){L=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+L]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C+Math.ceil(L),0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else if(o){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),o&&(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:o,activeSlideIndex:l,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(o=>{const l=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[l]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),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 o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function fl(t,e,i){const n=Lt(),{params:o}=t,l=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return l&&(i<=a||i>=n.innerWidth-a)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function wa(t){const e=this,i=Vt();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){fl(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:a,enabled:d}=e;if(!d||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let s=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(f?ya(h,s):s.closest(h))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const m=a.currentX,y=a.currentY;if(!fl(e,n,m))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=y,o.touchStartTime=Ut(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let g=!0;s.matches(o.focusableElements)&&(g=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const x=g&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||x)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Sa(t){const e=Vt(),i=this,n=i.touchEventsData,{params:o,touches:l,rtlTranslate:a,enabled:d}=i;if(!d||!o.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){l.startX=r,l.startY=h;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:r,startY:h,currentX:r,currentY:h}),n.touchStartTime=Ut());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(h<l.startY&&i.translate<=i.maxTranslate()||h>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<l.startX&&i.translate<=i.maxTranslate()||r>l.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),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=r,l.currentY=h;const f=l.currentX-l.startX,m=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.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>o.touchAngle:90-P>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation();let y=i.isHorizontal()?f:m,g=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(y=Math.abs(y)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),l.diff=y,y*=o.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&&!o.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,o.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(l,{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=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),y>0?(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**C))):y<0&&(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,o.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),o.threshold>0)if(Math.abs(y)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.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 o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=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 hl(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:l}=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=o,t.allowSlideNext=n,t.params.watchOverflow&&l!==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 o;const l=t.maxTranslate()-t.minTranslate();l===0?o=0:o=(t.translate-t.minTranslate())/l,o!==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 Al=(t,e)=>{const i=Vt(),{params:n,el:o,wrapperEl:l,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!o||typeof o=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),o[s]("touchstart",t.onTouchStart,{passive:!1}),o[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)&&o[s]("click",t.onClick,!0),n.cssMode&&l[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",hl,!0):t[c]("observerUpdate",hl,!0),o[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),Al(t,"on")}function Pa(){Al(this,"off")}var Oa={attachEvents:Ca,detachEvents:Pa};const bl=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function La(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,l=n.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in l?l[a]:void 0)||t.originalParams,c=bl(t,n),r=bl(t,s),h=t.params.grabCursor,f=s.grabCursor,m=n.enabled;c&&!r?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(o.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&o.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 o=Lt(),l=e==="window"?o.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:l*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"?o.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(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function Da(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=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:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),o.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 o=t.slides.length-1,l=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*2;t.isLocked=t.size>l}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 o=Object.keys(n)[0],l=n[o];if(typeof l!="object"||l===null){Ft(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in l)){Ft(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),Ft(e,n)}}const wn={eventsEmitter:Ro,update:Zo,translate:ea,transition:la,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,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,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=ul(),d.device=vl({userAgent:i.userAgent}),d.browser=No(),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,o=Yt(i,`.${n.slideClass}, swiper-slide`),l=Ii(o[0]);return Ii(e)-l}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 o=n.minTranslate(),a=(n.maxTranslate()-o)*e+o;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 o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:l,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let h=l[c]?Math.ceil(l[c].swiperSlideSize):0,f;for(let m=c+1;m<l.length;m+=1)l[m]&&!f&&(h+=Math.ceil(l[m].swiperSlideSize),r+=1,h>s&&(f=!0));for(let m=c-1;m>=0;m-=1)l[m]&&!f&&(h+=l[m].swiperSlideSize,r+=1,h>s&&(f=!0))}else if(e==="current")for(let h=c+1;h<l.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 o(){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 l;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),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;l=e.slideTo(a.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.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 o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Yt(n,o())[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 o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(l=>{l.complete?Gi(i,l):l.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:o,el:l,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.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),Eo(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([Do,Vo]);const gl=["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 yl(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function wl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Sl(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function xl(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:o,nextEl:l,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=o.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;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(x=!0),o.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(p=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&h&&!h.el&&(b=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&m&&!m.el&&(A=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(r.navigation||r.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const L=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))};o.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&&L(S);else{const T=n[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&L(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),o.includes("children")&&i&&y&&r.virtual.enabled?(y.slides=i,y.update(!0)):o.includes("virtual")&&y&&r.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),o.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&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!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))),l&&(r.navigation.nextEl=l),a&&(r.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.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={},o={};bi(i,yn),i._emitClasses=!0,i.init=!1;const l={},a=gl.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]={},o[s]={},bi(i[s],t[s]),bi(o[s],t[s])):(i[s]=t[s],o[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]:l[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:o,rest:l,events:n}}function Xa(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:a,swiper:d}=t;yl(e)&&n&&o&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=o,d.originalParams.navigation.prevEl=o),wl(e)&&l&&(d.params.pagination.el=l,d.originalParams.pagination.el=l),Sl(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function qa(t,e,i,n,o){const l=[];if(!e)return l;const a=s=>{l.indexOf(s)<0&&l.push(s)};if(i&&n){const s=n.map(o),c=i.map(o);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return gl.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)}),l}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 Tl(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function El(t){const e=[];return v.Children.toArray(t).forEach(i=>{Tl(i)?e.push(i):i.props&&i.props.children&&El(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(Tl(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 o=El(n.props.children);o.length>0?o.forEach(l=>e.push(l)):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},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,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>=l&&r<=a&&c.push(e[n(r)]);return c.map((r,h)=>v.cloneElement(r,{swiper:t,style:o,key:r.props.virtualIndex||r.key||`slide-${h}`}))}function ki(t,e){return typeof window>"u"?ue(t,e):ql(t,e)}const Tn=Ti(null),Ci=()=>xi(Tn),Ka=Ti(null),Kt=ri(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:l,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=G("swiper"),[h,f]=G(null),[m,y]=G(!1),g=de(!1),x=de(null),p=de(null),b=de(null),A=de(null),w=de(null),C=de(null),P=de(null),V=de(null),{params:L,passedParams:S,rest:T,events:D}=Ha(d),{slides:I,slots:M}=Ga(l),u=()=>{y(!m)};Object.assign(L.on,{_containerClasses(k,E){r(E)}});const B=()=>{Object.assign(L.on,D),s=!0;const k={...L};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])})};ue(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",u)}),ue(()=>{!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},L),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 L.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:xl(`${c}${i?` ${i}`:""}`)},T),v.createElement(Ka.Provider,{value:p.current},M["container-start"],v.createElement(o,{className:za(L.wrapperClass)},M["wrapper-start"],R(),M["wrapper-end"]),yl(L)&&v.createElement(v.Fragment,null,v.createElement("div",{ref:C,className:"swiper-button-prev"}),v.createElement("div",{ref:w,className:"swiper-button-next"})),Sl(L)&&v.createElement("div",{ref:V,className:"swiper-scrollbar"}),wl(L)&&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:o="",swiper:l,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const h=de(null),[f,m]=G("swiper-slide"),[y,g]=G(!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||!l)){if(l.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",x),()=>{l&&l.off("_slideClass",x)}}}),ki(()=>{l&&h.current&&!l.destroyed&&m(l.getSlideClasses(h.current))},[l]);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:xl(`${f}${o?` ${o}`:""}`),"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:o}=t;const l=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)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.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,L=P.clientHeight,S=a.innerWidth,T=a.innerHeight,D=cl(P);h&&(D.left-=P.scrollLeft);const I=[[D.left,D.top],[D.left+V,D.top],[D.left,D.top+L],[D.left+V,D.top+L]];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()),o("keyPress",m)}}function s(){e.keyboard.enabled||(l.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.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:o}=t;const l=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,L=0,S=0,T=0;return"detail"in A&&(L=A.detail),"wheelDelta"in A&&(L=-A.wheelDelta/120),"wheelDeltaY"in A&&(L=-A.wheelDeltaY/120),"wheelDeltaX"in A&&(V=-A.wheelDeltaX/120),"axis"in A&&A.axis===A.HORIZONTAL_AXIS&&(V=L,L=0),S=V*10,T=L*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&&!L&&(L=T<1?-1:1),{spinX:V,spinY:L,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(),o("scroll",A.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",A.raw)),d=new l.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 L=V&&V.contains(w.target);if(!e.mouseEntered&&!L&&!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||o("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(o=>{if(!i[o]&&i.auto===!0){let l=Yt(t.el,`.${n[o]}`)[0];l||(l=Ai("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function kn(t){let{swiper:e,extendParams:i,on:n,emit:o}=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 l(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(),o("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("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=l(y.nextEl),x=l(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)),o(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:o}=t;const l="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:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-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 L=e.pagination.bullets;let S,T,D;if(b.dynamicBullets&&(a=pn(L[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(L.length,b.dynamicMainBullets)-1),D=(T+S)/2),L.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)L.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=L[w];if(I&&I.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&L.forEach((M,u)=>{M.setAttribute("part",u===w?"bullet-active":"bullet")}),b.dynamicBullets){const M=L[S],u=L[T];for(let B=S;B<=T;B+=1)L[B]&&L[B].classList.add(...`${b.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(u,"next")}}if(b.dynamicBullets){const I=Math.min(L.length,b.dynamicMainBullets+4),M=(a*I-a)/2-D*a,u=p?"right":"left";L.forEach(B=>{B.style[e.isHorizontal()?u:"top"]=`${M}px`})}}A.forEach((L,S)=>{if(b.type==="fraction"&&(L.querySelectorAll(_t(b.currentClass)).forEach(T=>{T.textContent=b.formatFractionCurrent(w+1)}),L.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,L.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?(L.innerHTML=b.renderCustom(e,w+1,V),S===0&&o("paginationRender",L)):(S===0&&o("paginationRender",L),o("paginationUpdate",L)),e.params.watchOverflow&&e.enabled&&L.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"&&o("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);o(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:o}=t;const l=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)-cl(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"),o("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",o("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)),o("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),l[k]("pointermove",A,j),l[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 L(){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=l.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():(L(),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)),L(),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:L,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 o=null,l,a,d=new Date().getTime();function s(j){const R=o;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 L(){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)&&(l=!0),e.a11y.clicked=!0},D=()=>{l=!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(()=>{l||(e.params.loop?e.slideToLoop(parseInt(R.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(R),0),l=!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(o);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(oe=>{oe.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(){o&&o.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",()=>{o=Ai("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.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&&L()}),n("destroy",()=>{e.params.a11y.enabled&&W()})}function Oi(t){let{swiper:e,extendParams:i,on:n,emit:o,params:l}=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=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.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,o("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),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),o("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(),o("autoplayStart")},L=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),o("autoplayStop")},S=(R,k)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),R||(p=!0);const E=()=>{o("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,o("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&&L()}),n("_freeModeStaticRelease",()=>{(y||p)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?L():S(!0,!0)}),n("beforeTransitionStart",(R,k,E)=>{e.destroyed||!e.autoplay.running||(E||!e.params.autoplay.disableOnInteraction?S(!0,!0):L())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){L();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:L,pause:S,resume:T})}function Ja(t){let{swiper:e,extendParams:i,emit:n,once:o}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){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 L=y.velocities.pop(),S=y.velocities.pop(),T=L.position-S.position,D=L.time-S.time;e.velocity=T/D,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(D>150||Ut()-L.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 L;for(let S=0;S<m.length;S+=1)if(m[S]>-A){L=S;break}Math.abs(m[L]-A)<Math.abs(m[L-1]-A)||e.swipeDirection==="next"?A=m[L]:A=m[L-1],A=-A}if(V&&o("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 L=Math.abs((f?-A:A)-e.translate),S=e.slidesSizesGrid[e.activeIndex];L<S?p=r.speed:L<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:l,onTouchMove:a,onTouchEnd:d}})}const Qa=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const o=de(),{popupDetailData:l}=Xe();return ue(()=>{var a,d;n&&((a=o?.current)===null||a===void 0||a.swiper.slideTo((d=l?.multiCheckIndex)!==null&&d!==void 0?d:0))},[l,n]),v.createElement(Kt,{role:"list",tag:"ul",ref:o,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:o,className:l,loading:a,alt:d="image"}=t,[s,c]=G(i),r=de(null),[h,f]=G(!1);return Ei(e,()=>({setSrc:m=>{m&&c(m)}})),ue(()=>{i&&c(i)},[i]),ue(()=>{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:l,src:s,style:Object.assign({},o),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d})):v.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d}))});var Nt=je($a);const es=({products:t,data:e,defImg:i,style:n,onCLick:o,popupDetailData:l,check:a})=>{var d;const{productView:s}=Mt(),{popupCurTimeRef:c}=Xe(),r=(h,f)=>{if(a===f)return;const m=t?.[a];s(l,m,m?.bindCta,c.current,l?.index),o?.(f)};return v.createElement(v.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&v.createElement(Li,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=l?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(Nt,{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 Il=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:o,popup:l,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,L,S,T,D,I,M,u,B,W,j;const R=de(null),k=de(null),E=de(null),N=de(null),F=de(null),U=d*.2,Y=s?d:d*.8,[$,oe]=G(U),[re,Q]=G(!1),Te=de(null),{globalConfig:Pe,popupDetailData:Ue}=Xe(),{schema:ve,popup:fe}=$t(),[_e,qe]=G(15);ue(()=>{const pe=document.getElementById("sxp-render"),H=document.getElementById("pb-modal");H?Te.current=H:(Te.current=document.createElement("div"),Te.current.setAttribute("id","pb-modal"),pe?.appendChild(Te.current))},[]);const Ye=me(()=>l?.id&&l?.id!==""||t,[t,l]),Ie=me(()=>{var pe,H,J;const be=a??ve;return(J=(H=(pe=be?.sxpPageConf)===null||pe===void 0?void 0:pe.globalConfig)===null||H===void 0?void 0:H.popupList)===null||J===void 0?void 0:J.find(ge=>ge?.id===l?.id)},[l,a,ve]),tt=me(()=>{var pe,H;return((H=(pe=Ie?.item)===null||pe===void 0?void 0:pe.event)===null||H===void 0?void 0:H.isScrollFullScreen)||!1},[Ie]);ue(()=>{Ye?Q(!0):setTimeout(()=>{Q(!1),oe(U)},l?.duration)},[Ye,l]);const $e=ae(()=>i,[fe,c,Pe,a]);if(ue(()=>{const pe=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],_=J?.[J?.length-1],ge=9;H.addEventListener("keydown",function(we){(we.key==="Escape"||we.key==="Esc")&&(et(),we.preventDefault());var te=we.key==="Tab"||we.keyCode===ge;te&&(we.shiftKey?document?.activeElement===be&&(_?.focus(),we.preventDefault()):document?.activeElement===_&&(be?.focus(),we.preventDefault()))}),be?.focus()};return F?.current&&pe(F?.current),()=>{var H;(H=F?.current)===null||H===void 0||H.removeEventListener("keydown",pe)}},[F,re,fe]),!Te.current)return null;const et=Si(()=>{e?.()},300),vt=pe=>{R.current=pe.touches[0],k.current=pe.touches[0],E.current=!0},It=pe=>{requestAnimationFrame(()=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const J=pe.touches[0].clientY,be=pe.touches[0].clientX,_=R.current.clientY-J;R.current=pe.touches[0];const ge=J-k.current.clientY,we=be-k.current.clientX;if(Math.abs(we)>Math.abs(ge))return;const te=$-_;te>0&&oe(te)}})},Fe=pe=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const J=pe.changedTouches[0].clientY-k.current.clientY,be=pe.changedTouches[0].clientX-k.current.clientX;if(Math.abs(be)>Math.abs(J))return;const _=k.current.clientY-R.current.clientY;_>0?oe(0):$<U&&_<0?oe(U):$>=U&&_<0&&e?.()}E.current=!1};return zn.createPortal(v.createElement(v.Fragment,null,re&&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=(L=(V=(P=Ie?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||L===void 0?void 0:L.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:o,animationDuration:((D=l?.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:pe=>{pe.stopPropagation(),pe.preventDefault()}},tt&&{onTouchMove:It,onTouchStart:vt,onTouchEnd:Fe}),v.createElement("div",Object.assign({id:"modal-content",ref:N,style:{height:tt?d:Y,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:pe=>{var H;qe(15-((H=pe?.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"})))))),Te.current)};var gi=je(is);const ns=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=G(!1),[h,f]=G(!1),m=i||{},{lineClamp:y}=m,g=rt(m,["lineClamp"]),x=Number(y||2),p=de(null),b=de(null),A=de(),w=()=>{r(!c)},C=ae(()=>{!p.current||!b.current||!d||!t||c||requestAnimationFrame(()=>{const P=p.current.getBoundingClientRect().height,V=b.current.getBoundingClientRect().height,L=P>V+1;f(L)})},[d,t,c]);return ue(()=>{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"}),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%)"},dangerouslySetInnerHTML:{__html:De(t?.replace(/\n/g,"</br>"),g)}}),t&&d&&h&&v.createElement("button",{"aria-label":c?a||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:o??w,dangerouslySetInnerHTML:{__html:De(c?a||"show less":l||"show more",g)}}))};var ji=je(ns);const ls=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},os=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Mi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:o})=>{var l,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=(l=t?.currency)===null||l===void 0?void 0:l.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:o?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${x}</span>`,m=De(m,o),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,o,l,a,d,s,c,r,h,f,m,y,g,x,p,b,A,w,C,P,V,L,{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:Y,popupBg:$,iframeIcon:oe,commodityImgRatio:re,isTel:Q,iframeBgColor:Te,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:ve,popupDetailData:fe,isPreview:_e,bffFbReport:qe,popupCurTimeRef:Ye,checkCommodityIndexRef:Ie,globalConfig:tt}=Xe(),{jumpToWeb:$e,productView:et}=Mt(),vt=de(null),[It,Fe]=G(!1),[pe,H]=G(!1),[J,be]=G((e=fe?.multiCheckIndex)!==null&&e!==void 0?e:0),_=de(),[ge,we]=G(0),te=j?k:fe;let z=j?te?.product:(n=(i=te?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(l=(o=te?.video)===null||o===void 0?void 0:o.bindProducts)===null||l===void 0?void 0:l[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:fe?.index;if(!j&&Y?.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))};ue(()=>{Pe&&(qe?.({eventName:"ProductView",product:z}),qe?.({eventName:"PageView",product:z}))},[Pe,qe]),ue(()=>{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,Ve=re?it*(re.h/re.w):it,lt=({isPost:ee})=>{var Je,At,ni,li;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:(li=z?.info)!==null&&li!==void 0?li:`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 Hl}from"uuid";import Xl from"pako";import v,{useContext as xi,useMemo as me,memo as je,useEffect as ue,createContext as Ti,useState as G,useRef as de,useCallback as ae,forwardRef as ri,useImperativeHandle as Ei,useLayoutEffect as ql}from"react";import Wn from"qs";import Yl from"eventemitter3";import{css as Be}from"@emotion/css";import*as zn from"react-dom";import Gl 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 o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function pt(t,e,i,n){function o(l){return l instanceof i?l:new i(function(a){a(l)})}return new(i||(i=Promise))(function(l,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?l(r.value):o(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Zl=/:\w+/g;var Un=(t,e)=>pt(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:l,method:a,url:d,urlParams:s,name:c,queryString:r,headers:h,body:f}=e[o];let m=d;s&&Object.entries(s).forEach(([y,g])=>{m=m.replace(Zl,x=>x===y?g:x)}),r&&(m+=r),n[l]=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[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const Hn="SXP_TOKEN_INFO",Kl=(t,e)=>pt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=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(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).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 o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(l=0|Math.random()*16,n[o]=i[o===19?l&3|8:l])}return n.join("")}const _l=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},Jl=()=>{const t=Hl();return t?.replaceAll?t.replaceAll("-",""):_l(32)},De=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],o=e?.["fontFamily-en"];if(!n&&!o)return t;let l=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${o??"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>`,l=f.substring(y,f?.length)),m!==-1&&y!==-1&&m>y&&(i+=`<span style="${c}">${f.substring(y,m)}</span>`,l=f.substring(m,f?.length)),m===-1?(i+=`<span style="${c}">${f.substring(y,f?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${s}">${f.substring(m,f?.length)}</span>`,l="",!1):!0};let h=!0;for(;h;)h=r(l);return i};function Xn(t){const i=document.cookie.split(";");let n=null;return i.forEach(o=>{const[l,a]=o.trim().split("=");l===t&&(n=a)}),n??""}function on(){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 o=0;o<t.length;o++){const l=t[o],a=t.substring(o+1,t.length);l==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(o)}const i=e.length>0?[]:[t];let n=0;return e?.map(o=>{i?.push(t.substring(n,o)),n=o+1,o===e[e.length-1]&&o<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function qn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=Xl.inflate(n,{to:"string"});return JSON.parse(o)}let an=null;const Ql={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class $l{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?Ql[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Ot=null;const eo={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{Ot||(Ot=new $l),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(o=>pt(void 0,void 0,void 0,function*(){var l,a;const d=yield o.json(),s=qn((l=d?.data)===null||l===void 0?void 0:l.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(o=>pt(void 0,void 0,void 0,function*(){var l;const a=yield o.json();return a.success?(l=a?.data)===null||l===void 0?void 0:l.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 Kl(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 o=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(l=>l.json());return o?.data||null})};function $t(){return xi(ol)}function to(){return xi(ll)}const sn="feRealSessionIdKey",Yn=()=>{const t=Jl();return`${Date.now()}${t}`},io=()=>{let t=no();return t||(t=Yn(),window.localStorage.setItem(sn,t)),t},rn=()=>{const t=Yn();window.localStorage.setItem(sn,t)},no=()=>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",lo=()=>{let t=window.localStorage.getItem(Gn);return si(t)&&(t=Wi(36,62),window.localStorage.setItem(Gn,t)),t},oo=()=>{const t=window.localStorage.getItem(Zn);return si(t)&&window.localStorage.setItem(Zn,"true"),si(t)},ao=()=>{const t=window.localStorage.getItem(_n);return si(t)},so=()=>{window.localStorage.setItem(_n,"true")},ro=()=>{const t=window.localStorage.getItem(Jn);return si(t)&&window.localStorage.setItem(Jn,"true"),si(t)},$n=()=>window.localStorage.getItem(Qn)==="true",el=()=>{window.localStorage.setItem(Qn,"true")};function kt(t,e){const{appDomain:i}=Xe();return me(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const xt=new Yl;var bt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(bt||(bt={}));const co=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:o,privacy_policy_title:l})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Xe(),s=me(()=>{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};ue(()=>{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:o?`https://${o}`:void 0},l??"More information"))))};var uo=je(co);const tl=Ti({rtcList:[],tagList:[]});var dn;(function(t){t[t.BFF=5]="BFF"})(dn||(dn={}));const zi="FOR U",vo=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,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 L,S,T,D,I;const[M,u]=G([]),[B,W]=G([]),[j,R]=G(!0),[k,E]=G({rtc:"",requestId:""}),N=de(null),F=de(!1),[U,Y]=G(()=>!!window.localStorage.getItem(Kn)),[$,oe]=G(),[re,Q]=G(),[Te,Pe]=G(h),[Ue,ve]=G([]),[fe,_e]=G(0),[qe,Ye]=G(!1),[Ie,tt]=G(null),$e=de(),et=de(),vt=de(),[It,Fe]=G(zi),pe=de(-1),H=de(null),[J,be]=G(!1),[_,ge]=G((S=(L=A?.data)===null||L===void 0?void 0:L.sxpPageConf)===null||S===void 0?void 0:S.globalConfig),[we,te]=G(),[z,We]=G(!1),[nt,ht]=G(),[Ge,it]=G(),[Ve,lt]=G([]),[ct,gt]=G(),[Rt,Bt]=G(),Tt=me(()=>we??A,[we,A]),wt=me(()=>{var q,X,se,Oe;return(((Oe=(se=(X=(q=_?.consent)===null||q===void 0?void 0:q[0])===null||X===void 0?void 0:X.item)===null||se===void 0?void 0:se.props)===null||Oe===void 0?void 0:Oe.privacy_necessity)&&!U&&!x||g)&&z},[U,_,g,x,z]),qt=ae(q=>{V?.(q),it(q)},[]),Ct=ae(q=>{var X;const se=q?.recList;return(X=se?.map(ye=>{var Se,Ce,ze,Re,O,Z;if(!((Se=ye?.video)===null||Se===void 0)&&Se.bindProducts&&((ze=(Ce=ye?.video)===null||Ce===void 0?void 0:Ce.bindProducts)===null||ze===void 0?void 0:ze.length)>0){const K=(Z=(O=(Re=ye?.video)===null||Re===void 0?void 0:Re.bindProducts)===null||O===void 0?void 0:O.filter(ne=>!!ne?.bindCta))!==null&&Z!==void 0?Z:[];return Object.assign(Object.assign({},ye),{video:Object.assign(Object.assign({},ye?.video),{bindProducts:K})})}return ye}))!==null&&X!==void 0?X:[]},[]);ue(()=>{let q;return Ve.length>0&&(q=setInterval(()=>{const se=new Date,Oe=15*1e3;lt(ye=>ye.filter(Se=>se-Se.time<=Oe))},1e3)),()=>{clearInterval(q)}},[Ve]),ue(()=>{const q=X=>{$e.current=X};return xt.on(bt.CHANGE_THEME_TAG,q),()=>{xt.off(bt.CHANGE_THEME_TAG,q)}},[]),ue(()=>{Pe(h)},[h]);const Ke=me(()=>e?.find(q=>q.type===dn.BFF),[e]),ke=me(()=>{var q;return((q=Ke?.headers)===null||q===void 0?void 0:q["x-app-id"])+lo()},[Ke]),ee=ae((q,X)=>{var se,Oe;if(!Ke)return;const ye=Ke.url;if(X?.query){const O=Wn.stringify(X.query);q=`${q}?${O}`}let Se=!1;const Ce={},ze=location.search.slice(1);(se=di(ze))===null||se===void 0||se.forEach(O=>{const Z=O.split("=")[0],K=O.split("=")[1];Ce[Z]=K});const Re=Ce?.cl_source;return Re&&(!((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(Re))&&(Se=!0),X.type==="beacon"&&navigator.sendBeacon&&!Se?navigator.sendBeacon(`${ye}/api/${q}`,new Blob([JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},X.body),Ke.headers),{"x-user-id":ke}))))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${ye}/api/${q}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":ke},Ke.headers),method:X.method,body:JSON.stringify(Se?{body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},X.body),Ke.headers),{"x-user-id":ke}))))}:X.body)},Se&&{keepalive:!0})).then(O=>O.json()).catch(O=>Promise.reject(O))},[Ke,ke]),Je=ae((q,X)=>{if(!Ke)return;const se=Ke.url;if(X?.query){const Oe=Wn.stringify(X.query);q=`${q}?${Oe}`}return window.fetch(`${se}/admin/${q}`,{headers:Object.assign({"Content-Type":"application/json"},Ke.headers),method:X.method,body:JSON.stringify(X.body)}).then(Oe=>Oe.json()).catch(Oe=>Promise.reject(Oe))},[Ke]),At=ae(q=>pt(void 0,void 0,void 0,function*(){var X,se,Oe,ye,Se,Ce,ze,Re,O,Z,K,ne,ce,Ae;if(q=Object.assign(Object.assign({maxSize:(X=q?.maxSize)!==null&&X!==void 0?X:o,defaultSize:(se=q?.defaultSize)!==null&&se!==void 0?se:l,hashTag:q?.hashTag,traceInfo:q?.traceInfo,themeTag:q?.themeTag,pageNum:q?.pageNum,contentFilter:q?.contentFilter,productFilter:q?.productFilter},Rt&&{chatlabsId:Rt}),C&&{type:"story"}),Ge)q=Object.assign(Object.assign({},q),{channel:decodeURIComponent(Ge)});else if(i){const he=(Se=(ye=(Oe=di(i))===null||Oe===void 0?void 0:Oe.filter(Ee=>{var ie,He;const xe=Ee.split("=")[0];return(He=(ie=p?.channels)!==null&&ie!==void 0?ie:[])===null||He===void 0?void 0:He.includes(xe)}))===null||ye===void 0?void 0:ye.join("&"))!==null&&Se!==void 0?Se:"";he&&(q=Object.assign(Object.assign({},q),{channel:decodeURIComponent(he)}))}if(x){let he=1;if(q=Object.assign(Object.assign(Object.assign({},q),{directPage:!0,level:1}),!i&&b&&b?.length>0&&{channel:b?.[0]}),!q?.channel||F.current)return;F.current=!0;let Ee=[],ie=null;const He=xe=>pt(void 0,void 0,void 0,function*(){var Me,dt,at,ot,st,mt;if(xe.pageNum=he,ie=yield Je?.("recommend/direct_page",{method:"POST",body:xe}),!ie?.success)return;R(!1),Ee=Ee.concat((ot=(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&&ot!==void 0?ot:[]),M?.length===0&&(u(Ct(Object.assign(Object.assign({},ie?.data),{recList:Ee}))),ve(Ct(Object.assign(Object.assign({},ie?.data),{recList:Ee})))),((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))&&(he=he+1,yield He(xe))});return yield He(q),!q?.hashTag&&ie&&E({rtc:(Ce=ie?.data)===null||Ce===void 0?void 0:Ce.rtc,requestId:(ze=ie?.data)===null||ze===void 0?void 0:ze.requestId}),Object.assign(Object.assign({},ie?.data),{recList:Ee})}_?.enablePreview&&(q=Object.assign(Object.assign({},q),{directPage:!0,level:1,pageNum:(Re=q?.pageNum)!==null&&Re!==void 0?Re:1}));const le=yield ee?.("v1/recommend/list",{method:"POST",body:q});if(le?.success){if(q?.hashTag||E({rtc:le.data.rtc,requestId:le.data.requestId}),_?.enablePreview&&!x){let he=[];return he=he.concat((ne=(K=(Z=(O=le?.data)===null||O===void 0?void 0:O.recList)===null||Z===void 0?void 0:Z.filter)===null||K===void 0?void 0:K.call(Z,ie=>ie?.product||ie?.video))!==null&&ne!==void 0?ne:[]),((Ae=(ce=le?.data)===null||ce===void 0?void 0:ce.recList)===null||Ae===void 0?void 0:Ae.some(ie=>ie?.product||ie?.video))||be(!0),Object.assign(Object.assign({},le.data),{recList:he})}return le?.data}}),[ee,i,o,l,b,Ge,Rt,Je]),ni=ae(q=>pt(void 0,void 0,void 0,function*(){var X,se,Oe,ye;if(M.length<=0)return;const Se=M?.[M?.length-1],Ce=yield At(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:re?.hashTag},((X=Se?.product)===null||X===void 0?void 0:X.itemId)&&{productFilter:[(se=Se?.product)===null||se===void 0?void 0:se.itemId]}),((Oe=Se?.video)===null||Oe===void 0?void 0:Oe.itemId)&&{contentFilter:[(ye=Se?.video)===null||ye===void 0?void 0:ye.itemId]}),{themeTag:$e.current}),_?.enablePreview&&!x&&{pageNum:q}));return u(M.concat(Ct(Ce))),ve(Ue.concat(Ct(Ce))),Ce}),[At,M,re,Ue]),li=ae((q,X)=>{var se,Oe,ye,Se,Ce;let ze=!1;const Re=(Oe=(se=A?.data)===null||se===void 0?void 0:se.sxpPageConf)===null||Oe===void 0?void 0:Oe.globalConfig;if(!((ye=Re?.session)===null||ye===void 0)&&ye.enable){const O=localStorage.getItem("sessionStartTime"),Z=O?JSON.parse(O):new Date().getTime();Math.floor((new Date().getTime()-Z)/1e3/60)>=((Ce=(Se=Re?.session)===null||Se===void 0?void 0:Se.expires)!==null&&Ce!==void 0?Ce:30)&&(X?.("sessionTimeOut"),rn(),et.current=new Date,ze=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else q&&rn();return ze},[A]),Et=ae(({userInfo:q,eventInfo:X,reportLayId:se=!0})=>{var Oe,ye;if(!n||_?.enablePreview)return;q||(q={});const Se=io(),Ce={},ze=location.search.slice(1);(Oe=di(ze))===null||Oe===void 0||Oe.forEach(ne=>{const ce=ne.split("=")[0],Ae=ne.split("=")[1];Ce[ce]=Ae});const Re=Ce?.cl_source,O=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Se,rtc:k.rtc,requestId:k.requestId},{playbookType:ct}),nt&&se&&{layoutVariantId:nt}),X),X?.position&&Ge&&{position:Number(X?.position)+1+""}),Re&&{clSource:Re}),Z=Object.entries(q).map(([ne,ce])=>({name:ne,value:ce})),K=Object.entries(O).map(([ne,ce])=>ce&&{name:ne,value:ce}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",q),console.log("eventInfo:",O),console.log("========= \u7ED3\u675F ========="),ee?.(`v2/cld/${(ye=Ke?.headers)===null||ye===void 0?void 0:ye["x-app-id"]}/${X?.eventSubject}${Re?`/${decodeURIComponent(Re)}`:""}`,{method:"POST",body:{userInfo:Z,eventInfo:K},type:"beacon"})},[ee,k,n,_?.enablePreview,nt,_,ct,Ke]),vi=ae((q,X)=>{var se,Oe,ye;const Se=fi(q),Ce=new URLSearchParams(window.location.search),ze=Ce?.get("fbclid"),Re={event_source_url:(se=window?.location)===null||se===void 0?void 0:se.href,external_id:ke,client_user_agent:(ye=(Oe=window?.navigator)===null||Oe===void 0?void 0:Oe.userAgent)!==null&&ye!==void 0?ye:"",fbc:ze?`fb.2.${new Date().getTime()}.${ze}`:"",fbp:Xn("_fbp")?`${Xn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},O=/\{\{(.*?)\}\}/g,Z=K=>{if(K){if(K instanceof Array)K?.map(ne=>Z(ne));else for(const ne in K)if(Object.prototype.hasOwnProperty.call(K,ne)){const ce=K?.[ne];if(typeof ce=="object")Z(ce);else if(typeof ce=="string"){const Ae=ce?.match(O);Ae&&Ae.forEach(le=>{var he;const Ee=le.substring(2,le.length-2);try{let ie=new Function("fix_par","product",`return ${Ee}`)(Re,X);ie?(Ee?.indexOf("currency")!==-1&&ie?.indexOf("-")!==-1&&typeof ie=="string"&&(ie=(he=ie?.split("-"))===null||he===void 0?void 0:he[0]),K[ne]=ie):delete K[ne]}catch(ie){delete K[ne],console.error("An error occurred:",ie?.message)}})}}}};return Z(Se),Se},[ke]),oi=ae(({eventName:q,product:X})=>{var se,Oe,ye,Se;if(!n||_?.enablePreview)return;const Ce=(se=_?.pixel)===null||se===void 0?void 0:se[q];if(Ce?.event_name&&typeof window?.fbq=="function"){let Re=function(O,Z,K){const ne=new RegExp("([?&])"+Z+"=.*?(&|$)","i"),ce=O.indexOf("?")!==-1?"&":"?";return O.match(ne)?O.replace(ne,"$1"+Z+"="+K+"$2"):O+ce+Z+"="+K};if(q==="PageView"&&Ce?.event_name==="PageView"){const O=window.location.href,Z=Re(O,"timestamp",Date.now());history.pushState({path:Z},"",Z)}else{const O=vi(Ce);window?.fbq("track",Ce?.event_name,O),q==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view")}}else q==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const ze=(Oe=_?.converApi)===null||Oe===void 0?void 0:Oe[q];if(f&&ze){const Re=vi(ze,X),O={},Z=location.search.slice(1);(ye=di(Z))===null||ye===void 0||ye.forEach(ne=>{const ce=ne.split("=")[0],Ae=ne.split("=")[1];O[ce]=Ae});const K=O?.cl_source;ee?.(`v2/fb/${(Se=Ke?.headers)===null||Se===void 0?void 0:Se["x-app-id"]}/${q}${K?`/${decodeURIComponent(K)}`:""}`,{method:"POST",body:Re,type:"beacon"})}},[ee,n,f,_,Ke,vi]),pi=ae(q=>pt(void 0,void 0,void 0,function*(){const X=yield ee?.("v1/recommend/like",{method:"POST",body:q});return X?.success}),[ee]),Qt=ae(q=>pt(void 0,void 0,void 0,function*(){const X=yield ee?.("v1/recommend/unlike",{method:"POST",body:q});return X?.success}),[ee]),Xt=ae(q=>pt(void 0,void 0,void 0,function*(){const X=yield ee?.("v1/customform",{method:"POST",body:q});return X?.success}),[ee]),zt=ae(q=>pt(void 0,void 0,void 0,function*(){var X,se,Oe,ye,Se,Ce,ze,Re;const O=!!(!((Oe=(se=(X=q?.data)===null||X===void 0?void 0:X.sxpPageConf)===null||se===void 0?void 0:se.globalConfig)===null||Oe===void 0)&&Oe.isShowTag);if(!(!i||!O))try{const Z=(Ce=(Se=(ye=di(i))===null||ye===void 0?void 0:ye.filter(ne=>{var ce,Ae;const le=ne.split("=")[0];return(Ae=(ce=p?.channels)!==null&&ce!==void 0?ce:[])===null||Ae===void 0?void 0:Ae.includes(le)}))===null||Se===void 0?void 0:Se.join("&"))!==null&&Ce!==void 0?Ce:"",K=yield ee?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Z)}});W((Re=(ze=K?.data)===null||ze===void 0?void 0:ze.tags)!==null&&Re!==void 0?Re:[])}catch(Z){console.log("e",Z)}}),[ee,i]),Pt=ae((q,X,se,Oe)=>{var ye,Se,Ce,ze,Re,O,Z,K,ne,ce,Ae,le,he,Ee,ie,He,xe,Me,dt,at,ot,st,mt,yt,Qe,St,Ne,Le,Dt,jt,mi,ut,ai,en,tn,nn;const Zt=se?.bindCta,Ul=((ye=X?.video)===null||ye===void 0?void 0:ye.bindProduct)||((Se=X?.video)===null||Se===void 0?void 0:Se.bindProducts)&&((ze=(Ce=X?.video)===null||Ce===void 0?void 0:Ce.bindProducts)===null||ze===void 0?void 0:ze.length)>0;let Fi="",ln=null;qe?Fi="hashTagPage":!((Re=X?.video)===null||Re===void 0)&&Re.url?(Fi="videoPage",ln="video"):!((Z=(O=X?.video)===null||O===void 0?void 0:O.imgUrls)===null||Z===void 0)&&Z.length&&(Fi="imagePage",ln="image");const Vn=(Ee=(le=(K=se?.tags)!==null&&K!==void 0?K:(Ae=(ce=(ne=X?.video)===null||ne===void 0?void 0:ne.bindProducts)===null||ce===void 0?void 0:ce[0])===null||Ae===void 0?void 0:Ae.tags)!==null&&le!==void 0?le:(he=X?.video)===null||he===void 0?void 0:he.tags)!==null&&Ee!==void 0?Ee:(ie=X?.product)===null||ie===void 0?void 0:ie.tags;Et?.({eventInfo:Object.assign(Object.assign({},q),{ctaId:(He=Zt?.itemId)!==null&&He!==void 0?He:"",ctaName:(xe=Zt?.title)!==null&&xe!==void 0?xe:"",contentTags:Vn?JSON.stringify(Vn):"",position:Oe+"",contentId:(dt=(Me=X?.video)===null||Me===void 0?void 0:Me.itemId)!==null&&dt!==void 0?dt:"",productId:Ul?se?.itemId:"",traceInfo:(tn=(ut=(Ne=(mt=(at=Zt?.traceInfo)!==null&&at!==void 0?at:(st=(ot=X?.video)===null||ot===void 0?void 0:ot.bindCta)===null||st===void 0?void 0:st.traceInfo)!==null&&mt!==void 0?mt:(St=(Qe=(yt=X?.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=(jt=(Dt=(Le=X?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Dt===void 0?void 0:Dt[0])===null||jt===void 0?void 0:jt.bindCta)===null||mi===void 0?void 0:mi.traceInfo)!==null&&ut!==void 0?ut:(en=(ai=X?.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:ln})})},[Et,qe]),Vi=ae(()=>{var q,X,se;const Oe=location.search.slice(1),ye={};(q=di(Oe.replace(/\+/g,"%2B")))===null||q===void 0||q.map(ze=>{const Re=ze.split("=")[0],O=ze.split("=")[1];ye[Re]=O});for(const ze in ye)ye[ze]=ye[ze].replace(/%2B/g,"+");const Se=ze=>{var Re;return(Re=ye[ze])!==null&&Re!==void 0?Re:""},Ce=new Date;et.current=Ce,Et?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Se("utm_source"),utmMedium:Se("utm_medium"),utmCampaign:Se("utm_campaign"),utmId:Se("utm_id"),utmContent:Se("utm_content"),enterTime:Math.floor(Ce/1e3)+"",requestId:null,enterUrl:(se=(X=window?.location)===null||X===void 0?void 0:X.href)!==null&&se!==void 0?se:""},reportLayId:!1})},[Et]),Ri=ae(()=>pt(void 0,void 0,void 0,function*(){var q,X;const se=yield ee?.("v1/account",{method:"GET"});return Bt((q=se?.data)===null||q===void 0?void 0:q.chatLabsId),((X=se?.data)===null||X===void 0?void 0:X.consentResult)==="true"}),[ee]),Bi=ae(q=>pt(void 0,void 0,void 0,function*(){const X=yield ee?.("v1/account/consent",{method:"POST",body:{consentResult:q}});return X?.success}),[ee]);ue(()=>{wt||Vi()},[wt]),ue(()=>{if(wt||a)return;R(!0);let q,X;At().then(se=>{var Oe,ye,Se,Ce,ze,Re,O,Z,K,ne,ce;if(se){const Ae=Ct(se);let le,he;if(se?.layoutVariantId){q=se?.layoutVariantId,ht(se?.layoutVariantId);const Ee=(ye=(Oe=se?.layoutVariantId)===null||Oe===void 0?void 0:Oe.split("-"))===null||ye===void 0?void 0:ye[1];Ee&&(le=w?.find(ie=>ie?.id===Ee),le?(te(le),document.title=(Se=le?.name)!==null&&Se!==void 0?Se:"home",he=(ze=(Ce=le?.data)===null||Ce===void 0?void 0:Ce.sxpPageConf)===null||ze===void 0?void 0:ze.globalConfig,ge(he),P?.(le?.data),!((K=(Z=(O=(Re=he?.consent)===null||Re===void 0?void 0:Re[0])===null||O===void 0?void 0:O.item)===null||Z===void 0?void 0:Z.props)===null||K===void 0)&&K.privacy_necessity&&We(!0)):We(!0))}else We(!0);if(Ge||(he?.playbook==="organic menu"||!he&&_?.playbook==="organic menu"?(gt("organicMenu"),Ae.unshift("organic menu"),X="organicMenu"):(gt("paidMedia"),X="paidMedia")),u(Ae),ve(Ae),zt(le??Tt),Ge){const Ee=Ae?.[0],ie=((ne=Ee?.video)===null||ne===void 0?void 0:ne.traceInfo)||((ce=Ee?.product)===null||ce===void 0?void 0:ce.traceInfo)||"";Et?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ie,branchfeed:Ge},q&&{layoutVariantId:q})}),Et?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ie,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-vt?.current)/1e3)+""},q&&{layoutVariantId:q})})}}}).finally(()=>{Et({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},q&&{layoutVariantId:q}),X&&{playbookType:X})}),R(!1)})},[wt,Ge]),ue(()=>{a&&(R(!0),zt(A),At().then(q=>{if(q){const X=Ct(q);_?.playbook==="organic menu"&&!Ge&&X.unshift("organic menu"),u(X),ve(X)}}).finally(()=>{R(!1)}))},[At,zt,Ge]);const $i=kt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return v.createElement(tl.Provider,{value:{rtcList:M,setRtcList:u,mutateLike:pi,mutateUnlike:Qt,submitForm:Xt,popupDetailData:$,loadVideos:ni,setPopupDetailData:oe,getRecommendVideos:At,bffEventReport:Et,isPreview:a,loading:j,sxpParameter:d,waterFallData:re,setWaterFallData:Q,ctaEvent:Pt,swiperRef:N,openHashtag:Te,setOpenHashtag:Pe,cacheRtcList:Ue,setCacheRtcList:ve,cacheActiveIndex:fe,setCacheActiveIndex:_e,isFromHashtag:qe,setIsFromHashtag:Ye,appDomain:s,hashTagSize:c,loadingImage:r??$i,isOpenHashTag:h,tagList:B,setLoading:R,videoRef:Ie,setVideoRef:tt,bffFbReport:oi,isAgreePolicy:U,setIsAgreePolicy:Y,curTime:et,h5EnterLink:Vi,themeTag:$e,isShowConsent:wt,selectTag:It,setSelectTag:Fe,globalConfig:_,popupCurTimeRef:H,checkCommodityIndexRef:pe,isEditor:x,isNoMoreData:J,updateChannel:qt,channel:Ge,eventTimeList:Ve,setEventTimeList:lt,multiPostTimeRef:vt,refreshFeSession:li,getAccount:Ri,accountSonsent:Bi,isDiyH5:C}},wt?v.createElement(uo,Object.assign({},(I=(D=(T=_?.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 il=je(vo);function Xe(){return xi(tl)}var nl;(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"})(nl||(nl={}));const ll=Ti({$store:{},options:[],configs:[]}),po=({children:t,isSsr:e,enable:i})=>{const[n,o]=G([]),{schema:l}=$t(),[a,d]=G(l.__STORE__||{}),[s,c]=G([]);ue(()=>{var f;e||Rn(s,l?.dataSource)||c((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const r=ae(()=>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)})}),o(y)};return ue(()=>{e||r()},[r,e,l]),i?v.createElement(ll.Provider,{value:{$store:l.__STORE__||a,options:n,configs:s}},t):t};var mo=je(po);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"},ol=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:()=>{}}),al=ri(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:l},a)=>{const[d,s]=G(null),[c,r]=G(n||{pointData:[Ui],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[h,f]=G([Ui]),[m,y]=G([[Ui]]),[g,x]=G([]),[p,b]=G(cn);typeof window<"u"&&(window.sxpPopup=(V,L)=>{b(Object.assign(Object.assign(Object.assign({},cn),{id:V}),L))}),typeof window<"u"&&(window.getJointUtmLink=V=>(so(),V?.indexOf("?")!==-1?V+(l?"&"+l:""):V+(l?"?"+l:""))),ue(()=>{y([c.pointData]),x([])},[c.type]);const A=ae(V=>{const L=fi(c);L&&(L.dataSource=V,r?.(L))},[c]),[w,C]=G();Ei(a,()=>({loadSchema(V){V&&(y([V.pointData]),r(V))},exportSchema(){return fi(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=me(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return v.createElement(ol.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(mo,{isSsr:i,enable:o},t))});var fo=Object.freeze({__proto__:null,EditorCore:al}),ho=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Ao=[{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 Mt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:o}=Xe(),l=ae((s,c,r,h,f,m)=>{var y,g,x,p,b,A,w,C,P,V,L,S,T,D,I,M,u,B,W,j,R,k,E,N,F,U,Y,$,oe,re,Q,Te,Pe,Ue,ve,fe,_e,qe;if(n?.findIndex(et=>et.target===s?.target)!==-1)return;s&&o?.(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:(L=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||L===void 0?void 0:L.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=(ve=(Pe=(oe=(U=m??r?.traceInfo)!==null&&U!==void 0?U:($=(Y=c?.video)===null||Y===void 0?void 0:Y.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&oe!==void 0?oe:(Te=(Q=(re=c?.video)===null||re===void 0?void 0:re.bindProducts)===null||Q===void 0?void 0:Q[0])===null||Te===void 0?void 0:Te.traceInfo)!==null&&Pe!==void 0?Pe:(Ue=c?.product)===null||Ue===void 0?void 0:Ue.traceInfo)!==null&&ve!==void 0?ve:(_e=(fe=c?.video)===null||fe===void 0?void 0:fe.bindCta)===null||_e===void 0?void 0:_e.traceInfo)!==null&&qe!==void 0?qe:""},$e&&{contentFormat:$e})})},[t,e,i,n]),a=ae((s,c,r,h,f)=>{var m,y,g,x,p,b,A,w,C,P,V,L,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=(L=(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&&L!==void 0?L:(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=ae((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:l,productView:a,backMainFeed:d}}const bo=({layout:t,columns:e,onChange:i})=>v.createElement(v.Fragment,null,e?.map((n,o)=>v.createElement("div",{key:o,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 go=je(bo);const yo=t=>{var e,i,{columns:n,style:o,title:l,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}=Mt(),[w,C]=G(!1),[P,V]=G({}),[L,S]=G(0),T=me(()=>[{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=me(()=>fi(n)||T,[n,T]),M=ae(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(Y=>{var $;return{name:Y,value:($=N[Y])!==null&&$!==void 0?$:""}}))===null||j===void 0?void 0:j.filter(Y=>Y?.value);if(!F||!F?.length)return;C(!0);const U=yield p?.({attributes:F});if(C(!1),U){if(h){const Y=b,$=(R=Y?.video)===null||R===void 0?void 0:R.bindProduct,oe=(E=(k=Y?.video)===null||k===void 0?void 0:k.bindProduct)===null||E===void 0?void 0:E.bindCta,re=b?.index;A(B,Y,$,oe,re)}f||y?.(),m?.()}}),1e3);return ue(()=>{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(l,a)}}),v.createElement("div",Object.assign({className:Be(Object.assign(Object.assign({},o),{marginTop:L}))},x),v.createElement("div",{className:"pb-appoint-form-container"},v.createElement(go,{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 wo=je(yo);function ft(t,e){return t.extend=e,t}const So=ft(wo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Ao,bindableProps:[],interactionRender:ho},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 xo=[{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 sl(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]:sl(e[i])&&sl(t[i])&&Object.keys(e[i]).length>0&&un(t[i],e[i])})}const rl={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,rl),t}const To={document:rl,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,To),t}function ei(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Eo(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 Io(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 ko(t,e){e===void 0&&(e="x");const i=Lt();let n,o,l;const a=Io(t);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(d=>d.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(o==="none"?"":o)):(l=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function Hi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Co(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&&!Co(n)){const o=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,a=o.length;l<a;l+=1){const d=o[l],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 dl(t){let{swiper:e,targetPosition:i,side:n}=t;const o=Lt(),l=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"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=l+m*(i-l);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})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.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 cl(t){const e=Lt(),i=Vt(),n=t.getBoundingClientRect(),o=i.body,l=t.clientTop||o.clientTop||0,a=t.clientLeft||o.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-l,left:n.left+s-a}}function Po(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 Oo(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 Lo(){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 ul(){return mn||(mn=Lo()),mn}let fn;function jo(t){let{userAgent:e}=t===void 0?{}:t;const i=ul(),n=Lt(),o=n.navigator.platform,l=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let r=l.match(/(iPad).*OS\s([\d_]+)/);const h=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!r&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let y=o==="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=l.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 vl(t){return t===void 0&&(t={}),fn||(fn=jo(t)),fn}let hn;function Mo(){const t=Lt(),e=vl();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 o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=n(),a=l||o&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:a,isWebView:o}}function No(){return hn||(hn=Mo()),hn}function Do(t){let{swiper:e,on:i,emit:n}=t;const o=Lt();let l=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(h=>{a=o.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()})}),l.observe(e.el))},c=()=>{a&&o.cancelAnimationFrame(a),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",d),o.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),o.removeEventListener("resize",d),o.removeEventListener("orientationchange",r)})}function Vo(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],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){o("observerUpdate",y[0]);return}const g=function(){o("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}),l.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=()=>{l.forEach(r=>{r.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Ro={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var l=arguments.length,a=new Array(l),d=0;d<l;d++)a[d]=arguments[d];e.apply(n,a)}return o.__emitterProxy=e,n.on(t,o,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((o,l)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),n=t):(e=l[0].events,i=l[0].data,n=l[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 Bo(){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 Fo(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:l,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Yt(o,`.${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 l>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*l: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 L;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){L=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)L=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")L=B+R+k;else{const{clientWidth:N,offsetWidth:F}=D;L=B+W+j+R+k+(F-N)}}M&&(D.style.transform=M),u&&(D.style.webkitTransform=u),i.roundLengths&&(L=Math.floor(L))}else L=(l-(i.slidesPerView-1)*A)/i.slidesPerView,i.roundLengths&&(L=Math.floor(L)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${L}px`);r[T]&&(r[T].swiperSlideSize=L),y.push(L),i.centeredSlides?(w=w+L/2+C/2+A,C===0&&T!==0&&(w=w-l/2-A),T===0&&(w=w-l/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+L+A),t.virtualSize+=L+A,C=L,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+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(L,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-l&&T.push(I)}f=T,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}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-l;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<l){const I=(l-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 Wo(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,l;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(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const d=e.activeIndex+l;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const d=i[l].offsetHeight;o=d>o?d:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function zo(){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 pl=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Uo(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:l}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;o&&(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-l[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)),pl(c,x,i.slideVisibleClass),pl(c,g,i.slideFullyVisibleClass),c.progress=o?-h:h,c.originalProgress=o?-f:f}}function Ho(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:o,isBeginning:l,isEnd:a,progressLoop:d}=e;const s=l,c=a;if(n===0)o=0,l=!0,a=!0;else{o=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;l=r||o<=0,a=h||o>=1,r&&(o=0),h&&(o=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:o,progressLoop:d,isBeginning:l,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!l||c&&!a)&&e.emit("fromEdge"),e.emit("progress",o)}const An=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Xo(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,l=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(l)if(i.loop){let h=o-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="${o}"]`);else a?(s=e.filter(h=>h.column===o)[0],r=e.filter(h=>h.column===o+1)[0],c=e.filter(h=>h.column===o-1)[0]):s=e[o];s&&(a||(r=Oo(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Po(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 o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.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),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=o,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 l=o+n-1;if(t.params.rewind||t.params.loop)for(let a=o-e;a<=l+e;a+=1){const d=(a%i+i)%i;(d<o||d>l)&&bn(t,d)}else for(let a=Math.max(o-e,0);a<=Math.min(l+e,i-1);a+=1)a!==o&&(a>l||a<o)&&bn(t,a)};function qo(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?o=l:n>=e[l]&&n<e[l+1]&&(o=l+1):n>=e[l]&&(o=l);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function Yo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:l,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=qo(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const m=Math.min(o.slidesPerGroupSkip,s);c=m+Math.floor((s-m)/o.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===l&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const h=e.grid&&o.grid&&o.grid.rows>1;let f;if(e.virtual&&o.virtual.enabled&&o.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/o.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:l,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 Go(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!o&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(o=d)});let l=!1,a;if(o){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===o){l=!0,a=d;break}}if(o&&l)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.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 Zo={updateSize:Bo,updateSlides:Fo,updateAutoHeight:Wo,updateSlidesOffset:zo,updateSlidesProgress:Uo,updateProgress:Ho,updateSlidesClasses:Xo,updateActiveIndex:Yo,updateClickedSlide:Go};function Ko(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:l}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let a=ko(l,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function _o(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:l,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,o.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,o.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:o.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),l.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 Jo(){return-this.snapGrid[0]}function Qo(){return-this.snapGrid[this.snapGrid.length-1]}function $o(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:a,wrapperEl:d}=l;if(l.animating&&a.preventInteractionOnTransition)return!1;const s=l.minTranslate(),c=l.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,l.updateProgress(r),a.cssMode){const h=l.isHorizontal();if(e===0)d[h?"scrollLeft":"scrollTop"]=-r;else{if(!l.support.smoothScroll)return dl({swiper:l,targetPosition:-r,side:h?"left":"top"}),!0;d.scrollTo({[h?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(f){!l||l.destroyed||f.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var ea={getTranslate:Ko,setTranslate:_o,minTranslate:Jo,maxTranslate:Qo,translateTo:$o};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 ml(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:l,previousIndex:a}=e;let d=n;if(d||(l>a?d="next":l<a?d="prev":d="reset"),e.emit(`transition${o}`),i&&l!==a){if(d==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),d==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function ia(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),ml({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),ml({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var la={setTransition:ta,transitionStart:ia,transitionEnd:na};function oa(t,e,i,n,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=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}=l;if(!y&&!n&&!o||l.destroyed||l.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const g=Math.min(l.params.slidesPerGroupSkip,a);let x=g+Math.floor((a-g)/l.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(l.initialized&&a!==h&&(!l.allowSlideNext&&(f?p>l.translate&&p>l.minTranslate():p<l.translate&&p<l.minTranslate())||!l.allowSlidePrev&&p>l.translate&&p>l.maxTranslate()&&(h||0)!==a))return!1;a!==(r||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(p);let b;if(a>h?b="next":a<h?b="prev":b="reset",f&&-p===l.translate||!f&&p===l.translate)return l.updateActiveIndex(a),d.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),d.effect!=="slide"&&l.setTranslate(p),b!=="reset"&&(l.transitionStart(i,b),l.transitionEnd(i,b)),!1;if(d.cssMode){const A=l.isHorizontal(),w=f?p:-p;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[A?"scrollLeft":"scrollTop"]=w})):m[A?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return dl({swiper:l,targetPosition:w,side:A?"left":"top"}),!0;m.scrollTo({[A?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(p),l.updateActiveIndex(a),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,b),e===0?l.transitionEnd(i,b):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,b))}),l.wrapperEl.addEventListener("transitionend",l.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 o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);const l=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let d;if(l){const f=a*o.params.grid.rows;d=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else d=o.getSlideIndexByData(a);const s=l?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let r=o.params.slidesPerView;r==="auto"?r=o.slidesPerViewDynamic():(r=Math.ceil(parseFloat(o.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&&o.params.slidesPerView!=="auto"&&!l&&(h=!1),h){const f=c?d<o.activeIndex?"prev":"next":d-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?d+1:d-s+1,slideRealIndex:f==="next"?o.realIndex:void 0})}if(l){const f=a*o.params.grid.rows;a=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,e,i,n)}),o}function sa(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:o,params:l,animating:a}=n;if(!o||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<l.slidesPerGroupSkip?1:d,c=n.virtual&&l.virtual.enabled;if(l.loop){if(a&&!c&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return l.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:o,snapGrid:l,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&&o.virtual.enabled;if(o.loop){if(c&&!r&&o.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=l.map(p=>f(p));let g=l[y.indexOf(m)-1];if(typeof g>"u"&&o.cssMode){let p;l.forEach((b,A)=>{m>=b&&(p=A)}),typeof p<"u"&&(g=l[p>0?p-1:p])}let x=0;if(typeof g<"u"&&(x=a.indexOf(g),x<0&&(x=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(x=x-n.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),o.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(o.loop&&n.activeIndex===0&&o.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 o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);let l=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,l),d=a+Math.floor((l-a)/o.params.slidesPerGroup),s=o.rtlTranslate?o.translate:-o.translate;if(s>=o.snapGrid[d]){const c=o.snapGrid[d],r=o.snapGrid[d+1];s-c>(r-c)*n&&(l+=o.params.slidesPerGroup)}else{const c=o.snapGrid[d-1],r=o.snapGrid[d];s-c<=(r-c)*n&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,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 o=t.clickedIndex,l;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Yt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),hi(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Yt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),hi(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var va={slideTo:oa,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 o=()=>{Yt(n,`.${i.slideClass}, swiper-slide`).forEach((h,f)=>{h.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(l?i.grid.rows:1),d=e.slides.length%a!==0,s=l&&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)");o()}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)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ma(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:l,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 l>"u"?l=s.getSlideIndex(c.filter(M=>M.classList.contains(m.slideActiveClass))[0]):C=l;const P=n==="next"||!n,V=n==="prev"||!n;let L=0,S=0;const T=b?Math.ceil(c.length/m.grid.rows):c.length,I=(b?c[l].column:l)+(y&&typeof o>"u"?-g/2+.5:0);if(I<p){L=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+L]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C+Math.ceil(L),0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else if(o){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),o&&(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:o,activeSlideIndex:l,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(o=>{const l=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[l]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),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 o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function fl(t,e,i){const n=Lt(),{params:o}=t,l=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return l&&(i<=a||i>=n.innerWidth-a)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function wa(t){const e=this,i=Vt();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){fl(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:a,enabled:d}=e;if(!d||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let s=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(f?ya(h,s):s.closest(h))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const m=a.currentX,y=a.currentY;if(!fl(e,n,m))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=y,o.touchStartTime=Ut(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let g=!0;s.matches(o.focusableElements)&&(g=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const x=g&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||x)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Sa(t){const e=Vt(),i=this,n=i.touchEventsData,{params:o,touches:l,rtlTranslate:a,enabled:d}=i;if(!d||!o.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){l.startX=r,l.startY=h;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:r,startY:h,currentX:r,currentY:h}),n.touchStartTime=Ut());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(h<l.startY&&i.translate<=i.maxTranslate()||h>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<l.startX&&i.translate<=i.maxTranslate()||r>l.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),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=r,l.currentY=h;const f=l.currentX-l.startX,m=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.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>o.touchAngle:90-P>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation();let y=i.isHorizontal()?f:m,g=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(y=Math.abs(y)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),l.diff=y,y*=o.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&&!o.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,o.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(l,{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=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),y>0?(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**C))):y<0&&(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,o.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),o.threshold>0)if(Math.abs(y)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.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 o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=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 hl(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:l}=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=o,t.allowSlideNext=n,t.params.watchOverflow&&l!==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 o;const l=t.maxTranslate()-t.minTranslate();l===0?o=0:o=(t.translate-t.minTranslate())/l,o!==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 Al=(t,e)=>{const i=Vt(),{params:n,el:o,wrapperEl:l,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!o||typeof o=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),o[s]("touchstart",t.onTouchStart,{passive:!1}),o[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)&&o[s]("click",t.onClick,!0),n.cssMode&&l[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",hl,!0):t[c]("observerUpdate",hl,!0),o[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),Al(t,"on")}function Pa(){Al(this,"off")}var Oa={attachEvents:Ca,detachEvents:Pa};const bl=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function La(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,l=n.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in l?l[a]:void 0)||t.originalParams,c=bl(t,n),r=bl(t,s),h=t.params.grabCursor,f=s.grabCursor,m=n.enabled;c&&!r?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(o.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&o.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 o=Lt(),l=e==="window"?o.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:l*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"?o.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(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function Da(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=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:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),o.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 o=t.slides.length-1,l=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*2;t.isLocked=t.size>l}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 o=Object.keys(n)[0],l=n[o];if(typeof l!="object"||l===null){Ft(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in l)){Ft(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),Ft(e,n)}}const wn={eventsEmitter:Ro,update:Zo,translate:ea,transition:la,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,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,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=ul(),d.device=vl({userAgent:i.userAgent}),d.browser=No(),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,o=Yt(i,`.${n.slideClass}, swiper-slide`),l=Ii(o[0]);return Ii(e)-l}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 o=n.minTranslate(),a=(n.maxTranslate()-o)*e+o;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 o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:l,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let h=l[c]?Math.ceil(l[c].swiperSlideSize):0,f;for(let m=c+1;m<l.length;m+=1)l[m]&&!f&&(h+=Math.ceil(l[m].swiperSlideSize),r+=1,h>s&&(f=!0));for(let m=c-1;m>=0;m-=1)l[m]&&!f&&(h+=l[m].swiperSlideSize,r+=1,h>s&&(f=!0))}else if(e==="current")for(let h=c+1;h<l.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 o(){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 l;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),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;l=e.slideTo(a.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.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 o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Yt(n,o())[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 o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(l=>{l.complete?Gi(i,l):l.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:o,el:l,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.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),Eo(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([Do,Vo]);const gl=["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 yl(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function wl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Sl(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function xl(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:o,nextEl:l,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=o.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;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(x=!0),o.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(p=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&h&&!h.el&&(b=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&m&&!m.el&&(A=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(r.navigation||r.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const L=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))};o.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&&L(S);else{const T=n[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&L(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),o.includes("children")&&i&&y&&r.virtual.enabled?(y.slides=i,y.update(!0)):o.includes("virtual")&&y&&r.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),o.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&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!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))),l&&(r.navigation.nextEl=l),a&&(r.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.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={},o={};bi(i,yn),i._emitClasses=!0,i.init=!1;const l={},a=gl.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]={},o[s]={},bi(i[s],t[s]),bi(o[s],t[s])):(i[s]=t[s],o[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]:l[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:o,rest:l,events:n}}function Xa(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:a,swiper:d}=t;yl(e)&&n&&o&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=o,d.originalParams.navigation.prevEl=o),wl(e)&&l&&(d.params.pagination.el=l,d.originalParams.pagination.el=l),Sl(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function qa(t,e,i,n,o){const l=[];if(!e)return l;const a=s=>{l.indexOf(s)<0&&l.push(s)};if(i&&n){const s=n.map(o),c=i.map(o);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return gl.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)}),l}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 Tl(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function El(t){const e=[];return v.Children.toArray(t).forEach(i=>{Tl(i)?e.push(i):i.props&&i.props.children&&El(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(Tl(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 o=El(n.props.children);o.length>0?o.forEach(l=>e.push(l)):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},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,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>=l&&r<=a&&c.push(e[n(r)]);return c.map((r,h)=>v.cloneElement(r,{swiper:t,style:o,key:r.props.virtualIndex||r.key||`slide-${h}`}))}function ki(t,e){return typeof window>"u"?ue(t,e):ql(t,e)}const Tn=Ti(null),Ci=()=>xi(Tn),Ka=Ti(null),Kt=ri(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:l,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=G("swiper"),[h,f]=G(null),[m,y]=G(!1),g=de(!1),x=de(null),p=de(null),b=de(null),A=de(null),w=de(null),C=de(null),P=de(null),V=de(null),{params:L,passedParams:S,rest:T,events:D}=Ha(d),{slides:I,slots:M}=Ga(l),u=()=>{y(!m)};Object.assign(L.on,{_containerClasses(k,E){r(E)}});const B=()=>{Object.assign(L.on,D),s=!0;const k={...L};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])})};ue(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",u)}),ue(()=>{!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},L),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 L.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:xl(`${c}${i?` ${i}`:""}`)},T),v.createElement(Ka.Provider,{value:p.current},M["container-start"],v.createElement(o,{className:za(L.wrapperClass)},M["wrapper-start"],R(),M["wrapper-end"]),yl(L)&&v.createElement(v.Fragment,null,v.createElement("div",{ref:C,className:"swiper-button-prev"}),v.createElement("div",{ref:w,className:"swiper-button-next"})),Sl(L)&&v.createElement("div",{ref:V,className:"swiper-scrollbar"}),wl(L)&&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:o="",swiper:l,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const h=de(null),[f,m]=G("swiper-slide"),[y,g]=G(!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||!l)){if(l.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",x),()=>{l&&l.off("_slideClass",x)}}}),ki(()=>{l&&h.current&&!l.destroyed&&m(l.getSlideClasses(h.current))},[l]);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:xl(`${f}${o?` ${o}`:""}`),"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:o}=t;const l=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)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.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,L=P.clientHeight,S=a.innerWidth,T=a.innerHeight,D=cl(P);h&&(D.left-=P.scrollLeft);const I=[[D.left,D.top],[D.left+V,D.top],[D.left,D.top+L],[D.left+V,D.top+L]];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()),o("keyPress",m)}}function s(){e.keyboard.enabled||(l.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.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:o}=t;const l=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,L=0,S=0,T=0;return"detail"in A&&(L=A.detail),"wheelDelta"in A&&(L=-A.wheelDelta/120),"wheelDeltaY"in A&&(L=-A.wheelDeltaY/120),"wheelDeltaX"in A&&(V=-A.wheelDeltaX/120),"axis"in A&&A.axis===A.HORIZONTAL_AXIS&&(V=L,L=0),S=V*10,T=L*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&&!L&&(L=T<1?-1:1),{spinX:V,spinY:L,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(),o("scroll",A.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",A.raw)),d=new l.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 L=V&&V.contains(w.target);if(!e.mouseEntered&&!L&&!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||o("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(o=>{if(!i[o]&&i.auto===!0){let l=Yt(t.el,`.${n[o]}`)[0];l||(l=Ai("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function kn(t){let{swiper:e,extendParams:i,on:n,emit:o}=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 l(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(),o("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("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=l(y.nextEl),x=l(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)),o(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:o}=t;const l="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:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-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 L=e.pagination.bullets;let S,T,D;if(b.dynamicBullets&&(a=pn(L[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(L.length,b.dynamicMainBullets)-1),D=(T+S)/2),L.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)L.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=L[w];if(I&&I.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&L.forEach((M,u)=>{M.setAttribute("part",u===w?"bullet-active":"bullet")}),b.dynamicBullets){const M=L[S],u=L[T];for(let B=S;B<=T;B+=1)L[B]&&L[B].classList.add(...`${b.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(u,"next")}}if(b.dynamicBullets){const I=Math.min(L.length,b.dynamicMainBullets+4),M=(a*I-a)/2-D*a,u=p?"right":"left";L.forEach(B=>{B.style[e.isHorizontal()?u:"top"]=`${M}px`})}}A.forEach((L,S)=>{if(b.type==="fraction"&&(L.querySelectorAll(_t(b.currentClass)).forEach(T=>{T.textContent=b.formatFractionCurrent(w+1)}),L.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,L.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?(L.innerHTML=b.renderCustom(e,w+1,V),S===0&&o("paginationRender",L)):(S===0&&o("paginationRender",L),o("paginationUpdate",L)),e.params.watchOverflow&&e.enabled&&L.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"&&o("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);o(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:o}=t;const l=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)-cl(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"),o("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",o("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)),o("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),l[k]("pointermove",A,j),l[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 L(){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=l.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():(L(),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)),L(),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:L,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 o=null,l,a,d=new Date().getTime();function s(j){const R=o;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 L(){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)&&(l=!0),e.a11y.clicked=!0},D=()=>{l=!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(()=>{l||(e.params.loop?e.slideToLoop(parseInt(R.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(R),0),l=!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(o);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(oe=>{oe.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(){o&&o.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",()=>{o=Ai("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.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&&L()}),n("destroy",()=>{e.params.a11y.enabled&&W()})}function Oi(t){let{swiper:e,extendParams:i,on:n,emit:o,params:l}=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=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.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,o("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),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),o("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(),o("autoplayStart")},L=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),o("autoplayStop")},S=(R,k)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),R||(p=!0);const E=()=>{o("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,o("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&&L()}),n("_freeModeStaticRelease",()=>{(y||p)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?L():S(!0,!0)}),n("beforeTransitionStart",(R,k,E)=>{e.destroyed||!e.autoplay.running||(E||!e.params.autoplay.disableOnInteraction?S(!0,!0):L())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){L();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:L,pause:S,resume:T})}function Ja(t){let{swiper:e,extendParams:i,emit:n,once:o}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){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 L=y.velocities.pop(),S=y.velocities.pop(),T=L.position-S.position,D=L.time-S.time;e.velocity=T/D,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(D>150||Ut()-L.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 L;for(let S=0;S<m.length;S+=1)if(m[S]>-A){L=S;break}Math.abs(m[L]-A)<Math.abs(m[L-1]-A)||e.swipeDirection==="next"?A=m[L]:A=m[L-1],A=-A}if(V&&o("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 L=Math.abs((f?-A:A)-e.translate),S=e.slidesSizesGrid[e.activeIndex];L<S?p=r.speed:L<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:l,onTouchMove:a,onTouchEnd:d}})}const Qa=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const o=de(),{popupDetailData:l}=Xe();return ue(()=>{var a,d;n&&((a=o?.current)===null||a===void 0||a.swiper.slideTo((d=l?.multiCheckIndex)!==null&&d!==void 0?d:0))},[l,n]),v.createElement(Kt,{role:"list",tag:"ul",ref:o,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:o,className:l,loading:a,alt:d="image"}=t,[s,c]=G(i),r=de(null),[h,f]=G(!1);return Ei(e,()=>({setSrc:m=>{m&&c(m)}})),ue(()=>{i&&c(i)},[i]),ue(()=>{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:l,src:s,style:Object.assign({},o),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d})):v.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d}))});var Nt=je($a);const es=({products:t,data:e,defImg:i,style:n,onCLick:o,popupDetailData:l,check:a})=>{var d;const{productView:s}=Mt(),{popupCurTimeRef:c}=Xe(),r=(h,f)=>{if(a===f)return;const m=t?.[a];s(l,m,m?.bindCta,c.current,l?.index),o?.(f)};return v.createElement(v.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&v.createElement(Li,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=l?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(Nt,{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 Il=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:o,popup:l,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,L,S,T,D,I,M,u,B,W,j;const R=de(null),k=de(null),E=de(null),N=de(null),F=de(null),U=d*.2,Y=s?d:d*.8,[$,oe]=G(U),[re,Q]=G(!1),Te=de(null),{globalConfig:Pe,popupDetailData:Ue}=Xe(),{schema:ve,popup:fe}=$t(),[_e,qe]=G(15);ue(()=>{const pe=document.getElementById("sxp-render"),H=document.getElementById("pb-modal");H?Te.current=H:(Te.current=document.createElement("div"),Te.current.setAttribute("id","pb-modal"),pe?.appendChild(Te.current))},[]);const Ye=me(()=>l?.id&&l?.id!==""||t,[t,l]),Ie=me(()=>{var pe,H,J;const be=a??ve;return(J=(H=(pe=be?.sxpPageConf)===null||pe===void 0?void 0:pe.globalConfig)===null||H===void 0?void 0:H.popupList)===null||J===void 0?void 0:J.find(ge=>ge?.id===l?.id)},[l,a,ve]),tt=me(()=>{var pe,H;return((H=(pe=Ie?.item)===null||pe===void 0?void 0:pe.event)===null||H===void 0?void 0:H.isScrollFullScreen)||!1},[Ie]);ue(()=>{Ye?Q(!0):setTimeout(()=>{Q(!1),oe(U)},l?.duration)},[Ye,l]);const $e=ae(()=>i,[fe,c,Pe,a]);if(ue(()=>{const pe=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],_=J?.[J?.length-1],ge=9;H.addEventListener("keydown",function(we){(we.key==="Escape"||we.key==="Esc")&&(et(),we.preventDefault());var te=we.key==="Tab"||we.keyCode===ge;te&&(we.shiftKey?document?.activeElement===be&&(_?.focus(),we.preventDefault()):document?.activeElement===_&&(be?.focus(),we.preventDefault()))}),be?.focus()};return F?.current&&pe(F?.current),()=>{var H;(H=F?.current)===null||H===void 0||H.removeEventListener("keydown",pe)}},[F,re,fe]),!Te.current)return null;const et=Si(()=>{e?.()},300),vt=pe=>{R.current=pe.touches[0],k.current=pe.touches[0],E.current=!0},It=pe=>{requestAnimationFrame(()=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const J=pe.touches[0].clientY,be=pe.touches[0].clientX,_=R.current.clientY-J;R.current=pe.touches[0];const ge=J-k.current.clientY,we=be-k.current.clientX;if(Math.abs(we)>Math.abs(ge))return;const te=$-_;te>0&&oe(te)}})},Fe=pe=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const J=pe.changedTouches[0].clientY-k.current.clientY,be=pe.changedTouches[0].clientX-k.current.clientX;if(Math.abs(be)>Math.abs(J))return;const _=k.current.clientY-R.current.clientY;_>0?oe(0):$<U&&_<0?oe(U):$>=U&&_<0&&e?.()}E.current=!1};return zn.createPortal(v.createElement(v.Fragment,null,re&&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=(L=(V=(P=Ie?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||L===void 0?void 0:L.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:o,animationDuration:((D=l?.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:pe=>{pe.stopPropagation(),pe.preventDefault()}},tt&&{onTouchMove:It,onTouchStart:vt,onTouchEnd:Fe}),v.createElement("div",Object.assign({id:"modal-content",ref:N,style:{height:tt?d:Y,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:pe=>{var H;qe(15-((H=pe?.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"})))))),Te.current)};var gi=je(is);const ns=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=G(!1),[h,f]=G(!1),m=i||{},{lineClamp:y}=m,g=rt(m,["lineClamp"]),x=Number(y||2),p=de(null),b=de(null),A=de(),w=()=>{r(!c)},C=ae(()=>{!p.current||!b.current||!d||!t||c||requestAnimationFrame(()=>{const P=p.current.getBoundingClientRect().height,V=b.current.getBoundingClientRect().height,L=P>V+1;f(L)})},[d,t,c]);return ue(()=>{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":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:o??w,dangerouslySetInnerHTML:{__html:De(c?a||"show less":l||"show more",g)}}))};var ji=je(ns);const ls=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},os=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Mi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:o})=>{var l,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=(l=t?.currency)===null||l===void 0?void 0:l.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:o?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${x}</span>`,m=De(m,o),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,o,l,a,d,s,c,r,h,f,m,y,g,x,p,b,A,w,C,P,V,L,{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:Y,popupBg:$,iframeIcon:oe,commodityImgRatio:re,isTel:Q,iframeBgColor:Te,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:ve,popupDetailData:fe,isPreview:_e,bffFbReport:qe,popupCurTimeRef:Ye,checkCommodityIndexRef:Ie,globalConfig:tt}=Xe(),{jumpToWeb:$e,productView:et}=Mt(),vt=de(null),[It,Fe]=G(!1),[pe,H]=G(!1),[J,be]=G((e=fe?.multiCheckIndex)!==null&&e!==void 0?e:0),_=de(),[ge,we]=G(0),te=j?k:fe;let z=j?te?.product:(n=(i=te?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(l=(o=te?.video)===null||o===void 0?void 0:o.bindProducts)===null||l===void 0?void 0:l[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:fe?.index;if(!j&&Y?.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))};ue(()=>{Pe&&(qe?.({eventName:"ProductView",product:z}),qe?.({eventName:"PageView",product:z}))},[Pe,qe]),ue(()=>{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,Ve=re?it*(re.h/re.w):it,lt=({isPost:ee})=>{var Je,At,ni,li;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:(li=z?.info)!==null&&li!==void 0?li:`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
|
@@ -8,3 +8,4 @@ Made in Italy`})),ct=ae(ke=>ke?.lineClamp?Object.assign(Object.assign({},ke),{ov
|
|
8
8
|
} else {
|
9
9
|
return props?.button${b+1}
|
10
10
|
}`)(a,A)}catch{}},[a]),g=ae(b=>{const A=y(b),w=A?.value;w&&(A?.linkType==="recommendFlow"?(c?.(w),s.current=new Date):new Function(w)())},[a]),x=ae(()=>{r.current=new Date,d?.({eventInfo:{eventSubject:"startMultiPost",eventDescription:"startMultiPost",contentFormat:"image",position:"0",traceInfo:m}})},[]),p=ae(b=>{s.current=new Date,d?.({eventInfo:{eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:m,nextStep:b||"others",timeOnSite:Math.floor((new Date-r?.current)/1e3)+""}})},[]);return ue(()=>{h?(x(),f.current=!0):f.current&&p()},[h]),ue(()=>{if(!h)return;const b=()=>x(),A=()=>p();return xt.on(bt.PAGE_DID_SHOW,b),xt.on(bt.PAGE_DID_HIDE,A),()=>{xt.off(bt.PAGE_DID_SHOW,b),xt.off(bt.PAGE_DID_HIDE,A)}},[h]),v.createElement("div",{className:"multiposts",style:Object.assign(Object.assign({},o),os(n))},Array.from({length:4},(b,A)=>v.createElement("button",{hidden:!y(A,"Url"),className:"multiposts-btn",role:"button","aria-label":`multiposts-${A+1}`,onClick:()=>g(A)},v.createElement("img",{className:"multiposts-btn-img",src:y(A,"Url"),alt:`multiposts-img-${A+1}`}))))};var Ln=je(hd),Ad=[{title:"\u6309\u94AE1\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"button1",isMultiPosts:!0}]},{title:"\u6309\u94AE2\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"button2",isMultiPosts:!0}]},{title:"\u6309\u94AE3\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"button3",isMultiPosts:!0}]},{title:"\u6309\u94AE4\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"button4",isMultiPosts:!0}]}];const bd=ft(Ln,{displayName:"MultiPosts",icon:"",category:"base",type:"MultiPosts",related:{settingRender:fd,interactionRender:Ad},defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var _i=Object.freeze({__proto__:null,AniLink:Xr,AniLinkPopup:_r,Appoint:Us,AppointForm:So,Click:dd,Commodity:Bs,CommodityDetail:ds,CommodityDetailDiroNew:gs,CommodityDiro:Qs,CommodityDiroNew:nr,CommodityList:Es,Consent:Fr,ConsentDetail:js,Display:nd,HashTag:Vr,Iframe:Ps,Link:Gs,MultiCommodity:pr,MultiCommodityDiro:rr,MultiCommodityDiroNew:br,MultiPosts:bd,Prompt:ms,Swipe:md});const gd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",yd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",wd=t=>{var e,{active:i,activeIcon:n,unActicveIcon:o,recData:l,position:a}=t,d=rt(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:s,mutateUnlike:c,bffEventReport:r,setCacheRtcList:h,cacheRtcList:f}=Xe(),[m,y]=G((e=f?.[a])===null||e===void 0?void 0:e.isCollected),g=kt(yd),x=kt(gd),p=Si(()=>pt(void 0,void 0,void 0,function*(){var b,A,w,C,P,V,L,S,T,D,I,M,u,B,W,j,R,k,E,N,F,U;if(m){y(!1);const Y=(w=yield c?.({videoItemId:(A=(b=l?.video)===null||b===void 0?void 0:b.itemId)!==null&&A!==void 0?A:""}))!==null&&w!==void 0?w:!1;if(r?.({eventInfo:{eventSubject:"favoriteContentCanceled",eventDescription:"This content was unfavorite by the user",contentId:(P=(C=l?.video)===null||C===void 0?void 0:C.itemId)!==null&&P!==void 0?P:"",contentName:(L=(V=l?.video)===null||V===void 0?void 0:V.title)!==null&&L!==void 0?L:"",contentTags:JSON.stringify((T=(S=l?.video)===null||S===void 0?void 0:S.tags)!==null&&T!==void 0?T:[]),position:a+"",contentFormat:!((D=l?.video)===null||D===void 0)&&D.url?"video":"image",traceInfo:(I=l?.video)===null||I===void 0?void 0:I.traceInfo}}),!Y)y(!0);else{const $=(M=f?.map((oe,re)=>(re===a&&(oe.isCollected=!1),oe)))!==null&&M!==void 0?M:[];h?.($)}}else{y(!0);const Y=(u=yield s?.({content:JSON.stringify(l)}))!==null&&u!==void 0?u:!1;if(r?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(W=(B=l?.video)===null||B===void 0?void 0:B.itemId)!==null&&W!==void 0?W:"",contentName:(R=(j=l?.video)===null||j===void 0?void 0:j.title)!==null&&R!==void 0?R:"",contentTags:JSON.stringify((E=(k=l?.video)===null||k===void 0?void 0:k.tags)!==null&&E!==void 0?E:[]),position:a+"",contentFormat:!((N=l?.video)===null||N===void 0)&&N.url?"video":"image",traceInfo:(F=l?.video)===null||F===void 0?void 0:F.traceInfo}}),!Y)y(!1);else{const $=(U=f?.map((oe,re)=>(re===a&&(oe.isCollected=!0),oe)))!==null&&U!==void 0?U:[];h?.($)}}}),200);return v.createElement("button",Object.assign({},d,{"aria-label":"like",onClick:p}),v.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:m?n||g:o||x,alt:"icon"}))};var jn=je(wd),Sd="data:image/gif;base64,R0lGODlhlgCWAPf/AAAAAICAgMzMzMzMzNXV1dXV1dXV1dfX19jOztjY2NvOztvb29zc3N/Pz9/V1d/f3+Pj4+bm5ubm5ujR0ejg4Ojo6Onp6erj4+rj4+rl5evr6+vr6+3k5O3t7e3t7e7u7u7u7u/v7/Dw8PDw8PHx8fHx8fHx8fLs7PLu7vLu7vLy8vPu7vPz8/Tp6fTx8fTx8fT09PT09PT09PXw8Pbx8fbz8/b29vb29vb29vb29vb29vf09Pf39/f39/f39/f39/f39/f39/f39/f39/f39/j09Pj09Pj19fj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pn29vn39/n5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fr09Pr4+Pr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vv39/v39/v4+Pv5+fv5+fv6+vv7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/z4+Pz5+fz5+fz5+fz6+vz6+vz6+vz6+vz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/P36+v36+v36+v37+/37+/37+/37+/38/P38/P38/P38/P39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f78/P78/P78/P78/P7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v/V1f/39//4+P/6+v/7+//8/P/8/P/9/f/9/f/9/f/9/f/+/v/+/v/+/v/+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wD/ACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAwBLACxFABcADwAMAIYAAACAgIDMzMzV1dXX19fYzs7Y2Njbzs7b29vc3Nzfz8/f1dXf39/j4+Pm5ubo0dHo4ODo6Ojp6enq4+Pq5eXr6+vt5OTt7e3u7u7v7+/w8PDx8fHy7Ozy7u7y8vLz7u7z8/P06en08fH09PT18PD28fH28/P29vb39PT39/f49PT49fX4+Pj59vb59/f5+fn69PT6+Pj6+vr79/f7+Pj7+fn7+vr7+/v8+Pj8+fn8+vr8/Pz9+vr9+/v9/Pz9/f3+/Pz+/v7/1dX/9/f/+Pj/+vr/+/v//Pz//f3//v7///8A/wD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8IUgCXCNzxI8gOJQV3CFy4RIkMJTccQnQYZCGShAgNZiS45MfDiB8lglzSQyPGk0FCqpwY8iBKlyZFyly5xKRNmAJrzGQJcWFJmDB1MBQ4MwnDgAAAIfkECQQA/wAsRwAXAA8ADAAACFMA/wkslAhcqWKJsLkRyPAfODfgujyM+LAYQ4QGMR4sWGrhRIkQQVJcyFGjyYJrRqoU2aXYxowlS7L8SBNiIZg4XwqcGfIjw5g5G/6zUROcDYYBAQAh+QQJAwD/ACxIABcAEAAMAAAIWwD/CfzXqVSxRNgSlRrIEAm4LuDcPIz4sBNDcAYTYTy4MVEigRMlQhRJsYvAjB1TGuxio6RLkhJDaURJk+PCkDhHTvxXc6bNgzxh5ow40E3Pjm4Y/lszNKnAgAAAIfkECQMA/wAsSgAXABEADQAACGUA/wn856YLtkSlBioceAScG3BdHEJ0uLBLsUTgSl3MuLFUooESIz4UOfHhvzYYNabs2PFflJIwSUZcU0olx5U4SyEJyXNkyH84bwotFepfzJ4TB7IMqrGLwlIyeUZZuNAjR4UBAQAh+QQJBAD/ACxMABcAEgAOAAAIaAD/CRTYpdTAgwgFgusCzs1CcGvAJfwXBVypYoksYtSYqNjBhw4Zhmy4kJvAUhczpuTIEds/kSBjwiy4caXNmhhH6pRJEiVOlT8t/iM5kyhRk0NvAgX6cWfRKBNLLdXYZiLCiEhCHQwIACH5BAkDAP8ALE4AGAATAA4AAAhkAP8JBOcGXBeCxQQqXCiwWCJwpRxClMhwYMGDFwka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";const wi=(()=>{if(typeof document>"u")return;const t=document.createElement("div"),e=Gl.render(v.createElement("video",{id:"player-container-id",playsInline:!0,crossOrigin:"anonymous",preload:"auto",controls:!1,muted:!0,style:{backgroundColor:"transparent",width:"100%",height:"100%",objectFit:"cover",pointerEvents:"none"}}),t);return i=>i?(i.innerHTML="",i.appendChild(e),document.querySelector("#player-container-id")):void 0})(),xd=ri(({rec:t,index:e,height:i,data:n,muted:o,activeIndex:l,videoPostConfig:a,videoPlayIcon:d,loopPlay:s,swiperRef:c},r)=>{var h,f;const[m,y]=G(!1),{bffEventReport:g,sxpParameter:x,waterFallData:p,openHashtag:b,bffFbReport:A,isDiyH5:w}=Xe(),C=de(0),[P,V]=G(!1),{isActive:L}=Ci(),S=de(null),[T,D]=G(""),[I,M]=G(!1),u=de(),B=`pb-cache-video-${e}`,W=de(null),j=de(null),R=de(),k=de(),E=de(!0),N=de(s),F=t.video.scene,U=F?.mediaUrl||((h=t?.video)===null||h===void 0?void 0:h.url),Y=F?.mediaUrl?F?.cover:(f=t?.video)===null||f===void 0?void 0:f.cover,$=Y||x?.placeholder_image;Ei(r,()=>({setLoopPlay(H){N.current=H}})),ue(()=>{N.current=s},[s]);const oe=me(()=>a?.mode==="2",[a]),re=me(()=>{var H;return a?.mode==="2"?`translateY(-${50+((H=a?.offsetTop)!==null&&H!==void 0?H:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[a]),Q=me(()=>Y||T,[T,t]),Te=me(()=>oe?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[oe]),Pe=me(()=>a?.bgWay==="1",[a]),Ue=me(()=>Pe&&a?.bgColor?{backgroundColor:a?.bgColor}:{},[a,Pe]);ue(()=>{u?.current&&(u.current.muted=o)},[o,u?.current]);const ve=ae(()=>{var H;u?.current&&((H=u?.current)===null||H===void 0||H.play())},[u?.current]),fe=kt("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),_e=ae(()=>{u?.current&&(M(!1),V(!0))},[]),qe=ae(()=>pt(void 0,void 0,void 0,function*(){var H,J,be,_,ge,we,te,z,We,nt,ht,Ge,it;if(!u?.current)return;y(!1);const Ve=n[e];if(Ve&&(!((H=u?.current)===null||H===void 0)&&H.duration)){C.current=((J=u?.current)===null||J===void 0?void 0:J.currentTime)||0;const lt=((_=(be=u?.current)===null||be===void 0?void 0:be.duration)!==null&&_!==void 0?_:0).toFixed(2),ct=((we=(ge=u?.current)===null||ge===void 0?void 0:ge.currentTime)!==null&&we!==void 0?we:0).toFixed(2),gt=E?.current?"0":"1";g?.({eventInfo:Object.assign({eventSubject:"playVideo",eventDescription:"User played the video",contentId:(z=(te=Ve?.video)===null||te===void 0?void 0:te.itemId)!==null&&z!==void 0?z:"",contentName:(nt=(We=Ve?.video)===null||We===void 0?void 0:We.title)!==null&&nt!==void 0?nt:"",playType:gt,startTime:ct,videoDuration:lt,contentTags:JSON.stringify((Ge=(ht=Ve?.video)===null||ht===void 0?void 0:ht.tags)!==null&&Ge!==void 0?Ge:[]),position:e+"",contentFormat:"video",traceInfo:(it=Ve?.video)===null||it===void 0?void 0:it.traceInfo},E?.current&&{loadTime:k?.current-R?.current+""})}),E.current=!1}}),[g,n,e,E,u?.current]),Ye=ae(()=>{w&&(u.current.currentTime=F?.startTime)},[]),Ie=ae(()=>{if(!u?.current||T||!oe||(u.current.style.objectFit="contain",Y||!S||!S.current||Pe))return;const H=()=>{const J=S?.current,be=J.getContext("2d"),_=window?.innerWidth,ge=window?.innerHeight;J.height=ge,J.width=_,be?.drawImage(u.current,0,0,J.width,J.height),D(J.toDataURL())};H(),setTimeout(()=>{H()},500)},[u.current,Pe,t,T,oe]),tt=ae(()=>{u.current&&(Ye(),k.current=new Date,qe(),Ie())},[u.current,Ie,qe]),$e=ae(H=>()=>{var J,be,_,ge,we,te;if(!u.current||!P)return;const z=(J=u?.current)===null||J===void 0?void 0:J.paused;switch(H){case"start":if(!z)return;(be=u?.current)===null||be===void 0||be.play(),y(!1);break;case"pause":if(z)return;(_=u?.current)===null||_===void 0||_.pause(),y(!0);break;default:z?(w&&Math.round((ge=u?.current)===null||ge===void 0?void 0:ge.currentTime)>=F?.endTime&&(u.current.currentTime=F?.startTime),(we=u?.current)===null||we===void 0||we.play()):(te=u?.current)===null||te===void 0||te.pause(),y(!z);break}},[P,u?.current]),et=ae(()=>{var H,J,be,_,ge,we,te,z,We,nt,ht,Ge,it;if(!u?.current||l!==e)return;y(!0);const Ve=n[e],lt=((J=(H=u?.current)===null||H===void 0?void 0:H.duration)!==null&&J!==void 0?J:0).toFixed(2),ct=((_=(be=u?.current)===null||be===void 0?void 0:be.currentTime)!==null&&_!==void 0?_:0).toFixed(2);if(!((ge=u?.current)===null||ge===void 0)&&ge.duration){const gt=(((we=u?.current)===null||we===void 0?void 0:we.currentTime)-C.current).toFixed(2);g?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(z=(te=Ve?.video)===null||te===void 0?void 0:te.itemId)!==null&&z!==void 0?z:"",contentName:(nt=(We=Ve?.video)===null||We===void 0?void 0:We.title)!==null&&nt!==void 0?nt:"",endTime:ct,videoDuration:lt,playDuration:gt,contentTags:JSON.stringify((Ge=(ht=Ve?.video)===null||ht===void 0?void 0:ht.tags)!==null&&Ge!==void 0?Ge:[]),position:e+"",contentFormat:"video",traceInfo:(it=Ve?.video)===null||it===void 0?void 0:it.traceInfo}})}},[n,e,g,u?.current,l]),vt=ae(()=>{M(!0)},[]),It=()=>{!u.current||!w||setTimeout(()=>{var H,J,be,_,ge,we,te,z,We;if(Math.round((H=u?.current)===null||H===void 0?void 0:H.currentTime)>=((J=F?.endTime)!==null&&J!==void 0?J:0)){if((be=u.current)===null||be===void 0||be.pause(),!N.current)return;if(e===n?.length-1)(ge=(_=c?.current)===null||_===void 0?void 0:_.swiper)===null||ge===void 0||ge.slideTo(0);else{const nt=(te=(we=c?.current)===null||we===void 0?void 0:we.swiper)===null||te===void 0?void 0:te.activeIndex;(We=(z=c?.current)===null||z===void 0?void 0:z.swiper)===null||We===void 0||We.slideTo(nt+1)}}})};ue(()=>{var H,J,be,_,ge,we,te,z,We,nt,ht;if(!L)return;const Ge=U;if(!Ge)return;const it=document.querySelector(`#${B}`);if(!it||(u.current=wi?.(it),!u?.current))return;R.current=new Date;const Ve=window?.Hls;let lt=j?.current;return Ge.includes(".m3u8")&&Ve&&Ve.isSupported()?(lt=new Ve,lt?.loadSource(Ge),lt?.attachMedia(u?.current),lt?.on(Ve.Events.MANIFEST_PARSED,function(){var ct;Ye(),(ct=u?.current)===null||ct===void 0||ct.play()})):u.current.src=Ge,(H=u?.current)===null||H===void 0||H.setAttribute("x5-playsinline","true"),(J=u?.current)===null||J===void 0||J.setAttribute("webkit-playsinline","true"),(be=u?.current)===null||be===void 0||be.addEventListener("loadedmetadata",tt),(_=u?.current)===null||_===void 0||_.addEventListener("loadeddata",Ie),(ge=u?.current)===null||ge===void 0||ge.addEventListener("play",qe),(we=u?.current)===null||we===void 0||we.addEventListener("playing",_e),(te=u?.current)===null||te===void 0||te.addEventListener("pause",et),(z=u?.current)===null||z===void 0||z.addEventListener("ended",ve),(We=u?.current)===null||We===void 0||We.addEventListener("canplay",ve),(nt=u?.current)===null||nt===void 0||nt.addEventListener("waiting",vt),(ht=u.current)===null||ht===void 0||ht.addEventListener("timeupdate",It),()=>{var ct,gt,Rt,Bt,Tt,wt,qt,Ct,Ke,ke,ee;((ct=u?.current)===null||ct===void 0?void 0:ct.paused)||et(),j?.current&&((gt=j?.current)===null||gt===void 0||gt.destroy()),V(!1),(Rt=u?.current)===null||Rt===void 0||Rt.removeEventListener("loadedmetadata",tt),(Bt=u?.current)===null||Bt===void 0||Bt.removeEventListener("loadeddata",Ie),(Tt=u?.current)===null||Tt===void 0||Tt.removeEventListener("play",qe),(wt=u?.current)===null||wt===void 0||wt.removeEventListener("playing",_e),(qt=u?.current)===null||qt===void 0||qt.removeEventListener("pause",et),(Ct=u?.current)===null||Ct===void 0||Ct.removeEventListener("ended",ve),(Ke=u?.current)===null||Ke===void 0||Ke.removeEventListener("canplay",ve),(ke=u?.current)===null||ke===void 0||ke.removeEventListener("waiting",vt),(ee=u.current)===null||ee===void 0||ee.removeEventListener("timeupdate",It)}},[L]),ue(()=>{var H,J,be,_,ge,we;!u?.current||!P||(L?(A?.({eventName:"ViewContent",product:(J=(H=n?.[e])===null||H===void 0?void 0:H.video)===null||J===void 0?void 0:J.bindProduct}),A?.({eventName:"PageView",product:(_=(be=n?.[e])===null||be===void 0?void 0:be.video)===null||_===void 0?void 0:_.bindProduct}),(ge=u?.current)===null||ge===void 0||ge.play()):(we=u?.current)===null||we===void 0||we.pause())},[L,P,u?.current]),ue(()=>{var H,J,be;if(!L||!u?.current)return;!((H=u?.current)===null||H===void 0?void 0:H.paused)&&b?(J=u?.current)===null||J===void 0||J.pause():b||(be=u?.current)===null||be===void 0||be.play()},[b,L,u?.current]),ue(()=>{if(!L)return;const H=()=>{$e("start")()},J=$e("pause");return xt.on(bt.PAGE_DID_SHOW,H),xt.on(bt.PAGE_DID_HIDE,J),()=>{xt.off(bt.PAGE_DID_SHOW,H),xt.off(bt.PAGE_DID_HIDE,J)}},[$e,L]);const Fe=me(()=>!$||P?null:v.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:$,alt:"placeholder image"}),[P]),pe=me(()=>{if(!(!I||!P))return v.createElement("img",{style:{position:"absolute",top:"50%",left:0,right:0,transform:"translateY(-100%)",margin:"auto",width:"50px",height:"50px",objectFit:"contain"},src:Sd,alt:"placeholder image"})},[I,P]);return ue(()=>{if(!u?.current)return;const H=()=>{l===e&&U&&u?.current&&!m&&$e("pause")()};return window.addEventListener("beforeunload",H),()=>{window.removeEventListener("beforeunload",H)}},[l,e,t,u?.current,$e,m]),t?.video?v.createElement(v.Fragment,null,oe?v.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:$e(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},Ue)},!Pe&&P&&Q&&v.createElement(Nt,{src:Q,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},Te)}),v.createElement("canvas",{ref:S,style:{display:"none"}}),v.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:re,left:0,right:0}},v.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},v.createElement("div",{className:"n-full-screen",ref:W,id:B,style:{width:"100%",height:"100%"}}),m&&v.createElement(Nt,{className:"clc-pb-video-pause",src:d??fe,alt:"pause"}))),Fe,pe):v.createElement("div",{className:"video-container",key:t?.video.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:$e()},v.createElement("div",{className:"n-full-screen",ref:W,id:B,style:{width:"100%",height:"100%"}}),Fe,pe,m&&v.createElement(Nt,{className:"clc-pb-video-pause",src:d??fe,alt:"pause"}))):null});var Td=je(xd);const Ed=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:n,style:o})=>{const[l,a]=G(t),d=s=>{s.stopPropagation();const c=!l;a(c),n?.(c)};return ue(()=>{a(t)},[t]),v.createElement("button",{style:o,"aria-label":"toggle button",className:"pb-toggle-button",onClick:d},v.createElement("img",{className:"pb-toggle-button-icon",alt:"toggle image",src:l?e:i}))};var Ji=je(Ed);const Id=({imageUrl:t,style:e,duration:i=2e3})=>{const[n,o]=G(!0);$t(),ue(()=>{setTimeout(()=>{o(!1)},i)},[]);const l=kt("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),a=me(()=>n?"pb-fadeIn":"pb-fadeOut",[n]);return v.createElement("div",{hidden:!n,className:`pb-finger-wrap ${a}`,style:Object.assign(Object.assign({},e),{animationDuration:`${i/1e3}s`})},v.createElement("img",{src:t||l,alt:"finger swiper"}))},Mn=t=>{const{src:e,height:i,imgUrlsPostConfig:n,onShowFirstImage:o}=t,l=me(()=>n?.mode==="2",[n]),a=me(()=>{var r;return n?.mode==="2"?`translateY(-${50+((r=n?.offsetTop)!==null&&r!==void 0?r:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[n]),d=me(()=>l?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[l]),s=me(()=>n?.bgWay==="1",[n]),c=me(()=>s&&n?.bgColor?{backgroundColor:n?.bgColor}:{},[n,s]);return v.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},c)},(!l||!s)&&v.createElement(Nt,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},d),onLoad:o}),l&&v.createElement(Nt,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:a,left:0,right:0},onLoad:o}))},kd=({imgUrls:t,width:e,height:i,rec:n,index:o,onViewImageEndEvent:l,onViewImageStartEvent:a,imgUrlsPostConfig:d})=>{var s,c;const{isActive:r}=Ci(),{sxpParameter:h,openHashtag:f}=Xe(),[m,y]=G(!1),[g,x]=G(),[p,b]=G(0),A=de(),w=de(!0),C=new Date;ue(()=>{m&&r?(A?.current&&A.current.swiper.autoplay.start(),f?l(n):(a(o,w.current?g:void 0,!0),w.current=!1)):A?.current&&A.current.swiper.autoplay.stop()},[n,r,l,f,o,a,m,g]);const P=ae(D=>pt(void 0,void 0,void 0,function*(){m||(x({loadTime:new Date-C+""}),y(!0))}),[m]);ue(()=>{if(!r)return;const D=()=>a(o,g),I=()=>l(n);return xt.on(bt.PAGE_DID_SHOW,D),xt.on(bt.PAGE_DID_HIDE,I),()=>{xt.off(bt.PAGE_DID_SHOW,D),xt.off(bt.PAGE_DID_HIDE,I)}},[r,g]);const V=ae(()=>{A.current&&A.current.swiper&&T&&A.current.swiper.autoplay.stop()},[]),L=ae(()=>{A.current&&A.current.swiper&&T&&A.current.swiper.autoplay.start()},[]),S=ae(D=>{b(D.activeIndex)},[]),T=me(()=>on(),[]);return v.createElement("div",{onMouseEnter:V,onMouseLeave:L},v.createElement(Kt,Object.assign({defaultValue:0,direction:"horizontal",modules:[Pi,Oi,...T?[kn,Cn,Ki,En]:[]],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"}},T?{mousewheel:!0,keyboard:!0,navigation:!0,a11y:{enabled:!0}}:{},{loop:!0,ref:A,onSlideChange:S,className:Be(Object.assign(Object.assign({".swiper-pagination":{bottom:(s=d?.marginBottom)!==null&&s!==void 0?s:0,fontSize:"14px"}},d?.dotsBgColor&&{".swiper-pagination-bullet":{backgroundColor:d?.dotsBgColor,opacity:1}}),d?.dotsActiveColor&&{".swipe-item-active-bullet":{backgroundColor:`${d?.dotsActiveColor}!important`,opacity:1}})),height:i,autoplay:{delay:((c=d?.delay)!==null&&c!==void 0?c:3)*1e3}}),t?.map((D,I)=>v.createElement(Wt,{key:I,"aria-hidden":I!==p},v.createElement(Mn,{src:!m&&I>0?"":D,height:i,imgUrlsPostConfig:d,onShowFirstImage:P})))))};var Cd=je(kd);const Pd=({tags:t,itemId:e,itemType:i,index:n,rec:o,hashTagStyle:l,hashTagRightMargin:a})=>{var d;const[s,c]=G(!1),{setWaterFallData:r,setOpenHashtag:h,setCacheActiveIndex:f,waterFallData:m,setIsFromHashtag:y}=Xe(),g=x=>{m?y?.(!0):f?.(n),r?.(i?{hashTag:x,itemId:e,itemType:i,rec:o}:{hashTag:x,rec:o}),h?.(!0)};return me(()=>t.length<=6?null:v.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>c(!s)},s?"show less":"show more"),[s,t]),v.createElement("div",{className:"clc-sxp-bottom-hashtag",style:{marginTop:`${(d=l?.marginTop)!==null&&d!==void 0?d:16}px`,width:a}},v.createElement(Li,null,t?.map((x,p)=>v.createElement(Wt,{key:p,hidden:s?!1:p>=6,className:"clc-sxp-bottom-hashtag-item",style:l,onClick:()=>g(x),tag:"li",role:"listitem"},v.createElement("button",{className:"clc-sxp-bottom-hashtag-item-button","aria-label":x,"aria-describedby":x,dangerouslySetInnerHTML:{__html:De(`#${x}`,l)}})))))};var Vl=je(Pd),Rl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAbtJREFUeF7t2DFKxFAQxvHv6xTxCoKNiAuCna2X2NY7eAE9hYdwj2BjZ2ulYLW9pQcYDWyxBIK7ZN7MNyapk/D+v8zC20dM/OLE+zEDzBMwcYH5J1BpAMzsAMAJyU+vdZeZADN7AHAH4BjAC8kbD4QSAJv4+17wFcm3sQjyAGbWhXdff/takzwdG989Lw0wEN+te0ly9a8BIuJlJyAqXhIgMl4OIDpeCiAjXgYgK14CIDM+HSA7PhVgYHvrusnZZaOUshNUiU+ZAKX4cAC1+FAAxfgwANX4EADl+OYA6vFNASrENwOoEt8EoFK8O0C1eFcAMzsE8AXgqLcHdzvA3GVvv+89bv8FzOwcwEdvASuSy30XFXm/G0C3aDN7BXBdCcEb4ALAE4BFFQRXgM0UlEJwB6iG0ASgEkIzgCoITQEqIDQHUEcIAVBGCANQRQgFUEQIB1BDSAFQQkgDUEFIBVBASAfIRpAAyESQAchCkALIQJADiEaQBIhEkAWIQpAG+ANh8Xvk/j72CF0eYABhDeCS5PckALYQbgGcAXgm+Tg2vnu+xAR4hA69YwZoqVvh3fMEVPhKLdc4+Qn4AXwYBFBN2dYpAAAAAElFTkSuQmCC";function Di(t){return je(function(e){const{$store:i}=to(),n=l=>{let a=l;const d=l.match(/{{.*?}}/g);return d?.length&&d.forEach(s=>{s.replace(/{{\s*([\w.]+)\s*}}/g,(c,r)=>{if(r){const h=Fn(i,r);return a=a.replace(s,h),h}})}),a},o=me(()=>{var l,a,d;const{bindDatas:s}=e,c=rt(e,["bindDatas"]);if((l=s?.forEach)===null||l===void 0||l.call(s,r=>{if(r?.propKey&&r?.dataPath){const{propKey:h,dataPath:f}=r;f.replace(/{{\s*([\w.]+)\s*}}/g,(m,y)=>{var g,x;if(y){const p=(x=(g=Fn(i,y))!==null&&g!==void 0?g:e[h])!==null&&x!==void 0?x:"";return c[h]=p,p}})}}),c){c.eventMap={};const r=fi(c.event)||{};for(const h in r)if(Object.prototype.hasOwnProperty.call(r,h))try{r[h].value=n(r[h].value),c.eventMap[h]=new Function(r[h].value)}catch{}}return!((d=(a=c?.event)===null||a===void 0?void 0:a.onClick)===null||d===void 0)&&d.linkType&&(c.style.cursor="pointer"),c},[i,e]);return v.createElement(t,Object.assign({},o,o.eventMap))})}const Od=({rec:t,index:e,tempMap:i,resolver:n,includesCtaType:o,isActive:l,value:a})=>{const{schema:d}=$t();if(!t?.video)return null;const s=me(()=>{var c,r,h,f,m,y,g,x,p,b,A,w,C,P,V,L,S,T,D,I,M,u,B,W,j,R,k,E;if(!(o&&!o?.includes((c=a?.item)===null||c===void 0?void 0:c.type))&&!(!o&&((r=a?.item)===null||r===void 0?void 0:r.category)==="cta")){if(((h=a?.item)===null||h===void 0?void 0:h.type)==="CommodityDiro"&&!(!((f=t?.video)===null||f===void 0)&&f.bindProduct)||((m=a?.item)===null||m===void 0?void 0:m.type)==="Commodity"&&!(!((y=t?.video)===null||y===void 0)&&y.bindProduct)||((g=a?.item)===null||g===void 0?void 0:g.type)==="CommodityDiroNew"&&!(!((x=t?.video)===null||x===void 0)&&x.bindProduct)||((p=a?.item)===null||p===void 0?void 0:p.type)==="MultiCommodity"&&!(!((A=(b=t?.video)===null||b===void 0?void 0:b.bindProducts)===null||A===void 0)&&A.length)||((w=a?.item)===null||w===void 0?void 0:w.type)==="MultiCommodityDiro"&&!(!((P=(C=t?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0)&&P.length)||((V=a?.item)===null||V===void 0?void 0:V.type)==="MultiCommodityDiroNew"&&!(!((S=(L=t?.video)===null||L===void 0?void 0:L.bindProducts)===null||S===void 0)&&S.length))return null;if(a&&n){const N=n[(T=a?.item)===null||T===void 0?void 0:T.type],F=Di(N),U=(D=N?.extend)===null||D===void 0?void 0:D.defaulSetting,Y=((u=(M=(I=a?.item)===null||I===void 0?void 0:I.event)===null||M===void 0?void 0:M.onClick)===null||u===void 0?void 0:u.linkType)==="externalLink";let $=fi((B=a?.item)===null||B===void 0?void 0:B.style);if($.hasOwnProperty("backdropFilter")){let oe=$.backdropFilter;$.backdropFilter=`blur(${oe??0}px)`}return v.createElement(F,Object.assign({style:Object.assign(Object.assign(Object.assign({},U?.style),$),{zIndex:50,marginLeft:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},U?.textStyle),(W=a?.item)===null||W===void 0?void 0:W.textStyle),bindDatas:(R=(j=a?.item)===null||j===void 0?void 0:j.bindDatas)!==null&&R!==void 0?R:[]},U?.props,(k=a?.item)===null||k===void 0?void 0:k.props,{event:((E=a?.item)===null||E===void 0?void 0:E.event)||{},schema:d,id:a?.id,key:a?.id,recData:t,isExternalLink:Y,index:e,isActive:l}))}else return null}},[t,n,i,d,a?.id,l]);return v.createElement(v.Fragment,null,s)};var ui=je(Od);const Bl=({nudge:t})=>{var e,i,n,o,l,a;return v.createElement(v.Fragment,null,t?.isOpen&&v.createElement("div",{className:"clc-sxp-bottom-nudge",style:{marginBottom:(e=t?.marginBottom)!==null&&e!==void 0?e:5,width:(n=(i=t?.size)===null||i===void 0?void 0:i.width)!==null&&n!==void 0?n:212,height:(l=(o=t?.size)===null||o===void 0?void 0:o.height)!==null&&l!==void 0?l:38,backgroundColor:t?.backgroundColor,borderRadius:(a=t?.borderRadius)!==null&&a!==void 0?a:4}},t?.icon?v.createElement("img",{src:t.icon,alt:"nudge icon",style:{height:"100%",objectFit:"cover",flexShrink:0}}):null,v.createElement("p",{style:Object.assign(Object.assign({},t?.textStyle),{textWrap:"nowrap",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",flex:1,marginBottom:0,marginTop:0}),dangerouslySetInnerHTML:{__html:De(t?.content,t?.textStyle)}})))},Ld=({tagList:t=[],setActiveIndex:e,style:i})=>{const{getRecommendVideos:n,setRtcList:o,setCacheRtcList:l,setCacheActiveIndex:a,setLoading:d,swiperRef:s,waterFallData:c,bffEventReport:r,selectTag:h,setSelectTag:f}=Xe(),{backMainFeed:m}=Mt(),y=me(()=>[zi,...t],[t]),g=x=>()=>{if(x===h)return;x!=="FOR U"?r?.({eventInfo:{eventSubject:"clickThemeTagsViewContents",eventDescription:"click Theme Tags View Contents",themeTags:`['${x}']`}}):m("theme",x,h);let p;x!==zi&&(p=x),d?.(!0),n?.({themeTag:p}).then(b=>{var A,w,C,P;xt.emit(bt.CHANGE_THEME_TAG,p),o?.((A=b?.recList)!==null&&A!==void 0?A:[]),l?.((w=b?.recList)!==null&&w!==void 0?w:[]),e?.(0),a?.(0),(P=(C=s?.current)===null||C===void 0?void 0:C.swiper)===null||P===void 0||P.slideTo(0)}).finally(()=>{d?.(!1)}),f?.(x)};return c||t.length<=0?null:v.createElement("div",{className:"clc-sxp-tagbar",style:i},v.createElement("div",{className:"clc-sxp-tagbar-list",style:{margin:"auto",gap:24}},y.map(x=>v.createElement("button",{className:`clc-sxp-tagbar-list-item ${x===h?"clc-sxp-tagbar-list-item-active":""}`,key:x,"aria-label":x,onClick:g(x)},x))))};var Fl=je(Ld);const jd=({resolver:t,globalConfig:e})=>{var i,n,o;const{consentPopupCate:l}=Ni(),a=(n=(i=e?.consentPopup)===null||i===void 0?void 0:i[0])===null||n===void 0?void 0:n.item;if(!a||!l&&!(!((o=a?.props)===null||o===void 0)&&o.open))return null;const d=t?.[a?.type],s=Di(d);return v.createElement(s,Object.assign({},a?.props,{style:a?.style,event:a?.event||{},consentPopupCate:l}))};var Md=je(jd);const Nd=({data:t,minusHeight:e,tagHeight:i,onClick:n})=>{var o,l,a,d,s;return v.createElement("button",{style:{position:"absolute",[(o=t?.xPosit)!==null&&o!==void 0?o:"left"]:(a=(l=t?.backButton)===null||l===void 0?void 0:l.x)!==null&&a!==void 0?a:0,[(d=t?.yPosit)!==null&&d!==void 0?d:"top"]:(t?.yPosit=="top"?e+i:0)+((s=t?.y)!==null&&s!==void 0?s:0),zIndex:8,border:"none",padding:0,background:"transparent"},role:"button","aria-label":"back button",onClick:n},v.createElement("img",{src:t?.icon||Rl,alt:"back button",width:100,style:{objectFit:"cover"}}))};var Wl=je(Nd);const Dd=({globalConfig:t,descStyle:e,containerHeight:i=window.innerHeight,containerWidth:n=window.innerWidth,tempMap:o,resolver:l,data:a=[],ctaType:d,tipText:s,nudge:c,_schema:r,hashTagStyle:h,hashTagRightMargin:f,tagList:m=[],defaultData:y})=>{var g,x,p,b,A,w,C,P,V,L,S,T,D,I,M,u,B,W,j,R,k,E,N,F,U;const Y=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),$=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png"),{schema:oe}=$t(),{openMultiPosts:re}=Ni(),[Q,Te]=G(0),Pe=de(0),[Ue,ve]=G(!0),fe=de(),[_e,qe]=G(!1),[Ye,Ie]=G(!1),[tt,$e]=G(new Date().getTime()),et=de(!1),[vt,It]=G(2),Fe=de(null),{loadVideos:pe,bffEventReport:H,loading:J,setPopupDetailData:be,ctaEvent:_,swiperRef:ge,waterFallData:we,setOpenHashtag:te,appDomain:z,openHashtag:We,loadingImage:nt,isFromHashtag:ht,popupDetailData:Ge,bffFbReport:it,curTime:Ve,h5EnterLink:lt,isShowConsent:ct,selectTag:gt,isPreview:Rt,isEditor:Bt,cacheRtcList:Tt,setRtcList:wt,cacheActiveIndex:qt,rtcList:Ct,isNoMoreData:Ke,channel:ke,refreshFeSession:ee,isDiyH5:Je}=Xe(),{backMainFeed:At,productView:ni,jumpToWeb:li}=Mt(),Et=me(()=>a.length>0&&!J&&(oo()||t?.enableSwiperTip),[a,J,t?.enableSwiperTip]);ue(()=>{ee?.(!0)},[]),ue(()=>{if(a?.length>0){const O=new Date;fe.current=O}},[a?.length]);const vi=ae(()=>{var O,Z,K;const ne=(Z=(O=y?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||Z===void 0?void 0:Z.globalConfig;if(!((K=ne?.session)===null||K===void 0)&&K.enable||rn(),lt?.(),a.length>0){const ce=new Date;fe.current=ce}},[a.length,lt,y]);ue(()=>{var O;if(!d||d?.length<1)return;const Z=a?.findIndex(K=>{var ne,ce,Ae,le,he,Ee,ie,He,xe;const Me=d?.[0];return Me==="\u591A\u5546\u54C1CTA"?((ne=K?.video)===null||ne===void 0?void 0:ne.bindProducts)&&((Ae=(ce=K?.video)===null||ce===void 0?void 0:ce.bindProducts)===null||Ae===void 0?void 0:Ae.length)>0:Me==="\u5546\u54C1CTA"?(le=K?.video)===null||le===void 0?void 0:le.bindProduct:((Ee=(he=K?.video)===null||he===void 0?void 0:he.bindCta)===null||Ee===void 0?void 0:Ee.itemId)===Me&&(((ie=K?.video)===null||ie===void 0?void 0:ie.url)||((xe=(He=K?.video)===null||He===void 0?void 0:He.imgUrls)===null||xe===void 0?void 0:xe.length))})||0;Z!==-1&&((O=ge?.current)===null||O===void 0||O.swiper.slideTo(Z))},[a,d,ge]);const oi=ae(O=>{var Z,K,ne,ce,Ae,le,he,Ee,ie,He,xe,Me,dt,at,ot,st,mt,yt,Qe,St;const Ne=a?.[Q];let Le="";Ge&&(!((K=(Z=Ne?.video)===null||Z===void 0?void 0:Z.bindProducts)===null||K===void 0)&&K.length||!((ne=Ne?.video)===null||ne===void 0)&&ne.bindProduct)?Le="pdpPage":Ge&&((he=o?.[(le=(Ae=(ce=Ne?.video)===null||ce===void 0?void 0:ce.bindCta)===null||Ae===void 0?void 0:Ae.itemId)!==null&&le!==void 0?le:""].item)===null||he===void 0?void 0:he.type)==="Appoint"?Le="formPage":ht?Le="hashTagPage":!((Ee=Ne?.video)===null||Ee===void 0)&&Ee.url?Le="videoPage":!((ie=Ne?.video)===null||ie===void 0)&&ie.imgUrls&&(!((xe=(He=Ne?.video)===null||He===void 0?void 0:He.imgUrls)===null||xe===void 0)&&xe.length)?Le="imagePage":Ne?.product&&(Le="productPage"),H?.({eventInfo:{sessionDuration:Math.floor((new Date-Ve.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(Me=Ne?.video)===null||Me===void 0?void 0:Me.itemId,productId:(dt=Ne?.product)===null||dt===void 0?void 0:dt.itemId,position:Q+"",fromKName:O||Le,fromKPage:location?.href,ctatId:(st=(ot=(at=Ne?.video)===null||at===void 0?void 0:at.bindCta)===null||ot===void 0?void 0:ot.itemId)!==null&&st!==void 0?st:"",traceInfo:(St=(yt=(mt=Ne?.video)===null||mt===void 0?void 0:mt.traceInfo)!==null&&yt!==void 0?yt:(Qe=Ne?.product)===null||Qe===void 0?void 0:Qe.traceInfo)!==null&&St!==void 0?St:""}})},[a,H,Q,Ge,o,ht,Ve]);ue(()=>{const O=a?.[Q],Z=()=>{const K=!We&&!ct;document.visibilityState==="hidden"?(K&&(xt.emit(bt.PAGE_DID_HIDE,O),Se(O)),(t?.playbook!=="organic menu"||Q!==0||ke)&&(ee?.(!1,oi)||oi())):document.visibilityState==="visible"&&(et.current===!0&&($e(new Date().getTime()),et.current=!1),ee?.(!1),vi(),K&&(setTimeout(()=>{xt.emit(bt.PAGE_DID_SHOW,O)}),At("external",gt)))};return document.addEventListener("visibilitychange",Z),()=>{document.removeEventListener("visibilitychange",Z)}},[Q,H,a,vi,Ge,ht,o,Ve,At,We,ct,gt,ke,oi,ee]);const pi=ae(Si(()=>{var O;(O=Fe.current)===null||O===void 0||O.setLoopPlay(!1),ee?.(!1,oi)},1e3),[oi,ee]);ue(()=>{const O=["touchstart","touchcancel"];return O.forEach(Z=>{window.addEventListener(Z,pi)}),()=>{O.forEach(Z=>{window.removeEventListener(Z,pi)})}},[pi]);const Qt=me(()=>{let O=0;return m.length>0&&(O+=45,we&&(O-=45)),O},[m,we]),Xt=me(()=>{let O=0;return t?.logoUrl&&t?.isShowLogo&&(O+=56),O},[t]),zt=me(()=>i-Xt-Qt,[Xt,i,Qt]),Pt=me(()=>{var O;const Z=Q===0&&!we&&!Bt&&!Je?[(O=a?.[0])!==null&&O!==void 0?O:null]:a?.map((K,ne)=>Q===ne||ne-1===Q||ne+1===Q?K:null);return Z?.length?!we&&!Ke&&!Je?Z.concat([{loading:!0}]):Z:[]},[a,Q,we,Bt,Ke,Je]),Vi=me(()=>{var O,Z,K,ne;if(t?.logoUrl&&t?.isShowLogo){const ce=(Z=(O=t?.logoBar)===null||O===void 0?void 0:O.onClick)===null||Z===void 0?void 0:Z.value,Ae=((ne=(K=t?.logoBar)===null||K===void 0?void 0:K.onClick)===null||ne===void 0?void 0:ne.linkType)==="externalLink",le=Pt[Q];return v.createElement("div",Object.assign({className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},ce&&{onClick:he=>{var Ee,ie,He,xe;Ae&&li(he,le,(Ee=le?.video)===null||Ee===void 0?void 0:Ee.bindProduct,(ie=le?.video)===null||ie===void 0?void 0:ie.bindCta,Q,((He=le?.product)===null||He===void 0?void 0:He.traceInfo)||((xe=le?.video)===null||xe===void 0?void 0:xe.traceInfo)),new Function(ce)()}}),v.createElement("img",{src:t?.logoUrl,alt:"logo"}))}return null},[t,Q,Pt]),Ri=ae((O,Z)=>{var K,ne,ce,Ae,le,he,Ee,ie,He,xe;return O==="organic menu"?v.createElement(Ln,Object.assign({recData:a?.[1]},(ce=(ne=(K=t?.multiPosts)===null||K===void 0?void 0:K[0])===null||ne===void 0?void 0:ne.item)===null||ce===void 0?void 0:ce.props,(he=(le=(Ae=t?.multiPosts)===null||Ae===void 0?void 0:Ae[0])===null||le===void 0?void 0:le.item)===null||he===void 0?void 0:he.event)):!((Ee=O?.video)===null||Ee===void 0)&&Ee.url?v.createElement(Td,Object.assign({key:tt},Q===Z&&{ref:Fe},{rec:O,index:Z,muted:Ue,data:a,height:zt,activeIndex:Q,videoPostConfig:t?.videoPost,videoPlayIcon:t?.videoPlayIcon,loopPlay:!0,swiperRef:ge})):!((ie=O?.video)===null||ie===void 0)&&ie.imgUrls?v.createElement(Cd,{key:O?.video.itemId,imgUrls:O?.video.imgUrls,width:n,height:zt,rec:O,index:Z,onViewImageEndEvent:se,onViewImageStartEvent:Ce,imgUrlsPostConfig:t?.imgUrlsPost}):O.product&&Array.isArray(t?.productPost)&&((He=t?.productPost)===null||He===void 0?void 0:He.length)>0?(xe=t?.productPost)===null||xe===void 0?void 0:xe.map((Me,dt)=>{var at,ot,st,mt,yt,Qe,St,Ne;const Le=l[(at=Me?.item)===null||at===void 0?void 0:at.type],Dt=Di(Le),jt=(ot=Le?.extend)===null||ot===void 0?void 0:ot.defaulSetting;return v.createElement(Dt,Object.assign({key:`${Z}${dt}`,textStyle:Object.assign(Object.assign({},jt?.textStyle),(st=Me?.item)===null||st===void 0?void 0:st.textStyle),bindDatas:(yt=(mt=Me?.item)===null||mt===void 0?void 0:mt.bindDatas)!==null&&yt!==void 0?yt:[]},jt?.props,(Qe=Me?.item)===null||Qe===void 0?void 0:Qe.props,{event:((St=Me?.item)===null||St===void 0?void 0:St.event)||{},schema:oe,id:Me?.id,viewTime:fe.current,rec:O,isPost:!0,tipText:s,style:Object.assign(Object.assign(Object.assign({},jt?.style),(Ne=Me?.item)===null||Ne===void 0?void 0:Ne.style),{height:"100%",overflow:"auto"}),index:Z,isActive:Q===Z}))}):null},[n,a,zt,Ue,Q,t?.productPost,t?.videoPlayIcon,fe,s,l,oe,tt]),Bi=ae(O=>{Ie(O)},[]),$i=me(()=>Ye?{background:"linear-gradient( 180deg, rgba(129,129,129,0) 0%, rgba(121,121,121,0.5) 5%, #616161 100%)",paddingTop:20,paddingBottom:20}:{padding:"20px 0"},[Ye]),q=ae((O,Z)=>{var K,ne,ce,Ae,le,he,Ee,ie,He,xe,Me,dt,at;if(O?.video){let ot=null;!((ne=(K=O?.video)===null||K===void 0?void 0:K.bindProducts)===null||ne===void 0)&&ne.length?ot="\u591A\u5546\u54C1CTA":!((ce=O?.video)===null||ce===void 0)&&ce.bindProduct?ot="\u5546\u54C1CTA":ot=(le=(Ae=O?.video)===null||Ae===void 0?void 0:Ae.bindCta)===null||le===void 0?void 0:le.itemId;const st=o?.[ot];return v.createElement(v.Fragment,null,((he=O?.video)===null||he===void 0?void 0:he.title)&&!Ye&&v.createElement("div",{className:"clc-sxp-bottom-shadow"}),v.createElement("div",{className:"clc-sxp-bottom",style:{marginBottom:`${(Ee=t?.bottomInfoDist)!==null&&Ee!==void 0?Ee:40}px`}},v.createElement(Bl,{nudge:c}),t?.isShowCTA===void 0||t?.isShowCTA?v.createElement("div",{className:"clc-sxp-bottom-card"},v.createElement(ui,{rec:O,index:Z,tempMap:o,resolver:l,isActive:Z===Q,value:st})):null,v.createElement("div",null,v.createElement(ji,{className:"clc-sxp-bottom-text",isPost:!0,foldText:s?.foldText,unfoldText:s?.unfoldText,text:(He=(ie=O?.video)===null||ie===void 0?void 0:ie.title)!==null&&He!==void 0?He:"",style:Object.assign(Object.assign({},e),{textShadow:t?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"}),onChange:Bi}),v.createElement(ui,{rec:O,index:Z,tempMap:o,resolver:l,includesCtaType:["AniLink"],isActive:Z===Q,value:st}),v.createElement(Vl,{index:Q,tags:(Me=(xe=O?.video)===null||xe===void 0?void 0:xe.hashTags)!==null&&Me!==void 0?Me:[],itemId:(dt=O?.video)===null||dt===void 0?void 0:dt.itemId,itemType:!((at=O?.video)===null||at===void 0)&&at.itemId?"VIDEO":null,rec:O,hashTagStyle:h,hashTagRightMargin:n-(f??0)}))),v.createElement(ui,{rec:O,index:Z,tempMap:o,resolver:l,includesCtaType:["AniLinkPopup"],isActive:Z===Q,value:st}))}return null},[e,Q,o,l,s,c,h,t,Bi,Ye,$i]),X=ae((O,Z,K)=>{var ne,ce,Ae,le;if(!t?.isShowLike||!K)return;let he=(ne=t?.likeIconY)!==null&&ne!==void 0?ne:400;return we&&he<40&&t?.likeIconYPosit==="top"&&(he+=40),t?.likeIconYPosit==="top"&&(he+=Xt),O?.video?v.createElement(jn,{key:O.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:O.isCollected,recData:O,className:"clc-sxp-like-button",style:{position:t?.likeIconFixed?"fixed":"absolute",[(ce=t.likeIconXPosit)!==null&&ce!==void 0?ce:"right"]:(Ae=t.likeIconX)!==null&&Ae!==void 0?Ae:0,[(le=t.likeIconYPosit)!==null&&le!==void 0?le:"bottom"]:he},position:Z}):null},[t,we]),se=O=>{var Z,K,ne,ce,Ae,le;if(!(!((Z=O?.video)===null||Z===void 0)&&Z.url)&&(!((K=O?.video)===null||K===void 0)&&K.imgUrls)){const he=Date.now(),Ee=Pe.current===0?0:(he-Pe.current)/1e3;H?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(ce=(ne=O?.video)===null||ne===void 0?void 0:ne.itemId)!==null&&ce!==void 0?ce:"",contentName:(Ae=O?.video.title)!==null&&Ae!==void 0?Ae:"",imageEndTime:`${he}`,playDuration:`${Ee}`,contentTags:JSON.stringify((le=O?.video.tags)!==null&&le!==void 0?le:[]),position:Q+"",contentFormat:"image",traceInfo:O?.video.traceInfo}})}},Oe=(O,Z)=>{var K,ne,ce,Ae,le,he,Ee,ie,He,xe,Me,dt,at,ot,st,mt,yt,Qe,St,Ne,Le,Dt;if(Rt||we)return;const jt=new Date-Ve.current;if(t?.openSlideSkip&&jt>=((K=t?.slideSkipStartTime)!==null&&K!==void 0?K:0)&&ao()&&O){const mi=((Ae=(ce=(ne=O?.video)===null||ne===void 0?void 0:ne.bindProducts)===null||ce===void 0?void 0:ce[0])===null||Ae===void 0?void 0:Ae.link)||((he=(le=O?.video)===null||le===void 0?void 0:le.bindProduct)===null||he===void 0?void 0:he.link)||((Ee=O?.product)===null||Ee===void 0?void 0:Ee.link),ut=O?.product||((ie=O?.video)===null||ie===void 0?void 0:ie.bindProduct)||((xe=(He=O?.video)===null||He===void 0?void 0:He.bindProducts)===null||xe===void 0?void 0:xe[0]);if(mi){let ai=null;!((Me=O?.video)===null||Me===void 0)&&Me.url?ai="video":!((at=(dt=O?.video)===null||dt===void 0?void 0:dt.imgUrls)===null||at===void 0)&&at.length&&(ai="image"),H?.({eventInfo:{eventSubject:"swipeToWeb",eventDescription:"User swiped to web",productId:(ot=ut?.itemId)!==null&&ot!==void 0?ot:"",productName:(st=ut?.title)!==null&&st!==void 0?st:"",price:ut?.price?ut?.price+"":"0",productCollection:(mt=ut?.collection)!==null&&mt!==void 0?mt:"",contentTags:ut?.tags?JSON.stringify(ut?.tags):"",position:Z+"",contentId:(Qe=(yt=O?.video)===null||yt===void 0?void 0:yt.itemId)!==null&&Qe!==void 0?Qe:"",traceInfo:(Dt=(Ne=(St=O?.video)===null||St===void 0?void 0:St.traceInfo)!==null&&Ne!==void 0?Ne:(Le=O?.product)===null||Le===void 0?void 0:Le.traceInfo)!==null&&Dt!==void 0?Dt:"",contentFormat:ai}}),et.current=!0,window.location.href=window.getJointUtmLink(mi)}}},ye=O=>{var Z,K,ne,ce,Ae,le,he,Ee,ie,He,xe,Me,dt,at,ot,st,mt,yt,Qe,St,Ne;const Le=a[O.previousIndex];if(!Le)return;let Dt=null;!((Z=Le?.video)===null||Z===void 0)&&Z.url?Dt="video":!((ne=(K=Le?.video)===null||K===void 0?void 0:K.imgUrls)===null||ne===void 0)&&ne.length&&(Dt="image"),O.previousIndex-O.activeIndex<0?(H?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(Ae=(ce=Le?.video)===null||ce===void 0?void 0:ce.itemId)!==null&&Ae!==void 0?Ae:"",productId:(he=(le=Le?.product)===null||le===void 0?void 0:le.itemId)!==null&&he!==void 0?he:"",requestId:null,traceInfo:(xe=(ie=(Ee=Le?.video)===null||Ee===void 0?void 0:Ee.traceInfo)!==null&&ie!==void 0?ie:(He=Le?.product)===null||He===void 0?void 0:He.traceInfo)!==null&&xe!==void 0?xe:"",contentFormat:Dt,position:((Me=O.previousIndex)!==null&&Me!==void 0?Me:0)+""}}),se(Le),Oe(Le,O.previousIndex)):(H?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(at=(dt=Le?.video)===null||dt===void 0?void 0:dt.itemId)!==null&&at!==void 0?at:"",productId:(st=(ot=Le.product)===null||ot===void 0?void 0:ot.itemId)!==null&&st!==void 0?st:"",requestId:null,traceInfo:(St=(yt=(mt=Le?.video)===null||mt===void 0?void 0:mt.traceInfo)!==null&&yt!==void 0?yt:(Qe=Le?.product)===null||Qe===void 0?void 0:Qe.traceInfo)!==null&&St!==void 0?St:"",contentFormat:Dt,position:((Ne=O.previousIndex)!==null&&Ne!==void 0?Ne:0)+""}}),se(Le)),Se(Le),fe.current=new Date},Se=O=>{var Z,K,ne;!(!((Z=O?.video)===null||Z===void 0)&&Z.url)&&!(!((K=O?.video)===null||K===void 0)&&K.imgUrls)&&O?.product&&ni(O,O.product,(ne=O?.product)===null||ne===void 0?void 0:ne.bindCta,fe.current,Q)};ue(()=>{const O=a[Q];We?Se(O):fe.current=new Date},[We,a,Q]);const Ce=(O,Z,K)=>{var ne,ce,Ae,le,he,Ee,ie,He;const xe=a[O];if(!(!((ne=xe?.video)===null||ne===void 0)&&ne.url)&&(!((ce=xe?.video)===null||ce===void 0)&&ce.imgUrls)){const Me=Date.now();Pe.current=Me,H?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(le=(Ae=xe?.video)===null||Ae===void 0?void 0:Ae.itemId)!==null&&le!==void 0?le:"",contentName:(he=xe?.video.title)!==null&&he!==void 0?he:"",imageStartTime:`${Me}`,contentTags:JSON.stringify((Ee=xe?.video.tags)!==null&&Ee!==void 0?Ee:[]),position:O+"",contentFormat:"image",traceInfo:xe?.video.traceInfo,loadTime:Z?.loadTime}}),K&&(it?.({eventName:"ViewContent",product:(ie=xe?.video)===null||ie===void 0?void 0:ie.bindProduct}),it?.({eventName:"PageView",product:(He=xe?.video)===null||He===void 0?void 0:He.bindProduct}))}},ze=ae(O=>{var Z,K,ne,ce,Ae,le;if(!O)return;let he=(Z=t?.muteIconY)!==null&&Z!==void 0?Z:23;return we&&he<40&&t?.muteIconYPosit==="top"&&(he+=40),t?.muteIconYPosit==="top"&&(he+=Xt),(t?.isShowMute===void 0||t?.isShowMute===!0)&&v.createElement(Ji,{style:{position:t?.muteIconFixed?"fixed":"absolute",visibility:!((ne=(K=Pt?.[Q])===null||K===void 0?void 0:K.video)===null||ne===void 0)&&ne.url?"visible":"hidden",zIndex:999,transform:"translate3d(0px,0px,0px)",[(ce=t?.muteIconXPosit)!==null&&ce!==void 0?ce:"right"]:(Ae=t?.muteIconX)!==null&&Ae!==void 0?Ae:0,[(le=t?.muteIconYPosit)!==null&&le!==void 0?le:"bottom"]:he},defaultValue:Ue,activeIcon:t?.unMuteIcon?t?.unMuteIcon:Y,unactiveIcon:t?.muteIcon?t?.muteIcon:$,onChange:ve})},[t,Pt,Q,Ue,we]),Re=me(()=>J?v.createElement("div",{style:{height:zt,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("img",{width:64,height:64,src:nt,alt:"loading...",style:{objectFit:"contain"}})):Pt?.map((O,Z)=>v.createElement(Wt,{key:Z,virtualIndex:Z,style:{overflow:"hidden"}},O&&v.createElement(v.Fragment,null,O?.loading?v.createElement("div",{style:{height:zt,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("img",{width:64,height:64,src:nt,alt:"loading...",style:{objectFit:"contain"}})):v.createElement(v.Fragment,null,q(O,Z),X(O,Z,!t?.likeIconFixed),ze(!t?.muteIconFixed),Ri(O,Z))))),[n,a,zt,J,q,Ri,Pt,nt,tt,ze]);return v.createElement("div",{id:"sxp-render",className:"clc-sxp-container"},a?.length<1&&J?v.createElement("div",{style:{height:zt,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement("img",{width:64,height:64,src:nt,alt:"loading...",style:{objectFit:"contain"}})):v.createElement("div",{style:Object.assign({},t?.textUnderlineOffset&&{textUnderlineOffset:`${t?.textUnderlineOffset}px`})},we&&v.createElement(Ol,{icon:Rl,styles:{background:"rgba(0,0,0,.3)",color:"#fff",top:`${Xt}px`},textStyle:Object.assign(Object.assign({},(A=(b=(p=(x=(g=t?.hashTag)===null||g===void 0?void 0:g[0])===null||x===void 0?void 0:x.item)===null||p===void 0?void 0:p.props)===null||b===void 0?void 0:b.textStyles)===null||A===void 0?void 0:A.hashTagTitle),{color:"#fff"}),onClose:()=>{!Rn(Ct,Tt)&&Tt&&Tt?.length&&wt?.(Tt),te?.(!0)}}),Vi,v.createElement(Fl,{tagList:m,setActiveIndex:Te,style:{top:Xt}}),((w=t?.backButton)===null||w===void 0?void 0:w.enable)&&!ke&&!re&&!we&&v.createElement(Wl,{data:t?.backButton,minusHeight:Xt,tagHeight:Qt,onClick:()=>history?.back()}),(((S=(L=(V=(P=(C=t?.multiPosts)===null||C===void 0?void 0:C[0])===null||P===void 0?void 0:P.item)===null||V===void 0?void 0:V.props)===null||L===void 0?void 0:L.backButton)===null||S===void 0?void 0:S.enable)&&ke||re)&&!we&&v.createElement(Wl,{data:(M=(I=(D=(T=t?.multiPosts)===null||T===void 0?void 0:T[0])===null||D===void 0?void 0:D.item)===null||I===void 0?void 0:I.props)===null||M===void 0?void 0:M.backButton,minusHeight:Xt,tagHeight:Qt,onClick:()=>{var O,Z;const K=Pt?.[Q];H?.({eventInfo:{eventSubject:"backMultiPostClick",eventDescription:"backMultiPostClick",traceInfo:((O=K?.video)===null||O===void 0?void 0:O.traceInfo)||((Z=K?.product)===null||Z===void 0?void 0:Z.traceInfo)||""}}),location?.reload()}}),Et?v.createElement(Id,{imageUrl:t?.swipeTipIcon,style:{top:`${50-((u=t?.swipeTipOffset)!==null&&u!==void 0?u:0)}%`},duration:t?.swiperTipAniDur}):null,v.createElement(Kt,{style:{marginTop:Qt},ref:ge,onSlideChange:()=>{ge.current.swiper.allowTouchMove=!1,setTimeout(()=>{ge.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:O=>{Te(O.activeIndex),!We&&(ye(O),!(we||Bt||Je)&&O?.activeIndex+1>=a?.length&&(_e||(qe(!0),pe?.(vt).then(Z=>{var K;qe(!1),Z&&((K=Z?.recList)===null||K===void 0?void 0:K.length)>0&&It(vt+1)}))))},direction:"vertical",height:zt},Re,X(Pt[Q],Q,!!t?.likeIconFixed),ze(!!t?.muteIconFixed)),v.createElement(jl,Object.assign({},(j=(W=(B=t?.hashTag)===null||B===void 0?void 0:B[0])===null||W===void 0?void 0:W.item)===null||j===void 0?void 0:j.props)),v.createElement(Md,{resolver:l,globalConfig:t}),re&&v.createElement(Ln,Object.assign({},(E=(k=(R=t?.multiPosts)===null||R===void 0?void 0:R[0])===null||k===void 0?void 0:k.item)===null||E===void 0?void 0:E.props,(U=(F=(N=t?.multiPosts)===null||N===void 0?void 0:N[0])===null||F===void 0?void 0:F.item)===null||U===void 0?void 0:U.event,{style:{position:"fixed",top:0,left:0,right:0}}))))};var zl=je(Dd);const Vd=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:n,rec:o,index:l})=>v.createElement(Kt,{defaultValue:0,direction:"horizontal",modules:[Pi,Oi],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(a=>v.createElement(Wt,{key:a},v.createElement(Mn,{src:a,height:i,imgUrlsPostConfig:n}))));var Rd=je(Vd);const Bd=({rec:t,index:e,height:i,data:n,muted:o,activeIndex:l,videoPostConfig:a,width:d})=>{const[s,c]=G(!1),r=de(null),{bffEventReport:h,sxpParameter:f,waterFallData:m,openHashtag:y}=Xe(),g=de(0),[x,p]=G(!1),[b,A]=G(!0),w=de(null),[C,P]=G("");ue(()=>{r.current&&(r.current.muted=o)},[o]);const V=ae(()=>{var k;(k=r.current)===null||k===void 0||k.play()},[]),L=kt("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),S=ae(()=>{var k,E,N,F,U,Y,$,oe,re,Q,Te,Pe,Ue;c(!1);const ve=n[e];if(ve&&(!((k=r?.current)===null||k===void 0)&&k.duration)){g.current=((E=r?.current)===null||E===void 0?void 0:E.currentTime)||0;const fe=((F=(N=r.current)===null||N===void 0?void 0:N.duration)!==null&&F!==void 0?F:0).toFixed(2),_e=((Y=(U=r.current)===null||U===void 0?void 0:U.currentTime)!==null&&Y!==void 0?Y:0).toFixed(2),qe=b?"0":"1";h?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(oe=($=ve?.video)===null||$===void 0?void 0:$.itemId)!==null&&oe!==void 0?oe:"",contentName:(Q=(re=ve?.video)===null||re===void 0?void 0:re.title)!==null&&Q!==void 0?Q:"",playType:qe,startTime:_e,videoDuration:fe,contentTags:JSON.stringify((Pe=(Te=ve?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Pe!==void 0?Pe:[]),position:e+"",contentFormat:"video",traceInfo:(Ue=ve?.video)===null||Ue===void 0?void 0:Ue.traceInfo}}),A(!1)}},[h,n,e,b]),T=ae(()=>{p(!0)},[]),D=ae(k=>()=>{var E,N,F,U,Y;if(!x)return;const $=(E=r.current)===null||E===void 0?void 0:E.paused;switch(k){case"start":if(!$)return;(N=r.current)===null||N===void 0||N.play(),c(!1);break;case"pause":if($)return;(F=r.current)===null||F===void 0||F.pause(),c(!0);break;default:$?(U=r.current)===null||U===void 0||U.play():(Y=r.current)===null||Y===void 0||Y.pause(),c(!$);break}},[x]),I=ae(()=>{var k,E,N,F,U,Y,$,oe,re,Q,Te,Pe,Ue;const ve=n[e],fe=((E=(k=r.current)===null||k===void 0?void 0:k.duration)!==null&&E!==void 0?E:0).toFixed(2),_e=((F=(N=r.current)===null||N===void 0?void 0:N.currentTime)!==null&&F!==void 0?F:0).toFixed(2);if(!((U=r?.current)===null||U===void 0)&&U.duration){const qe=(((Y=r?.current)===null||Y===void 0?void 0:Y.currentTime)-g.current).toFixed(2);h?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(oe=($=ve?.video)===null||$===void 0?void 0:$.itemId)!==null&&oe!==void 0?oe:"",contentName:(Q=(re=ve?.video)===null||re===void 0?void 0:re.title)!==null&&Q!==void 0?Q:"",endTime:_e,videoDuration:fe,playDuration:qe,contentTags:JSON.stringify((Pe=(Te=ve?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Pe!==void 0?Pe:[]),position:e+"",contentFormat:"video",traceInfo:(Ue=ve?.video)===null||Ue===void 0?void 0:Ue.traceInfo}})}},[n,e,h]),M=me(()=>a?.mode==="2",[a]),u=me(()=>{var k;return a?.mode==="2"?`translateY(-${50+((k=a?.offsetTop)!==null&&k!==void 0?k:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[a]),B=me(()=>{var k;return((k=t?.video)===null||k===void 0?void 0:k.cover)||C},[C,t]),W=ae(()=>{if(!w||!r||!r.current||!w.current)return;const k=r?.current,E=w?.current,N=E.getContext("2d"),F=window?.innerWidth,U=window?.innerHeight;E.height=U,E.width=F,N?.drawImage(k,0,0,E.width,E.height),P(E.toDataURL())},[]);ue(()=>{var k,E,N,F;if(r.current){if(c(!1),!r.current.src){const U=t?.video.url;if(U.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const Y=new window.Hls;Y.loadSource(U),Y.attachMedia(r.current)}else r.current.canPlayType("application/vnd.apple.mpegurl"),r.current.src=U;else r.current.src=U;r.current.setAttribute("x5-playsinline","true"),r.current.setAttribute("webkit-playsinline","true")}return(k=r.current)===null||k===void 0||k.addEventListener("loadedmetadata",T),(E=r.current)===null||E===void 0||E.addEventListener("canplay",T),(N=r.current)===null||N===void 0||N.addEventListener("playing",S),(F=r.current)===null||F===void 0||F.addEventListener("loadeddata",W),()=>{var U,Y,$,oe;(U=r.current)===null||U===void 0||U.removeEventListener("loadedmetadata",T),(Y=r.current)===null||Y===void 0||Y.removeEventListener("canplay",T),($=r.current)===null||$===void 0||$.removeEventListener("playing",S),(oe=r.current)===null||oe===void 0||oe.removeEventListener("loadeddata",W)}}},[T,S,t?.video,W]);const j=me(()=>!f?.placeholder_image||x?null:v.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:f?.placeholder_image,alt:"video poster"}),[x,f?.placeholder_image]);ue(()=>{const k=()=>{var E,N;l===e&&(!((E=t?.video)===null||E===void 0)&&E.url)&&(!((N=r?.current)===null||N===void 0)&&N.src)&&!s&&D("pause")()};return window.addEventListener("beforeunload",k),()=>{window.removeEventListener("beforeunload",k)}},[l,e,t,r,D,s]);const R=me(()=>M?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[M]);return t?.video?v.createElement(v.Fragment,null,M?v.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:D(),style:{position:"relative",width:d,height:i,overflow:"hidden"}},v.createElement(Nt,{src:B,style:Object.assign({height:i,width:d,objectFit:"cover"},R)}),v.createElement("canvas",{ref:w,style:{display:"none"}}),v.createElement("div",{style:{position:"absolute",width:d,height:i,top:"50%",transform:u,left:0,right:0}},v.createElement("div",{style:{position:"relative",width:d,height:"100%"}},v.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",ref:r,autoPlay:!0,crossOrigin:"anonymous",muted:!0,controls:!1,playsInline:!0,preload:"auto",onPause:I,onEnded:V,style:{width:"100%",height:i,objectFit:"contain"}}),v.createElement("img",{hidden:!s,className:"clc-pb-video-pause",src:L,alt:"video pause image"}))),j):v.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:D(),style:{position:"relative",width:d,height:i,overflow:"hidden"}},v.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",style:{width:"100%"},ref:r,crossOrigin:"anonymous",muted:!0,autoPlay:!0,controls:!1,playsInline:!0,preload:"auto",onPause:I,onEnded:V}),j,v.createElement("img",{hidden:!s,className:"clc-pb-video-pause",src:L,alt:"video pause image"}))):null};var Fd=je(Bd);const Nn={};Object.values(_i).forEach(t=>{Nn[t.extend.type]=t});const Wd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",zd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Ud=({data:t=[],globalConfig:e,tipText:i,nudge:n,tempMap:o,descStyle:l,hashTagStyle:a,containerHeight:d=664,containerWidth:s=375,appDomain:c,tagList:r=[]})=>{const h=me(()=>{let P=0;return e?.logoUrl&&e?.isShowLogo&&(P+=45),r.length>0&&(P+=45),d-P},[e,d,r]),f=(P,V)=>{var L,S,T,D;if(!((L=P?.video)===null||L===void 0)&&L.url)return v.createElement(Fd,{rec:P,index:V,muted:!0,width:s,data:t??[],height:h,activeIndex:V,videoPostConfig:e?.videoPost});if(!((S=P?.video)===null||S===void 0)&&S.imgUrls)return v.createElement(Rd,{key:P?.video.itemId,imgUrls:P?.video.imgUrls,width:s,height:h,rec:P,index:V,imgUrlsPostConfig:e?.imgUrlsPost});if(P.product&&P.product&&Array.isArray(e?.productPost)&&((T=e?.productPost)===null||T===void 0?void 0:T.length)>0)return(D=e?.productPost)===null||D===void 0?void 0:D.map((I,M)=>{var u,B,W,j,R,k,E,N;const F=Nn[(u=I?.item)===null||u===void 0?void 0:u.type],U=Di(F),Y=(B=F?.extend)===null||B===void 0?void 0:B.defaulSetting;return v.createElement(U,Object.assign({key:`${V}${M}`,textStyle:Object.assign(Object.assign({},Y?.textStyle),(W=I?.item)===null||W===void 0?void 0:W.textStyle),bindDatas:(R=(j=I?.item)===null||j===void 0?void 0:j.bindDatas)!==null&&R!==void 0?R:[]},Y?.props,(k=I?.item)===null||k===void 0?void 0:k.props,{event:((E=I?.item)===null||E===void 0?void 0:E.event)||{},id:I?.id,rec:P,isPost:!0,tipText:i,style:Object.assign(Object.assign(Object.assign({},Y?.style),(N=I?.item)===null||N===void 0?void 0:N.style),{width:s,height:h,overflow:"auto"}),index:V}))})},m=me(()=>e?.logoUrl&&e?.isShowLogo?v.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},v.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]),y=(P,V)=>e?.isShowCTA===void 0||e?.isShowCTA?v.createElement("div",{className:"clc-sxp-bottom-card"},v.createElement(ui,{rec:P,index:V,tempMap:o,resolver:Nn})):null,g=(P,V)=>{var L,S,T,D,I,M,u;return P?.video?v.createElement(v.Fragment,null,((L=P?.video)===null||L===void 0?void 0:L.title)&&v.createElement("div",{className:"clc-sxp-bottom-shadow"}),v.createElement("div",{className:"clc-sxp-bottom"},v.createElement(Bl,{nudge:n}),y(P,V),v.createElement("div",null,v.createElement(ji,{className:"clc-sxp-bottom-text",isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(T=(S=P?.video)===null||S===void 0?void 0:S.title)!==null&&T!==void 0?T:"",style:Object.assign(Object.assign({},l),{textShadow:e?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"})})),v.createElement(Vl,{index:V,tags:(I=(D=P?.video)===null||D===void 0?void 0:D.hashTags)!==null&&I!==void 0?I:[],itemId:(M=P?.video)===null||M===void 0?void 0:M.itemId,itemType:!((u=P?.video)===null||u===void 0)&&u.itemId?"VIDEO":null,rec:P,hashTagStyle:a}))):null},x=kt(zd,c),p=kt(Wd,c),b=(P,V)=>{var L,S,T,D;if(!e?.isShowLike)return;let I=(L=e?.likeIconY)!==null&&L!==void 0?L:400;return I<40&&(I+=40),P?.video?v.createElement(jn,{key:P.position,activeIcon:(S=e?.likeIcon)!==null&&S!==void 0?S:x,unActicveIcon:(T=e?.unlikeIcon)!==null&&T!==void 0?T:p,position:V,active:P.isCollected,recData:P,className:"clc-sxp-like-button",style:{top:I,right:(D=e?.likeIconX)!==null&&D!==void 0?D:0}}):null},A=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",c),w=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",c),C=(P,V)=>{var L,S,T,D;return v.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},m,v.createElement(Fl,{tagList:r}),v.createElement(Ji,{style:{position:"absolute",right:(L=e?.muteIconX)!==null&&L!==void 0?L:0,visibility:!((T=(S=t?.[V])===null||S===void 0?void 0:S.video)===null||T===void 0)&&T.url?"visible":"hidden",bottom:(D=e?.muteIconY)!==null&&D!==void 0?D:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:A,unactiveIcon:e?.muteIcon?e?.muteIcon:w}),f(P,V),g(P,V),b(P,V))};return v.createElement("div",{className:Be({width:"100%",height:d,display:"flex",boxSizing:"border-box",gap:16,pointerEvents:"none",userSelect:"none",transform:"scale(0.7) translateX(-22%) translateY(-140px)"})},t?.map((P,V)=>C(P,V)))};var Hd=je(Ud);const Xd=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:n,rec:o,index:l,swiperRef:a,data:d=[],loopPlay:s})=>{const{isActive:c}=Ci(),[r,h]=G(!1);ue(()=>{c&&r&&s&&setTimeout(()=>{var m,y,g,x;if(l===d?.length-1)(m=a?.current)===null||m===void 0||m.swiper.slideTo(0);else{const p=(g=(y=a?.current)===null||y===void 0?void 0:y.swiper)===null||g===void 0?void 0:g.activeIndex;(x=a?.current)===null||x===void 0||x.swiper.slideTo(p+1)}},3e3)},[c,r,d,l,a,s]);const f=()=>{h(!0)};return v.createElement(Kt,{defaultValue:0,direction:"horizontal",modules:[Pi,Oi],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(m=>v.createElement(Wt,{key:m},v.createElement(Mn,{src:m,height:i,imgUrlsPostConfig:n,onShowFirstImage:f}))))};var qd=je(Xd);const Yd=ri(({rec:t,index:e,height:i,data:n,muted:o,activeIndex:l,videoPostConfig:a,width:d,swiperRef:s,videoPlayIcon:c,onUpdateTimeLine:r,loopPlay:h,onPlay:f,onPause:m},y)=>{const{isActive:g}=Ci(),[x,p]=G(!1),b=de(null),{bffEventReport:A,sxpParameter:w,waterFallData:C,openHashtag:P}=Xe();de(0);const[V,L]=G(!1);G(!0),de(null),G("");const S=`pb-cache-video-${e}`,T=de(null),D=de(h),I=t.video.scene;ue(()=>{D.current=h},[h]),Ei(y,()=>({play(){var N;b.current&&(j(),(N=b.current)===null||N===void 0||N.play(),p(!1))},pause(){var N;b.current&&((N=b.current)===null||N===void 0||N.pause(),p(!0))},setLoopPlay(N){D.current=N},isPlaying(){var N;return!(!((N=b?.current)===null||N===void 0)&&N.paused)}})),ue(()=>{b.current&&(b.current.muted=o)},[o]);const M=kt("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),u=ae(()=>{var N;b.current.currentTime=I?.startTime,(N=b?.current)===null||N===void 0||N.play(),L(!0)},[]),B=ae(N=>()=>{var F,U,Y,$,oe,re;if(!g||!b?.current||!V)return;const Q=(F=b.current)===null||F===void 0?void 0:F.paused;switch(N){case"start":if(!Q)return;(U=b.current)===null||U===void 0||U.play(),p(!1);break;case"pause":if(Q)return;(Y=b.current)===null||Y===void 0||Y.pause(),p(!0);break;default:Q?((($=b?.current)===null||$===void 0?void 0:$.currentTime)>=I?.endTime&&(b.current.currentTime=I?.startTime),(oe=b.current)===null||oe===void 0||oe.play()):(re=b.current)===null||re===void 0||re.pause(),p(!Q);break}},[V]),W=me(()=>a?.mode==="2",[a]),j=()=>{b.current&&setTimeout(()=>{var N,F,U,Y,$,oe,re,Q,Te;if(((N=b?.current)===null||N===void 0?void 0:N.currentTime)>=((F=I?.endTime)!==null&&F!==void 0?F:0)){if((U=b.current)===null||U===void 0||U.pause(),!D.current)return;if(e===n?.length-1)($=(Y=s?.current)===null||Y===void 0?void 0:Y.swiper)===null||$===void 0||$.slideTo(0);else{const Pe=(re=(oe=s?.current)===null||oe===void 0?void 0:oe.swiper)===null||re===void 0?void 0:re.activeIndex;(Te=(Q=s?.current)===null||Q===void 0?void 0:Q.swiper)===null||Te===void 0||Te.slideTo(Pe+1)}}})},R=()=>{p(!0),m?.()},k=()=>{var N;const F=((N=b?.current)===null||N===void 0?void 0:N.currentTime)-I?.startTime;f?.(e,F)};ue(()=>{var N,F,U,Y;if(!g)return;const $=I?.mediaUrl;if(!$)return;p(!1);const oe=document.querySelector(`#${S}`);if(!oe||(b.current=wi?.(oe),!b?.current))return;const re=window?.Hls;let Q=T?.current;return $.includes(".m3u8")&&re&&re.isSupported()?(Q=new re,Q?.loadSource($),Q?.attachMedia(b?.current),Q?.on(re.Events.MANIFEST_PARSED,function(){var Te;b.current.currentTime=I?.startTime,(Te=b?.current)===null||Te===void 0||Te.play()})):b.current.src=$,(N=b.current)===null||N===void 0||N.addEventListener("loadedmetadata",u),(F=b?.current)===null||F===void 0||F.addEventListener("pause",R),(U=b?.current)===null||U===void 0||U.addEventListener("play",k),(Y=b.current)===null||Y===void 0||Y.addEventListener("timeupdate",j),()=>{var Te,Pe,Ue,ve,fe;T?.current&&((Te=T?.current)===null||Te===void 0||Te.destroy()),L(!1),(Pe=b.current)===null||Pe===void 0||Pe.removeEventListener("loadedmetadata",u),(Ue=b.current)===null||Ue===void 0||Ue.removeEventListener("pause",R),(ve=b.current)===null||ve===void 0||ve.removeEventListener("play",k),(fe=b.current)===null||fe===void 0||fe.removeEventListener("timeupdate",j)}},[g]);const E=me(()=>{var N;return!w?.placeholder_image||V?null:v.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:((N=t?.video)===null||N===void 0?void 0:N.cover)||w?.placeholder_image,alt:"video poster"})},[V,w?.placeholder_image]);return me(()=>W?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[W]),I?.mediaUrl?v.createElement("div",{className:"video-container",key:I.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:B()},v.createElement("div",{className:"n-full-screen",id:S,style:{width:"100%",height:"100%"}}),E,x&&v.createElement(Nt,{className:"clc-pb-video-pause",src:c??M,alt:"pause"})):null});var Gd=je(Yd);const Qi={};Object.values(_i).forEach(t=>{Qi[t.extend.type]=t});const Zd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Kd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",_d=ri(({data:t=[],globalConfig:e,tipText:i,nudge:n,tempMap:o,descStyle:l,hashTagStyle:a,containerHeight:d=664,containerWidth:s=375,appDomain:c,tagList:r=[],onActiveChange:h,activeIndex:f,loopPlay:m=!1,pointerEvents:y="none",onUpdateTimeLine:g,disabledListener:x,onPlay:p,onPause:b},A)=>{const w=de(null),C=de(null),[P,V]=G(0);me(()=>{let k=0;return e?.logoUrl&&e?.isShowLogo&&(k+=45),r.length>0&&(k+=45),d-k},[e,d,r]),Ei(A,()=>({play(){var k;(k=w?.current)===null||k===void 0||k.play()},pause(){var k;(k=w?.current)===null||k===void 0||k.pause()},slideTo(k){var E,N;C?.current&&((N=(E=C?.current)===null||E===void 0?void 0:E.swiper)===null||N===void 0||N.slideTo(k))},isPlaying(){var k,E;return(E=(k=w?.current)===null||k===void 0?void 0:k.isPlaying())!==null&&E!==void 0?E:!1}}));const L=k=>{if(k&&k!==""&&typeof k=="string"){const E=[".mp4",".m3u8"],N=k?.toLowerCase();return E.some(F=>N?.endsWith(F))}else return!1},S=(k,E)=>{var N,F;const U=(N=k?.video)===null||N===void 0?void 0:N.scene;return L(U?.mediaUrl)?v.createElement(Gd,Object.assign({key:E},P===E&&{ref:w},{rec:k,index:E,muted:!0,width:s,data:t,height:d,activeIndex:E,videoPostConfig:e?.videoPost,videoPlayIcon:e?.videoPlayIcon,swiperRef:C,loopPlay:m,onUpdateTimeLine:g,onPlay:p,onPause:b})):v.createElement(qd,{key:E,imgUrls:[(F=U?.mediaUrl)!==null&&F!==void 0?F:""],width:s,height:d,rec:k,index:E,imgUrlsPostConfig:e?.imgUrlsPost,data:t,swiperRef:C})};me(()=>e?.logoUrl&&e?.isShowLogo?v.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},v.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]);const T=(k,E)=>{var N,F,U,Y,$,oe,re,Q,Te;if(k?.video){let Pe=null;!((F=(N=k?.video)===null||N===void 0?void 0:N.bindProducts)===null||F===void 0)&&F.length?Pe="\u591A\u5546\u54C1CTA":!((U=k?.video)===null||U===void 0)&&U.bindProduct?Pe="\u5546\u54C1CTA":Pe=($=(Y=k?.video)===null||Y===void 0?void 0:Y.bindCta)===null||$===void 0?void 0:$.itemId;const Ue=o?.[Pe];return v.createElement(v.Fragment,null,((oe=k?.video)===null||oe===void 0?void 0:oe.title)&&v.createElement("div",{style:{background:"repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))",height:"130px",position:"absolute",bottom:0,width:"100%",willChange:"transform",zIndex:2,pointerEvents:y}}),v.createElement("div",{style:{marginBottom:`${(re=e?.bottomInfoDist)!==null&&re!==void 0?re:40}px`,zIndex:999,position:"absolute",bottom:0,left:0,right:0,paddingTop:"20px"}},e?.isShowCTA===void 0||e?.isShowCTA?v.createElement("div",{style:{}},v.createElement(ui,{rec:k,index:E,tempMap:o,resolver:Qi,isActive:E===f,value:Ue})):null,v.createElement("div",null,v.createElement(ji,{isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(Te=(Q=k?.video)===null||Q===void 0?void 0:Q.title)!==null&&Te!==void 0?Te:"",style:Object.assign(Object.assign({},l),{textShadow:e?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none",padding:"0 20px",fontSize:"12px"})}),v.createElement(ui,{rec:k,index:E,tempMap:o,resolver:Qi,includesCtaType:["AniLink"],isActive:E===f,value:Ue}))),v.createElement(ui,{rec:k,index:E,tempMap:o,resolver:Qi,includesCtaType:["AniLinkPopup"],isActive:E===f,value:Ue}))}return null},D=kt(Kd,c),I=kt(Zd,c),M=(k,E)=>{var N,F,U,Y;if(!e?.isShowLike)return null;let $=(N=e?.likeIconY)!==null&&N!==void 0?N:400;return $<40&&($+=40),k?.video?v.createElement(jn,{key:k.position,activeIcon:(F=e?.likeIcon)!==null&&F!==void 0?F:D,unActicveIcon:(U=e?.unlikeIcon)!==null&&U!==void 0?U:I,position:E,active:k.isCollected,recData:k,style:{top:$,right:(Y=e?.likeIconX)!==null&&Y!==void 0?Y:0,position:"absolute",zIndex:999,backgroundColor:"transparent",width:"50px",height:"50px",outline:"none",border:"none",boxSizing:"content-box",padding:0,transform:"translate3d(0px, 0px, 0px)"}}):null},u=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",c),B=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",c),W=k=>{var E,N,F,U;if(!k)return null;let Y=(E=e?.muteIconY)!==null&&E!==void 0?E:23;return e?.muteIconYPosit==="top"&&(Y+=45),e?.isShowMute===void 0||e?.isShowMute===!0?v.createElement(Ji,{style:{position:"absolute",visibility:"visible",zIndex:999,transform:"translate3d(0px,0px,0px)",[(N=e?.muteIconXPosit)!==null&&N!==void 0?N:"right"]:(F=e?.muteIconX)!==null&&F!==void 0?F:0,[(U=e?.muteIconYPosit)!==null&&U!==void 0?U:"bottom"]:Y,backgroundColor:"transparent",width:"50px",height:"50px",outline:"none",border:"none",boxSizing:"content-box",padding:0},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:u,unactiveIcon:e?.muteIcon?e?.muteIcon:B}):null},j=(k,E)=>{var N,F,U,Y;return v.createElement("div",{style:{position:"relative"}},v.createElement(Wt,{key:E,virtualIndex:E,style:{overflow:"hidden",position:"relative"}},T(k,E),M(k,E),W(!e?.muteIconFixed),v.createElement(Ji,{style:{position:"absolute",right:(N=e?.muteIconX)!==null&&N!==void 0?N:0,visibility:!((U=(F=t?.[E])===null||F===void 0?void 0:F.video)===null||U===void 0)&&U.url?"visible":"hidden",bottom:(Y=e?.muteIconY)!==null&&Y!==void 0?Y:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:u,unactiveIcon:e?.muteIcon?e?.muteIcon:B}),S(k,E)))};ue(()=>{var k,E;C?.current&&((E=(k=C?.current)===null||k===void 0?void 0:k.swiper)===null||E===void 0||E.slideTo(f))},[f]);const R=ae(Si(()=>{var k;(k=w.current)===null||k===void 0||k.setLoopPlay(!1)},1e3),[]);return ue(()=>{if(x)return;const k=["touchstart","touchcancel"];return k.forEach(E=>{window.addEventListener(E,R)}),()=>{k.forEach(E=>{window.removeEventListener(E,R)})}},[R,x]),v.createElement("div",{id:"sxp-render",style:{height:d,position:"relative",pointerEvents:y}},v.createElement(Kt,{ref:C,allowTouchMove:y!=="none",onSlideChange:()=>{C.current.swiper.allowTouchMove=!1,setTimeout(()=>{C.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:k=>{V(k?.activeIndex),h?.(k.activeIndex)},direction:"vertical",style:{overflow:"hidden",height:d},height:d},t?.map((k,E)=>j(k,E))))});var Jd=je(_d);const Qd=()=>{const{schema:t,resolver:e,popup:i}=$t(),{setPopupDetailData:n,popupDetailData:o,popupCurTimeRef:l,checkCommodityIndexRef:a}=Xe(),{productView:d}=Mt(),[s,c]=G();ue(()=>{const m=()=>{l.current=new Date};return m(),window.addEventListener("pageshow",m),()=>{window.removeEventListener("pageshow",m)}},[]),ue(()=>{i&&i?.id&&i?.id!==""&&(l.current=new Date,c(i))},[i]);const r=me(()=>{var m,y,g,x;const p=(g=(y=(m=t?.sxpPageConf)===null||m===void 0?void 0:m.globalConfig)===null||y===void 0?void 0:y.popupList)===null||g===void 0?void 0:g.find((b,A)=>{if(b?.id===i?.id)return b});return p!==-1&&((x=p?.item)===null||x===void 0?void 0:x.type)==="Iframe"},[i,t]),h=()=>{var m,y,g,x,p,b,A,w,C,P,V,L,S,T,D,I,M,u;if(!i||i?.id===""||!s||new Date-l.current<((m=i?.duration)!==null&&m!==void 0?m:0))return;c(Object.assign(Object.assign({},i),{id:""}));const B=(x=(g=(y=t?.sxpPageConf)===null||y===void 0?void 0:y.globalConfig)===null||g===void 0?void 0:g.popupList)===null||x===void 0?void 0:x.find(W=>W?.id===i?.id);if(((p=B?.item)===null||p===void 0?void 0:p.type)==="CommodityDetail"||((b=B?.item)===null||b===void 0?void 0:b.type)==="CommodityDetailDiroNew"){const W=o;let j=(w=(A=W?.video)===null||A===void 0?void 0:A.bindProduct)!==null&&w!==void 0?w:(P=(C=W?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0],R=(S=(L=(V=W?.video)===null||V===void 0?void 0:V.bindProduct)===null||L===void 0?void 0:L.bindCta)!==null&&S!==void 0?S:(I=(D=(T=W?.video)===null||T===void 0?void 0:T.bindProducts)===null||D===void 0?void 0:D[0])===null||I===void 0?void 0:I.bindCta;if(a?.current>=0){const k=(u=(M=W?.video)===null||M===void 0?void 0:M.bindProducts)===null||u===void 0?void 0:u[a?.current];k&&(j=k,R=k?.bindCta)}j&&R&&d(W,j,R,l.current,o?.index)}setTimeout(()=>{window?.sxpPopup(""),n?.(null),a.current=-1},i?.duration)},f=me(()=>{var m,y,g;return(g=(y=(m=t?.sxpPageConf)===null||m===void 0?void 0:m.globalConfig)===null||y===void 0?void 0:y.popupList)===null||g===void 0?void 0:g.map((x,p)=>{var b,A,w,C,P,V,L,S,T,D,I,M,u,B;if(x?.id===i?.id){const W=e[(b=x?.item)===null||b===void 0?void 0:b.type],j=Di(W),R=((C=(w=(A=x?.item)===null||A===void 0?void 0:A.event)===null||w===void 0?void 0:w.onClick)===null||C===void 0?void 0:C.linkType)==="externalLink",k=((L=(V=(P=x?.item)===null||P===void 0?void 0:P.event)===null||V===void 0?void 0:V.onClick)===null||L===void 0?void 0:L.linkType)==="popup",E=(S=W?.extend)===null||S===void 0?void 0:S.defaulSetting;return v.createElement(j,Object.assign({key:p,style:Object.assign(Object.assign(Object.assign({},E?.style),(T=x?.item)===null||T===void 0?void 0:T.style),{height:"100%"}),textStyle:Object.assign(Object.assign({},E?.textStyle),(D=x?.item)===null||D===void 0?void 0:D.textStyle),bindDatas:(M=(I=x?.item)===null||I===void 0?void 0:I.bindDatas)!==null&&M!==void 0?M:[]},E?.props,(u=x?.item)===null||u===void 0?void 0:u.props,{event:((B=x?.item)===null||B===void 0?void 0:B.event)||{},schema:t,id:x?.id,isExternalLink:R,isPopup:k,onClose:h}))}else return v.createElement(v.Fragment,null)})},[t,i,e,h]);return v.createElement(gi,{popup:s,onClose:h,padding:0,modalStyle:{position:"fixed"},isFullScreen:r},f)},Dn={};Object.values(_i).forEach(t=>{Dn[t.extend.type]=t});const $d=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:n=20,loadingImage:o,appDomain:l,enabledMetaConversionApi:a,dataList:d})=>{var s,c,r,h,f,m,y;const g=((s=t?.page_type)===null||s===void 0?void 0:s.path_type)===5,x=me(()=>{var C;return location?.search?(C=location?.search)===null||C===void 0?void 0:C.replace("?",""):""},[]),[p,b]=G(t?.data),[A,w]=G();return v.createElement(al,{resolver:Dn,enableDataSource:!1,schema:p,utmVal:A||x},v.createElement(il,{utmVal:x,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(r=(c=t?.sxp_parameter)===null||c===void 0?void 0:c.personalized_recommend)!==null&&r!==void 0?r:e,defaultSize:(f=(h=t?.sxp_parameter)===null||h===void 0?void 0:h.default_recommend)!==null&&f!==void 0?f:i,hashTagSize:(y=(m=t?.sxp_parameter)===null||m===void 0?void 0:m.hash_tag_size)!==null&&y!==void 0?y:n,loadingImage:o,appDomain:l,enabledMetaConversionApi:a,utmParameter:t?.utm_parameter,data:t,dataList:d,isDiyH5:g,onUpdateSchema:C=>b(C),onUpdateChannel:C=>w(C),render:({rtcList:C,tagList:P,pageData:V})=>{var L;return v.createElement(v.Fragment,null,v.createElement(zl,Object.assign({defaultData:t},(L=V?.data)===null||L===void 0?void 0:L.sxpPageConf,{tagList:P,data:C,resolver:Dn})),v.createElement(Qd,null))}}))};var ec=je($d);export{Hd as DiyPortalPreview,Jd as DiyStoryPreview,ad as EditorDataProvider,gi as Modal,il as SxpDataSourceProvider,ec as SxpPageCore,zl as SxpPageRender,fo as core,eo as default,_i as materials,Ni as useEditorDataProvider};
|
11
|
+
//# sourceMappingURL=index.min.js.map
|