pb-sxp-ui 1.19.20 → 1.20.1
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 +2 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +2 -15
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +1 -1
- package/es/core/hooks/useVisibleHeight.js +1 -14
- package/lib/core/components/SxpPageRender/index.js +1 -1
- package/lib/core/hooks/useVisibleHeight.js +1 -14
- package/package.json +1 -1
package/dist/pb-ui.min.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(pt,Re){typeof exports=="object"&&typeof module<"u"?Re(exports,require("lodash"),require("uuid"),require("pako"),require("react"),require("qs"),require("eventemitter3"),require("@emotion/css"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","lodash","uuid","pako","react","qs","eventemitter3","@emotion/css","react-dom"],Re):(pt=typeof globalThis<"u"?globalThis:pt||self,Re(pt.PUI={},pt.lodash,pt.uuid$1,pt.pako,pt.React,pt.qs,pt.EventEmitter,pt.css,pt.ReactDOM))})(this,function(pt,Re,Do,Vo,n,On,Bo,De,Ln){"use strict";function Fo(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Mn=Fo(Ln);function $e(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]]);return i}function ot(t,e,i,o){function s(l){return l instanceof i?l:new i(function(r){r(l)})}return new(i||(i=Promise))(function(l,r){function u(d){try{c(o.next(d))}catch(A){r(A)}}function a(d){try{c(o.throw(d))}catch(A){r(A)}}function c(d){d.done?l(d.value):s(d.value).then(u,a)}c((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Wo=/:\w+/g;var jn=(t,e)=>ot(void 0,void 0,void 0,function*(){const i={},o={};for(let s=0;s<e?.length;s++){const{id:l,method:r,url:u,urlParams:a,name:c,queryString:d,headers:A,body:f}=e[s];let p=u;a&&Object.entries(a).forEach(([b,m])=>{p=p.replace(Wo,S=>S===b?m:S)}),d&&(p+=d),o[l]=c;try{const b=yield fetch(p,{method:r,headers:Object.assign({"Content-Type":"application/json"},A),body:JSON.stringify(f)}).then(m=>m.json());i[l]=b}catch(b){console.error("DataSource request error: ",b),i[l]={}}}return{$store:i,idMapName:o}});const Nn="SXP_TOKEN_INFO",zo=(t,e)=>ot(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),s=t.getAppId(),l=t.getApiUrl(),r=window.localStorage.getItem(Nn);let u=JSON.parse(r||"{}");if(Date.now()>((i=u?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":s||""}}).then(d=>d.json());if(c.success){const d=c.data;u=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(Nn,JSON.stringify(u))}}return u});function Oi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let s;if(e=e||i.length,t)for(s=0;s<t;s++)o[s]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",s=0;s<36;s++)o[s]||(l=0|Math.random()*16,o[s]=i[s===19?l&3|8:l])}return o.join("")}const Ho=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let s=0;for(;s<t;)e+=i.charAt(Math.floor(Math.random()*o)),s+=1;return e},Uo=()=>{const t=Do.v4();return t?.replaceAll?t.replaceAll("-",""):Ho(32)},Pe=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],s=e?.["fontFamily-en"];if(!o&&!s)return t;let l=t;const r=/[\u4e00-\u9fa5]/g,u=/[^\u4e00-\u9fa5]/g,a=`font-family:${o??"inherit"}`,c=`font-family:${s??"inherit"}`,d=f=>{const p=f.search(r),b=f.search(u);return p!==-1&&b!==-1&&p<b&&(i+=`<span style="${a}">${f.substring(p,b)}</span>`,l=f.substring(b,f?.length)),p!==-1&&b!==-1&&p>b&&(i+=`<span style="${c}">${f.substring(b,p)}</span>`,l=f.substring(p,f?.length)),p===-1?(i+=`<span style="${c}">${f.substring(b,f?.length)}</span>`,l="",!1):b===-1?(i+=`<span style="${a}">${f.substring(p,f?.length)}</span>`,l="",!1):!0};let A=!0;for(;A;)A=d(l);return i};function _i(t){const i=document.cookie.split(";");let o=null;return i.forEach(s=>{const[l,r]=s.trim().split("=");l===t&&(o=r)}),o??""}function Zi(){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 li(t){if(!t)return;const e=[];for(let s=0;s<t.length;s++){const l=t[s],r=t.substring(s+1,t.length);l==="&"&&r?.indexOf("=")!==-1&&(r?.indexOf("=")<r?.indexOf("&")||r?.indexOf("&")===-1)&&e.push(s)}const i=e.length>0?[]:[t];let o=0;return e?.map(s=>{i?.push(t.substring(o,s)),o=s+1,s===e[e.length-1]&&s<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function Xo(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",s=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${s}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Dn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),s=Vo.inflate(o,{to:"string"});return JSON.parse(s)}let Ki=null;const qo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Yo{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Ki)return Ki;Ki=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?qo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Ct=null;const Go={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{Ct||(Ct=new Yo),o&&Ct.setApiUrl(o),Ct.setAppId(t),Ct.setTenantId(e),Ct.setEnv(i)},getDetail:t=>{if(!Ct)return;const e=Ct.getTenantId(),i=Ct.getAppId(),o=Ct.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>ot(void 0,void 0,void 0,function*(){var l,r;const u=yield s.json(),a=Dn((l=u?.data)===null||l===void 0?void 0:l.data);if(a){const{$store:c}=yield jn(o,(r=a?.dataSource)!==null&&r!==void 0?r:[]);u.data.data=a,Object.assign(u.data.data,{__STORE__:c})}return u}))},getSxpDetailByPageId:t=>ot(void 0,void 0,void 0,function*(){if(!Ct)return;const e=Ct.getTenantId(),i=Ct.getAppId(),o=Ct.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>ot(void 0,void 0,void 0,function*(){var l;const r=yield s.json();return r.success?(l=r?.data)===null||l===void 0?void 0:l.map(a=>Object.assign(Object.assign({},a),{data:Dn(a?.data)})):void 0}))}),getSxpRecommendVideoData:t=>ot(void 0,void 0,void 0,function*(){if(!Ct)return;const e=yield zo(Ct,t),i=Oi(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");Re.isEmpty(o)&&(o=Oi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const s=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:o,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return s?.data||null})};function ei(){return n.useContext(Kn)}function _o(){return n.useContext(Zn)}const Ji="feRealSessionIdKey",Vn=()=>{const t=Uo();return`${Date.now()}${t}`},Zo=()=>{let t=Ko();return t||(t=Vn(),window.localStorage.setItem(Ji,t)),t},Qi=()=>{const t=Vn();window.localStorage.setItem(Ji,t)},Ko=()=>window.localStorage.getItem(Ji),Bn="SXP_FAKE_USER_ID",Fn="FAKE_USER_STATE",Wn="AGREE_POLICY",zn="SLIDE_SKIP_STATE",Hn="CCONTSENT_STATE",Un="USER_CONSENT_RESULT",Jo=()=>{let t=window.localStorage.getItem(Bn);return Re.isEmpty(t)&&(t=Oi(36,62),window.localStorage.setItem(Bn,t)),t},Qo=()=>{const t=window.localStorage.getItem(Fn);return Re.isEmpty(t)&&window.localStorage.setItem(Fn,"true"),Re.isEmpty(t)},Ro=()=>{const t=window.localStorage.getItem(zn);return Re.isEmpty(t)},$o=()=>{window.localStorage.setItem(zn,"true")},el=()=>{const t=window.localStorage.getItem(Hn);return Re.isEmpty(t)&&window.localStorage.setItem(Hn,"true"),Re.isEmpty(t)},Xn=()=>window.localStorage.getItem(Un)==="true",qn=()=>{window.localStorage.setItem(Un,"true")};function Et(t,e){const{appDomain:i}=He();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const wt=new Bo;var bt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(bt||(bt={}));const tl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:s,privacy_policy_title:l})=>{const{setIsAgreePolicy:r,bffEventReport:u}=He(),a=n.useMemo(()=>{var A;const f=location.search.slice(1),p={};(A=li(f.replace(/\+/g,"%2B")))===null||A===void 0||A.map(b=>{const m=b.split("=")[0],S=b.split("=")[1];p[m]=S});for(const b in p)p[b]=p[b].replace(/%2B/g,"+");return p},[]),c=A=>{var f;return(f=a[A])!==null&&f!==void 0?f:null};n.useEffect(()=>{u?.({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 d=()=>{u?.({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}}),r?.(!0),window.localStorage.setItem(Wn,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:s?`https://${s}`:void 0},l??"More information"))))};var il=n.memo(tl);const Yn=n.createContext({rtcList:[],tagList:[]});var Ri;(function(t){t[t.BFF=5]="BFF"})(Ri||(Ri={}));const Li="FOR U",nl=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:s,defaultSize:l,isPreview:r=!1,sxpParameter:u,appDomain:a,hashTagSize:c,loadingImage:d,isOpenHashTag:A=!1,enabledMetaConversionApi:f=!1,consentHeight:p,consentWidth:b,isOpenConsent:m=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:h,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:V})=>{var M,x,T,B,k;const[j,E]=n.useState([]),[y,W]=n.useState([]),[D,F]=n.useState(!0),[O,I]=n.useState({rtc:"",requestId:""}),N=n.useRef(null),q=n.useRef(!1),[X,Y]=n.useState(()=>!!window.localStorage.getItem(Wn)),[R,me]=n.useState(),[ae,J]=n.useState(),[Te,Oe]=n.useState(A),[Fe,ce]=n.useState([]),[de,Ze]=n.useState(0),[Ue,Xe]=n.useState(!1),[_e,lt]=n.useState(null),Ke=n.useRef(),ke=n.useRef(),et=n.useRef(),[kt,Ve]=n.useState(Li),We=n.useRef(-1),ze=n.useRef(null),[K,ee]=n.useState(!1),[Z,le]=n.useState((x=(M=h?.data)===null||M===void 0?void 0:M.sxpPageConf)===null||x===void 0?void 0:x.globalConfig),[we,ye]=n.useState(),[$,z]=n.useState(!1),[Ne,tt]=n.useState(),[Je,st]=n.useState(),[Qe,Be]=n.useState([]),[it,ct]=n.useState(),[gt,Xt]=n.useState(),Nt=n.useMemo(()=>we??h,[we,h]),St=n.useRef(!1);n.useEffect(()=>{var H,U;le((U=(H=h?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||U===void 0?void 0:U.globalConfig)},[h]);const xt=n.useMemo(()=>{var H,U,te,he;return(((he=(te=(U=(H=Z?.consent)===null||H===void 0?void 0:H[0])===null||U===void 0?void 0:U.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!X&&!S||m)&&$},[X,Z,m,S,$]),Zt=n.useCallback(H=>{V?.(H),st(H)},[]),yt=n.useCallback(H=>{var U;const te=H?.recList;return(U=te?.map(ue=>{var ve,Ae,Se,xe,Me,L;if(!((ve=ue?.video)===null||ve===void 0)&&ve.bindProducts&&((Se=(Ae=ue?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0){const G=(L=(Me=(xe=ue?.video)===null||xe===void 0?void 0:xe.bindProducts)===null||Me===void 0?void 0:Me.filter(_=>!!_?.bindCta))!==null&&L!==void 0?L:[];return Object.assign(Object.assign({},ue),{video:Object.assign(Object.assign({},ue?.video),{bindProducts:G})})}return ue}))!==null&&U!==void 0?U:[]},[]);n.useEffect(()=>{let H;return Qe.length>0&&(H=setInterval(()=>{const te=new Date,he=15*1e3;Be(ue=>ue.filter(ve=>te-ve.time<=he))},1e3)),()=>{clearInterval(H)}},[Qe]),n.useEffect(()=>{const H=U=>{Ke.current=U};return wt.on(bt.CHANGE_THEME_TAG,H),()=>{wt.off(bt.CHANGE_THEME_TAG,H)}},[]),n.useEffect(()=>{Oe(A)},[A]);const qe=n.useMemo(()=>e?.find(H=>H.type===Ri.BFF),[e]),Ee=n.useMemo(()=>{var H;return((H=qe?.headers)===null||H===void 0?void 0:H["x-app-id"])+Jo()},[qe]),fe=()=>{var H,U;function te(ve){const Ae=ve.match(/groups=([^&]+)/);if(!Ae||!Ae[1])return!1;const xe=Ae[1].split(",");for(const Me of xe){const[L,G]=Me.split(":");if(L==="4")return G==="0"}return!1}function he(ve){var Ae;const xe=`; ${document.cookie}`.split(`; ${ve}=`);return xe.length===2?(Ae=xe.pop())===null||Ae===void 0?void 0:Ae.split(";").shift():""}const ue=decodeURIComponent((H=he("OptanonConsent"))!==null&&H!==void 0?H:"");return!!(window?.OnetrustActiveGroups&&((U=window?.OnetrustActiveGroups)===null||U===void 0?void 0:U.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(ue))},be=n.useCallback((H,U,te=!0)=>{var he;if(!qe)return;const ue=qe.url;if(U?.query){const Ae=On.stringify(U.query);H=`${H}?${Ae}`}const ve=location.search.slice(1);return(he=li(ve))===null||he===void 0||he.forEach(Ae=>{Ae.split("=")[0],Ae.split("=")[1]}),window.fetch(`${ue}/api/${H}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Ee},qe.headers),method:U.method,body:U.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},U.body),qe.headers),{"x-user-id":Ee}))))}):JSON.stringify(U.body)},U.type==="beacon"&&{keepalive:!0})).then(Ae=>Ae.json()).catch(Ae=>Promise.reject(Ae))},[qe,Ee]),ft=n.useCallback(H=>{var U;if(fe())return Promise.resolve();const te={eventName:H?.eventName,eventSource:H?.eventSource};return be?.(`v1/data/collect/${(U=qe?.headers)===null||U===void 0?void 0:U["x-app-id"]}/${H?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[be,qe]);n.useEffect(()=>{const H=window.Image;window.Image=function(){const U=new H,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(U,"src",{set(he){if(!(fe()&&(he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/")||he.includes("https://www.facebook.com/tr")))&&(te.set.call(this,he),he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/"))){const ue=new URL(he),ve=Object.fromEntries(ue.searchParams.entries());ft({eventName:ve?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),U}},[ft]),n.useEffect(()=>{const H=navigator;if(!H.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const U=H.sendBeacon.bind(H);return H.sendBeacon=function(te,he){const ue=te instanceof URL?te.href:te.toString();if(fe()&&(ue.includes("https://tr.snapchat.com/p")||ue.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ve=U(te,he);function Ae(Se){return ot(this,void 0,void 0,function*(){return typeof Se=="string"?JSON.parse(Se):Se instanceof Blob?JSON.parse(yield Se.text()):Se instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(Se)):null})}return ve&&Promise.resolve().then(()=>ot(this,void 0,void 0,function*(){var Se,xe;try{const Me=yield Ae(he);ue.includes("https://tr.snapchat.com/p")?(xe=(Se=Me?.req)===null||Se===void 0?void 0:Se.forEach)===null||xe===void 0||xe.call(Se,L=>{var G,_;!((G=L?.t)===null||G===void 0)&&G.ev&&ft({eventName:(_=L?.t)===null||_===void 0?void 0:_.ev,eventSource:"Snapchat Pixel"})}):ue.includes("https://analytics.tiktok.com/api/v2/pixel")&&Me?.event&&ft({eventName:Me.event,eventSource:"TikTok Pixel"})}catch(Me){console.error("\u76D1\u63A7\u5931\u8D25:",Me)}})),ve},()=>{H.sendBeacon=U}},[ft]),n.useEffect(()=>{const H=window.fetch;window.fetch=function(U,te){var he=arguments;return ot(this,void 0,void 0,function*(){var ue;let ve;try{ve=typeof U=="string"?U:U instanceof URL?U.href:U.url}catch(Ae){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Ae),H.apply(this,he)}try{if(fe()&&(ve.includes("https://www.google-analytics.com/g/collect")||ve.includes("https://arms-retcode.aliyuncs.com/r.png")))return Promise.resolve(new Response(""));const Ae=H.apply(this,he);if(ve.includes("https://www.google-analytics.com/g/collect")){const Se=new URL(ve),xe=Object.fromEntries(Se.searchParams.entries()),Me=(ue=he[1])===null||ue===void 0?void 0:ue.body;if(xe?.en)ft({eventName:xe?.en,eventSource:"Google Analytics"});else if(Me){const G=function(_){if(typeof _!="string")return[];const Q=[],re=/en=([^&\r\n]*)/g;let ie;for(;(ie=re.exec(_))!==null;)Q.push(decodeURIComponent(ie[1]));return Q}(Me);G?.forEach(_=>{ft({eventName:_,eventSource:"Google Analytics"})})}}return Ae}catch(Ae){throw console.error(Ae),Ae}})}},[ft]),n.useEffect(()=>{const H=XMLHttpRequest.prototype.open,U=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,H.apply(this,arguments)},XMLHttpRequest.prototype.send=function(te){var he;if(!(fe()&&this._url&&typeof this._url=="string"&&(this._url.includes("https://rumcollector.uptime.com")||this._url.includes("https://arms-retcode.aliyuncs.com/r.png")||this._url.includes("https://i.giesswein.com/nb-collector")))){if(this._url&&typeof this._url=="string"&&this._url.includes("https://i.giesswein.com/nb-collector")&&te&&typeof te=="string")try{const ue=JSON.parse(te);if(ue&&Array.isArray(ue.data)){const ve=ue.data[((he=ue.data)===null||he===void 0?void 0:he.length)-1];ve&&ve.e&&ft({eventName:ve.e,eventSource:"Northbeam Pixel"})}}catch(ue){console.error("Failed to parse Northbeam event from XHR",ue)}U.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=H,XMLHttpRequest.prototype.send=U}},[ft]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const qt=n.useCallback((H,U)=>{if(!qe)return;const te=qe.url;if(U?.query){const he=On.stringify(U.query);H=`${H}?${he}`}return window.fetch(`${te}/admin/${H}`,{headers:Object.assign({"Content-Type":"application/json"},qe.headers),method:U.method,body:JSON.stringify(U.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[qe]),zt=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){var U,te,he,ue,ve,Ae,Se,xe,Me,L,G,_,Q,re;if(H=Object.assign(Object.assign({maxSize:(U=H?.maxSize)!==null&&U!==void 0?U:s,defaultSize:(te=H?.defaultSize)!==null&&te!==void 0?te:l,hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag,pageNum:H?.pageNum,contentFilter:H?.contentFilter,productFilter:H?.productFilter},gt&&{chatlabsId:gt}),C&&{type:"story"}),Je)H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(Je)});else if(i){const ne=(ve=(ue=(he=li(i))===null||he===void 0?void 0:he.filter(se=>{var pe,je;const ge=se.split("=")[0];return(je=(pe=v?.channels)!==null&&pe!==void 0?pe:[])===null||je===void 0?void 0:je.includes(ge)}))===null||ue===void 0?void 0:ue.join("&"))!==null&&ve!==void 0?ve:"";ne&&(H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(ne)}))}if(S){let ne=1;if(H=Object.assign(Object.assign(Object.assign({},H),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!H?.channel||q.current)return;q.current=!0;let se=[],pe=null;const je=ge=>ot(void 0,void 0,void 0,function*(){var Ie,ut,rt,at,dt,nt;if(ge.pageNum=ne,pe=yield qt?.("recommend/direct_page",{method:"POST",body:ge}),!pe?.success)return;F(!1),se=se.concat((at=(rt=(ut=(Ie=pe?.data)===null||Ie===void 0?void 0:Ie.recList)===null||ut===void 0?void 0:ut.filter)===null||rt===void 0?void 0:rt.call(ut,Ge=>Ge?.product||Ge?.video))!==null&&at!==void 0?at:[]),j?.length===0&&(E(yt(Object.assign(Object.assign({},pe?.data),{recList:se}))),ce(yt(Object.assign(Object.assign({},pe?.data),{recList:se})))),((nt=(dt=pe?.data)===null||dt===void 0?void 0:dt.recList)===null||nt===void 0?void 0:nt.some(Ge=>Ge?.product||Ge?.video))&&(ne=ne+1,yield je(ge))});return yield je(H),!H?.hashTag&&pe&&I({rtc:(Ae=pe?.data)===null||Ae===void 0?void 0:Ae.rtc,requestId:(Se=pe?.data)===null||Se===void 0?void 0:Se.requestId}),Object.assign(Object.assign({},pe?.data),{recList:se})}Z?.enablePreview&&(H=Object.assign(Object.assign({},H),{directPage:!0,level:1,pageNum:(xe=H?.pageNum)!==null&&xe!==void 0?xe:1}));const ie=yield be?.("v1/recommend/list",{method:"POST",body:H});if(!ie?.success)return;H?.hashTag||I({rtc:ie.data.rtc,requestId:ie.data.requestId}),Z?.enablePreview&&!S&&(!((L=(Me=ie?.data)===null||Me===void 0?void 0:Me.recList)===null||L===void 0)&&L.some(se=>se?.product||se?.video)||ee(!0));let oe=[];return oe=oe.concat((re=(Q=(_=(G=ie?.data)===null||G===void 0?void 0:G.recList)===null||_===void 0?void 0:_.filter)===null||Q===void 0?void 0:Q.call(_,ne=>ne?.product||ne?.video))!==null&&re!==void 0?re:[]),Object.assign(Object.assign({},ie.data),{recList:oe})}),[be,i,s,l,g,Je,gt,qt]),En=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){var U,te,he,ue;if(j.length<=0)return;const ve=j?.[j?.length-1],Ae=yield zt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ae?.hashTag},((U=ve?.product)===null||U===void 0?void 0:U.itemId)&&{productFilter:[(te=ve?.product)===null||te===void 0?void 0:te.itemId]}),((he=ve?.video)===null||he===void 0?void 0:he.itemId)&&{contentFilter:[(ue=ve?.video)===null||ue===void 0?void 0:ue.itemId]}),{themeTag:Ke.current}),Z?.enablePreview&&!S&&{pageNum:H}));return E(j.concat(yt(Ae))),ce(Fe.concat(yt(Ae))),Ae}),[zt,j,ae,Fe]),fi=n.useCallback((H,U)=>{var te,he,ue,ve,Ae;let Se=!1;const xe=(he=(te=h?.data)===null||te===void 0?void 0:te.sxpPageConf)===null||he===void 0?void 0:he.globalConfig;if(!((ue=xe?.session)===null||ue===void 0)&&ue.enable){const Me=localStorage.getItem("sessionStartTime"),L=Me?JSON.parse(Me):new Date().getTime();Math.floor((new Date().getTime()-L)/1e3/60)>=((Ae=(ve=xe?.session)===null||ve===void 0?void 0:ve.expires)!==null&&Ae!==void 0?Ae:30)&&(U?.("sessionTimeOut"),Qi(),ke.current=new Date,Se=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else H&&Qi();return Se},[h]),At=n.useCallback(({userInfo:H,eventInfo:U,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var ue,ve;if(!o||Z?.enablePreview||he&&fe())return;H||(H={});const Ae=Zo(),Se={},xe=location.search.slice(1);(ue=li(xe))===null||ue===void 0||ue.forEach(Q=>{const re=Q.split("=")[0],ie=Q.split("=")[1];Se[re]=ie});const Me=Se?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Ae,rtc:O.rtc,requestId:O.requestId},{playbookType:it}),Ne&&te&&{layoutVariantId:Ne}),U),U?.position&&Je&&{position:Number(U?.position)+1+""}),Me&&{clSource:Me}),G=Object.entries(H).map(([Q,re])=>({name:Q,value:re})),_=Object.entries(L).map(([Q,re])=>re&&{name:Q,value:re}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),be?.(`v2/cld/${(ve=qe?.headers)===null||ve===void 0?void 0:ve["x-app-id"]}/${U?.eventSubject}${Me?`/${decodeURIComponent(Me)}`:""}`,{method:"POST",body:{userInfo:G,eventInfo:_},type:"beacon"})},[be,O,o,Z?.enablePreview,Ne,Z,it,qe]),ri=n.useCallback((H,U)=>{var te,he,ue;const ve=Re.cloneDeep(H),Ae=new URLSearchParams(window.location.search),Se=Ae?.get("fbclid"),xe={event_source_url:(te=window?.location)===null||te===void 0?void 0:te.href,external_id:Ee,client_user_agent:(ue=(he=window?.navigator)===null||he===void 0?void 0:he.userAgent)!==null&&ue!==void 0?ue:"",fbc:Se?`fb.2.${new Date().getTime()}.${Se}`:"",fbp:_i("_fbp")?`${_i("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},Me=/\{\{(.*?)\}\}/g,L=G=>{if(G){if(G instanceof Array)G?.map(_=>L(_));else for(const _ in G)if(Object.prototype.hasOwnProperty.call(G,_)){const Q=G?.[_];if(typeof Q=="object")L(Q);else if(typeof Q=="string"){const re=Q?.match(Me);re&&re.forEach(ie=>{var oe;const ne=ie.substring(2,ie.length-2);try{let se=new Function("fix_par","product",`return ${ne}`)(xe,U);se?(ne?.indexOf("currency")!==-1&&se?.indexOf("-")!==-1&&typeof se=="string"&&(se=(oe=se?.split("-"))===null||oe===void 0?void 0:oe[0]),G[_]=se):delete G[_]}catch(se){delete G[_],console.error("An error occurred:",se?.message)}})}}}};return L(ve),ve},[Ee]),Xi=n.useCallback(({eventName:H,product:U})=>{var te,he,ue,ve,Ae,Se,xe,Me,L,G;if(!o||Z?.enablePreview||fe())return;let _=!1;const Q=(te=Z?.pixel)===null||te===void 0?void 0:te[H];if(Q?.event_name&&typeof window?.fbq=="function"){let oe=function(ne,se,pe){const je=new RegExp("([?&])"+se+"=.*?(&|$)","i"),ge=ne.indexOf("?")!==-1?"&":"?";return ne.match(je)?ne.replace(je,"$1"+se+"="+pe+"$2"):ne+ge+se+"="+pe};if(H==="PageView"&&Q?.event_name==="PageView")if(!St.current)St.current=!0;else{const ne=window.location.href,se=oe(ne,"timestamp",Date.now());history.pushState({path:se},"",se),_=!0}else window?.fbq("track",Q?.event_name,ri(Q,U))}if(!_){H==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(he=Z?.tiktokPixel)===null||he===void 0?void 0:he[H];oe?.event_name&&typeof window?.ttq=="object"&&typeof((ue=window?.ttq)===null||ue===void 0?void 0:ue.track)=="function"&&((ve=window?.ttq)===null||ve===void 0||ve.track(oe?.event_name,ri(oe,U)))}const re=(Ae=Z?.snapchatPixel)===null||Ae===void 0?void 0:Ae[H];re?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",re?.event_name,ri(re,U)),H==="PageView"&&typeof window?.Northbeam=="object"&&typeof((Se=window?.Northbeam)===null||Se===void 0?void 0:Se.trackPageView)=="function"&&((xe=window?.Northbeam)===null||xe===void 0||xe.trackPageView());const ie=(Me=Z?.converApi)===null||Me===void 0?void 0:Me[H];if(f&&ie){const oe=ri(ie,U),ne={},se=location.search.slice(1);(L=li(se))===null||L===void 0||L.forEach(je=>{const ge=je.split("=")[0],Ie=je.split("=")[1];ne[ge]=Ie});const pe=ne?.cl_source;be?.(`v2/fb/${(G=qe?.headers)===null||G===void 0?void 0:G["x-app-id"]}/${H}${pe?`/${decodeURIComponent(pe)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[be,o,f,Z,qe,ri]),ni=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){const U=yield be?.("v1/recommend/like",{method:"POST",body:H});return U?.success}),[be]),hi=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){const U=yield be?.("v1/recommend/unlike",{method:"POST",body:H});return U?.success}),[be]),oi=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){const U=yield be?.("v1/customform",{method:"POST",body:H});return U?.success}),[be]),Ht=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){var U,te,he,ue,ve,Ae,Se,xe;const Me=!!(!((he=(te=(U=H?.data)===null||U===void 0?void 0:U.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Me))try{const L=(Ae=(ve=(ue=li(i))===null||ue===void 0?void 0:ue.filter(_=>{var Q,re;const ie=_.split("=")[0];return(re=(Q=v?.channels)!==null&&Q!==void 0?Q:[])===null||re===void 0?void 0:re.includes(ie)}))===null||ve===void 0?void 0:ve.join("&"))!==null&&Ae!==void 0?Ae:"",G=yield be?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(L)}});W((xe=(Se=G?.data)===null||Se===void 0?void 0:Se.tags)!==null&&xe!==void 0?xe:[])}catch(L){console.log("e",L)}}),[be,i]),Yt=n.useCallback((H,U,te,he)=>{var ue,ve,Ae,Se,xe,Me,L,G,_,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt,nt,ht,Ge,Tt,Le,Ce,Dt,Mt,Ai,vt,ai,In,Cn;const Rt=te?.bindCta,Jd=((ue=U?.video)===null||ue===void 0?void 0:ue.bindProduct)||((ve=U?.video)===null||ve===void 0?void 0:ve.bindProducts)&&((Se=(Ae=U?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0;let Gi="",Pn=null;Ue?Gi="hashTagPage":!((xe=U?.video)===null||xe===void 0)&&xe.url?(Gi="videoPage",Pn="video"):!((L=(Me=U?.video)===null||Me===void 0?void 0:Me.imgUrls)===null||L===void 0)&&L.length&&(Gi="imagePage",Pn="image");const No=(ne=(ie=(G=te?.tags)!==null&&G!==void 0?G:(re=(Q=(_=U?.video)===null||_===void 0?void 0:_.bindProducts)===null||Q===void 0?void 0:Q[0])===null||re===void 0?void 0:re.tags)!==null&&ie!==void 0?ie:(oe=U?.video)===null||oe===void 0?void 0:oe.tags)!==null&&ne!==void 0?ne:(se=U?.product)===null||se===void 0?void 0:se.tags;At?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(pe=Rt?.itemId)!==null&&pe!==void 0?pe:"",ctaName:(je=Rt?.title)!==null&&je!==void 0?je:"",contentTags:No?JSON.stringify(No):"",position:he+"",contentId:(Ie=(ge=U?.video)===null||ge===void 0?void 0:ge.itemId)!==null&&Ie!==void 0?Ie:"",productId:Jd?te?.itemId:"",traceInfo:(In=(Ai=(Tt=(dt=(ut=Rt?.traceInfo)!==null&&ut!==void 0?ut:(at=(rt=U?.video)===null||rt===void 0?void 0:rt.bindCta)===null||at===void 0?void 0:at.traceInfo)!==null&&dt!==void 0?dt:(Ge=(ht=(nt=U?.video)===null||nt===void 0?void 0:nt.bindProduct)===null||ht===void 0?void 0:ht.bindCta)===null||Ge===void 0?void 0:Ge.traceInfo)!==null&&Tt!==void 0?Tt:(Mt=(Dt=(Ce=(Le=U?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Ce===void 0?void 0:Ce[0])===null||Dt===void 0?void 0:Dt.bindCta)===null||Mt===void 0?void 0:Mt.traceInfo)!==null&&Ai!==void 0?Ai:(ai=(vt=U?.product)===null||vt===void 0?void 0:vt.bindCta)===null||ai===void 0?void 0:ai.traceInfo)!==null&&In!==void 0?In:"",fromKName:Gi,fromKPage:(Cn=location?.href)!==null&&Cn!==void 0?Cn:"",contentFormat:Pn})})},[At,Ue]),It=n.useCallback(()=>{var H,U,te;const he=location.search.slice(1),ue={};(H=li(he.replace(/\+/g,"%2B")))===null||H===void 0||H.map(Se=>{const xe=Se.split("=")[0],Me=Se.split("=")[1];ue[xe]=Me});for(const Se in ue)ue[Se]=ue[Se].replace(/%2B/g,"+");const ve=Se=>{var xe;return(xe=ue[Se])!==null&&xe!==void 0?xe:""},Ae=new Date;ke.current=Ae,At?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:ve("utm_source"),utmMedium:ve("utm_medium"),utmCampaign:ve("utm_campaign"),utmId:ve("utm_id"),utmContent:ve("utm_content"),enterTime:Math.floor(Ae/1e3)+"",requestId:null,enterUrl:(te=(U=window?.location)===null||U===void 0?void 0:U.href)!==null&&te!==void 0?te:""},reportLayId:!1})},[At]),kn=n.useCallback(()=>ot(void 0,void 0,void 0,function*(){var H,U;const te=yield be?.("v1/account",{method:"GET"});return Xt((H=te?.data)===null||H===void 0?void 0:H.chatLabsId),((U=te?.data)===null||U===void 0?void 0:U.consentResult)==="true"}),[be]),qi=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){const U=yield be?.("v1/account/consent",{method:"POST",body:{consentResult:H}});return U?.success}),[be]);n.useEffect(()=>{xt||It()},[xt]),n.useEffect(()=>{if(xt||r)return;F(!0);let H,U;zt().then(te=>{var he,ue,ve,Ae,Se,xe,Me,L,G,_,Q;if(te){const re=yt(te);let ie,oe;if(te?.layoutVariantId){H=te?.layoutVariantId,tt(te?.layoutVariantId);const ne=(ue=(he=te?.layoutVariantId)===null||he===void 0?void 0:he.split("-"))===null||ue===void 0?void 0:ue[1];ne&&(ie=w?.find(se=>se?.id===ne),ie?(ye(ie),document.title=(ve=ie?.name)!==null&&ve!==void 0?ve:"home",oe=(Se=(Ae=ie?.data)===null||Ae===void 0?void 0:Ae.sxpPageConf)===null||Se===void 0?void 0:Se.globalConfig,le(oe),P?.(ie?.data),!((G=(L=(Me=(xe=oe?.consent)===null||xe===void 0?void 0:xe[0])===null||Me===void 0?void 0:Me.item)===null||L===void 0?void 0:L.props)===null||G===void 0)&&G.privacy_necessity&&z(!0)):z(!0))}else z(!0);if(Je||(oe?.playbook==="organic menu"||!oe&&Z?.playbook==="organic menu"?(ct("organicMenu"),re.unshift("organic menu"),U="organicMenu"):(ct("paidMedia"),U="paidMedia")),E(re),ce(re),Ht(ie??Nt),Je){const ne=re?.[0],se=((_=ne?.video)===null||_===void 0?void 0:_.traceInfo)||((Q=ne?.product)===null||Q===void 0?void 0:Q.traceInfo)||"";At?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:se,branchfeed:Je},H&&{layoutVariantId:H})}),At?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:se,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-et?.current)/1e3)+""},H&&{layoutVariantId:H})})}}}).finally(()=>{At({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},H&&{layoutVariantId:H}),U&&{playbookType:U})}),F(!1)})},[xt,Je]),n.useEffect(()=>{r&&(F(!0),Ht(h),zt().then(H=>{if(H){const U=yt(H);Z?.playbook==="organic menu"&&!Je&&U.unshift("organic menu"),E(U),ce(U)}}).finally(()=>{F(!1)}))},[zt,Ht,Je]);const Yi=Et("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",a);return n.createElement(Yn.Provider,{value:{rtcList:j,setRtcList:E,mutateLike:ni,mutateUnlike:hi,submitForm:oi,popupDetailData:R,loadVideos:En,setPopupDetailData:me,getRecommendVideos:zt,bffEventReport:At,isPreview:r,loading:D,sxpParameter:u,waterFallData:ae,setWaterFallData:J,ctaEvent:Yt,swiperRef:N,openHashtag:Te,setOpenHashtag:Oe,cacheRtcList:Fe,setCacheRtcList:ce,cacheActiveIndex:de,setCacheActiveIndex:Ze,isFromHashtag:Ue,setIsFromHashtag:Xe,appDomain:a,hashTagSize:c,loadingImage:d??Yi,isOpenHashTag:A,tagList:y,setLoading:F,videoRef:_e,setVideoRef:lt,bffFbReport:Xi,isAgreePolicy:X,setIsAgreePolicy:Y,curTime:ke,h5EnterLink:It,themeTag:Ke,isShowConsent:xt,selectTag:kt,setSelectTag:Ve,globalConfig:Z,popupCurTimeRef:ze,checkCommodityIndexRef:We,isEditor:S,isNoMoreData:K,updateChannel:Zt,channel:Je,eventTimeList:Qe,setEventTimeList:Be,multiPostTimeRef:et,refreshFeSession:fi,getAccount:kn,accountSonsent:qi,isDiyH5:C,pixelPvStatusRef:St}},xt?n.createElement(il,Object.assign({},(k=(B=(T=Z?.consent)===null||T===void 0?void 0:T[0])===null||B===void 0?void 0:B.item)===null||k===void 0?void 0:k.props)):t({rtcList:j,mutateLike:ni,mutateUnlike:hi,submitForm:oi,tagList:y,pageData:Nt}))};var Gn=n.memo(nl);function He(){return n.useContext(Yn)}var _n;(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"})(_n||(_n={}));const Zn=n.createContext({$store:{},options:[],configs:[]}),ol=({children:t,isSsr:e,enable:i})=>{const[o,s]=n.useState([]),{schema:l}=ei(),[r,u]=n.useState(l.__STORE__||{}),[a,c]=n.useState([]);n.useEffect(()=>{var f;e||Re.isEqual(a,l?.dataSource)||c((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const d=n.useCallback(()=>ot(void 0,void 0,void 0,function*(){const{$store:f,idMapName:p}=yield jn("",a);u(f),A(f,p)}),[a]),A=(f,p)=>{const b=[];Object.entries(f).forEach(([m,S])=>{Object.keys(S).forEach(v=>{const g={label:`${p[m]} - ${v}`,value:`{{ ${m}.${v} }}`};b.push(g)})}),s(b)};return n.useEffect(()=>{e||d()},[d,e,l]),i?n.createElement(Zn.Provider,{value:{$store:l.__STORE__||r,options:o,configs:a}},t):t};var ll=n.memo(ol);const Mi={id:Oi(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},$i={id:"",duration:0,name:"none"},Kn=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Mi],redoStack:[],popup:$i,setPopup:()=>{}}),Jn=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:s=!0,utmVal:l},r)=>{const[u,a]=n.useState(null),[c,d]=n.useState(o||{pointData:[Mi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[A,f]=n.useState([Mi]),[p,b]=n.useState([[Mi]]),[m,S]=n.useState([]),[v,g]=n.useState($i);typeof window<"u"&&(window.sxpPopup=(V,M)=>{g(Object.assign(Object.assign(Object.assign({},$i),{id:V}),M))}),typeof window<"u"&&(window.getJointUtmLink=V=>($o(),V?.indexOf("?")!==-1?V+(l?"&"+l:""):V+(l?"?"+l:""))),n.useEffect(()=>{b([c.pointData]),S([])},[c.type]);const h=n.useCallback(V=>{const M=Re.cloneDeep(c);M&&(M.dataSource=V,d?.(M))},[c]),[w,C]=n.useState();n.useImperativeHandle(r,()=>({loadSchema(V){V&&(b([V.pointData]),d(V))},exportSchema(){return Re.cloneDeep(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=n.useMemo(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return n.createElement(Kn.Provider,{value:{resolver:e,currentNode:u,schema:c,setCurrentNode:a,setSchema:d,saveDataSource:h,prePiontData:A,setPrePiontData:f,pageInfoData:w,setPageInfoData:V=>C(Object.assign(Object.assign({},w),V)),undoStack:p,redoStack:m,setRedoStack:S,setUndoStack:b,getCurPageConf:P,popup:v,setPopup:g}},n.createElement(ll,{isSsr:i,enable:s},t))});var sl=Object.freeze({__proto__:null,EditorCore:Jn}),rl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],al=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Lt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:o,setEventTimeList:s}=He(),l=n.useCallback((a,c,d,A,f,p)=>{var b,m,S,v,g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D,F,O,I,N,q,X,Y,R,me,ae,J,Te,Oe,Fe,ce,de,Ze,Ue;if(o?.findIndex(ke=>ke.target===a?.target)!==-1)return;a&&s?.(ke=>[...ke,{target:a?.target,time:new Date}]);let _e="";e&&(!((m=(b=c?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0)&&m.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?_e="pdpPage":i?_e="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?_e="videoPage":!((g=c?.video)===null||g===void 0)&&g.imgUrls&&(!((w=(h=c?.video)===null||h===void 0?void 0:h.imgUrls)===null||w===void 0)&&w.length)?_e="imagePage":c?.product&&(_e="productPage");const lt=(B=(x=(C=d?.tags)!==null&&C!==void 0?C:(M=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||M===void 0?void 0:M.tags)!==null&&x!==void 0?x:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&B!==void 0?B:(k=c?.product)===null||k===void 0?void 0:k.tags;let Ke=null;!((j=c?.video)===null||j===void 0)&&j.url?Ke="video":!((E=c?.video)===null||E===void 0)&&E.imgUrls&&(!((W=(y=c?.video)===null||y===void 0?void 0:y.imgUrls)===null||W===void 0)&&W.length)&&(Ke="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(D=d?.itemId)!==null&&D!==void 0?D:"",productName:(F=d?.title)!==null&&F!==void 0?F:"",price:d?.price?d?.price+"":"0",productCollection:(O=d?.collection)!==null&&O!==void 0?O:"",fromKName:_e,fromKPage:location?.href,contentTags:lt?JSON.stringify(lt):"",position:f+"",contentId:(N=(I=c?.video)===null||I===void 0?void 0:I.itemId)!==null&&N!==void 0?N:"",ctatId:(q=A?.itemId)!==null&&q!==void 0?q:"",traceInfo:(Ue=(ce=(Oe=(me=(X=p??d?.traceInfo)!==null&&X!==void 0?X:(R=(Y=c?.video)===null||Y===void 0?void 0:Y.bindProduct)===null||R===void 0?void 0:R.traceInfo)!==null&&me!==void 0?me:(Te=(J=(ae=c?.video)===null||ae===void 0?void 0:ae.bindProducts)===null||J===void 0?void 0:J[0])===null||Te===void 0?void 0:Te.traceInfo)!==null&&Oe!==void 0?Oe:(Fe=c?.product)===null||Fe===void 0?void 0:Fe.traceInfo)!==null&&ce!==void 0?ce:(Ze=(de=c?.video)===null||de===void 0?void 0:de.bindCta)===null||Ze===void 0?void 0:Ze.traceInfo)!==null&&Ue!==void 0?Ue:""},Ke&&{contentFormat:Ke})})},[t,e,i,o]),r=n.useCallback((a,c,d,A,f)=>{var p,b,m,S,v,g,h,w,C,P,V,M,x,T;let B="";e&&(!((b=(p=a?.video)===null||p===void 0?void 0:p.bindProducts)===null||b===void 0)&&b.length||!((m=a?.video)===null||m===void 0)&&m.bindProduct)?B="pdpPage":a?.product&&(B="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:B,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:f+"",contentId:(S=a?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(M=(w=(v=c?.traceInfo)!==null&&v!==void 0?v:(h=(g=a?.video)===null||g===void 0?void 0:g.bindProduct)===null||h===void 0?void 0:h.traceInfo)!==null&&w!==void 0?w:(V=(P=(C=a?.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&&M!==void 0?M:(x=a?.product)===null||x===void 0?void 0:x.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-A)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),u=n.useCallback((a,c,d,A)=>{c&&c===Li&&t?.({eventInfo:{lastFeed:a,themeTags:d?`['${d}']`:"",hashTags:A?`['${A}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:r,backMainFeed:u}}const dl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,s)=>n.createElement("div",{key:s,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var ul=n.memo(dl);const cl=t=>{var e,i,{columns:o,style:s,title:l,textStyle:r,submitBgColor:u,submitColor:a,submitText:c,layoutType:d="inline",isExternalLink:A,isPopup:f,onClick:p,onClose:b,submitButtonStyle:m}=t,S=$e(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=He(),{jumpToWeb:h}=Lt(),[w,C]=n.useState(!1),[P,V]=n.useState({}),[M,x]=n.useState(0),T=n.useMemo(()=>[{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"}],[]),B=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),k=n.useMemo(()=>Re.cloneDeep(o)||T,[o,T]),j=n.useCallback(y=>{const{name:W,value:D}=y.target;V(Object.assign(Object.assign({},P),{[W]:D}))},[P]),E=Re.debounce(y=>ot(void 0,void 0,void 0,function*(){var W,D,F,O,I;const N=P;if(!N)return;const q=(D=(W=Object.keys(N))===null||W===void 0?void 0:W.map(Y=>{var R;return{name:Y,value:(R=N[Y])!==null&&R!==void 0?R:""}}))===null||D===void 0?void 0:D.filter(Y=>Y?.value);if(!q||!q?.length)return;C(!0);const X=yield v?.({attributes:q});if(C(!1),X){if(A){const Y=g,R=(F=Y?.video)===null||F===void 0?void 0:F.bindProduct,me=(I=(O=Y?.video)===null||O===void 0?void 0:O.bindProduct)===null||I===void 0?void 0:I.bindCta,ae=g?.index;h(y,Y,R,me,ae)}f||b?.(),p?.()}}),1e3);return n.useEffect(()=>{const y=()=>{var W,D;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((D=document?.body)===null||D===void 0?void 0:D.clientHeight))<B?x(50):x(0)};return window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${De.css(Object.assign({},r))}`,dangerouslySetInnerHTML:{__html:Pe(l,r)}}),n.createElement("div",Object.assign({className:De.css(Object.assign(Object.assign({},s),{marginTop:M}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(ul,{columns:k,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":c,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:a,background:u},m),dangerouslySetInnerHTML:{__html:Pe(w?"loading...":c,m)}})))};var vl=n.memo(cl);function mt(t,e){return t.extend=e,t}const pl=mt(vl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:al,bindableProps:[],interactionRender:rl},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 ml=[{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:[{label:"\u82F1\u6587\u5927\u5C0F\u5199",type:"Select",name:["props","buttonStyle","textTransform"],options:[{label:"\u9ED8\u8BA4",value:"unset"},{label:"\u5C0F\u5199",value:"lowercase"},{label:"\u5927\u5199",value:"uppercase"}]},{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"]}]}],fl=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function Qn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function en(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Qn(e[i])&&Qn(t[i])&&Object.keys(e[i]).length>0&&en(t[i],e[i])})}const Rn={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 jt(){const t=typeof document<"u"?document:{};return en(t,Rn),t}const hl={document:Rn,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 Pt(){const t=typeof window<"u"?window:{};return en(t,hl),t}function ti(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Al(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function di(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Wt(){return Date.now()}function bl(t){const e=Pt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function gl(t,e){e===void 0&&(e="x");const i=Pt();let o,s,l;const r=bl(t);return i.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(u=>u.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(s==="none"?"":s)):(l=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?s=l.m41:o.length===16?s=parseFloat(o[12]):s=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?s=l.m42:o.length===16?s=parseFloat(o[13]):s=parseFloat(o[5])),s||0}function ji(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function yl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Vt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!yl(o)){const s=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,r=s.length;l<r;l+=1){const u=s[l],a=Object.getOwnPropertyDescriptor(o,u);a!==void 0&&a.enumerable&&(ji(t[u])&&ji(o[u])?o[u].__swiper__?t[u]=o[u]:Vt(t[u],o[u]):!ji(t[u])&&ji(o[u])?(t[u]={},o[u].__swiper__?t[u]=o[u]:Vt(t[u],o[u])):t[u]=o[u])}}}return t}function Ni(t,e,i){t.style.setProperty(e,i)}function $n(t){let{swiper:e,targetPosition:i,side:o}=t;const s=Pt(),l=-e.translate;let r=null,u;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"next":"prev",d=(f,p)=>c==="next"&&f>=p||c==="prev"&&f<=p,A=()=>{u=new Date().getTime(),r===null&&(r=u);const f=Math.max(Math.min((u-r)/a,1),0),p=.5-Math.cos(f*Math.PI)/2;let b=l+p*(i-l);if(d(b,i)&&(b=i),e.wrapperEl.scrollTo({[o]:b}),d(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:b})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(A)};A()}function Gt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Di(t){try{console.warn(t);return}catch{}}function ui(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ti(e)),i}function eo(t){const e=Pt(),i=jt(),o=t.getBoundingClientRect(),s=i.body,l=t.clientTop||s.clientTop||0,r=t.clientLeft||s.clientLeft||0,u=t===e?e.scrollY:t.scrollTop,a=t===e?e.scrollX:t.scrollLeft;return{top:o.top+u-l,left:o.left+a-r}}function wl(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Sl(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function ii(t,e){return Pt().getComputedStyle(t,null).getPropertyValue(e)}function bi(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Vi(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function tn(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function nn(t,e,i){const o=Pt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ye(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let on;function xl(){const t=Pt(),e=jt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function to(){return on||(on=xl()),on}let ln;function Tl(t){let{userAgent:e}=t===void 0?{}:t;const i=to(),o=Pt(),s=o.navigator.platform,l=e||o.navigator.userAgent,r={ios:!1,android:!1},u=o.screen.width,a=o.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let d=l.match(/(iPad).*OS\s([\d_]+)/);const A=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let b=s==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&b&&i.touch&&m.indexOf(`${u}x${a}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),b=!1),c&&!p&&(r.os="android",r.android=!0),(d||f||A)&&(r.os="ios",r.ios=!0),r}function io(t){return t===void 0&&(t={}),ln||(ln=Tl(t)),ln}let sn;function El(){const t=Pt(),e=io();let i=!1;function o(){const u=t.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(o()){const u=String(t.navigator.userAgent);if(u.includes("Version/")){const[a,c]=u.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=a<16||a===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),r=l||s&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:r,isWebView:s}}function kl(){return sn||(sn=El()),sn}function Il(t){let{swiper:e,on:i,emit:o}=t;const s=Pt();let l=null,r=null;const u=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(A=>{r=s.requestAnimationFrame(()=>{const{width:f,height:p}=e;let b=f,m=p;A.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:h}=S;h&&h!==e.el||(b=g?g.width:(v[0]||v).inlineSize,m=g?g.height:(v[0]||v).blockSize)}),(b!==f||m!==p)&&u()})}),l.observe(e.el))},c=()=>{r&&s.cancelAnimationFrame(r),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},d=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){a();return}s.addEventListener("resize",u),s.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),s.removeEventListener("resize",u),s.removeEventListener("orientationchange",d)})}function Cl(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=[],r=Pt(),u=function(d,A){A===void 0&&(A={});const f=r.MutationObserver||r.WebkitMutationObserver,p=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){s("observerUpdate",b[0]);return}const m=function(){s("observerUpdate",b[0])};r.requestAnimationFrame?r.requestAnimationFrame(m):r.setTimeout(m,0)});p.observe(d,{attributes:typeof A.attributes>"u"?!0:A.attributes,childList:typeof A.childList>"u"?!0:A.childList,characterData:typeof A.characterData>"u"?!0:A.characterData}),l.push(p)},a=()=>{if(e.params.observer){if(e.params.observeParents){const d=Vi(e.hostEl);for(let A=0;A<d.length;A+=1)u(d[A])}u(e.hostEl,{childList:e.params.observeSlideChildren}),u(e.wrapperEl,{attributes:!1})}},c=()=>{l.forEach(d=>{d.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",a),o("destroy",c)}var Pl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const s=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][s](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function s(){o.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var l=arguments.length,r=new Array(l),u=0;u<l;u++)r[u]=arguments[u];e.apply(o,r)}return s.__emitterProxy=e,o.on(t,s,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](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(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((s,l)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&i.eventsListeners[o].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var s=arguments.length,l=new Array(s),r=0;r<s;r++)l[r]=arguments[r];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),o=t):(e=l[0].events,i=l[0].data,o=l[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(o,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(c=>{c.apply(o,i)})}),t}};function Ol(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ii(o,"padding-left")||0,10)-parseInt(ii(o,"padding-right")||0,10),i=i-parseInt(ii(o,"padding-top")||0,10)-parseInt(ii(o,"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 Ll(){const t=this;function e(T,B){return parseFloat(T.getPropertyValue(t.getDirectionLabel(B))||0)}const i=t.params,{wrapperEl:o,slidesEl:s,size:l,rtlTranslate:r,wrongRTL:u}=t,a=t.virtual&&i.virtual.enabled,c=a?t.virtual.slides.length:t.slides.length,d=Gt(s,`.${t.params.slideClass}, swiper-slide`),A=a?t.virtual.slides.length:d.length;let f=[];const p=[],b=[];let m=i.slidesOffsetBefore;typeof m=="function"&&(m=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let h=i.spaceBetween,w=-m,C=0,P=0;if(typeof l>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*l:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,d.forEach(T=>{r?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Ni(o,"--swiper-centered-offset-before",""),Ni(o,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let M;const x=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<A;T+=1){M=0;let B;if(d[T]&&(B=d[T]),V&&t.grid.updateSlide(T,B,d),!(d[T]&&ii(B,"display")==="none")){if(i.slidesPerView==="auto"){x&&(d[T].style[t.getDirectionLabel("width")]="");const k=getComputedStyle(B),j=B.style.transform,E=B.style.webkitTransform;if(j&&(B.style.transform="none"),E&&(B.style.webkitTransform="none"),i.roundLengths)M=t.isHorizontal()?nn(B,"width",!0):nn(B,"height",!0);else{const y=e(k,"width"),W=e(k,"padding-left"),D=e(k,"padding-right"),F=e(k,"margin-left"),O=e(k,"margin-right"),I=k.getPropertyValue("box-sizing");if(I&&I==="border-box")M=y+F+O;else{const{clientWidth:N,offsetWidth:q}=B;M=y+W+D+F+O+(q-N)}}j&&(B.style.transform=j),E&&(B.style.webkitTransform=E),i.roundLengths&&(M=Math.floor(M))}else M=(l-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${M}px`);d[T]&&(d[T].swiperSlideSize=M),b.push(M),i.centeredSlides?(w=w+M/2+C/2+h,C===0&&T!==0&&(w=w-l/2-h),T===0&&(w=w-l/2-h),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),p.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),p.push(w),w=w+M+h),t.virtualSize+=M+h,C=M,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+S,r&&u&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),V&&t.grid.updateWrapperSize(M,f),!i.centeredSlides){const T=[];for(let B=0;B<f.length;B+=1){let k=f[B];i.roundLengths&&(k=Math.floor(k)),f[B]<=t.virtualSize-l&&T.push(k)}f=T,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}if(a&&i.loop){const T=b[0]+h;if(i.slidesPerGroup>1){const B=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),k=T*i.slidesPerGroup;for(let j=0;j<B;j+=1)f.push(f[f.length-1]+k)}for(let B=0;B<t.virtual.slidesBefore+t.virtual.slidesAfter;B+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),p.push(p[p.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),h!==0){const T=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");d.filter((B,k)=>!i.cssMode||i.loop?!0:k!==d.length-1).forEach(B=>{B.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const B=T-l;f=f.map(k=>k<=0?-m:k>B?B+S:k)}if(i.centerInsufficientSlides){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const B=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+B<l){const k=(l-T-B)/2;f.forEach((j,E)=>{f[E]=j-k}),p.forEach((j,E)=>{p[E]=j+k})}}if(Object.assign(t,{slides:d,snapGrid:f,slidesGrid:p,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ni(o,"--swiper-centered-offset-before",`${-f[0]}px`),Ni(o,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],B=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(k=>k+T),t.slidesGrid=t.slidesGrid.map(k=>k+B)}if(A!==c&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,B=t.el.classList.contains(T);A<=i.maxBackfaceHiddenSlides?B||t.el.classList.add(T):B&&t.el.classList.remove(T)}}function Ml(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let s=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=u=>o?e.slides[e.getSlideIndexByData(u)]:e.slides[u];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(u=>{i.push(u)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const u=e.activeIndex+l;if(u>e.slides.length&&!o)break;i.push(r(u))}else i.push(r(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const u=i[l].offsetHeight;s=u>s?u:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function jl(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const no=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Nl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:s,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;s&&(r=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let u=i.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*e.size:typeof u=="string"&&(u=parseFloat(u));for(let a=0;a<o.length;a+=1){const c=o[a];let d=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=o[0].swiperSlideOffset);const A=(r+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+u),f=(r-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+u),p=-(r-d),b=p+e.slidesSizesGrid[a],m=p>=0&&p<=e.size-e.slidesSizesGrid[a],S=p>=0&&p<e.size-1||b>1&&b<=e.size||p<=0&&b>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(a)),no(c,S,i.slideVisibleClass),no(c,m,i.slideFullyVisibleClass),c.progress=s?-A:A,c.originalProgress=s?-f:f}}function Dl(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:l,isEnd:r,progressLoop:u}=e;const a=l,c=r;if(o===0)s=0,l=!0,r=!0;else{s=(t-e.minTranslate())/o;const d=Math.abs(t-e.minTranslate())<1,A=Math.abs(t-e.maxTranslate())<1;l=d||s<=0,r=A||s>=1,d&&(s=0),A&&(s=1)}if(i.loop){const d=e.getSlideIndexByData(0),A=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[d],p=e.slidesGrid[A],b=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=f?u=(m-f)/b:u=(m+b-p)/b,u>1&&(u-=1)}Object.assign(e,{progress:s,progressLoop:u,isBeginning:l,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!a&&e.emit("reachBeginning toEdge"),r&&!c&&e.emit("reachEnd toEdge"),(a&&!l||c&&!r)&&e.emit("fromEdge"),e.emit("progress",s)}const rn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Vl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:s}=t,l=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,u=A=>Gt(o,`.${i.slideClass}${A}, swiper-slide${A}`)[0];let a,c,d;if(l)if(i.loop){let A=s-t.virtual.slidesBefore;A<0&&(A=t.virtual.slides.length+A),A>=t.virtual.slides.length&&(A-=t.virtual.slides.length),a=u(`[data-swiper-slide-index="${A}"]`)}else a=u(`[data-swiper-slide-index="${s}"]`);else r?(a=e.filter(A=>A.column===s)[0],d=e.filter(A=>A.column===s+1)[0],c=e.filter(A=>A.column===s-1)[0]):a=e[s];a&&(r||(d=Sl(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),c=wl(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(A=>{rn(A,A===a,i.slideActiveClass),rn(A,A===d,i.slideNextClass),rn(A,A===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Bi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let s=o.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(o.shadowRoot?s=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(s=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},an=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},dn=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 o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=s,u=[r-e];u.push(...Array.from({length:e}).map((a,c)=>r+o+c)),t.slides.forEach((a,c)=>{u.includes(a.column)&&an(t,c)});return}const l=s+o-1;if(t.params.rewind||t.params.loop)for(let r=s-e;r<=l+e;r+=1){const u=(r%i+i)%i;(u<s||u>l)&&an(t,u)}else for(let r=Math.max(s-e,0);r<=Math.min(l+e,i-1);r+=1)r!==s&&(r>l||r<s)&&an(t,r)};function Bl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let s;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?o>=e[l]&&o<e[l+1]-(e[l+1]-e[l])/2?s=l:o>=e[l]&&o<e[l+1]&&(s=l+1):o>=e[l]&&(s=l);return i.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function Fl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:s,activeIndex:l,realIndex:r,snapIndex:u}=e;let a=t,c;const d=p=>{let b=p-e.virtual.slidesBefore;return b<0&&(b=e.virtual.slides.length+b),b>=e.virtual.slides.length&&(b-=e.virtual.slides.length),b};if(typeof a>"u"&&(a=Bl(e)),o.indexOf(i)>=0)c=o.indexOf(i);else{const p=Math.min(s.slidesPerGroupSkip,a);c=p+Math.floor((a-p)/s.slidesPerGroup)}if(c>=o.length&&(c=o.length-1),a===l&&!e.params.loop){c!==u&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(a===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(a);return}const A=e.grid&&s.grid&&s.grid.rows>1;let f;if(e.virtual&&s.virtual.enabled&&s.loop)f=d(a);else if(A){const p=e.slides.filter(m=>m.column===a)[0];let b=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(e.slides.indexOf(p),0)),f=Math.floor(b/s.grid.rows)}else if(e.slides[a]){const p=e.slides[a].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=a}else f=a;Object.assign(e,{previousSnapIndex:u,snapIndex:c,previousRealIndex:r,realIndex:f,previousIndex:l,activeIndex:a}),e.initialized&&dn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Wl(t,e){const i=this,o=i.params;let s=t.closest(`.${o.slideClass}, swiper-slide`);!s&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(u=>{!s&&u.matches&&u.matches(`.${o.slideClass}, swiper-slide`)&&(s=u)});let l=!1,r;if(s){for(let u=0;u<i.slides.length;u+=1)if(i.slides[u]===s){l=!0,r=u;break}}if(s&&l)i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var zl={updateSize:Ol,updateSlides:Ll,updateAutoHeight:Ml,updateSlidesOffset:jl,updateSlidesProgress:Nl,updateProgress:Dl,updateSlidesClasses:Vl,updateActiveIndex:Fl,updateClickedSlide:Wl};function Hl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:s,wrapperEl:l}=e;if(i.virtualTranslate)return o?-s:s;if(i.cssMode)return s;let r=gl(l,t);return r+=e.cssOverflowAdjustment(),o&&(r=-r),r||0}function Ul(t,e){const i=this,{rtlTranslate:o,params:s,wrapperEl:l,progress:r}=i;let u=0,a=0;const c=0;i.isHorizontal()?u=o?-t:t:a=t,s.roundLengths&&(u=Math.floor(u),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?u:a,s.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-u:-a:s.virtualTranslate||(i.isHorizontal()?u-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${u}px, ${a}px, ${c}px)`);let d;const A=i.maxTranslate()-i.minTranslate();A===0?d=0:d=(t-i.minTranslate())/A,d!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Xl(){return-this.snapGrid[0]}function ql(){return-this.snapGrid[this.snapGrid.length-1]}function Yl(t,e,i,o,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const l=this,{params:r,wrapperEl:u}=l;if(l.animating&&r.preventInteractionOnTransition)return!1;const a=l.minTranslate(),c=l.maxTranslate();let d;if(o&&t>a?d=a:o&&t<c?d=c:d=t,l.updateProgress(d),r.cssMode){const A=l.isHorizontal();if(e===0)u[A?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:-d,side:A?"left":"top"}),!0;u.scrollTo({[A?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,s),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,s),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 Gl={getTranslate:Hl,setTranslate:Ul,minTranslate:Xl,maxTranslate:ql,translateTo:Yl};function _l(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 oo(t){let{swiper:e,runCallbacks:i,direction:o,step:s}=t;const{activeIndex:l,previousIndex:r}=e;let u=o;if(u||(l>r?u="next":l<r?u="prev":u="reset"),e.emit(`transition${s}`),i&&l!==r){if(u==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),u==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function Zl(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),oo({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Kl(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),oo({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Jl={setTransition:_l,transitionStart:Zl,transitionEnd:Kl};function Ql(t,e,i,o,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let r=t;r<0&&(r=0);const{params:u,snapGrid:a,slidesGrid:c,previousIndex:d,activeIndex:A,rtlTranslate:f,wrapperEl:p,enabled:b}=l;if(!b&&!o&&!s||l.destroyed||l.animating&&u.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const m=Math.min(l.params.slidesPerGroupSkip,r);let S=m+Math.floor((r-m)/l.params.slidesPerGroup);S>=a.length&&(S=a.length-1);const v=-a[S];if(u.normalizeSlideIndex)for(let h=0;h<c.length;h+=1){const w=-Math.floor(v*100),C=Math.floor(c[h]*100),P=Math.floor(c[h+1]*100);typeof c[h+1]<"u"?w>=C&&w<P-(P-C)/2?r=h:w>=C&&w<P&&(r=h+1):w>=C&&(r=h)}if(l.initialized&&r!==A&&(!l.allowSlideNext&&(f?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(A||0)!==r))return!1;r!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(r>A?g="next":r<A?g="prev":g="reset",f&&-v===l.translate||!f&&v===l.translate)return l.updateActiveIndex(r),u.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),u.effect!=="slide"&&l.setTranslate(v),g!=="reset"&&(l.transitionStart(i,g),l.transitionEnd(i,g)),!1;if(u.cssMode){const h=l.isHorizontal(),w=f?v:-v;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(()=>{p[h?"scrollLeft":"scrollTop"]=w})):p[h?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:w,side:h?"left":"top"}),!0;p.scrollTo({[h?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(r),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,o),l.transitionStart(i,g),e===0?l.transitionEnd(i,g):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,g))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function Rl(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const l=s.grid&&s.params.grid&&s.params.grid.rows>1;let r=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)r=r+s.virtual.slidesBefore;else{let u;if(l){const f=r*s.params.grid.rows;u=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else u=s.getSlideIndexByData(r);const a=l?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let d=s.params.slidesPerView;d==="auto"?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let A=a-u<d;if(c&&(A=A||u<Math.ceil(d/2)),o&&c&&s.params.slidesPerView!=="auto"&&!l&&(A=!1),A){const f=c?u<s.activeIndex?"prev":"next":u-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?u+1:u-a+1,slideRealIndex:f==="next"?s.realIndex:void 0})}if(l){const f=r*s.params.grid.rows;r=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else r=s.getSlideIndexByData(r)}return requestAnimationFrame(()=>{s.slideTo(r,e,i,o)}),s}function $l(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:s,params:l,animating:r}=o;if(!s||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let u=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(u=Math.max(o.slidesPerViewDynamic("current",!0),1));const a=o.activeIndex<l.slidesPerGroupSkip?1:u,c=o.virtual&&l.virtual.enabled;if(l.loop){if(r&&!c&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+a,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+a,t,e,i)}function es(t,e,i){e===void 0&&(e=!0);const o=this,{params:s,snapGrid:l,slidesGrid:r,rtlTranslate:u,enabled:a,animating:c}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const d=o.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const A=u?o.translate:-o.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=f(A),b=l.map(v=>f(v));let m=l[b.indexOf(p)-1];if(typeof m>"u"&&s.cssMode){let v;l.forEach((g,h)=>{p>=g&&(v=h)}),typeof v<"u"&&(m=l[v>0?v-1:v])}let S=0;if(typeof m<"u"&&(S=r.indexOf(m),S<0&&(S=o.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),s.rewind&&o.isBeginning){const v=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(v,t,e,i)}else if(s.loop&&o.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function ts(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function is(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let l=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,l),u=r+Math.floor((l-r)/s.params.slidesPerGroup),a=s.rtlTranslate?s.translate:-s.translate;if(a>=s.snapGrid[u]){const c=s.snapGrid[u],d=s.snapGrid[u+1];a-c>(d-c)*o&&(l+=s.params.slidesPerGroup)}else{const c=s.snapGrid[u-1],d=s.snapGrid[u];a-c<=(d-c)*o&&(l-=s.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,s.slidesGrid.length-1),s.slideTo(l,t,e,i)}function ns(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.clickedIndex,l;const r=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?s<t.loopedSlides-o/2||s>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),s=t.getSlideIndex(Gt(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),di(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-o?(t.loopFix(),s=t.getSlideIndex(Gt(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),di(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var os={slideTo:Ql,slideToLoop:Rl,slideNext:$l,slidePrev:es,slideReset:ts,slideToClosest:is,slideToClickedSlide:ns};function ls(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{Gt(o,`.${i.slideClass}, swiper-slide`).forEach((A,f)=>{A.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(l?i.grid.rows:1),u=e.slides.length%r!==0,a=l&&e.slides.length%i.grid.rows!==0,c=d=>{for(let A=0;A<d;A+=1){const f=e.isElement?ui("swiper-slide",[i.slideBlankClass]):ui("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(u){if(i.loopAddBlankSlides){const d=r-e.slides.length%r;c(d),e.recalcSlides(),e.updateSlides()}else Di("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(a){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;c(d),e.recalcSlides(),e.updateSlides()}else Di("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ss(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:s,activeSlideIndex:l,byController:r,byMousewheel:u}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:A,slidesEl:f,params:p}=a,{centeredSlides:b}=p;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):p.centeredSlides&&a.snapIndex<p.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=d,a.allowSlideNext=A,a.emit("loopFix");return}let m=p.slidesPerView;m==="auto"?m=a.slidesPerViewDynamic():(m=Math.ceil(parseFloat(p.slidesPerView,10)),b&&m%2===0&&(m=m+1));const S=p.slidesPerGroupAuto?m:p.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=p.loopAdditionalSlides,a.loopedSlides=v;const g=a.grid&&p.grid&&p.grid.rows>1;c.length<m+v?Di("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"):g&&p.grid.fill==="row"&&Di("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],w=[];let C=a.activeIndex;typeof l>"u"?l=a.getSlideIndex(c.filter(j=>j.classList.contains(p.slideActiveClass))[0]):C=l;const P=o==="next"||!o,V=o==="prev"||!o;let M=0,x=0;const T=g?Math.ceil(c.length/p.grid.rows):c.length,k=(g?c[l].column:l)+(b&&typeof s>"u"?-m/2+.5:0);if(k<v){M=Math.max(v-k,S);for(let j=0;j<v-k;j+=1){const E=j-Math.floor(j/T)*T;if(g){const y=T-E-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===y&&h.push(W)}else h.push(T-E-1)}}else if(k+m>T-v){x=Math.max(k-(T-v*2),S);for(let j=0;j<x;j+=1){const E=j-Math.floor(j/T)*T;g?c.forEach((y,W)=>{y.column===E&&w.push(W)}):w.push(E)}}if(a.__preventObserver__=!0,requestAnimationFrame(()=>{a.__preventObserver__=!1}),V&&h.forEach(j=>{c[j].swiperLoopMoveDOM=!0,f.prepend(c[j]),c[j].swiperLoopMoveDOM=!1}),P&&w.forEach(j=>{c[j].swiperLoopMoveDOM=!0,f.append(c[j]),c[j].swiperLoopMoveDOM=!1}),a.recalcSlides(),p.slidesPerView==="auto"?a.updateSlides():g&&(h.length>0&&V||w.length>0&&P)&&a.slides.forEach((j,E)=>{a.grid.updateSlide(E,j,a.slides)}),p.watchSlidesProgress&&a.updateSlidesOffset(),i){if(h.length>0&&V){if(typeof e>"u"){const j=a.slidesGrid[C],y=a.slidesGrid[C+M]-j;u?a.setTranslate(a.translate-y):(a.slideTo(C+Math.ceil(M),0,!1,!0),s&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-y,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-y))}else if(s){const j=g?h.length/p.grid.rows:h.length;a.slideTo(a.activeIndex+j,0,!1,!0),a.touchEventsData.currentTranslate=a.translate}}else if(w.length>0&&P)if(typeof e>"u"){const j=a.slidesGrid[C],y=a.slidesGrid[C-x]-j;u?a.setTranslate(a.translate-y):(a.slideTo(C-x,0,!1,!0),s&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-y,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-y))}else{const j=g?w.length/p.grid.rows:w.length;a.slideTo(a.activeIndex-j,0,!1,!0)}}if(a.allowSlidePrev=d,a.allowSlideNext=A,a.controller&&a.controller.control&&!r){const j={slideRealIndex:e,direction:o,setTranslate:s,activeSlideIndex:l,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...j,slideTo:E.params.slidesPerView===p.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...j,slideTo:a.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}a.emit("loopFix")}function rs(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(s=>{const l=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;o[l]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),o.forEach(s=>{i.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var as={loopCreate:ls,loopFix:ss,loopDestroy:rs};function ds(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 us(){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 cs={setGrabCursor:ds,unsetGrabCursor:us};function vs(t,e){e===void 0&&(e=this);function i(o){if(!o||o===jt()||o===Pt())return null;o.assignedSlot&&(o=o.assignedSlot);const s=o.closest(t);return!s&&!o.getRootNode?null:s||i(o.getRootNode().host)}return i(e)}function lo(t,e,i){const o=Pt(),{params:s}=t,l=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return l&&(i<=r||i>=o.innerWidth-r)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function ps(t){const e=this,i=jt();let o=t;o.originalEvent&&(o=o.originalEvent);const s=e.touchEventsData;if(o.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==o.pointerId)return;s.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(s.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){lo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:r,enabled:u}=e;if(!u||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let a=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(a)||"which"in o&&o.which===3||"button"in o&&o.button>0||s.isTouched&&s.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;c&&o.target&&o.target.shadowRoot&&d&&(a=d[0]);const A=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(f?vs(A,a):a.closest(A))){e.allowClick=!0;return}if(l.swipeHandler&&!a.closest(l.swipeHandler))return;r.currentX=o.pageX,r.currentY=o.pageY;const p=r.currentX,b=r.currentY;if(!lo(e,o,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=p,r.startY=b,s.touchStartTime=Wt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(s.allowThresholdMove=!1);let m=!0;a.matches(s.focusableElements)&&(m=!1,a.nodeName==="SELECT"&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==a&&i.activeElement.blur();const S=m&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!a.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function ms(t){const e=jt(),i=this,o=i.touchEventsData,{params:s,touches:l,rtlTranslate:r,enabled:u}=i;if(!u||!s.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),a.type==="pointermove"&&(o.touchId!==null||a.pointerId!==o.pointerId))return;let c;if(a.type==="touchmove"){if(c=[...a.changedTouches].filter(P=>P.identifier===o.touchId)[0],!c||c.identifier!==o.touchId)return}else c=a;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",a);return}const d=c.pageX,A=c.pageY;if(a.preventedByNestedSwiper){l.startX=d,l.startY=A;return}if(!i.allowTouchMove){a.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:d,startY:A,currentX:d,currentY:A}),o.touchStartTime=Wt());return}if(s.touchReleaseOnEdges&&!s.loop){if(i.isVertical()){if(A<l.startY&&i.translate<=i.maxTranslate()||A>l.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(d<l.startX&&i.translate<=i.maxTranslate()||d>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",a),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=A;const f=l.currentX-l.startX,p=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+p**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:f*f+p*p>=25&&(P=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,o.isScrolling=i.isHorizontal()?P>s.touchAngle:90-P>s.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",a),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||a.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!s.cssMode&&a.cancelable&&a.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&a.stopPropagation();let b=i.isHorizontal()?f:p,m=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;s.oneWayMovement&&(b=Math.abs(b)*(r?1:-1),m=Math.abs(m)*(r?1:-1)),l.diff=b,b*=s.touchRatio,r&&(b=-b,m=-m);const S=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=m>0?"prev":"next";const v=i.params.loop&&!s.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),o.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)}o.allowMomentumBounce=!1,s.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let h;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(b)>=1){Object.assign(l,{startX:d,startY:A,currentX:d,currentY:A,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",a),o.isMoved=!0,o.currentTranslate=b+o.startTranslate;let w=!0,C=s.resistanceRatio;if(s.touchReleaseOnEdges&&(C=0),b>0?(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,s.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+b)**C))):b<0&&(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(s.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,s.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-b)**C))),w&&(a.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),s.threshold>0)if(Math.abs(b)>s.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{o.currentTranslate=o.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function fs(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let s;if(o.type==="touchend"||o.type==="touchcancel"){if(s=[...o.changedTouches].filter(C=>C.identifier===i.touchId)[0],!s||s.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;s=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:r,touches:u,rtlTranslate:a,slidesGrid:c,enabled:d}=e;if(!d||!r.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const A=Wt(),f=A-i.touchStartTime;if(e.allowClick){const C=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(C&&C[0]||o.target,C),e.emit("tap click",o),f<300&&A-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=Wt(),di(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||u.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(r.followFinger?p=a?e.translate:-e.translate:p=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const b=p>=-e.maxTranslate()&&!e.params.loop;let m=0,S=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<r.slidesPerGroupSkip?1:r.slidesPerGroup){const P=C<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof c[C+P]<"u"?(b||p>=c[C]&&p<c[C+P])&&(m=C,S=c[C+P]-c[C]):(b||p>=c[C])&&(m=C,S=c[c.length-1]-c[c.length-2])}let v=null,g=null;r.rewind&&(e.isBeginning?g=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(p-c[m])/S,w=m<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?v:m+w):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-r.longSwipesRatio?e.slideTo(m+w):g!==null&&h<0&&Math.abs(h)>r.longSwipesRatio?e.slideTo(g):e.slideTo(m))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(m+w):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:m+w),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:m))}}function so(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:s,snapGrid:l}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const u=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!u?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?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=s,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function hs(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function As(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)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 s;const l=t.maxTranslate()-t.minTranslate();l===0?s=0:s=(t.translate-t.minTranslate())/l,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function bs(t){const e=this;Bi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function gs(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ro=(t,e)=>{const i=jt(),{params:o,el:s,wrapperEl:l,device:r}=t,u=!!o.nested,a=e==="on"?"addEventListener":"removeEventListener",c=e;!s||typeof s=="string"||(i[a]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:u}),s[a]("touchstart",t.onTouchStart,{passive:!1}),s[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("touchmove",t.onTouchMove,{passive:!1,capture:u}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:u}),i[a]("touchend",t.onTouchEnd,{passive:!0}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("touchcancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),i[a]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&s[a]("click",t.onClick,!0),o.cssMode&&l[a]("scroll",t.onScroll),o.updateOnWindowResize?t[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",so,!0):t[c]("observerUpdate",so,!0),s[a]("load",t.onLoad,{capture:!0}))};function ys(){const t=this,{params:e}=t;t.onTouchStart=ps.bind(t),t.onTouchMove=ms.bind(t),t.onTouchEnd=fs.bind(t),t.onDocumentTouchStart=gs.bind(t),e.cssMode&&(t.onScroll=As.bind(t)),t.onClick=hs.bind(t),t.onLoad=bs.bind(t),ro(t,"on")}function ws(){ro(this,"off")}var Ss={attachEvents:ys,detachEvents:ws};const ao=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function xs(){const t=this,{realIndex:e,initialized:i,params:o,el:s}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const r=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const a=(r in l?l[r]:void 0)||t.originalParams,c=ao(t,o),d=ao(t,a),A=t.params.grabCursor,f=a.grabCursor,p=o.enabled;c&&!d?(s.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(s.classList.add(`${o.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&o.grid.fill==="column")&&s.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),A&&!f?t.unsetGrabCursor():!A&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof a[h]>"u")return;const w=o[h]&&o[h].enabled,C=a[h]&&a[h].enabled;w&&!C&&t[h].disable(),!w&&C&&t[h].enable()});const b=a.direction&&a.direction!==o.direction,m=o.loop&&(a.slidesPerView!==o.slidesPerView||b),S=o.loop;b&&i&&t.changeDirection(),Vt(t.params,a);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!v?t.disable():!p&&v&&t.enable(),t.currentBreakpoint=r,t.emit("_beforeBreakpoint",a),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",a)}function Ts(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const s=Pt(),l=e==="window"?s.innerHeight:i.clientHeight,r=Object.keys(t).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const a=parseFloat(u.substr(1));return{value:l*a,point:u}}return{value:u,point:u}});r.sort((u,a)=>parseInt(u.value,10)-parseInt(a.value,10));for(let u=0;u<r.length;u+=1){const{point:a,value:c}=r[u];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(o=a):c<=i.clientWidth&&(o=a)}return o||"max"}var Es={setBreakpoint:xs,getBreakpoint:Ts};function ks(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(s=>{o[s]&&i.push(e+s)}):typeof o=="string"&&i.push(e+o)}),i}function Is(){const t=this,{classNames:e,params:i,rtl:o,el:s,device:l}=t,r=ks(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{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(...r),s.classList.add(...e),t.emitContainerClasses()}function Cs(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Ps={addClasses:Is,removeClasses:Cs};function Os(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const s=t.slides.length-1,l=t.slidesGrid[s]+t.slidesSizesGrid[s]+o*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 Ls={checkOverflow:Os},un={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 Ms(t,e){return function(o){o===void 0&&(o={});const s=Object.keys(o)[0],l=o[s];if(typeof l!="object"||l===null){Vt(e,o);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in l)){Vt(e,o);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),Vt(e,o)}}const cn={eventsEmitter:Pl,update:zl,translate:Gl,transition:Jl,slide:os,loop:as,grabCursor:cs,events:Ss,breakpoints:Es,checkOverflow:Ls,classes:Ps},vn={};let pn=class $t{constructor(){let e,i;for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?i=s[0]:[e,i]=s,i||(i={}),i=Vt({},i),e&&!i.el&&(i.el=e);const r=jt();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const d=[];return r.querySelectorAll(i.el).forEach(A=>{const f=Vt({},i,{el:A});d.push(new $t(f))}),d}const u=this;u.__swiper__=!0,u.support=to(),u.device=io({userAgent:i.userAgent}),u.browser=kl(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],i.modules&&Array.isArray(i.modules)&&u.modules.push(...i.modules);const a={};u.modules.forEach(d=>{d({params:i,swiper:u,extendParams:Ms(i,a),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})});const c=Vt({},un,a);return u.params=Vt({},c,vn,i),u.originalParams=Vt({},u.params),u.passedParams=Vt({},i),u.params&&u.params.on&&Object.keys(u.params.on).forEach(d=>{u.on(d,u.params.on[d])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return u.params.direction==="horizontal"},isVertical(){return u.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:u.params.allowSlideNext,allowSlidePrev:u.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:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}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:o}=this,s=Gt(i,`.${o.slideClass}, swiper-slide`),l=bi(s[0]);return bi(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:o}=e;e.slides=Gt(i,`.${o.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 o=this;e=Math.min(Math.max(e,0),1);const s=o.minTranslate(),r=(o.maxTranslate()-s)*e+s;o.translateTo(r,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const s=e.getSlideClasses(o);i.push({slideEl:o,classNames:s}),e.emit("_slideClass",o,s)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:s,slides:l,slidesGrid:r,slidesSizesGrid:u,size:a,activeIndex:c}=o;let d=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let A=l[c]?Math.ceil(l[c].swiperSlideSize):0,f;for(let p=c+1;p<l.length;p+=1)l[p]&&!f&&(A+=Math.ceil(l[p].swiperSlideSize),d+=1,A>a&&(f=!0));for(let p=c-1;p>=0;p-=1)l[p]&&!f&&(A+=l[p].swiperSlideSize,d+=1,A>a&&(f=!0))}else if(e==="current")for(let A=c+1;A<l.length;A+=1)(i?r[A]+u[A]-r[c]<a:r[A]-r[c]<a)&&(d+=1);else for(let A=c-1;A>=0;A-=1)r[c]-r[A]<a&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete&&Bi(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const r=e.rtlTranslate?e.translate*-1:e.translate,u=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(u),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)s(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const r=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(r.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||s()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,s=o.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${s}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}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 o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const s=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(s()):Gt(o,s())[0];return!r&&i.params.createElements&&(r=ui("div",i.params.wrapperClass),o.append(r),Gt(o,`.${i.params.slideClass}`).forEach(u=>{r.append(u)})),Object.assign(i,{el:o,wrapperEl:r,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:r,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||ii(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||ii(o,"direction")==="rtl"),wrongRTL:ii(r,"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 s=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&s.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(l=>{l.complete?Bi(i,l):l.addEventListener("load",r=>{Bi(i,r.target)})}),dn(i),i.initialized=!0,dn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:s,el:l,wrapperEl:r,slides:u}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),s.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),r&&r.removeAttribute("style"),u&&u.length&&u.forEach(a=>{a.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(a=>{o.off(a)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Al(o)),o.destroyed=!0),null}static extendDefaults(e){Vt(vn,e)}static get extendedDefaults(){return vn}static get defaults(){return un}static installModule(e){$t.prototype.__modules__||($t.prototype.__modules__=[]);const i=$t.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>$t.installModule(i)),$t):($t.installModule(e),$t)}};Object.keys(cn).forEach(t=>{Object.keys(cn[t]).forEach(e=>{pn.prototype[e]=cn[t][e]})}),pn.use([Il,Cl]);const uo=["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 si(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ci(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:si(e[o])&&si(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:ci(t[o],e[o]):t[o]=e[o]})}function co(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function vo(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function po(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function mo(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function js(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ns(t){let{swiper:e,slides:i,passedParams:o,changedParams:s,nextEl:l,prevEl:r,scrollbarEl:u,paginationEl:a}=t;const c=s.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:d,pagination:A,navigation:f,scrollbar:p,virtual:b,thumbs:m}=e;let S,v,g,h,w,C,P,V;s.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),s.includes("controller")&&o.controller&&o.controller.control&&d.controller&&!d.controller.control&&(v=!0),s.includes("pagination")&&o.pagination&&(o.pagination.el||a)&&(d.pagination||d.pagination===!1)&&A&&!A.el&&(g=!0),s.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||u)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(h=!0),s.includes("navigation")&&o.navigation&&(o.navigation.prevEl||r)&&(o.navigation.nextEl||l)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const M=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),d[x].prevEl=void 0,d[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),d[x].el=void 0,e[x].el=void 0))};s.includes("loop")&&e.isElement&&(d.loop&&!o.loop?C=!0:!d.loop&&o.loop?P=!0:V=!0),c.forEach(x=>{if(si(d[x])&&si(o[x]))Object.assign(d[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&M(x);else{const T=o[x];(T===!0||T===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?T===!1&&M(x):d[x]=o[x]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),s.includes("children")&&i&&b&&d.virtual.enabled?(b.slides=i,b.update(!0)):s.includes("virtual")&&b&&d.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),s.includes("children")&&i&&d.loop&&(V=!0),S&&m.init()&&m.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),e.el.appendChild(a)),a&&(d.pagination.el=a),A.init(),A.render(),A.update()),h&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-scrollbar"),u.part.add("scrollbar"),e.el.appendChild(u)),u&&(d.scrollbar.el=u),p.init(),p.updateSize(),p.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)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),e.el.appendChild(r))),l&&(d.navigation.nextEl=l),r&&(d.navigation.prevEl=r),f.init(),f.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),s.includes("direction")&&e.changeDirection(o.direction,!1),(C||V)&&e.loopDestroy(),(P||V)&&e.loopCreate(),e.update()}function Ds(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},s={};ci(i,un),i._emitClasses=!0,i.init=!1;const l={},r=uo.map(a=>a.replace(/_/,"")),u=Object.assign({},t);return Object.keys(u).forEach(a=>{typeof t[a]>"u"||(r.indexOf(a)>=0?si(t[a])?(i[a]={},s[a]={},ci(i[a],t[a]),ci(s[a],t[a])):(i[a]=t[a],s[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?e?o[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:l[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{i[a]===!0&&(i[a]={}),i[a]===!1&&delete i[a]}),{params:i,passedParams:s,rest:l,events:o}}function Vs(t,e){let{el:i,nextEl:o,prevEl:s,paginationEl:l,scrollbarEl:r,swiper:u}=t;co(e)&&o&&s&&(u.params.navigation.nextEl=o,u.originalParams.navigation.nextEl=o,u.params.navigation.prevEl=s,u.originalParams.navigation.prevEl=s),vo(e)&&l&&(u.params.pagination.el=l,u.originalParams.pagination.el=l),po(e)&&r&&(u.params.scrollbar.el=r,u.originalParams.scrollbar.el=r),u.init(i)}function Bs(t,e,i,o,s){const l=[];if(!e)return l;const r=a=>{l.indexOf(a)<0&&l.push(a)};if(i&&o){const a=o.map(s),c=i.map(s);a.join("")!==c.join("")&&r("children"),o.length!==i.length&&r("children")}return uo.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in e)if(si(t[a])&&si(e[a])){const c=Object.keys(t[a]),d=Object.keys(e[a]);c.length!==d.length?r(a):(c.forEach(A=>{t[a][A]!==e[a][A]&&r(a)}),d.forEach(A=>{t[a][A]!==e[a][A]&&r(a)}))}else t[a]!==e[a]&&r(a)}),l}const Fs=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 Fi(){return Fi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Fi.apply(this,arguments)}function fo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ho(t){const e=[];return n.Children.toArray(t).forEach(i=>{fo(i)?e.push(i):i.props&&i.props.children&&ho(i.props.children).forEach(o=>e.push(o))}),e}function Ws(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(fo(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const s=ho(o.props.children);s.length>0?s.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function zs(t,e,i){if(!i)return null;const o=d=>{let A=d;return d<0?A=e.length+d:A>=e.length&&(A=A-e.length),A},s=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:r}=i,u=t.params.loop?-e.length:0,a=t.params.loop?e.length*2:e.length,c=[];for(let d=u;d<a;d+=1)d>=l&&d<=r&&c.push(e[o(d)]);return c.map((d,A)=>n.cloneElement(d,{swiper:t,style:s,key:d.props.virtualIndex||d.key||`slide-${A}`}))}function gi(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const mn=n.createContext(null),yi=()=>n.useContext(mn),Hs=n.createContext(null),Kt=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:s="div",children:l,onSwiper:r,...u}=t===void 0?{}:t,a=!1;const[c,d]=n.useState("swiper"),[A,f]=n.useState(null),[p,b]=n.useState(!1),m=n.useRef(!1),S=n.useRef(null),v=n.useRef(null),g=n.useRef(null),h=n.useRef(null),w=n.useRef(null),C=n.useRef(null),P=n.useRef(null),V=n.useRef(null),{params:M,passedParams:x,rest:T,events:B}=Ds(u),{slides:k,slots:j}=Ws(l),E=()=>{b(!p)};Object.assign(M.on,{_containerClasses(O,I){d(I)}});const y=()=>{Object.assign(M.on,B),a=!0;const O={...M};if(delete O.wrapperClass,v.current=new pn(O),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=k;const I={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};ci(v.current.params.virtual,I),ci(v.current.originalParams.virtual,I)}};S.current||y(),v.current&&v.current.on("_beforeBreakpoint",E);const W=()=>{a||!B||!v.current||Object.keys(B).forEach(O=>{v.current.on(O,B[O])})},D=()=>{!B||!v.current||Object.keys(B).forEach(O=>{v.current.off(O,B[O])})};n.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),n.useEffect(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),gi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&y(),Vs({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:V.current,swiper:v.current},M),r&&!v.current.destroyed&&r(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),gi(()=>{W();const O=Bs(x,g.current,k,h.current,I=>I.key);return g.current=x,h.current=k,O.length&&v.current&&!v.current.destroyed&&Ns({swiper:v.current,slides:k,passedParams:x,changedParams:O,nextEl:w.current,prevEl:C.current,scrollbarEl:V.current,paginationEl:P.current}),()=>{D()}}),gi(()=>{Fs(v.current)},[A]);function F(){return M.virtual?zs(v.current,k,A):k.map((O,I)=>n.cloneElement(O,{swiper:v.current,swiperSlideIndex:I}))}return n.createElement(o,Fi({ref:S,className:mo(`${c}${i?` ${i}`:""}`)},T),n.createElement(Hs.Provider,{value:v.current},j["container-start"],n.createElement(s,{className:js(M.wrapperClass)},j["wrapper-start"],F(),j["wrapper-end"]),co(M)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:C,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),po(M)&&n.createElement("div",{ref:V,className:"swiper-scrollbar"}),vo(M)&&n.createElement("div",{ref:P,className:"swiper-pagination"}),j["container-end"]))});Kt.displayName="Swiper";const Bt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:s="",swiper:l,zoom:r,lazy:u,virtualIndex:a,swiperSlideIndex:c,...d}=t===void 0?{}:t;const A=n.useRef(null),[f,p]=n.useState("swiper-slide"),[b,m]=n.useState(!1);function S(w,C,P){C===A.current&&p(P)}gi(()=>{if(typeof c<"u"&&(A.current.swiperSlideIndex=c),e&&(e.current=A.current),!(!A.current||!l)){if(l.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),gi(()=>{l&&A.current&&!l.destroyed&&p(l.getSlideClasses(A.current))},[l]);const v={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},g=()=>typeof o=="function"?o(v):o,h=()=>{m(!0)};return n.createElement(i,Fi({ref:A,className:mo(`${f}${s?` ${s}`:""}`),"data-swiper-slide-index":a,onLoad:h},d),r&&n.createElement(mn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},g(),u&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&n.createElement(mn.Provider,{value:v},g(),u&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Bt.displayName="SwiperSlide";function fn(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=jt(),r=Pt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function u(d){if(!e.enabled)return;const{rtlTranslate:A}=e;let f=d;f.originalEvent&&(f=f.originalEvent);const p=f.keyCode||f.charCode,b=e.params.keyboard.pageUpDown,m=b&&p===33,S=b&&p===34,v=p===37,g=p===39,h=p===38,w=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&w||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&h||m))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&&(m||S||v||g||h||w)){let C=!1;if(Vi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Vi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,V=P.clientWidth,M=P.clientHeight,x=r.innerWidth,T=r.innerHeight,B=eo(P);A&&(B.left-=P.scrollLeft);const k=[[B.left,B.top],[B.left+V,B.top],[B.left,B.top+M],[B.left+V,B.top+M]];for(let j=0;j<k.length;j+=1){const E=k[j];if(E[0]>=0&&E[0]<=x&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((m||S||v||g)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((S||g)&&!A||(m||v)&&A)&&e.slideNext(),((m||v)&&!A||(S||g)&&A)&&e.slidePrev()):((m||S||h||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(S||w)&&e.slideNext(),(m||h)&&e.slidePrev()),s("keyPress",p)}}function a(){e.keyboard.enabled||(l.addEventListener("keydown",u),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.removeEventListener("keydown",u),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&a()}),o("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:a,disable:c})}function Wi(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=Pt();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 r,u=Wt(),a;const c=[];function d(h){let V=0,M=0,x=0,T=0;return"detail"in h&&(M=h.detail),"wheelDelta"in h&&(M=-h.wheelDelta/120),"wheelDeltaY"in h&&(M=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(V=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(V=M,M=0),x=V*10,T=M*10,"deltaY"in h&&(T=h.deltaY),"deltaX"in h&&(x=h.deltaX),h.shiftKey&&!x&&(x=T,T=0),(x||T)&&h.deltaMode&&(h.deltaMode===1?(x*=40,T*=40):(x*=800,T*=800)),x&&!V&&(V=x<1?-1:1),T&&!M&&(M=T<1?-1:1),{spinX:V,spinY:M,pixelX:x,pixelY:T}}function A(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function p(h){return e.params.mousewheel.thresholdDelta&&h.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Wt()-u<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&Wt()-u<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",h.raw)),u=new l.Date().getTime(),!1)}function b(h){const w=e.params.mousewheel;if(h.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 m(h){let w=h,C=!0;if(!e.enabled||h.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 M=V&&V.contains(w.target);if(!e.mouseEntered&&!M&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let x=0;const T=e.rtlTranslate?-1:1,B=d(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(B.pixelX)>Math.abs(B.pixelY))x=-B.pixelX*T;else return!0;else if(Math.abs(B.pixelY)>Math.abs(B.pixelX))x=-B.pixelY;else return!0;else x=Math.abs(B.pixelX)>Math.abs(B.pixelY)?-B.pixelX*T:-B.pixelY;if(x===0)return!0;P.invert&&(x=-x);let k=e.getTranslate()+x*P.sensitivity;if(k>=e.minTranslate()&&(k=e.minTranslate()),k<=e.maxTranslate()&&(k=e.maxTranslate()),C=e.params.loop?!0:!(k===e.minTranslate()||k===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const j={time:Wt(),delta:Math.abs(x),direction:Math.sign(x),raw:h};c.length>=2&&c.shift();const E=c.length?c[c.length-1]:void 0;if(c.push(j),E?(j.direction!==E.direction||j.delta>E.delta||j.time>E.time+150)&&p(j):p(j),b(j))return!0}else{const j={time:Wt(),delta:Math.abs(x),direction:Math.sign(x)},E=a&&j.time<a.time+500&&j.delta<=a.delta&&j.direction===a.direction;if(!E){a=void 0;let y=e.getTranslate()+x*P.sensitivity;const W=e.isBeginning,D=e.isEnd;if(y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),e.setTransition(0),e.setTranslate(y),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!D&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=void 0,c.length>=15&&c.shift();const F=c.length?c[c.length-1]:void 0,O=c[0];if(c.push(j),F&&(j.delta>F.delta||j.direction!==F.direction))c.splice(0);else if(c.length>=15&&j.time-O.time<500&&O.delta-j.delta>=1&&j.delta<=6){const I=x>0?.8:.2;a=j,c.splice(0),r=di(()=>{e.slideToClosest(e.params.speed,!0,void 0,I)},0)}r||(r=di(()=>{a=j,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||s("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(y===e.minTranslate()||y===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function S(h){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[h]("mouseenter",A),w[h]("mouseleave",f),w[h]("wheel",m)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),o("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function hn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(s=>{if(!i[s]&&i.auto===!0){let l=Gt(t.el,`.${o[s]}`)[0];l||(l=ui("div",o[s]),l.className=o[s],t.el.append(l)),i[s]=l,e[s]=l}}),i}function An(t){let{swiper:e,extendParams:i,on:o,emit:s}=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(b){let m;return b&&typeof b=="string"&&e.isElement&&(m=e.el.querySelector(b),m)?m:(b&&(typeof b=="string"&&(m=[...document.querySelectorAll(b)]),e.params.uniqueNavElements&&typeof b=="string"&&m&&m.length>1&&e.el.querySelectorAll(b).length===1?m=e.el.querySelector(b):m&&m.length===1&&(m=m[0])),b&&!m?b:m)}function r(b,m){const S=e.params.navigation;b=Ye(b),b.forEach(v=>{v&&(v.classList[m?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=m),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function u(){const{nextEl:b,prevEl:m}=e.navigation;if(e.params.loop){r(m,!1),r(b,!1);return}r(m,e.isBeginning&&!e.params.rewind),r(b,e.isEnd&&!e.params.rewind)}function a(b){b.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function c(b){b.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function d(){const b=e.params.navigation;if(e.params.navigation=hn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(b.nextEl||b.prevEl))return;let m=l(b.nextEl),S=l(b.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:S}),m=Ye(m),S=Ye(S);const v=(g,h)=>{g&&g.addEventListener("click",h==="next"?c:a),!e.enabled&&g&&g.classList.add(...b.lockClass.split(" "))};m.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function A(){let{nextEl:b,prevEl:m}=e.navigation;b=Ye(b),m=Ye(m);const S=(v,g)=>{v.removeEventListener("click",g==="next"?c:a),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};b.forEach(v=>S(v,"next")),m.forEach(v=>S(v,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?p():(d(),u())}),o("toEdge fromEdge lock unlock",()=>{u()}),o("destroy",()=>{A()}),o("enable disable",()=>{let{nextEl:b,prevEl:m}=e.navigation;if(b=Ye(b),m=Ye(m),e.enabled){u();return}[...b,...m].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),o("click",(b,m)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Ye(S),v=Ye(v);const g=m.target;let h=v.includes(g)||S.includes(g);if(e.isElement&&!h){const w=m.path||m.composedPath&&m.composedPath();w&&(h=w.find(C=>S.includes(C)||v.includes(C)))}if(e.params.navigation.hideOnClick&&!h){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let w;S.length?w=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(w=v[0].classList.contains(e.params.navigation.hiddenClass)),s(w===!0?"navigationShow":"navigationHide"),[...S,...v].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),u()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),A()};Object.assign(e.navigation,{enable:f,disable:p,update:u,init:d,destroy:A})}function Jt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function wi(t){let{swiper:e,extendParams:i,on:o,emit:s}=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:v=>v,formatFractionTotal:v=>v,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 r,u=0;function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(v,g){const{bulletActiveClass:h}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${h}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${h}-${g}-${g}`)))}function d(v){const g=v.target.closest(Jt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const h=bi(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;e.slideToLoop(h)}else e.slideTo(h)}function A(){const v=e.rtl,g=e.params.pagination;if(a())return;let h=e.pagination.el;h=Ye(h);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),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const M=e.pagination.bullets;let x,T,B;if(g.dynamicBullets&&(r=nn(M[0],e.isHorizontal()?"width":"height",!0),h.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(u+=w-(C||0),u>g.dynamicMainBullets-1?u=g.dynamicMainBullets-1:u<0&&(u=0)),x=Math.max(w-u,0),T=x+(Math.min(M.length,g.dynamicMainBullets)-1),B=(T+x)/2),M.forEach(k=>{const j=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();k.classList.remove(...j)}),h.length>1)M.forEach(k=>{const j=bi(k);j===w?k.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),g.dynamicBullets&&(j>=x&&j<=T&&k.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),j===x&&c(k,"prev"),j===T&&c(k,"next"))});else{const k=M[w];if(k&&k.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&M.forEach((j,E)=>{j.setAttribute("part",E===w?"bullet-active":"bullet")}),g.dynamicBullets){const j=M[x],E=M[T];for(let y=x;y<=T;y+=1)M[y]&&M[y].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(j,"prev"),c(E,"next")}}if(g.dynamicBullets){const k=Math.min(M.length,g.dynamicMainBullets+4),j=(r*k-r)/2-B*r,E=v?"right":"left";M.forEach(y=>{y.style[e.isHorizontal()?E:"top"]=`${j}px`})}}h.forEach((M,x)=>{if(g.type==="fraction"&&(M.querySelectorAll(Jt(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(w+1)}),M.querySelectorAll(Jt(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(V)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const B=(w+1)/V;let k=1,j=1;T==="horizontal"?k=B:j=B,M.querySelectorAll(Jt(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${j})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(M.innerHTML=g.renderCustom(e,w+1,V),x===0&&s("paginationRender",M)):(x===0&&s("paginationRender",M),s("paginationUpdate",M)),e.params.watchOverflow&&e.enabled&&M.classList[e.isLocked?"add":"remove"](g.lockClass)})}function f(){const v=e.params.pagination;if(a())return;const g=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 h=e.pagination.el;h=Ye(h);let w="";if(v.type==="bullets"){let C=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>g&&(C=g);for(let P=0;P<C;P+=1)v.renderBullet?w+=v.renderBullet.call(e,P,v.bulletClass):w+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?w=v.renderFraction.call(e,v.currentClass,v.totalClass):w=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?w=v.renderProgressbar.call(e,v.progressbarFillClass):w=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],h.forEach(C=>{v.type!=="custom"&&(C.innerHTML=w||""),v.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(Jt(v.bulletClass)))}),v.type!=="custom"&&s("paginationRender",h[0])}function p(){e.params.pagination=hn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.filter(h=>Vi(h,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Ye(g),g.forEach(h=>{v.type==="bullets"&&v.clickable&&h.classList.add(...(v.clickableClass||"").split(" ")),h.classList.add(v.modifierClass+v.type),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(h.classList.add(`${v.modifierClass}${v.type}-dynamic`),u=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&h.classList.add(v.progressbarOppositeClass),v.clickable&&h.addEventListener("click",d),e.enabled||h.classList.add(v.lockClass)}))}function b(){const v=e.params.pagination;if(a())return;let g=e.pagination.el;g&&(g=Ye(g),g.forEach(h=>{h.classList.remove(v.hiddenClass),h.classList.remove(v.modifierClass+v.type),h.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(h.classList.remove(...(v.clickableClass||"").split(" ")),h.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...v.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Ye(g),g.forEach(h=>{h.classList.remove(v.horizontalClass,v.verticalClass),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?S():(p(),f(),A())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&A()}),o("snapIndexChange",()=>{A()}),o("snapGridLengthChange",()=>{f(),A()}),o("destroy",()=>{b()}),o("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{A()}),o("click",(v,g)=>{const h=g.target,w=Ye(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);s(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),A()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:m,disable:S,render:f,update:A,init:p,destroy:b})}function Us(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=jt();let r=!1,u=null,a=null,c,d,A,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 p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k,rtlTranslate:j}=e,{dragEl:E,el:y}=k,W=e.params.scrollbar,D=e.params.loop?e.progressLoop:e.progress;let F=d,O=(A-d)*D;j?(O=-O,O>0?(F=d-O,O=0):-O+d>A&&(F=A+O)):O<0?(F=d+O,O=0):O+d>A&&(F=A-O),e.isHorizontal()?(E.style.transform=`translate3d(${O}px, 0, 0)`,E.style.width=`${F}px`):(E.style.transform=`translate3d(0px, ${O}px, 0)`,E.style.height=`${F}px`),W.hide&&(clearTimeout(u),y.style.opacity=1,u=setTimeout(()=>{y.style.opacity=0,y.style.transitionDuration="400ms"},1e3))}function b(k){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${k}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k}=e,{dragEl:j,el:E}=k;j.style.width="",j.style.height="",A=e.isHorizontal()?E.offsetWidth:E.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=A*f:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${d}px`:j.style.height=`${d}px`,f>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&k.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(k){return e.isHorizontal()?k.clientX:k.clientY}function v(k){const{scrollbar:j,rtlTranslate:E}=e,{el:y}=j;let W;W=(S(k)-eo(y)[e.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(A-d),W=Math.max(Math.min(W,1),0),E&&(W=1-W);const D=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(D),e.setTranslate(D),e.updateActiveIndex(),e.updateSlidesClasses()}function g(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:W,dragEl:D}=E;r=!0,c=k.target===D?S(k)-k.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,k.preventDefault(),k.stopPropagation(),y.style.transitionDuration="100ms",D.style.transitionDuration="100ms",v(k),clearTimeout(a),W.style.transitionDuration="0ms",j.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",k)}function h(k){const{scrollbar:j,wrapperEl:E}=e,{el:y,dragEl:W}=j;r&&(k.preventDefault&&k.cancelable?k.preventDefault():k.returnValue=!1,v(k),E.style.transitionDuration="0ms",y.style.transitionDuration="0ms",W.style.transitionDuration="0ms",s("scrollbarDragMove",k))}function w(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:W}=E;r&&(r=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),j.hide&&(clearTimeout(a),a=di(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",k),j.snapOnRelease&&e.slideToClosest())}function C(k){const{scrollbar:j,params:E}=e,y=j.el;if(!y)return;const W=y,D=E.passiveListeners?{passive:!1,capture:!1}:!1,F=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const O=k==="on"?"addEventListener":"removeEventListener";W[O]("pointerdown",g,D),l[O]("pointermove",h,D),l[O]("pointerup",w,F)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function M(){const{scrollbar:k,el:j}=e;e.params.scrollbar=hn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let y;if(typeof E.el=="string"&&e.isElement&&(y=e.el.querySelector(E.el)),!y&&typeof E.el=="string"){if(y=l.querySelectorAll(E.el),!y.length)return}else y||(y=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&y.length>1&&j.querySelectorAll(E.el).length===1&&(y=j.querySelector(E.el)),y.length>0&&(y=y[0]),y.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let W;y&&(W=y.querySelector(Jt(e.params.scrollbar.dragClass)),W||(W=ui("div",e.params.scrollbar.dragClass),y.append(W))),Object.assign(k,{el:y,dragEl:W}),E.draggable&&P(),y&&y.classList[e.enabled?"remove":"add"](...ti(e.params.scrollbar.lockClass))}function x(){const k=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...ti(e.isHorizontal()?k.horizontalClass:k.verticalClass)),V()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const k=e.params.scrollbar;let{el:j}=e.scrollbar;j=Ye(j),j.forEach(E=>{E.classList.remove(k.horizontalClass,k.verticalClass),E.classList.add(e.isHorizontal()?k.horizontalClass:k.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?B():(M(),m(),p())}),o("update resize observerUpdate lock unlock changeDirection",()=>{m()}),o("setTranslate",()=>{p()}),o("setTransition",(k,j)=>{b(j)}),o("enable disable",()=>{const{el:k}=e.scrollbar;k&&k.classList[e.enabled?"remove":"add"](...ti(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...ti(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ti(e.params.scrollbar.scrollbarDisabledClass)),M(),m(),p()},B=()=>{e.el.classList.add(...ti(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ti(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:B,updateSize:m,setTranslate:p,init:M,destroy:x})}function bn(t){let{swiper:e,extendParams:i,on:o}=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 s=null,l,r,u=new Date().getTime();function a(D){const F=s;F.length!==0&&(F.innerHTML="",F.innerHTML=D)}function c(D){D===void 0&&(D=16);const F=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(D).replace(/x/g,F)}function d(D){D=Ye(D),D.forEach(F=>{F.setAttribute("tabIndex","0")})}function A(D){D=Ye(D),D.forEach(F=>{F.setAttribute("tabIndex","-1")})}function f(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("role",F)})}function p(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("aria-roledescription",F)})}function b(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("aria-controls",F)})}function m(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("aria-label",F)})}function S(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("id",F)})}function v(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("aria-live",F)})}function g(D){D=Ye(D),D.forEach(F=>{F.setAttribute("aria-disabled",!0)})}function h(D){D=Ye(D),D.forEach(F=>{F.setAttribute("aria-disabled",!1)})}function w(D){if(D.keyCode!==13&&D.keyCode!==32)return;const F=e.params.a11y,O=D.target;if(!(e.pagination&&e.pagination.el&&(O===e.pagination.el||e.pagination.el.contains(D.target))&&!D.target.matches(Jt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const I=Ye(e.navigation.prevEl);Ye(e.navigation.nextEl).includes(O)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(F.lastSlideMessage):a(F.nextSlideMessage)),I.includes(O)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(F.firstSlideMessage):a(F.prevSlideMessage))}e.pagination&&O.matches(Jt(e.params.pagination.bulletClass))&&O.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:D,prevEl:F}=e.navigation;F&&(e.isBeginning?(g(F),A(F)):(h(F),d(F))),D&&(e.isEnd?(g(D),A(D)):(h(D),d(D)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return P()&&e.params.pagination.clickable}function M(){const D=e.params.a11y;P()&&e.pagination.bullets.forEach(F=>{e.params.pagination.clickable&&(d(F),e.params.pagination.renderBullet||(f(F,"button"),m(F,D.paginationBulletMessage.replace(/\{\{index\}\}/,bi(F)+1)))),F.matches(Jt(e.params.pagination.bulletActiveClass))?F.setAttribute("aria-current","true"):F.removeAttribute("aria-current")})}const x=(D,F,O)=>{d(D),D.tagName!=="BUTTON"&&(f(D,"button"),D.addEventListener("keydown",w)),m(D,O),b(D,F)},T=D=>{r&&r!==D.target&&!r.contains(D.target)&&(l=!0),e.a11y.clicked=!0},B=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},k=D=>{u=new Date().getTime()},j=D=>{if(e.a11y.clicked||new Date().getTime()-u<100)return;const F=D.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!F||!e.slides.includes(F))return;r=F;const O=e.slides.indexOf(F)===e.activeIndex,I=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(F);O||I||D.sourceCapabilities&&D.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(F.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(F),0),l=!1)}))},E=()=>{const D=e.params.a11y;D.itemRoleDescriptionMessage&&p(e.slides,D.itemRoleDescriptionMessage),D.slideRole&&f(e.slides,D.slideRole);const F=e.slides.length;D.slideLabelMessage&&e.slides.forEach((O,I)=>{const N=e.params.loop?parseInt(O.getAttribute("data-swiper-slide-index"),10):I,q=D.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,F);m(O,q)})},y=()=>{const D=e.params.a11y;e.el.append(s);const F=e.el;D.containerRoleDescriptionMessage&&p(F,D.containerRoleDescriptionMessage),D.containerMessage&&m(F,D.containerMessage);const O=e.wrapperEl,I=D.id||O.getAttribute("id")||`swiper-wrapper-${c(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(O,I),v(O,N),E();let{nextEl:q,prevEl:X}=e.navigation?e.navigation:{};q=Ye(q),X=Ye(X),q&&q.forEach(R=>x(R,I,D.nextSlideMessage)),X&&X.forEach(R=>x(R,I,D.prevSlideMessage)),V()&&Ye(e.pagination.el).forEach(me=>{me.addEventListener("keydown",w)}),jt().addEventListener("visibilitychange",k),e.el.addEventListener("focus",j,!0),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",B,!0)};function W(){s&&s.remove();let{nextEl:D,prevEl:F}=e.navigation?e.navigation:{};D=Ye(D),F=Ye(F),D&&D.forEach(I=>I.removeEventListener("keydown",w)),F&&F.forEach(I=>I.removeEventListener("keydown",w)),V()&&Ye(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),jt().removeEventListener("visibilitychange",k),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",B,!0))}o("beforeInit",()=>{s=ui("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&y()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&M()}),o("destroy",()=>{e.params.a11y.enabled&&W()})}function Si(t){let{swiper:e,extendParams:i,on:o,emit:s,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 r,u,a=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.autoplay.delay:3e3,d,A=new Date().getTime(),f,p,b,m,S,v,g;function h(F){!e||e.destroyed||!e.wrapperEl||F.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",h),!(g||F.detail&&F.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(c=d,f=!1);const F=e.autoplay.paused?d:A+c-new Date().getTime();e.autoplay.timeLeft=F,s("autoplayTimeLeft",F,F/a),u=requestAnimationFrame(()=>{w()})},C=()=>{let F;return e.virtual&&e.params.virtual.enabled?F=e.slides.filter(I=>I.classList.contains("swiper-slide-active"))[0]:F=e.slides[e.activeIndex],F?parseInt(F.getAttribute("data-swiper-autoplay"),10):void 0},P=F=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(u),w();let O=typeof F>"u"?e.params.autoplay.delay:F;a=e.params.autoplay.delay,c=e.params.autoplay.delay;const I=C();!Number.isNaN(I)&&I>0&&typeof F>"u"&&(O=I,a=I,c=I),d=O;const N=e.params.speed,q=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),s("autoplay")),e.params.cssMode&&(A=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return O>0?(clearTimeout(r),r=setTimeout(()=>{q()},O)):requestAnimationFrame(()=>{q()}),O},V=()=>{A=new Date().getTime(),e.autoplay.running=!0,P(),s("autoplayStart")},M=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(u),s("autoplayStop")},x=(F,O)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),F||(v=!0);const I=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",h):T()};if(e.autoplay.paused=!0,O){S&&(d=e.params.autoplay.delay),S=!1,I();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-A),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),I())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(A=new Date().getTime(),v?(v=!1,P(d)):P(),e.autoplay.paused=!1,s("autoplayResume"))},B=()=>{if(e.destroyed||!e.autoplay.running)return;const F=jt();F.visibilityState==="hidden"&&(v=!0,x(!0)),F.visibilityState==="visible"&&T()},k=F=>{F.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=F=>{F.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",j))},y=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",j))},W=()=>{jt().addEventListener("visibilitychange",B)},D=()=>{jt().removeEventListener("visibilitychange",B)};o("init",()=>{e.params.autoplay.enabled&&(E(),W(),V())}),o("destroy",()=>{y(),D(),e.autoplay.running&&M()}),o("_freeModeStaticRelease",()=>{(b||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?M():x(!0,!0)}),o("beforeTransitionStart",(F,O,I)=>{e.destroyed||!e.autoplay.running||(I||!e.params.autoplay.disableOnInteraction?x(!0,!0):M())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){M();return}p=!0,b=!1,v=!1,m=setTimeout(()=>{v=!0,b=!0,x(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(r),e.params.autoplay.disableOnInteraction){b=!1,p=!1;return}b&&e.params.cssMode&&T(),b=!1,p=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:V,stop:M,pause:x,resume:T})}function Xs(t){let{swiper:e,extendParams:i,emit:o,once:s}=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 a=e.getTranslate();e.setTranslate(a),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function r(){if(e.params.cssMode)return;const{touchEventsData:a,touches:c}=e;a.velocities.length===0&&a.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Wt()})}function u(a){let{currentPos:c}=a;if(e.params.cssMode)return;const{params:d,wrapperEl:A,rtlTranslate:f,snapGrid:p,touchEventsData:b}=e,S=Wt()-b.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(b.velocities.length>1){const M=b.velocities.pop(),x=b.velocities.pop(),T=M.position-x.position,B=M.time-x.time;e.velocity=T/B,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(B>150||Wt()-M.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,b.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let h=e.translate+g;f&&(h=-h);let w=!1,C;const P=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let V;if(h<e.maxTranslate())d.freeMode.momentumBounce?(h+e.maxTranslate()<-P&&(h=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.maxTranslate(),d.loop&&d.centeredSlides&&(V=!0);else if(h>e.minTranslate())d.freeMode.momentumBounce?(h-e.minTranslate()>P&&(h=e.minTranslate()+P),C=e.minTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.minTranslate(),d.loop&&d.centeredSlides&&(V=!0);else if(d.freeMode.sticky){let M;for(let x=0;x<p.length;x+=1)if(p[x]>-h){M=x;break}Math.abs(p[M]-h)<Math.abs(p[M-1]-h)||e.swipeDirection==="next"?h=p[M]:h=p[M-1],h=-h}if(V&&s("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?v=Math.abs((-h-e.translate)/e.velocity):v=Math.abs((h-e.translate)/e.velocity),d.freeMode.sticky){const M=Math.abs((f?-h:h)-e.translate),x=e.slidesSizesGrid[e.activeIndex];M<x?v=d.speed:M<2*x?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating=!0,tn(A,()=>{!e||e.destroyed||!b.allowMomentumBounce||(o("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(C),tn(A,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(h),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,tn(A,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(h),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&o("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:r,onTouchEnd:u}})}const qs=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const s=n.useRef(),{popupDetailData:l}=He();return n.useEffect(()=>{var r,u;o&&((r=s?.current)===null||r===void 0||r.swiper.slideTo((u=l?.multiCheckIndex)!==null&&u!==void 0?u:0))},[l,o]),n.createElement(Kt,{role:"list",tag:"ul",ref:s,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Xs,Us,Wi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var xi=n.memo(qs);const Ys=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:s,className:l,loading:r,alt:u="image"}=t,[a,c]=n.useState(i),d=n.useRef(null),[A,f]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&c(p)}})),n.useEffect(()=>{i&&c(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!A&&d.current&&(d.current.src="",d.current.src=i)};return wt.on(bt.PAGE_DID_SHOW,p),()=>{wt.off(bt.PAGE_DID_SHOW,p)}},[i,A]),n.createElement(n.Fragment,null,!A&&!a&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),a?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:a}),n.createElement("source",{type:"image/webp",srcSet:`${a}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${a}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:l,src:a,style:Object.assign({},s),loading:r,onLoad:p=>{f(!0),o?.(p.target)},alt:u})):n.createElement("img",{ref:d,className:l,src:a,style:Object.assign({},s),loading:r,onLoad:p=>{f(!0),o?.(p.target)},alt:u}))});var Ot=n.memo(Ys);const Gs=({products:t,data:e,defImg:i,style:o,onCLick:s,popupDetailData:l,check:r})=>{var u;const{productView:a}=Lt(),{popupCurTimeRef:c}=He(),d=(A,f)=>{if(r===f)return;const p=t?.[r];a(l,p,p?.bindCta,c.current,l?.index),s?.(f)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(xi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(u=l?t:[0,1,2,3])===null||u===void 0?void 0:u.map((A,f)=>{var p,b,m;return n.createElement(n.Fragment,null,A?.bindCta?n.createElement(Bt,{className:De.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{d(A,f)},key:f},n.createElement(Ot,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:r===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(m=(p=A?.cover)!==null&&p!==void 0?p:(b=A?.homePage)===null||b===void 0?void 0:b[0])!==null&&m!==void 0?m:i})):null)})))};var Ao=n.memo(Gs);function bo(){const[t,e]=n.useState(0),[i,o]=n.useState(0),s=()=>{if(typeof window>"u")return 0;let r=window.innerHeight;return window.visualViewport&&(r=window.visualViewport.height),(r<=0||r>window.screen.height)&&(r=window.innerHeight),r<=0&&(r=document.documentElement.clientHeight),r},l=n.useCallback(()=>{var r;const u=s(),a=(r=window.screen)===null||r===void 0?void 0:r.height,c=navigator.userAgent,d=/Instagram/i.test(c),A=/FBAV|FBAN|FBSN/i.test(c);if(!a||u<=0||!d&&!A){e(u);return}const f=u/a,p=.9,b=a>=900?a*.8:a*.79,m=f>=p,S=m?Math.round(b):u,v=a-Math.round(b);if(m){const g=document.querySelector("#onetrust-banner-sdk");g&&(g.style.bottom=`${v}px`);const h=document.createElement("style");h.id="onetrust-pc-sdk",h.setAttribute("type","text/css"),document.head.appendChild(h);const w=`
|
|
1
|
+
(function(pt,Re){typeof exports=="object"&&typeof module<"u"?Re(exports,require("lodash"),require("uuid"),require("pako"),require("react"),require("qs"),require("eventemitter3"),require("@emotion/css"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","lodash","uuid","pako","react","qs","eventemitter3","@emotion/css","react-dom"],Re):(pt=typeof globalThis<"u"?globalThis:pt||self,Re(pt.PUI={},pt.lodash,pt.uuid$1,pt.pako,pt.React,pt.qs,pt.EventEmitter,pt.css,pt.ReactDOM))})(this,function(pt,Re,Do,Vo,n,On,Bo,De,Ln){"use strict";function Fo(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Mn=Fo(Ln);function $e(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]]);return i}function ot(t,e,i,o){function s(l){return l instanceof i?l:new i(function(r){r(l)})}return new(i||(i=Promise))(function(l,r){function u(d){try{c(o.next(d))}catch(A){r(A)}}function a(d){try{c(o.throw(d))}catch(A){r(A)}}function c(d){d.done?l(d.value):s(d.value).then(u,a)}c((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Wo=/:\w+/g;var jn=(t,e)=>ot(void 0,void 0,void 0,function*(){const i={},o={};for(let s=0;s<e?.length;s++){const{id:l,method:r,url:u,urlParams:a,name:c,queryString:d,headers:A,body:f}=e[s];let p=u;a&&Object.entries(a).forEach(([b,m])=>{p=p.replace(Wo,S=>S===b?m:S)}),d&&(p+=d),o[l]=c;try{const b=yield fetch(p,{method:r,headers:Object.assign({"Content-Type":"application/json"},A),body:JSON.stringify(f)}).then(m=>m.json());i[l]=b}catch(b){console.error("DataSource request error: ",b),i[l]={}}}return{$store:i,idMapName:o}});const Nn="SXP_TOKEN_INFO",zo=(t,e)=>ot(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),s=t.getAppId(),l=t.getApiUrl(),r=window.localStorage.getItem(Nn);let u=JSON.parse(r||"{}");if(Date.now()>((i=u?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":s||""}}).then(d=>d.json());if(c.success){const d=c.data;u=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(Nn,JSON.stringify(u))}}return u});function Oi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let s;if(e=e||i.length,t)for(s=0;s<t;s++)o[s]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",s=0;s<36;s++)o[s]||(l=0|Math.random()*16,o[s]=i[s===19?l&3|8:l])}return o.join("")}const Ho=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let s=0;for(;s<t;)e+=i.charAt(Math.floor(Math.random()*o)),s+=1;return e},Uo=()=>{const t=Do.v4();return t?.replaceAll?t.replaceAll("-",""):Ho(32)},Pe=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],s=e?.["fontFamily-en"];if(!o&&!s)return t;let l=t;const r=/[\u4e00-\u9fa5]/g,u=/[^\u4e00-\u9fa5]/g,a=`font-family:${o??"inherit"}`,c=`font-family:${s??"inherit"}`,d=f=>{const p=f.search(r),b=f.search(u);return p!==-1&&b!==-1&&p<b&&(i+=`<span style="${a}">${f.substring(p,b)}</span>`,l=f.substring(b,f?.length)),p!==-1&&b!==-1&&p>b&&(i+=`<span style="${c}">${f.substring(b,p)}</span>`,l=f.substring(p,f?.length)),p===-1?(i+=`<span style="${c}">${f.substring(b,f?.length)}</span>`,l="",!1):b===-1?(i+=`<span style="${a}">${f.substring(p,f?.length)}</span>`,l="",!1):!0};let A=!0;for(;A;)A=d(l);return i};function _i(t){const i=document.cookie.split(";");let o=null;return i.forEach(s=>{const[l,r]=s.trim().split("=");l===t&&(o=r)}),o??""}function Zi(){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 li(t){if(!t)return;const e=[];for(let s=0;s<t.length;s++){const l=t[s],r=t.substring(s+1,t.length);l==="&"&&r?.indexOf("=")!==-1&&(r?.indexOf("=")<r?.indexOf("&")||r?.indexOf("&")===-1)&&e.push(s)}const i=e.length>0?[]:[t];let o=0;return e?.map(s=>{i?.push(t.substring(o,s)),o=s+1,s===e[e.length-1]&&s<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function Xo(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",s=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${s}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Dn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),s=Vo.inflate(o,{to:"string"});return JSON.parse(s)}let Ki=null;const qo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Yo{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Ki)return Ki;Ki=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?qo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Ct=null;const Go={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{Ct||(Ct=new Yo),o&&Ct.setApiUrl(o),Ct.setAppId(t),Ct.setTenantId(e),Ct.setEnv(i)},getDetail:t=>{if(!Ct)return;const e=Ct.getTenantId(),i=Ct.getAppId(),o=Ct.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>ot(void 0,void 0,void 0,function*(){var l,r;const u=yield s.json(),a=Dn((l=u?.data)===null||l===void 0?void 0:l.data);if(a){const{$store:c}=yield jn(o,(r=a?.dataSource)!==null&&r!==void 0?r:[]);u.data.data=a,Object.assign(u.data.data,{__STORE__:c})}return u}))},getSxpDetailByPageId:t=>ot(void 0,void 0,void 0,function*(){if(!Ct)return;const e=Ct.getTenantId(),i=Ct.getAppId(),o=Ct.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>ot(void 0,void 0,void 0,function*(){var l;const r=yield s.json();return r.success?(l=r?.data)===null||l===void 0?void 0:l.map(a=>Object.assign(Object.assign({},a),{data:Dn(a?.data)})):void 0}))}),getSxpRecommendVideoData:t=>ot(void 0,void 0,void 0,function*(){if(!Ct)return;const e=yield zo(Ct,t),i=Oi(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");Re.isEmpty(o)&&(o=Oi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const s=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:o,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return s?.data||null})};function ei(){return n.useContext(Kn)}function _o(){return n.useContext(Zn)}const Ji="feRealSessionIdKey",Vn=()=>{const t=Uo();return`${Date.now()}${t}`},Zo=()=>{let t=Ko();return t||(t=Vn(),window.localStorage.setItem(Ji,t)),t},Qi=()=>{const t=Vn();window.localStorage.setItem(Ji,t)},Ko=()=>window.localStorage.getItem(Ji),Bn="SXP_FAKE_USER_ID",Fn="FAKE_USER_STATE",Wn="AGREE_POLICY",zn="SLIDE_SKIP_STATE",Hn="CCONTSENT_STATE",Un="USER_CONSENT_RESULT",Jo=()=>{let t=window.localStorage.getItem(Bn);return Re.isEmpty(t)&&(t=Oi(36,62),window.localStorage.setItem(Bn,t)),t},Qo=()=>{const t=window.localStorage.getItem(Fn);return Re.isEmpty(t)&&window.localStorage.setItem(Fn,"true"),Re.isEmpty(t)},Ro=()=>{const t=window.localStorage.getItem(zn);return Re.isEmpty(t)},$o=()=>{window.localStorage.setItem(zn,"true")},el=()=>{const t=window.localStorage.getItem(Hn);return Re.isEmpty(t)&&window.localStorage.setItem(Hn,"true"),Re.isEmpty(t)},Xn=()=>window.localStorage.getItem(Un)==="true",qn=()=>{window.localStorage.setItem(Un,"true")};function Et(t,e){const{appDomain:i}=He();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const wt=new Bo;var bt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(bt||(bt={}));const tl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:s,privacy_policy_title:l})=>{const{setIsAgreePolicy:r,bffEventReport:u}=He(),a=n.useMemo(()=>{var A;const f=location.search.slice(1),p={};(A=li(f.replace(/\+/g,"%2B")))===null||A===void 0||A.map(b=>{const m=b.split("=")[0],S=b.split("=")[1];p[m]=S});for(const b in p)p[b]=p[b].replace(/%2B/g,"+");return p},[]),c=A=>{var f;return(f=a[A])!==null&&f!==void 0?f:null};n.useEffect(()=>{u?.({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 d=()=>{u?.({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}}),r?.(!0),window.localStorage.setItem(Wn,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:s?`https://${s}`:void 0},l??"More information"))))};var il=n.memo(tl);const Yn=n.createContext({rtcList:[],tagList:[]});var Ri;(function(t){t[t.BFF=5]="BFF"})(Ri||(Ri={}));const Li="FOR U",nl=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:s,defaultSize:l,isPreview:r=!1,sxpParameter:u,appDomain:a,hashTagSize:c,loadingImage:d,isOpenHashTag:A=!1,enabledMetaConversionApi:f=!1,consentHeight:p,consentWidth:b,isOpenConsent:m=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:h,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:V})=>{var M,x,T,B,k;const[j,E]=n.useState([]),[y,W]=n.useState([]),[D,F]=n.useState(!0),[O,I]=n.useState({rtc:"",requestId:""}),N=n.useRef(null),q=n.useRef(!1),[X,Y]=n.useState(()=>!!window.localStorage.getItem(Wn)),[R,me]=n.useState(),[ae,J]=n.useState(),[Te,Oe]=n.useState(A),[Fe,ce]=n.useState([]),[de,Ze]=n.useState(0),[Ue,Xe]=n.useState(!1),[_e,lt]=n.useState(null),Ke=n.useRef(),ke=n.useRef(),et=n.useRef(),[kt,Ve]=n.useState(Li),We=n.useRef(-1),ze=n.useRef(null),[K,ee]=n.useState(!1),[Z,le]=n.useState((x=(M=h?.data)===null||M===void 0?void 0:M.sxpPageConf)===null||x===void 0?void 0:x.globalConfig),[we,ye]=n.useState(),[$,z]=n.useState(!1),[Ne,tt]=n.useState(),[Je,st]=n.useState(),[Qe,Be]=n.useState([]),[it,ct]=n.useState(),[gt,Xt]=n.useState(),Nt=n.useMemo(()=>we??h,[we,h]),St=n.useRef(!1);n.useEffect(()=>{var H,U;le((U=(H=h?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||U===void 0?void 0:U.globalConfig)},[h]);const xt=n.useMemo(()=>{var H,U,te,he;return(((he=(te=(U=(H=Z?.consent)===null||H===void 0?void 0:H[0])===null||U===void 0?void 0:U.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!X&&!S||m)&&$},[X,Z,m,S,$]),Zt=n.useCallback(H=>{V?.(H),st(H)},[]),yt=n.useCallback(H=>{var U;const te=H?.recList;return(U=te?.map(ue=>{var ve,Ae,Se,xe,Me,L;if(!((ve=ue?.video)===null||ve===void 0)&&ve.bindProducts&&((Se=(Ae=ue?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0){const G=(L=(Me=(xe=ue?.video)===null||xe===void 0?void 0:xe.bindProducts)===null||Me===void 0?void 0:Me.filter(_=>!!_?.bindCta))!==null&&L!==void 0?L:[];return Object.assign(Object.assign({},ue),{video:Object.assign(Object.assign({},ue?.video),{bindProducts:G})})}return ue}))!==null&&U!==void 0?U:[]},[]);n.useEffect(()=>{let H;return Qe.length>0&&(H=setInterval(()=>{const te=new Date,he=15*1e3;Be(ue=>ue.filter(ve=>te-ve.time<=he))},1e3)),()=>{clearInterval(H)}},[Qe]),n.useEffect(()=>{const H=U=>{Ke.current=U};return wt.on(bt.CHANGE_THEME_TAG,H),()=>{wt.off(bt.CHANGE_THEME_TAG,H)}},[]),n.useEffect(()=>{Oe(A)},[A]);const qe=n.useMemo(()=>e?.find(H=>H.type===Ri.BFF),[e]),Ee=n.useMemo(()=>{var H;return((H=qe?.headers)===null||H===void 0?void 0:H["x-app-id"])+Jo()},[qe]),fe=()=>{var H,U;function te(ve){const Ae=ve.match(/groups=([^&]+)/);if(!Ae||!Ae[1])return!1;const xe=Ae[1].split(",");for(const Me of xe){const[L,G]=Me.split(":");if(L==="4")return G==="0"}return!1}function he(ve){var Ae;const xe=`; ${document.cookie}`.split(`; ${ve}=`);return xe.length===2?(Ae=xe.pop())===null||Ae===void 0?void 0:Ae.split(";").shift():""}const ue=decodeURIComponent((H=he("OptanonConsent"))!==null&&H!==void 0?H:"");return!!(window?.OnetrustActiveGroups&&((U=window?.OnetrustActiveGroups)===null||U===void 0?void 0:U.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(ue))},be=n.useCallback((H,U,te=!0)=>{var he;if(!qe)return;const ue=qe.url;if(U?.query){const Ae=On.stringify(U.query);H=`${H}?${Ae}`}const ve=location.search.slice(1);return(he=li(ve))===null||he===void 0||he.forEach(Ae=>{Ae.split("=")[0],Ae.split("=")[1]}),window.fetch(`${ue}/api/${H}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Ee},qe.headers),method:U.method,body:U.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},U.body),qe.headers),{"x-user-id":Ee}))))}):JSON.stringify(U.body)},U.type==="beacon"&&{keepalive:!0})).then(Ae=>Ae.json()).catch(Ae=>Promise.reject(Ae))},[qe,Ee]),ft=n.useCallback(H=>{var U;if(fe())return Promise.resolve();const te={eventName:H?.eventName,eventSource:H?.eventSource};return be?.(`v1/data/collect/${(U=qe?.headers)===null||U===void 0?void 0:U["x-app-id"]}/${H?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[be,qe]);n.useEffect(()=>{const H=window.Image;window.Image=function(){const U=new H,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(U,"src",{set(he){if(!(fe()&&(he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/")||he.includes("https://www.facebook.com/tr")))&&(te.set.call(this,he),he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/"))){const ue=new URL(he),ve=Object.fromEntries(ue.searchParams.entries());ft({eventName:ve?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),U}},[ft]),n.useEffect(()=>{const H=navigator;if(!H.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const U=H.sendBeacon.bind(H);return H.sendBeacon=function(te,he){const ue=te instanceof URL?te.href:te.toString();if(fe()&&(ue.includes("https://tr.snapchat.com/p")||ue.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ve=U(te,he);function Ae(Se){return ot(this,void 0,void 0,function*(){return typeof Se=="string"?JSON.parse(Se):Se instanceof Blob?JSON.parse(yield Se.text()):Se instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(Se)):null})}return ve&&Promise.resolve().then(()=>ot(this,void 0,void 0,function*(){var Se,xe;try{const Me=yield Ae(he);ue.includes("https://tr.snapchat.com/p")?(xe=(Se=Me?.req)===null||Se===void 0?void 0:Se.forEach)===null||xe===void 0||xe.call(Se,L=>{var G,_;!((G=L?.t)===null||G===void 0)&&G.ev&&ft({eventName:(_=L?.t)===null||_===void 0?void 0:_.ev,eventSource:"Snapchat Pixel"})}):ue.includes("https://analytics.tiktok.com/api/v2/pixel")&&Me?.event&&ft({eventName:Me.event,eventSource:"TikTok Pixel"})}catch(Me){console.error("\u76D1\u63A7\u5931\u8D25:",Me)}})),ve},()=>{H.sendBeacon=U}},[ft]),n.useEffect(()=>{const H=window.fetch;window.fetch=function(U,te){var he=arguments;return ot(this,void 0,void 0,function*(){var ue;let ve;try{ve=typeof U=="string"?U:U instanceof URL?U.href:U.url}catch(Ae){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Ae),H.apply(this,he)}try{if(fe()&&(ve.includes("https://www.google-analytics.com/g/collect")||ve.includes("https://arms-retcode.aliyuncs.com/r.png")))return Promise.resolve(new Response(""));const Ae=H.apply(this,he);if(ve.includes("https://www.google-analytics.com/g/collect")){const Se=new URL(ve),xe=Object.fromEntries(Se.searchParams.entries()),Me=(ue=he[1])===null||ue===void 0?void 0:ue.body;if(xe?.en)ft({eventName:xe?.en,eventSource:"Google Analytics"});else if(Me){const G=function(_){if(typeof _!="string")return[];const Q=[],re=/en=([^&\r\n]*)/g;let ie;for(;(ie=re.exec(_))!==null;)Q.push(decodeURIComponent(ie[1]));return Q}(Me);G?.forEach(_=>{ft({eventName:_,eventSource:"Google Analytics"})})}}return Ae}catch(Ae){throw console.error(Ae),Ae}})}},[ft]),n.useEffect(()=>{const H=XMLHttpRequest.prototype.open,U=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,H.apply(this,arguments)},XMLHttpRequest.prototype.send=function(te){var he;if(!(fe()&&this._url&&typeof this._url=="string"&&(this._url.includes("https://rumcollector.uptime.com")||this._url.includes("https://arms-retcode.aliyuncs.com/r.png")||this._url.includes("https://i.giesswein.com/nb-collector")))){if(this._url&&typeof this._url=="string"&&this._url.includes("https://i.giesswein.com/nb-collector")&&te&&typeof te=="string")try{const ue=JSON.parse(te);if(ue&&Array.isArray(ue.data)){const ve=ue.data[((he=ue.data)===null||he===void 0?void 0:he.length)-1];ve&&ve.e&&ft({eventName:ve.e,eventSource:"Northbeam Pixel"})}}catch(ue){console.error("Failed to parse Northbeam event from XHR",ue)}U.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=H,XMLHttpRequest.prototype.send=U}},[ft]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const qt=n.useCallback((H,U)=>{if(!qe)return;const te=qe.url;if(U?.query){const he=On.stringify(U.query);H=`${H}?${he}`}return window.fetch(`${te}/admin/${H}`,{headers:Object.assign({"Content-Type":"application/json"},qe.headers),method:U.method,body:JSON.stringify(U.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[qe]),zt=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){var U,te,he,ue,ve,Ae,Se,xe,Me,L,G,_,Q,re;if(H=Object.assign(Object.assign({maxSize:(U=H?.maxSize)!==null&&U!==void 0?U:s,defaultSize:(te=H?.defaultSize)!==null&&te!==void 0?te:l,hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag,pageNum:H?.pageNum,contentFilter:H?.contentFilter,productFilter:H?.productFilter},gt&&{chatlabsId:gt}),C&&{type:"story"}),Je)H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(Je)});else if(i){const ne=(ve=(ue=(he=li(i))===null||he===void 0?void 0:he.filter(se=>{var pe,je;const ge=se.split("=")[0];return(je=(pe=v?.channels)!==null&&pe!==void 0?pe:[])===null||je===void 0?void 0:je.includes(ge)}))===null||ue===void 0?void 0:ue.join("&"))!==null&&ve!==void 0?ve:"";ne&&(H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(ne)}))}if(S){let ne=1;if(H=Object.assign(Object.assign(Object.assign({},H),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!H?.channel||q.current)return;q.current=!0;let se=[],pe=null;const je=ge=>ot(void 0,void 0,void 0,function*(){var Ie,ut,rt,at,dt,nt;if(ge.pageNum=ne,pe=yield qt?.("recommend/direct_page",{method:"POST",body:ge}),!pe?.success)return;F(!1),se=se.concat((at=(rt=(ut=(Ie=pe?.data)===null||Ie===void 0?void 0:Ie.recList)===null||ut===void 0?void 0:ut.filter)===null||rt===void 0?void 0:rt.call(ut,Ge=>Ge?.product||Ge?.video))!==null&&at!==void 0?at:[]),j?.length===0&&(E(yt(Object.assign(Object.assign({},pe?.data),{recList:se}))),ce(yt(Object.assign(Object.assign({},pe?.data),{recList:se})))),((nt=(dt=pe?.data)===null||dt===void 0?void 0:dt.recList)===null||nt===void 0?void 0:nt.some(Ge=>Ge?.product||Ge?.video))&&(ne=ne+1,yield je(ge))});return yield je(H),!H?.hashTag&&pe&&I({rtc:(Ae=pe?.data)===null||Ae===void 0?void 0:Ae.rtc,requestId:(Se=pe?.data)===null||Se===void 0?void 0:Se.requestId}),Object.assign(Object.assign({},pe?.data),{recList:se})}Z?.enablePreview&&(H=Object.assign(Object.assign({},H),{directPage:!0,level:1,pageNum:(xe=H?.pageNum)!==null&&xe!==void 0?xe:1}));const ie=yield be?.("v1/recommend/list",{method:"POST",body:H});if(!ie?.success)return;H?.hashTag||I({rtc:ie.data.rtc,requestId:ie.data.requestId}),Z?.enablePreview&&!S&&(!((L=(Me=ie?.data)===null||Me===void 0?void 0:Me.recList)===null||L===void 0)&&L.some(se=>se?.product||se?.video)||ee(!0));let oe=[];return oe=oe.concat((re=(Q=(_=(G=ie?.data)===null||G===void 0?void 0:G.recList)===null||_===void 0?void 0:_.filter)===null||Q===void 0?void 0:Q.call(_,ne=>ne?.product||ne?.video))!==null&&re!==void 0?re:[]),Object.assign(Object.assign({},ie.data),{recList:oe})}),[be,i,s,l,g,Je,gt,qt]),En=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){var U,te,he,ue;if(j.length<=0)return;const ve=j?.[j?.length-1],Ae=yield zt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ae?.hashTag},((U=ve?.product)===null||U===void 0?void 0:U.itemId)&&{productFilter:[(te=ve?.product)===null||te===void 0?void 0:te.itemId]}),((he=ve?.video)===null||he===void 0?void 0:he.itemId)&&{contentFilter:[(ue=ve?.video)===null||ue===void 0?void 0:ue.itemId]}),{themeTag:Ke.current}),Z?.enablePreview&&!S&&{pageNum:H}));return E(j.concat(yt(Ae))),ce(Fe.concat(yt(Ae))),Ae}),[zt,j,ae,Fe]),fi=n.useCallback((H,U)=>{var te,he,ue,ve,Ae;let Se=!1;const xe=(he=(te=h?.data)===null||te===void 0?void 0:te.sxpPageConf)===null||he===void 0?void 0:he.globalConfig;if(!((ue=xe?.session)===null||ue===void 0)&&ue.enable){const Me=localStorage.getItem("sessionStartTime"),L=Me?JSON.parse(Me):new Date().getTime();Math.floor((new Date().getTime()-L)/1e3/60)>=((Ae=(ve=xe?.session)===null||ve===void 0?void 0:ve.expires)!==null&&Ae!==void 0?Ae:30)&&(U?.("sessionTimeOut"),Qi(),ke.current=new Date,Se=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else H&&Qi();return Se},[h]),At=n.useCallback(({userInfo:H,eventInfo:U,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var ue,ve;if(!o||Z?.enablePreview||he&&fe())return;H||(H={});const Ae=Zo(),Se={},xe=location.search.slice(1);(ue=li(xe))===null||ue===void 0||ue.forEach(Q=>{const re=Q.split("=")[0],ie=Q.split("=")[1];Se[re]=ie});const Me=Se?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Ae,rtc:O.rtc,requestId:O.requestId},{playbookType:it}),Ne&&te&&{layoutVariantId:Ne}),U),U?.position&&Je&&{position:Number(U?.position)+1+""}),Me&&{clSource:Me}),G=Object.entries(H).map(([Q,re])=>({name:Q,value:re})),_=Object.entries(L).map(([Q,re])=>re&&{name:Q,value:re}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),be?.(`v2/cld/${(ve=qe?.headers)===null||ve===void 0?void 0:ve["x-app-id"]}/${U?.eventSubject}${Me?`/${decodeURIComponent(Me)}`:""}`,{method:"POST",body:{userInfo:G,eventInfo:_},type:"beacon"})},[be,O,o,Z?.enablePreview,Ne,Z,it,qe]),ri=n.useCallback((H,U)=>{var te,he,ue;const ve=Re.cloneDeep(H),Ae=new URLSearchParams(window.location.search),Se=Ae?.get("fbclid"),xe={event_source_url:(te=window?.location)===null||te===void 0?void 0:te.href,external_id:Ee,client_user_agent:(ue=(he=window?.navigator)===null||he===void 0?void 0:he.userAgent)!==null&&ue!==void 0?ue:"",fbc:Se?`fb.2.${new Date().getTime()}.${Se}`:"",fbp:_i("_fbp")?`${_i("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},Me=/\{\{(.*?)\}\}/g,L=G=>{if(G){if(G instanceof Array)G?.map(_=>L(_));else for(const _ in G)if(Object.prototype.hasOwnProperty.call(G,_)){const Q=G?.[_];if(typeof Q=="object")L(Q);else if(typeof Q=="string"){const re=Q?.match(Me);re&&re.forEach(ie=>{var oe;const ne=ie.substring(2,ie.length-2);try{let se=new Function("fix_par","product",`return ${ne}`)(xe,U);se?(ne?.indexOf("currency")!==-1&&se?.indexOf("-")!==-1&&typeof se=="string"&&(se=(oe=se?.split("-"))===null||oe===void 0?void 0:oe[0]),G[_]=se):delete G[_]}catch(se){delete G[_],console.error("An error occurred:",se?.message)}})}}}};return L(ve),ve},[Ee]),Xi=n.useCallback(({eventName:H,product:U})=>{var te,he,ue,ve,Ae,Se,xe,Me,L,G;if(!o||Z?.enablePreview||fe())return;let _=!1;const Q=(te=Z?.pixel)===null||te===void 0?void 0:te[H];if(Q?.event_name&&typeof window?.fbq=="function"){let oe=function(ne,se,pe){const je=new RegExp("([?&])"+se+"=.*?(&|$)","i"),ge=ne.indexOf("?")!==-1?"&":"?";return ne.match(je)?ne.replace(je,"$1"+se+"="+pe+"$2"):ne+ge+se+"="+pe};if(H==="PageView"&&Q?.event_name==="PageView")if(!St.current)St.current=!0;else{const ne=window.location.href,se=oe(ne,"timestamp",Date.now());history.pushState({path:se},"",se),_=!0}else window?.fbq("track",Q?.event_name,ri(Q,U))}if(!_){H==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(he=Z?.tiktokPixel)===null||he===void 0?void 0:he[H];oe?.event_name&&typeof window?.ttq=="object"&&typeof((ue=window?.ttq)===null||ue===void 0?void 0:ue.track)=="function"&&((ve=window?.ttq)===null||ve===void 0||ve.track(oe?.event_name,ri(oe,U)))}const re=(Ae=Z?.snapchatPixel)===null||Ae===void 0?void 0:Ae[H];re?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",re?.event_name,ri(re,U)),H==="PageView"&&typeof window?.Northbeam=="object"&&typeof((Se=window?.Northbeam)===null||Se===void 0?void 0:Se.trackPageView)=="function"&&((xe=window?.Northbeam)===null||xe===void 0||xe.trackPageView());const ie=(Me=Z?.converApi)===null||Me===void 0?void 0:Me[H];if(f&&ie){const oe=ri(ie,U),ne={},se=location.search.slice(1);(L=li(se))===null||L===void 0||L.forEach(je=>{const ge=je.split("=")[0],Ie=je.split("=")[1];ne[ge]=Ie});const pe=ne?.cl_source;be?.(`v2/fb/${(G=qe?.headers)===null||G===void 0?void 0:G["x-app-id"]}/${H}${pe?`/${decodeURIComponent(pe)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[be,o,f,Z,qe,ri]),ni=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){const U=yield be?.("v1/recommend/like",{method:"POST",body:H});return U?.success}),[be]),hi=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){const U=yield be?.("v1/recommend/unlike",{method:"POST",body:H});return U?.success}),[be]),oi=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){const U=yield be?.("v1/customform",{method:"POST",body:H});return U?.success}),[be]),Ht=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){var U,te,he,ue,ve,Ae,Se,xe;const Me=!!(!((he=(te=(U=H?.data)===null||U===void 0?void 0:U.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Me))try{const L=(Ae=(ve=(ue=li(i))===null||ue===void 0?void 0:ue.filter(_=>{var Q,re;const ie=_.split("=")[0];return(re=(Q=v?.channels)!==null&&Q!==void 0?Q:[])===null||re===void 0?void 0:re.includes(ie)}))===null||ve===void 0?void 0:ve.join("&"))!==null&&Ae!==void 0?Ae:"",G=yield be?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(L)}});W((xe=(Se=G?.data)===null||Se===void 0?void 0:Se.tags)!==null&&xe!==void 0?xe:[])}catch(L){console.log("e",L)}}),[be,i]),Yt=n.useCallback((H,U,te,he)=>{var ue,ve,Ae,Se,xe,Me,L,G,_,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt,nt,ht,Ge,Tt,Le,Ce,Dt,Mt,Ai,vt,ai,In,Cn;const Rt=te?.bindCta,Jd=((ue=U?.video)===null||ue===void 0?void 0:ue.bindProduct)||((ve=U?.video)===null||ve===void 0?void 0:ve.bindProducts)&&((Se=(Ae=U?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0;let Gi="",Pn=null;Ue?Gi="hashTagPage":!((xe=U?.video)===null||xe===void 0)&&xe.url?(Gi="videoPage",Pn="video"):!((L=(Me=U?.video)===null||Me===void 0?void 0:Me.imgUrls)===null||L===void 0)&&L.length&&(Gi="imagePage",Pn="image");const No=(ne=(ie=(G=te?.tags)!==null&&G!==void 0?G:(re=(Q=(_=U?.video)===null||_===void 0?void 0:_.bindProducts)===null||Q===void 0?void 0:Q[0])===null||re===void 0?void 0:re.tags)!==null&&ie!==void 0?ie:(oe=U?.video)===null||oe===void 0?void 0:oe.tags)!==null&&ne!==void 0?ne:(se=U?.product)===null||se===void 0?void 0:se.tags;At?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(pe=Rt?.itemId)!==null&&pe!==void 0?pe:"",ctaName:(je=Rt?.title)!==null&&je!==void 0?je:"",contentTags:No?JSON.stringify(No):"",position:he+"",contentId:(Ie=(ge=U?.video)===null||ge===void 0?void 0:ge.itemId)!==null&&Ie!==void 0?Ie:"",productId:Jd?te?.itemId:"",traceInfo:(In=(Ai=(Tt=(dt=(ut=Rt?.traceInfo)!==null&&ut!==void 0?ut:(at=(rt=U?.video)===null||rt===void 0?void 0:rt.bindCta)===null||at===void 0?void 0:at.traceInfo)!==null&&dt!==void 0?dt:(Ge=(ht=(nt=U?.video)===null||nt===void 0?void 0:nt.bindProduct)===null||ht===void 0?void 0:ht.bindCta)===null||Ge===void 0?void 0:Ge.traceInfo)!==null&&Tt!==void 0?Tt:(Mt=(Dt=(Ce=(Le=U?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Ce===void 0?void 0:Ce[0])===null||Dt===void 0?void 0:Dt.bindCta)===null||Mt===void 0?void 0:Mt.traceInfo)!==null&&Ai!==void 0?Ai:(ai=(vt=U?.product)===null||vt===void 0?void 0:vt.bindCta)===null||ai===void 0?void 0:ai.traceInfo)!==null&&In!==void 0?In:"",fromKName:Gi,fromKPage:(Cn=location?.href)!==null&&Cn!==void 0?Cn:"",contentFormat:Pn})})},[At,Ue]),It=n.useCallback(()=>{var H,U,te;const he=location.search.slice(1),ue={};(H=li(he.replace(/\+/g,"%2B")))===null||H===void 0||H.map(Se=>{const xe=Se.split("=")[0],Me=Se.split("=")[1];ue[xe]=Me});for(const Se in ue)ue[Se]=ue[Se].replace(/%2B/g,"+");const ve=Se=>{var xe;return(xe=ue[Se])!==null&&xe!==void 0?xe:""},Ae=new Date;ke.current=Ae,At?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:ve("utm_source"),utmMedium:ve("utm_medium"),utmCampaign:ve("utm_campaign"),utmId:ve("utm_id"),utmContent:ve("utm_content"),enterTime:Math.floor(Ae/1e3)+"",requestId:null,enterUrl:(te=(U=window?.location)===null||U===void 0?void 0:U.href)!==null&&te!==void 0?te:""},reportLayId:!1})},[At]),kn=n.useCallback(()=>ot(void 0,void 0,void 0,function*(){var H,U;const te=yield be?.("v1/account",{method:"GET"});return Xt((H=te?.data)===null||H===void 0?void 0:H.chatLabsId),((U=te?.data)===null||U===void 0?void 0:U.consentResult)==="true"}),[be]),qi=n.useCallback(H=>ot(void 0,void 0,void 0,function*(){const U=yield be?.("v1/account/consent",{method:"POST",body:{consentResult:H}});return U?.success}),[be]);n.useEffect(()=>{xt||It()},[xt]),n.useEffect(()=>{if(xt||r)return;F(!0);let H,U;zt().then(te=>{var he,ue,ve,Ae,Se,xe,Me,L,G,_,Q;if(te){const re=yt(te);let ie,oe;if(te?.layoutVariantId){H=te?.layoutVariantId,tt(te?.layoutVariantId);const ne=(ue=(he=te?.layoutVariantId)===null||he===void 0?void 0:he.split("-"))===null||ue===void 0?void 0:ue[1];ne&&(ie=w?.find(se=>se?.id===ne),ie?(ye(ie),document.title=(ve=ie?.name)!==null&&ve!==void 0?ve:"home",oe=(Se=(Ae=ie?.data)===null||Ae===void 0?void 0:Ae.sxpPageConf)===null||Se===void 0?void 0:Se.globalConfig,le(oe),P?.(ie?.data),!((G=(L=(Me=(xe=oe?.consent)===null||xe===void 0?void 0:xe[0])===null||Me===void 0?void 0:Me.item)===null||L===void 0?void 0:L.props)===null||G===void 0)&&G.privacy_necessity&&z(!0)):z(!0))}else z(!0);if(Je||(oe?.playbook==="organic menu"||!oe&&Z?.playbook==="organic menu"?(ct("organicMenu"),re.unshift("organic menu"),U="organicMenu"):(ct("paidMedia"),U="paidMedia")),E(re),ce(re),Ht(ie??Nt),Je){const ne=re?.[0],se=((_=ne?.video)===null||_===void 0?void 0:_.traceInfo)||((Q=ne?.product)===null||Q===void 0?void 0:Q.traceInfo)||"";At?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:se,branchfeed:Je},H&&{layoutVariantId:H})}),At?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:se,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-et?.current)/1e3)+""},H&&{layoutVariantId:H})})}}}).finally(()=>{At({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},H&&{layoutVariantId:H}),U&&{playbookType:U})}),F(!1)})},[xt,Je]),n.useEffect(()=>{r&&(F(!0),Ht(h),zt().then(H=>{if(H){const U=yt(H);Z?.playbook==="organic menu"&&!Je&&U.unshift("organic menu"),E(U),ce(U)}}).finally(()=>{F(!1)}))},[zt,Ht,Je]);const Yi=Et("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",a);return n.createElement(Yn.Provider,{value:{rtcList:j,setRtcList:E,mutateLike:ni,mutateUnlike:hi,submitForm:oi,popupDetailData:R,loadVideos:En,setPopupDetailData:me,getRecommendVideos:zt,bffEventReport:At,isPreview:r,loading:D,sxpParameter:u,waterFallData:ae,setWaterFallData:J,ctaEvent:Yt,swiperRef:N,openHashtag:Te,setOpenHashtag:Oe,cacheRtcList:Fe,setCacheRtcList:ce,cacheActiveIndex:de,setCacheActiveIndex:Ze,isFromHashtag:Ue,setIsFromHashtag:Xe,appDomain:a,hashTagSize:c,loadingImage:d??Yi,isOpenHashTag:A,tagList:y,setLoading:F,videoRef:_e,setVideoRef:lt,bffFbReport:Xi,isAgreePolicy:X,setIsAgreePolicy:Y,curTime:ke,h5EnterLink:It,themeTag:Ke,isShowConsent:xt,selectTag:kt,setSelectTag:Ve,globalConfig:Z,popupCurTimeRef:ze,checkCommodityIndexRef:We,isEditor:S,isNoMoreData:K,updateChannel:Zt,channel:Je,eventTimeList:Qe,setEventTimeList:Be,multiPostTimeRef:et,refreshFeSession:fi,getAccount:kn,accountSonsent:qi,isDiyH5:C,pixelPvStatusRef:St}},xt?n.createElement(il,Object.assign({},(k=(B=(T=Z?.consent)===null||T===void 0?void 0:T[0])===null||B===void 0?void 0:B.item)===null||k===void 0?void 0:k.props)):t({rtcList:j,mutateLike:ni,mutateUnlike:hi,submitForm:oi,tagList:y,pageData:Nt}))};var Gn=n.memo(nl);function He(){return n.useContext(Yn)}var _n;(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"})(_n||(_n={}));const Zn=n.createContext({$store:{},options:[],configs:[]}),ol=({children:t,isSsr:e,enable:i})=>{const[o,s]=n.useState([]),{schema:l}=ei(),[r,u]=n.useState(l.__STORE__||{}),[a,c]=n.useState([]);n.useEffect(()=>{var f;e||Re.isEqual(a,l?.dataSource)||c((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const d=n.useCallback(()=>ot(void 0,void 0,void 0,function*(){const{$store:f,idMapName:p}=yield jn("",a);u(f),A(f,p)}),[a]),A=(f,p)=>{const b=[];Object.entries(f).forEach(([m,S])=>{Object.keys(S).forEach(v=>{const g={label:`${p[m]} - ${v}`,value:`{{ ${m}.${v} }}`};b.push(g)})}),s(b)};return n.useEffect(()=>{e||d()},[d,e,l]),i?n.createElement(Zn.Provider,{value:{$store:l.__STORE__||r,options:o,configs:a}},t):t};var ll=n.memo(ol);const Mi={id:Oi(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},$i={id:"",duration:0,name:"none"},Kn=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Mi],redoStack:[],popup:$i,setPopup:()=>{}}),Jn=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:s=!0,utmVal:l},r)=>{const[u,a]=n.useState(null),[c,d]=n.useState(o||{pointData:[Mi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[A,f]=n.useState([Mi]),[p,b]=n.useState([[Mi]]),[m,S]=n.useState([]),[v,g]=n.useState($i);typeof window<"u"&&(window.sxpPopup=(V,M)=>{g(Object.assign(Object.assign(Object.assign({},$i),{id:V}),M))}),typeof window<"u"&&(window.getJointUtmLink=V=>($o(),V?.indexOf("?")!==-1?V+(l?"&"+l:""):V+(l?"?"+l:""))),n.useEffect(()=>{b([c.pointData]),S([])},[c.type]);const h=n.useCallback(V=>{const M=Re.cloneDeep(c);M&&(M.dataSource=V,d?.(M))},[c]),[w,C]=n.useState();n.useImperativeHandle(r,()=>({loadSchema(V){V&&(b([V.pointData]),d(V))},exportSchema(){return Re.cloneDeep(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=n.useMemo(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return n.createElement(Kn.Provider,{value:{resolver:e,currentNode:u,schema:c,setCurrentNode:a,setSchema:d,saveDataSource:h,prePiontData:A,setPrePiontData:f,pageInfoData:w,setPageInfoData:V=>C(Object.assign(Object.assign({},w),V)),undoStack:p,redoStack:m,setRedoStack:S,setUndoStack:b,getCurPageConf:P,popup:v,setPopup:g}},n.createElement(ll,{isSsr:i,enable:s},t))});var sl=Object.freeze({__proto__:null,EditorCore:Jn}),rl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],al=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Lt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:o,setEventTimeList:s}=He(),l=n.useCallback((a,c,d,A,f,p)=>{var b,m,S,v,g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D,F,O,I,N,q,X,Y,R,me,ae,J,Te,Oe,Fe,ce,de,Ze,Ue;if(o?.findIndex(ke=>ke.target===a?.target)!==-1)return;a&&s?.(ke=>[...ke,{target:a?.target,time:new Date}]);let _e="";e&&(!((m=(b=c?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0)&&m.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?_e="pdpPage":i?_e="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?_e="videoPage":!((g=c?.video)===null||g===void 0)&&g.imgUrls&&(!((w=(h=c?.video)===null||h===void 0?void 0:h.imgUrls)===null||w===void 0)&&w.length)?_e="imagePage":c?.product&&(_e="productPage");const lt=(B=(x=(C=d?.tags)!==null&&C!==void 0?C:(M=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||M===void 0?void 0:M.tags)!==null&&x!==void 0?x:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&B!==void 0?B:(k=c?.product)===null||k===void 0?void 0:k.tags;let Ke=null;!((j=c?.video)===null||j===void 0)&&j.url?Ke="video":!((E=c?.video)===null||E===void 0)&&E.imgUrls&&(!((W=(y=c?.video)===null||y===void 0?void 0:y.imgUrls)===null||W===void 0)&&W.length)&&(Ke="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(D=d?.itemId)!==null&&D!==void 0?D:"",productName:(F=d?.title)!==null&&F!==void 0?F:"",price:d?.price?d?.price+"":"0",productCollection:(O=d?.collection)!==null&&O!==void 0?O:"",fromKName:_e,fromKPage:location?.href,contentTags:lt?JSON.stringify(lt):"",position:f+"",contentId:(N=(I=c?.video)===null||I===void 0?void 0:I.itemId)!==null&&N!==void 0?N:"",ctatId:(q=A?.itemId)!==null&&q!==void 0?q:"",traceInfo:(Ue=(ce=(Oe=(me=(X=p??d?.traceInfo)!==null&&X!==void 0?X:(R=(Y=c?.video)===null||Y===void 0?void 0:Y.bindProduct)===null||R===void 0?void 0:R.traceInfo)!==null&&me!==void 0?me:(Te=(J=(ae=c?.video)===null||ae===void 0?void 0:ae.bindProducts)===null||J===void 0?void 0:J[0])===null||Te===void 0?void 0:Te.traceInfo)!==null&&Oe!==void 0?Oe:(Fe=c?.product)===null||Fe===void 0?void 0:Fe.traceInfo)!==null&&ce!==void 0?ce:(Ze=(de=c?.video)===null||de===void 0?void 0:de.bindCta)===null||Ze===void 0?void 0:Ze.traceInfo)!==null&&Ue!==void 0?Ue:""},Ke&&{contentFormat:Ke})})},[t,e,i,o]),r=n.useCallback((a,c,d,A,f)=>{var p,b,m,S,v,g,h,w,C,P,V,M,x,T;let B="";e&&(!((b=(p=a?.video)===null||p===void 0?void 0:p.bindProducts)===null||b===void 0)&&b.length||!((m=a?.video)===null||m===void 0)&&m.bindProduct)?B="pdpPage":a?.product&&(B="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:B,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:f+"",contentId:(S=a?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(M=(w=(v=c?.traceInfo)!==null&&v!==void 0?v:(h=(g=a?.video)===null||g===void 0?void 0:g.bindProduct)===null||h===void 0?void 0:h.traceInfo)!==null&&w!==void 0?w:(V=(P=(C=a?.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&&M!==void 0?M:(x=a?.product)===null||x===void 0?void 0:x.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-A)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),u=n.useCallback((a,c,d,A)=>{c&&c===Li&&t?.({eventInfo:{lastFeed:a,themeTags:d?`['${d}']`:"",hashTags:A?`['${A}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:r,backMainFeed:u}}const dl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,s)=>n.createElement("div",{key:s,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var ul=n.memo(dl);const cl=t=>{var e,i,{columns:o,style:s,title:l,textStyle:r,submitBgColor:u,submitColor:a,submitText:c,layoutType:d="inline",isExternalLink:A,isPopup:f,onClick:p,onClose:b,submitButtonStyle:m}=t,S=$e(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=He(),{jumpToWeb:h}=Lt(),[w,C]=n.useState(!1),[P,V]=n.useState({}),[M,x]=n.useState(0),T=n.useMemo(()=>[{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"}],[]),B=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),k=n.useMemo(()=>Re.cloneDeep(o)||T,[o,T]),j=n.useCallback(y=>{const{name:W,value:D}=y.target;V(Object.assign(Object.assign({},P),{[W]:D}))},[P]),E=Re.debounce(y=>ot(void 0,void 0,void 0,function*(){var W,D,F,O,I;const N=P;if(!N)return;const q=(D=(W=Object.keys(N))===null||W===void 0?void 0:W.map(Y=>{var R;return{name:Y,value:(R=N[Y])!==null&&R!==void 0?R:""}}))===null||D===void 0?void 0:D.filter(Y=>Y?.value);if(!q||!q?.length)return;C(!0);const X=yield v?.({attributes:q});if(C(!1),X){if(A){const Y=g,R=(F=Y?.video)===null||F===void 0?void 0:F.bindProduct,me=(I=(O=Y?.video)===null||O===void 0?void 0:O.bindProduct)===null||I===void 0?void 0:I.bindCta,ae=g?.index;h(y,Y,R,me,ae)}f||b?.(),p?.()}}),1e3);return n.useEffect(()=>{const y=()=>{var W,D;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((D=document?.body)===null||D===void 0?void 0:D.clientHeight))<B?x(50):x(0)};return window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${De.css(Object.assign({},r))}`,dangerouslySetInnerHTML:{__html:Pe(l,r)}}),n.createElement("div",Object.assign({className:De.css(Object.assign(Object.assign({},s),{marginTop:M}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(ul,{columns:k,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":c,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:a,background:u},m),dangerouslySetInnerHTML:{__html:Pe(w?"loading...":c,m)}})))};var vl=n.memo(cl);function mt(t,e){return t.extend=e,t}const pl=mt(vl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:al,bindableProps:[],interactionRender:rl},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 ml=[{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:[{label:"\u82F1\u6587\u5927\u5C0F\u5199",type:"Select",name:["props","buttonStyle","textTransform"],options:[{label:"\u9ED8\u8BA4",value:"unset"},{label:"\u5C0F\u5199",value:"lowercase"},{label:"\u5927\u5199",value:"uppercase"}]},{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"]}]}],fl=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function Qn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function en(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Qn(e[i])&&Qn(t[i])&&Object.keys(e[i]).length>0&&en(t[i],e[i])})}const Rn={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 jt(){const t=typeof document<"u"?document:{};return en(t,Rn),t}const hl={document:Rn,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 Pt(){const t=typeof window<"u"?window:{};return en(t,hl),t}function ti(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Al(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function di(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Wt(){return Date.now()}function bl(t){const e=Pt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function gl(t,e){e===void 0&&(e="x");const i=Pt();let o,s,l;const r=bl(t);return i.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(u=>u.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(s==="none"?"":s)):(l=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?s=l.m41:o.length===16?s=parseFloat(o[12]):s=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?s=l.m42:o.length===16?s=parseFloat(o[13]):s=parseFloat(o[5])),s||0}function ji(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function yl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Vt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!yl(o)){const s=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,r=s.length;l<r;l+=1){const u=s[l],a=Object.getOwnPropertyDescriptor(o,u);a!==void 0&&a.enumerable&&(ji(t[u])&&ji(o[u])?o[u].__swiper__?t[u]=o[u]:Vt(t[u],o[u]):!ji(t[u])&&ji(o[u])?(t[u]={},o[u].__swiper__?t[u]=o[u]:Vt(t[u],o[u])):t[u]=o[u])}}}return t}function Ni(t,e,i){t.style.setProperty(e,i)}function $n(t){let{swiper:e,targetPosition:i,side:o}=t;const s=Pt(),l=-e.translate;let r=null,u;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"next":"prev",d=(f,p)=>c==="next"&&f>=p||c==="prev"&&f<=p,A=()=>{u=new Date().getTime(),r===null&&(r=u);const f=Math.max(Math.min((u-r)/a,1),0),p=.5-Math.cos(f*Math.PI)/2;let b=l+p*(i-l);if(d(b,i)&&(b=i),e.wrapperEl.scrollTo({[o]:b}),d(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:b})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(A)};A()}function Gt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Di(t){try{console.warn(t);return}catch{}}function ui(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ti(e)),i}function eo(t){const e=Pt(),i=jt(),o=t.getBoundingClientRect(),s=i.body,l=t.clientTop||s.clientTop||0,r=t.clientLeft||s.clientLeft||0,u=t===e?e.scrollY:t.scrollTop,a=t===e?e.scrollX:t.scrollLeft;return{top:o.top+u-l,left:o.left+a-r}}function wl(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Sl(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function ii(t,e){return Pt().getComputedStyle(t,null).getPropertyValue(e)}function bi(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Vi(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function tn(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function nn(t,e,i){const o=Pt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ye(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let on;function xl(){const t=Pt(),e=jt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function to(){return on||(on=xl()),on}let ln;function Tl(t){let{userAgent:e}=t===void 0?{}:t;const i=to(),o=Pt(),s=o.navigator.platform,l=e||o.navigator.userAgent,r={ios:!1,android:!1},u=o.screen.width,a=o.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let d=l.match(/(iPad).*OS\s([\d_]+)/);const A=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let b=s==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&b&&i.touch&&m.indexOf(`${u}x${a}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),b=!1),c&&!p&&(r.os="android",r.android=!0),(d||f||A)&&(r.os="ios",r.ios=!0),r}function io(t){return t===void 0&&(t={}),ln||(ln=Tl(t)),ln}let sn;function El(){const t=Pt(),e=io();let i=!1;function o(){const u=t.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(o()){const u=String(t.navigator.userAgent);if(u.includes("Version/")){const[a,c]=u.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=a<16||a===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),r=l||s&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:r,isWebView:s}}function kl(){return sn||(sn=El()),sn}function Il(t){let{swiper:e,on:i,emit:o}=t;const s=Pt();let l=null,r=null;const u=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(A=>{r=s.requestAnimationFrame(()=>{const{width:f,height:p}=e;let b=f,m=p;A.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:h}=S;h&&h!==e.el||(b=g?g.width:(v[0]||v).inlineSize,m=g?g.height:(v[0]||v).blockSize)}),(b!==f||m!==p)&&u()})}),l.observe(e.el))},c=()=>{r&&s.cancelAnimationFrame(r),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},d=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){a();return}s.addEventListener("resize",u),s.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),s.removeEventListener("resize",u),s.removeEventListener("orientationchange",d)})}function Cl(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=[],r=Pt(),u=function(d,A){A===void 0&&(A={});const f=r.MutationObserver||r.WebkitMutationObserver,p=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){s("observerUpdate",b[0]);return}const m=function(){s("observerUpdate",b[0])};r.requestAnimationFrame?r.requestAnimationFrame(m):r.setTimeout(m,0)});p.observe(d,{attributes:typeof A.attributes>"u"?!0:A.attributes,childList:typeof A.childList>"u"?!0:A.childList,characterData:typeof A.characterData>"u"?!0:A.characterData}),l.push(p)},a=()=>{if(e.params.observer){if(e.params.observeParents){const d=Vi(e.hostEl);for(let A=0;A<d.length;A+=1)u(d[A])}u(e.hostEl,{childList:e.params.observeSlideChildren}),u(e.wrapperEl,{attributes:!1})}},c=()=>{l.forEach(d=>{d.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",a),o("destroy",c)}var Pl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const s=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][s](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function s(){o.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var l=arguments.length,r=new Array(l),u=0;u<l;u++)r[u]=arguments[u];e.apply(o,r)}return s.__emitterProxy=e,o.on(t,s,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](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(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((s,l)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&i.eventsListeners[o].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var s=arguments.length,l=new Array(s),r=0;r<s;r++)l[r]=arguments[r];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),o=t):(e=l[0].events,i=l[0].data,o=l[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(o,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(c=>{c.apply(o,i)})}),t}};function Ol(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ii(o,"padding-left")||0,10)-parseInt(ii(o,"padding-right")||0,10),i=i-parseInt(ii(o,"padding-top")||0,10)-parseInt(ii(o,"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 Ll(){const t=this;function e(T,B){return parseFloat(T.getPropertyValue(t.getDirectionLabel(B))||0)}const i=t.params,{wrapperEl:o,slidesEl:s,size:l,rtlTranslate:r,wrongRTL:u}=t,a=t.virtual&&i.virtual.enabled,c=a?t.virtual.slides.length:t.slides.length,d=Gt(s,`.${t.params.slideClass}, swiper-slide`),A=a?t.virtual.slides.length:d.length;let f=[];const p=[],b=[];let m=i.slidesOffsetBefore;typeof m=="function"&&(m=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let h=i.spaceBetween,w=-m,C=0,P=0;if(typeof l>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*l:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,d.forEach(T=>{r?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Ni(o,"--swiper-centered-offset-before",""),Ni(o,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let M;const x=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<A;T+=1){M=0;let B;if(d[T]&&(B=d[T]),V&&t.grid.updateSlide(T,B,d),!(d[T]&&ii(B,"display")==="none")){if(i.slidesPerView==="auto"){x&&(d[T].style[t.getDirectionLabel("width")]="");const k=getComputedStyle(B),j=B.style.transform,E=B.style.webkitTransform;if(j&&(B.style.transform="none"),E&&(B.style.webkitTransform="none"),i.roundLengths)M=t.isHorizontal()?nn(B,"width",!0):nn(B,"height",!0);else{const y=e(k,"width"),W=e(k,"padding-left"),D=e(k,"padding-right"),F=e(k,"margin-left"),O=e(k,"margin-right"),I=k.getPropertyValue("box-sizing");if(I&&I==="border-box")M=y+F+O;else{const{clientWidth:N,offsetWidth:q}=B;M=y+W+D+F+O+(q-N)}}j&&(B.style.transform=j),E&&(B.style.webkitTransform=E),i.roundLengths&&(M=Math.floor(M))}else M=(l-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${M}px`);d[T]&&(d[T].swiperSlideSize=M),b.push(M),i.centeredSlides?(w=w+M/2+C/2+h,C===0&&T!==0&&(w=w-l/2-h),T===0&&(w=w-l/2-h),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),p.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),p.push(w),w=w+M+h),t.virtualSize+=M+h,C=M,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+S,r&&u&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),V&&t.grid.updateWrapperSize(M,f),!i.centeredSlides){const T=[];for(let B=0;B<f.length;B+=1){let k=f[B];i.roundLengths&&(k=Math.floor(k)),f[B]<=t.virtualSize-l&&T.push(k)}f=T,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}if(a&&i.loop){const T=b[0]+h;if(i.slidesPerGroup>1){const B=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),k=T*i.slidesPerGroup;for(let j=0;j<B;j+=1)f.push(f[f.length-1]+k)}for(let B=0;B<t.virtual.slidesBefore+t.virtual.slidesAfter;B+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),p.push(p[p.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),h!==0){const T=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");d.filter((B,k)=>!i.cssMode||i.loop?!0:k!==d.length-1).forEach(B=>{B.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const B=T-l;f=f.map(k=>k<=0?-m:k>B?B+S:k)}if(i.centerInsufficientSlides){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const B=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+B<l){const k=(l-T-B)/2;f.forEach((j,E)=>{f[E]=j-k}),p.forEach((j,E)=>{p[E]=j+k})}}if(Object.assign(t,{slides:d,snapGrid:f,slidesGrid:p,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ni(o,"--swiper-centered-offset-before",`${-f[0]}px`),Ni(o,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],B=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(k=>k+T),t.slidesGrid=t.slidesGrid.map(k=>k+B)}if(A!==c&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,B=t.el.classList.contains(T);A<=i.maxBackfaceHiddenSlides?B||t.el.classList.add(T):B&&t.el.classList.remove(T)}}function Ml(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let s=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=u=>o?e.slides[e.getSlideIndexByData(u)]:e.slides[u];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(u=>{i.push(u)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const u=e.activeIndex+l;if(u>e.slides.length&&!o)break;i.push(r(u))}else i.push(r(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const u=i[l].offsetHeight;s=u>s?u:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function jl(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const no=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Nl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:s,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;s&&(r=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let u=i.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*e.size:typeof u=="string"&&(u=parseFloat(u));for(let a=0;a<o.length;a+=1){const c=o[a];let d=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=o[0].swiperSlideOffset);const A=(r+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+u),f=(r-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+u),p=-(r-d),b=p+e.slidesSizesGrid[a],m=p>=0&&p<=e.size-e.slidesSizesGrid[a],S=p>=0&&p<e.size-1||b>1&&b<=e.size||p<=0&&b>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(a)),no(c,S,i.slideVisibleClass),no(c,m,i.slideFullyVisibleClass),c.progress=s?-A:A,c.originalProgress=s?-f:f}}function Dl(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:l,isEnd:r,progressLoop:u}=e;const a=l,c=r;if(o===0)s=0,l=!0,r=!0;else{s=(t-e.minTranslate())/o;const d=Math.abs(t-e.minTranslate())<1,A=Math.abs(t-e.maxTranslate())<1;l=d||s<=0,r=A||s>=1,d&&(s=0),A&&(s=1)}if(i.loop){const d=e.getSlideIndexByData(0),A=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[d],p=e.slidesGrid[A],b=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=f?u=(m-f)/b:u=(m+b-p)/b,u>1&&(u-=1)}Object.assign(e,{progress:s,progressLoop:u,isBeginning:l,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!a&&e.emit("reachBeginning toEdge"),r&&!c&&e.emit("reachEnd toEdge"),(a&&!l||c&&!r)&&e.emit("fromEdge"),e.emit("progress",s)}const rn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Vl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:s}=t,l=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,u=A=>Gt(o,`.${i.slideClass}${A}, swiper-slide${A}`)[0];let a,c,d;if(l)if(i.loop){let A=s-t.virtual.slidesBefore;A<0&&(A=t.virtual.slides.length+A),A>=t.virtual.slides.length&&(A-=t.virtual.slides.length),a=u(`[data-swiper-slide-index="${A}"]`)}else a=u(`[data-swiper-slide-index="${s}"]`);else r?(a=e.filter(A=>A.column===s)[0],d=e.filter(A=>A.column===s+1)[0],c=e.filter(A=>A.column===s-1)[0]):a=e[s];a&&(r||(d=Sl(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),c=wl(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(A=>{rn(A,A===a,i.slideActiveClass),rn(A,A===d,i.slideNextClass),rn(A,A===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Bi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let s=o.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(o.shadowRoot?s=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(s=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},an=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},dn=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 o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=s,u=[r-e];u.push(...Array.from({length:e}).map((a,c)=>r+o+c)),t.slides.forEach((a,c)=>{u.includes(a.column)&&an(t,c)});return}const l=s+o-1;if(t.params.rewind||t.params.loop)for(let r=s-e;r<=l+e;r+=1){const u=(r%i+i)%i;(u<s||u>l)&&an(t,u)}else for(let r=Math.max(s-e,0);r<=Math.min(l+e,i-1);r+=1)r!==s&&(r>l||r<s)&&an(t,r)};function Bl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let s;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?o>=e[l]&&o<e[l+1]-(e[l+1]-e[l])/2?s=l:o>=e[l]&&o<e[l+1]&&(s=l+1):o>=e[l]&&(s=l);return i.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function Fl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:s,activeIndex:l,realIndex:r,snapIndex:u}=e;let a=t,c;const d=p=>{let b=p-e.virtual.slidesBefore;return b<0&&(b=e.virtual.slides.length+b),b>=e.virtual.slides.length&&(b-=e.virtual.slides.length),b};if(typeof a>"u"&&(a=Bl(e)),o.indexOf(i)>=0)c=o.indexOf(i);else{const p=Math.min(s.slidesPerGroupSkip,a);c=p+Math.floor((a-p)/s.slidesPerGroup)}if(c>=o.length&&(c=o.length-1),a===l&&!e.params.loop){c!==u&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(a===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(a);return}const A=e.grid&&s.grid&&s.grid.rows>1;let f;if(e.virtual&&s.virtual.enabled&&s.loop)f=d(a);else if(A){const p=e.slides.filter(m=>m.column===a)[0];let b=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(e.slides.indexOf(p),0)),f=Math.floor(b/s.grid.rows)}else if(e.slides[a]){const p=e.slides[a].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=a}else f=a;Object.assign(e,{previousSnapIndex:u,snapIndex:c,previousRealIndex:r,realIndex:f,previousIndex:l,activeIndex:a}),e.initialized&&dn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Wl(t,e){const i=this,o=i.params;let s=t.closest(`.${o.slideClass}, swiper-slide`);!s&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(u=>{!s&&u.matches&&u.matches(`.${o.slideClass}, swiper-slide`)&&(s=u)});let l=!1,r;if(s){for(let u=0;u<i.slides.length;u+=1)if(i.slides[u]===s){l=!0,r=u;break}}if(s&&l)i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var zl={updateSize:Ol,updateSlides:Ll,updateAutoHeight:Ml,updateSlidesOffset:jl,updateSlidesProgress:Nl,updateProgress:Dl,updateSlidesClasses:Vl,updateActiveIndex:Fl,updateClickedSlide:Wl};function Hl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:s,wrapperEl:l}=e;if(i.virtualTranslate)return o?-s:s;if(i.cssMode)return s;let r=gl(l,t);return r+=e.cssOverflowAdjustment(),o&&(r=-r),r||0}function Ul(t,e){const i=this,{rtlTranslate:o,params:s,wrapperEl:l,progress:r}=i;let u=0,a=0;const c=0;i.isHorizontal()?u=o?-t:t:a=t,s.roundLengths&&(u=Math.floor(u),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?u:a,s.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-u:-a:s.virtualTranslate||(i.isHorizontal()?u-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${u}px, ${a}px, ${c}px)`);let d;const A=i.maxTranslate()-i.minTranslate();A===0?d=0:d=(t-i.minTranslate())/A,d!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Xl(){return-this.snapGrid[0]}function ql(){return-this.snapGrid[this.snapGrid.length-1]}function Yl(t,e,i,o,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const l=this,{params:r,wrapperEl:u}=l;if(l.animating&&r.preventInteractionOnTransition)return!1;const a=l.minTranslate(),c=l.maxTranslate();let d;if(o&&t>a?d=a:o&&t<c?d=c:d=t,l.updateProgress(d),r.cssMode){const A=l.isHorizontal();if(e===0)u[A?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:-d,side:A?"left":"top"}),!0;u.scrollTo({[A?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,s),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,s),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 Gl={getTranslate:Hl,setTranslate:Ul,minTranslate:Xl,maxTranslate:ql,translateTo:Yl};function _l(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 oo(t){let{swiper:e,runCallbacks:i,direction:o,step:s}=t;const{activeIndex:l,previousIndex:r}=e;let u=o;if(u||(l>r?u="next":l<r?u="prev":u="reset"),e.emit(`transition${s}`),i&&l!==r){if(u==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),u==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function Zl(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),oo({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Kl(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),oo({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Jl={setTransition:_l,transitionStart:Zl,transitionEnd:Kl};function Ql(t,e,i,o,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let r=t;r<0&&(r=0);const{params:u,snapGrid:a,slidesGrid:c,previousIndex:d,activeIndex:A,rtlTranslate:f,wrapperEl:p,enabled:b}=l;if(!b&&!o&&!s||l.destroyed||l.animating&&u.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const m=Math.min(l.params.slidesPerGroupSkip,r);let S=m+Math.floor((r-m)/l.params.slidesPerGroup);S>=a.length&&(S=a.length-1);const v=-a[S];if(u.normalizeSlideIndex)for(let h=0;h<c.length;h+=1){const w=-Math.floor(v*100),C=Math.floor(c[h]*100),P=Math.floor(c[h+1]*100);typeof c[h+1]<"u"?w>=C&&w<P-(P-C)/2?r=h:w>=C&&w<P&&(r=h+1):w>=C&&(r=h)}if(l.initialized&&r!==A&&(!l.allowSlideNext&&(f?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(A||0)!==r))return!1;r!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(r>A?g="next":r<A?g="prev":g="reset",f&&-v===l.translate||!f&&v===l.translate)return l.updateActiveIndex(r),u.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),u.effect!=="slide"&&l.setTranslate(v),g!=="reset"&&(l.transitionStart(i,g),l.transitionEnd(i,g)),!1;if(u.cssMode){const h=l.isHorizontal(),w=f?v:-v;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(()=>{p[h?"scrollLeft":"scrollTop"]=w})):p[h?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:w,side:h?"left":"top"}),!0;p.scrollTo({[h?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(r),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,o),l.transitionStart(i,g),e===0?l.transitionEnd(i,g):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,g))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function Rl(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const l=s.grid&&s.params.grid&&s.params.grid.rows>1;let r=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)r=r+s.virtual.slidesBefore;else{let u;if(l){const f=r*s.params.grid.rows;u=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else u=s.getSlideIndexByData(r);const a=l?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let d=s.params.slidesPerView;d==="auto"?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let A=a-u<d;if(c&&(A=A||u<Math.ceil(d/2)),o&&c&&s.params.slidesPerView!=="auto"&&!l&&(A=!1),A){const f=c?u<s.activeIndex?"prev":"next":u-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?u+1:u-a+1,slideRealIndex:f==="next"?s.realIndex:void 0})}if(l){const f=r*s.params.grid.rows;r=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else r=s.getSlideIndexByData(r)}return requestAnimationFrame(()=>{s.slideTo(r,e,i,o)}),s}function $l(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:s,params:l,animating:r}=o;if(!s||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let u=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(u=Math.max(o.slidesPerViewDynamic("current",!0),1));const a=o.activeIndex<l.slidesPerGroupSkip?1:u,c=o.virtual&&l.virtual.enabled;if(l.loop){if(r&&!c&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+a,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+a,t,e,i)}function es(t,e,i){e===void 0&&(e=!0);const o=this,{params:s,snapGrid:l,slidesGrid:r,rtlTranslate:u,enabled:a,animating:c}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const d=o.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const A=u?o.translate:-o.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=f(A),b=l.map(v=>f(v));let m=l[b.indexOf(p)-1];if(typeof m>"u"&&s.cssMode){let v;l.forEach((g,h)=>{p>=g&&(v=h)}),typeof v<"u"&&(m=l[v>0?v-1:v])}let S=0;if(typeof m<"u"&&(S=r.indexOf(m),S<0&&(S=o.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),s.rewind&&o.isBeginning){const v=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(v,t,e,i)}else if(s.loop&&o.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function ts(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function is(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let l=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,l),u=r+Math.floor((l-r)/s.params.slidesPerGroup),a=s.rtlTranslate?s.translate:-s.translate;if(a>=s.snapGrid[u]){const c=s.snapGrid[u],d=s.snapGrid[u+1];a-c>(d-c)*o&&(l+=s.params.slidesPerGroup)}else{const c=s.snapGrid[u-1],d=s.snapGrid[u];a-c<=(d-c)*o&&(l-=s.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,s.slidesGrid.length-1),s.slideTo(l,t,e,i)}function ns(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.clickedIndex,l;const r=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?s<t.loopedSlides-o/2||s>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),s=t.getSlideIndex(Gt(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),di(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-o?(t.loopFix(),s=t.getSlideIndex(Gt(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),di(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var os={slideTo:Ql,slideToLoop:Rl,slideNext:$l,slidePrev:es,slideReset:ts,slideToClosest:is,slideToClickedSlide:ns};function ls(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{Gt(o,`.${i.slideClass}, swiper-slide`).forEach((A,f)=>{A.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(l?i.grid.rows:1),u=e.slides.length%r!==0,a=l&&e.slides.length%i.grid.rows!==0,c=d=>{for(let A=0;A<d;A+=1){const f=e.isElement?ui("swiper-slide",[i.slideBlankClass]):ui("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(u){if(i.loopAddBlankSlides){const d=r-e.slides.length%r;c(d),e.recalcSlides(),e.updateSlides()}else Di("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(a){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;c(d),e.recalcSlides(),e.updateSlides()}else Di("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ss(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:s,activeSlideIndex:l,byController:r,byMousewheel:u}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:A,slidesEl:f,params:p}=a,{centeredSlides:b}=p;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):p.centeredSlides&&a.snapIndex<p.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=d,a.allowSlideNext=A,a.emit("loopFix");return}let m=p.slidesPerView;m==="auto"?m=a.slidesPerViewDynamic():(m=Math.ceil(parseFloat(p.slidesPerView,10)),b&&m%2===0&&(m=m+1));const S=p.slidesPerGroupAuto?m:p.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=p.loopAdditionalSlides,a.loopedSlides=v;const g=a.grid&&p.grid&&p.grid.rows>1;c.length<m+v?Di("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"):g&&p.grid.fill==="row"&&Di("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],w=[];let C=a.activeIndex;typeof l>"u"?l=a.getSlideIndex(c.filter(j=>j.classList.contains(p.slideActiveClass))[0]):C=l;const P=o==="next"||!o,V=o==="prev"||!o;let M=0,x=0;const T=g?Math.ceil(c.length/p.grid.rows):c.length,k=(g?c[l].column:l)+(b&&typeof s>"u"?-m/2+.5:0);if(k<v){M=Math.max(v-k,S);for(let j=0;j<v-k;j+=1){const E=j-Math.floor(j/T)*T;if(g){const y=T-E-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===y&&h.push(W)}else h.push(T-E-1)}}else if(k+m>T-v){x=Math.max(k-(T-v*2),S);for(let j=0;j<x;j+=1){const E=j-Math.floor(j/T)*T;g?c.forEach((y,W)=>{y.column===E&&w.push(W)}):w.push(E)}}if(a.__preventObserver__=!0,requestAnimationFrame(()=>{a.__preventObserver__=!1}),V&&h.forEach(j=>{c[j].swiperLoopMoveDOM=!0,f.prepend(c[j]),c[j].swiperLoopMoveDOM=!1}),P&&w.forEach(j=>{c[j].swiperLoopMoveDOM=!0,f.append(c[j]),c[j].swiperLoopMoveDOM=!1}),a.recalcSlides(),p.slidesPerView==="auto"?a.updateSlides():g&&(h.length>0&&V||w.length>0&&P)&&a.slides.forEach((j,E)=>{a.grid.updateSlide(E,j,a.slides)}),p.watchSlidesProgress&&a.updateSlidesOffset(),i){if(h.length>0&&V){if(typeof e>"u"){const j=a.slidesGrid[C],y=a.slidesGrid[C+M]-j;u?a.setTranslate(a.translate-y):(a.slideTo(C+Math.ceil(M),0,!1,!0),s&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-y,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-y))}else if(s){const j=g?h.length/p.grid.rows:h.length;a.slideTo(a.activeIndex+j,0,!1,!0),a.touchEventsData.currentTranslate=a.translate}}else if(w.length>0&&P)if(typeof e>"u"){const j=a.slidesGrid[C],y=a.slidesGrid[C-x]-j;u?a.setTranslate(a.translate-y):(a.slideTo(C-x,0,!1,!0),s&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-y,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-y))}else{const j=g?w.length/p.grid.rows:w.length;a.slideTo(a.activeIndex-j,0,!1,!0)}}if(a.allowSlidePrev=d,a.allowSlideNext=A,a.controller&&a.controller.control&&!r){const j={slideRealIndex:e,direction:o,setTranslate:s,activeSlideIndex:l,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...j,slideTo:E.params.slidesPerView===p.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...j,slideTo:a.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}a.emit("loopFix")}function rs(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(s=>{const l=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;o[l]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),o.forEach(s=>{i.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var as={loopCreate:ls,loopFix:ss,loopDestroy:rs};function ds(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 us(){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 cs={setGrabCursor:ds,unsetGrabCursor:us};function vs(t,e){e===void 0&&(e=this);function i(o){if(!o||o===jt()||o===Pt())return null;o.assignedSlot&&(o=o.assignedSlot);const s=o.closest(t);return!s&&!o.getRootNode?null:s||i(o.getRootNode().host)}return i(e)}function lo(t,e,i){const o=Pt(),{params:s}=t,l=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return l&&(i<=r||i>=o.innerWidth-r)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function ps(t){const e=this,i=jt();let o=t;o.originalEvent&&(o=o.originalEvent);const s=e.touchEventsData;if(o.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==o.pointerId)return;s.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(s.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){lo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:r,enabled:u}=e;if(!u||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let a=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(a)||"which"in o&&o.which===3||"button"in o&&o.button>0||s.isTouched&&s.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;c&&o.target&&o.target.shadowRoot&&d&&(a=d[0]);const A=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(f?vs(A,a):a.closest(A))){e.allowClick=!0;return}if(l.swipeHandler&&!a.closest(l.swipeHandler))return;r.currentX=o.pageX,r.currentY=o.pageY;const p=r.currentX,b=r.currentY;if(!lo(e,o,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=p,r.startY=b,s.touchStartTime=Wt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(s.allowThresholdMove=!1);let m=!0;a.matches(s.focusableElements)&&(m=!1,a.nodeName==="SELECT"&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==a&&i.activeElement.blur();const S=m&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!a.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function ms(t){const e=jt(),i=this,o=i.touchEventsData,{params:s,touches:l,rtlTranslate:r,enabled:u}=i;if(!u||!s.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),a.type==="pointermove"&&(o.touchId!==null||a.pointerId!==o.pointerId))return;let c;if(a.type==="touchmove"){if(c=[...a.changedTouches].filter(P=>P.identifier===o.touchId)[0],!c||c.identifier!==o.touchId)return}else c=a;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",a);return}const d=c.pageX,A=c.pageY;if(a.preventedByNestedSwiper){l.startX=d,l.startY=A;return}if(!i.allowTouchMove){a.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:d,startY:A,currentX:d,currentY:A}),o.touchStartTime=Wt());return}if(s.touchReleaseOnEdges&&!s.loop){if(i.isVertical()){if(A<l.startY&&i.translate<=i.maxTranslate()||A>l.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(d<l.startX&&i.translate<=i.maxTranslate()||d>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",a),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=A;const f=l.currentX-l.startX,p=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+p**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:f*f+p*p>=25&&(P=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,o.isScrolling=i.isHorizontal()?P>s.touchAngle:90-P>s.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",a),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||a.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!s.cssMode&&a.cancelable&&a.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&a.stopPropagation();let b=i.isHorizontal()?f:p,m=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;s.oneWayMovement&&(b=Math.abs(b)*(r?1:-1),m=Math.abs(m)*(r?1:-1)),l.diff=b,b*=s.touchRatio,r&&(b=-b,m=-m);const S=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=m>0?"prev":"next";const v=i.params.loop&&!s.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),o.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)}o.allowMomentumBounce=!1,s.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let h;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(b)>=1){Object.assign(l,{startX:d,startY:A,currentX:d,currentY:A,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",a),o.isMoved=!0,o.currentTranslate=b+o.startTranslate;let w=!0,C=s.resistanceRatio;if(s.touchReleaseOnEdges&&(C=0),b>0?(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,s.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+b)**C))):b<0&&(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(s.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,s.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-b)**C))),w&&(a.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),s.threshold>0)if(Math.abs(b)>s.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{o.currentTranslate=o.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function fs(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let s;if(o.type==="touchend"||o.type==="touchcancel"){if(s=[...o.changedTouches].filter(C=>C.identifier===i.touchId)[0],!s||s.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;s=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:r,touches:u,rtlTranslate:a,slidesGrid:c,enabled:d}=e;if(!d||!r.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const A=Wt(),f=A-i.touchStartTime;if(e.allowClick){const C=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(C&&C[0]||o.target,C),e.emit("tap click",o),f<300&&A-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=Wt(),di(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||u.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(r.followFinger?p=a?e.translate:-e.translate:p=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const b=p>=-e.maxTranslate()&&!e.params.loop;let m=0,S=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<r.slidesPerGroupSkip?1:r.slidesPerGroup){const P=C<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof c[C+P]<"u"?(b||p>=c[C]&&p<c[C+P])&&(m=C,S=c[C+P]-c[C]):(b||p>=c[C])&&(m=C,S=c[c.length-1]-c[c.length-2])}let v=null,g=null;r.rewind&&(e.isBeginning?g=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(p-c[m])/S,w=m<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?v:m+w):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-r.longSwipesRatio?e.slideTo(m+w):g!==null&&h<0&&Math.abs(h)>r.longSwipesRatio?e.slideTo(g):e.slideTo(m))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(m+w):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:m+w),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:m))}}function so(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:s,snapGrid:l}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const u=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!u?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?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=s,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function hs(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function As(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)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 s;const l=t.maxTranslate()-t.minTranslate();l===0?s=0:s=(t.translate-t.minTranslate())/l,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function bs(t){const e=this;Bi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function gs(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ro=(t,e)=>{const i=jt(),{params:o,el:s,wrapperEl:l,device:r}=t,u=!!o.nested,a=e==="on"?"addEventListener":"removeEventListener",c=e;!s||typeof s=="string"||(i[a]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:u}),s[a]("touchstart",t.onTouchStart,{passive:!1}),s[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("touchmove",t.onTouchMove,{passive:!1,capture:u}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:u}),i[a]("touchend",t.onTouchEnd,{passive:!0}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("touchcancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),i[a]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&s[a]("click",t.onClick,!0),o.cssMode&&l[a]("scroll",t.onScroll),o.updateOnWindowResize?t[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",so,!0):t[c]("observerUpdate",so,!0),s[a]("load",t.onLoad,{capture:!0}))};function ys(){const t=this,{params:e}=t;t.onTouchStart=ps.bind(t),t.onTouchMove=ms.bind(t),t.onTouchEnd=fs.bind(t),t.onDocumentTouchStart=gs.bind(t),e.cssMode&&(t.onScroll=As.bind(t)),t.onClick=hs.bind(t),t.onLoad=bs.bind(t),ro(t,"on")}function ws(){ro(this,"off")}var Ss={attachEvents:ys,detachEvents:ws};const ao=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function xs(){const t=this,{realIndex:e,initialized:i,params:o,el:s}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const r=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const a=(r in l?l[r]:void 0)||t.originalParams,c=ao(t,o),d=ao(t,a),A=t.params.grabCursor,f=a.grabCursor,p=o.enabled;c&&!d?(s.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(s.classList.add(`${o.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&o.grid.fill==="column")&&s.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),A&&!f?t.unsetGrabCursor():!A&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof a[h]>"u")return;const w=o[h]&&o[h].enabled,C=a[h]&&a[h].enabled;w&&!C&&t[h].disable(),!w&&C&&t[h].enable()});const b=a.direction&&a.direction!==o.direction,m=o.loop&&(a.slidesPerView!==o.slidesPerView||b),S=o.loop;b&&i&&t.changeDirection(),Vt(t.params,a);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!v?t.disable():!p&&v&&t.enable(),t.currentBreakpoint=r,t.emit("_beforeBreakpoint",a),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",a)}function Ts(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const s=Pt(),l=e==="window"?s.innerHeight:i.clientHeight,r=Object.keys(t).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const a=parseFloat(u.substr(1));return{value:l*a,point:u}}return{value:u,point:u}});r.sort((u,a)=>parseInt(u.value,10)-parseInt(a.value,10));for(let u=0;u<r.length;u+=1){const{point:a,value:c}=r[u];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(o=a):c<=i.clientWidth&&(o=a)}return o||"max"}var Es={setBreakpoint:xs,getBreakpoint:Ts};function ks(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(s=>{o[s]&&i.push(e+s)}):typeof o=="string"&&i.push(e+o)}),i}function Is(){const t=this,{classNames:e,params:i,rtl:o,el:s,device:l}=t,r=ks(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{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(...r),s.classList.add(...e),t.emitContainerClasses()}function Cs(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Ps={addClasses:Is,removeClasses:Cs};function Os(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const s=t.slides.length-1,l=t.slidesGrid[s]+t.slidesSizesGrid[s]+o*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 Ls={checkOverflow:Os},un={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 Ms(t,e){return function(o){o===void 0&&(o={});const s=Object.keys(o)[0],l=o[s];if(typeof l!="object"||l===null){Vt(e,o);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in l)){Vt(e,o);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),Vt(e,o)}}const cn={eventsEmitter:Pl,update:zl,translate:Gl,transition:Jl,slide:os,loop:as,grabCursor:cs,events:Ss,breakpoints:Es,checkOverflow:Ls,classes:Ps},vn={};let pn=class $t{constructor(){let e,i;for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?i=s[0]:[e,i]=s,i||(i={}),i=Vt({},i),e&&!i.el&&(i.el=e);const r=jt();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const d=[];return r.querySelectorAll(i.el).forEach(A=>{const f=Vt({},i,{el:A});d.push(new $t(f))}),d}const u=this;u.__swiper__=!0,u.support=to(),u.device=io({userAgent:i.userAgent}),u.browser=kl(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],i.modules&&Array.isArray(i.modules)&&u.modules.push(...i.modules);const a={};u.modules.forEach(d=>{d({params:i,swiper:u,extendParams:Ms(i,a),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})});const c=Vt({},un,a);return u.params=Vt({},c,vn,i),u.originalParams=Vt({},u.params),u.passedParams=Vt({},i),u.params&&u.params.on&&Object.keys(u.params.on).forEach(d=>{u.on(d,u.params.on[d])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return u.params.direction==="horizontal"},isVertical(){return u.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:u.params.allowSlideNext,allowSlidePrev:u.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:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}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:o}=this,s=Gt(i,`.${o.slideClass}, swiper-slide`),l=bi(s[0]);return bi(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:o}=e;e.slides=Gt(i,`.${o.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 o=this;e=Math.min(Math.max(e,0),1);const s=o.minTranslate(),r=(o.maxTranslate()-s)*e+s;o.translateTo(r,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const s=e.getSlideClasses(o);i.push({slideEl:o,classNames:s}),e.emit("_slideClass",o,s)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:s,slides:l,slidesGrid:r,slidesSizesGrid:u,size:a,activeIndex:c}=o;let d=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let A=l[c]?Math.ceil(l[c].swiperSlideSize):0,f;for(let p=c+1;p<l.length;p+=1)l[p]&&!f&&(A+=Math.ceil(l[p].swiperSlideSize),d+=1,A>a&&(f=!0));for(let p=c-1;p>=0;p-=1)l[p]&&!f&&(A+=l[p].swiperSlideSize,d+=1,A>a&&(f=!0))}else if(e==="current")for(let A=c+1;A<l.length;A+=1)(i?r[A]+u[A]-r[c]<a:r[A]-r[c]<a)&&(d+=1);else for(let A=c-1;A>=0;A-=1)r[c]-r[A]<a&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete&&Bi(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const r=e.rtlTranslate?e.translate*-1:e.translate,u=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(u),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)s(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const r=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(r.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||s()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,s=o.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${s}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}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 o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const s=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(s()):Gt(o,s())[0];return!r&&i.params.createElements&&(r=ui("div",i.params.wrapperClass),o.append(r),Gt(o,`.${i.params.slideClass}`).forEach(u=>{r.append(u)})),Object.assign(i,{el:o,wrapperEl:r,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:r,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||ii(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||ii(o,"direction")==="rtl"),wrongRTL:ii(r,"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 s=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&s.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(l=>{l.complete?Bi(i,l):l.addEventListener("load",r=>{Bi(i,r.target)})}),dn(i),i.initialized=!0,dn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:s,el:l,wrapperEl:r,slides:u}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),s.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),r&&r.removeAttribute("style"),u&&u.length&&u.forEach(a=>{a.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(a=>{o.off(a)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Al(o)),o.destroyed=!0),null}static extendDefaults(e){Vt(vn,e)}static get extendedDefaults(){return vn}static get defaults(){return un}static installModule(e){$t.prototype.__modules__||($t.prototype.__modules__=[]);const i=$t.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>$t.installModule(i)),$t):($t.installModule(e),$t)}};Object.keys(cn).forEach(t=>{Object.keys(cn[t]).forEach(e=>{pn.prototype[e]=cn[t][e]})}),pn.use([Il,Cl]);const uo=["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 si(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ci(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:si(e[o])&&si(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:ci(t[o],e[o]):t[o]=e[o]})}function co(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function vo(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function po(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function mo(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function js(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ns(t){let{swiper:e,slides:i,passedParams:o,changedParams:s,nextEl:l,prevEl:r,scrollbarEl:u,paginationEl:a}=t;const c=s.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:d,pagination:A,navigation:f,scrollbar:p,virtual:b,thumbs:m}=e;let S,v,g,h,w,C,P,V;s.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),s.includes("controller")&&o.controller&&o.controller.control&&d.controller&&!d.controller.control&&(v=!0),s.includes("pagination")&&o.pagination&&(o.pagination.el||a)&&(d.pagination||d.pagination===!1)&&A&&!A.el&&(g=!0),s.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||u)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(h=!0),s.includes("navigation")&&o.navigation&&(o.navigation.prevEl||r)&&(o.navigation.nextEl||l)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const M=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),d[x].prevEl=void 0,d[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),d[x].el=void 0,e[x].el=void 0))};s.includes("loop")&&e.isElement&&(d.loop&&!o.loop?C=!0:!d.loop&&o.loop?P=!0:V=!0),c.forEach(x=>{if(si(d[x])&&si(o[x]))Object.assign(d[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&M(x);else{const T=o[x];(T===!0||T===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?T===!1&&M(x):d[x]=o[x]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),s.includes("children")&&i&&b&&d.virtual.enabled?(b.slides=i,b.update(!0)):s.includes("virtual")&&b&&d.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),s.includes("children")&&i&&d.loop&&(V=!0),S&&m.init()&&m.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),e.el.appendChild(a)),a&&(d.pagination.el=a),A.init(),A.render(),A.update()),h&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-scrollbar"),u.part.add("scrollbar"),e.el.appendChild(u)),u&&(d.scrollbar.el=u),p.init(),p.updateSize(),p.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)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),e.el.appendChild(r))),l&&(d.navigation.nextEl=l),r&&(d.navigation.prevEl=r),f.init(),f.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),s.includes("direction")&&e.changeDirection(o.direction,!1),(C||V)&&e.loopDestroy(),(P||V)&&e.loopCreate(),e.update()}function Ds(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},s={};ci(i,un),i._emitClasses=!0,i.init=!1;const l={},r=uo.map(a=>a.replace(/_/,"")),u=Object.assign({},t);return Object.keys(u).forEach(a=>{typeof t[a]>"u"||(r.indexOf(a)>=0?si(t[a])?(i[a]={},s[a]={},ci(i[a],t[a]),ci(s[a],t[a])):(i[a]=t[a],s[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?e?o[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:l[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{i[a]===!0&&(i[a]={}),i[a]===!1&&delete i[a]}),{params:i,passedParams:s,rest:l,events:o}}function Vs(t,e){let{el:i,nextEl:o,prevEl:s,paginationEl:l,scrollbarEl:r,swiper:u}=t;co(e)&&o&&s&&(u.params.navigation.nextEl=o,u.originalParams.navigation.nextEl=o,u.params.navigation.prevEl=s,u.originalParams.navigation.prevEl=s),vo(e)&&l&&(u.params.pagination.el=l,u.originalParams.pagination.el=l),po(e)&&r&&(u.params.scrollbar.el=r,u.originalParams.scrollbar.el=r),u.init(i)}function Bs(t,e,i,o,s){const l=[];if(!e)return l;const r=a=>{l.indexOf(a)<0&&l.push(a)};if(i&&o){const a=o.map(s),c=i.map(s);a.join("")!==c.join("")&&r("children"),o.length!==i.length&&r("children")}return uo.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in e)if(si(t[a])&&si(e[a])){const c=Object.keys(t[a]),d=Object.keys(e[a]);c.length!==d.length?r(a):(c.forEach(A=>{t[a][A]!==e[a][A]&&r(a)}),d.forEach(A=>{t[a][A]!==e[a][A]&&r(a)}))}else t[a]!==e[a]&&r(a)}),l}const Fs=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 Fi(){return Fi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Fi.apply(this,arguments)}function fo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ho(t){const e=[];return n.Children.toArray(t).forEach(i=>{fo(i)?e.push(i):i.props&&i.props.children&&ho(i.props.children).forEach(o=>e.push(o))}),e}function Ws(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(fo(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const s=ho(o.props.children);s.length>0?s.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function zs(t,e,i){if(!i)return null;const o=d=>{let A=d;return d<0?A=e.length+d:A>=e.length&&(A=A-e.length),A},s=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:r}=i,u=t.params.loop?-e.length:0,a=t.params.loop?e.length*2:e.length,c=[];for(let d=u;d<a;d+=1)d>=l&&d<=r&&c.push(e[o(d)]);return c.map((d,A)=>n.cloneElement(d,{swiper:t,style:s,key:d.props.virtualIndex||d.key||`slide-${A}`}))}function gi(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const mn=n.createContext(null),yi=()=>n.useContext(mn),Hs=n.createContext(null),Kt=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:s="div",children:l,onSwiper:r,...u}=t===void 0?{}:t,a=!1;const[c,d]=n.useState("swiper"),[A,f]=n.useState(null),[p,b]=n.useState(!1),m=n.useRef(!1),S=n.useRef(null),v=n.useRef(null),g=n.useRef(null),h=n.useRef(null),w=n.useRef(null),C=n.useRef(null),P=n.useRef(null),V=n.useRef(null),{params:M,passedParams:x,rest:T,events:B}=Ds(u),{slides:k,slots:j}=Ws(l),E=()=>{b(!p)};Object.assign(M.on,{_containerClasses(O,I){d(I)}});const y=()=>{Object.assign(M.on,B),a=!0;const O={...M};if(delete O.wrapperClass,v.current=new pn(O),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=k;const I={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};ci(v.current.params.virtual,I),ci(v.current.originalParams.virtual,I)}};S.current||y(),v.current&&v.current.on("_beforeBreakpoint",E);const W=()=>{a||!B||!v.current||Object.keys(B).forEach(O=>{v.current.on(O,B[O])})},D=()=>{!B||!v.current||Object.keys(B).forEach(O=>{v.current.off(O,B[O])})};n.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),n.useEffect(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),gi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&y(),Vs({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:V.current,swiper:v.current},M),r&&!v.current.destroyed&&r(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),gi(()=>{W();const O=Bs(x,g.current,k,h.current,I=>I.key);return g.current=x,h.current=k,O.length&&v.current&&!v.current.destroyed&&Ns({swiper:v.current,slides:k,passedParams:x,changedParams:O,nextEl:w.current,prevEl:C.current,scrollbarEl:V.current,paginationEl:P.current}),()=>{D()}}),gi(()=>{Fs(v.current)},[A]);function F(){return M.virtual?zs(v.current,k,A):k.map((O,I)=>n.cloneElement(O,{swiper:v.current,swiperSlideIndex:I}))}return n.createElement(o,Fi({ref:S,className:mo(`${c}${i?` ${i}`:""}`)},T),n.createElement(Hs.Provider,{value:v.current},j["container-start"],n.createElement(s,{className:js(M.wrapperClass)},j["wrapper-start"],F(),j["wrapper-end"]),co(M)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:C,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),po(M)&&n.createElement("div",{ref:V,className:"swiper-scrollbar"}),vo(M)&&n.createElement("div",{ref:P,className:"swiper-pagination"}),j["container-end"]))});Kt.displayName="Swiper";const Bt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:s="",swiper:l,zoom:r,lazy:u,virtualIndex:a,swiperSlideIndex:c,...d}=t===void 0?{}:t;const A=n.useRef(null),[f,p]=n.useState("swiper-slide"),[b,m]=n.useState(!1);function S(w,C,P){C===A.current&&p(P)}gi(()=>{if(typeof c<"u"&&(A.current.swiperSlideIndex=c),e&&(e.current=A.current),!(!A.current||!l)){if(l.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),gi(()=>{l&&A.current&&!l.destroyed&&p(l.getSlideClasses(A.current))},[l]);const v={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},g=()=>typeof o=="function"?o(v):o,h=()=>{m(!0)};return n.createElement(i,Fi({ref:A,className:mo(`${f}${s?` ${s}`:""}`),"data-swiper-slide-index":a,onLoad:h},d),r&&n.createElement(mn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},g(),u&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&n.createElement(mn.Provider,{value:v},g(),u&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Bt.displayName="SwiperSlide";function fn(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=jt(),r=Pt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function u(d){if(!e.enabled)return;const{rtlTranslate:A}=e;let f=d;f.originalEvent&&(f=f.originalEvent);const p=f.keyCode||f.charCode,b=e.params.keyboard.pageUpDown,m=b&&p===33,S=b&&p===34,v=p===37,g=p===39,h=p===38,w=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&w||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&h||m))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&&(m||S||v||g||h||w)){let C=!1;if(Vi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Vi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,V=P.clientWidth,M=P.clientHeight,x=r.innerWidth,T=r.innerHeight,B=eo(P);A&&(B.left-=P.scrollLeft);const k=[[B.left,B.top],[B.left+V,B.top],[B.left,B.top+M],[B.left+V,B.top+M]];for(let j=0;j<k.length;j+=1){const E=k[j];if(E[0]>=0&&E[0]<=x&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((m||S||v||g)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((S||g)&&!A||(m||v)&&A)&&e.slideNext(),((m||v)&&!A||(S||g)&&A)&&e.slidePrev()):((m||S||h||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(S||w)&&e.slideNext(),(m||h)&&e.slidePrev()),s("keyPress",p)}}function a(){e.keyboard.enabled||(l.addEventListener("keydown",u),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.removeEventListener("keydown",u),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&a()}),o("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:a,disable:c})}function Wi(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=Pt();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 r,u=Wt(),a;const c=[];function d(h){let V=0,M=0,x=0,T=0;return"detail"in h&&(M=h.detail),"wheelDelta"in h&&(M=-h.wheelDelta/120),"wheelDeltaY"in h&&(M=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(V=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(V=M,M=0),x=V*10,T=M*10,"deltaY"in h&&(T=h.deltaY),"deltaX"in h&&(x=h.deltaX),h.shiftKey&&!x&&(x=T,T=0),(x||T)&&h.deltaMode&&(h.deltaMode===1?(x*=40,T*=40):(x*=800,T*=800)),x&&!V&&(V=x<1?-1:1),T&&!M&&(M=T<1?-1:1),{spinX:V,spinY:M,pixelX:x,pixelY:T}}function A(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function p(h){return e.params.mousewheel.thresholdDelta&&h.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Wt()-u<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&Wt()-u<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",h.raw)),u=new l.Date().getTime(),!1)}function b(h){const w=e.params.mousewheel;if(h.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 m(h){let w=h,C=!0;if(!e.enabled||h.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 M=V&&V.contains(w.target);if(!e.mouseEntered&&!M&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let x=0;const T=e.rtlTranslate?-1:1,B=d(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(B.pixelX)>Math.abs(B.pixelY))x=-B.pixelX*T;else return!0;else if(Math.abs(B.pixelY)>Math.abs(B.pixelX))x=-B.pixelY;else return!0;else x=Math.abs(B.pixelX)>Math.abs(B.pixelY)?-B.pixelX*T:-B.pixelY;if(x===0)return!0;P.invert&&(x=-x);let k=e.getTranslate()+x*P.sensitivity;if(k>=e.minTranslate()&&(k=e.minTranslate()),k<=e.maxTranslate()&&(k=e.maxTranslate()),C=e.params.loop?!0:!(k===e.minTranslate()||k===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const j={time:Wt(),delta:Math.abs(x),direction:Math.sign(x),raw:h};c.length>=2&&c.shift();const E=c.length?c[c.length-1]:void 0;if(c.push(j),E?(j.direction!==E.direction||j.delta>E.delta||j.time>E.time+150)&&p(j):p(j),b(j))return!0}else{const j={time:Wt(),delta:Math.abs(x),direction:Math.sign(x)},E=a&&j.time<a.time+500&&j.delta<=a.delta&&j.direction===a.direction;if(!E){a=void 0;let y=e.getTranslate()+x*P.sensitivity;const W=e.isBeginning,D=e.isEnd;if(y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),e.setTransition(0),e.setTranslate(y),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!D&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=void 0,c.length>=15&&c.shift();const F=c.length?c[c.length-1]:void 0,O=c[0];if(c.push(j),F&&(j.delta>F.delta||j.direction!==F.direction))c.splice(0);else if(c.length>=15&&j.time-O.time<500&&O.delta-j.delta>=1&&j.delta<=6){const I=x>0?.8:.2;a=j,c.splice(0),r=di(()=>{e.slideToClosest(e.params.speed,!0,void 0,I)},0)}r||(r=di(()=>{a=j,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||s("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(y===e.minTranslate()||y===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function S(h){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[h]("mouseenter",A),w[h]("mouseleave",f),w[h]("wheel",m)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),o("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function hn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(s=>{if(!i[s]&&i.auto===!0){let l=Gt(t.el,`.${o[s]}`)[0];l||(l=ui("div",o[s]),l.className=o[s],t.el.append(l)),i[s]=l,e[s]=l}}),i}function An(t){let{swiper:e,extendParams:i,on:o,emit:s}=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(b){let m;return b&&typeof b=="string"&&e.isElement&&(m=e.el.querySelector(b),m)?m:(b&&(typeof b=="string"&&(m=[...document.querySelectorAll(b)]),e.params.uniqueNavElements&&typeof b=="string"&&m&&m.length>1&&e.el.querySelectorAll(b).length===1?m=e.el.querySelector(b):m&&m.length===1&&(m=m[0])),b&&!m?b:m)}function r(b,m){const S=e.params.navigation;b=Ye(b),b.forEach(v=>{v&&(v.classList[m?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=m),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function u(){const{nextEl:b,prevEl:m}=e.navigation;if(e.params.loop){r(m,!1),r(b,!1);return}r(m,e.isBeginning&&!e.params.rewind),r(b,e.isEnd&&!e.params.rewind)}function a(b){b.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function c(b){b.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function d(){const b=e.params.navigation;if(e.params.navigation=hn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(b.nextEl||b.prevEl))return;let m=l(b.nextEl),S=l(b.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:S}),m=Ye(m),S=Ye(S);const v=(g,h)=>{g&&g.addEventListener("click",h==="next"?c:a),!e.enabled&&g&&g.classList.add(...b.lockClass.split(" "))};m.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function A(){let{nextEl:b,prevEl:m}=e.navigation;b=Ye(b),m=Ye(m);const S=(v,g)=>{v.removeEventListener("click",g==="next"?c:a),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};b.forEach(v=>S(v,"next")),m.forEach(v=>S(v,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?p():(d(),u())}),o("toEdge fromEdge lock unlock",()=>{u()}),o("destroy",()=>{A()}),o("enable disable",()=>{let{nextEl:b,prevEl:m}=e.navigation;if(b=Ye(b),m=Ye(m),e.enabled){u();return}[...b,...m].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),o("click",(b,m)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Ye(S),v=Ye(v);const g=m.target;let h=v.includes(g)||S.includes(g);if(e.isElement&&!h){const w=m.path||m.composedPath&&m.composedPath();w&&(h=w.find(C=>S.includes(C)||v.includes(C)))}if(e.params.navigation.hideOnClick&&!h){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let w;S.length?w=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(w=v[0].classList.contains(e.params.navigation.hiddenClass)),s(w===!0?"navigationShow":"navigationHide"),[...S,...v].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),u()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),A()};Object.assign(e.navigation,{enable:f,disable:p,update:u,init:d,destroy:A})}function Jt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function wi(t){let{swiper:e,extendParams:i,on:o,emit:s}=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:v=>v,formatFractionTotal:v=>v,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 r,u=0;function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(v,g){const{bulletActiveClass:h}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${h}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${h}-${g}-${g}`)))}function d(v){const g=v.target.closest(Jt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const h=bi(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;e.slideToLoop(h)}else e.slideTo(h)}function A(){const v=e.rtl,g=e.params.pagination;if(a())return;let h=e.pagination.el;h=Ye(h);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),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const M=e.pagination.bullets;let x,T,B;if(g.dynamicBullets&&(r=nn(M[0],e.isHorizontal()?"width":"height",!0),h.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(u+=w-(C||0),u>g.dynamicMainBullets-1?u=g.dynamicMainBullets-1:u<0&&(u=0)),x=Math.max(w-u,0),T=x+(Math.min(M.length,g.dynamicMainBullets)-1),B=(T+x)/2),M.forEach(k=>{const j=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();k.classList.remove(...j)}),h.length>1)M.forEach(k=>{const j=bi(k);j===w?k.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),g.dynamicBullets&&(j>=x&&j<=T&&k.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),j===x&&c(k,"prev"),j===T&&c(k,"next"))});else{const k=M[w];if(k&&k.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&M.forEach((j,E)=>{j.setAttribute("part",E===w?"bullet-active":"bullet")}),g.dynamicBullets){const j=M[x],E=M[T];for(let y=x;y<=T;y+=1)M[y]&&M[y].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(j,"prev"),c(E,"next")}}if(g.dynamicBullets){const k=Math.min(M.length,g.dynamicMainBullets+4),j=(r*k-r)/2-B*r,E=v?"right":"left";M.forEach(y=>{y.style[e.isHorizontal()?E:"top"]=`${j}px`})}}h.forEach((M,x)=>{if(g.type==="fraction"&&(M.querySelectorAll(Jt(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(w+1)}),M.querySelectorAll(Jt(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(V)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const B=(w+1)/V;let k=1,j=1;T==="horizontal"?k=B:j=B,M.querySelectorAll(Jt(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${j})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(M.innerHTML=g.renderCustom(e,w+1,V),x===0&&s("paginationRender",M)):(x===0&&s("paginationRender",M),s("paginationUpdate",M)),e.params.watchOverflow&&e.enabled&&M.classList[e.isLocked?"add":"remove"](g.lockClass)})}function f(){const v=e.params.pagination;if(a())return;const g=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 h=e.pagination.el;h=Ye(h);let w="";if(v.type==="bullets"){let C=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>g&&(C=g);for(let P=0;P<C;P+=1)v.renderBullet?w+=v.renderBullet.call(e,P,v.bulletClass):w+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?w=v.renderFraction.call(e,v.currentClass,v.totalClass):w=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?w=v.renderProgressbar.call(e,v.progressbarFillClass):w=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],h.forEach(C=>{v.type!=="custom"&&(C.innerHTML=w||""),v.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(Jt(v.bulletClass)))}),v.type!=="custom"&&s("paginationRender",h[0])}function p(){e.params.pagination=hn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.filter(h=>Vi(h,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Ye(g),g.forEach(h=>{v.type==="bullets"&&v.clickable&&h.classList.add(...(v.clickableClass||"").split(" ")),h.classList.add(v.modifierClass+v.type),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(h.classList.add(`${v.modifierClass}${v.type}-dynamic`),u=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&h.classList.add(v.progressbarOppositeClass),v.clickable&&h.addEventListener("click",d),e.enabled||h.classList.add(v.lockClass)}))}function b(){const v=e.params.pagination;if(a())return;let g=e.pagination.el;g&&(g=Ye(g),g.forEach(h=>{h.classList.remove(v.hiddenClass),h.classList.remove(v.modifierClass+v.type),h.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(h.classList.remove(...(v.clickableClass||"").split(" ")),h.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...v.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Ye(g),g.forEach(h=>{h.classList.remove(v.horizontalClass,v.verticalClass),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?S():(p(),f(),A())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&A()}),o("snapIndexChange",()=>{A()}),o("snapGridLengthChange",()=>{f(),A()}),o("destroy",()=>{b()}),o("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{A()}),o("click",(v,g)=>{const h=g.target,w=Ye(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);s(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),A()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:m,disable:S,render:f,update:A,init:p,destroy:b})}function Us(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=jt();let r=!1,u=null,a=null,c,d,A,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 p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k,rtlTranslate:j}=e,{dragEl:E,el:y}=k,W=e.params.scrollbar,D=e.params.loop?e.progressLoop:e.progress;let F=d,O=(A-d)*D;j?(O=-O,O>0?(F=d-O,O=0):-O+d>A&&(F=A+O)):O<0?(F=d+O,O=0):O+d>A&&(F=A-O),e.isHorizontal()?(E.style.transform=`translate3d(${O}px, 0, 0)`,E.style.width=`${F}px`):(E.style.transform=`translate3d(0px, ${O}px, 0)`,E.style.height=`${F}px`),W.hide&&(clearTimeout(u),y.style.opacity=1,u=setTimeout(()=>{y.style.opacity=0,y.style.transitionDuration="400ms"},1e3))}function b(k){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${k}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k}=e,{dragEl:j,el:E}=k;j.style.width="",j.style.height="",A=e.isHorizontal()?E.offsetWidth:E.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=A*f:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${d}px`:j.style.height=`${d}px`,f>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&k.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(k){return e.isHorizontal()?k.clientX:k.clientY}function v(k){const{scrollbar:j,rtlTranslate:E}=e,{el:y}=j;let W;W=(S(k)-eo(y)[e.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(A-d),W=Math.max(Math.min(W,1),0),E&&(W=1-W);const D=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(D),e.setTranslate(D),e.updateActiveIndex(),e.updateSlidesClasses()}function g(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:W,dragEl:D}=E;r=!0,c=k.target===D?S(k)-k.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,k.preventDefault(),k.stopPropagation(),y.style.transitionDuration="100ms",D.style.transitionDuration="100ms",v(k),clearTimeout(a),W.style.transitionDuration="0ms",j.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",k)}function h(k){const{scrollbar:j,wrapperEl:E}=e,{el:y,dragEl:W}=j;r&&(k.preventDefault&&k.cancelable?k.preventDefault():k.returnValue=!1,v(k),E.style.transitionDuration="0ms",y.style.transitionDuration="0ms",W.style.transitionDuration="0ms",s("scrollbarDragMove",k))}function w(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:W}=E;r&&(r=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),j.hide&&(clearTimeout(a),a=di(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",k),j.snapOnRelease&&e.slideToClosest())}function C(k){const{scrollbar:j,params:E}=e,y=j.el;if(!y)return;const W=y,D=E.passiveListeners?{passive:!1,capture:!1}:!1,F=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const O=k==="on"?"addEventListener":"removeEventListener";W[O]("pointerdown",g,D),l[O]("pointermove",h,D),l[O]("pointerup",w,F)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function M(){const{scrollbar:k,el:j}=e;e.params.scrollbar=hn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let y;if(typeof E.el=="string"&&e.isElement&&(y=e.el.querySelector(E.el)),!y&&typeof E.el=="string"){if(y=l.querySelectorAll(E.el),!y.length)return}else y||(y=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&y.length>1&&j.querySelectorAll(E.el).length===1&&(y=j.querySelector(E.el)),y.length>0&&(y=y[0]),y.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let W;y&&(W=y.querySelector(Jt(e.params.scrollbar.dragClass)),W||(W=ui("div",e.params.scrollbar.dragClass),y.append(W))),Object.assign(k,{el:y,dragEl:W}),E.draggable&&P(),y&&y.classList[e.enabled?"remove":"add"](...ti(e.params.scrollbar.lockClass))}function x(){const k=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...ti(e.isHorizontal()?k.horizontalClass:k.verticalClass)),V()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const k=e.params.scrollbar;let{el:j}=e.scrollbar;j=Ye(j),j.forEach(E=>{E.classList.remove(k.horizontalClass,k.verticalClass),E.classList.add(e.isHorizontal()?k.horizontalClass:k.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?B():(M(),m(),p())}),o("update resize observerUpdate lock unlock changeDirection",()=>{m()}),o("setTranslate",()=>{p()}),o("setTransition",(k,j)=>{b(j)}),o("enable disable",()=>{const{el:k}=e.scrollbar;k&&k.classList[e.enabled?"remove":"add"](...ti(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...ti(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ti(e.params.scrollbar.scrollbarDisabledClass)),M(),m(),p()},B=()=>{e.el.classList.add(...ti(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ti(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:B,updateSize:m,setTranslate:p,init:M,destroy:x})}function bn(t){let{swiper:e,extendParams:i,on:o}=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 s=null,l,r,u=new Date().getTime();function a(D){const F=s;F.length!==0&&(F.innerHTML="",F.innerHTML=D)}function c(D){D===void 0&&(D=16);const F=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(D).replace(/x/g,F)}function d(D){D=Ye(D),D.forEach(F=>{F.setAttribute("tabIndex","0")})}function A(D){D=Ye(D),D.forEach(F=>{F.setAttribute("tabIndex","-1")})}function f(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("role",F)})}function p(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("aria-roledescription",F)})}function b(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("aria-controls",F)})}function m(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("aria-label",F)})}function S(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("id",F)})}function v(D,F){D=Ye(D),D.forEach(O=>{O.setAttribute("aria-live",F)})}function g(D){D=Ye(D),D.forEach(F=>{F.setAttribute("aria-disabled",!0)})}function h(D){D=Ye(D),D.forEach(F=>{F.setAttribute("aria-disabled",!1)})}function w(D){if(D.keyCode!==13&&D.keyCode!==32)return;const F=e.params.a11y,O=D.target;if(!(e.pagination&&e.pagination.el&&(O===e.pagination.el||e.pagination.el.contains(D.target))&&!D.target.matches(Jt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const I=Ye(e.navigation.prevEl);Ye(e.navigation.nextEl).includes(O)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(F.lastSlideMessage):a(F.nextSlideMessage)),I.includes(O)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(F.firstSlideMessage):a(F.prevSlideMessage))}e.pagination&&O.matches(Jt(e.params.pagination.bulletClass))&&O.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:D,prevEl:F}=e.navigation;F&&(e.isBeginning?(g(F),A(F)):(h(F),d(F))),D&&(e.isEnd?(g(D),A(D)):(h(D),d(D)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return P()&&e.params.pagination.clickable}function M(){const D=e.params.a11y;P()&&e.pagination.bullets.forEach(F=>{e.params.pagination.clickable&&(d(F),e.params.pagination.renderBullet||(f(F,"button"),m(F,D.paginationBulletMessage.replace(/\{\{index\}\}/,bi(F)+1)))),F.matches(Jt(e.params.pagination.bulletActiveClass))?F.setAttribute("aria-current","true"):F.removeAttribute("aria-current")})}const x=(D,F,O)=>{d(D),D.tagName!=="BUTTON"&&(f(D,"button"),D.addEventListener("keydown",w)),m(D,O),b(D,F)},T=D=>{r&&r!==D.target&&!r.contains(D.target)&&(l=!0),e.a11y.clicked=!0},B=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},k=D=>{u=new Date().getTime()},j=D=>{if(e.a11y.clicked||new Date().getTime()-u<100)return;const F=D.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!F||!e.slides.includes(F))return;r=F;const O=e.slides.indexOf(F)===e.activeIndex,I=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(F);O||I||D.sourceCapabilities&&D.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(F.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(F),0),l=!1)}))},E=()=>{const D=e.params.a11y;D.itemRoleDescriptionMessage&&p(e.slides,D.itemRoleDescriptionMessage),D.slideRole&&f(e.slides,D.slideRole);const F=e.slides.length;D.slideLabelMessage&&e.slides.forEach((O,I)=>{const N=e.params.loop?parseInt(O.getAttribute("data-swiper-slide-index"),10):I,q=D.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,F);m(O,q)})},y=()=>{const D=e.params.a11y;e.el.append(s);const F=e.el;D.containerRoleDescriptionMessage&&p(F,D.containerRoleDescriptionMessage),D.containerMessage&&m(F,D.containerMessage);const O=e.wrapperEl,I=D.id||O.getAttribute("id")||`swiper-wrapper-${c(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(O,I),v(O,N),E();let{nextEl:q,prevEl:X}=e.navigation?e.navigation:{};q=Ye(q),X=Ye(X),q&&q.forEach(R=>x(R,I,D.nextSlideMessage)),X&&X.forEach(R=>x(R,I,D.prevSlideMessage)),V()&&Ye(e.pagination.el).forEach(me=>{me.addEventListener("keydown",w)}),jt().addEventListener("visibilitychange",k),e.el.addEventListener("focus",j,!0),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",B,!0)};function W(){s&&s.remove();let{nextEl:D,prevEl:F}=e.navigation?e.navigation:{};D=Ye(D),F=Ye(F),D&&D.forEach(I=>I.removeEventListener("keydown",w)),F&&F.forEach(I=>I.removeEventListener("keydown",w)),V()&&Ye(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),jt().removeEventListener("visibilitychange",k),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",B,!0))}o("beforeInit",()=>{s=ui("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&y()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&M()}),o("destroy",()=>{e.params.a11y.enabled&&W()})}function Si(t){let{swiper:e,extendParams:i,on:o,emit:s,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 r,u,a=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.autoplay.delay:3e3,d,A=new Date().getTime(),f,p,b,m,S,v,g;function h(F){!e||e.destroyed||!e.wrapperEl||F.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",h),!(g||F.detail&&F.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(c=d,f=!1);const F=e.autoplay.paused?d:A+c-new Date().getTime();e.autoplay.timeLeft=F,s("autoplayTimeLeft",F,F/a),u=requestAnimationFrame(()=>{w()})},C=()=>{let F;return e.virtual&&e.params.virtual.enabled?F=e.slides.filter(I=>I.classList.contains("swiper-slide-active"))[0]:F=e.slides[e.activeIndex],F?parseInt(F.getAttribute("data-swiper-autoplay"),10):void 0},P=F=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(u),w();let O=typeof F>"u"?e.params.autoplay.delay:F;a=e.params.autoplay.delay,c=e.params.autoplay.delay;const I=C();!Number.isNaN(I)&&I>0&&typeof F>"u"&&(O=I,a=I,c=I),d=O;const N=e.params.speed,q=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),s("autoplay")),e.params.cssMode&&(A=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return O>0?(clearTimeout(r),r=setTimeout(()=>{q()},O)):requestAnimationFrame(()=>{q()}),O},V=()=>{A=new Date().getTime(),e.autoplay.running=!0,P(),s("autoplayStart")},M=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(u),s("autoplayStop")},x=(F,O)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),F||(v=!0);const I=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",h):T()};if(e.autoplay.paused=!0,O){S&&(d=e.params.autoplay.delay),S=!1,I();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-A),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),I())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(A=new Date().getTime(),v?(v=!1,P(d)):P(),e.autoplay.paused=!1,s("autoplayResume"))},B=()=>{if(e.destroyed||!e.autoplay.running)return;const F=jt();F.visibilityState==="hidden"&&(v=!0,x(!0)),F.visibilityState==="visible"&&T()},k=F=>{F.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=F=>{F.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",j))},y=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",j))},W=()=>{jt().addEventListener("visibilitychange",B)},D=()=>{jt().removeEventListener("visibilitychange",B)};o("init",()=>{e.params.autoplay.enabled&&(E(),W(),V())}),o("destroy",()=>{y(),D(),e.autoplay.running&&M()}),o("_freeModeStaticRelease",()=>{(b||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?M():x(!0,!0)}),o("beforeTransitionStart",(F,O,I)=>{e.destroyed||!e.autoplay.running||(I||!e.params.autoplay.disableOnInteraction?x(!0,!0):M())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){M();return}p=!0,b=!1,v=!1,m=setTimeout(()=>{v=!0,b=!0,x(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(r),e.params.autoplay.disableOnInteraction){b=!1,p=!1;return}b&&e.params.cssMode&&T(),b=!1,p=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:V,stop:M,pause:x,resume:T})}function Xs(t){let{swiper:e,extendParams:i,emit:o,once:s}=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 a=e.getTranslate();e.setTranslate(a),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function r(){if(e.params.cssMode)return;const{touchEventsData:a,touches:c}=e;a.velocities.length===0&&a.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Wt()})}function u(a){let{currentPos:c}=a;if(e.params.cssMode)return;const{params:d,wrapperEl:A,rtlTranslate:f,snapGrid:p,touchEventsData:b}=e,S=Wt()-b.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(b.velocities.length>1){const M=b.velocities.pop(),x=b.velocities.pop(),T=M.position-x.position,B=M.time-x.time;e.velocity=T/B,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(B>150||Wt()-M.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,b.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let h=e.translate+g;f&&(h=-h);let w=!1,C;const P=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let V;if(h<e.maxTranslate())d.freeMode.momentumBounce?(h+e.maxTranslate()<-P&&(h=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.maxTranslate(),d.loop&&d.centeredSlides&&(V=!0);else if(h>e.minTranslate())d.freeMode.momentumBounce?(h-e.minTranslate()>P&&(h=e.minTranslate()+P),C=e.minTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.minTranslate(),d.loop&&d.centeredSlides&&(V=!0);else if(d.freeMode.sticky){let M;for(let x=0;x<p.length;x+=1)if(p[x]>-h){M=x;break}Math.abs(p[M]-h)<Math.abs(p[M-1]-h)||e.swipeDirection==="next"?h=p[M]:h=p[M-1],h=-h}if(V&&s("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?v=Math.abs((-h-e.translate)/e.velocity):v=Math.abs((h-e.translate)/e.velocity),d.freeMode.sticky){const M=Math.abs((f?-h:h)-e.translate),x=e.slidesSizesGrid[e.activeIndex];M<x?v=d.speed:M<2*x?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating=!0,tn(A,()=>{!e||e.destroyed||!b.allowMomentumBounce||(o("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(C),tn(A,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(h),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,tn(A,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(h),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&o("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:r,onTouchEnd:u}})}const qs=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const s=n.useRef(),{popupDetailData:l}=He();return n.useEffect(()=>{var r,u;o&&((r=s?.current)===null||r===void 0||r.swiper.slideTo((u=l?.multiCheckIndex)!==null&&u!==void 0?u:0))},[l,o]),n.createElement(Kt,{role:"list",tag:"ul",ref:s,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Xs,Us,Wi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var xi=n.memo(qs);const Ys=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:s,className:l,loading:r,alt:u="image"}=t,[a,c]=n.useState(i),d=n.useRef(null),[A,f]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&c(p)}})),n.useEffect(()=>{i&&c(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!A&&d.current&&(d.current.src="",d.current.src=i)};return wt.on(bt.PAGE_DID_SHOW,p),()=>{wt.off(bt.PAGE_DID_SHOW,p)}},[i,A]),n.createElement(n.Fragment,null,!A&&!a&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),a?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:a}),n.createElement("source",{type:"image/webp",srcSet:`${a}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${a}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:l,src:a,style:Object.assign({},s),loading:r,onLoad:p=>{f(!0),o?.(p.target)},alt:u})):n.createElement("img",{ref:d,className:l,src:a,style:Object.assign({},s),loading:r,onLoad:p=>{f(!0),o?.(p.target)},alt:u}))});var Ot=n.memo(Ys);const Gs=({products:t,data:e,defImg:i,style:o,onCLick:s,popupDetailData:l,check:r})=>{var u;const{productView:a}=Lt(),{popupCurTimeRef:c}=He(),d=(A,f)=>{if(r===f)return;const p=t?.[r];a(l,p,p?.bindCta,c.current,l?.index),s?.(f)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(xi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(u=l?t:[0,1,2,3])===null||u===void 0?void 0:u.map((A,f)=>{var p,b,m;return n.createElement(n.Fragment,null,A?.bindCta?n.createElement(Bt,{className:De.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{d(A,f)},key:f},n.createElement(Ot,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:r===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(m=(p=A?.cover)!==null&&p!==void 0?p:(b=A?.homePage)===null||b===void 0?void 0:b[0])!==null&&m!==void 0?m:i})):null)})))};var Ao=n.memo(Gs);function bo(){const[t,e]=n.useState(0),[i,o]=n.useState(0),s=()=>{if(typeof window>"u")return 0;let r=window.innerHeight;return window.visualViewport&&(r=window.visualViewport.height),(r<=0||r>window.screen.height)&&(r=window.innerHeight),r<=0&&(r=document.documentElement.clientHeight),r},l=n.useCallback(()=>{var r;const u=s(),a=(r=window.screen)===null||r===void 0?void 0:r.height,c=navigator.userAgent,d=/Instagram/i.test(c),A=/FBAV|FBAN|FBSN/i.test(c);if(!a||u<=0||!d&&!A){e(u);return}const f=u/a,p=.9,b=a>=900?a*.8:a*.79,m=f>=p&&f!==1,S=m?Math.round(b):u,v=a-Math.round(b);if(m){const g=document.querySelector("#onetrust-banner-sdk");g&&(g.style.bottom=`${v}px`);const h=document.createElement("style");h.id="onetrust-pc-sdk",h.setAttribute("type","text/css"),document.head.appendChild(h);const w=`
|
|
2
2
|
#onetrust-pc-sdk {
|
|
3
3
|
height: ${S}px !important;
|
|
4
4
|
}
|
|
5
5
|
#onetrust-pc-sdk #ot-pc-content{
|
|
6
6
|
bottom: ${v}px !important;
|
|
7
7
|
}
|
|
8
|
-
`;h.textContent=w}if(o(m?v:0),"fundebug"in window){const g={ratio:f,h:b,finalHeight:S,visibleHeight:u,screenHeight:a,isInstagram:d,isFacebook:A,ua:c};window?.fundebug.notify("Collect_Info","resize",{metaData:{systemInfo:g,otherInfo:{}}})}e(S)},[s]);return n.useEffect(()=>{l();const r=["resize","orientationchange","load","DOMContentLoaded"];return r.forEach(u=>{window.addEventListener(u,l)}),window.visualViewport&&(window.visualViewport.addEventListener("resize",l),window.visualViewport.addEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.addEventListener("geometrychange",l),()=>{r.forEach(u=>{window.removeEventListener(u,l)}),window.visualViewport&&(window.visualViewport.removeEventListener("resize",l),window.visualViewport.removeEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.removeEventListener("geometrychange",l)}},[l]),{visibleHeight:t,bottomHeight:i}}const _s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Zs=({visible:t,onClose:e,children:i,modalStyle:o,padding:s,popup:l,schema:r,fullHeight:u,isFullScreen:a=!1,openState:c})=>{var d,A,f,p,b,m,S,v,g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D;const{visibleHeight:F,bottomHeight:O}=bo(),I=n.useRef(null),N=n.useRef(null),q=n.useRef(null),X=n.useRef(null),Y=n.useRef(null),R=u||F,me=R*.2,ae=a?R:R*.8,[J,Te]=n.useState(me),[Oe,Fe]=n.useState(!1),ce=n.useRef(null),{globalConfig:de,popupDetailData:Ze}=He(),{schema:Ue,popup:Xe}=ei(),[_e,lt]=n.useState(15);n.useEffect(()=>{const ee=document.getElementById("sxp-render"),Z=document.getElementById("pb-modal");Z?ce.current=Z:(ce.current=document.createElement("div"),ce.current.setAttribute("id","pb-modal"),ee?.appendChild(ce.current))},[]);const Ke=n.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),ke=n.useMemo(()=>{var ee,Z,le;const we=r??Ue;return(le=(Z=(ee=we?.sxpPageConf)===null||ee===void 0?void 0:ee.globalConfig)===null||Z===void 0?void 0:Z.popupList)===null||le===void 0?void 0:le.find($=>$?.id===l?.id)},[l,r,Ue]),et=n.useMemo(()=>{var ee,Z;return((Z=(ee=ke?.item)===null||ee===void 0?void 0:ee.event)===null||Z===void 0?void 0:Z.isScrollFullScreen)||!1},[ke]);n.useEffect(()=>{Ke?Fe(!0):setTimeout(()=>{Fe(!1),Te(me)},l?.duration)},[Ke,l]);const kt=n.useCallback(()=>i,[Xe,c,de,r]);if(n.useEffect(()=>{const ee=Z=>{const le=Z?.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])'),we=le?.[0],ye=le?.[le?.length-1],$=9;Z.addEventListener("keydown",function(z){(z.key==="Escape"||z.key==="Esc")&&(Ve(),z.preventDefault()),(z.key==="Tab"||z.keyCode===$)&&(z.shiftKey?document?.activeElement===we&&(ye?.focus(),z.preventDefault()):document?.activeElement===ye&&(we?.focus(),z.preventDefault()))}),we?.focus()};return Y?.current&&ee(Y?.current),()=>{var Z;(Z=Y?.current)===null||Z===void 0||Z.removeEventListener("keydown",ee)}},[Y,Oe,Xe]),!ce.current)return null;const Ve=Re.debounce(()=>{e?.()},300),We=ee=>{I.current=ee.touches[0],N.current=ee.touches[0],q.current=!0},ze=ee=>{requestAnimationFrame(()=>{var Z;if(q.current&&((Z=X?.current)===null||Z===void 0?void 0:Z.scrollTop)===0){const le=ee.touches[0].clientY,we=ee.touches[0].clientX,ye=I.current.clientY-le;I.current=ee.touches[0];const $=le-N.current.clientY,z=we-N.current.clientX;if(Math.abs(z)>Math.abs($))return;const Ne=J-ye;Ne>0&&Te(Ne)}})},K=ee=>{var Z;if(q.current&&((Z=X?.current)===null||Z===void 0?void 0:Z.scrollTop)===0){const le=ee.changedTouches[0].clientY-N.current.clientY,we=ee.changedTouches[0].clientX-N.current.clientX;if(Math.abs(we)>Math.abs(le))return;const ye=N.current.clientY-I.current.clientY;ye>0?Te(0):J<me&&ye<0?Te(me):J>=me&&ye<0&&e?.()}q.current=!1};return Mn.createPortal(n.createElement(n.Fragment,null,Oe&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ke?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)",bottom:O+"px"},o),onClick:Ve},n.createElement("div",{style:{position:"relative",left:`${(p=(f=(A=(d=ke?.item)===null||d===void 0?void 0:d.props)===null||A===void 0?void 0:A.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&p!==void 0?p:0}px`,right:`${(v=(S=(m=(b=ke?.item)===null||b===void 0?void 0:b.props)===null||m===void 0?void 0:m.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${((C=(w=(h=(g=ke?.item)===null||g===void 0?void 0:g.props)===null||h===void 0?void 0:h.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0)+O}px`,overflow:"hidden",width:`calc(100% - ${((x=(M=(V=(P=ke?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||M===void 0?void 0:M.horizontalMargin)!==null&&x!==void 0?x:0)*2}px)`,height:"100%"}},n.createElement("div",Object.assign({ref:Y,className:`modal-container ${Ke?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=ke?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:s,animationDuration:((B=l?.duration)!==null&&B!==void 0?B:0)/1e3+"s"},et&&{transform:`translateY(${J}px)`}),{overflow:"hidden",borderRadius:`${(y=(E=(j=(k=ke?.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&y!==void 0?y:0}px`,zIndex:9}),onClick:ee=>{ee.stopPropagation(),ee.preventDefault()}},et&&{onTouchMove:ze,onTouchStart:We,onTouchEnd:K}),n.createElement("div",Object.assign({id:"modal-content",ref:X,style:{height:et?R:ae,overflow:et&&J<=0||!et?"auto":"hidden",zIndex:1}},((D=(W=ke?.item)===null||W===void 0?void 0:W.props)===null||D===void 0?void 0:D.enableFixedCloseButton)&&{onScroll:ee=>{var Z;lt(15-((Z=ee?.target)===null||Z===void 0?void 0:Z.scrollTop))}}),kt()),n.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:_e}},n.createElement("img",{src:de?.popupCloseIcon||_s,alt:"close button",className:"modal-icon"})))))),ce.current)};var vi=n.memo(Zs);const Ks=({text:t,maxStr:e=108,style:i,className:o,onClick:s,foldText:l,unfoldText:r,isPost:u,onChange:a})=>{const[c,d]=n.useState(!1),[A,f]=n.useState(!1),p=i||{},{lineClamp:b}=p,m=$e(p,["lineClamp"]),S=Number(b||2),v=n.useRef(null),g=n.useRef(null),h=n.useRef(),w=()=>{d(!c)},C=n.useCallback(()=>{!v.current||!g.current||!u||!t||c||requestAnimationFrame(()=>{if(!v.current)return;v.current.style.position="relative";const P=v.current.getBoundingClientRect().height,V=g.current.getBoundingClientRect().height,M=P>V+1;f(M),v.current.style.position="absolute"})},[u,t,c]);return n.useEffect(()=>{if(v.current)return h.current=new ResizeObserver(C),h.current.observe(v.current),C(),()=>{var P;(P=h.current)===null||P===void 0||P.disconnect()}},[C]),n.createElement("div",{className:o,style:Object.assign(Object.assign({},m),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},n.createElement("div",{ref:g,style:Object.assign(Object.assign({},!c&&u&&{WebkitLineClamp:S,lineClamp:S,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:Pe(t?.replace(/\n/g,"</br>"),m)}}),u&&n.createElement("div",{ref:v,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:Pe(t?.replace(/\n/g,"</br>"),m)}}),t&&u&&A&&n.createElement("button",{"aria-label":c?r||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:s??w,dangerouslySetInnerHTML:{__html:Pe(c?r||"show less":l||"show more",m)}}))};var Ti=n.memo(Ks);const Js=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:o,file:s,src:l}=t;switch(i){case 2:return o||null;case 3:return l||null;default:return s&&s.length>0?(e=s[0])===null||e===void 0?void 0:e.url:null}},Qs=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Ei=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:o,style:s})=>{var l,r,u,a,c,d,A,f;let p="";if((!t?.currency||!t?.price)&&o)return null;let b=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof b!="number")return p;let m=i?.priceSymbol,S=t?.currency?(u=(r=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||r===void 0?void 0:r.toUpperCase())!==null&&u!==void 0?u:"":"$";const v=e===void 0||e;let g=b?.toString();m?.showTwoDecimalPoint&&(g=b?.toFixed(2));let h=(a=g?.indexOf("."))!==null&&a!==void 0?a:-1;if(v){p=(c=b?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let w=0,C=h??p?.length;m?.millesimalSymbol==="."?p=p?.replace(/\,/g,function(P,V){return V>=w&&V<C?".":P}):m?.millesimalSymbol===" "&&(p=p?.replace(","," "))}else p=`${m?.showTwoDecimalPoint?b?.toFixed(2):b}`;return m?.decimalPoint===","&&h>0&&(p=p=p?.replace(/\./g,function(w,C){return C>=h&&C<p?.length?",":w})),S=`<span style="font-family:${(f=(A=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&A!==void 0?A:s?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${S}</span>`,p=Pe(p,s),m?.currencyPosition&&m?.currencyPosition!=="none"?p=m?.currencyPosition==="left"?S+p:p+S:m?.currencyPosition!=="none"&&(p=S+p),p},Rs=t=>{var e,i,o,s,l,r,u,a,c,d,A,f,p,b,m,S,v,g,h,w,C,P,V,M,{content:x,style:T,bgImg:B,onClick:k,schema:j,isDefault:E,bottom_image:y,tipText:W,isPost:D,viewTime:F,rec:O,swiper:I,commodityStyles:N,buttonStyle:q,index:X,commodityGroup:Y,popupBg:R,iframeIcon:me,commodityImgRatio:ae,isTel:J,iframeBgColor:Te,isActive:Oe=!0}=t,Fe=$e(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:ce,popupDetailData:de,isPreview:Ze,bffFbReport:Ue,popupCurTimeRef:Xe,checkCommodityIndexRef:_e,globalConfig:lt,ctaEvent:Ke}=He(),{jumpToWeb:ke,productView:et}=Lt(),kt=n.useRef(null),[Ve,We]=n.useState(!1),[ze,K]=n.useState(!1),[ee,Z]=n.useState((e=de?.multiCheckIndex)!==null&&e!==void 0?e:0),le=n.useRef(),[we,ye]=n.useState(0),$=D?O:de;let z=D?$?.product:(o=(i=$?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(l=(s=$?.video)===null||s===void 0?void 0:s.bindProducts)===null||l===void 0?void 0:l[0],Ne=D?(r=$?.product)===null||r===void 0?void 0:r.bindCta:(c=(a=(u=$?.video)===null||u===void 0?void 0:u.bindProduct)===null||a===void 0?void 0:a.bindCta)!==null&&c!==void 0?c:(f=(A=(d=$?.video)===null||d===void 0?void 0:d.bindProducts)===null||A===void 0?void 0:A[0])===null||f===void 0?void 0:f.bindCta;const tt=D?X:de?.index;if(!D&&Y?.open&&(!((p=$?.video)===null||p===void 0)&&p.bindProducts)&&((m=(b=$?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0?void 0:m.length)>0){_e.current=ee;const fe=(S=$?.video)===null||S===void 0?void 0:S.bindProducts[ee];z=fe,Ne=fe?.bindCta}const Je=fe=>{z?.link&&(ke(fe,$,z,Ne,tt),D?Ke?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},$,z,tt):et($,z,Ne,F||kt.current,tt),window.location.href=window.getJointUtmLink(z.link))};n.useEffect(()=>{Oe&&(Ue?.({eventName:"ProductView",product:z}),Ue?.({eventName:"PageView",product:z}))},[Oe,Ue]),n.useEffect(()=>{const fe=()=>{kt.current=new Date};return fe(),window.addEventListener("pageshow",fe),()=>{window.removeEventListener("pageshow",fe)}},[]);const st=Ei({product:z,enableFormattedPrice:(v=N?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:lt,style:N?.price}),Qe=(Ze?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((h=R?.horizontalMargin)!==null&&h!==void 0?h:0)*2,Be=ae?Qe*(ae.h/ae.w):Qe,it=({isPost:fe})=>{var be,ft,qt,zt;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:gt(N?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:Pe((be=z?.collection)!==null&&be!==void 0?be:"Tiffany Lock",N?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:gt(N?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:Pe((ft=z?.title)!==null&&ft!==void 0?ft:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:gt(N?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:st??""}}),n.createElement("div",{hidden:!!z&&!z?.taxInfo,style:gt(N?.taxInfo),dangerouslySetInnerHTML:{__html:Pe((qt=z?.taxInfo)!==null&&qt!==void 0?qt:"\u7A0E\u8D39",N?.taxInfo)}}),n.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},n.createElement(Ti,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>We(!0),isPost:fe,text:(zt=z?.info)!==null&&zt!==void 0?zt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
|
8
|
+
`;h.textContent=w}o(m?v:0),e(S)},[s]);return n.useEffect(()=>{l();const r=["resize","orientationchange","load","DOMContentLoaded"];return r.forEach(u=>{window.addEventListener(u,l)}),window.visualViewport&&(window.visualViewport.addEventListener("resize",l),window.visualViewport.addEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.addEventListener("geometrychange",l),()=>{r.forEach(u=>{window.removeEventListener(u,l)}),window.visualViewport&&(window.visualViewport.removeEventListener("resize",l),window.visualViewport.removeEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.removeEventListener("geometrychange",l)}},[l]),{visibleHeight:t,bottomHeight:i}}const _s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Zs=({visible:t,onClose:e,children:i,modalStyle:o,padding:s,popup:l,schema:r,fullHeight:u,isFullScreen:a=!1,openState:c})=>{var d,A,f,p,b,m,S,v,g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D;const{visibleHeight:F,bottomHeight:O}=bo(),I=n.useRef(null),N=n.useRef(null),q=n.useRef(null),X=n.useRef(null),Y=n.useRef(null),R=u||F,me=R*.2,ae=a?R:R*.8,[J,Te]=n.useState(me),[Oe,Fe]=n.useState(!1),ce=n.useRef(null),{globalConfig:de,popupDetailData:Ze}=He(),{schema:Ue,popup:Xe}=ei(),[_e,lt]=n.useState(15);n.useEffect(()=>{const ee=document.getElementById("sxp-render"),Z=document.getElementById("pb-modal");Z?ce.current=Z:(ce.current=document.createElement("div"),ce.current.setAttribute("id","pb-modal"),ee?.appendChild(ce.current))},[]);const Ke=n.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),ke=n.useMemo(()=>{var ee,Z,le;const we=r??Ue;return(le=(Z=(ee=we?.sxpPageConf)===null||ee===void 0?void 0:ee.globalConfig)===null||Z===void 0?void 0:Z.popupList)===null||le===void 0?void 0:le.find($=>$?.id===l?.id)},[l,r,Ue]),et=n.useMemo(()=>{var ee,Z;return((Z=(ee=ke?.item)===null||ee===void 0?void 0:ee.event)===null||Z===void 0?void 0:Z.isScrollFullScreen)||!1},[ke]);n.useEffect(()=>{Ke?Fe(!0):setTimeout(()=>{Fe(!1),Te(me)},l?.duration)},[Ke,l]);const kt=n.useCallback(()=>i,[Xe,c,de,r]);if(n.useEffect(()=>{const ee=Z=>{const le=Z?.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])'),we=le?.[0],ye=le?.[le?.length-1],$=9;Z.addEventListener("keydown",function(z){(z.key==="Escape"||z.key==="Esc")&&(Ve(),z.preventDefault()),(z.key==="Tab"||z.keyCode===$)&&(z.shiftKey?document?.activeElement===we&&(ye?.focus(),z.preventDefault()):document?.activeElement===ye&&(we?.focus(),z.preventDefault()))}),we?.focus()};return Y?.current&&ee(Y?.current),()=>{var Z;(Z=Y?.current)===null||Z===void 0||Z.removeEventListener("keydown",ee)}},[Y,Oe,Xe]),!ce.current)return null;const Ve=Re.debounce(()=>{e?.()},300),We=ee=>{I.current=ee.touches[0],N.current=ee.touches[0],q.current=!0},ze=ee=>{requestAnimationFrame(()=>{var Z;if(q.current&&((Z=X?.current)===null||Z===void 0?void 0:Z.scrollTop)===0){const le=ee.touches[0].clientY,we=ee.touches[0].clientX,ye=I.current.clientY-le;I.current=ee.touches[0];const $=le-N.current.clientY,z=we-N.current.clientX;if(Math.abs(z)>Math.abs($))return;const Ne=J-ye;Ne>0&&Te(Ne)}})},K=ee=>{var Z;if(q.current&&((Z=X?.current)===null||Z===void 0?void 0:Z.scrollTop)===0){const le=ee.changedTouches[0].clientY-N.current.clientY,we=ee.changedTouches[0].clientX-N.current.clientX;if(Math.abs(we)>Math.abs(le))return;const ye=N.current.clientY-I.current.clientY;ye>0?Te(0):J<me&&ye<0?Te(me):J>=me&&ye<0&&e?.()}q.current=!1};return Mn.createPortal(n.createElement(n.Fragment,null,Oe&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ke?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)",bottom:O+"px"},o),onClick:Ve},n.createElement("div",{style:{position:"relative",left:`${(p=(f=(A=(d=ke?.item)===null||d===void 0?void 0:d.props)===null||A===void 0?void 0:A.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&p!==void 0?p:0}px`,right:`${(v=(S=(m=(b=ke?.item)===null||b===void 0?void 0:b.props)===null||m===void 0?void 0:m.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${((C=(w=(h=(g=ke?.item)===null||g===void 0?void 0:g.props)===null||h===void 0?void 0:h.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0)+O}px`,overflow:"hidden",width:`calc(100% - ${((x=(M=(V=(P=ke?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||M===void 0?void 0:M.horizontalMargin)!==null&&x!==void 0?x:0)*2}px)`,height:"100%"}},n.createElement("div",Object.assign({ref:Y,className:`modal-container ${Ke?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=ke?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:s,animationDuration:((B=l?.duration)!==null&&B!==void 0?B:0)/1e3+"s"},et&&{transform:`translateY(${J}px)`}),{overflow:"hidden",borderRadius:`${(y=(E=(j=(k=ke?.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&y!==void 0?y:0}px`,zIndex:9}),onClick:ee=>{ee.stopPropagation(),ee.preventDefault()}},et&&{onTouchMove:ze,onTouchStart:We,onTouchEnd:K}),n.createElement("div",Object.assign({id:"modal-content",ref:X,style:{height:et?R:ae,overflow:et&&J<=0||!et?"auto":"hidden",zIndex:1}},((D=(W=ke?.item)===null||W===void 0?void 0:W.props)===null||D===void 0?void 0:D.enableFixedCloseButton)&&{onScroll:ee=>{var Z;lt(15-((Z=ee?.target)===null||Z===void 0?void 0:Z.scrollTop))}}),kt()),n.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:_e}},n.createElement("img",{src:de?.popupCloseIcon||_s,alt:"close button",className:"modal-icon"})))))),ce.current)};var vi=n.memo(Zs);const Ks=({text:t,maxStr:e=108,style:i,className:o,onClick:s,foldText:l,unfoldText:r,isPost:u,onChange:a})=>{const[c,d]=n.useState(!1),[A,f]=n.useState(!1),p=i||{},{lineClamp:b}=p,m=$e(p,["lineClamp"]),S=Number(b||2),v=n.useRef(null),g=n.useRef(null),h=n.useRef(),w=()=>{d(!c)},C=n.useCallback(()=>{!v.current||!g.current||!u||!t||c||requestAnimationFrame(()=>{if(!v.current)return;v.current.style.position="relative";const P=v.current.getBoundingClientRect().height,V=g.current.getBoundingClientRect().height,M=P>V+1;f(M),v.current.style.position="absolute"})},[u,t,c]);return n.useEffect(()=>{if(v.current)return h.current=new ResizeObserver(C),h.current.observe(v.current),C(),()=>{var P;(P=h.current)===null||P===void 0||P.disconnect()}},[C]),n.createElement("div",{className:o,style:Object.assign(Object.assign({},m),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},n.createElement("div",{ref:g,style:Object.assign(Object.assign({},!c&&u&&{WebkitLineClamp:S,lineClamp:S,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:Pe(t?.replace(/\n/g,"</br>"),m)}}),u&&n.createElement("div",{ref:v,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:Pe(t?.replace(/\n/g,"</br>"),m)}}),t&&u&&A&&n.createElement("button",{"aria-label":c?r||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:s??w,dangerouslySetInnerHTML:{__html:Pe(c?r||"show less":l||"show more",m)}}))};var Ti=n.memo(Ks);const Js=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:o,file:s,src:l}=t;switch(i){case 2:return o||null;case 3:return l||null;default:return s&&s.length>0?(e=s[0])===null||e===void 0?void 0:e.url:null}},Qs=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Ei=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:o,style:s})=>{var l,r,u,a,c,d,A,f;let p="";if((!t?.currency||!t?.price)&&o)return null;let b=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof b!="number")return p;let m=i?.priceSymbol,S=t?.currency?(u=(r=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||r===void 0?void 0:r.toUpperCase())!==null&&u!==void 0?u:"":"$";const v=e===void 0||e;let g=b?.toString();m?.showTwoDecimalPoint&&(g=b?.toFixed(2));let h=(a=g?.indexOf("."))!==null&&a!==void 0?a:-1;if(v){p=(c=b?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let w=0,C=h??p?.length;m?.millesimalSymbol==="."?p=p?.replace(/\,/g,function(P,V){return V>=w&&V<C?".":P}):m?.millesimalSymbol===" "&&(p=p?.replace(","," "))}else p=`${m?.showTwoDecimalPoint?b?.toFixed(2):b}`;return m?.decimalPoint===","&&h>0&&(p=p=p?.replace(/\./g,function(w,C){return C>=h&&C<p?.length?",":w})),S=`<span style="font-family:${(f=(A=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&A!==void 0?A:s?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${S}</span>`,p=Pe(p,s),m?.currencyPosition&&m?.currencyPosition!=="none"?p=m?.currencyPosition==="left"?S+p:p+S:m?.currencyPosition!=="none"&&(p=S+p),p},Rs=t=>{var e,i,o,s,l,r,u,a,c,d,A,f,p,b,m,S,v,g,h,w,C,P,V,M,{content:x,style:T,bgImg:B,onClick:k,schema:j,isDefault:E,bottom_image:y,tipText:W,isPost:D,viewTime:F,rec:O,swiper:I,commodityStyles:N,buttonStyle:q,index:X,commodityGroup:Y,popupBg:R,iframeIcon:me,commodityImgRatio:ae,isTel:J,iframeBgColor:Te,isActive:Oe=!0}=t,Fe=$e(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:ce,popupDetailData:de,isPreview:Ze,bffFbReport:Ue,popupCurTimeRef:Xe,checkCommodityIndexRef:_e,globalConfig:lt,ctaEvent:Ke}=He(),{jumpToWeb:ke,productView:et}=Lt(),kt=n.useRef(null),[Ve,We]=n.useState(!1),[ze,K]=n.useState(!1),[ee,Z]=n.useState((e=de?.multiCheckIndex)!==null&&e!==void 0?e:0),le=n.useRef(),[we,ye]=n.useState(0),$=D?O:de;let z=D?$?.product:(o=(i=$?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(l=(s=$?.video)===null||s===void 0?void 0:s.bindProducts)===null||l===void 0?void 0:l[0],Ne=D?(r=$?.product)===null||r===void 0?void 0:r.bindCta:(c=(a=(u=$?.video)===null||u===void 0?void 0:u.bindProduct)===null||a===void 0?void 0:a.bindCta)!==null&&c!==void 0?c:(f=(A=(d=$?.video)===null||d===void 0?void 0:d.bindProducts)===null||A===void 0?void 0:A[0])===null||f===void 0?void 0:f.bindCta;const tt=D?X:de?.index;if(!D&&Y?.open&&(!((p=$?.video)===null||p===void 0)&&p.bindProducts)&&((m=(b=$?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0?void 0:m.length)>0){_e.current=ee;const fe=(S=$?.video)===null||S===void 0?void 0:S.bindProducts[ee];z=fe,Ne=fe?.bindCta}const Je=fe=>{z?.link&&(ke(fe,$,z,Ne,tt),D?Ke?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},$,z,tt):et($,z,Ne,F||kt.current,tt),window.location.href=window.getJointUtmLink(z.link))};n.useEffect(()=>{Oe&&(Ue?.({eventName:"ProductView",product:z}),Ue?.({eventName:"PageView",product:z}))},[Oe,Ue]),n.useEffect(()=>{const fe=()=>{kt.current=new Date};return fe(),window.addEventListener("pageshow",fe),()=>{window.removeEventListener("pageshow",fe)}},[]);const st=Ei({product:z,enableFormattedPrice:(v=N?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:lt,style:N?.price}),Qe=(Ze?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((h=R?.horizontalMargin)!==null&&h!==void 0?h:0)*2,Be=ae?Qe*(ae.h/ae.w):Qe,it=({isPost:fe})=>{var be,ft,qt,zt;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:gt(N?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:Pe((be=z?.collection)!==null&&be!==void 0?be:"Tiffany Lock",N?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:gt(N?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:Pe((ft=z?.title)!==null&&ft!==void 0?ft:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:gt(N?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:st??""}}),n.createElement("div",{hidden:!!z&&!z?.taxInfo,style:gt(N?.taxInfo),dangerouslySetInnerHTML:{__html:Pe((qt=z?.taxInfo)!==null&&qt!==void 0?qt:"\u7A0E\u8D39",N?.taxInfo)}}),n.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},n.createElement(Ti,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>We(!0),isPost:fe,text:(zt=z?.info)!==null&&zt!==void 0?zt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
|
9
9
|
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
|
10
10
|
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
|
11
11
|
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
|
@@ -14,5 +14,5 @@ Made in Italy`})),ct=n.useCallback(Ee=>Ee?.lineClamp?Object.assign(Object.assign
|
|
|
14
14
|
return props?.button${g+1}${h}
|
|
15
15
|
} else {
|
|
16
16
|
return props?.button${g+1}
|
|
17
|
-
}`)(r,h)}catch{}},[r]),m=n.useCallback(g=>{const h=b(g),w=h?.value;w&&(h?.linkType==="recommendFlow"?(c?.(w),a.current=new Date):new Function(w)())},[r]),S=n.useCallback(()=>{d.current=new Date,u?.({eventInfo:{eventSubject:"startMultiPost",eventDescription:"startMultiPost",contentFormat:"image",position:"0",traceInfo:p}})},[]),v=n.useCallback(g=>{a.current=new Date,u?.({eventInfo:{eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:p,nextStep:g||"others",timeOnSite:Math.floor((new Date-d?.current)/1e3)+""}})},[]);return n.useEffect(()=>{A?(S(),f.current=!0):f.current&&v()},[A]),n.useEffect(()=>{if(!A)return;const g=()=>S(),h=()=>v();return wt.on(bt.PAGE_DID_SHOW,g),wt.on(bt.PAGE_DID_HIDE,h),()=>{wt.off(bt.PAGE_DID_SHOW,g),wt.off(bt.PAGE_DID_HIDE,h)}},[A]),n.createElement("div",{className:"multiposts",style:Object.assign(Object.assign({},s),Qs(o))},Array.from({length:4},(g,h)=>n.createElement("button",{hidden:!b(h,"Url"),className:"multiposts-btn",role:"button","aria-label":`multiposts-${h+1}`,onClick:()=>m(h)},n.createElement("img",{className:"multiposts-btn-img",src:b(h,"Url"),alt:`multiposts-img-${h+1}`}))))};var wn=n.memo(cd),vd=[{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 pd=mt(wn,{displayName:"MultiPosts",icon:"",category:"base",type:"MultiPosts",related:{settingRender:ud,interactionRender:vd},defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var zi=Object.freeze({__proto__:null,AniLink:Wa,AniLinkPopup:Ya,Appoint:jr,AppointForm:pl,Click:od,Commodity:Pr,CommodityDetail:er,CommodityDetailDiroNew:ur,CommodityDiro:Xr,CommodityDiroNew:Zr,CommodityList:hr,Consent:Na,ConsentDetail:xr,Display:Ra,HashTag:La,Iframe:yr,Link:Fr,MultiCommodity:oa,MultiCommodityDiro:$r,MultiCommodityDiroNew:da,MultiPosts:pd,NineCommodity:pa,Prompt:lr,Swipe:dd});const md="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",fd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",hd=t=>{var e,{active:i,activeIcon:o,unActicveIcon:s,recData:l,position:r}=t,u=$e(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:a,mutateUnlike:c,bffEventReport:d,setCacheRtcList:A,cacheRtcList:f}=He(),[p,b]=n.useState((e=f?.[r])===null||e===void 0?void 0:e.isCollected),m=Et(fd),S=Et(md),v=Re.debounce(()=>ot(void 0,void 0,void 0,function*(){var g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D,F,O,I,N,q,X;if(p){b(!1);const Y=(w=yield c?.({videoItemId:(h=(g=l?.video)===null||g===void 0?void 0:g.itemId)!==null&&h!==void 0?h:""}))!==null&&w!==void 0?w:!1;if(d?.({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:(M=(V=l?.video)===null||V===void 0?void 0:V.title)!==null&&M!==void 0?M:"",contentTags:JSON.stringify((T=(x=l?.video)===null||x===void 0?void 0:x.tags)!==null&&T!==void 0?T:[]),position:r+"",contentFormat:!((B=l?.video)===null||B===void 0)&&B.url?"video":"image",traceInfo:(k=l?.video)===null||k===void 0?void 0:k.traceInfo}}),!Y)b(!0);else{const R=(j=f?.map((me,ae)=>(ae===r&&(me.isCollected=!1),me)))!==null&&j!==void 0?j:[];A?.(R)}}else{b(!0);const Y=(E=yield a?.({content:JSON.stringify(l)}))!==null&&E!==void 0?E:!1;if(d?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(W=(y=l?.video)===null||y===void 0?void 0:y.itemId)!==null&&W!==void 0?W:"",contentName:(F=(D=l?.video)===null||D===void 0?void 0:D.title)!==null&&F!==void 0?F:"",contentTags:JSON.stringify((I=(O=l?.video)===null||O===void 0?void 0:O.tags)!==null&&I!==void 0?I:[]),position:r+"",contentFormat:!((N=l?.video)===null||N===void 0)&&N.url?"video":"image",traceInfo:(q=l?.video)===null||q===void 0?void 0:q.traceInfo}}),!Y)b(!1);else{const R=(X=f?.map((me,ae)=>(ae===r&&(me.isCollected=!0),me)))!==null&&X!==void 0?X:[];A?.(R)}}}),200);return n.createElement("button",Object.assign({},u,{"aria-label":"like",onClick:v}),n.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:p?o||m:s||S,alt:"icon"}))};var Sn=n.memo(hd),Ad="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/iM5kyhRk0NvAgX6cWfRKBNLLdXYZiLCiEhCHQwIACH5BAkDAP8ALE4AGAATAA4AAAhkAP8JBOcGXBeCxQQqXCiwWCJwpRxClMhwYMGDFwka1Kgw1MOIHyWCnBjlX8aTG1H+mxiyJ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QJBAD/ACxAABcAEAAMAAAIWQD/CfyXqFSxROAMFko0UOATcF3AuYEoESK3hgkPZkRoMBE2gRQnRhRZsUuofx03qlSIpKRLkhMTcdSYsmbLkSFzdrlYk6ZPgcVg6gS3ZuBKnwwb/hO6s2FAACH5BAkEAP8ALEMAFwAPAAwAAAhTAP8JLJQIXKliBUsJXPgPnBtwXRxClLgQoUGLBxMmavgwYkeJHv8lxEiy4JqJH1NCLJbx4siRHlHK9FiqkMubLQXG3CnRxsKXN90w/IcEJMWFAQEAOw==";const mi=(()=>{if(typeof document>"u")return;const t=document.createElement("div"),e=Ln.render(n.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})(),bd=n.forwardRef(({rec:t,index:e,height:i,data:o,muted:s,activeIndex:l,videoPostConfig:r,videoPlayIcon:u,loopPlay:a,swiperRef:c,visibleHeight:d},A)=>{var f,p;const[b,m]=n.useState(!1),{bffEventReport:S,sxpParameter:v,waterFallData:g,openHashtag:h,bffFbReport:w,isDiyH5:C}=He(),P=n.useRef(0),[V,M]=n.useState(!1),{isActive:x}=yi(),T=n.useRef(null),[B,k]=n.useState(""),[j,E]=n.useState(!1),y=n.useRef(),W=`pb-cache-video-${e}`,D=n.useRef(null),F=n.useRef(null),O=n.useRef(),I=n.useRef(),N=n.useRef(!0),q=n.useRef(a),X=t.video.scene,Y=X?.mediaUrl||((f=t?.video)===null||f===void 0?void 0:f.url),R=X?.mediaUrl?X?.cover:(p=t?.video)===null||p===void 0?void 0:p.cover,me=R||v?.placeholder_image;n.useImperativeHandle(A,()=>({setLoopPlay(K){q.current=K}})),n.useEffect(()=>{q.current=a},[a]);const ae=n.useMemo(()=>r?.mode==="2",[r]),J=n.useMemo(()=>{var K;return r?.mode==="2"?`translateY(-${50+((K=r?.offsetTop)!==null&&K!==void 0?K:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[r]),Te=n.useMemo(()=>R||B,[B,t]),Oe=n.useMemo(()=>ae?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[ae]),Fe=n.useMemo(()=>r?.bgWay==="1",[r]),ce=n.useMemo(()=>Fe&&r?.bgColor?{backgroundColor:r?.bgColor}:{},[r,Fe]);n.useEffect(()=>{y?.current&&(y.current.muted=s)},[s,y?.current]);const de=n.useCallback(()=>{var K;y?.current&&((K=y?.current)===null||K===void 0||K.play())},[y?.current]),Ze=Et("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),Ue=n.useCallback(()=>{y?.current&&(E(!1),M(!0))},[]),Xe=n.useCallback(()=>ot(void 0,void 0,void 0,function*(){var K,ee,Z,le,we,ye,$,z,Ne,tt,Je,st,Qe;if(!y?.current)return;m(!1);const Be=o[e];if(Be&&(!((K=y?.current)===null||K===void 0)&&K.duration)){P.current=((ee=y?.current)===null||ee===void 0?void 0:ee.currentTime)||0;const it=((le=(Z=y?.current)===null||Z===void 0?void 0:Z.duration)!==null&&le!==void 0?le:0).toFixed(2),ct=((ye=(we=y?.current)===null||we===void 0?void 0:we.currentTime)!==null&&ye!==void 0?ye:0).toFixed(2),gt=N?.current?"0":"1";S?.({eventInfo:Object.assign({eventSubject:"playVideo",eventDescription:"User played the video",contentId:(z=($=Be?.video)===null||$===void 0?void 0:$.itemId)!==null&&z!==void 0?z:"",contentName:(tt=(Ne=Be?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&tt!==void 0?tt:"",playType:gt,startTime:ct,videoDuration:it,contentTags:JSON.stringify((st=(Je=Be?.video)===null||Je===void 0?void 0:Je.tags)!==null&&st!==void 0?st:[]),position:e+"",contentFormat:"video",traceInfo:(Qe=Be?.video)===null||Qe===void 0?void 0:Qe.traceInfo},N?.current&&{loadTime:I?.current-O?.current+""})}),N.current=!1}}),[S,o,e,N,y?.current]),_e=n.useCallback(()=>{C&&(y.current.currentTime=X?.startTime)},[]),lt=n.useCallback(()=>{if(!y?.current||B||!ae||(y.current.style.objectFit="contain",R||!T||!T.current||Fe))return;const K=()=>{const ee=T?.current,Z=ee.getContext("2d"),le=window?.innerWidth,we=d||window?.innerHeight;ee.height=we,ee.width=le,Z?.drawImage(y.current,0,0,ee.width,ee.height),k(ee.toDataURL())};K(),setTimeout(()=>{K()},500)},[y.current,Fe,t,B,ae,d]),Ke=n.useCallback(()=>{y.current&&(_e(),I.current=new Date,Xe(),lt())},[y.current,lt,Xe]),ke=n.useCallback(K=>()=>{var ee,Z,le,we,ye,$;if(!y.current||!V)return;const z=(ee=y?.current)===null||ee===void 0?void 0:ee.paused;switch(K){case"start":if(!z)return;(Z=y?.current)===null||Z===void 0||Z.play(),m(!1);break;case"pause":if(z)return;(le=y?.current)===null||le===void 0||le.pause(),m(!0);break;default:z?(C&&Math.round((we=y?.current)===null||we===void 0?void 0:we.currentTime)>=X?.endTime&&(y.current.currentTime=X?.startTime),(ye=y?.current)===null||ye===void 0||ye.play()):($=y?.current)===null||$===void 0||$.pause(),m(!z);break}},[V,y?.current]),et=n.useCallback(()=>{var K,ee,Z,le,we,ye,$,z,Ne,tt,Je,st,Qe;if(!y?.current||l!==e)return;m(!0);const Be=o[e],it=((ee=(K=y?.current)===null||K===void 0?void 0:K.duration)!==null&&ee!==void 0?ee:0).toFixed(2),ct=((le=(Z=y?.current)===null||Z===void 0?void 0:Z.currentTime)!==null&&le!==void 0?le:0).toFixed(2);if(!((we=y?.current)===null||we===void 0)&&we.duration){const gt=(((ye=y?.current)===null||ye===void 0?void 0:ye.currentTime)-P.current).toFixed(2);S?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(z=($=Be?.video)===null||$===void 0?void 0:$.itemId)!==null&&z!==void 0?z:"",contentName:(tt=(Ne=Be?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&tt!==void 0?tt:"",endTime:ct,videoDuration:it,playDuration:gt,contentTags:JSON.stringify((st=(Je=Be?.video)===null||Je===void 0?void 0:Je.tags)!==null&&st!==void 0?st:[]),position:e+"",contentFormat:"video",traceInfo:(Qe=Be?.video)===null||Qe===void 0?void 0:Qe.traceInfo}})}},[o,e,S,y?.current,l]),kt=n.useCallback(()=>{E(!0)},[]),Ve=()=>{!y.current||!C||setTimeout(()=>{var K,ee,Z,le,we,ye,$,z,Ne;if(Math.round((K=y?.current)===null||K===void 0?void 0:K.currentTime)>=((ee=X?.endTime)!==null&&ee!==void 0?ee:0)){if((Z=y.current)===null||Z===void 0||Z.pause(),!q.current)return;if(e===o?.length-1)(we=(le=c?.current)===null||le===void 0?void 0:le.swiper)===null||we===void 0||we.slideTo(0);else{const tt=($=(ye=c?.current)===null||ye===void 0?void 0:ye.swiper)===null||$===void 0?void 0:$.activeIndex;(Ne=(z=c?.current)===null||z===void 0?void 0:z.swiper)===null||Ne===void 0||Ne.slideTo(tt+1)}}})};n.useEffect(()=>{var K,ee,Z,le,we,ye,$,z,Ne,tt,Je;if(!x)return;const st=Y;if(!st)return;const Qe=document.querySelector(`#${W}`);if(!Qe||(y.current=mi?.(Qe),!y?.current))return;O.current=new Date;const Be=window?.Hls;let it=F?.current;return st.includes(".m3u8")&&Be&&Be.isSupported()?(it=new Be,it?.loadSource(st),it?.attachMedia(y?.current),it?.on(Be.Events.MANIFEST_PARSED,function(){var ct;_e(),(ct=y?.current)===null||ct===void 0||ct.play()})):y.current.src=st,(K=y?.current)===null||K===void 0||K.setAttribute("x5-playsinline","true"),(ee=y?.current)===null||ee===void 0||ee.setAttribute("webkit-playsinline","true"),(Z=y?.current)===null||Z===void 0||Z.addEventListener("loadedmetadata",Ke),(le=y?.current)===null||le===void 0||le.addEventListener("loadeddata",lt),(we=y?.current)===null||we===void 0||we.addEventListener("play",Xe),(ye=y?.current)===null||ye===void 0||ye.addEventListener("playing",Ue),($=y?.current)===null||$===void 0||$.addEventListener("pause",et),(z=y?.current)===null||z===void 0||z.addEventListener("ended",de),(Ne=y?.current)===null||Ne===void 0||Ne.addEventListener("canplay",de),(tt=y?.current)===null||tt===void 0||tt.addEventListener("waiting",kt),(Je=y.current)===null||Je===void 0||Je.addEventListener("timeupdate",Ve),()=>{var ct,gt,Xt,Nt,St,xt,Zt,yt,qe,Ee,fe;((ct=y?.current)===null||ct===void 0?void 0:ct.paused)||et(),F?.current&&((gt=F?.current)===null||gt===void 0||gt.destroy()),M(!1),(Xt=y?.current)===null||Xt===void 0||Xt.removeEventListener("loadedmetadata",Ke),(Nt=y?.current)===null||Nt===void 0||Nt.removeEventListener("loadeddata",lt),(St=y?.current)===null||St===void 0||St.removeEventListener("play",Xe),(xt=y?.current)===null||xt===void 0||xt.removeEventListener("playing",Ue),(Zt=y?.current)===null||Zt===void 0||Zt.removeEventListener("pause",et),(yt=y?.current)===null||yt===void 0||yt.removeEventListener("ended",de),(qe=y?.current)===null||qe===void 0||qe.removeEventListener("canplay",de),(Ee=y?.current)===null||Ee===void 0||Ee.removeEventListener("waiting",kt),(fe=y.current)===null||fe===void 0||fe.removeEventListener("timeupdate",Ve)}},[x]),n.useEffect(()=>{var K,ee,Z,le,we,ye;!y?.current||!V||(x?(w?.({eventName:"ViewContent",product:(ee=(K=o?.[e])===null||K===void 0?void 0:K.video)===null||ee===void 0?void 0:ee.bindProduct}),w?.({eventName:"PageView",product:(le=(Z=o?.[e])===null||Z===void 0?void 0:Z.video)===null||le===void 0?void 0:le.bindProduct}),(we=y?.current)===null||we===void 0||we.play()):(ye=y?.current)===null||ye===void 0||ye.pause())},[x,V,y?.current]),n.useEffect(()=>{var K,ee,Z;if(!x||!y?.current)return;!((K=y?.current)===null||K===void 0?void 0:K.paused)&&h?(ee=y?.current)===null||ee===void 0||ee.pause():h||(Z=y?.current)===null||Z===void 0||Z.play()},[h,x,y?.current]),n.useEffect(()=>{if(!x)return;const K=()=>{ke("start")()},ee=ke("pause");return wt.on(bt.PAGE_DID_SHOW,K),wt.on(bt.PAGE_DID_HIDE,ee),()=>{wt.off(bt.PAGE_DID_SHOW,K),wt.off(bt.PAGE_DID_HIDE,ee)}},[ke,x]);const We=n.useMemo(()=>!me||V?null:n.createElement(Ot,{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:me,alt:"placeholder image"}),[V]),ze=n.useMemo(()=>{if(!(!j||!V))return n.createElement("img",{style:{position:"absolute",top:"50%",left:0,right:0,transform:"translateY(-100%)",margin:"auto",width:"50px",height:"50px",objectFit:"contain"},src:Ad,alt:"placeholder image"})},[j,V]);return n.useEffect(()=>{if(!y?.current)return;const K=()=>{l===e&&Y&&y?.current&&!b&&ke("pause")()};return window.addEventListener("beforeunload",K),()=>{window.removeEventListener("beforeunload",K)}},[l,e,t,y?.current,ke,b]),t?.video?n.createElement(n.Fragment,null,ae?n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:ke(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},ce)},!Fe&&V&&Te&&n.createElement(Ot,{src:Te,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},Oe)}),n.createElement("canvas",{ref:T,style:{display:"none"}}),n.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:J,left:0,right:0}},n.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},n.createElement("div",{className:"n-full-screen",ref:D,id:W,style:{width:"100%",height:"100%"}}),b&&n.createElement(Ot,{className:"clc-pb-video-pause",src:u??Ze,alt:"pause"}))),We,ze):n.createElement("div",{className:"video-container",key:t?.video.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:ke()},n.createElement("div",{className:"n-full-screen",ref:D,id:W,style:{width:"100%",height:"100%"}}),We,ze,b&&n.createElement(Ot,{className:"clc-pb-video-pause",src:u??Ze,alt:"pause"}))):null});var gd=n.memo(bd);const yd=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:o,style:s})=>{const[l,r]=n.useState(t),u=a=>{a.stopPropagation();const c=!l;r(c),o?.(c)};return n.useEffect(()=>{r(t)},[t]),n.createElement("button",{style:s,"aria-label":"toggle button",className:"pb-toggle-button",onClick:u},n.createElement("img",{className:"pb-toggle-button-icon",alt:"toggle image",src:l?e:i}))};var Hi=n.memo(yd);const wd=({imageUrl:t,style:e,duration:i=2e3})=>{const[o,s]=n.useState(!0);ei(),n.useEffect(()=>{setTimeout(()=>{s(!1)},i)},[]);const l=Et("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),r=n.useMemo(()=>o?"pb-fadeIn":"pb-fadeOut",[o]);return n.createElement("div",{hidden:!o,className:`pb-finger-wrap ${r}`,style:Object.assign(Object.assign({},e),{animationDuration:`${i/1e3}s`})},n.createElement("img",{src:t||l,alt:"finger swiper"}))},xn=t=>{const{src:e,height:i,imgUrlsPostConfig:o,onShowFirstImage:s}=t,l=n.useMemo(()=>o?.mode==="2",[o]),r=n.useMemo(()=>{var d;return o?.mode==="2"?`translateY(-${50+((d=o?.offsetTop)!==null&&d!==void 0?d:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[o]),u=n.useMemo(()=>l?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[l]),a=n.useMemo(()=>o?.bgWay==="1",[o]),c=n.useMemo(()=>a&&o?.bgColor?{backgroundColor:o?.bgColor}:{},[o,a]);return n.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},c)},(!l||!a)&&n.createElement(Ot,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},u),onLoad:s}),l&&n.createElement(Ot,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:r,left:0,right:0},onLoad:s}))},Sd=({imgUrls:t,width:e,height:i,rec:o,index:s,onViewImageEndEvent:l,onViewImageStartEvent:r,imgUrlsPostConfig:u})=>{var a,c;const{isActive:d}=yi(),{sxpParameter:A,openHashtag:f}=He(),[p,b]=n.useState(!1),[m,S]=n.useState(),[v,g]=n.useState(0),h=n.useRef(),w=n.useRef(!0),C=new Date;n.useEffect(()=>{p&&d?(h?.current&&h.current.swiper.autoplay.start(),f?l(o):(r(s,w.current?m:void 0,!0),w.current=!1)):h?.current&&h.current.swiper.autoplay.stop()},[o,d,l,f,s,r,p,m]);const P=n.useCallback(B=>ot(void 0,void 0,void 0,function*(){p||(S({loadTime:new Date-C+""}),b(!0))}),[p]);n.useEffect(()=>{if(!d)return;const B=()=>r(s,m),k=()=>l(o);return wt.on(bt.PAGE_DID_SHOW,B),wt.on(bt.PAGE_DID_HIDE,k),()=>{wt.off(bt.PAGE_DID_SHOW,B),wt.off(bt.PAGE_DID_HIDE,k)}},[d,m]);const V=n.useCallback(()=>{h.current&&h.current.swiper&&T&&h.current.swiper.autoplay.stop()},[]),M=n.useCallback(()=>{h.current&&h.current.swiper&&T&&h.current.swiper.autoplay.start()},[]),x=n.useCallback(B=>{g(B.activeIndex)},[]),T=n.useMemo(()=>Zi(),[]);return n.createElement("div",{onMouseEnter:V,onMouseLeave:M},n.createElement(Kt,Object.assign({defaultValue:0,direction:"horizontal",modules:[wi,Si,...T?[An,bn,Wi,fn]:[]],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"}},T?{mousewheel:!0,keyboard:!0,navigation:!0,a11y:{enabled:!0}}:{},{loop:!0,ref:h,onSlideChange:x,className:De.css(Object.assign(Object.assign({".swiper-pagination":{bottom:(a=u?.marginBottom)!==null&&a!==void 0?a:0,fontSize:"14px"}},u?.dotsBgColor&&{".swiper-pagination-bullet":{backgroundColor:u?.dotsBgColor,opacity:1}}),u?.dotsActiveColor&&{".swipe-item-active-bullet":{backgroundColor:`${u?.dotsActiveColor}!important`,opacity:1}})),height:i,autoplay:{delay:((c=u?.delay)!==null&&c!==void 0?c:3)*1e3}}),t?.map((B,k)=>n.createElement(Bt,{key:k,"aria-hidden":k!==v},n.createElement(xn,{src:!p&&k>0?"":B,height:i,imgUrlsPostConfig:u,onShowFirstImage:P})))))};var xd=n.memo(Sd);const Td=({tags:t,itemId:e,itemType:i,index:o,rec:s,hashTagStyle:l,hashTagRightMargin:r})=>{var u;const[a,c]=n.useState(!1),{setWaterFallData:d,setOpenHashtag:A,setCacheActiveIndex:f,waterFallData:p,setIsFromHashtag:b}=He(),m=S=>{p?b?.(!0):f?.(o),d?.(i?{hashTag:S,itemId:e,itemType:i,rec:s}:{hashTag:S,rec:s}),A?.(!0)};return n.useMemo(()=>t.length<=6?null:n.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>c(!a)},a?"show less":"show more"),[a,t]),n.createElement("div",{className:"clc-sxp-bottom-hashtag",style:{marginTop:`${(u=l?.marginTop)!==null&&u!==void 0?u:16}px`,width:r}},n.createElement(xi,null,t?.map((S,v)=>n.createElement(Bt,{key:v,hidden:a?!1:v>=6,className:"clc-sxp-bottom-hashtag-item",style:l,onClick:()=>m(S),tag:"li",role:"listitem"},n.createElement("button",{className:"clc-sxp-bottom-hashtag-item-button","aria-label":S,"aria-describedby":S,dangerouslySetInnerHTML:{__html:Pe(`#${S}`,l)}})))))};var Co=n.memo(Td),Po="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 Ci(t){return n.memo(function(e){const{$store:i}=_o(),o=l=>{let r=l;const u=l.match(/{{.*?}}/g);return u?.length&&u.forEach(a=>{a.replace(/{{\s*([\w.]+)\s*}}/g,(c,d)=>{if(d){const A=Re.get(i,d);return r=r.replace(a,A),A}})}),r},s=n.useMemo(()=>{var l,r,u;const{bindDatas:a}=e,c=$e(e,["bindDatas"]);if((l=a?.forEach)===null||l===void 0||l.call(a,d=>{if(d?.propKey&&d?.dataPath){const{propKey:A,dataPath:f}=d;f.replace(/{{\s*([\w.]+)\s*}}/g,(p,b)=>{var m,S;if(b){const v=(S=(m=Re.get(i,b))!==null&&m!==void 0?m:e[A])!==null&&S!==void 0?S:"";return c[A]=v,v}})}}),c){c.eventMap={};const d=Re.cloneDeep(c.event)||{};for(const A in d)if(Object.prototype.hasOwnProperty.call(d,A))try{d[A].value=o(d[A].value),c.eventMap[A]=new Function(d[A].value)}catch{}}return!((u=(r=c?.event)===null||r===void 0?void 0:r.onClick)===null||u===void 0)&&u.linkType&&(c.style.cursor="pointer"),c},[i,e]);return n.createElement(t,Object.assign({},s,s.eventMap))})}const Ed=({rec:t,index:e,tempMap:i,resolver:o,includesCtaType:s=[],isActive:l,isNineProduct:r})=>{var u,a,c,d,A;const{schema:f}=ei();if(!t?.video)return null;let p=null;!((a=(u=t?.video)===null||u===void 0?void 0:u.bindProducts)===null||a===void 0)&&a.length?p="\u591A\u5546\u54C1CTA":!((c=t?.video)===null||c===void 0)&&c.bindProduct?p="\u5546\u54C1CTA":p=(A=(d=t?.video)===null||d===void 0?void 0:d.bindCta)===null||A===void 0?void 0:A.itemId;const b=i?.[p],m=n.useMemo(()=>{var S,v,g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D,F,O,I,N,q,X,Y,R,me,ae;if(!(s?.length>0&&!s?.includes((S=b?.item)===null||S===void 0?void 0:S.type))&&!((!s||s?.length===0)&&((v=b?.item)===null||v===void 0?void 0:v.category)==="cta")){if(((g=b?.item)===null||g===void 0?void 0:g.type)==="CommodityDiro"&&!(!((h=t?.video)===null||h===void 0)&&h.bindProduct)||((w=b?.item)===null||w===void 0?void 0:w.type)==="Commodity"&&!(!((C=t?.video)===null||C===void 0)&&C.bindProduct)||((P=b?.item)===null||P===void 0?void 0:P.type)==="CommodityDiroNew"&&!(!((V=t?.video)===null||V===void 0)&&V.bindProduct)||((M=b?.item)===null||M===void 0?void 0:M.type)==="MultiCommodity"&&!(!((T=(x=t?.video)===null||x===void 0?void 0:x.bindProducts)===null||T===void 0)&&T.length)||((B=b?.item)===null||B===void 0?void 0:B.type)==="MultiCommodityDiro"&&!(!((j=(k=t?.video)===null||k===void 0?void 0:k.bindProducts)===null||j===void 0)&&j.length)||((E=b?.item)===null||E===void 0?void 0:E.type)==="MultiCommodityDiroNew"&&!(!((W=(y=t?.video)===null||y===void 0?void 0:y.bindProducts)===null||W===void 0)&&W.length))return null;if(b&&o){const J=o[r?"NineCommodity":(D=b?.item)===null||D===void 0?void 0:D.type],Te=Ci(J),Oe=(F=J?.extend)===null||F===void 0?void 0:F.defaulSetting,Fe=((N=(I=(O=b?.item)===null||O===void 0?void 0:O.event)===null||I===void 0?void 0:I.onClick)===null||N===void 0?void 0:N.linkType)==="externalLink",ce=Re.cloneDeep((q=b?.item)===null||q===void 0?void 0:q.style);if(ce.hasOwnProperty("backdropFilter")){const de=ce.backdropFilter;ce.backdropFilter=`blur(${de??0}px)`}return n.createElement(Te,Object.assign({style:Object.assign(Object.assign(Object.assign({},Oe?.style),ce),{zIndex:50,marginInlineStart:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},Oe?.textStyle),(X=b?.item)===null||X===void 0?void 0:X.textStyle),bindDatas:(R=(Y=b?.item)===null||Y===void 0?void 0:Y.bindDatas)!==null&&R!==void 0?R:[]},Oe?.props,(me=b?.item)===null||me===void 0?void 0:me.props,{event:((ae=b?.item)===null||ae===void 0?void 0:ae.event)||{},schema:f,id:b?.id,key:b?.id,recData:t,isExternalLink:Fe,index:e,isActive:l}))}else return null}},[t,o,i,f,b?.id,l]);return n.createElement(n.Fragment,null,m)};var _t=n.memo(Ed);const Oo=({nudge:t})=>{var e,i,o,s,l,r;return n.createElement(n.Fragment,null,t?.isOpen&&n.createElement("div",{className:"clc-sxp-bottom-nudge",style:{marginBottom:(e=t?.marginBottom)!==null&&e!==void 0?e:5,width:(o=(i=t?.size)===null||i===void 0?void 0:i.width)!==null&&o!==void 0?o:212,height:(l=(s=t?.size)===null||s===void 0?void 0:s.height)!==null&&l!==void 0?l:38,backgroundColor:t?.backgroundColor,borderRadius:(r=t?.borderRadius)!==null&&r!==void 0?r:4}},t?.icon?n.createElement("img",{src:t.icon,alt:"nudge icon",style:{height:"100%",objectFit:"cover",flexShrink:0}}):null,n.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:Pe(t?.content,t?.textStyle)}})))},kd=({tagList:t=[],setActiveIndex:e,style:i})=>{const{getRecommendVideos:o,setRtcList:s,setCacheRtcList:l,setCacheActiveIndex:r,setLoading:u,swiperRef:a,waterFallData:c,bffEventReport:d,selectTag:A,setSelectTag:f}=He(),{backMainFeed:p}=Lt(),b=n.useMemo(()=>[Li,...t],[t]),m=S=>()=>{if(S===A)return;S!=="FOR U"?d?.({eventInfo:{eventSubject:"clickThemeTagsViewContents",eventDescription:"click Theme Tags View Contents",themeTags:`['${S}']`}}):p("theme",S,A);let v;S!==Li&&(v=S),u?.(!0),o?.({themeTag:v}).then(g=>{var h,w,C,P;wt.emit(bt.CHANGE_THEME_TAG,v),s?.((h=g?.recList)!==null&&h!==void 0?h:[]),l?.((w=g?.recList)!==null&&w!==void 0?w:[]),e?.(0),r?.(0),(P=(C=a?.current)===null||C===void 0?void 0:C.swiper)===null||P===void 0||P.slideTo(0)}).finally(()=>{u?.(!1)}),f?.(S)};return c||t.length<=0?null:n.createElement("div",{className:"clc-sxp-tagbar",style:i},n.createElement("div",{className:"clc-sxp-tagbar-list",style:{margin:"auto",gap:24}},b.map(S=>n.createElement("button",{className:`clc-sxp-tagbar-list-item ${S===A?"clc-sxp-tagbar-list-item-active":""}`,key:S,"aria-label":S,onClick:m(S)},S))))};var Lo=n.memo(kd);const Id=({resolver:t,globalConfig:e})=>{var i,o,s;const{consentPopupCate:l}=Ii(),r=(o=(i=e?.consentPopup)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.item;if(!r||!l&&!(!((s=r?.props)===null||s===void 0)&&s.open))return null;const u=t?.[r?.type],a=Ci(u);return n.createElement(a,Object.assign({},r?.props,{style:r?.style,event:r?.event||{},consentPopupCate:l}))};var Cd=n.memo(Id);const Pd=({data:t,minusHeight:e,tagHeight:i,onClick:o})=>{var s,l,r,u,a;return n.createElement("button",{style:{position:"absolute",[(s=t?.xPosit)!==null&&s!==void 0?s:"left"]:(r=(l=t?.backButton)===null||l===void 0?void 0:l.x)!==null&&r!==void 0?r:0,[(u=t?.yPosit)!==null&&u!==void 0?u:"top"]:(t?.yPosit=="top"?e+i:0)+((a=t?.y)!==null&&a!==void 0?a:0),zIndex:8,border:"none",padding:0,background:"transparent"},role:"button","aria-label":"back button",onClick:o},n.createElement("img",{src:t?.icon||Po,alt:"back button",width:100,style:{objectFit:"cover"}}))};var Mo=n.memo(Pd);const Od=({globalConfig:t,descStyle:e,containerHeight:i,containerWidth:o=window.innerWidth,tempMap:s,resolver:l,data:r=[],ctaType:u,tipText:a,nudge:c,_schema:d,hashTagStyle:A,hashTagRightMargin:f,tagList:p=[],defaultData:b})=>{var m,S,v,g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D,F,O,I,N,q,X;const Y=Et("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),R=Et("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png"),{schema:me}=ei(),{openMultiPosts:ae}=Ii(),[J,Te]=n.useState(0),Oe=n.useRef(0),[Fe,ce]=n.useState(!0),de=n.useRef(),[Ze,Ue]=n.useState(!1),[Xe,_e]=n.useState(!1),[lt,Ke]=n.useState(new Date().getTime()),ke=n.useRef(!1),[et,kt]=n.useState(2);n.useState(!1);const Ve=n.useRef(null),We=n.useRef(""),{loadVideos:ze,bffEventReport:K,loading:ee,setPopupDetailData:Z,ctaEvent:le,swiperRef:we,waterFallData:ye,setOpenHashtag:$,appDomain:z,openHashtag:Ne,loadingImage:tt,isFromHashtag:Je,popupDetailData:st,bffFbReport:Qe,curTime:Be,h5EnterLink:it,isShowConsent:ct,selectTag:gt,isPreview:Xt,isEditor:Nt,cacheRtcList:St,setRtcList:xt,cacheActiveIndex:Zt,rtcList:yt,isNoMoreData:qe,channel:Ee,refreshFeSession:fe,isDiyH5:be,pixelPvStatusRef:ft}=He(),{backMainFeed:qt,productView:zt,jumpToWeb:En}=Lt(),{visibleHeight:fi,bottomHeight:At}=bo(),ri=n.useMemo(()=>r.length>0&&!ee&&(Qo()||t?.enableSwiperTip),[r,ee,t?.enableSwiperTip]);n.useEffect(()=>{fe?.(!0)},[]),n.useEffect(()=>{if(r?.length>0){const L=new Date;de.current=L}},[r?.length]);const Xi=n.useCallback(()=>{var L,G,_;const Q=(G=(L=b?.data)===null||L===void 0?void 0:L.sxpPageConf)===null||G===void 0?void 0:G.globalConfig;if(!((_=Q?.session)===null||_===void 0)&&_.enable||Qi(),it?.(),r.length>0){const re=new Date;de.current=re}},[r.length,it,b]);n.useEffect(()=>{var L;if(!u||u?.length<1)return;const G=r?.findIndex(_=>{var Q,re,ie,oe,ne,se,pe,je,ge;const Ie=u?.[0];return Ie==="\u591A\u5546\u54C1CTA"?((Q=_?.video)===null||Q===void 0?void 0:Q.bindProducts)&&((ie=(re=_?.video)===null||re===void 0?void 0:re.bindProducts)===null||ie===void 0?void 0:ie.length)>0:Ie==="\u5546\u54C1CTA"?(oe=_?.video)===null||oe===void 0?void 0:oe.bindProduct:((se=(ne=_?.video)===null||ne===void 0?void 0:ne.bindCta)===null||se===void 0?void 0:se.itemId)===Ie&&(((pe=_?.video)===null||pe===void 0?void 0:pe.url)||((ge=(je=_?.video)===null||je===void 0?void 0:je.imgUrls)===null||ge===void 0?void 0:ge.length))})||0;G!==-1&&((L=we?.current)===null||L===void 0||L.swiper.slideTo(G))},[r,u,we]);const ni=n.useCallback(L=>{var G,_,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt,nt,ht,Ge,Tt;const Le=r?.[J];let Ce="";st&&(!((_=(G=Le?.video)===null||G===void 0?void 0:G.bindProducts)===null||_===void 0)&&_.length||!((Q=Le?.video)===null||Q===void 0)&&Q.bindProduct)?Ce="pdpPage":st&&((ne=s?.[(oe=(ie=(re=Le?.video)===null||re===void 0?void 0:re.bindCta)===null||ie===void 0?void 0:ie.itemId)!==null&&oe!==void 0?oe:""].item)===null||ne===void 0?void 0:ne.type)==="Appoint"?Ce="formPage":Je?Ce="hashTagPage":!((se=Le?.video)===null||se===void 0)&&se.url?Ce="videoPage":!((pe=Le?.video)===null||pe===void 0)&&pe.imgUrls&&(!((ge=(je=Le?.video)===null||je===void 0?void 0:je.imgUrls)===null||ge===void 0)&&ge.length)?Ce="imagePage":Le?.product&&(Ce="productPage"),K?.({eventInfo:{sessionDuration:Math.floor((new Date-Be.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(Ie=Le?.video)===null||Ie===void 0?void 0:Ie.itemId,productId:(ut=Le?.product)===null||ut===void 0?void 0:ut.itemId,position:J+"",fromKName:L||Ce,fromKPage:location?.href,ctatId:(dt=(at=(rt=Le?.video)===null||rt===void 0?void 0:rt.bindCta)===null||at===void 0?void 0:at.itemId)!==null&&dt!==void 0?dt:"",traceInfo:(Tt=(ht=(nt=Le?.video)===null||nt===void 0?void 0:nt.traceInfo)!==null&&ht!==void 0?ht:(Ge=Le?.product)===null||Ge===void 0?void 0:Ge.traceInfo)!==null&&Tt!==void 0?Tt:""}})},[r,K,J,st,s,Je,Be]);n.useEffect(()=>{const L=r?.[J],G=()=>{const _=!Ne&&!ct;document.visibilityState==="hidden"?(_&&(wt.emit(bt.PAGE_DID_HIDE,L),Ae(L)),(t?.playbook!=="organic menu"||J!==0||Ee)&&(fe?.(!1,ni)||ni())):document.visibilityState==="visible"&&(ke.current===!0&&(Ke(new Date().getTime()),ke.current=!1),fe?.(!1),Xi(),_&&(setTimeout(()=>{wt.emit(bt.PAGE_DID_SHOW,L)},100),qt("external",gt)))};return document.addEventListener("visibilitychange",G),()=>{document.removeEventListener("visibilitychange",G)}},[J,K,r,Xi,st,Je,s,Be,qt,Ne,ct,gt,Ee,ni,fe]);const hi=n.useCallback(Re.debounce(()=>{var L;(L=Ve.current)===null||L===void 0||L.setLoopPlay(!1),fe?.(!1,ni)},1e3),[ni,fe]);n.useEffect(()=>{const L=["touchstart","touchcancel"];return L.forEach(G=>{window.addEventListener(G,hi)}),()=>{L.forEach(G=>{window.removeEventListener(G,hi)})}},[hi]);const oi=n.useMemo(()=>{let L=0;return p.length>0&&(L+=45,ye&&(L-=45)),L},[p,ye]),Ht=n.useMemo(()=>{let L=0;return t?.logoUrl&&t?.isShowLogo&&(L+=56),L},[t]),Yt=n.useMemo(()=>(i||fi)-Ht-oi,[i,fi,Ht,oi]),It=n.useMemo(()=>{var L;const G=J===0&&!ye&&!Nt&&!be?[(L=r?.[0])!==null&&L!==void 0?L:null]:r?.map((_,Q)=>J===Q||Q-1===J||Q+1===J?_:null);return G?.length?!ye&&!qe&&!be?G.concat([{loading:!0}]):G:[]},[r,J,ye,Nt,qe,be]),kn=n.useMemo(()=>{var L,G,_,Q;if(t?.logoUrl&&t?.isShowLogo){const re=(G=(L=t?.logoBar)===null||L===void 0?void 0:L.onClick)===null||G===void 0?void 0:G.value,ie=((Q=(_=t?.logoBar)===null||_===void 0?void 0:_.onClick)===null||Q===void 0?void 0:Q.linkType)==="externalLink",oe=It[J];return n.createElement("div",Object.assign({className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},re&&{onClick:ne=>{var se,pe,je,ge;ie&&En(ne,oe,(se=oe?.video)===null||se===void 0?void 0:se.bindProduct,(pe=oe?.video)===null||pe===void 0?void 0:pe.bindCta,J,((je=oe?.product)===null||je===void 0?void 0:je.traceInfo)||((ge=oe?.video)===null||ge===void 0?void 0:ge.traceInfo)),new Function(re)()}}),n.createElement("img",{src:t?.logoUrl,alt:"logo"}))}return null},[t,J,It]),qi=n.useCallback((L,G)=>{var _,Q,re,ie,oe,ne,se,pe,je,ge;return L==="organic menu"?n.createElement(wn,Object.assign({recData:r?.[1]},(re=(Q=(_=t?.multiPosts)===null||_===void 0?void 0:_[0])===null||Q===void 0?void 0:Q.item)===null||re===void 0?void 0:re.props,(ne=(oe=(ie=t?.multiPosts)===null||ie===void 0?void 0:ie[0])===null||oe===void 0?void 0:oe.item)===null||ne===void 0?void 0:ne.event)):!((se=L?.video)===null||se===void 0)&&se.url?n.createElement(gd,Object.assign({key:lt},J===G&&{ref:Ve},{rec:L,index:G,muted:Fe,data:r,height:Yt,activeIndex:J,videoPostConfig:t?.videoPost,videoPlayIcon:t?.videoPlayIcon,loopPlay:!0,swiperRef:we,visibleHeight:fi})):!((pe=L?.video)===null||pe===void 0)&&pe.imgUrls?n.createElement(xd,{key:L?.video.itemId,imgUrls:L?.video.imgUrls,width:o,height:Yt,rec:L,index:G,onViewImageEndEvent:he,onViewImageStartEvent:Se,imgUrlsPostConfig:t?.imgUrlsPost}):L.product&&Array.isArray(t?.productPost)&&((je=t?.productPost)===null||je===void 0?void 0:je.length)>0?(ge=t?.productPost)===null||ge===void 0?void 0:ge.map((Ie,ut)=>{var rt,at,dt,nt,ht,Ge,Tt,Le;const Ce=l[(rt=Ie?.item)===null||rt===void 0?void 0:rt.type],Dt=Ci(Ce),Mt=(at=Ce?.extend)===null||at===void 0?void 0:at.defaulSetting;return n.createElement(Dt,Object.assign({key:`${G}${ut}`,textStyle:Object.assign(Object.assign({},Mt?.textStyle),(dt=Ie?.item)===null||dt===void 0?void 0:dt.textStyle),bindDatas:(ht=(nt=Ie?.item)===null||nt===void 0?void 0:nt.bindDatas)!==null&&ht!==void 0?ht:[]},Mt?.props,(Ge=Ie?.item)===null||Ge===void 0?void 0:Ge.props,{event:((Tt=Ie?.item)===null||Tt===void 0?void 0:Tt.event)||{},schema:me,id:Ie?.id,viewTime:de.current,rec:L,isPost:!0,tipText:a,style:Object.assign(Object.assign(Object.assign({},Mt?.style),(Le=Ie?.item)===null||Le===void 0?void 0:Le.style),{height:"100%",overflow:"auto"}),index:G,isActive:J===G}))}):null},[o,r,Yt,Fe,J,t?.productPost,t?.videoPlayIcon,de,a,l,me,lt,fi]),Yi=n.useCallback(L=>{_e(L)},[]),H=n.useMemo(()=>Xe?{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"},[Xe]),U=n.useCallback((L,G)=>{var _,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt;if(L?.video){let nt=null;!((Q=(_=L?.video)===null||_===void 0?void 0:_.bindProducts)===null||Q===void 0)&&Q.length?nt="\u591A\u5546\u54C1CTA":!((re=L?.video)===null||re===void 0)&&re.bindProduct?nt="\u5546\u54C1CTA":nt=(oe=(ie=L?.video)===null||ie===void 0?void 0:ie.bindCta)===null||oe===void 0?void 0:oe.itemId;const ht=s?.[nt],Ge=t?.nineProductEnable&&G===(yt?.[0]==="organic menu"?2:1)&&((ne=["MultiCommodity","MultiCommodityDiro","MultiCommodityDiroNew"])===null||ne===void 0?void 0:ne.includes((se=ht?.item)===null||se===void 0?void 0:se.type));return n.createElement(n.Fragment,null,Ge&&n.createElement(_t,{rec:L,index:G,tempMap:s,resolver:l,isActive:G===J,isNineProduct:Ge}),((pe=L?.video)===null||pe===void 0?void 0:pe.title)&&!Xe&&n.createElement("div",{className:"clc-sxp-bottom-shadow"}),n.createElement("div",{className:"clc-sxp-bottom",style:{marginBottom:`${(je=t?.bottomInfoDist)!==null&&je!==void 0?je:40}px`}},n.createElement(Oo,{nudge:c}),(t?.isShowCTA===void 0||t?.isShowCTA)&&!Ge?n.createElement("div",{className:"clc-sxp-bottom-card"},n.createElement(_t,{rec:L,index:G,tempMap:s,resolver:l,isActive:G===J,includesCtaType:[]})):null,n.createElement("div",{style:{display:"flex",flexDirection:"column"}},n.createElement(Ti,{className:"clc-sxp-bottom-text",isPost:!0,foldText:a?.foldText,unfoldText:a?.unfoldText,text:(Ie=(ge=L?.video)===null||ge===void 0?void 0:ge.title)!==null&&Ie!==void 0?Ie:"",style:Object.assign(Object.assign({},e),{textShadow:t?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"}),onChange:Yi}),n.createElement(_t,{rec:L,index:G,tempMap:s,resolver:l,includesCtaType:["AniLink"],isActive:G===J}),n.createElement(Co,{index:J,tags:(rt=(ut=L?.video)===null||ut===void 0?void 0:ut.hashTags)!==null&&rt!==void 0?rt:[],itemId:(at=L?.video)===null||at===void 0?void 0:at.itemId,itemType:!((dt=L?.video)===null||dt===void 0)&&dt.itemId?"VIDEO":null,rec:L,hashTagStyle:A,hashTagRightMargin:o-(f??0)}))),n.createElement(_t,{rec:L,index:G,tempMap:s,resolver:l,includesCtaType:["AniLinkPopup"],isActive:G===J}))}return null},[e,J,s,l,a,c,A,t,Yi,Xe,H,yt]),te=n.useCallback((L,G,_)=>{var Q,re,ie,oe;if(!t?.isShowLike||!_)return;let ne=(Q=t?.likeIconY)!==null&&Q!==void 0?Q:400;return ye&&ne<40&&t?.likeIconYPosit==="top"&&(ne+=40),t?.likeIconYPosit==="top"&&(ne+=Ht),t?.likeIconFixed&&t?.likeIconYPosit!=="top"&&(ne+=At),L?.video?n.createElement(Sn,{key:L.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:L.isCollected,recData:L,className:"clc-sxp-like-button",style:{position:t?.likeIconFixed?"fixed":"absolute",[(re=t.likeIconXPosit)!==null&&re!==void 0?re:"right"]:(ie=t.likeIconX)!==null&&ie!==void 0?ie:0,[(oe=t.likeIconYPosit)!==null&&oe!==void 0?oe:"bottom"]:ne},position:G}):null},[t,ye,At]),he=L=>{var G,_,Q,re,ie,oe;if(!(!((G=L?.video)===null||G===void 0)&&G.url)&&(!((_=L?.video)===null||_===void 0)&&_.imgUrls)){const ne=Date.now(),se=Oe.current===0?0:(ne-Oe.current)/1e3;K?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(re=(Q=L?.video)===null||Q===void 0?void 0:Q.itemId)!==null&&re!==void 0?re:"",contentName:(ie=L?.video.title)!==null&&ie!==void 0?ie:"",imageEndTime:`${ne}`,playDuration:`${se}`,contentTags:JSON.stringify((oe=L?.video.tags)!==null&&oe!==void 0?oe:[]),position:J+"",contentFormat:"image",traceInfo:L?.video.traceInfo}})}},ue=(L,G)=>{var _,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt,nt,ht,Ge,Tt,Le,Ce,Dt;if(Xt||ye)return;const Mt=new Date-Be.current;if(t?.openSlideSkip&&Mt>=((_=t?.slideSkipStartTime)!==null&&_!==void 0?_:0)&&Ro()&&L){const Ai=((ie=(re=(Q=L?.video)===null||Q===void 0?void 0:Q.bindProducts)===null||re===void 0?void 0:re[0])===null||ie===void 0?void 0:ie.link)||((ne=(oe=L?.video)===null||oe===void 0?void 0:oe.bindProduct)===null||ne===void 0?void 0:ne.link)||((se=L?.product)===null||se===void 0?void 0:se.link),vt=L?.product||((pe=L?.video)===null||pe===void 0?void 0:pe.bindProduct)||((ge=(je=L?.video)===null||je===void 0?void 0:je.bindProducts)===null||ge===void 0?void 0:ge[0]);if(Ai){let ai=null;!((Ie=L?.video)===null||Ie===void 0)&&Ie.url?ai="video":!((rt=(ut=L?.video)===null||ut===void 0?void 0:ut.imgUrls)===null||rt===void 0)&&rt.length&&(ai="image"),K?.({eventInfo:{eventSubject:"swipeToWeb",eventDescription:"User swiped to web",productId:(at=vt?.itemId)!==null&&at!==void 0?at:"",productName:(dt=vt?.title)!==null&&dt!==void 0?dt:"",price:vt?.price?vt?.price+"":"0",productCollection:(nt=vt?.collection)!==null&&nt!==void 0?nt:"",contentTags:vt?.tags?JSON.stringify(vt?.tags):"",position:G+"",contentId:(Ge=(ht=L?.video)===null||ht===void 0?void 0:ht.itemId)!==null&&Ge!==void 0?Ge:"",traceInfo:(Dt=(Le=(Tt=L?.video)===null||Tt===void 0?void 0:Tt.traceInfo)!==null&&Le!==void 0?Le:(Ce=L?.product)===null||Ce===void 0?void 0:Ce.traceInfo)!==null&&Dt!==void 0?Dt:"",contentFormat:ai}}),ke.current=!0,window.location.href=window.getJointUtmLink(Ai)}}},ve=L=>{var G,_,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt,nt,ht,Ge,Tt,Le;const Ce=r[L.previousIndex];if(!Ce)return;let Dt=null;!((G=Ce?.video)===null||G===void 0)&&G.url?Dt="video":!((Q=(_=Ce?.video)===null||_===void 0?void 0:_.imgUrls)===null||Q===void 0)&&Q.length&&(Dt="image"),L.previousIndex-L.activeIndex<0?(K?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(ie=(re=Ce?.video)===null||re===void 0?void 0:re.itemId)!==null&&ie!==void 0?ie:"",productId:(ne=(oe=Ce?.product)===null||oe===void 0?void 0:oe.itemId)!==null&&ne!==void 0?ne:"",requestId:null,traceInfo:(ge=(pe=(se=Ce?.video)===null||se===void 0?void 0:se.traceInfo)!==null&&pe!==void 0?pe:(je=Ce?.product)===null||je===void 0?void 0:je.traceInfo)!==null&&ge!==void 0?ge:"",contentFormat:Dt,position:((Ie=L.previousIndex)!==null&&Ie!==void 0?Ie:0)+""}}),he(Ce),ue(Ce,L.previousIndex)):(K?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(rt=(ut=Ce?.video)===null||ut===void 0?void 0:ut.itemId)!==null&&rt!==void 0?rt:"",productId:(dt=(at=Ce.product)===null||at===void 0?void 0:at.itemId)!==null&&dt!==void 0?dt:"",requestId:null,traceInfo:(Tt=(ht=(nt=Ce?.video)===null||nt===void 0?void 0:nt.traceInfo)!==null&&ht!==void 0?ht:(Ge=Ce?.product)===null||Ge===void 0?void 0:Ge.traceInfo)!==null&&Tt!==void 0?Tt:"",contentFormat:Dt,position:((Le=L.previousIndex)!==null&&Le!==void 0?Le:0)+""}}),he(Ce)),Ae(Ce),de.current=new Date},Ae=L=>{var G,_,Q;!(!((G=L?.video)===null||G===void 0)&&G.url)&&!(!((_=L?.video)===null||_===void 0)&&_.imgUrls)&&L?.product&&zt(L,L.product,(Q=L?.product)===null||Q===void 0?void 0:Q.bindCta,de.current,J)};n.useEffect(()=>{const L=r[J];Ne?Ae(L):de.current=new Date},[Ne,r,J]),n.useEffect(()=>{if(!t?.enableCookieSetting)return;function L(_){if(!_||_.indexOf(".")===-1)return"";const Q=_.split(".");return Q.length>=2?"."+Q.slice(-2).join("."):""}window.OptanonWrapper=function(){const _=window?.OnetrustActiveGroups;_&&_?.length>2};const G=_=>{var Q,re;const ie=window?.OnetrustActiveGroups;(!((Q=_.target)===null||Q===void 0)&&Q.closest(".ot-pc-refuse-all-handler")||!((re=_.target)===null||re===void 0)&&re.closest(".save-preference-btn-handler"))&&(window.OptanonWrapper=function(){var oe,ne;const se=window?.OnetrustActiveGroups;if(se)if(se?.includes("4"))window?.loadMetaPixel(!1,SXP_CONFIG==null?void 0:SXP_CONFIG.meta_conversion_api_pid),window?.fbq("consent","grant"),ft.current=!0,We.current&&ie?.includes("4");else{window?.fbq("consent","revoke"),We.current=_i("_fbp"),Xo("_fbp","/",L(window.location.hostname));const pe=r[J],je=((oe=pe?.video)===null||oe===void 0?void 0:oe.traceInfo)||((ne=pe?.product)===null||ne===void 0?void 0:ne.traceInfo)||"";ie?.includes("4")&&K?.({eventInfo:{eventSubject:"refuseCookie",eventDescription:"refuseCookie",traceInfo:je},isActiveTargetingCookie:!1})}})};return document.addEventListener("click",G),()=>{document.removeEventListener("click",G)}},[t,K,r,J]);const Se=(L,G,_)=>{var Q,re,ie,oe,ne,se,pe,je;const ge=r[L];if(!(!((Q=ge?.video)===null||Q===void 0)&&Q.url)&&(!((re=ge?.video)===null||re===void 0)&&re.imgUrls)){const Ie=Date.now();Oe.current=Ie,K?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(oe=(ie=ge?.video)===null||ie===void 0?void 0:ie.itemId)!==null&&oe!==void 0?oe:"",contentName:(ne=ge?.video.title)!==null&&ne!==void 0?ne:"",imageStartTime:`${Ie}`,contentTags:JSON.stringify((se=ge?.video.tags)!==null&&se!==void 0?se:[]),position:L+"",contentFormat:"image",traceInfo:ge?.video.traceInfo,loadTime:G?.loadTime}}),_&&(Qe?.({eventName:"ViewContent",product:(pe=ge?.video)===null||pe===void 0?void 0:pe.bindProduct}),Qe?.({eventName:"PageView",product:(je=ge?.video)===null||je===void 0?void 0:je.bindProduct}))}},xe=n.useCallback(L=>{var G,_,Q,re,ie,oe;if(!L)return;let ne=(G=t?.muteIconY)!==null&&G!==void 0?G:23;return ye&&ne<40&&t?.muteIconYPosit==="top"&&(ne+=40),t?.muteIconYPosit==="top"&&(ne+=Ht),t?.muteIconFixed&&t?.muteIconYPosit!=="top"&&(ne+=At),(t?.isShowMute===void 0||t?.isShowMute===!0)&&n.createElement(Hi,{style:{position:t?.muteIconFixed?"fixed":"absolute",visibility:!((Q=(_=It?.[J])===null||_===void 0?void 0:_.video)===null||Q===void 0)&&Q.url?"visible":"hidden",zIndex:999,transform:"translate3d(0px,0px,0px)",[(re=t?.muteIconXPosit)!==null&&re!==void 0?re:"right"]:(ie=t?.muteIconX)!==null&&ie!==void 0?ie:0,[(oe=t?.muteIconYPosit)!==null&&oe!==void 0?oe:"bottom"]:ne},defaultValue:Fe,activeIcon:t?.unMuteIcon?t?.unMuteIcon:Y,unactiveIcon:t?.muteIcon?t?.muteIcon:R,onChange:ce})},[t,It,J,Fe,ye,At]),Me=n.useMemo(()=>ee?n.createElement("div",{style:{height:Yt,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:tt,alt:"loading...",style:{objectFit:"contain"}})):It?.map((L,G)=>n.createElement(Bt,{key:G,virtualIndex:G,style:{overflow:"hidden"}},L&&n.createElement(n.Fragment,null,L?.loading?n.createElement("div",{style:{height:Yt,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:tt,alt:"loading...",style:{objectFit:"contain"}})):n.createElement(n.Fragment,null,U(L,G),te(L,G,!t?.likeIconFixed),xe(!t?.muteIconFixed),qi(L,G))))),[o,r,Yt,ee,U,qi,It,tt,lt,xe]);return n.createElement("div",{id:"sxp-render",className:"clc-sxp-container",style:{height:Yt}},r?.length<1&&ee?n.createElement("div",{style:{height:Yt,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:tt,alt:"loading...",style:{objectFit:"contain"}})):n.createElement("div",{style:Object.assign({},t?.textUnderlineOffset&&{textUnderlineOffset:`${t?.textUnderlineOffset}px`})},ye&&n.createElement(So,{icon:Po,styles:{background:"rgba(0,0,0,.3)",color:"#fff",top:`${Ht}px`},textStyle:Object.assign(Object.assign({},(h=(g=(v=(S=(m=t?.hashTag)===null||m===void 0?void 0:m[0])===null||S===void 0?void 0:S.item)===null||v===void 0?void 0:v.props)===null||g===void 0?void 0:g.textStyles)===null||h===void 0?void 0:h.hashTagTitle),{color:"#fff"}),onClose:()=>{!Re.isEqual(yt,St)&&St&&St?.length&&xt?.(St),$?.(!0)}}),kn,n.createElement(Lo,{tagList:p,setActiveIndex:Te,style:{top:Ht}}),((w=t?.backButton)===null||w===void 0?void 0:w.enable)&&!Ee&&!ae&&!ye&&n.createElement(Mo,{data:t?.backButton,minusHeight:Ht,tagHeight:oi,onClick:()=>history?.back()}),(((x=(M=(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||M===void 0?void 0:M.backButton)===null||x===void 0?void 0:x.enable)&&Ee||ae)&&!ye&&n.createElement(Mo,{data:(j=(k=(B=(T=t?.multiPosts)===null||T===void 0?void 0:T[0])===null||B===void 0?void 0:B.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.backButton,minusHeight:Ht,tagHeight:oi,onClick:()=>{var L,G;const _=It?.[J];K?.({eventInfo:{eventSubject:"backMultiPostClick",eventDescription:"backMultiPostClick",traceInfo:((L=_?.video)===null||L===void 0?void 0:L.traceInfo)||((G=_?.product)===null||G===void 0?void 0:G.traceInfo)||""}}),location?.reload()}}),ri?n.createElement(wd,{imageUrl:t?.swipeTipIcon,style:{top:`${50-((E=t?.swipeTipOffset)!==null&&E!==void 0?E:0)}%`},duration:t?.swiperTipAniDur}):null,n.createElement(Kt,{style:{marginTop:oi},ref:we,onSlideChange:()=>{we.current.swiper.allowTouchMove=!1,setTimeout(()=>{we.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:L=>{Te(L.activeIndex),!Ne&&(ve(L),!(ye||Nt||be)&&L?.activeIndex+1>=r?.length&&(Ze||(Ue(!0),ze?.(et).then(G=>{var _;Ue(!1),G&&((_=G?.recList)===null||_===void 0?void 0:_.length)>0&&kt(et+1)}))))},direction:"vertical",height:Yt},Me,te(It[J],J,!!t?.likeIconFixed),xe(!!t?.muteIconFixed)),n.createElement(To,Object.assign({},(D=(W=(y=t?.hashTag)===null||y===void 0?void 0:y[0])===null||W===void 0?void 0:W.item)===null||D===void 0?void 0:D.props)),n.createElement(Cd,{resolver:l,globalConfig:t}),ae&&n.createElement(wn,Object.assign({},(I=(O=(F=t?.multiPosts)===null||F===void 0?void 0:F[0])===null||O===void 0?void 0:O.item)===null||I===void 0?void 0:I.props,(X=(q=(N=t?.multiPosts)===null||N===void 0?void 0:N[0])===null||q===void 0?void 0:q.item)===null||X===void 0?void 0:X.event,{style:{position:"fixed",top:0,left:0,right:0,bottom:At+"px"}}))),t?.enableCookieSetting&&n.createElement("div",{style:{position:"fixed",bottom:At+"px",left:0,right:0,width:"100%",zIndex:10,backgroundColor:"#000",fontSize:0}},n.createElement("button",{id:"ot-sdk-btn",className:"ot-sdk-show-settings",style:{textDecoration:"underline",width:"fit-content",border:"none",lineHeight:"24px",fontSize:"10px",color:"#fff",padding:"0 20px",fontFamily:"Helvetica-light"}},"Cookie settings")))};var jo=n.memo(Od);const Ld=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:o,rec:s,index:l})=>n.createElement(Kt,{defaultValue:0,direction:"horizontal",modules:[wi,Si],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(r=>n.createElement(Bt,{key:r},n.createElement(xn,{src:r,height:i,imgUrlsPostConfig:o}))));var Md=n.memo(Ld);const jd=({rec:t,index:e,height:i,data:o,muted:s,activeIndex:l,videoPostConfig:r,width:u})=>{const[a,c]=n.useState(!1),d=n.useRef(null),{bffEventReport:A,sxpParameter:f,waterFallData:p,openHashtag:b}=He(),m=n.useRef(0),[S,v]=n.useState(!1),[g,h]=n.useState(!0),w=n.useRef(null),[C,P]=n.useState("");n.useEffect(()=>{d.current&&(d.current.muted=s)},[s]);const V=n.useCallback(()=>{var O;(O=d.current)===null||O===void 0||O.play()},[]),M=Et("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),x=n.useCallback(()=>{var O,I,N,q,X,Y,R,me,ae,J,Te,Oe,Fe;c(!1);const ce=o[e];if(ce&&(!((O=d?.current)===null||O===void 0)&&O.duration)){m.current=((I=d?.current)===null||I===void 0?void 0:I.currentTime)||0;const de=((q=(N=d.current)===null||N===void 0?void 0:N.duration)!==null&&q!==void 0?q:0).toFixed(2),Ze=((Y=(X=d.current)===null||X===void 0?void 0:X.currentTime)!==null&&Y!==void 0?Y:0).toFixed(2),Ue=g?"0":"1";A?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(me=(R=ce?.video)===null||R===void 0?void 0:R.itemId)!==null&&me!==void 0?me:"",contentName:(J=(ae=ce?.video)===null||ae===void 0?void 0:ae.title)!==null&&J!==void 0?J:"",playType:Ue,startTime:Ze,videoDuration:de,contentTags:JSON.stringify((Oe=(Te=ce?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Oe!==void 0?Oe:[]),position:e+"",contentFormat:"video",traceInfo:(Fe=ce?.video)===null||Fe===void 0?void 0:Fe.traceInfo}}),h(!1)}},[A,o,e,g]),T=n.useCallback(()=>{v(!0)},[]),B=n.useCallback(O=>()=>{var I,N,q,X,Y;if(!S)return;const R=(I=d.current)===null||I===void 0?void 0:I.paused;switch(O){case"start":if(!R)return;(N=d.current)===null||N===void 0||N.play(),c(!1);break;case"pause":if(R)return;(q=d.current)===null||q===void 0||q.pause(),c(!0);break;default:R?(X=d.current)===null||X===void 0||X.play():(Y=d.current)===null||Y===void 0||Y.pause(),c(!R);break}},[S]),k=n.useCallback(()=>{var O,I,N,q,X,Y,R,me,ae,J,Te,Oe,Fe;const ce=o[e],de=((I=(O=d.current)===null||O===void 0?void 0:O.duration)!==null&&I!==void 0?I:0).toFixed(2),Ze=((q=(N=d.current)===null||N===void 0?void 0:N.currentTime)!==null&&q!==void 0?q:0).toFixed(2);if(!((X=d?.current)===null||X===void 0)&&X.duration){const Ue=(((Y=d?.current)===null||Y===void 0?void 0:Y.currentTime)-m.current).toFixed(2);A?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(me=(R=ce?.video)===null||R===void 0?void 0:R.itemId)!==null&&me!==void 0?me:"",contentName:(J=(ae=ce?.video)===null||ae===void 0?void 0:ae.title)!==null&&J!==void 0?J:"",endTime:Ze,videoDuration:de,playDuration:Ue,contentTags:JSON.stringify((Oe=(Te=ce?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Oe!==void 0?Oe:[]),position:e+"",contentFormat:"video",traceInfo:(Fe=ce?.video)===null||Fe===void 0?void 0:Fe.traceInfo}})}},[o,e,A]),j=n.useMemo(()=>r?.mode==="2",[r]),E=n.useMemo(()=>{var O;return r?.mode==="2"?`translateY(-${50+((O=r?.offsetTop)!==null&&O!==void 0?O:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[r]),y=n.useMemo(()=>{var O;return((O=t?.video)===null||O===void 0?void 0:O.cover)||C},[C,t]),W=n.useCallback(()=>{if(!w||!d||!d.current||!w.current)return;const O=d?.current,I=w?.current,N=I.getContext("2d"),q=window?.innerWidth,X=window?.innerHeight;I.height=X,I.width=q,N?.drawImage(O,0,0,I.width,I.height),P(I.toDataURL())},[]);n.useEffect(()=>{var O,I,N,q;if(d.current){if(c(!1),!d.current.src){const X=t?.video.url;if(X.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const Y=new window.Hls;Y.loadSource(X),Y.attachMedia(d.current)}else d.current.canPlayType("application/vnd.apple.mpegurl"),d.current.src=X;else d.current.src=X;d.current.setAttribute("x5-playsinline","true"),d.current.setAttribute("webkit-playsinline","true")}return(O=d.current)===null||O===void 0||O.addEventListener("loadedmetadata",T),(I=d.current)===null||I===void 0||I.addEventListener("canplay",T),(N=d.current)===null||N===void 0||N.addEventListener("playing",x),(q=d.current)===null||q===void 0||q.addEventListener("loadeddata",W),()=>{var X,Y,R,me;(X=d.current)===null||X===void 0||X.removeEventListener("loadedmetadata",T),(Y=d.current)===null||Y===void 0||Y.removeEventListener("canplay",T),(R=d.current)===null||R===void 0||R.removeEventListener("playing",x),(me=d.current)===null||me===void 0||me.removeEventListener("loadeddata",W)}}},[T,x,t?.video,W]);const D=n.useMemo(()=>!f?.placeholder_image||S?null:n.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:f?.placeholder_image,alt:"video poster"}),[S,f?.placeholder_image]);n.useEffect(()=>{const O=()=>{var I,N;l===e&&(!((I=t?.video)===null||I===void 0)&&I.url)&&(!((N=d?.current)===null||N===void 0)&&N.src)&&!a&&B("pause")()};return window.addEventListener("beforeunload",O),()=>{window.removeEventListener("beforeunload",O)}},[l,e,t,d,B,a]);const F=n.useMemo(()=>j?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[j]);return t?.video?n.createElement(n.Fragment,null,j?n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:B(),style:{position:"relative",width:u,height:i,overflow:"hidden"}},n.createElement(Ot,{src:y,style:Object.assign({height:i,width:u,objectFit:"cover"},F)}),n.createElement("canvas",{ref:w,style:{display:"none"}}),n.createElement("div",{style:{position:"absolute",width:u,height:i,top:"50%",transform:E,left:0,right:0}},n.createElement("div",{style:{position:"relative",width:u,height:"100%"}},n.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",ref:d,autoPlay:!0,crossOrigin:"anonymous",muted:!0,controls:!1,playsInline:!0,preload:"auto",onPause:k,onEnded:V,style:{width:"100%",height:i,objectFit:"contain"}}),n.createElement("img",{hidden:!a,className:"clc-pb-video-pause",src:M,alt:"video pause image"}))),D):n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:B(),style:{position:"relative",width:u,height:i,overflow:"hidden"}},n.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",style:{width:"100%"},ref:d,crossOrigin:"anonymous",muted:!0,autoPlay:!0,controls:!1,playsInline:!0,preload:"auto",onPause:k,onEnded:V}),D,n.createElement("img",{hidden:!a,className:"clc-pb-video-pause",src:M,alt:"video pause image"}))):null};var Nd=n.memo(jd);const Pi={};Object.values(zi).forEach(t=>{Pi[t.extend.type]=t});const Dd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Vd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Bd=({data:t=[],globalConfig:e,tipText:i,nudge:o,tempMap:s,descStyle:l,hashTagStyle:r,containerHeight:u=664,containerWidth:a=375,appDomain:c,tagList:d=[]})=>{const A=n.useMemo(()=>{let P=0;return e?.logoUrl&&e?.isShowLogo&&(P+=45),d.length>0&&(P+=45),u-P},[e,u,d]),f=(P,V)=>{var M,x,T,B;if(!((M=P?.video)===null||M===void 0)&&M.url)return n.createElement(Nd,{rec:P,index:V,muted:!0,width:a,data:t??[],height:A,activeIndex:V,videoPostConfig:e?.videoPost});if(!((x=P?.video)===null||x===void 0)&&x.imgUrls)return n.createElement(Md,{key:P?.video.itemId,imgUrls:P?.video.imgUrls,width:a,height:A,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(B=e?.productPost)===null||B===void 0?void 0:B.map((k,j)=>{var E,y,W,D,F,O,I,N;const q=Pi[(E=k?.item)===null||E===void 0?void 0:E.type],X=Ci(q),Y=(y=q?.extend)===null||y===void 0?void 0:y.defaulSetting;return n.createElement(X,Object.assign({key:`${V}${j}`,textStyle:Object.assign(Object.assign({},Y?.textStyle),(W=k?.item)===null||W===void 0?void 0:W.textStyle),bindDatas:(F=(D=k?.item)===null||D===void 0?void 0:D.bindDatas)!==null&&F!==void 0?F:[]},Y?.props,(O=k?.item)===null||O===void 0?void 0:O.props,{event:((I=k?.item)===null||I===void 0?void 0:I.event)||{},id:k?.id,rec:P,isPost:!0,tipText:i,style:Object.assign(Object.assign(Object.assign({},Y?.style),(N=k?.item)===null||N===void 0?void 0:N.style),{width:a,height:A,overflow:"auto"}),index:V}))})},p=n.useMemo(()=>e?.logoUrl&&e?.isShowLogo?n.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},n.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]),b=(P,V)=>e?.isShowCTA===void 0||e?.isShowCTA?n.createElement("div",{className:"clc-sxp-bottom-card"},n.createElement(_t,{rec:P,index:V,tempMap:s,resolver:Pi,isActive:!0})):null,m=(P,V)=>{var M,x,T,B,k,j,E;return P?.video?n.createElement(n.Fragment,null,((M=P?.video)===null||M===void 0?void 0:M.title)&&n.createElement("div",{className:"clc-sxp-bottom-shadow"}),n.createElement("div",{className:"clc-sxp-bottom"},n.createElement(Oo,{nudge:o}),b(P,V),n.createElement("div",null,n.createElement(Ti,{className:"clc-sxp-bottom-text",isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(T=(x=P?.video)===null||x===void 0?void 0:x.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"})}),n.createElement(_t,{rec:P,index:V,tempMap:s,resolver:Pi,includesCtaType:["AniLink"],isActive:!0})),n.createElement(Co,{index:V,tags:(k=(B=P?.video)===null||B===void 0?void 0:B.hashTags)!==null&&k!==void 0?k:[],itemId:(j=P?.video)===null||j===void 0?void 0:j.itemId,itemType:!((E=P?.video)===null||E===void 0)&&E.itemId?"VIDEO":null,rec:P,hashTagStyle:r})),n.createElement(_t,{rec:P,index:V,tempMap:s,resolver:Pi,includesCtaType:["AniLinkPopup"],isActive:!0})):null},S=Et(Vd,c),v=Et(Dd,c),g=(P,V)=>{var M,x,T,B;if(!e?.isShowLike)return;let k=(M=e?.likeIconY)!==null&&M!==void 0?M:400;return k<40&&(k+=40),P?.video?n.createElement(Sn,{key:P.position,activeIcon:(x=e?.likeIcon)!==null&&x!==void 0?x:S,unActicveIcon:(T=e?.unlikeIcon)!==null&&T!==void 0?T:v,position:V,active:P.isCollected,recData:P,className:"clc-sxp-like-button",style:{top:k,right:(B=e?.likeIconX)!==null&&B!==void 0?B:0}}):null},h=Et("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",c),w=Et("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",c),C=(P,V)=>{var M,x,T,B;return n.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},p,n.createElement(Lo,{tagList:d}),n.createElement(Hi,{style:{position:"absolute",right:(M=e?.muteIconX)!==null&&M!==void 0?M:0,visibility:!((T=(x=t?.[V])===null||x===void 0?void 0:x.video)===null||T===void 0)&&T.url?"visible":"hidden",bottom:(B=e?.muteIconY)!==null&&B!==void 0?B:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:h,unactiveIcon:e?.muteIcon?e?.muteIcon:w}),f(P,V),m(P,V),g(P,V))};return n.createElement("div",{className:De.css({width:"100%",height:u,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 Fd=n.memo(Bd);const Wd=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:o,rec:s,index:l,swiperRef:r,data:u=[],loopPlay:a})=>{const{isActive:c}=yi(),[d,A]=n.useState(!1);n.useEffect(()=>{c&&d&&a&&setTimeout(()=>{var p,b,m,S;if(l===u?.length-1)(p=r?.current)===null||p===void 0||p.swiper.slideTo(0);else{const v=(m=(b=r?.current)===null||b===void 0?void 0:b.swiper)===null||m===void 0?void 0:m.activeIndex;(S=r?.current)===null||S===void 0||S.swiper.slideTo(v+1)}},3e3)},[c,d,u,l,r,a]);const f=()=>{A(!0)};return n.createElement(Kt,{defaultValue:0,direction:"horizontal",modules:[wi,Si],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(p=>n.createElement(Bt,{key:p},n.createElement(xn,{src:p,height:i,imgUrlsPostConfig:o,onShowFirstImage:f}))))};var zd=n.memo(Wd);const Hd=n.forwardRef(({rec:t,index:e,height:i,data:o,muted:s,activeIndex:l,videoPostConfig:r,width:u,swiperRef:a,videoPlayIcon:c,onUpdateTimeLine:d,loopPlay:A,onPlay:f,onPause:p},b)=>{const{isActive:m}=yi(),[S,v]=n.useState(!1),g=n.useRef(null),{bffEventReport:h,sxpParameter:w,waterFallData:C,openHashtag:P}=He();n.useRef(0);const[V,M]=n.useState(!1);n.useState(!0),n.useRef(null),n.useState("");const x=`pb-cache-video-${e}`,T=n.useRef(null),B=n.useRef(A),k=t.video.scene;n.useEffect(()=>{B.current=A},[A]),n.useImperativeHandle(b,()=>({play(){var N;g.current&&(D(),(N=g.current)===null||N===void 0||N.play(),v(!1))},pause(){var N;g.current&&((N=g.current)===null||N===void 0||N.pause(),v(!0))},setLoopPlay(N){B.current=N},isPlaying(){var N;return!(!((N=g?.current)===null||N===void 0)&&N.paused)}})),n.useEffect(()=>{g.current&&(g.current.muted=s)},[s]);const j=Et("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),E=n.useCallback(()=>{var N;g.current.currentTime=k?.startTime,(N=g?.current)===null||N===void 0||N.play(),M(!0)},[]),y=n.useCallback(N=>()=>{var q,X,Y,R,me,ae;if(!m||!g?.current||!V)return;const J=(q=g.current)===null||q===void 0?void 0:q.paused;switch(N){case"start":if(!J)return;(X=g.current)===null||X===void 0||X.play(),v(!1);break;case"pause":if(J)return;(Y=g.current)===null||Y===void 0||Y.pause(),v(!0);break;default:J?(((R=g?.current)===null||R===void 0?void 0:R.currentTime)>=k?.endTime&&(g.current.currentTime=k?.startTime),(me=g.current)===null||me===void 0||me.play()):(ae=g.current)===null||ae===void 0||ae.pause(),v(!J);break}},[V]),W=n.useMemo(()=>r?.mode==="2",[r]),D=()=>{g.current&&setTimeout(()=>{var N,q,X,Y,R,me,ae,J,Te;if(((N=g?.current)===null||N===void 0?void 0:N.currentTime)>=((q=k?.endTime)!==null&&q!==void 0?q:0)){if((X=g.current)===null||X===void 0||X.pause(),!B.current)return;if(e===o?.length-1)(R=(Y=a?.current)===null||Y===void 0?void 0:Y.swiper)===null||R===void 0||R.slideTo(0);else{const Oe=(ae=(me=a?.current)===null||me===void 0?void 0:me.swiper)===null||ae===void 0?void 0:ae.activeIndex;(Te=(J=a?.current)===null||J===void 0?void 0:J.swiper)===null||Te===void 0||Te.slideTo(Oe+1)}}})},F=()=>{v(!0),p?.()},O=()=>{var N;const q=((N=g?.current)===null||N===void 0?void 0:N.currentTime)-k?.startTime;f?.(e,q)};n.useEffect(()=>{var N,q,X,Y;if(!m)return;const R=k?.mediaUrl;if(!R)return;v(!1);const me=document.querySelector(`#${x}`);if(!me||(g.current=mi?.(me),!g?.current))return;const ae=window?.Hls;let J=T?.current;return R.includes(".m3u8")&&ae&&ae.isSupported()?(J=new ae,J?.loadSource(R),J?.attachMedia(g?.current),J?.on(ae.Events.MANIFEST_PARSED,function(){var Te;g.current.currentTime=k?.startTime,(Te=g?.current)===null||Te===void 0||Te.play()})):g.current.src=R,(N=g.current)===null||N===void 0||N.addEventListener("loadedmetadata",E),(q=g?.current)===null||q===void 0||q.addEventListener("pause",F),(X=g?.current)===null||X===void 0||X.addEventListener("play",O),(Y=g.current)===null||Y===void 0||Y.addEventListener("timeupdate",D),()=>{var Te,Oe,Fe,ce,de;T?.current&&((Te=T?.current)===null||Te===void 0||Te.destroy()),M(!1),(Oe=g.current)===null||Oe===void 0||Oe.removeEventListener("loadedmetadata",E),(Fe=g.current)===null||Fe===void 0||Fe.removeEventListener("pause",F),(ce=g.current)===null||ce===void 0||ce.removeEventListener("play",O),(de=g.current)===null||de===void 0||de.removeEventListener("timeupdate",D)}},[m]);const I=n.useMemo(()=>{var N;return!w?.placeholder_image||V?null:n.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 n.useMemo(()=>W?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[W]),k?.mediaUrl?n.createElement("div",{className:"video-container",key:k.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:y()},n.createElement("div",{className:"n-full-screen",id:x,style:{width:"100%",height:"100%"}}),I,S&&n.createElement(Ot,{className:"clc-pb-video-pause",src:c??j,alt:"pause"})):null});var Ud=n.memo(Hd);const Ui={};Object.values(zi).forEach(t=>{Ui[t.extend.type]=t});const Xd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",qd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Yd=n.forwardRef(({data:t=[],globalConfig:e,tipText:i,nudge:o,tempMap:s,descStyle:l,hashTagStyle:r,containerHeight:u=664,containerWidth:a=375,appDomain:c,tagList:d=[],onActiveChange:A,activeIndex:f,loopPlay:p=!1,pointerEvents:b="none",onUpdateTimeLine:m,disabledListener:S,onPlay:v,onPause:g},h)=>{const w=n.useRef(null),C=n.useRef(null),[P,V]=n.useState(0);n.useMemo(()=>{let O=0;return e?.logoUrl&&e?.isShowLogo&&(O+=45),d.length>0&&(O+=45),u-O},[e,u,d]),n.useImperativeHandle(h,()=>({play(){var O;(O=w?.current)===null||O===void 0||O.play()},pause(){var O;(O=w?.current)===null||O===void 0||O.pause()},slideTo(O){var I,N;C?.current&&((N=(I=C?.current)===null||I===void 0?void 0:I.swiper)===null||N===void 0||N.slideTo(O))},isPlaying(){var O,I;return(I=(O=w?.current)===null||O===void 0?void 0:O.isPlaying())!==null&&I!==void 0?I:!1}}));const M=O=>{if(O&&O!==""&&typeof O=="string"){const I=[".mp4",".m3u8"],N=O?.toLowerCase();return I.some(q=>N?.endsWith(q))}else return!1},x=(O,I)=>{var N,q;const X=(N=O?.video)===null||N===void 0?void 0:N.scene;return M(X?.mediaUrl)?n.createElement(Ud,Object.assign({key:I},P===I&&{ref:w},{rec:O,index:I,muted:!0,width:a,data:t,height:u,activeIndex:I,videoPostConfig:e?.videoPost,videoPlayIcon:e?.videoPlayIcon,swiperRef:C,loopPlay:p,onUpdateTimeLine:m,onPlay:v,onPause:g})):n.createElement(zd,{key:I,imgUrls:[(q=X?.mediaUrl)!==null&&q!==void 0?q:""],width:a,height:u,rec:O,index:I,imgUrlsPostConfig:e?.imgUrlsPost,data:t,swiperRef:C})};n.useMemo(()=>e?.logoUrl&&e?.isShowLogo?n.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},n.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]);const T=(O,I)=>{var N,q,X,Y;return O?.video?n.createElement(n.Fragment,null,((N=O?.video)===null||N===void 0?void 0:N.title)&&n.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:b}}),n.createElement("div",{style:{marginBottom:`${(q=e?.bottomInfoDist)!==null&&q!==void 0?q:40}px`,zIndex:999,position:"absolute",bottom:0,left:0,right:0,paddingTop:"20px"}},e?.isShowCTA===void 0||e?.isShowCTA?n.createElement("div",{style:{}},n.createElement(_t,{rec:O,index:I,tempMap:s,resolver:Ui,isActive:I===f})):null,n.createElement("div",null,n.createElement(Ti,{isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(Y=(X=O?.video)===null||X===void 0?void 0:X.title)!==null&&Y!==void 0?Y:"",style:Object.assign(Object.assign({},l),{textShadow:e?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none",padding:"0 20px",fontSize:"12px"})}),n.createElement(_t,{rec:O,index:I,tempMap:s,resolver:Ui,includesCtaType:["AniLink"],isActive:I===f}))),n.createElement(_t,{rec:O,index:I,tempMap:s,resolver:Ui,includesCtaType:["AniLinkPopup"],isActive:I===f})):null},B=Et(qd,c),k=Et(Xd,c),j=(O,I)=>{var N,q,X,Y;if(!e?.isShowLike)return null;let R=(N=e?.likeIconY)!==null&&N!==void 0?N:400;return R<40&&(R+=40),O?.video?n.createElement(Sn,{key:O.position,activeIcon:(q=e?.likeIcon)!==null&&q!==void 0?q:B,unActicveIcon:(X=e?.unlikeIcon)!==null&&X!==void 0?X:k,position:I,active:O.isCollected,recData:O,style:{top:R,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},E=Et("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",c),y=Et("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",c),W=O=>{var I,N,q,X;if(!O)return null;let Y=(I=e?.muteIconY)!==null&&I!==void 0?I:23;return e?.muteIconYPosit==="top"&&(Y+=45),e?.isShowMute===void 0||e?.isShowMute===!0?n.createElement(Hi,{style:{position:"absolute",visibility:"visible",zIndex:999,transform:"translate3d(0px,0px,0px)",[(N=e?.muteIconXPosit)!==null&&N!==void 0?N:"right"]:(q=e?.muteIconX)!==null&&q!==void 0?q:0,[(X=e?.muteIconYPosit)!==null&&X!==void 0?X:"bottom"]:Y,backgroundColor:"transparent",width:"50px",height:"50px",outline:"none",border:"none",boxSizing:"content-box",padding:0},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:E,unactiveIcon:e?.muteIcon?e?.muteIcon:y}):null},D=(O,I)=>{var N,q,X,Y;return n.createElement("div",{style:{position:"relative"}},n.createElement(Bt,{key:I,virtualIndex:I,style:{overflow:"hidden",position:"relative"}},T(O,I),j(O,I),W(!e?.muteIconFixed),n.createElement(Hi,{style:{position:"absolute",right:(N=e?.muteIconX)!==null&&N!==void 0?N:0,visibility:!((X=(q=t?.[I])===null||q===void 0?void 0:q.video)===null||X===void 0)&&X.url?"visible":"hidden",bottom:(Y=e?.muteIconY)!==null&&Y!==void 0?Y:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:E,unactiveIcon:e?.muteIcon?e?.muteIcon:y}),x(O,I)))};n.useEffect(()=>{var O,I;C?.current&&((I=(O=C?.current)===null||O===void 0?void 0:O.swiper)===null||I===void 0||I.slideTo(f))},[f]);const F=n.useCallback(Re.debounce(()=>{var O;(O=w.current)===null||O===void 0||O.setLoopPlay(!1)},1e3),[]);return n.useEffect(()=>{if(S)return;const O=["touchstart","touchcancel"];return O.forEach(I=>{window.addEventListener(I,F)}),()=>{O.forEach(I=>{window.removeEventListener(I,F)})}},[F,S]),n.createElement("div",{id:"sxp-render",style:{height:u,position:"relative",pointerEvents:b}},n.createElement(Kt,{ref:C,allowTouchMove:b!=="none",onSlideChange:()=>{C.current.swiper.allowTouchMove=!1,setTimeout(()=>{C.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:O=>{V(O?.activeIndex),A?.(O.activeIndex)},direction:"vertical",style:{overflow:"hidden",height:u},height:u},t?.map((O,I)=>D(O,I))))});var Gd=n.memo(Yd);const _d=()=>{const{schema:t,resolver:e,popup:i}=ei(),{setPopupDetailData:o,popupDetailData:s,popupCurTimeRef:l,checkCommodityIndexRef:r}=He(),{productView:u}=Lt(),[a,c]=n.useState();n.useEffect(()=>{const p=()=>{l.current=new Date};return p(),window.addEventListener("pageshow",p),()=>{window.removeEventListener("pageshow",p)}},[]),n.useEffect(()=>{i&&i?.id&&i?.id!==""&&(l.current=new Date,c(i))},[i]);const d=n.useMemo(()=>{var p,b,m,S;const v=(m=(b=(p=t?.sxpPageConf)===null||p===void 0?void 0:p.globalConfig)===null||b===void 0?void 0:b.popupList)===null||m===void 0?void 0:m.find((g,h)=>{if(g?.id===i?.id)return g});return v!==-1&&((S=v?.item)===null||S===void 0?void 0:S.type)==="Iframe"},[i,t]),A=()=>{var p,b,m,S,v,g,h,w,C,P,V,M,x,T,B,k,j,E;if(!i||i?.id===""||!a||new Date-l.current<((p=i?.duration)!==null&&p!==void 0?p:0))return;c(Object.assign(Object.assign({},i),{id:""}));const y=(S=(m=(b=t?.sxpPageConf)===null||b===void 0?void 0:b.globalConfig)===null||m===void 0?void 0:m.popupList)===null||S===void 0?void 0:S.find(W=>W?.id===i?.id);if(((v=y?.item)===null||v===void 0?void 0:v.type)==="CommodityDetail"||((g=y?.item)===null||g===void 0?void 0:g.type)==="CommodityDetailDiroNew"){const W=s;let D=(w=(h=W?.video)===null||h===void 0?void 0:h.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],F=(x=(M=(V=W?.video)===null||V===void 0?void 0:V.bindProduct)===null||M===void 0?void 0:M.bindCta)!==null&&x!==void 0?x:(k=(B=(T=W?.video)===null||T===void 0?void 0:T.bindProducts)===null||B===void 0?void 0:B[0])===null||k===void 0?void 0:k.bindCta;if(r?.current>=0){const O=(E=(j=W?.video)===null||j===void 0?void 0:j.bindProducts)===null||E===void 0?void 0:E[r?.current];O&&(D=O,F=O?.bindCta)}D&&F&&u(W,D,F,l.current,s?.index)}setTimeout(()=>{window?.sxpPopup(""),o?.(null),r.current=-1},i?.duration)},f=n.useMemo(()=>{var p,b,m;return(m=(b=(p=t?.sxpPageConf)===null||p===void 0?void 0:p.globalConfig)===null||b===void 0?void 0:b.popupList)===null||m===void 0?void 0:m.map((S,v)=>{var g,h,w,C,P,V,M,x,T,B,k,j,E,y;if(S?.id===i?.id){const W=e[(g=S?.item)===null||g===void 0?void 0:g.type],D=Ci(W),F=((C=(w=(h=S?.item)===null||h===void 0?void 0:h.event)===null||w===void 0?void 0:w.onClick)===null||C===void 0?void 0:C.linkType)==="externalLink",O=((M=(V=(P=S?.item)===null||P===void 0?void 0:P.event)===null||V===void 0?void 0:V.onClick)===null||M===void 0?void 0:M.linkType)==="popup",I=(x=W?.extend)===null||x===void 0?void 0:x.defaulSetting;return n.createElement(D,Object.assign({key:v,style:Object.assign(Object.assign(Object.assign({},I?.style),(T=S?.item)===null||T===void 0?void 0:T.style),{height:"100%"}),textStyle:Object.assign(Object.assign({},I?.textStyle),(B=S?.item)===null||B===void 0?void 0:B.textStyle),bindDatas:(j=(k=S?.item)===null||k===void 0?void 0:k.bindDatas)!==null&&j!==void 0?j:[]},I?.props,(E=S?.item)===null||E===void 0?void 0:E.props,{event:((y=S?.item)===null||y===void 0?void 0:y.event)||{},schema:t,id:S?.id,isExternalLink:F,isPopup:O,onClose:A}))}else return n.createElement(n.Fragment,null)})},[t,i,e,A]);return n.createElement(vi,{popup:a,onClose:A,padding:0,modalStyle:{position:"fixed"},isFullScreen:d},f)},Tn={};Object.values(zi).forEach(t=>{Tn[t.extend.type]=t});const Zd=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:o=20,loadingImage:s,appDomain:l,enabledMetaConversionApi:r,dataList:u})=>{var a,c,d,A,f,p,b;const m=((a=t?.page_type)===null||a===void 0?void 0:a.path_type)===5,S=n.useMemo(()=>{var C;return location?.search?(C=location?.search)===null||C===void 0?void 0:C.replace("?",""):""},[]),[v,g]=n.useState(t?.data),[h,w]=n.useState();return n.createElement(Jn,{resolver:Tn,enableDataSource:!1,schema:v,utmVal:h||S},n.createElement(Gn,{utmVal:S,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(d=(c=t?.sxp_parameter)===null||c===void 0?void 0:c.personalized_recommend)!==null&&d!==void 0?d:e,defaultSize:(f=(A=t?.sxp_parameter)===null||A===void 0?void 0:A.default_recommend)!==null&&f!==void 0?f:i,hashTagSize:(b=(p=t?.sxp_parameter)===null||p===void 0?void 0:p.hash_tag_size)!==null&&b!==void 0?b:o,loadingImage:s,appDomain:l,enabledMetaConversionApi:r,utmParameter:t?.utm_parameter,data:t,dataList:u,isDiyH5:m,onUpdateSchema:C=>g(C),onUpdateChannel:C=>w(C),render:({rtcList:C,tagList:P,pageData:V})=>{var M;return n.createElement(n.Fragment,null,n.createElement(jo,Object.assign({defaultData:t},(M=V?.data)===null||M===void 0?void 0:M.sxpPageConf,{tagList:P,data:C,resolver:Tn})),n.createElement(_d,null))}}))};var Kd=n.memo(Zd);pt.DiyPortalPreview=Fd,pt.DiyStoryPreview=Gd,pt.EditorDataProvider=td,pt.Modal=vi,pt.SxpDataSourceProvider=Gn,pt.SxpPageCore=Kd,pt.SxpPageRender=jo,pt.core=sl,pt.default=Go,pt.materials=zi,pt.useEditorDataProvider=Ii,Object.defineProperty(pt,"__esModule",{value:!0})});
|
|
17
|
+
}`)(r,h)}catch{}},[r]),m=n.useCallback(g=>{const h=b(g),w=h?.value;w&&(h?.linkType==="recommendFlow"?(c?.(w),a.current=new Date):new Function(w)())},[r]),S=n.useCallback(()=>{d.current=new Date,u?.({eventInfo:{eventSubject:"startMultiPost",eventDescription:"startMultiPost",contentFormat:"image",position:"0",traceInfo:p}})},[]),v=n.useCallback(g=>{a.current=new Date,u?.({eventInfo:{eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:p,nextStep:g||"others",timeOnSite:Math.floor((new Date-d?.current)/1e3)+""}})},[]);return n.useEffect(()=>{A?(S(),f.current=!0):f.current&&v()},[A]),n.useEffect(()=>{if(!A)return;const g=()=>S(),h=()=>v();return wt.on(bt.PAGE_DID_SHOW,g),wt.on(bt.PAGE_DID_HIDE,h),()=>{wt.off(bt.PAGE_DID_SHOW,g),wt.off(bt.PAGE_DID_HIDE,h)}},[A]),n.createElement("div",{className:"multiposts",style:Object.assign(Object.assign({},s),Qs(o))},Array.from({length:4},(g,h)=>n.createElement("button",{hidden:!b(h,"Url"),className:"multiposts-btn",role:"button","aria-label":`multiposts-${h+1}`,onClick:()=>m(h)},n.createElement("img",{className:"multiposts-btn-img",src:b(h,"Url"),alt:`multiposts-img-${h+1}`}))))};var wn=n.memo(cd),vd=[{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 pd=mt(wn,{displayName:"MultiPosts",icon:"",category:"base",type:"MultiPosts",related:{settingRender:ud,interactionRender:vd},defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var zi=Object.freeze({__proto__:null,AniLink:Wa,AniLinkPopup:Ya,Appoint:jr,AppointForm:pl,Click:od,Commodity:Pr,CommodityDetail:er,CommodityDetailDiroNew:ur,CommodityDiro:Xr,CommodityDiroNew:Zr,CommodityList:hr,Consent:Na,ConsentDetail:xr,Display:Ra,HashTag:La,Iframe:yr,Link:Fr,MultiCommodity:oa,MultiCommodityDiro:$r,MultiCommodityDiroNew:da,MultiPosts:pd,NineCommodity:pa,Prompt:lr,Swipe:dd});const md="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",fd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",hd=t=>{var e,{active:i,activeIcon:o,unActicveIcon:s,recData:l,position:r}=t,u=$e(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:a,mutateUnlike:c,bffEventReport:d,setCacheRtcList:A,cacheRtcList:f}=He(),[p,b]=n.useState((e=f?.[r])===null||e===void 0?void 0:e.isCollected),m=Et(fd),S=Et(md),v=Re.debounce(()=>ot(void 0,void 0,void 0,function*(){var g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D,F,O,I,N,q,X;if(p){b(!1);const Y=(w=yield c?.({videoItemId:(h=(g=l?.video)===null||g===void 0?void 0:g.itemId)!==null&&h!==void 0?h:""}))!==null&&w!==void 0?w:!1;if(d?.({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:(M=(V=l?.video)===null||V===void 0?void 0:V.title)!==null&&M!==void 0?M:"",contentTags:JSON.stringify((T=(x=l?.video)===null||x===void 0?void 0:x.tags)!==null&&T!==void 0?T:[]),position:r+"",contentFormat:!((B=l?.video)===null||B===void 0)&&B.url?"video":"image",traceInfo:(k=l?.video)===null||k===void 0?void 0:k.traceInfo}}),!Y)b(!0);else{const R=(j=f?.map((me,ae)=>(ae===r&&(me.isCollected=!1),me)))!==null&&j!==void 0?j:[];A?.(R)}}else{b(!0);const Y=(E=yield a?.({content:JSON.stringify(l)}))!==null&&E!==void 0?E:!1;if(d?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(W=(y=l?.video)===null||y===void 0?void 0:y.itemId)!==null&&W!==void 0?W:"",contentName:(F=(D=l?.video)===null||D===void 0?void 0:D.title)!==null&&F!==void 0?F:"",contentTags:JSON.stringify((I=(O=l?.video)===null||O===void 0?void 0:O.tags)!==null&&I!==void 0?I:[]),position:r+"",contentFormat:!((N=l?.video)===null||N===void 0)&&N.url?"video":"image",traceInfo:(q=l?.video)===null||q===void 0?void 0:q.traceInfo}}),!Y)b(!1);else{const R=(X=f?.map((me,ae)=>(ae===r&&(me.isCollected=!0),me)))!==null&&X!==void 0?X:[];A?.(R)}}}),200);return n.createElement("button",Object.assign({},u,{"aria-label":"like",onClick:v}),n.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:p?o||m:s||S,alt:"icon"}))};var Sn=n.memo(hd),Ad="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///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8IUgCXCNzxI8gOJQV3CFy4RIkMJTccQnQYZCGShAgNZiS45MfDiB8lglzSQyPGk0FCqp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.createElement("div"),e=Ln.render(n.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})(),bd=n.forwardRef(({rec:t,index:e,height:i,data:o,muted:s,activeIndex:l,videoPostConfig:r,videoPlayIcon:u,loopPlay:a,swiperRef:c,visibleHeight:d},A)=>{var f,p;const[b,m]=n.useState(!1),{bffEventReport:S,sxpParameter:v,waterFallData:g,openHashtag:h,bffFbReport:w,isDiyH5:C}=He(),P=n.useRef(0),[V,M]=n.useState(!1),{isActive:x}=yi(),T=n.useRef(null),[B,k]=n.useState(""),[j,E]=n.useState(!1),y=n.useRef(),W=`pb-cache-video-${e}`,D=n.useRef(null),F=n.useRef(null),O=n.useRef(),I=n.useRef(),N=n.useRef(!0),q=n.useRef(a),X=t.video.scene,Y=X?.mediaUrl||((f=t?.video)===null||f===void 0?void 0:f.url),R=X?.mediaUrl?X?.cover:(p=t?.video)===null||p===void 0?void 0:p.cover,me=R||v?.placeholder_image;n.useImperativeHandle(A,()=>({setLoopPlay(K){q.current=K}})),n.useEffect(()=>{q.current=a},[a]);const ae=n.useMemo(()=>r?.mode==="2",[r]),J=n.useMemo(()=>{var K;return r?.mode==="2"?`translateY(-${50+((K=r?.offsetTop)!==null&&K!==void 0?K:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[r]),Te=n.useMemo(()=>R||B,[B,t]),Oe=n.useMemo(()=>ae?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[ae]),Fe=n.useMemo(()=>r?.bgWay==="1",[r]),ce=n.useMemo(()=>Fe&&r?.bgColor?{backgroundColor:r?.bgColor}:{},[r,Fe]);n.useEffect(()=>{y?.current&&(y.current.muted=s)},[s,y?.current]);const de=n.useCallback(()=>{var K;y?.current&&((K=y?.current)===null||K===void 0||K.play())},[y?.current]),Ze=Et("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),Ue=n.useCallback(()=>{y?.current&&(E(!1),M(!0))},[]),Xe=n.useCallback(()=>ot(void 0,void 0,void 0,function*(){var K,ee,Z,le,we,ye,$,z,Ne,tt,Je,st,Qe;if(!y?.current)return;m(!1);const Be=o[e];if(Be&&(!((K=y?.current)===null||K===void 0)&&K.duration)){P.current=((ee=y?.current)===null||ee===void 0?void 0:ee.currentTime)||0;const it=((le=(Z=y?.current)===null||Z===void 0?void 0:Z.duration)!==null&&le!==void 0?le:0).toFixed(2),ct=((ye=(we=y?.current)===null||we===void 0?void 0:we.currentTime)!==null&&ye!==void 0?ye:0).toFixed(2),gt=N?.current?"0":"1";S?.({eventInfo:Object.assign({eventSubject:"playVideo",eventDescription:"User played the video",contentId:(z=($=Be?.video)===null||$===void 0?void 0:$.itemId)!==null&&z!==void 0?z:"",contentName:(tt=(Ne=Be?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&tt!==void 0?tt:"",playType:gt,startTime:ct,videoDuration:it,contentTags:JSON.stringify((st=(Je=Be?.video)===null||Je===void 0?void 0:Je.tags)!==null&&st!==void 0?st:[]),position:e+"",contentFormat:"video",traceInfo:(Qe=Be?.video)===null||Qe===void 0?void 0:Qe.traceInfo},N?.current&&{loadTime:I?.current-O?.current+""})}),N.current=!1}}),[S,o,e,N,y?.current]),_e=n.useCallback(()=>{C&&(y.current.currentTime=X?.startTime)},[]),lt=n.useCallback(()=>{if(!y?.current||B||!ae||(y.current.style.objectFit="contain",R||!T||!T.current||Fe))return;const K=()=>{const ee=T?.current,Z=ee.getContext("2d"),le=window?.innerWidth,we=d||window?.innerHeight;ee.height=we,ee.width=le,Z?.drawImage(y.current,0,0,ee.width,ee.height),k(ee.toDataURL())};K(),setTimeout(()=>{K()},500)},[y.current,Fe,t,B,ae,d]),Ke=n.useCallback(()=>{y.current&&(_e(),I.current=new Date,Xe(),lt())},[y.current,lt,Xe]),ke=n.useCallback(K=>()=>{var ee,Z,le,we,ye,$;if(!y.current||!V)return;const z=(ee=y?.current)===null||ee===void 0?void 0:ee.paused;switch(K){case"start":if(!z)return;(Z=y?.current)===null||Z===void 0||Z.play(),m(!1);break;case"pause":if(z)return;(le=y?.current)===null||le===void 0||le.pause(),m(!0);break;default:z?(C&&Math.round((we=y?.current)===null||we===void 0?void 0:we.currentTime)>=X?.endTime&&(y.current.currentTime=X?.startTime),(ye=y?.current)===null||ye===void 0||ye.play()):($=y?.current)===null||$===void 0||$.pause(),m(!z);break}},[V,y?.current]),et=n.useCallback(()=>{var K,ee,Z,le,we,ye,$,z,Ne,tt,Je,st,Qe;if(!y?.current||l!==e)return;m(!0);const Be=o[e],it=((ee=(K=y?.current)===null||K===void 0?void 0:K.duration)!==null&&ee!==void 0?ee:0).toFixed(2),ct=((le=(Z=y?.current)===null||Z===void 0?void 0:Z.currentTime)!==null&&le!==void 0?le:0).toFixed(2);if(!((we=y?.current)===null||we===void 0)&&we.duration){const gt=(((ye=y?.current)===null||ye===void 0?void 0:ye.currentTime)-P.current).toFixed(2);S?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(z=($=Be?.video)===null||$===void 0?void 0:$.itemId)!==null&&z!==void 0?z:"",contentName:(tt=(Ne=Be?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&tt!==void 0?tt:"",endTime:ct,videoDuration:it,playDuration:gt,contentTags:JSON.stringify((st=(Je=Be?.video)===null||Je===void 0?void 0:Je.tags)!==null&&st!==void 0?st:[]),position:e+"",contentFormat:"video",traceInfo:(Qe=Be?.video)===null||Qe===void 0?void 0:Qe.traceInfo}})}},[o,e,S,y?.current,l]),kt=n.useCallback(()=>{E(!0)},[]),Ve=()=>{!y.current||!C||setTimeout(()=>{var K,ee,Z,le,we,ye,$,z,Ne;if(Math.round((K=y?.current)===null||K===void 0?void 0:K.currentTime)>=((ee=X?.endTime)!==null&&ee!==void 0?ee:0)){if((Z=y.current)===null||Z===void 0||Z.pause(),!q.current)return;if(e===o?.length-1)(we=(le=c?.current)===null||le===void 0?void 0:le.swiper)===null||we===void 0||we.slideTo(0);else{const tt=($=(ye=c?.current)===null||ye===void 0?void 0:ye.swiper)===null||$===void 0?void 0:$.activeIndex;(Ne=(z=c?.current)===null||z===void 0?void 0:z.swiper)===null||Ne===void 0||Ne.slideTo(tt+1)}}})};n.useEffect(()=>{var K,ee,Z,le,we,ye,$,z,Ne,tt,Je;if(!x)return;const st=Y;if(!st)return;const Qe=document.querySelector(`#${W}`);if(!Qe||(y.current=mi?.(Qe),!y?.current))return;O.current=new Date;const Be=window?.Hls;let it=F?.current;return st.includes(".m3u8")&&Be&&Be.isSupported()?(it=new Be,it?.loadSource(st),it?.attachMedia(y?.current),it?.on(Be.Events.MANIFEST_PARSED,function(){var ct;_e(),(ct=y?.current)===null||ct===void 0||ct.play()})):y.current.src=st,(K=y?.current)===null||K===void 0||K.setAttribute("x5-playsinline","true"),(ee=y?.current)===null||ee===void 0||ee.setAttribute("webkit-playsinline","true"),(Z=y?.current)===null||Z===void 0||Z.addEventListener("loadedmetadata",Ke),(le=y?.current)===null||le===void 0||le.addEventListener("loadeddata",lt),(we=y?.current)===null||we===void 0||we.addEventListener("play",Xe),(ye=y?.current)===null||ye===void 0||ye.addEventListener("playing",Ue),($=y?.current)===null||$===void 0||$.addEventListener("pause",et),(z=y?.current)===null||z===void 0||z.addEventListener("ended",de),(Ne=y?.current)===null||Ne===void 0||Ne.addEventListener("canplay",de),(tt=y?.current)===null||tt===void 0||tt.addEventListener("waiting",kt),(Je=y.current)===null||Je===void 0||Je.addEventListener("timeupdate",Ve),()=>{var ct,gt,Xt,Nt,St,xt,Zt,yt,qe,Ee,fe;((ct=y?.current)===null||ct===void 0?void 0:ct.paused)||et(),F?.current&&((gt=F?.current)===null||gt===void 0||gt.destroy()),M(!1),(Xt=y?.current)===null||Xt===void 0||Xt.removeEventListener("loadedmetadata",Ke),(Nt=y?.current)===null||Nt===void 0||Nt.removeEventListener("loadeddata",lt),(St=y?.current)===null||St===void 0||St.removeEventListener("play",Xe),(xt=y?.current)===null||xt===void 0||xt.removeEventListener("playing",Ue),(Zt=y?.current)===null||Zt===void 0||Zt.removeEventListener("pause",et),(yt=y?.current)===null||yt===void 0||yt.removeEventListener("ended",de),(qe=y?.current)===null||qe===void 0||qe.removeEventListener("canplay",de),(Ee=y?.current)===null||Ee===void 0||Ee.removeEventListener("waiting",kt),(fe=y.current)===null||fe===void 0||fe.removeEventListener("timeupdate",Ve)}},[x]),n.useEffect(()=>{var K,ee,Z,le,we,ye;!y?.current||!V||(x?(w?.({eventName:"ViewContent",product:(ee=(K=o?.[e])===null||K===void 0?void 0:K.video)===null||ee===void 0?void 0:ee.bindProduct}),w?.({eventName:"PageView",product:(le=(Z=o?.[e])===null||Z===void 0?void 0:Z.video)===null||le===void 0?void 0:le.bindProduct}),(we=y?.current)===null||we===void 0||we.play()):(ye=y?.current)===null||ye===void 0||ye.pause())},[x,V,y?.current]),n.useEffect(()=>{var K,ee,Z;if(!x||!y?.current)return;!((K=y?.current)===null||K===void 0?void 0:K.paused)&&h?(ee=y?.current)===null||ee===void 0||ee.pause():h||(Z=y?.current)===null||Z===void 0||Z.play()},[h,x,y?.current]),n.useEffect(()=>{if(!x)return;const K=()=>{ke("start")()},ee=ke("pause");return wt.on(bt.PAGE_DID_SHOW,K),wt.on(bt.PAGE_DID_HIDE,ee),()=>{wt.off(bt.PAGE_DID_SHOW,K),wt.off(bt.PAGE_DID_HIDE,ee)}},[ke,x]);const We=n.useMemo(()=>!me||V?null:n.createElement(Ot,{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:me,alt:"placeholder image"}),[V]),ze=n.useMemo(()=>{if(!(!j||!V))return n.createElement("img",{style:{position:"absolute",top:"50%",left:0,right:0,transform:"translateY(-100%)",margin:"auto",width:"50px",height:"50px",objectFit:"contain"},src:Ad,alt:"placeholder image"})},[j,V]);return n.useEffect(()=>{if(!y?.current)return;const K=()=>{l===e&&Y&&y?.current&&!b&&ke("pause")()};return window.addEventListener("beforeunload",K),()=>{window.removeEventListener("beforeunload",K)}},[l,e,t,y?.current,ke,b]),t?.video?n.createElement(n.Fragment,null,ae?n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:ke(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},ce)},!Fe&&V&&Te&&n.createElement(Ot,{src:Te,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},Oe)}),n.createElement("canvas",{ref:T,style:{display:"none"}}),n.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:J,left:0,right:0}},n.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},n.createElement("div",{className:"n-full-screen",ref:D,id:W,style:{width:"100%",height:"100%"}}),b&&n.createElement(Ot,{className:"clc-pb-video-pause",src:u??Ze,alt:"pause"}))),We,ze):n.createElement("div",{className:"video-container",key:t?.video.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:ke()},n.createElement("div",{className:"n-full-screen",ref:D,id:W,style:{width:"100%",height:"100%"}}),We,ze,b&&n.createElement(Ot,{className:"clc-pb-video-pause",src:u??Ze,alt:"pause"}))):null});var gd=n.memo(bd);const yd=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:o,style:s})=>{const[l,r]=n.useState(t),u=a=>{a.stopPropagation();const c=!l;r(c),o?.(c)};return n.useEffect(()=>{r(t)},[t]),n.createElement("button",{style:s,"aria-label":"toggle button",className:"pb-toggle-button",onClick:u},n.createElement("img",{className:"pb-toggle-button-icon",alt:"toggle image",src:l?e:i}))};var Hi=n.memo(yd);const wd=({imageUrl:t,style:e,duration:i=2e3})=>{const[o,s]=n.useState(!0);ei(),n.useEffect(()=>{setTimeout(()=>{s(!1)},i)},[]);const l=Et("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),r=n.useMemo(()=>o?"pb-fadeIn":"pb-fadeOut",[o]);return n.createElement("div",{hidden:!o,className:`pb-finger-wrap ${r}`,style:Object.assign(Object.assign({},e),{animationDuration:`${i/1e3}s`})},n.createElement("img",{src:t||l,alt:"finger swiper"}))},xn=t=>{const{src:e,height:i,imgUrlsPostConfig:o,onShowFirstImage:s}=t,l=n.useMemo(()=>o?.mode==="2",[o]),r=n.useMemo(()=>{var d;return o?.mode==="2"?`translateY(-${50+((d=o?.offsetTop)!==null&&d!==void 0?d:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[o]),u=n.useMemo(()=>l?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[l]),a=n.useMemo(()=>o?.bgWay==="1",[o]),c=n.useMemo(()=>a&&o?.bgColor?{backgroundColor:o?.bgColor}:{},[o,a]);return n.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},c)},(!l||!a)&&n.createElement(Ot,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},u),onLoad:s}),l&&n.createElement(Ot,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:r,left:0,right:0},onLoad:s}))},Sd=({imgUrls:t,width:e,height:i,rec:o,index:s,onViewImageEndEvent:l,onViewImageStartEvent:r,imgUrlsPostConfig:u})=>{var a,c;const{isActive:d}=yi(),{sxpParameter:A,openHashtag:f}=He(),[p,b]=n.useState(!1),[m,S]=n.useState(),[v,g]=n.useState(0),h=n.useRef(),w=n.useRef(!0),C=new Date;n.useEffect(()=>{p&&d?(h?.current&&h.current.swiper.autoplay.start(),f?l(o):(r(s,w.current?m:void 0,!0),w.current=!1)):h?.current&&h.current.swiper.autoplay.stop()},[o,d,l,f,s,r,p,m]);const P=n.useCallback(B=>ot(void 0,void 0,void 0,function*(){p||(S({loadTime:new Date-C+""}),b(!0))}),[p]);n.useEffect(()=>{if(!d)return;const B=()=>r(s,m),k=()=>l(o);return wt.on(bt.PAGE_DID_SHOW,B),wt.on(bt.PAGE_DID_HIDE,k),()=>{wt.off(bt.PAGE_DID_SHOW,B),wt.off(bt.PAGE_DID_HIDE,k)}},[d,m]);const V=n.useCallback(()=>{h.current&&h.current.swiper&&T&&h.current.swiper.autoplay.stop()},[]),M=n.useCallback(()=>{h.current&&h.current.swiper&&T&&h.current.swiper.autoplay.start()},[]),x=n.useCallback(B=>{g(B.activeIndex)},[]),T=n.useMemo(()=>Zi(),[]);return n.createElement("div",{onMouseEnter:V,onMouseLeave:M},n.createElement(Kt,Object.assign({defaultValue:0,direction:"horizontal",modules:[wi,Si,...T?[An,bn,Wi,fn]:[]],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"}},T?{mousewheel:!0,keyboard:!0,navigation:!0,a11y:{enabled:!0}}:{},{loop:!0,ref:h,onSlideChange:x,className:De.css(Object.assign(Object.assign({".swiper-pagination":{bottom:(a=u?.marginBottom)!==null&&a!==void 0?a:0,fontSize:"14px"}},u?.dotsBgColor&&{".swiper-pagination-bullet":{backgroundColor:u?.dotsBgColor,opacity:1}}),u?.dotsActiveColor&&{".swipe-item-active-bullet":{backgroundColor:`${u?.dotsActiveColor}!important`,opacity:1}})),height:i,autoplay:{delay:((c=u?.delay)!==null&&c!==void 0?c:3)*1e3}}),t?.map((B,k)=>n.createElement(Bt,{key:k,"aria-hidden":k!==v},n.createElement(xn,{src:!p&&k>0?"":B,height:i,imgUrlsPostConfig:u,onShowFirstImage:P})))))};var xd=n.memo(Sd);const Td=({tags:t,itemId:e,itemType:i,index:o,rec:s,hashTagStyle:l,hashTagRightMargin:r})=>{var u;const[a,c]=n.useState(!1),{setWaterFallData:d,setOpenHashtag:A,setCacheActiveIndex:f,waterFallData:p,setIsFromHashtag:b}=He(),m=S=>{p?b?.(!0):f?.(o),d?.(i?{hashTag:S,itemId:e,itemType:i,rec:s}:{hashTag:S,rec:s}),A?.(!0)};return n.useMemo(()=>t.length<=6?null:n.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>c(!a)},a?"show less":"show more"),[a,t]),n.createElement("div",{className:"clc-sxp-bottom-hashtag",style:{marginTop:`${(u=l?.marginTop)!==null&&u!==void 0?u:16}px`,width:r}},n.createElement(xi,null,t?.map((S,v)=>n.createElement(Bt,{key:v,hidden:a?!1:v>=6,className:"clc-sxp-bottom-hashtag-item",style:l,onClick:()=>m(S),tag:"li",role:"listitem"},n.createElement("button",{className:"clc-sxp-bottom-hashtag-item-button","aria-label":S,"aria-describedby":S,dangerouslySetInnerHTML:{__html:Pe(`#${S}`,l)}})))))};var Co=n.memo(Td),Po="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 Ci(t){return n.memo(function(e){const{$store:i}=_o(),o=l=>{let r=l;const u=l.match(/{{.*?}}/g);return u?.length&&u.forEach(a=>{a.replace(/{{\s*([\w.]+)\s*}}/g,(c,d)=>{if(d){const A=Re.get(i,d);return r=r.replace(a,A),A}})}),r},s=n.useMemo(()=>{var l,r,u;const{bindDatas:a}=e,c=$e(e,["bindDatas"]);if((l=a?.forEach)===null||l===void 0||l.call(a,d=>{if(d?.propKey&&d?.dataPath){const{propKey:A,dataPath:f}=d;f.replace(/{{\s*([\w.]+)\s*}}/g,(p,b)=>{var m,S;if(b){const v=(S=(m=Re.get(i,b))!==null&&m!==void 0?m:e[A])!==null&&S!==void 0?S:"";return c[A]=v,v}})}}),c){c.eventMap={};const d=Re.cloneDeep(c.event)||{};for(const A in d)if(Object.prototype.hasOwnProperty.call(d,A))try{d[A].value=o(d[A].value),c.eventMap[A]=new Function(d[A].value)}catch{}}return!((u=(r=c?.event)===null||r===void 0?void 0:r.onClick)===null||u===void 0)&&u.linkType&&(c.style.cursor="pointer"),c},[i,e]);return n.createElement(t,Object.assign({},s,s.eventMap))})}const Ed=({rec:t,index:e,tempMap:i,resolver:o,includesCtaType:s=[],isActive:l,isNineProduct:r})=>{var u,a,c,d,A;const{schema:f}=ei();if(!t?.video)return null;let p=null;!((a=(u=t?.video)===null||u===void 0?void 0:u.bindProducts)===null||a===void 0)&&a.length?p="\u591A\u5546\u54C1CTA":!((c=t?.video)===null||c===void 0)&&c.bindProduct?p="\u5546\u54C1CTA":p=(A=(d=t?.video)===null||d===void 0?void 0:d.bindCta)===null||A===void 0?void 0:A.itemId;const b=i?.[p],m=n.useMemo(()=>{var S,v,g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D,F,O,I,N,q,X,Y,R,me,ae;if(!(s?.length>0&&!s?.includes((S=b?.item)===null||S===void 0?void 0:S.type))&&!((!s||s?.length===0)&&((v=b?.item)===null||v===void 0?void 0:v.category)==="cta")){if(((g=b?.item)===null||g===void 0?void 0:g.type)==="CommodityDiro"&&!(!((h=t?.video)===null||h===void 0)&&h.bindProduct)||((w=b?.item)===null||w===void 0?void 0:w.type)==="Commodity"&&!(!((C=t?.video)===null||C===void 0)&&C.bindProduct)||((P=b?.item)===null||P===void 0?void 0:P.type)==="CommodityDiroNew"&&!(!((V=t?.video)===null||V===void 0)&&V.bindProduct)||((M=b?.item)===null||M===void 0?void 0:M.type)==="MultiCommodity"&&!(!((T=(x=t?.video)===null||x===void 0?void 0:x.bindProducts)===null||T===void 0)&&T.length)||((B=b?.item)===null||B===void 0?void 0:B.type)==="MultiCommodityDiro"&&!(!((j=(k=t?.video)===null||k===void 0?void 0:k.bindProducts)===null||j===void 0)&&j.length)||((E=b?.item)===null||E===void 0?void 0:E.type)==="MultiCommodityDiroNew"&&!(!((W=(y=t?.video)===null||y===void 0?void 0:y.bindProducts)===null||W===void 0)&&W.length))return null;if(b&&o){const J=o[r?"NineCommodity":(D=b?.item)===null||D===void 0?void 0:D.type],Te=Ci(J),Oe=(F=J?.extend)===null||F===void 0?void 0:F.defaulSetting,Fe=((N=(I=(O=b?.item)===null||O===void 0?void 0:O.event)===null||I===void 0?void 0:I.onClick)===null||N===void 0?void 0:N.linkType)==="externalLink",ce=Re.cloneDeep((q=b?.item)===null||q===void 0?void 0:q.style);if(ce.hasOwnProperty("backdropFilter")){const de=ce.backdropFilter;ce.backdropFilter=`blur(${de??0}px)`}return n.createElement(Te,Object.assign({style:Object.assign(Object.assign(Object.assign({},Oe?.style),ce),{zIndex:50,marginInlineStart:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},Oe?.textStyle),(X=b?.item)===null||X===void 0?void 0:X.textStyle),bindDatas:(R=(Y=b?.item)===null||Y===void 0?void 0:Y.bindDatas)!==null&&R!==void 0?R:[]},Oe?.props,(me=b?.item)===null||me===void 0?void 0:me.props,{event:((ae=b?.item)===null||ae===void 0?void 0:ae.event)||{},schema:f,id:b?.id,key:b?.id,recData:t,isExternalLink:Fe,index:e,isActive:l}))}else return null}},[t,o,i,f,b?.id,l]);return n.createElement(n.Fragment,null,m)};var _t=n.memo(Ed);const Oo=({nudge:t})=>{var e,i,o,s,l,r;return n.createElement(n.Fragment,null,t?.isOpen&&n.createElement("div",{className:"clc-sxp-bottom-nudge",style:{marginBottom:(e=t?.marginBottom)!==null&&e!==void 0?e:5,width:(o=(i=t?.size)===null||i===void 0?void 0:i.width)!==null&&o!==void 0?o:212,height:(l=(s=t?.size)===null||s===void 0?void 0:s.height)!==null&&l!==void 0?l:38,backgroundColor:t?.backgroundColor,borderRadius:(r=t?.borderRadius)!==null&&r!==void 0?r:4}},t?.icon?n.createElement("img",{src:t.icon,alt:"nudge icon",style:{height:"100%",objectFit:"cover",flexShrink:0}}):null,n.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:Pe(t?.content,t?.textStyle)}})))},kd=({tagList:t=[],setActiveIndex:e,style:i})=>{const{getRecommendVideos:o,setRtcList:s,setCacheRtcList:l,setCacheActiveIndex:r,setLoading:u,swiperRef:a,waterFallData:c,bffEventReport:d,selectTag:A,setSelectTag:f}=He(),{backMainFeed:p}=Lt(),b=n.useMemo(()=>[Li,...t],[t]),m=S=>()=>{if(S===A)return;S!=="FOR U"?d?.({eventInfo:{eventSubject:"clickThemeTagsViewContents",eventDescription:"click Theme Tags View Contents",themeTags:`['${S}']`}}):p("theme",S,A);let v;S!==Li&&(v=S),u?.(!0),o?.({themeTag:v}).then(g=>{var h,w,C,P;wt.emit(bt.CHANGE_THEME_TAG,v),s?.((h=g?.recList)!==null&&h!==void 0?h:[]),l?.((w=g?.recList)!==null&&w!==void 0?w:[]),e?.(0),r?.(0),(P=(C=a?.current)===null||C===void 0?void 0:C.swiper)===null||P===void 0||P.slideTo(0)}).finally(()=>{u?.(!1)}),f?.(S)};return c||t.length<=0?null:n.createElement("div",{className:"clc-sxp-tagbar",style:i},n.createElement("div",{className:"clc-sxp-tagbar-list",style:{margin:"auto",gap:24}},b.map(S=>n.createElement("button",{className:`clc-sxp-tagbar-list-item ${S===A?"clc-sxp-tagbar-list-item-active":""}`,key:S,"aria-label":S,onClick:m(S)},S))))};var Lo=n.memo(kd);const Id=({resolver:t,globalConfig:e})=>{var i,o,s;const{consentPopupCate:l}=Ii(),r=(o=(i=e?.consentPopup)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.item;if(!r||!l&&!(!((s=r?.props)===null||s===void 0)&&s.open))return null;const u=t?.[r?.type],a=Ci(u);return n.createElement(a,Object.assign({},r?.props,{style:r?.style,event:r?.event||{},consentPopupCate:l}))};var Cd=n.memo(Id);const Pd=({data:t,minusHeight:e,tagHeight:i,onClick:o})=>{var s,l,r,u,a;return n.createElement("button",{style:{position:"absolute",[(s=t?.xPosit)!==null&&s!==void 0?s:"left"]:(r=(l=t?.backButton)===null||l===void 0?void 0:l.x)!==null&&r!==void 0?r:0,[(u=t?.yPosit)!==null&&u!==void 0?u:"top"]:(t?.yPosit=="top"?e+i:0)+((a=t?.y)!==null&&a!==void 0?a:0),zIndex:8,border:"none",padding:0,background:"transparent"},role:"button","aria-label":"back button",onClick:o},n.createElement("img",{src:t?.icon||Po,alt:"back button",width:100,style:{objectFit:"cover"}}))};var Mo=n.memo(Pd);const Od=({globalConfig:t,descStyle:e,containerHeight:i,containerWidth:o=window.innerWidth,tempMap:s,resolver:l,data:r=[],ctaType:u,tipText:a,nudge:c,_schema:d,hashTagStyle:A,hashTagRightMargin:f,tagList:p=[],defaultData:b})=>{var m,S,v,g,h,w,C,P,V,M,x,T,B,k,j,E,y,W,D,F,O,I,N,q,X;const Y=Et("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),R=Et("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png"),{schema:me}=ei(),{openMultiPosts:ae}=Ii(),[J,Te]=n.useState(0),Oe=n.useRef(0),[Fe,ce]=n.useState(!0),de=n.useRef(),[Ze,Ue]=n.useState(!1),[Xe,_e]=n.useState(!1),[lt,Ke]=n.useState(new Date().getTime()),ke=n.useRef(!1),[et,kt]=n.useState(2);n.useState(!1);const Ve=n.useRef(null),We=n.useRef(""),{loadVideos:ze,bffEventReport:K,loading:ee,setPopupDetailData:Z,ctaEvent:le,swiperRef:we,waterFallData:ye,setOpenHashtag:$,appDomain:z,openHashtag:Ne,loadingImage:tt,isFromHashtag:Je,popupDetailData:st,bffFbReport:Qe,curTime:Be,h5EnterLink:it,isShowConsent:ct,selectTag:gt,isPreview:Xt,isEditor:Nt,cacheRtcList:St,setRtcList:xt,cacheActiveIndex:Zt,rtcList:yt,isNoMoreData:qe,channel:Ee,refreshFeSession:fe,isDiyH5:be,pixelPvStatusRef:ft}=He(),{backMainFeed:qt,productView:zt,jumpToWeb:En}=Lt(),{visibleHeight:fi,bottomHeight:At}=bo(),ri=n.useMemo(()=>r.length>0&&!ee&&(Qo()||t?.enableSwiperTip),[r,ee,t?.enableSwiperTip]);n.useEffect(()=>{fe?.(!0)},[]),n.useEffect(()=>{if(r?.length>0){const L=new Date;de.current=L}},[r?.length]);const Xi=n.useCallback(()=>{var L,G,_;const Q=(G=(L=b?.data)===null||L===void 0?void 0:L.sxpPageConf)===null||G===void 0?void 0:G.globalConfig;if(!((_=Q?.session)===null||_===void 0)&&_.enable||Qi(),it?.(),r.length>0){const re=new Date;de.current=re}},[r.length,it,b]);n.useEffect(()=>{var L;if(!u||u?.length<1)return;const G=r?.findIndex(_=>{var Q,re,ie,oe,ne,se,pe,je,ge;const Ie=u?.[0];return Ie==="\u591A\u5546\u54C1CTA"?((Q=_?.video)===null||Q===void 0?void 0:Q.bindProducts)&&((ie=(re=_?.video)===null||re===void 0?void 0:re.bindProducts)===null||ie===void 0?void 0:ie.length)>0:Ie==="\u5546\u54C1CTA"?(oe=_?.video)===null||oe===void 0?void 0:oe.bindProduct:((se=(ne=_?.video)===null||ne===void 0?void 0:ne.bindCta)===null||se===void 0?void 0:se.itemId)===Ie&&(((pe=_?.video)===null||pe===void 0?void 0:pe.url)||((ge=(je=_?.video)===null||je===void 0?void 0:je.imgUrls)===null||ge===void 0?void 0:ge.length))})||0;G!==-1&&((L=we?.current)===null||L===void 0||L.swiper.slideTo(G))},[r,u,we]);const ni=n.useCallback(L=>{var G,_,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt,nt,ht,Ge,Tt;const Le=r?.[J];let Ce="";st&&(!((_=(G=Le?.video)===null||G===void 0?void 0:G.bindProducts)===null||_===void 0)&&_.length||!((Q=Le?.video)===null||Q===void 0)&&Q.bindProduct)?Ce="pdpPage":st&&((ne=s?.[(oe=(ie=(re=Le?.video)===null||re===void 0?void 0:re.bindCta)===null||ie===void 0?void 0:ie.itemId)!==null&&oe!==void 0?oe:""].item)===null||ne===void 0?void 0:ne.type)==="Appoint"?Ce="formPage":Je?Ce="hashTagPage":!((se=Le?.video)===null||se===void 0)&&se.url?Ce="videoPage":!((pe=Le?.video)===null||pe===void 0)&&pe.imgUrls&&(!((ge=(je=Le?.video)===null||je===void 0?void 0:je.imgUrls)===null||ge===void 0)&&ge.length)?Ce="imagePage":Le?.product&&(Ce="productPage"),K?.({eventInfo:{sessionDuration:Math.floor((new Date-Be.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(Ie=Le?.video)===null||Ie===void 0?void 0:Ie.itemId,productId:(ut=Le?.product)===null||ut===void 0?void 0:ut.itemId,position:J+"",fromKName:L||Ce,fromKPage:location?.href,ctatId:(dt=(at=(rt=Le?.video)===null||rt===void 0?void 0:rt.bindCta)===null||at===void 0?void 0:at.itemId)!==null&&dt!==void 0?dt:"",traceInfo:(Tt=(ht=(nt=Le?.video)===null||nt===void 0?void 0:nt.traceInfo)!==null&&ht!==void 0?ht:(Ge=Le?.product)===null||Ge===void 0?void 0:Ge.traceInfo)!==null&&Tt!==void 0?Tt:""}})},[r,K,J,st,s,Je,Be]);n.useEffect(()=>{const L=r?.[J],G=()=>{const _=!Ne&&!ct;document.visibilityState==="hidden"?(_&&(wt.emit(bt.PAGE_DID_HIDE,L),Ae(L)),(t?.playbook!=="organic menu"||J!==0||Ee)&&(fe?.(!1,ni)||ni())):document.visibilityState==="visible"&&(ke.current===!0&&(Ke(new Date().getTime()),ke.current=!1),fe?.(!1),Xi(),_&&(setTimeout(()=>{wt.emit(bt.PAGE_DID_SHOW,L)},100),qt("external",gt)))};return document.addEventListener("visibilitychange",G),()=>{document.removeEventListener("visibilitychange",G)}},[J,K,r,Xi,st,Je,s,Be,qt,Ne,ct,gt,Ee,ni,fe]);const hi=n.useCallback(Re.debounce(()=>{var L;(L=Ve.current)===null||L===void 0||L.setLoopPlay(!1),fe?.(!1,ni)},1e3),[ni,fe]);n.useEffect(()=>{const L=["touchstart","touchcancel"];return L.forEach(G=>{window.addEventListener(G,hi)}),()=>{L.forEach(G=>{window.removeEventListener(G,hi)})}},[hi]);const oi=n.useMemo(()=>{let L=0;return p.length>0&&(L+=45,ye&&(L-=45)),L},[p,ye]),Ht=n.useMemo(()=>{let L=0;return t?.logoUrl&&t?.isShowLogo&&(L+=56),L},[t]),Yt=n.useMemo(()=>(i||fi)-Ht-oi,[i,fi,Ht,oi]),It=n.useMemo(()=>{var L;const G=J===0&&!ye&&!Nt&&!be?[(L=r?.[0])!==null&&L!==void 0?L:null]:r?.map((_,Q)=>J===Q||Q-1===J||Q+1===J?_:null);return G?.length?!ye&&!qe&&!be?G.concat([{loading:!0}]):G:[]},[r,J,ye,Nt,qe,be]),kn=n.useMemo(()=>{var L,G,_,Q;if(t?.logoUrl&&t?.isShowLogo){const re=(G=(L=t?.logoBar)===null||L===void 0?void 0:L.onClick)===null||G===void 0?void 0:G.value,ie=((Q=(_=t?.logoBar)===null||_===void 0?void 0:_.onClick)===null||Q===void 0?void 0:Q.linkType)==="externalLink",oe=It[J];return n.createElement("div",Object.assign({className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},re&&{onClick:ne=>{var se,pe,je,ge;ie&&En(ne,oe,(se=oe?.video)===null||se===void 0?void 0:se.bindProduct,(pe=oe?.video)===null||pe===void 0?void 0:pe.bindCta,J,((je=oe?.product)===null||je===void 0?void 0:je.traceInfo)||((ge=oe?.video)===null||ge===void 0?void 0:ge.traceInfo)),new Function(re)()}}),n.createElement("img",{src:t?.logoUrl,alt:"logo"}))}return null},[t,J,It]),qi=n.useCallback((L,G)=>{var _,Q,re,ie,oe,ne,se,pe,je,ge;return L==="organic menu"?n.createElement(wn,Object.assign({recData:r?.[1]},(re=(Q=(_=t?.multiPosts)===null||_===void 0?void 0:_[0])===null||Q===void 0?void 0:Q.item)===null||re===void 0?void 0:re.props,(ne=(oe=(ie=t?.multiPosts)===null||ie===void 0?void 0:ie[0])===null||oe===void 0?void 0:oe.item)===null||ne===void 0?void 0:ne.event)):!((se=L?.video)===null||se===void 0)&&se.url?n.createElement(gd,Object.assign({key:lt},J===G&&{ref:Ve},{rec:L,index:G,muted:Fe,data:r,height:Yt,activeIndex:J,videoPostConfig:t?.videoPost,videoPlayIcon:t?.videoPlayIcon,loopPlay:!0,swiperRef:we,visibleHeight:fi})):!((pe=L?.video)===null||pe===void 0)&&pe.imgUrls?n.createElement(xd,{key:L?.video.itemId,imgUrls:L?.video.imgUrls,width:o,height:Yt,rec:L,index:G,onViewImageEndEvent:he,onViewImageStartEvent:Se,imgUrlsPostConfig:t?.imgUrlsPost}):L.product&&Array.isArray(t?.productPost)&&((je=t?.productPost)===null||je===void 0?void 0:je.length)>0?(ge=t?.productPost)===null||ge===void 0?void 0:ge.map((Ie,ut)=>{var rt,at,dt,nt,ht,Ge,Tt,Le;const Ce=l[(rt=Ie?.item)===null||rt===void 0?void 0:rt.type],Dt=Ci(Ce),Mt=(at=Ce?.extend)===null||at===void 0?void 0:at.defaulSetting;return n.createElement(Dt,Object.assign({key:`${G}${ut}`,textStyle:Object.assign(Object.assign({},Mt?.textStyle),(dt=Ie?.item)===null||dt===void 0?void 0:dt.textStyle),bindDatas:(ht=(nt=Ie?.item)===null||nt===void 0?void 0:nt.bindDatas)!==null&&ht!==void 0?ht:[]},Mt?.props,(Ge=Ie?.item)===null||Ge===void 0?void 0:Ge.props,{event:((Tt=Ie?.item)===null||Tt===void 0?void 0:Tt.event)||{},schema:me,id:Ie?.id,viewTime:de.current,rec:L,isPost:!0,tipText:a,style:Object.assign(Object.assign(Object.assign({},Mt?.style),(Le=Ie?.item)===null||Le===void 0?void 0:Le.style),{height:"100%",overflow:"auto"}),index:G,isActive:J===G}))}):null},[o,r,Yt,Fe,J,t?.productPost,t?.videoPlayIcon,de,a,l,me,lt,fi]),Yi=n.useCallback(L=>{_e(L)},[]),H=n.useMemo(()=>Xe?{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"},[Xe]),U=n.useCallback((L,G)=>{var _,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt;if(L?.video){let nt=null;!((Q=(_=L?.video)===null||_===void 0?void 0:_.bindProducts)===null||Q===void 0)&&Q.length?nt="\u591A\u5546\u54C1CTA":!((re=L?.video)===null||re===void 0)&&re.bindProduct?nt="\u5546\u54C1CTA":nt=(oe=(ie=L?.video)===null||ie===void 0?void 0:ie.bindCta)===null||oe===void 0?void 0:oe.itemId;const ht=s?.[nt],Ge=t?.nineProductEnable&&G===(yt?.[0]==="organic menu"?1:0)&&((ne=["MultiCommodity","MultiCommodityDiro","MultiCommodityDiroNew"])===null||ne===void 0?void 0:ne.includes((se=ht?.item)===null||se===void 0?void 0:se.type));return n.createElement(n.Fragment,null,Ge&&n.createElement(_t,{rec:L,index:G,tempMap:s,resolver:l,isActive:G===J,isNineProduct:Ge}),((pe=L?.video)===null||pe===void 0?void 0:pe.title)&&!Xe&&n.createElement("div",{className:"clc-sxp-bottom-shadow"}),n.createElement("div",{className:"clc-sxp-bottom",style:{marginBottom:`${(je=t?.bottomInfoDist)!==null&&je!==void 0?je:40}px`}},n.createElement(Oo,{nudge:c}),(t?.isShowCTA===void 0||t?.isShowCTA)&&!Ge?n.createElement("div",{className:"clc-sxp-bottom-card"},n.createElement(_t,{rec:L,index:G,tempMap:s,resolver:l,isActive:G===J,includesCtaType:[]})):null,n.createElement("div",{style:{display:"flex",flexDirection:"column"}},n.createElement(Ti,{className:"clc-sxp-bottom-text",isPost:!0,foldText:a?.foldText,unfoldText:a?.unfoldText,text:(Ie=(ge=L?.video)===null||ge===void 0?void 0:ge.title)!==null&&Ie!==void 0?Ie:"",style:Object.assign(Object.assign({},e),{textShadow:t?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"}),onChange:Yi}),n.createElement(_t,{rec:L,index:G,tempMap:s,resolver:l,includesCtaType:["AniLink"],isActive:G===J}),n.createElement(Co,{index:J,tags:(rt=(ut=L?.video)===null||ut===void 0?void 0:ut.hashTags)!==null&&rt!==void 0?rt:[],itemId:(at=L?.video)===null||at===void 0?void 0:at.itemId,itemType:!((dt=L?.video)===null||dt===void 0)&&dt.itemId?"VIDEO":null,rec:L,hashTagStyle:A,hashTagRightMargin:o-(f??0)}))),n.createElement(_t,{rec:L,index:G,tempMap:s,resolver:l,includesCtaType:["AniLinkPopup"],isActive:G===J}))}return null},[e,J,s,l,a,c,A,t,Yi,Xe,H,yt]),te=n.useCallback((L,G,_)=>{var Q,re,ie,oe;if(!t?.isShowLike||!_)return;let ne=(Q=t?.likeIconY)!==null&&Q!==void 0?Q:400;return ye&&ne<40&&t?.likeIconYPosit==="top"&&(ne+=40),t?.likeIconYPosit==="top"&&(ne+=Ht),t?.likeIconFixed&&t?.likeIconYPosit!=="top"&&(ne+=At),L?.video?n.createElement(Sn,{key:L.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:L.isCollected,recData:L,className:"clc-sxp-like-button",style:{position:t?.likeIconFixed?"fixed":"absolute",[(re=t.likeIconXPosit)!==null&&re!==void 0?re:"right"]:(ie=t.likeIconX)!==null&&ie!==void 0?ie:0,[(oe=t.likeIconYPosit)!==null&&oe!==void 0?oe:"bottom"]:ne},position:G}):null},[t,ye,At]),he=L=>{var G,_,Q,re,ie,oe;if(!(!((G=L?.video)===null||G===void 0)&&G.url)&&(!((_=L?.video)===null||_===void 0)&&_.imgUrls)){const ne=Date.now(),se=Oe.current===0?0:(ne-Oe.current)/1e3;K?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(re=(Q=L?.video)===null||Q===void 0?void 0:Q.itemId)!==null&&re!==void 0?re:"",contentName:(ie=L?.video.title)!==null&&ie!==void 0?ie:"",imageEndTime:`${ne}`,playDuration:`${se}`,contentTags:JSON.stringify((oe=L?.video.tags)!==null&&oe!==void 0?oe:[]),position:J+"",contentFormat:"image",traceInfo:L?.video.traceInfo}})}},ue=(L,G)=>{var _,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt,nt,ht,Ge,Tt,Le,Ce,Dt;if(Xt||ye)return;const Mt=new Date-Be.current;if(t?.openSlideSkip&&Mt>=((_=t?.slideSkipStartTime)!==null&&_!==void 0?_:0)&&Ro()&&L){const Ai=((ie=(re=(Q=L?.video)===null||Q===void 0?void 0:Q.bindProducts)===null||re===void 0?void 0:re[0])===null||ie===void 0?void 0:ie.link)||((ne=(oe=L?.video)===null||oe===void 0?void 0:oe.bindProduct)===null||ne===void 0?void 0:ne.link)||((se=L?.product)===null||se===void 0?void 0:se.link),vt=L?.product||((pe=L?.video)===null||pe===void 0?void 0:pe.bindProduct)||((ge=(je=L?.video)===null||je===void 0?void 0:je.bindProducts)===null||ge===void 0?void 0:ge[0]);if(Ai){let ai=null;!((Ie=L?.video)===null||Ie===void 0)&&Ie.url?ai="video":!((rt=(ut=L?.video)===null||ut===void 0?void 0:ut.imgUrls)===null||rt===void 0)&&rt.length&&(ai="image"),K?.({eventInfo:{eventSubject:"swipeToWeb",eventDescription:"User swiped to web",productId:(at=vt?.itemId)!==null&&at!==void 0?at:"",productName:(dt=vt?.title)!==null&&dt!==void 0?dt:"",price:vt?.price?vt?.price+"":"0",productCollection:(nt=vt?.collection)!==null&&nt!==void 0?nt:"",contentTags:vt?.tags?JSON.stringify(vt?.tags):"",position:G+"",contentId:(Ge=(ht=L?.video)===null||ht===void 0?void 0:ht.itemId)!==null&&Ge!==void 0?Ge:"",traceInfo:(Dt=(Le=(Tt=L?.video)===null||Tt===void 0?void 0:Tt.traceInfo)!==null&&Le!==void 0?Le:(Ce=L?.product)===null||Ce===void 0?void 0:Ce.traceInfo)!==null&&Dt!==void 0?Dt:"",contentFormat:ai}}),ke.current=!0,window.location.href=window.getJointUtmLink(Ai)}}},ve=L=>{var G,_,Q,re,ie,oe,ne,se,pe,je,ge,Ie,ut,rt,at,dt,nt,ht,Ge,Tt,Le;const Ce=r[L.previousIndex];if(!Ce)return;let Dt=null;!((G=Ce?.video)===null||G===void 0)&&G.url?Dt="video":!((Q=(_=Ce?.video)===null||_===void 0?void 0:_.imgUrls)===null||Q===void 0)&&Q.length&&(Dt="image"),L.previousIndex-L.activeIndex<0?(K?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(ie=(re=Ce?.video)===null||re===void 0?void 0:re.itemId)!==null&&ie!==void 0?ie:"",productId:(ne=(oe=Ce?.product)===null||oe===void 0?void 0:oe.itemId)!==null&&ne!==void 0?ne:"",requestId:null,traceInfo:(ge=(pe=(se=Ce?.video)===null||se===void 0?void 0:se.traceInfo)!==null&&pe!==void 0?pe:(je=Ce?.product)===null||je===void 0?void 0:je.traceInfo)!==null&&ge!==void 0?ge:"",contentFormat:Dt,position:((Ie=L.previousIndex)!==null&&Ie!==void 0?Ie:0)+""}}),he(Ce),ue(Ce,L.previousIndex)):(K?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(rt=(ut=Ce?.video)===null||ut===void 0?void 0:ut.itemId)!==null&&rt!==void 0?rt:"",productId:(dt=(at=Ce.product)===null||at===void 0?void 0:at.itemId)!==null&&dt!==void 0?dt:"",requestId:null,traceInfo:(Tt=(ht=(nt=Ce?.video)===null||nt===void 0?void 0:nt.traceInfo)!==null&&ht!==void 0?ht:(Ge=Ce?.product)===null||Ge===void 0?void 0:Ge.traceInfo)!==null&&Tt!==void 0?Tt:"",contentFormat:Dt,position:((Le=L.previousIndex)!==null&&Le!==void 0?Le:0)+""}}),he(Ce)),Ae(Ce),de.current=new Date},Ae=L=>{var G,_,Q;!(!((G=L?.video)===null||G===void 0)&&G.url)&&!(!((_=L?.video)===null||_===void 0)&&_.imgUrls)&&L?.product&&zt(L,L.product,(Q=L?.product)===null||Q===void 0?void 0:Q.bindCta,de.current,J)};n.useEffect(()=>{const L=r[J];Ne?Ae(L):de.current=new Date},[Ne,r,J]),n.useEffect(()=>{if(!t?.enableCookieSetting)return;function L(_){if(!_||_.indexOf(".")===-1)return"";const Q=_.split(".");return Q.length>=2?"."+Q.slice(-2).join("."):""}window.OptanonWrapper=function(){const _=window?.OnetrustActiveGroups;_&&_?.length>2};const G=_=>{var Q,re;const ie=window?.OnetrustActiveGroups;(!((Q=_.target)===null||Q===void 0)&&Q.closest(".ot-pc-refuse-all-handler")||!((re=_.target)===null||re===void 0)&&re.closest(".save-preference-btn-handler"))&&(window.OptanonWrapper=function(){var oe,ne;const se=window?.OnetrustActiveGroups;if(se)if(se?.includes("4"))window?.loadMetaPixel(!1,SXP_CONFIG==null?void 0:SXP_CONFIG.meta_conversion_api_pid),window?.fbq("consent","grant"),ft.current=!0,We.current&&ie?.includes("4");else{window?.fbq("consent","revoke"),We.current=_i("_fbp"),Xo("_fbp","/",L(window.location.hostname));const pe=r[J],je=((oe=pe?.video)===null||oe===void 0?void 0:oe.traceInfo)||((ne=pe?.product)===null||ne===void 0?void 0:ne.traceInfo)||"";ie?.includes("4")&&K?.({eventInfo:{eventSubject:"refuseCookie",eventDescription:"refuseCookie",traceInfo:je},isActiveTargetingCookie:!1})}})};return document.addEventListener("click",G),()=>{document.removeEventListener("click",G)}},[t,K,r,J]);const Se=(L,G,_)=>{var Q,re,ie,oe,ne,se,pe,je;const ge=r[L];if(!(!((Q=ge?.video)===null||Q===void 0)&&Q.url)&&(!((re=ge?.video)===null||re===void 0)&&re.imgUrls)){const Ie=Date.now();Oe.current=Ie,K?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(oe=(ie=ge?.video)===null||ie===void 0?void 0:ie.itemId)!==null&&oe!==void 0?oe:"",contentName:(ne=ge?.video.title)!==null&&ne!==void 0?ne:"",imageStartTime:`${Ie}`,contentTags:JSON.stringify((se=ge?.video.tags)!==null&&se!==void 0?se:[]),position:L+"",contentFormat:"image",traceInfo:ge?.video.traceInfo,loadTime:G?.loadTime}}),_&&(Qe?.({eventName:"ViewContent",product:(pe=ge?.video)===null||pe===void 0?void 0:pe.bindProduct}),Qe?.({eventName:"PageView",product:(je=ge?.video)===null||je===void 0?void 0:je.bindProduct}))}},xe=n.useCallback(L=>{var G,_,Q,re,ie,oe;if(!L)return;let ne=(G=t?.muteIconY)!==null&&G!==void 0?G:23;return ye&&ne<40&&t?.muteIconYPosit==="top"&&(ne+=40),t?.muteIconYPosit==="top"&&(ne+=Ht),t?.muteIconFixed&&t?.muteIconYPosit!=="top"&&(ne+=At),(t?.isShowMute===void 0||t?.isShowMute===!0)&&n.createElement(Hi,{style:{position:t?.muteIconFixed?"fixed":"absolute",visibility:!((Q=(_=It?.[J])===null||_===void 0?void 0:_.video)===null||Q===void 0)&&Q.url?"visible":"hidden",zIndex:999,transform:"translate3d(0px,0px,0px)",[(re=t?.muteIconXPosit)!==null&&re!==void 0?re:"right"]:(ie=t?.muteIconX)!==null&&ie!==void 0?ie:0,[(oe=t?.muteIconYPosit)!==null&&oe!==void 0?oe:"bottom"]:ne},defaultValue:Fe,activeIcon:t?.unMuteIcon?t?.unMuteIcon:Y,unactiveIcon:t?.muteIcon?t?.muteIcon:R,onChange:ce})},[t,It,J,Fe,ye,At]),Me=n.useMemo(()=>ee?n.createElement("div",{style:{height:Yt,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:tt,alt:"loading...",style:{objectFit:"contain"}})):It?.map((L,G)=>n.createElement(Bt,{key:G,virtualIndex:G,style:{overflow:"hidden"}},L&&n.createElement(n.Fragment,null,L?.loading?n.createElement("div",{style:{height:Yt,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:tt,alt:"loading...",style:{objectFit:"contain"}})):n.createElement(n.Fragment,null,U(L,G),te(L,G,!t?.likeIconFixed),xe(!t?.muteIconFixed),qi(L,G))))),[o,r,Yt,ee,U,qi,It,tt,lt,xe]);return n.createElement("div",{id:"sxp-render",className:"clc-sxp-container",style:{height:Yt}},r?.length<1&&ee?n.createElement("div",{style:{height:Yt,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:tt,alt:"loading...",style:{objectFit:"contain"}})):n.createElement("div",{style:Object.assign({},t?.textUnderlineOffset&&{textUnderlineOffset:`${t?.textUnderlineOffset}px`})},ye&&n.createElement(So,{icon:Po,styles:{background:"rgba(0,0,0,.3)",color:"#fff",top:`${Ht}px`},textStyle:Object.assign(Object.assign({},(h=(g=(v=(S=(m=t?.hashTag)===null||m===void 0?void 0:m[0])===null||S===void 0?void 0:S.item)===null||v===void 0?void 0:v.props)===null||g===void 0?void 0:g.textStyles)===null||h===void 0?void 0:h.hashTagTitle),{color:"#fff"}),onClose:()=>{!Re.isEqual(yt,St)&&St&&St?.length&&xt?.(St),$?.(!0)}}),kn,n.createElement(Lo,{tagList:p,setActiveIndex:Te,style:{top:Ht}}),((w=t?.backButton)===null||w===void 0?void 0:w.enable)&&!Ee&&!ae&&!ye&&n.createElement(Mo,{data:t?.backButton,minusHeight:Ht,tagHeight:oi,onClick:()=>history?.back()}),(((x=(M=(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||M===void 0?void 0:M.backButton)===null||x===void 0?void 0:x.enable)&&Ee||ae)&&!ye&&n.createElement(Mo,{data:(j=(k=(B=(T=t?.multiPosts)===null||T===void 0?void 0:T[0])===null||B===void 0?void 0:B.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.backButton,minusHeight:Ht,tagHeight:oi,onClick:()=>{var L,G;const _=It?.[J];K?.({eventInfo:{eventSubject:"backMultiPostClick",eventDescription:"backMultiPostClick",traceInfo:((L=_?.video)===null||L===void 0?void 0:L.traceInfo)||((G=_?.product)===null||G===void 0?void 0:G.traceInfo)||""}}),location?.reload()}}),ri?n.createElement(wd,{imageUrl:t?.swipeTipIcon,style:{top:`${50-((E=t?.swipeTipOffset)!==null&&E!==void 0?E:0)}%`},duration:t?.swiperTipAniDur}):null,n.createElement(Kt,{style:{marginTop:oi},ref:we,onSlideChange:()=>{we.current.swiper.allowTouchMove=!1,setTimeout(()=>{we.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:L=>{Te(L.activeIndex),!Ne&&(ve(L),!(ye||Nt||be)&&L?.activeIndex+1>=r?.length&&(Ze||(Ue(!0),ze?.(et).then(G=>{var _;Ue(!1),G&&((_=G?.recList)===null||_===void 0?void 0:_.length)>0&&kt(et+1)}))))},direction:"vertical",height:Yt},Me,te(It[J],J,!!t?.likeIconFixed),xe(!!t?.muteIconFixed)),n.createElement(To,Object.assign({},(D=(W=(y=t?.hashTag)===null||y===void 0?void 0:y[0])===null||W===void 0?void 0:W.item)===null||D===void 0?void 0:D.props)),n.createElement(Cd,{resolver:l,globalConfig:t}),ae&&n.createElement(wn,Object.assign({},(I=(O=(F=t?.multiPosts)===null||F===void 0?void 0:F[0])===null||O===void 0?void 0:O.item)===null||I===void 0?void 0:I.props,(X=(q=(N=t?.multiPosts)===null||N===void 0?void 0:N[0])===null||q===void 0?void 0:q.item)===null||X===void 0?void 0:X.event,{style:{position:"fixed",top:0,left:0,right:0,bottom:At+"px"}}))),t?.enableCookieSetting&&n.createElement("div",{style:{position:"fixed",bottom:At+"px",left:0,right:0,width:"100%",zIndex:10,backgroundColor:"#000",fontSize:0}},n.createElement("button",{id:"ot-sdk-btn",className:"ot-sdk-show-settings",style:{textDecoration:"underline",width:"fit-content",border:"none",lineHeight:"24px",fontSize:"10px",color:"#fff",padding:"0 20px",fontFamily:"Helvetica-light"}},"Cookie settings")))};var jo=n.memo(Od);const Ld=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:o,rec:s,index:l})=>n.createElement(Kt,{defaultValue:0,direction:"horizontal",modules:[wi,Si],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(r=>n.createElement(Bt,{key:r},n.createElement(xn,{src:r,height:i,imgUrlsPostConfig:o}))));var Md=n.memo(Ld);const jd=({rec:t,index:e,height:i,data:o,muted:s,activeIndex:l,videoPostConfig:r,width:u})=>{const[a,c]=n.useState(!1),d=n.useRef(null),{bffEventReport:A,sxpParameter:f,waterFallData:p,openHashtag:b}=He(),m=n.useRef(0),[S,v]=n.useState(!1),[g,h]=n.useState(!0),w=n.useRef(null),[C,P]=n.useState("");n.useEffect(()=>{d.current&&(d.current.muted=s)},[s]);const V=n.useCallback(()=>{var O;(O=d.current)===null||O===void 0||O.play()},[]),M=Et("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),x=n.useCallback(()=>{var O,I,N,q,X,Y,R,me,ae,J,Te,Oe,Fe;c(!1);const ce=o[e];if(ce&&(!((O=d?.current)===null||O===void 0)&&O.duration)){m.current=((I=d?.current)===null||I===void 0?void 0:I.currentTime)||0;const de=((q=(N=d.current)===null||N===void 0?void 0:N.duration)!==null&&q!==void 0?q:0).toFixed(2),Ze=((Y=(X=d.current)===null||X===void 0?void 0:X.currentTime)!==null&&Y!==void 0?Y:0).toFixed(2),Ue=g?"0":"1";A?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(me=(R=ce?.video)===null||R===void 0?void 0:R.itemId)!==null&&me!==void 0?me:"",contentName:(J=(ae=ce?.video)===null||ae===void 0?void 0:ae.title)!==null&&J!==void 0?J:"",playType:Ue,startTime:Ze,videoDuration:de,contentTags:JSON.stringify((Oe=(Te=ce?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Oe!==void 0?Oe:[]),position:e+"",contentFormat:"video",traceInfo:(Fe=ce?.video)===null||Fe===void 0?void 0:Fe.traceInfo}}),h(!1)}},[A,o,e,g]),T=n.useCallback(()=>{v(!0)},[]),B=n.useCallback(O=>()=>{var I,N,q,X,Y;if(!S)return;const R=(I=d.current)===null||I===void 0?void 0:I.paused;switch(O){case"start":if(!R)return;(N=d.current)===null||N===void 0||N.play(),c(!1);break;case"pause":if(R)return;(q=d.current)===null||q===void 0||q.pause(),c(!0);break;default:R?(X=d.current)===null||X===void 0||X.play():(Y=d.current)===null||Y===void 0||Y.pause(),c(!R);break}},[S]),k=n.useCallback(()=>{var O,I,N,q,X,Y,R,me,ae,J,Te,Oe,Fe;const ce=o[e],de=((I=(O=d.current)===null||O===void 0?void 0:O.duration)!==null&&I!==void 0?I:0).toFixed(2),Ze=((q=(N=d.current)===null||N===void 0?void 0:N.currentTime)!==null&&q!==void 0?q:0).toFixed(2);if(!((X=d?.current)===null||X===void 0)&&X.duration){const Ue=(((Y=d?.current)===null||Y===void 0?void 0:Y.currentTime)-m.current).toFixed(2);A?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(me=(R=ce?.video)===null||R===void 0?void 0:R.itemId)!==null&&me!==void 0?me:"",contentName:(J=(ae=ce?.video)===null||ae===void 0?void 0:ae.title)!==null&&J!==void 0?J:"",endTime:Ze,videoDuration:de,playDuration:Ue,contentTags:JSON.stringify((Oe=(Te=ce?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Oe!==void 0?Oe:[]),position:e+"",contentFormat:"video",traceInfo:(Fe=ce?.video)===null||Fe===void 0?void 0:Fe.traceInfo}})}},[o,e,A]),j=n.useMemo(()=>r?.mode==="2",[r]),E=n.useMemo(()=>{var O;return r?.mode==="2"?`translateY(-${50+((O=r?.offsetTop)!==null&&O!==void 0?O:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[r]),y=n.useMemo(()=>{var O;return((O=t?.video)===null||O===void 0?void 0:O.cover)||C},[C,t]),W=n.useCallback(()=>{if(!w||!d||!d.current||!w.current)return;const O=d?.current,I=w?.current,N=I.getContext("2d"),q=window?.innerWidth,X=window?.innerHeight;I.height=X,I.width=q,N?.drawImage(O,0,0,I.width,I.height),P(I.toDataURL())},[]);n.useEffect(()=>{var O,I,N,q;if(d.current){if(c(!1),!d.current.src){const X=t?.video.url;if(X.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const Y=new window.Hls;Y.loadSource(X),Y.attachMedia(d.current)}else d.current.canPlayType("application/vnd.apple.mpegurl"),d.current.src=X;else d.current.src=X;d.current.setAttribute("x5-playsinline","true"),d.current.setAttribute("webkit-playsinline","true")}return(O=d.current)===null||O===void 0||O.addEventListener("loadedmetadata",T),(I=d.current)===null||I===void 0||I.addEventListener("canplay",T),(N=d.current)===null||N===void 0||N.addEventListener("playing",x),(q=d.current)===null||q===void 0||q.addEventListener("loadeddata",W),()=>{var X,Y,R,me;(X=d.current)===null||X===void 0||X.removeEventListener("loadedmetadata",T),(Y=d.current)===null||Y===void 0||Y.removeEventListener("canplay",T),(R=d.current)===null||R===void 0||R.removeEventListener("playing",x),(me=d.current)===null||me===void 0||me.removeEventListener("loadeddata",W)}}},[T,x,t?.video,W]);const D=n.useMemo(()=>!f?.placeholder_image||S?null:n.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:f?.placeholder_image,alt:"video poster"}),[S,f?.placeholder_image]);n.useEffect(()=>{const O=()=>{var I,N;l===e&&(!((I=t?.video)===null||I===void 0)&&I.url)&&(!((N=d?.current)===null||N===void 0)&&N.src)&&!a&&B("pause")()};return window.addEventListener("beforeunload",O),()=>{window.removeEventListener("beforeunload",O)}},[l,e,t,d,B,a]);const F=n.useMemo(()=>j?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[j]);return t?.video?n.createElement(n.Fragment,null,j?n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:B(),style:{position:"relative",width:u,height:i,overflow:"hidden"}},n.createElement(Ot,{src:y,style:Object.assign({height:i,width:u,objectFit:"cover"},F)}),n.createElement("canvas",{ref:w,style:{display:"none"}}),n.createElement("div",{style:{position:"absolute",width:u,height:i,top:"50%",transform:E,left:0,right:0}},n.createElement("div",{style:{position:"relative",width:u,height:"100%"}},n.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",ref:d,autoPlay:!0,crossOrigin:"anonymous",muted:!0,controls:!1,playsInline:!0,preload:"auto",onPause:k,onEnded:V,style:{width:"100%",height:i,objectFit:"contain"}}),n.createElement("img",{hidden:!a,className:"clc-pb-video-pause",src:M,alt:"video pause image"}))),D):n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:B(),style:{position:"relative",width:u,height:i,overflow:"hidden"}},n.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",style:{width:"100%"},ref:d,crossOrigin:"anonymous",muted:!0,autoPlay:!0,controls:!1,playsInline:!0,preload:"auto",onPause:k,onEnded:V}),D,n.createElement("img",{hidden:!a,className:"clc-pb-video-pause",src:M,alt:"video pause image"}))):null};var Nd=n.memo(jd);const Pi={};Object.values(zi).forEach(t=>{Pi[t.extend.type]=t});const Dd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Vd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Bd=({data:t=[],globalConfig:e,tipText:i,nudge:o,tempMap:s,descStyle:l,hashTagStyle:r,containerHeight:u=664,containerWidth:a=375,appDomain:c,tagList:d=[]})=>{const A=n.useMemo(()=>{let P=0;return e?.logoUrl&&e?.isShowLogo&&(P+=45),d.length>0&&(P+=45),u-P},[e,u,d]),f=(P,V)=>{var M,x,T,B;if(!((M=P?.video)===null||M===void 0)&&M.url)return n.createElement(Nd,{rec:P,index:V,muted:!0,width:a,data:t??[],height:A,activeIndex:V,videoPostConfig:e?.videoPost});if(!((x=P?.video)===null||x===void 0)&&x.imgUrls)return n.createElement(Md,{key:P?.video.itemId,imgUrls:P?.video.imgUrls,width:a,height:A,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(B=e?.productPost)===null||B===void 0?void 0:B.map((k,j)=>{var E,y,W,D,F,O,I,N;const q=Pi[(E=k?.item)===null||E===void 0?void 0:E.type],X=Ci(q),Y=(y=q?.extend)===null||y===void 0?void 0:y.defaulSetting;return n.createElement(X,Object.assign({key:`${V}${j}`,textStyle:Object.assign(Object.assign({},Y?.textStyle),(W=k?.item)===null||W===void 0?void 0:W.textStyle),bindDatas:(F=(D=k?.item)===null||D===void 0?void 0:D.bindDatas)!==null&&F!==void 0?F:[]},Y?.props,(O=k?.item)===null||O===void 0?void 0:O.props,{event:((I=k?.item)===null||I===void 0?void 0:I.event)||{},id:k?.id,rec:P,isPost:!0,tipText:i,style:Object.assign(Object.assign(Object.assign({},Y?.style),(N=k?.item)===null||N===void 0?void 0:N.style),{width:a,height:A,overflow:"auto"}),index:V}))})},p=n.useMemo(()=>e?.logoUrl&&e?.isShowLogo?n.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},n.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]),b=(P,V)=>e?.isShowCTA===void 0||e?.isShowCTA?n.createElement("div",{className:"clc-sxp-bottom-card"},n.createElement(_t,{rec:P,index:V,tempMap:s,resolver:Pi,isActive:!0})):null,m=(P,V)=>{var M,x,T,B,k,j,E;return P?.video?n.createElement(n.Fragment,null,((M=P?.video)===null||M===void 0?void 0:M.title)&&n.createElement("div",{className:"clc-sxp-bottom-shadow"}),n.createElement("div",{className:"clc-sxp-bottom"},n.createElement(Oo,{nudge:o}),b(P,V),n.createElement("div",null,n.createElement(Ti,{className:"clc-sxp-bottom-text",isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(T=(x=P?.video)===null||x===void 0?void 0:x.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"})}),n.createElement(_t,{rec:P,index:V,tempMap:s,resolver:Pi,includesCtaType:["AniLink"],isActive:!0})),n.createElement(Co,{index:V,tags:(k=(B=P?.video)===null||B===void 0?void 0:B.hashTags)!==null&&k!==void 0?k:[],itemId:(j=P?.video)===null||j===void 0?void 0:j.itemId,itemType:!((E=P?.video)===null||E===void 0)&&E.itemId?"VIDEO":null,rec:P,hashTagStyle:r})),n.createElement(_t,{rec:P,index:V,tempMap:s,resolver:Pi,includesCtaType:["AniLinkPopup"],isActive:!0})):null},S=Et(Vd,c),v=Et(Dd,c),g=(P,V)=>{var M,x,T,B;if(!e?.isShowLike)return;let k=(M=e?.likeIconY)!==null&&M!==void 0?M:400;return k<40&&(k+=40),P?.video?n.createElement(Sn,{key:P.position,activeIcon:(x=e?.likeIcon)!==null&&x!==void 0?x:S,unActicveIcon:(T=e?.unlikeIcon)!==null&&T!==void 0?T:v,position:V,active:P.isCollected,recData:P,className:"clc-sxp-like-button",style:{top:k,right:(B=e?.likeIconX)!==null&&B!==void 0?B:0}}):null},h=Et("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",c),w=Et("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",c),C=(P,V)=>{var M,x,T,B;return n.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},p,n.createElement(Lo,{tagList:d}),n.createElement(Hi,{style:{position:"absolute",right:(M=e?.muteIconX)!==null&&M!==void 0?M:0,visibility:!((T=(x=t?.[V])===null||x===void 0?void 0:x.video)===null||T===void 0)&&T.url?"visible":"hidden",bottom:(B=e?.muteIconY)!==null&&B!==void 0?B:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:h,unactiveIcon:e?.muteIcon?e?.muteIcon:w}),f(P,V),m(P,V),g(P,V))};return n.createElement("div",{className:De.css({width:"100%",height:u,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 Fd=n.memo(Bd);const Wd=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:o,rec:s,index:l,swiperRef:r,data:u=[],loopPlay:a})=>{const{isActive:c}=yi(),[d,A]=n.useState(!1);n.useEffect(()=>{c&&d&&a&&setTimeout(()=>{var p,b,m,S;if(l===u?.length-1)(p=r?.current)===null||p===void 0||p.swiper.slideTo(0);else{const v=(m=(b=r?.current)===null||b===void 0?void 0:b.swiper)===null||m===void 0?void 0:m.activeIndex;(S=r?.current)===null||S===void 0||S.swiper.slideTo(v+1)}},3e3)},[c,d,u,l,r,a]);const f=()=>{A(!0)};return n.createElement(Kt,{defaultValue:0,direction:"horizontal",modules:[wi,Si],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(p=>n.createElement(Bt,{key:p},n.createElement(xn,{src:p,height:i,imgUrlsPostConfig:o,onShowFirstImage:f}))))};var zd=n.memo(Wd);const Hd=n.forwardRef(({rec:t,index:e,height:i,data:o,muted:s,activeIndex:l,videoPostConfig:r,width:u,swiperRef:a,videoPlayIcon:c,onUpdateTimeLine:d,loopPlay:A,onPlay:f,onPause:p},b)=>{const{isActive:m}=yi(),[S,v]=n.useState(!1),g=n.useRef(null),{bffEventReport:h,sxpParameter:w,waterFallData:C,openHashtag:P}=He();n.useRef(0);const[V,M]=n.useState(!1);n.useState(!0),n.useRef(null),n.useState("");const x=`pb-cache-video-${e}`,T=n.useRef(null),B=n.useRef(A),k=t.video.scene;n.useEffect(()=>{B.current=A},[A]),n.useImperativeHandle(b,()=>({play(){var N;g.current&&(D(),(N=g.current)===null||N===void 0||N.play(),v(!1))},pause(){var N;g.current&&((N=g.current)===null||N===void 0||N.pause(),v(!0))},setLoopPlay(N){B.current=N},isPlaying(){var N;return!(!((N=g?.current)===null||N===void 0)&&N.paused)}})),n.useEffect(()=>{g.current&&(g.current.muted=s)},[s]);const j=Et("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),E=n.useCallback(()=>{var N;g.current.currentTime=k?.startTime,(N=g?.current)===null||N===void 0||N.play(),M(!0)},[]),y=n.useCallback(N=>()=>{var q,X,Y,R,me,ae;if(!m||!g?.current||!V)return;const J=(q=g.current)===null||q===void 0?void 0:q.paused;switch(N){case"start":if(!J)return;(X=g.current)===null||X===void 0||X.play(),v(!1);break;case"pause":if(J)return;(Y=g.current)===null||Y===void 0||Y.pause(),v(!0);break;default:J?(((R=g?.current)===null||R===void 0?void 0:R.currentTime)>=k?.endTime&&(g.current.currentTime=k?.startTime),(me=g.current)===null||me===void 0||me.play()):(ae=g.current)===null||ae===void 0||ae.pause(),v(!J);break}},[V]),W=n.useMemo(()=>r?.mode==="2",[r]),D=()=>{g.current&&setTimeout(()=>{var N,q,X,Y,R,me,ae,J,Te;if(((N=g?.current)===null||N===void 0?void 0:N.currentTime)>=((q=k?.endTime)!==null&&q!==void 0?q:0)){if((X=g.current)===null||X===void 0||X.pause(),!B.current)return;if(e===o?.length-1)(R=(Y=a?.current)===null||Y===void 0?void 0:Y.swiper)===null||R===void 0||R.slideTo(0);else{const Oe=(ae=(me=a?.current)===null||me===void 0?void 0:me.swiper)===null||ae===void 0?void 0:ae.activeIndex;(Te=(J=a?.current)===null||J===void 0?void 0:J.swiper)===null||Te===void 0||Te.slideTo(Oe+1)}}})},F=()=>{v(!0),p?.()},O=()=>{var N;const q=((N=g?.current)===null||N===void 0?void 0:N.currentTime)-k?.startTime;f?.(e,q)};n.useEffect(()=>{var N,q,X,Y;if(!m)return;const R=k?.mediaUrl;if(!R)return;v(!1);const me=document.querySelector(`#${x}`);if(!me||(g.current=mi?.(me),!g?.current))return;const ae=window?.Hls;let J=T?.current;return R.includes(".m3u8")&&ae&&ae.isSupported()?(J=new ae,J?.loadSource(R),J?.attachMedia(g?.current),J?.on(ae.Events.MANIFEST_PARSED,function(){var Te;g.current.currentTime=k?.startTime,(Te=g?.current)===null||Te===void 0||Te.play()})):g.current.src=R,(N=g.current)===null||N===void 0||N.addEventListener("loadedmetadata",E),(q=g?.current)===null||q===void 0||q.addEventListener("pause",F),(X=g?.current)===null||X===void 0||X.addEventListener("play",O),(Y=g.current)===null||Y===void 0||Y.addEventListener("timeupdate",D),()=>{var Te,Oe,Fe,ce,de;T?.current&&((Te=T?.current)===null||Te===void 0||Te.destroy()),M(!1),(Oe=g.current)===null||Oe===void 0||Oe.removeEventListener("loadedmetadata",E),(Fe=g.current)===null||Fe===void 0||Fe.removeEventListener("pause",F),(ce=g.current)===null||ce===void 0||ce.removeEventListener("play",O),(de=g.current)===null||de===void 0||de.removeEventListener("timeupdate",D)}},[m]);const I=n.useMemo(()=>{var N;return!w?.placeholder_image||V?null:n.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 n.useMemo(()=>W?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[W]),k?.mediaUrl?n.createElement("div",{className:"video-container",key:k.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:y()},n.createElement("div",{className:"n-full-screen",id:x,style:{width:"100%",height:"100%"}}),I,S&&n.createElement(Ot,{className:"clc-pb-video-pause",src:c??j,alt:"pause"})):null});var Ud=n.memo(Hd);const Ui={};Object.values(zi).forEach(t=>{Ui[t.extend.type]=t});const Xd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",qd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Yd=n.forwardRef(({data:t=[],globalConfig:e,tipText:i,nudge:o,tempMap:s,descStyle:l,hashTagStyle:r,containerHeight:u=664,containerWidth:a=375,appDomain:c,tagList:d=[],onActiveChange:A,activeIndex:f,loopPlay:p=!1,pointerEvents:b="none",onUpdateTimeLine:m,disabledListener:S,onPlay:v,onPause:g},h)=>{const w=n.useRef(null),C=n.useRef(null),[P,V]=n.useState(0);n.useMemo(()=>{let O=0;return e?.logoUrl&&e?.isShowLogo&&(O+=45),d.length>0&&(O+=45),u-O},[e,u,d]),n.useImperativeHandle(h,()=>({play(){var O;(O=w?.current)===null||O===void 0||O.play()},pause(){var O;(O=w?.current)===null||O===void 0||O.pause()},slideTo(O){var I,N;C?.current&&((N=(I=C?.current)===null||I===void 0?void 0:I.swiper)===null||N===void 0||N.slideTo(O))},isPlaying(){var O,I;return(I=(O=w?.current)===null||O===void 0?void 0:O.isPlaying())!==null&&I!==void 0?I:!1}}));const M=O=>{if(O&&O!==""&&typeof O=="string"){const I=[".mp4",".m3u8"],N=O?.toLowerCase();return I.some(q=>N?.endsWith(q))}else return!1},x=(O,I)=>{var N,q;const X=(N=O?.video)===null||N===void 0?void 0:N.scene;return M(X?.mediaUrl)?n.createElement(Ud,Object.assign({key:I},P===I&&{ref:w},{rec:O,index:I,muted:!0,width:a,data:t,height:u,activeIndex:I,videoPostConfig:e?.videoPost,videoPlayIcon:e?.videoPlayIcon,swiperRef:C,loopPlay:p,onUpdateTimeLine:m,onPlay:v,onPause:g})):n.createElement(zd,{key:I,imgUrls:[(q=X?.mediaUrl)!==null&&q!==void 0?q:""],width:a,height:u,rec:O,index:I,imgUrlsPostConfig:e?.imgUrlsPost,data:t,swiperRef:C})};n.useMemo(()=>e?.logoUrl&&e?.isShowLogo?n.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},n.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]);const T=(O,I)=>{var N,q,X,Y;return O?.video?n.createElement(n.Fragment,null,((N=O?.video)===null||N===void 0?void 0:N.title)&&n.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:b}}),n.createElement("div",{style:{marginBottom:`${(q=e?.bottomInfoDist)!==null&&q!==void 0?q:40}px`,zIndex:999,position:"absolute",bottom:0,left:0,right:0,paddingTop:"20px"}},e?.isShowCTA===void 0||e?.isShowCTA?n.createElement("div",{style:{}},n.createElement(_t,{rec:O,index:I,tempMap:s,resolver:Ui,isActive:I===f})):null,n.createElement("div",null,n.createElement(Ti,{isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(Y=(X=O?.video)===null||X===void 0?void 0:X.title)!==null&&Y!==void 0?Y:"",style:Object.assign(Object.assign({},l),{textShadow:e?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none",padding:"0 20px",fontSize:"12px"})}),n.createElement(_t,{rec:O,index:I,tempMap:s,resolver:Ui,includesCtaType:["AniLink"],isActive:I===f}))),n.createElement(_t,{rec:O,index:I,tempMap:s,resolver:Ui,includesCtaType:["AniLinkPopup"],isActive:I===f})):null},B=Et(qd,c),k=Et(Xd,c),j=(O,I)=>{var N,q,X,Y;if(!e?.isShowLike)return null;let R=(N=e?.likeIconY)!==null&&N!==void 0?N:400;return R<40&&(R+=40),O?.video?n.createElement(Sn,{key:O.position,activeIcon:(q=e?.likeIcon)!==null&&q!==void 0?q:B,unActicveIcon:(X=e?.unlikeIcon)!==null&&X!==void 0?X:k,position:I,active:O.isCollected,recData:O,style:{top:R,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},E=Et("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",c),y=Et("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",c),W=O=>{var I,N,q,X;if(!O)return null;let Y=(I=e?.muteIconY)!==null&&I!==void 0?I:23;return e?.muteIconYPosit==="top"&&(Y+=45),e?.isShowMute===void 0||e?.isShowMute===!0?n.createElement(Hi,{style:{position:"absolute",visibility:"visible",zIndex:999,transform:"translate3d(0px,0px,0px)",[(N=e?.muteIconXPosit)!==null&&N!==void 0?N:"right"]:(q=e?.muteIconX)!==null&&q!==void 0?q:0,[(X=e?.muteIconYPosit)!==null&&X!==void 0?X:"bottom"]:Y,backgroundColor:"transparent",width:"50px",height:"50px",outline:"none",border:"none",boxSizing:"content-box",padding:0},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:E,unactiveIcon:e?.muteIcon?e?.muteIcon:y}):null},D=(O,I)=>{var N,q,X,Y;return n.createElement("div",{style:{position:"relative"}},n.createElement(Bt,{key:I,virtualIndex:I,style:{overflow:"hidden",position:"relative"}},T(O,I),j(O,I),W(!e?.muteIconFixed),n.createElement(Hi,{style:{position:"absolute",right:(N=e?.muteIconX)!==null&&N!==void 0?N:0,visibility:!((X=(q=t?.[I])===null||q===void 0?void 0:q.video)===null||X===void 0)&&X.url?"visible":"hidden",bottom:(Y=e?.muteIconY)!==null&&Y!==void 0?Y:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:E,unactiveIcon:e?.muteIcon?e?.muteIcon:y}),x(O,I)))};n.useEffect(()=>{var O,I;C?.current&&((I=(O=C?.current)===null||O===void 0?void 0:O.swiper)===null||I===void 0||I.slideTo(f))},[f]);const F=n.useCallback(Re.debounce(()=>{var O;(O=w.current)===null||O===void 0||O.setLoopPlay(!1)},1e3),[]);return n.useEffect(()=>{if(S)return;const O=["touchstart","touchcancel"];return O.forEach(I=>{window.addEventListener(I,F)}),()=>{O.forEach(I=>{window.removeEventListener(I,F)})}},[F,S]),n.createElement("div",{id:"sxp-render",style:{height:u,position:"relative",pointerEvents:b}},n.createElement(Kt,{ref:C,allowTouchMove:b!=="none",onSlideChange:()=>{C.current.swiper.allowTouchMove=!1,setTimeout(()=>{C.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:O=>{V(O?.activeIndex),A?.(O.activeIndex)},direction:"vertical",style:{overflow:"hidden",height:u},height:u},t?.map((O,I)=>D(O,I))))});var Gd=n.memo(Yd);const _d=()=>{const{schema:t,resolver:e,popup:i}=ei(),{setPopupDetailData:o,popupDetailData:s,popupCurTimeRef:l,checkCommodityIndexRef:r}=He(),{productView:u}=Lt(),[a,c]=n.useState();n.useEffect(()=>{const p=()=>{l.current=new Date};return p(),window.addEventListener("pageshow",p),()=>{window.removeEventListener("pageshow",p)}},[]),n.useEffect(()=>{i&&i?.id&&i?.id!==""&&(l.current=new Date,c(i))},[i]);const d=n.useMemo(()=>{var p,b,m,S;const v=(m=(b=(p=t?.sxpPageConf)===null||p===void 0?void 0:p.globalConfig)===null||b===void 0?void 0:b.popupList)===null||m===void 0?void 0:m.find((g,h)=>{if(g?.id===i?.id)return g});return v!==-1&&((S=v?.item)===null||S===void 0?void 0:S.type)==="Iframe"},[i,t]),A=()=>{var p,b,m,S,v,g,h,w,C,P,V,M,x,T,B,k,j,E;if(!i||i?.id===""||!a||new Date-l.current<((p=i?.duration)!==null&&p!==void 0?p:0))return;c(Object.assign(Object.assign({},i),{id:""}));const y=(S=(m=(b=t?.sxpPageConf)===null||b===void 0?void 0:b.globalConfig)===null||m===void 0?void 0:m.popupList)===null||S===void 0?void 0:S.find(W=>W?.id===i?.id);if(((v=y?.item)===null||v===void 0?void 0:v.type)==="CommodityDetail"||((g=y?.item)===null||g===void 0?void 0:g.type)==="CommodityDetailDiroNew"){const W=s;let D=(w=(h=W?.video)===null||h===void 0?void 0:h.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],F=(x=(M=(V=W?.video)===null||V===void 0?void 0:V.bindProduct)===null||M===void 0?void 0:M.bindCta)!==null&&x!==void 0?x:(k=(B=(T=W?.video)===null||T===void 0?void 0:T.bindProducts)===null||B===void 0?void 0:B[0])===null||k===void 0?void 0:k.bindCta;if(r?.current>=0){const O=(E=(j=W?.video)===null||j===void 0?void 0:j.bindProducts)===null||E===void 0?void 0:E[r?.current];O&&(D=O,F=O?.bindCta)}D&&F&&u(W,D,F,l.current,s?.index)}setTimeout(()=>{window?.sxpPopup(""),o?.(null),r.current=-1},i?.duration)},f=n.useMemo(()=>{var p,b,m;return(m=(b=(p=t?.sxpPageConf)===null||p===void 0?void 0:p.globalConfig)===null||b===void 0?void 0:b.popupList)===null||m===void 0?void 0:m.map((S,v)=>{var g,h,w,C,P,V,M,x,T,B,k,j,E,y;if(S?.id===i?.id){const W=e[(g=S?.item)===null||g===void 0?void 0:g.type],D=Ci(W),F=((C=(w=(h=S?.item)===null||h===void 0?void 0:h.event)===null||w===void 0?void 0:w.onClick)===null||C===void 0?void 0:C.linkType)==="externalLink",O=((M=(V=(P=S?.item)===null||P===void 0?void 0:P.event)===null||V===void 0?void 0:V.onClick)===null||M===void 0?void 0:M.linkType)==="popup",I=(x=W?.extend)===null||x===void 0?void 0:x.defaulSetting;return n.createElement(D,Object.assign({key:v,style:Object.assign(Object.assign(Object.assign({},I?.style),(T=S?.item)===null||T===void 0?void 0:T.style),{height:"100%"}),textStyle:Object.assign(Object.assign({},I?.textStyle),(B=S?.item)===null||B===void 0?void 0:B.textStyle),bindDatas:(j=(k=S?.item)===null||k===void 0?void 0:k.bindDatas)!==null&&j!==void 0?j:[]},I?.props,(E=S?.item)===null||E===void 0?void 0:E.props,{event:((y=S?.item)===null||y===void 0?void 0:y.event)||{},schema:t,id:S?.id,isExternalLink:F,isPopup:O,onClose:A}))}else return n.createElement(n.Fragment,null)})},[t,i,e,A]);return n.createElement(vi,{popup:a,onClose:A,padding:0,modalStyle:{position:"fixed"},isFullScreen:d},f)},Tn={};Object.values(zi).forEach(t=>{Tn[t.extend.type]=t});const Zd=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:o=20,loadingImage:s,appDomain:l,enabledMetaConversionApi:r,dataList:u})=>{var a,c,d,A,f,p,b;const m=((a=t?.page_type)===null||a===void 0?void 0:a.path_type)===5,S=n.useMemo(()=>{var C;return location?.search?(C=location?.search)===null||C===void 0?void 0:C.replace("?",""):""},[]),[v,g]=n.useState(t?.data),[h,w]=n.useState();return n.createElement(Jn,{resolver:Tn,enableDataSource:!1,schema:v,utmVal:h||S},n.createElement(Gn,{utmVal:S,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(d=(c=t?.sxp_parameter)===null||c===void 0?void 0:c.personalized_recommend)!==null&&d!==void 0?d:e,defaultSize:(f=(A=t?.sxp_parameter)===null||A===void 0?void 0:A.default_recommend)!==null&&f!==void 0?f:i,hashTagSize:(b=(p=t?.sxp_parameter)===null||p===void 0?void 0:p.hash_tag_size)!==null&&b!==void 0?b:o,loadingImage:s,appDomain:l,enabledMetaConversionApi:r,utmParameter:t?.utm_parameter,data:t,dataList:u,isDiyH5:m,onUpdateSchema:C=>g(C),onUpdateChannel:C=>w(C),render:({rtcList:C,tagList:P,pageData:V})=>{var M;return n.createElement(n.Fragment,null,n.createElement(jo,Object.assign({defaultData:t},(M=V?.data)===null||M===void 0?void 0:M.sxpPageConf,{tagList:P,data:C,resolver:Tn})),n.createElement(_d,null))}}))};var Kd=n.memo(Zd);pt.DiyPortalPreview=Fd,pt.DiyStoryPreview=Gd,pt.EditorDataProvider=td,pt.Modal=vi,pt.SxpDataSourceProvider=Gn,pt.SxpPageCore=Kd,pt.SxpPageRender=jo,pt.core=sl,pt.default=Go,pt.materials=zi,pt.useEditorDataProvider=Ii,Object.defineProperty(pt,"__esModule",{value:!0})});
|
|
18
18
|
//# sourceMappingURL=pb-ui.min.js.map
|