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.
@@ -1,11 +1,11 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var mt=require("lodash"),Ro=require("uuid"),Do=require("pako"),n=require("react"),On=require("qs"),Vo=require("eventemitter3"),Re=require("@emotion/css"),Ln=require("react-dom");function Bo(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=Bo(Ln);function it(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 a=0,o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function rt(t,e,i,o){function a(l){return l instanceof i?l:new i(function(s){s(l)})}return new(i||(i=Promise))(function(l,s){function c(d){try{u(o.next(d))}catch(A){s(A)}}function r(d){try{u(o.throw(d))}catch(A){s(A)}}function u(d){d.done?l(d.value):a(d.value).then(c,r)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Fo=/:\w+/g;var jn=(t,e)=>rt(void 0,void 0,void 0,function*(){const i={},o={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:c,urlParams:r,name:u,queryString:d,headers:A,body:f}=e[a];let p=c;r&&Object.entries(r).forEach(([b,m])=>{p=p.replace(Fo,S=>S===b?m:S)}),d&&(p+=d),o[l]=u;try{const b=yield fetch(p,{method:s,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",Wo=(t,e)=>rt(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(Nn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(Nn,JSON.stringify(c))}}return c});function ji(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)o[a]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(l=0|Math.random()*16,o[a]=i[a===19?l&3|8:l])}return o.join("")}const zo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*o)),a+=1;return e},Ho=()=>{const t=Ro.v4();return t?.replaceAll?t.replaceAll("-",""):zo(32)},Oe=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!o&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${o??"inherit"}`,u=`font-family:${a??"inherit"}`,d=f=>{const p=f.search(s),b=f.search(c);return p!==-1&&b!==-1&&p<b&&(i+=`<span style="${r}">${f.substring(p,b)}</span>`,l=f.substring(b,f?.length)),p!==-1&&b!==-1&&p>b&&(i+=`<span style="${u}">${f.substring(b,p)}</span>`,l=f.substring(p,f?.length)),p===-1?(i+=`<span style="${u}">${f.substring(b,f?.length)}</span>`,l="",!1):b===-1?(i+=`<span style="${r}">${f.substring(p,f?.length)}</span>`,l="",!1):!0};let A=!0;for(;A;)A=d(l);return i};function Ji(t){const i=document.cookie.split(";");let o=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(o=s)}),o??""}function Qi(){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 ai(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const l=t[a],s=t.substring(a+1,t.length);l==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let o=0;return e?.map(a=>{i?.push(t.substring(o,a)),o=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function Uo(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",a=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${a}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Rn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),a=Do.inflate(o,{to:"string"});return JSON.parse(a)}let $i=null;const Xo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class qo{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,$i)return $i;$i=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Xo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let It=null;const Yo={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{It||(It=new qo),o&&It.setApiUrl(o),It.setAppId(t),It.setTenantId(e),It.setEnv(i)},getDetail:t=>{if(!It)return;const e=It.getTenantId(),i=It.getAppId(),o=It.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var l,s;const c=yield a.json(),r=Rn((l=c?.data)===null||l===void 0?void 0:l.data);if(r){const{$store:u}=yield jn(o,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>rt(void 0,void 0,void 0,function*(){if(!It)return;const e=It.getTenantId(),i=It.getAppId(),o=It.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var l;const s=yield a.json();return s.success?(l=s?.data)===null||l===void 0?void 0:l.map(r=>Object.assign(Object.assign({},r),{data:Rn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>rt(void 0,void 0,void 0,function*(){if(!It)return;const e=yield Wo(It,t),i=ji(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");mt.isEmpty(o)&&(o=ji(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const a=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 a?.data||null})};function ti(){return n.useContext(Zn)}function Go(){return n.useContext(_n)}const en="feRealSessionIdKey",Dn=()=>{const t=Ho();return`${Date.now()}${t}`},_o=()=>{let t=Zo();return t||(t=Dn(),window.localStorage.setItem(en,t)),t},tn=()=>{const t=Dn();window.localStorage.setItem(en,t)},Zo=()=>window.localStorage.getItem(en),Vn="SXP_FAKE_USER_ID",Bn="FAKE_USER_STATE",Fn="AGREE_POLICY",Wn="SLIDE_SKIP_STATE",zn="CCONTSENT_STATE",Hn="USER_CONSENT_RESULT",Ko=()=>{let t=window.localStorage.getItem(Vn);return mt.isEmpty(t)&&(t=ji(36,62),window.localStorage.setItem(Vn,t)),t},Jo=()=>{const t=window.localStorage.getItem(Bn);return mt.isEmpty(t)&&window.localStorage.setItem(Bn,"true"),mt.isEmpty(t)},Qo=()=>{const t=window.localStorage.getItem(Wn);return mt.isEmpty(t)},$o=()=>{window.localStorage.setItem(Wn,"true")},el=()=>{const t=window.localStorage.getItem(zn);return mt.isEmpty(t)&&window.localStorage.setItem(zn,"true"),mt.isEmpty(t)},Un=()=>window.localStorage.getItem(Hn)==="true",Xn=()=>{window.localStorage.setItem(Hn,"true")};function kt(t,e){const{appDomain:i}=ze();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const xt=new Vo;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:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:c}=ze(),r=n.useMemo(()=>{var A;const f=location.search.slice(1),p={};(A=ai(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},[]),u=A=>{var f;return(f=r[A])!==null&&f!==void 0?f:null};n.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({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}}),s?.(!0),window.localStorage.setItem(Fn,"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:a?`https://${a}`:void 0},l??"More information"))))};var il=n.memo(tl);const qn=n.createContext({rtcList:[],tagList:[]});var nn;(function(t){t[t.BFF=5]="BFF"})(nn||(nn={}));const Ni="FOR U",nl=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,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:D})=>{var M,x,T,V,k;const[j,E]=n.useState([]),[y,F]=n.useState([]),[R,B]=n.useState(!0),[O,I]=n.useState({rtc:"",requestId:""}),N=n.useRef(null),X=n.useRef(!1),[U,q]=n.useState(()=>!!window.localStorage.getItem(Fn)),[Q,me]=n.useState(),[re,K]=n.useState(),[Te,Pe]=n.useState(A),[Be,ue]=n.useState([]),[de,_e]=n.useState(0),[He,Ue]=n.useState(!1),[Ge,nt]=n.useState(null),Ze=n.useRef(),ke=n.useRef(),Qe=n.useRef(),[Tt,De]=n.useState(Ni),Fe=n.useRef(-1),We=n.useRef(null),[Z,ee]=n.useState(!1),[_,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(),[$,W]=n.useState(!1),[Ne,$e]=n.useState(),[Ke,ot]=n.useState(),[Je,Ve]=n.useState([]),[et,ct]=n.useState(),[At,zt]=n.useState(),Mt=n.useMemo(()=>we??h,[we,h]),yt=n.useRef(!1);n.useEffect(()=>{var z,H;le((H=(z=h?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||H===void 0?void 0:H.globalConfig)},[h]);const wt=n.useMemo(()=>{var z,H,te,he;return(((he=(te=(H=(z=_?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!U&&!S||m)&&$},[U,_,m,S,$]),qt=n.useCallback(z=>{D?.(z),ot(z)},[]),gt=n.useCallback(z=>{var H;const te=z?.recList;return(H=te?.map(ce=>{var ve,Ae,Se,xe,Me,L;if(!((ve=ce?.video)===null||ve===void 0)&&ve.bindProducts&&((Se=(Ae=ce?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0){const Y=(L=(Me=(xe=ce?.video)===null||xe===void 0?void 0:xe.bindProducts)===null||Me===void 0?void 0:Me.filter(G=>!!G?.bindCta))!==null&&L!==void 0?L:[];return Object.assign(Object.assign({},ce),{video:Object.assign(Object.assign({},ce?.video),{bindProducts:Y})})}return ce}))!==null&&H!==void 0?H:[]},[]);n.useEffect(()=>{let z;return Je.length>0&&(z=setInterval(()=>{const te=new Date,he=15*1e3;Ve(ce=>ce.filter(ve=>te-ve.time<=he))},1e3)),()=>{clearInterval(z)}},[Je]),n.useEffect(()=>{const z=H=>{Ze.current=H};return xt.on(bt.CHANGE_THEME_TAG,z),()=>{xt.off(bt.CHANGE_THEME_TAG,z)}},[]),n.useEffect(()=>{Pe(A)},[A]);const Xe=n.useMemo(()=>e?.find(z=>z.type===nn.BFF),[e]),Ee=n.useMemo(()=>{var z;return((z=Xe?.headers)===null||z===void 0?void 0:z["x-app-id"])+Ko()},[Xe]),fe=()=>{var z,H;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,Y]=Me.split(":");if(L==="4")return Y==="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 ce=decodeURIComponent((z=he("OptanonConsent"))!==null&&z!==void 0?z:"");return!!(window?.OnetrustActiveGroups&&((H=window?.OnetrustActiveGroups)===null||H===void 0?void 0:H.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(ce))},be=n.useCallback((z,H,te=!0)=>{var he;if(!Xe)return;const ce=Xe.url;if(H?.query){const Ae=On.stringify(H.query);z=`${z}?${Ae}`}const ve=location.search.slice(1);return(he=ai(ve))===null||he===void 0||he.forEach(Ae=>{Ae.split("=")[0],Ae.split("=")[1]}),window.fetch(`${ce}/api/${z}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Ee},Xe.headers),method:H.method,body:H.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Xe.headers),{"x-user-id":Ee}))))}):JSON.stringify(H.body)},H.type==="beacon"&&{keepalive:!0})).then(Ae=>Ae.json()).catch(Ae=>Promise.reject(Ae))},[Xe,Ee]),vt=n.useCallback(z=>{var H;if(fe())return Promise.resolve();const te={eventName:z?.eventName,eventSource:z?.eventSource};return be?.(`v1/data/collect/${(H=Xe?.headers)===null||H===void 0?void 0:H["x-app-id"]}/${z?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[be,Xe]);n.useEffect(()=>{const z=window.Image;window.Image=function(){const H=new z,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(H,"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 ce=new URL(he),ve=Object.fromEntries(ce.searchParams.entries());vt({eventName:ve?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),H}},[vt]),n.useEffect(()=>{const z=navigator;if(!z.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const H=z.sendBeacon.bind(z);return z.sendBeacon=function(te,he){const ce=te instanceof URL?te.href:te.toString();if(fe()&&(ce.includes("https://tr.snapchat.com/p")||ce.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ve=H(te,he);function Ae(Se){return rt(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(()=>rt(this,void 0,void 0,function*(){var Se,xe;try{const Me=yield Ae(he);ce.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 Y,G;!((Y=L?.t)===null||Y===void 0)&&Y.ev&&vt({eventName:(G=L?.t)===null||G===void 0?void 0:G.ev,eventSource:"Snapchat Pixel"})}):ce.includes("https://analytics.tiktok.com/api/v2/pixel")&&Me?.event&&vt({eventName:Me.event,eventSource:"TikTok Pixel"})}catch(Me){console.error("\u76D1\u63A7\u5931\u8D25:",Me)}})),ve},()=>{z.sendBeacon=H}},[vt]),n.useEffect(()=>{const z=window.fetch;window.fetch=function(H,te){var he=arguments;return rt(this,void 0,void 0,function*(){var ce;let ve;try{ve=typeof H=="string"?H:H instanceof URL?H.href:H.url}catch(Ae){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Ae),z.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=z.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=(ce=he[1])===null||ce===void 0?void 0:ce.body;if(xe?.en)vt({eventName:xe?.en,eventSource:"Google Analytics"});else if(Me){const Y=function(G){if(typeof G!="string")return[];const J=[],se=/en=([^&\r\n]*)/g;let ie;for(;(ie=se.exec(G))!==null;)J.push(decodeURIComponent(ie[1]));return J}(Me);Y?.forEach(G=>{vt({eventName:G,eventSource:"Google Analytics"})})}}return Ae}catch(Ae){throw console.error(Ae),Ae}})}},[vt]),n.useEffect(()=>{const z=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,z.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 ce=JSON.parse(te);if(ce&&Array.isArray(ce.data)){const ve=ce.data[((he=ce.data)===null||he===void 0?void 0:he.length)-1];ve&&ve.e&&vt({eventName:ve.e,eventSource:"Northbeam Pixel"})}}catch(ce){console.error("Failed to parse Northbeam event from XHR",ce)}H.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=z,XMLHttpRequest.prototype.send=H}},[vt]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const Ht=n.useCallback((z,H)=>{if(!Xe)return;const te=Xe.url;if(H?.query){const he=On.stringify(H.query);z=`${z}?${he}`}return window.fetch(`${te}/admin/${z}`,{headers:Object.assign({"Content-Type":"application/json"},Xe.headers),method:H.method,body:JSON.stringify(H.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Xe]),Bt=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce,ve,Ae,Se,xe,Me,L,Y,G,J,se;if(z=Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:a,defaultSize:(te=z?.defaultSize)!==null&&te!==void 0?te:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},At&&{chatlabsId:At}),C&&{type:"story"}),Ke)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(Ke)});else if(i){const ne=(ve=(ce=(he=ai(i))===null||he===void 0?void 0:he.filter(ae=>{var pe,je;const ge=ae.split("=")[0];return(je=(pe=v?.channels)!==null&&pe!==void 0?pe:[])===null||je===void 0?void 0:je.includes(ge)}))===null||ce===void 0?void 0:ce.join("&"))!==null&&ve!==void 0?ve:"";ne&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(ne)}))}if(S){let ne=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!z?.channel||X.current)return;X.current=!0;let ae=[],pe=null;const je=ge=>rt(void 0,void 0,void 0,function*(){var Ie,dt,lt,at,st,tt;if(ge.pageNum=ne,pe=yield Ht?.("recommend/direct_page",{method:"POST",body:ge}),!pe?.success)return;B(!1),ae=ae.concat((at=(lt=(dt=(Ie=pe?.data)===null||Ie===void 0?void 0:Ie.recList)===null||dt===void 0?void 0:dt.filter)===null||lt===void 0?void 0:lt.call(dt,qe=>qe?.product||qe?.video))!==null&&at!==void 0?at:[]),j?.length===0&&(E(gt(Object.assign(Object.assign({},pe?.data),{recList:ae}))),ue(gt(Object.assign(Object.assign({},pe?.data),{recList:ae})))),((tt=(st=pe?.data)===null||st===void 0?void 0:st.recList)===null||tt===void 0?void 0:tt.some(qe=>qe?.product||qe?.video))&&(ne=ne+1,yield je(ge))});return yield je(z),!z?.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:ae})}_?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(xe=z?.pageNum)!==null&&xe!==void 0?xe:1}));const ie=yield be?.("v1/recommend/list",{method:"POST",body:z});if(!ie?.success)return;z?.hashTag||I({rtc:ie.data.rtc,requestId:ie.data.requestId}),_?.enablePreview&&!S&&(!((L=(Me=ie?.data)===null||Me===void 0?void 0:Me.recList)===null||L===void 0)&&L.some(ae=>ae?.product||ae?.video)||ee(!0));let oe=[];return oe=oe.concat((se=(J=(G=(Y=ie?.data)===null||Y===void 0?void 0:Y.recList)===null||G===void 0?void 0:G.filter)===null||J===void 0?void 0:J.call(G,ne=>ne?.product||ne?.video))!==null&&se!==void 0?se:[]),Object.assign(Object.assign({},ie.data),{recList:oe})}),[be,i,a,l,g,Ke,At,Ht]),Yi=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce;if(j.length<=0)return;const ve=j?.[j?.length-1],Ae=yield Bt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:re?.hashTag},((H=ve?.product)===null||H===void 0?void 0:H.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:[(ce=ve?.video)===null||ce===void 0?void 0:ce.itemId]}),{themeTag:Ze.current}),_?.enablePreview&&!S&&{pageNum:z}));return E(j.concat(gt(Ae))),ue(Be.concat(gt(Ae))),Ae}),[Bt,j,re,Be]),ri=n.useCallback((z,H)=>{var te,he,ce,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(!((ce=xe?.session)===null||ce===void 0)&&ce.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)&&(H?.("sessionTimeOut"),tn(),ke.current=new Date,Se=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&tn();return Se},[h]),ht=n.useCallback(({userInfo:z,eventInfo:H,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var ce,ve;if(!o||_?.enablePreview||he&&fe())return;z||(z={});const Ae=_o(),Se={},xe=location.search.slice(1);(ce=ai(xe))===null||ce===void 0||ce.forEach(J=>{const se=J.split("=")[0],ie=J.split("=")[1];Se[se]=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:et}),Ne&&te&&{layoutVariantId:Ne}),H),H?.position&&Ke&&{position:Number(H?.position)+1+""}),Me&&{clSource:Me}),Y=Object.entries(z).map(([J,se])=>({name:J,value:se})),G=Object.entries(L).map(([J,se])=>se&&{name:J,value:se}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),be?.(`v2/cld/${(ve=Xe?.headers)===null||ve===void 0?void 0:ve["x-app-id"]}/${H?.eventSubject}${Me?`/${decodeURIComponent(Me)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:G},type:"beacon"})},[be,O,o,_?.enablePreview,Ne,_,et,Xe]),oi=n.useCallback((z,H)=>{var te,he,ce;const ve=mt.cloneDeep(z),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:(ce=(he=window?.navigator)===null||he===void 0?void 0:he.userAgent)!==null&&ce!==void 0?ce:"",fbc:Se?`fb.2.${new Date().getTime()}.${Se}`:"",fbp:Ji("_fbp")?`${Ji("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},Me=/\{\{(.*?)\}\}/g,L=Y=>{if(Y){if(Y instanceof Array)Y?.map(G=>L(G));else for(const G in Y)if(Object.prototype.hasOwnProperty.call(Y,G)){const J=Y?.[G];if(typeof J=="object")L(J);else if(typeof J=="string"){const se=J?.match(Me);se&&se.forEach(ie=>{var oe;const ne=ie.substring(2,ie.length-2);try{let ae=new Function("fix_par","product",`return ${ne}`)(xe,H);ae?(ne?.indexOf("currency")!==-1&&ae?.indexOf("-")!==-1&&typeof ae=="string"&&(ae=(oe=ae?.split("-"))===null||oe===void 0?void 0:oe[0]),Y[G]=ae):delete Y[G]}catch(ae){delete Y[G],console.error("An error occurred:",ae?.message)}})}}}};return L(ve),ve},[Ee]),Pi=n.useCallback(({eventName:z,product:H})=>{var te,he,ce,ve,Ae,Se,xe,Me,L,Y;if(!o||_?.enablePreview||fe())return;let G=!1;const J=(te=_?.pixel)===null||te===void 0?void 0:te[z];if(J?.event_name&&typeof window?.fbq=="function"){let oe=function(ne,ae,pe){const je=new RegExp("([?&])"+ae+"=.*?(&|$)","i"),ge=ne.indexOf("?")!==-1?"&":"?";return ne.match(je)?ne.replace(je,"$1"+ae+"="+pe+"$2"):ne+ge+ae+"="+pe};if(z==="PageView"&&J?.event_name==="PageView")if(!yt.current)yt.current=!0;else{const ne=window.location.href,ae=oe(ne,"timestamp",Date.now());history.pushState({path:ae},"",ae),G=!0}else window?.fbq("track",J?.event_name,oi(J,H))}if(!G){z==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(he=_?.tiktokPixel)===null||he===void 0?void 0:he[z];oe?.event_name&&typeof window?.ttq=="object"&&typeof((ce=window?.ttq)===null||ce===void 0?void 0:ce.track)=="function"&&((ve=window?.ttq)===null||ve===void 0||ve.track(oe?.event_name,oi(oe,H)))}const se=(Ae=_?.snapchatPixel)===null||Ae===void 0?void 0:Ae[z];se?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",se?.event_name,oi(se,H)),z==="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=_?.converApi)===null||Me===void 0?void 0:Me[z];if(f&&ie){const oe=oi(ie,H),ne={},ae=location.search.slice(1);(L=ai(ae))===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/${(Y=Xe?.headers)===null||Y===void 0?void 0:Y["x-app-id"]}/${z}${pe?`/${decodeURIComponent(pe)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[be,o,f,_,Xe,oi]),$t=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/recommend/like",{method:"POST",body:z});return H?.success}),[be]),di=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/recommend/unlike",{method:"POST",body:z});return H?.success}),[be]),ei=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/customform",{method:"POST",body:z});return H?.success}),[be]),Ft=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce,ve,Ae,Se,xe;const Me=!!(!((he=(te=(H=z?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Me))try{const L=(Ae=(ve=(ce=ai(i))===null||ce===void 0?void 0:ce.filter(G=>{var J,se;const ie=G.split("=")[0];return(se=(J=v?.channels)!==null&&J!==void 0?J:[])===null||se===void 0?void 0:se.includes(ie)}))===null||ve===void 0?void 0:ve.join("&"))!==null&&Ae!==void 0?Ae:"",Y=yield be?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(L)}});F((xe=(Se=Y?.data)===null||Se===void 0?void 0:Se.tags)!==null&&xe!==void 0?xe:[])}catch(L){console.log("e",L)}}),[be,i]),Ut=n.useCallback((z,H,te,he)=>{var ce,ve,Ae,Se,xe,Me,L,Y,G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St,Le,Ce,jt,Ot,ci,ut,li,_i,Zi;const _t=te?.bindCta,No=((ce=H?.video)===null||ce===void 0?void 0:ce.bindProduct)||((ve=H?.video)===null||ve===void 0?void 0:ve.bindProducts)&&((Se=(Ae=H?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0;let Mi="",Ki=null;He?Mi="hashTagPage":!((xe=H?.video)===null||xe===void 0)&&xe.url?(Mi="videoPage",Ki="video"):!((L=(Me=H?.video)===null||Me===void 0?void 0:Me.imgUrls)===null||L===void 0)&&L.length&&(Mi="imagePage",Ki="image");const Pn=(ne=(ie=(Y=te?.tags)!==null&&Y!==void 0?Y:(se=(J=(G=H?.video)===null||G===void 0?void 0:G.bindProducts)===null||J===void 0?void 0:J[0])===null||se===void 0?void 0:se.tags)!==null&&ie!==void 0?ie:(oe=H?.video)===null||oe===void 0?void 0:oe.tags)!==null&&ne!==void 0?ne:(ae=H?.product)===null||ae===void 0?void 0:ae.tags;ht?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(pe=_t?.itemId)!==null&&pe!==void 0?pe:"",ctaName:(je=_t?.title)!==null&&je!==void 0?je:"",contentTags:Pn?JSON.stringify(Pn):"",position:he+"",contentId:(Ie=(ge=H?.video)===null||ge===void 0?void 0:ge.itemId)!==null&&Ie!==void 0?Ie:"",productId:No?te?.itemId:"",traceInfo:(_i=(ci=(St=(st=(dt=_t?.traceInfo)!==null&&dt!==void 0?dt:(at=(lt=H?.video)===null||lt===void 0?void 0:lt.bindCta)===null||at===void 0?void 0:at.traceInfo)!==null&&st!==void 0?st:(qe=(pt=(tt=H?.video)===null||tt===void 0?void 0:tt.bindProduct)===null||pt===void 0?void 0:pt.bindCta)===null||qe===void 0?void 0:qe.traceInfo)!==null&&St!==void 0?St:(Ot=(jt=(Ce=(Le=H?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Ce===void 0?void 0:Ce[0])===null||jt===void 0?void 0:jt.bindCta)===null||Ot===void 0?void 0:Ot.traceInfo)!==null&&ci!==void 0?ci:(li=(ut=H?.product)===null||ut===void 0?void 0:ut.bindCta)===null||li===void 0?void 0:li.traceInfo)!==null&&_i!==void 0?_i:"",fromKName:Mi,fromKPage:(Zi=location?.href)!==null&&Zi!==void 0?Zi:"",contentFormat:Ki})})},[ht,He]),Et=n.useCallback(()=>{var z,H,te;const he=location.search.slice(1),ce={};(z=ai(he.replace(/\+/g,"%2B")))===null||z===void 0||z.map(Se=>{const xe=Se.split("=")[0],Me=Se.split("=")[1];ce[xe]=Me});for(const Se in ce)ce[Se]=ce[Se].replace(/%2B/g,"+");const ve=Se=>{var xe;return(xe=ce[Se])!==null&&xe!==void 0?xe:""},Ae=new Date;ke.current=Ae,ht?.({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=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&te!==void 0?te:""},reportLayId:!1})},[ht]),Gi=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){var z,H;const te=yield be?.("v1/account",{method:"GET"});return zt((z=te?.data)===null||z===void 0?void 0:z.chatLabsId),((H=te?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[be]),Oi=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/account/consent",{method:"POST",body:{consentResult:z}});return H?.success}),[be]);n.useEffect(()=>{wt||Et()},[wt]),n.useEffect(()=>{if(wt||s)return;B(!0);let z,H;Bt().then(te=>{var he,ce,ve,Ae,Se,xe,Me,L,Y,G,J;if(te){const se=gt(te);let ie,oe;if(te?.layoutVariantId){z=te?.layoutVariantId,$e(te?.layoutVariantId);const ne=(ce=(he=te?.layoutVariantId)===null||he===void 0?void 0:he.split("-"))===null||ce===void 0?void 0:ce[1];ne&&(ie=w?.find(ae=>ae?.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),!((Y=(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||Y===void 0)&&Y.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(Ke||(oe?.playbook==="organic menu"||!oe&&_?.playbook==="organic menu"?(ct("organicMenu"),se.unshift("organic menu"),H="organicMenu"):(ct("paidMedia"),H="paidMedia")),E(se),ue(se),Ft(ie??Mt),Ke){const ne=se?.[0],ae=((G=ne?.video)===null||G===void 0?void 0:G.traceInfo)||((J=ne?.product)===null||J===void 0?void 0:J.traceInfo)||"";ht?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ae,branchfeed:Ke},z&&{layoutVariantId:z})}),ht?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ae,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-Qe?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{ht({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),H&&{playbookType:H})}),B(!1)})},[wt,Ke]),n.useEffect(()=>{s&&(B(!0),Ft(h),Bt().then(z=>{if(z){const H=gt(z);_?.playbook==="organic menu"&&!Ke&&H.unshift("organic menu"),E(H),ue(H)}}).finally(()=>{B(!1)}))},[Bt,Ft,Ke]);const Li=kt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return n.createElement(qn.Provider,{value:{rtcList:j,setRtcList:E,mutateLike:$t,mutateUnlike:di,submitForm:ei,popupDetailData:Q,loadVideos:Yi,setPopupDetailData:me,getRecommendVideos:Bt,bffEventReport:ht,isPreview:s,loading:R,sxpParameter:c,waterFallData:re,setWaterFallData:K,ctaEvent:Ut,swiperRef:N,openHashtag:Te,setOpenHashtag:Pe,cacheRtcList:Be,setCacheRtcList:ue,cacheActiveIndex:de,setCacheActiveIndex:_e,isFromHashtag:He,setIsFromHashtag:Ue,appDomain:r,hashTagSize:u,loadingImage:d??Li,isOpenHashTag:A,tagList:y,setLoading:B,videoRef:Ge,setVideoRef:nt,bffFbReport:Pi,isAgreePolicy:U,setIsAgreePolicy:q,curTime:ke,h5EnterLink:Et,themeTag:Ze,isShowConsent:wt,selectTag:Tt,setSelectTag:De,globalConfig:_,popupCurTimeRef:We,checkCommodityIndexRef:Fe,isEditor:S,isNoMoreData:Z,updateChannel:qt,channel:Ke,eventTimeList:Je,setEventTimeList:Ve,multiPostTimeRef:Qe,refreshFeSession:ri,getAccount:Gi,accountSonsent:Oi,isDiyH5:C,pixelPvStatusRef:yt}},wt?n.createElement(il,Object.assign({},(k=(V=(T=_?.consent)===null||T===void 0?void 0:T[0])===null||V===void 0?void 0:V.item)===null||k===void 0?void 0:k.props)):t({rtcList:j,mutateLike:$t,mutateUnlike:di,submitForm:ei,tagList:y,pageData:Mt}))};var Yn=n.memo(nl);function ze(){return n.useContext(qn)}var Gn;(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"})(Gn||(Gn={}));const _n=n.createContext({$store:{},options:[],configs:[]}),ol=({children:t,isSsr:e,enable:i})=>{const[o,a]=n.useState([]),{schema:l}=ti(),[s,c]=n.useState(l.__STORE__||{}),[r,u]=n.useState([]);n.useEffect(()=>{var f;e||mt.isEqual(r,l?.dataSource)||u((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const d=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:p}=yield jn("",r);c(f),A(f,p)}),[r]),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)})}),a(b)};return n.useEffect(()=>{e||d()},[d,e,l]),i?n.createElement(_n.Provider,{value:{$store:l.__STORE__||s,options:o,configs:r}},t):t};var ll=n.memo(ol);const Ri={id:ji(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},on={id:"",duration:0,name:"none"},Zn=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Ri],redoStack:[],popup:on,setPopup:()=>{}}),Kn=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:a=!0,utmVal:l},s)=>{const[c,r]=n.useState(null),[u,d]=n.useState(o||{pointData:[Ri],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[A,f]=n.useState([Ri]),[p,b]=n.useState([[Ri]]),[m,S]=n.useState([]),[v,g]=n.useState(on);typeof window<"u"&&(window.sxpPopup=(D,M)=>{g(Object.assign(Object.assign(Object.assign({},on),{id:D}),M))}),typeof window<"u"&&(window.getJointUtmLink=D=>($o(),D?.indexOf("?")!==-1?D+(l?"&"+l:""):D+(l?"?"+l:""))),n.useEffect(()=>{b([u.pointData]),S([])},[u.type]);const h=n.useCallback(D=>{const M=mt.cloneDeep(u);M&&(M.dataSource=D,d?.(M))},[u]),[w,C]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(D){D&&(b([D.pointData]),d(D))},exportSchema(){return mt.cloneDeep(u)},getPageInfoData(){return w},initPageInfoData(D){D&&C(D)}}));const P=n.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return n.createElement(Zn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:h,prePiontData:A,setPrePiontData:f,pageInfoData:w,setPageInfoData:D=>C(Object.assign(Object.assign({},w),D)),undoStack:p,redoStack:m,setRedoStack:S,setUndoStack:b,getCurPageConf:P,popup:v,setPopup:g}},n.createElement(ll,{isSsr:i,enable:a},t))});var al=Object.freeze({__proto__:null,EditorCore:Kn}),sl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],rl=[{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:a}=ze(),l=n.useCallback((r,u,d,A,f,p)=>{var b,m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U,q,Q,me,re,K,Te,Pe,Be,ue,de,_e,He;if(o?.findIndex(ke=>ke.target===r?.target)!==-1)return;r&&a?.(ke=>[...ke,{target:r?.target,time:new Date}]);let Ge="";e&&(!((m=(b=u?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0)&&m.length||!((S=u?.video)===null||S===void 0)&&S.bindProduct)?Ge="pdpPage":i?Ge="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?Ge="videoPage":!((g=u?.video)===null||g===void 0)&&g.imgUrls&&(!((w=(h=u?.video)===null||h===void 0?void 0:h.imgUrls)===null||w===void 0)&&w.length)?Ge="imagePage":u?.product&&(Ge="productPage");const nt=(V=(x=(C=d?.tags)!==null&&C!==void 0?C:(M=(D=(P=u?.video)===null||P===void 0?void 0:P.bindProducts)===null||D===void 0?void 0:D[0])===null||M===void 0?void 0:M.tags)!==null&&x!==void 0?x:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&V!==void 0?V:(k=u?.product)===null||k===void 0?void 0:k.tags;let Ze=null;!((j=u?.video)===null||j===void 0)&&j.url?Ze="video":!((E=u?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(y=u?.video)===null||y===void 0?void 0:y.imgUrls)===null||F===void 0)&&F.length)&&(Ze="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=d?.itemId)!==null&&R!==void 0?R:"",productName:(B=d?.title)!==null&&B!==void 0?B:"",price:d?.price?d?.price+"":"0",productCollection:(O=d?.collection)!==null&&O!==void 0?O:"",fromKName:Ge,fromKPage:location?.href,contentTags:nt?JSON.stringify(nt):"",position:f+"",contentId:(N=(I=u?.video)===null||I===void 0?void 0:I.itemId)!==null&&N!==void 0?N:"",ctatId:(X=A?.itemId)!==null&&X!==void 0?X:"",traceInfo:(He=(ue=(Pe=(me=(U=p??d?.traceInfo)!==null&&U!==void 0?U:(Q=(q=u?.video)===null||q===void 0?void 0:q.bindProduct)===null||Q===void 0?void 0:Q.traceInfo)!==null&&me!==void 0?me:(Te=(K=(re=u?.video)===null||re===void 0?void 0:re.bindProducts)===null||K===void 0?void 0:K[0])===null||Te===void 0?void 0:Te.traceInfo)!==null&&Pe!==void 0?Pe:(Be=u?.product)===null||Be===void 0?void 0:Be.traceInfo)!==null&&ue!==void 0?ue:(_e=(de=u?.video)===null||de===void 0?void 0:de.bindCta)===null||_e===void 0?void 0:_e.traceInfo)!==null&&He!==void 0?He:""},Ze&&{contentFormat:Ze})})},[t,e,i,o]),s=n.useCallback((r,u,d,A,f)=>{var p,b,m,S,v,g,h,w,C,P,D,M,x,T;let V="";e&&(!((b=(p=r?.video)===null||p===void 0?void 0:p.bindProducts)===null||b===void 0)&&b.length||!((m=r?.video)===null||m===void 0)&&m.bindProduct)?V="pdpPage":r?.product&&(V="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:V,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:f+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(M=(w=(v=u?.traceInfo)!==null&&v!==void 0?v:(h=(g=r?.video)===null||g===void 0?void 0:g.bindProduct)===null||h===void 0?void 0:h.traceInfo)!==null&&w!==void 0?w:(D=(P=(C=r?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||D===void 0?void 0:D.traceInfo)!==null&&M!==void 0?M:(x=r?.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]),c=n.useCallback((r,u,d,A)=>{u&&u===Ni&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:A?`['${A}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:c}}const dl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,a)=>n.createElement("div",{key:a,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 cl=n.memo(dl);const ul=t=>{var e,i,{columns:o,style:a,title:l,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:A,isPopup:f,onClick:p,onClose:b,submitButtonStyle:m}=t,S=it(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=ze(),{jumpToWeb:h}=Lt(),[w,C]=n.useState(!1),[P,D]=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"}],[]),V=((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(()=>mt.cloneDeep(o)||T,[o,T]),j=n.useCallback(y=>{const{name:F,value:R}=y.target;D(Object.assign(Object.assign({},P),{[F]:R}))},[P]),E=mt.debounce(y=>rt(void 0,void 0,void 0,function*(){var F,R,B,O,I;const N=P;if(!N)return;const X=(R=(F=Object.keys(N))===null||F===void 0?void 0:F.map(q=>{var Q;return{name:q,value:(Q=N[q])!==null&&Q!==void 0?Q:""}}))===null||R===void 0?void 0:R.filter(q=>q?.value);if(!X||!X?.length)return;C(!0);const U=yield v?.({attributes:X});if(C(!1),U){if(A){const q=g,Q=(B=q?.video)===null||B===void 0?void 0:B.bindProduct,me=(I=(O=q?.video)===null||O===void 0?void 0:O.bindProduct)===null||I===void 0?void 0:I.bindCta,re=g?.index;h(y,q,Q,me,re)}f||b?.(),p?.()}}),1e3);return n.useEffect(()=>{const y=()=>{var F,R;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((R=document?.body)===null||R===void 0?void 0:R.clientHeight))<V?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 ${Re.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Oe(l,s)}}),n.createElement("div",Object.assign({className:Re.css(Object.assign(Object.assign({},a),{marginTop:M}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(cl,{columns:k,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":u,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},m),dangerouslySetInnerHTML:{__html:Oe(w?"loading...":u,m)}})))};var vl=n.memo(ul);function ft(t,e){return t.extend=e,t}const pl=ft(vl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:rl,bindableProps:[],interactionRender:sl},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 Jn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ln(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Jn(e[i])&&Jn(t[i])&&Object.keys(e[i]).length>0&&ln(t[i],e[i])})}const Qn={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 Nt(){const t=typeof document<"u"?document:{};return ln(t,Qn),t}const hl={document:Qn,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 Ct(){const t=typeof window<"u"?window:{};return ln(t,hl),t}function ii(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 ui(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Wt(){return Date.now()}function bl(t){const e=Ct();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=Ct();let o,a,l;const s=bl(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(a==="none"?"":a)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function Di(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 Rt(){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 a=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const c=a[l],r=Object.getOwnPropertyDescriptor(o,c);r!==void 0&&r.enumerable&&(Di(t[c])&&Di(o[c])?o[c].__swiper__?t[c]=o[c]:Rt(t[c],o[c]):!Di(t[c])&&Di(o[c])?(t[c]={},o[c].__swiper__?t[c]=o[c]:Rt(t[c],o[c])):t[c]=o[c])}}}return t}function Vi(t,e,i){t.style.setProperty(e,i)}function $n(t){let{swiper:e,targetPosition:i,side:o}=t;const a=Ct(),l=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>l?"next":"prev",d=(f,p)=>u==="next"&&f>=p||u==="prev"&&f<=p,A=()=>{c=new Date().getTime(),s===null&&(s=c);const f=Math.max(Math.min((c-s)/r,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})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(A)};A()}function Yt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Bi(t){try{console.warn(t);return}catch{}}function vi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ii(e)),i}function eo(t){const e=Ct(),i=Nt(),o=t.getBoundingClientRect(),a=i.body,l=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:o.top+c-l,left:o.left+r-s}}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 ni(t,e){return Ct().getComputedStyle(t,null).getPropertyValue(e)}function Ai(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Fi(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 an(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function sn(t,e,i){const o=Ct();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 rn;function xl(){const t=Ct(),e=Nt();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 rn||(rn=xl()),rn}let dn;function Tl(t){let{userAgent:e}=t===void 0?{}:t;const i=to(),o=Ct(),a=o.navigator.platform,l=e||o.navigator.userAgent,s={ios:!1,android:!1},c=o.screen.width,r=o.screen.height,u=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=a==="Win32";let b=a==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&b&&i.touch&&m.indexOf(`${c}x${r}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),b=!1),u&&!p&&(s.os="android",s.android=!0),(d||f||A)&&(s.os="ios",s.ios=!0),s}function io(t){return t===void 0&&(t={}),dn||(dn=Tl(t)),dn}let cn;function El(){const t=Ct(),e=io();let i=!1;function o(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(o()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function kl(){return cn||(cn=El()),cn}function Il(t){let{swiper:e,on:i,emit:o}=t;const a=Ct();let l=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(A=>{s=a.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)&&c()})}),l.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),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 a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function Cl(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=[],s=Ct(),c=function(d,A){A===void 0&&(A={});const f=s.MutationObserver||s.WebkitMutationObserver,p=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){a("observerUpdate",b[0]);return}const m=function(){a("observerUpdate",b[0])};s.requestAnimationFrame?s.requestAnimationFrame(m):s.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)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Fi(e.hostEl);for(let A=0;A<d.length;A+=1)c(d[A])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{l.forEach(d=>{d.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",r),o("destroy",u)}var Pl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];e.apply(o,s)}return a.__emitterProxy=e,o.on(t,a,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((a,l)=>{(a===e||a.__emitterProxy&&a.__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 a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];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(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(o,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.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(ni(o,"padding-left")||0,10)-parseInt(ni(o,"padding-right")||0,10),i=i-parseInt(ni(o,"padding-top")||0,10)-parseInt(ni(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,V){return parseFloat(T.getPropertyValue(t.getDirectionLabel(V))||0)}const i=t.params,{wrapperEl:o,slidesEl:a,size:l,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=Yt(a,`.${t.params.slideClass}, swiper-slide`),A=r?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=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Vi(o,"--swiper-centered-offset-before",""),Vi(o,"--swiper-centered-offset-after",""));const D=i.grid&&i.grid.rows>1&&t.grid;D?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 V;if(d[T]&&(V=d[T]),D&&t.grid.updateSlide(T,V,d),!(d[T]&&ni(V,"display")==="none")){if(i.slidesPerView==="auto"){x&&(d[T].style[t.getDirectionLabel("width")]="");const k=getComputedStyle(V),j=V.style.transform,E=V.style.webkitTransform;if(j&&(V.style.transform="none"),E&&(V.style.webkitTransform="none"),i.roundLengths)M=t.isHorizontal()?sn(V,"width",!0):sn(V,"height",!0);else{const y=e(k,"width"),F=e(k,"padding-left"),R=e(k,"padding-right"),B=e(k,"margin-left"),O=e(k,"margin-right"),I=k.getPropertyValue("box-sizing");if(I&&I==="border-box")M=y+B+O;else{const{clientWidth:N,offsetWidth:X}=V;M=y+F+R+B+O+(X-N)}}j&&(V.style.transform=j),E&&(V.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,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),D&&t.grid.updateWrapperSize(M,f),!i.centeredSlides){const T=[];for(let V=0;V<f.length;V+=1){let k=f[V];i.roundLengths&&(k=Math.floor(k)),f[V]<=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(r&&i.loop){const T=b[0]+h;if(i.slidesPerGroup>1){const V=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),k=T*i.slidesPerGroup;for(let j=0;j<V;j+=1)f.push(f[f.length-1]+k)}for(let V=0;V<t.virtual.slidesBefore+t.virtual.slidesAfter;V+=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()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((V,k)=>!i.cssMode||i.loop?!0:k!==d.length-1).forEach(V=>{V.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const V=T-l;f=f.map(k=>k<=0?-m:k>V?V+S:k)}if(i.centerInsufficientSlides){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const V=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+V<l){const k=(l-T-V)/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){Vi(o,"--swiper-centered-offset-before",`${-f[0]}px`),Vi(o,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],V=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(k=>k+T),t.slidesGrid=t.slidesGrid.map(k=>k+V)}if(A!==u&&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"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,V=t.el.classList.contains(T);A<=i.maxBackfaceHiddenSlides?V||t.el.classList.add(T):V&&t.el.classList.remove(T)}}function Ml(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let a=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>o?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const c=e.activeIndex+l;if(c>e.slides.length&&!o)break;i.push(s(c))}else i.push(s(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const c=i[l].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}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:a,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<o.length;r+=1){const u=o[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=o[0].swiperSlideOffset);const A=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),f=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),p=-(s-d),b=p+e.slidesSizesGrid[r],m=p>=0&&p<=e.size-e.slidesSizesGrid[r],S=p>=0&&p<e.size-1||b>1&&b<=e.size||p<=0&&b>=e.size;S&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),no(u,S,i.slideVisibleClass),no(u,m,i.slideFullyVisibleClass),u.progress=a?-A:A,u.originalProgress=a?-f:f}}function Rl(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:a,isBeginning:l,isEnd:s,progressLoop:c}=e;const r=l,u=s;if(o===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/o;const d=Math.abs(t-e.minTranslate())<1,A=Math.abs(t-e.maxTranslate())<1;l=d||a<=0,s=A||a>=1,d&&(a=0),A&&(a=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?c=(m-f)/b:c=(m+b-p)/b,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:l,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!l||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const un=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Dl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=A=>Yt(o,`.${i.slideClass}${A}, swiper-slide${A}`)[0];let r,u,d;if(l)if(i.loop){let A=a-t.virtual.slidesBefore;A<0&&(A=t.virtual.slides.length+A),A>=t.virtual.slides.length&&(A-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${A}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(A=>A.column===a)[0],d=e.filter(A=>A.column===a+1)[0],u=e.filter(A=>A.column===a-1)[0]):r=e[a];r&&(s||(d=Sl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=wl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(A=>{un(A,A===r,i.slideActiveClass),un(A,A===d,i.slideNextClass),un(A,A===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Wi=(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 a=o.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},vn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},pn=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),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+o+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&vn(t,u)});return}const l=a+o-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=l+e;s+=1){const c=(s%i+i)%i;(c<a||c>l)&&vn(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(l+e,i-1);s+=1)s!==a&&(s>l||s<a)&&vn(t,s)};function Vl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let a;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?a=l:o>=e[l]&&o<e[l+1]&&(a=l+1):o>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Bl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:s,snapIndex:c}=e;let r=t,u;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 r>"u"&&(r=Vl(e)),o.indexOf(i)>=0)u=o.indexOf(i);else{const p=Math.min(a.slidesPerGroupSkip,r);u=p+Math.floor((r-p)/a.slidesPerGroup)}if(u>=o.length&&(u=o.length-1),r===l&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const A=e.grid&&a.grid&&a.grid.rows>1;let f;if(e.virtual&&a.virtual.enabled&&a.loop)f=d(r);else if(A){const p=e.slides.filter(m=>m.column===r)[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/a.grid.rows)}else if(e.slides[r]){const p=e.slides[r].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=r}else f=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:l,activeIndex:r}),e.initialized&&pn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Fl(t,e){const i=this,o=i.params;let a=t.closest(`.${o.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${o.slideClass}, swiper-slide`)&&(a=c)});let l=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){l=!0,s=c;break}}if(a&&l)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Wl={updateSize:Ol,updateSlides:Ll,updateAutoHeight:Ml,updateSlidesOffset:jl,updateSlidesProgress:Nl,updateProgress:Rl,updateSlidesClasses:Dl,updateActiveIndex:Bl,updateClickedSlide:Fl};function zl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return o?-a:a;if(i.cssMode)return a;let s=gl(l,t);return s+=e.cssOverflowAdjustment(),o&&(s=-s),s||0}function Hl(t,e){const i=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=o?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const A=i.maxTranslate()-i.minTranslate();A===0?d=0:d=(t-i.minTranslate())/A,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Ul(){return-this.snapGrid[0]}function Xl(){return-this.snapGrid[this.snapGrid.length-1]}function ql(t,e,i,o,a){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:s,wrapperEl:c}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const r=l.minTranslate(),u=l.maxTranslate();let d;if(o&&t>r?d=r:o&&t<u?d=u:d=t,l.updateProgress(d),s.cssMode){const A=l.isHorizontal();if(e===0)c[A?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:-d,side:A?"left":"top"}),!0;c.scrollTo({[A?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),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 Yl={getTranslate:zl,setTranslate:Hl,minTranslate:Ul,maxTranslate:Xl,translateTo:ql};function Gl(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:a}=t;const{activeIndex:l,previousIndex:s}=e;let c=o;if(c||(l>s?c="next":l<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&l!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function _l(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 Zl(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 Kl={setTransition:Gl,transitionStart:_l,transitionEnd:Zl};function Jl(t,e,i,o,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:A,rtlTranslate:f,wrapperEl:p,enabled:b}=l;if(!b&&!o&&!a||l.destroyed||l.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const m=Math.min(l.params.slidesPerGroupSkip,s);let S=m+Math.floor((s-m)/l.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const v=-r[S];if(c.normalizeSlideIndex)for(let h=0;h<u.length;h+=1){const w=-Math.floor(v*100),C=Math.floor(u[h]*100),P=Math.floor(u[h+1]*100);typeof u[h+1]<"u"?w>=C&&w<P-(P-C)/2?s=h:w>=C&&w<P&&(s=h+1):w>=C&&(s=h)}if(l.initialized&&s!==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)!==s))return!1;s!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(s>A?g="next":s<A?g="prev":g="reset",f&&-v===l.translate||!f&&v===l.translate)return l.updateActiveIndex(s),c.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),c.effect!=="slide"&&l.setTranslate(v),g!=="reset"&&(l.transitionStart(i,g),l.transitionEnd(i,g)),!1;if(c.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(s),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 Ql(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(l){const f=s*a.params.grid.rows;c=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else c=a.getSlideIndexByData(s);const r=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let A=r-c<d;if(u&&(A=A||c<Math.ceil(d/2)),o&&u&&a.params.slidesPerView!=="auto"&&!l&&(A=!1),A){const f=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?c+1:c-r+1,slideRealIndex:f==="next"?a.realIndex:void 0})}if(l){const f=s*a.params.grid.rows;s=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,o)}),a}function $l(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:a,params:l,animating:s}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let c=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(c=Math.max(o.slidesPerViewDynamic("current",!0),1));const r=o.activeIndex<l.slidesPerGroupSkip?1:c,u=o.virtual&&l.virtual.enabled;if(l.loop){if(s&&!u&&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+r,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+r,t,e,i)}function ea(t,e,i){e===void 0&&(e=!0);const o=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=o;if(!r||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const d=o.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const A=c?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"&&a.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=s.indexOf(m),S<0&&(S=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.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(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function ta(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 ia(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let l=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,l),c=s+Math.floor((l-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*o&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,t,e,i)}function na(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,l;const s=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?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=t.getSlideIndex(Yt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=t.getSlideIndex(Yt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var oa={slideTo:Jl,slideToLoop:Ql,slideNext:$l,slidePrev:ea,slideReset:ta,slideToClosest:ia,slideToClickedSlide:na};function la(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{Yt(o,`.${i.slideClass}, swiper-slide`).forEach((A,f)=>{A.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(l?i.grid.rows:1),c=e.slides.length%s!==0,r=l&&e.slides.length%i.grid.rows!==0,u=d=>{for(let A=0;A<d;A+=1){const f=e.isElement?vi("swiper-slide",[i.slideBlankClass]):vi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else Bi("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)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else Bi("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)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function aa(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:a,activeSlideIndex:l,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:A,slidesEl:f,params:p}=r,{centeredSlides:b}=p;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):p.centeredSlides&&r.snapIndex<p.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=A,r.emit("loopFix");return}let m=p.slidesPerView;m==="auto"?m=r.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,r.loopedSlides=v;const g=r.grid&&p.grid&&p.grid.rows>1;u.length<m+v?Bi("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"&&Bi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],w=[];let C=r.activeIndex;typeof l>"u"?l=r.getSlideIndex(u.filter(j=>j.classList.contains(p.slideActiveClass))[0]):C=l;const P=o==="next"||!o,D=o==="prev"||!o;let M=0,x=0;const T=g?Math.ceil(u.length/p.grid.rows):u.length,k=(g?u[l].column:l)+(b&&typeof a>"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 F=u.length-1;F>=0;F-=1)u[F].column===y&&h.push(F)}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?u.forEach((y,F)=>{y.column===E&&w.push(F)}):w.push(E)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),D&&h.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),P&&w.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.append(u[j]),u[j].swiperLoopMoveDOM=!1}),r.recalcSlides(),p.slidesPerView==="auto"?r.updateSlides():g&&(h.length>0&&D||w.length>0&&P)&&r.slides.forEach((j,E)=>{r.grid.updateSlide(E,j,r.slides)}),p.watchSlidesProgress&&r.updateSlidesOffset(),i){if(h.length>0&&D){if(typeof e>"u"){const j=r.slidesGrid[C],y=r.slidesGrid[C+M]-j;c?r.setTranslate(r.translate-y):(r.slideTo(C+Math.ceil(M),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-y,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-y))}else if(a){const j=g?h.length/p.grid.rows:h.length;r.slideTo(r.activeIndex+j,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(w.length>0&&P)if(typeof e>"u"){const j=r.slidesGrid[C],y=r.slidesGrid[C-x]-j;c?r.setTranslate(r.translate-y):(r.slideTo(C-x,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-y,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-y))}else{const j=g?w.length/p.grid.rows:w.length;r.slideTo(r.activeIndex-j,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=A,r.controller&&r.controller.control&&!s){const j={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...j,slideTo:E.params.slidesPerView===p.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...j,slideTo:r.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}r.emit("loopFix")}function sa(){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(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ra={loopCreate:la,loopFix:aa,loopDestroy:sa};function da(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 ca(){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 ua={setGrabCursor:da,unsetGrabCursor:ca};function va(t,e){e===void 0&&(e=this);function i(o){if(!o||o===Nt()||o===Ct())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(t);return!a&&!o.getRootNode?null:a||i(o.getRootNode().host)}return i(e)}function lo(t,e,i){const o=Ct(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=o.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function pa(t){const e=this,i=Nt();let o=t;o.originalEvent&&(o=o.originalEvent);const a=e.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){lo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:c}=e;if(!c||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let r=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(r=d[0]);const A=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(f?va(A,r):r.closest(A))){e.allowClick=!0;return}if(l.swipeHandler&&!r.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const p=s.currentX,b=s.currentY;if(!lo(e,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=b,a.touchStartTime=Wt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let m=!0;r.matches(a.focusableElements)&&(m=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const S=m&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!r.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function ma(t){const e=Nt(),i=this,o=i.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(o.touchId!==null||r.pointerId!==o.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(P=>P.identifier===o.touchId)[0],!u||u.identifier!==o.touchId)return}else u=r;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,A=u.pageY;if(r.preventedByNestedSwiper){l.startX=d,l.startY=A;return}if(!i.allowTouchMove){r.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(a.touchReleaseOnEdges&&!a.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&&r.target===e.activeElement&&r.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",r),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>a.touchAngle:90-P>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",r),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||r.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let b=i.isHorizontal()?f:p,m=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(b=Math.abs(b)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),l.diff=b,b*=a.touchRatio,s&&(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&&!a.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,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}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",r),o.isMoved=!0,o.currentTranslate=b+o.startTranslate;let w=!0,C=a.resistanceRatio;if(a.touchReleaseOnEdges&&(C=0),b>0?(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+b)**C))):b<0&&(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-b)**C))),w&&(r.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),a.threshold>0)if(Math.abs(b)>a.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}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function fa(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].filter(C=>C.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;a=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:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.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(),ui(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.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(s.followFinger?p=r?e.translate:-e.translate:p=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.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<u.length;C+=C<s.slidesPerGroupSkip?1:s.slidesPerGroup){const P=C<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[C+P]<"u"?(b||p>=u[C]&&p<u[C+P])&&(m=C,S=u[C+P]-u[C]):(b||p>=u[C])&&(m=C,S=u[u.length-1]-u[u.length-2])}let v=null,g=null;s.rewind&&(e.isBeginning?g=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(p-u[m])/S,w=m<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:m+w):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-s.longSwipesRatio?e.slideTo(m+w):g!==null&&h<0&&Math.abs(h)>s.longSwipesRatio?e.slideTo(g):e.slideTo(m))}else{if(!s.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 ao(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?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=a,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function ha(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Aa(){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 a;const l=t.maxTranslate()-t.minTranslate();l===0?a=0:a=(t.translate-t.minTranslate())/l,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ba(t){const e=this;Wi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ga(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const so=(t,e)=>{const i=Nt(),{params:o,el:a,wrapperEl:l,device:s}=t,c=!!o.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[r]("click",t.onClick,!0),o.cssMode&&l[r]("scroll",t.onScroll),o.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",ao,!0):t[u]("observerUpdate",ao,!0),a[r]("load",t.onLoad,{capture:!0}))};function ya(){const t=this,{params:e}=t;t.onTouchStart=pa.bind(t),t.onTouchMove=ma.bind(t),t.onTouchEnd=fa.bind(t),t.onDocumentTouchStart=ga.bind(t),e.cssMode&&(t.onScroll=Aa.bind(t)),t.onClick=ha.bind(t),t.onLoad=ba.bind(t),so(t,"on")}function wa(){so(this,"off")}var Sa={attachEvents:ya,detachEvents:wa};const ro=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function xa(){const t=this,{realIndex:e,initialized:i,params:o,el:a}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const s=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in l?l[s]:void 0)||t.originalParams,u=ro(t,o),d=ro(t,r),A=t.params.grabCursor,f=r.grabCursor,p=o.enabled;u&&!d?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${o.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),A&&!f?t.unsetGrabCursor():!A&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof r[h]>"u")return;const w=o[h]&&o[h].enabled,C=r[h]&&r[h].enabled;w&&!C&&t[h].disable(),!w&&C&&t[h].enable()});const b=r.direction&&r.direction!==o.direction,m=o.loop&&(r.slidesPerView!==o.slidesPerView||b),S=o.loop;b&&i&&t.changeDirection(),Rt(t.params,r);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=s,t.emit("_beforeBreakpoint",r),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",r)}function Ta(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const a=Ct(),l=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:l*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=r):u<=i.clientWidth&&(o=r)}return o||"max"}var Ea={setBreakpoint:xa,getBreakpoint:Ta};function ka(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&i.push(e+a)}):typeof o=="string"&&i.push(e+o)}),i}function Ia(){const t=this,{classNames:e,params:i,rtl:o,el:a,device:l}=t,s=ka(["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(...s),a.classList.add(...e),t.emitContainerClasses()}function Ca(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Pa={addClasses:Ia,removeClasses:Ca};function Oa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+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 La={checkOverflow:Oa},mn={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 Ma(t,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){Rt(e,o);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in l)){Rt(e,o);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Rt(e,o)}}const fn={eventsEmitter:Pl,update:Wl,translate:Yl,transition:Kl,slide:oa,loop:ra,grabCursor:ua,events:Sa,breakpoints:Ea,checkOverflow:La,classes:Pa},hn={};let An=class Qt{constructor(){let e,i;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=Rt({},i),e&&!i.el&&(i.el=e);const s=Nt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(A=>{const f=Rt({},i,{el:A});d.push(new Qt(f))}),d}const c=this;c.__swiper__=!0,c.support=to(),c.device=io({userAgent:i.userAgent}),c.browser=kl(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:Ma(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=Rt({},mn,r);return c.params=Rt({},u,hn,i),c.originalParams=Rt({},c.params),c.passedParams=Rt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.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:c.params.allowSlideNext,allowSlidePrev:c.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:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}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,a=Yt(i,`.${o.slideClass}, swiper-slide`),l=Ai(a[0]);return Ai(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=Yt(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 a=o.minTranslate(),s=(o.maxTranslate()-a)*e+a;o.translateTo(s,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 a=e.getSlideClasses(o);i.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=o;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let A=l[u]?Math.ceil(l[u].swiperSlideSize):0,f;for(let p=u+1;p<l.length;p+=1)l[p]&&!f&&(A+=Math.ceil(l[p].swiperSlideSize),d+=1,A>r&&(f=!0));for(let p=u-1;p>=0;p-=1)l[p]&&!f&&(A+=l[p].swiperSlideSize,d+=1,A>r&&(f=!0))}else if(e==="current")for(let A=u+1;A<l.length;A+=1)(i?s[A]+c[A]-s[u]<r:s[A]-s[u]<r)&&(d+=1);else for(let A=u-1;A>=0;A-=1)s[u]-s[A]<r&&(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(s=>{s.complete&&Wi(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const s=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(s.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||a()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),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 a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):Yt(o,a())[0];return!s&&i.params.createElements&&(s=vi("div",i.params.wrapperClass),o.append(s),Yt(o,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:o,wrapperEl:s,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:s,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||ni(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||ni(o,"direction")==="rtl"),wrongRTL:ni(s,"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 a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?Wi(i,l):l.addEventListener("load",s=>{Wi(i,s.target)})}),pn(i),i.initialized=!0,pn(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:a,el:l,wrapperEl:s,slides:c}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(r=>{o.off(r)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Al(o)),o.destroyed=!0),null}static extendDefaults(e){Rt(hn,e)}static get extendedDefaults(){return hn}static get defaults(){return mn}static installModule(e){Qt.prototype.__modules__||(Qt.prototype.__modules__=[]);const i=Qt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Qt.installModule(i)),Qt):(Qt.installModule(e),Qt)}};Object.keys(fn).forEach(t=>{Object.keys(fn[t]).forEach(e=>{An.prototype[e]=fn[t][e]})}),An.use([Il,Cl]);const co=["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 pi(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]:pi(t[o],e[o]):t[o]=e[o]})}function uo(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 ja(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Na(t){let{swiper:e,slides:i,passedParams:o,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.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,D;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),a.includes("controller")&&o.controller&&o.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||r)&&(d.pagination||d.pagination===!1)&&A&&!A.el&&(g=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(h=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||s)&&(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))};a.includes("loop")&&e.isElement&&(d.loop&&!o.loop?C=!0:!d.loop&&o.loop?P=!0:D=!0),u.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]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&b&&d.virtual.enabled?(b.slides=i,b.update(!0)):a.includes("virtual")&&b&&d.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),a.includes("children")&&i&&d.loop&&(D=!0),S&&m.init()&&m.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),A.init(),A.render(),A.update()),h&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),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)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),l&&(d.navigation.nextEl=l),s&&(d.navigation.prevEl=s),f.init(),f.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(C||D)&&e.loopDestroy(),(P||D)&&e.loopCreate(),e.update()}function Ra(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},a={};pi(i,mn),i._emitClasses=!0,i.init=!1;const l={},s=co.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?si(t[r])?(i[r]={},a[r]={},pi(i[r],t[r]),pi(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?o[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:l[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:l,events:o}}function Da(t,e){let{el:i,nextEl:o,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:c}=t;uo(e)&&o&&a&&(c.params.navigation.nextEl=o,c.originalParams.navigation.nextEl=o,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),vo(e)&&l&&(c.params.pagination.el=l,c.originalParams.pagination.el=l),po(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Va(t,e,i,o,a){const l=[];if(!e)return l;const s=r=>{l.indexOf(r)<0&&l.push(r)};if(i&&o){const r=o.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),o.length!==i.length&&s("children")}return co.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(si(t[r])&&si(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(A=>{t[r][A]!==e[r][A]&&s(r)}),d.forEach(A=>{t[r][A]!==e[r][A]&&s(r)}))}else t[r]!==e[r]&&s(r)}),l}const Ba=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function zi(){return zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},zi.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 Fa(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 a=ho(o.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Wa(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},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=l&&d<=s&&u.push(e[o(d)]);return u.map((d,A)=>n.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${A}`}))}function bi(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const bn=n.createContext(null),gi=()=>n.useContext(bn),za=n.createContext(null),Zt=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:a="div",children:l,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,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),D=n.useRef(null),{params:M,passedParams:x,rest:T,events:V}=Ra(c),{slides:k,slots:j}=Fa(l),E=()=>{b(!p)};Object.assign(M.on,{_containerClasses(O,I){d(I)}});const y=()=>{Object.assign(M.on,V),r=!0;const O={...M};if(delete O.wrapperClass,v.current=new An(O),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=k;const I={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};pi(v.current.params.virtual,I),pi(v.current.originalParams.virtual,I)}};S.current||y(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{r||!V||!v.current||Object.keys(V).forEach(O=>{v.current.on(O,V[O])})},R=()=>{!V||!v.current||Object.keys(V).forEach(O=>{v.current.off(O,V[O])})};n.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),n.useEffect(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),bi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&y(),Da({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:D.current,swiper:v.current},M),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),bi(()=>{F();const O=Va(x,g.current,k,h.current,I=>I.key);return g.current=x,h.current=k,O.length&&v.current&&!v.current.destroyed&&Na({swiper:v.current,slides:k,passedParams:x,changedParams:O,nextEl:w.current,prevEl:C.current,scrollbarEl:D.current,paginationEl:P.current}),()=>{R()}}),bi(()=>{Ba(v.current)},[A]);function B(){return M.virtual?Wa(v.current,k,A):k.map((O,I)=>n.cloneElement(O,{swiper:v.current,swiperSlideIndex:I}))}return n.createElement(o,zi({ref:S,className:mo(`${u}${i?` ${i}`:""}`)},T),n.createElement(za.Provider,{value:v.current},j["container-start"],n.createElement(a,{className:ja(M.wrapperClass)},j["wrapper-start"],B(),j["wrapper-end"]),uo(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:D,className:"swiper-scrollbar"}),vo(M)&&n.createElement("div",{ref:P,className:"swiper-pagination"}),j["container-end"]))});Zt.displayName="Swiper";const Dt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:a="",swiper:l,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...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)}bi(()=>{if(typeof u<"u"&&(A.current.swiperSlideIndex=u),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)}}}),bi(()=>{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,zi({ref:A,className:mo(`${f}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:h},d),s&&n.createElement(bn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},g(),c&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(bn.Provider,{value:v},g(),c&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Dt.displayName="SwiperSlide";function gn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Nt(),s=Ct();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(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(Fi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Fi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,D=P.clientWidth,M=P.clientHeight,x=s.innerWidth,T=s.innerHeight,V=eo(P);A&&(V.left-=P.scrollLeft);const k=[[V.left,V.top],[V.left+D,V.top],[V.left,V.top+M],[V.left+D,V.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()),a("keyPress",p)}}function r(){e.keyboard.enabled||(l.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(l.removeEventListener("keydown",c),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&r()}),o("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Hi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Ct();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 s,c=Wt(),r;const u=[];function d(h){let D=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&&(D=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(D=M,M=0),x=D*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&&!D&&(D=x<1?-1:1),T&&!M&&(M=T<1?-1:1),{spinX:D,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()-c<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&Wt()-c<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",h.raw)),c=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 D=e.el;e.params.mousewheel.eventsTarget!=="container"&&(D=document.querySelector(e.params.mousewheel.eventsTarget));const M=D&&D.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,V=d(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(V.pixelX)>Math.abs(V.pixelY))x=-V.pixelX*T;else return!0;else if(Math.abs(V.pixelY)>Math.abs(V.pixelX))x=-V.pixelY;else return!0;else x=Math.abs(V.pixelX)>Math.abs(V.pixelY)?-V.pixelX*T:-V.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};u.length>=2&&u.shift();const E=u.length?u[u.length-1]:void 0;if(u.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=r&&j.time<r.time+500&&j.delta<=r.delta&&j.direction===r.direction;if(!E){r=void 0;let y=e.getTranslate()+x*P.sensitivity;const F=e.isBeginning,R=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(),(!F&&e.isBeginning||!R&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,O=u[0];if(u.push(j),B&&(j.delta>B.delta||j.direction!==B.direction))u.splice(0);else if(u.length>=15&&j.time-O.time<500&&O.delta-j.delta>=1&&j.delta<=6){const I=x>0?.8:.2;r=j,u.splice(0),s=ui(()=>{e.slideToClosest(e.params.speed,!0,void 0,I)},0)}s||(s=ui(()=>{r=j,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||a("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 yn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(a=>{if(!i[a]&&i.auto===!0){let l=Yt(t.el,`.${o[a]}`)[0];l||(l=vi("div",o[a]),l.className=o[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function wn(t){let{swiper:e,extendParams:i,on:o,emit:a}=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 s(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 c(){const{nextEl:b,prevEl:m}=e.navigation;if(e.params.loop){s(m,!1),s(b,!1);return}s(m,e.isBeginning&&!e.params.rewind),s(b,e.isEnd&&!e.params.rewind)}function r(b){b.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(b){b.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const b=e.params.navigation;if(e.params.navigation=yn(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"?u:r),!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"?u:r),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(),c())}),o("toEdge fromEdge lock unlock",()=>{c()}),o("destroy",()=>{A()}),o("enable disable",()=>{let{nextEl:b,prevEl:m}=e.navigation;if(b=Ye(b),m=Ye(m),e.enabled){c();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)),a(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(),c()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),A()};Object.assign(e.navigation,{enable:f,disable:p,update:c,init:d,destroy:A})}function Kt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function yi(t){let{swiper:e,extendParams:i,on:o,emit:a}=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 s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(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(Kt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const h=Ai(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(r())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,D=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,V;if(g.dynamicBullets&&(s=sn(M[0],e.isHorizontal()?"width":"height",!0),h.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${s*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(c+=w-(C||0),c>g.dynamicMainBullets-1?c=g.dynamicMainBullets-1:c<0&&(c=0)),x=Math.max(w-c,0),T=x+(Math.min(M.length,g.dynamicMainBullets)-1),V=(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=Ai(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&&u(k,"prev"),j===T&&u(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(" "));u(j,"prev"),u(E,"next")}}if(g.dynamicBullets){const k=Math.min(M.length,g.dynamicMainBullets+4),j=(s*k-s)/2-V*s,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(Kt(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(w+1)}),M.querySelectorAll(Kt(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(D)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const V=(w+1)/D;let k=1,j=1;T==="horizontal"?k=V:j=V,M.querySelectorAll(Kt(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,D),x===0&&a("paginationRender",M)):(x===0&&a("paginationRender",M),a("paginationUpdate",M)),e.params.watchOverflow&&e.enabled&&M.classList[e.isLocked?"add":"remove"](g.lockClass)})}function f(){const v=e.params.pagination;if(r())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(Kt(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",h[0])}function p(){e.params.pagination=yn(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=>Fi(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`),c=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(r())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);a(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 Ha(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Nt();let s=!1,c=null,r=null,u,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,F=e.params.scrollbar,R=e.params.loop?e.progressLoop:e.progress;let B=d,O=(A-d)*R;j?(O=-O,O>0?(B=d-O,O=0):-O+d>A&&(B=A+O)):O<0?(B=d+O,O=0):O+d>A&&(B=A-O),e.isHorizontal()?(E.style.transform=`translate3d(${O}px, 0, 0)`,E.style.width=`${B}px`):(E.style.transform=`translate3d(0px, ${O}px, 0)`,E.style.height=`${B}px`),F.hide&&(clearTimeout(c),y.style.opacity=1,c=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 F;F=(S(k)-eo(y)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(A-d),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const R=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(R),e.setTranslate(R),e.updateActiveIndex(),e.updateSlidesClasses()}function g(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F,dragEl:R}=E;s=!0,u=k.target===R?S(k)-k.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,k.preventDefault(),k.stopPropagation(),y.style.transitionDuration="100ms",R.style.transitionDuration="100ms",v(k),clearTimeout(r),F.style.transitionDuration="0ms",j.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",k)}function h(k){const{scrollbar:j,wrapperEl:E}=e,{el:y,dragEl:F}=j;s&&(k.preventDefault&&k.cancelable?k.preventDefault():k.returnValue=!1,v(k),E.style.transitionDuration="0ms",y.style.transitionDuration="0ms",F.style.transitionDuration="0ms",a("scrollbarDragMove",k))}function w(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F}=E;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),j.hide&&(clearTimeout(r),r=ui(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",k),j.snapOnRelease&&e.slideToClosest())}function C(k){const{scrollbar:j,params:E}=e,y=j.el;if(!y)return;const F=y,R=E.passiveListeners?{passive:!1,capture:!1}:!1,B=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const O=k==="on"?"addEventListener":"removeEventListener";F[O]("pointerdown",g,R),l[O]("pointermove",h,R),l[O]("pointerup",w,B)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function D(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function M(){const{scrollbar:k,el:j}=e;e.params.scrollbar=yn(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 F;y&&(F=y.querySelector(Kt(e.params.scrollbar.dragClass)),F||(F=vi("div",e.params.scrollbar.dragClass),y.append(F))),Object.assign(k,{el:y,dragEl:F}),E.draggable&&P(),y&&y.classList[e.enabled?"remove":"add"](...ii(e.params.scrollbar.lockClass))}function x(){const k=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...ii(e.isHorizontal()?k.horizontalClass:k.verticalClass)),D()}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?V():(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"](...ii(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...ii(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ii(e.params.scrollbar.scrollbarDisabledClass)),M(),m(),p()},V=()=>{e.el.classList.add(...ii(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ii(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:V,updateSize:m,setTranslate:p,init:M,destroy:x})}function Sn(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 a=null,l,s,c=new Date().getTime();function r(R){const B=a;B.length!==0&&(B.innerHTML="",B.innerHTML=R)}function u(R){R===void 0&&(R=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(R).replace(/x/g,B)}function d(R){R=Ye(R),R.forEach(B=>{B.setAttribute("tabIndex","0")})}function A(R){R=Ye(R),R.forEach(B=>{B.setAttribute("tabIndex","-1")})}function f(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("role",B)})}function p(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-roledescription",B)})}function b(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-controls",B)})}function m(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-label",B)})}function S(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("id",B)})}function v(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-live",B)})}function g(R){R=Ye(R),R.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function h(R){R=Ye(R),R.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function w(R){if(R.keyCode!==13&&R.keyCode!==32)return;const B=e.params.a11y,O=R.target;if(!(e.pagination&&e.pagination.el&&(O===e.pagination.el||e.pagination.el.contains(R.target))&&!R.target.matches(Kt(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?r(B.lastSlideMessage):r(B.nextSlideMessage)),I.includes(O)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(B.firstSlideMessage):r(B.prevSlideMessage))}e.pagination&&O.matches(Kt(e.params.pagination.bulletClass))&&O.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:R,prevEl:B}=e.navigation;B&&(e.isBeginning?(g(B),A(B)):(h(B),d(B))),R&&(e.isEnd?(g(R),A(R)):(h(R),d(R)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function D(){return P()&&e.params.pagination.clickable}function M(){const R=e.params.a11y;P()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(d(B),e.params.pagination.renderBullet||(f(B,"button"),m(B,R.paginationBulletMessage.replace(/\{\{index\}\}/,Ai(B)+1)))),B.matches(Kt(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const x=(R,B,O)=>{d(R),R.tagName!=="BUTTON"&&(f(R,"button"),R.addEventListener("keydown",w)),m(R,O),b(R,B)},T=R=>{s&&s!==R.target&&!s.contains(R.target)&&(l=!0),e.a11y.clicked=!0},V=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},k=R=>{c=new Date().getTime()},j=R=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const B=R.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;s=B;const O=e.slides.indexOf(B)===e.activeIndex,I=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);O||I||R.sourceCapabilities&&R.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),l=!1)}))},E=()=>{const R=e.params.a11y;R.itemRoleDescriptionMessage&&p(e.slides,R.itemRoleDescriptionMessage),R.slideRole&&f(e.slides,R.slideRole);const B=e.slides.length;R.slideLabelMessage&&e.slides.forEach((O,I)=>{const N=e.params.loop?parseInt(O.getAttribute("data-swiper-slide-index"),10):I,X=R.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,B);m(O,X)})},y=()=>{const R=e.params.a11y;e.el.append(a);const B=e.el;R.containerRoleDescriptionMessage&&p(B,R.containerRoleDescriptionMessage),R.containerMessage&&m(B,R.containerMessage);const O=e.wrapperEl,I=R.id||O.getAttribute("id")||`swiper-wrapper-${u(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(O,I),v(O,N),E();let{nextEl:X,prevEl:U}=e.navigation?e.navigation:{};X=Ye(X),U=Ye(U),X&&X.forEach(Q=>x(Q,I,R.nextSlideMessage)),U&&U.forEach(Q=>x(Q,I,R.prevSlideMessage)),D()&&Ye(e.pagination.el).forEach(me=>{me.addEventListener("keydown",w)}),Nt().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",V,!0)};function F(){a&&a.remove();let{nextEl:R,prevEl:B}=e.navigation?e.navigation:{};R=Ye(R),B=Ye(B),R&&R.forEach(I=>I.removeEventListener("keydown",w)),B&&B.forEach(I=>I.removeEventListener("keydown",w)),D()&&Ye(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),Nt().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",V,!0))}o("beforeInit",()=>{a=vi("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.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&&F()})}function wi(t){let{swiper:e,extendParams:i,on:o,emit:a,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 s,c,r=l&&l.autoplay?l.autoplay.delay:3e3,u=l&&l.autoplay?l.autoplay.delay:3e3,d,A=new Date().getTime(),f,p,b,m,S,v,g;function h(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",h),!(g||B.detail&&B.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=d,f=!1);const B=e.autoplay.paused?d:A+u-new Date().getTime();e.autoplay.timeLeft=B,a("autoplayTimeLeft",B,B/r),c=requestAnimationFrame(()=>{w()})},C=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(I=>I.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},P=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),w();let O=typeof B>"u"?e.params.autoplay.delay:B;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const I=C();!Number.isNaN(I)&&I>0&&typeof B>"u"&&(O=I,r=I,u=I),d=O;const N=e.params.speed,X=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),a("autoplay")),e.params.cssMode&&(A=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return O>0?(clearTimeout(s),s=setTimeout(()=>{X()},O)):requestAnimationFrame(()=>{X()}),O},D=()=>{A=new Date().getTime(),e.autoplay.running=!0,P(),a("autoplayStart")},M=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},x=(B,O)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),B||(v=!0);const I=()=>{a("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,a("autoplayResume"))},V=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Nt();B.visibilityState==="hidden"&&(v=!0,x(!0)),B.visibilityState==="visible"&&T()},k=B=>{B.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=B=>{B.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))},F=()=>{Nt().addEventListener("visibilitychange",V)},R=()=>{Nt().removeEventListener("visibilitychange",V)};o("init",()=>{e.params.autoplay.enabled&&(E(),F(),D())}),o("destroy",()=>{y(),R(),e.autoplay.running&&M()}),o("_freeModeStaticRelease",()=>{(b||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?M():x(!0,!0)}),o("beforeTransitionStart",(B,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(s),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:D,stop:M,pause:x,resume:T})}function Ua(t){let{swiper:e,extendParams:i,emit:o,once:a}=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 r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Wt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:A,rtlTranslate:f,snapGrid:p,touchEventsData:b}=e,S=Wt()-b.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-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,V=M.time-x.time;e.velocity=T/V,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(V>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 D;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&&(D=!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&&(D=!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(D&&a("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,an(A,()=>{!e||e.destroyed||!b.allowMomentumBounce||(o("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(C),an(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,an(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:s,onTouchEnd:c}})}const Xa=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const a=n.useRef(),{popupDetailData:l}=ze();return n.useEffect(()=>{var s,c;o&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=l?.multiCheckIndex)!==null&&c!==void 0?c:0))},[l,o]),n.createElement(Zt,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Ua,Ha,Hi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Si=n.memo(Xa);const qa=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:a,className:l,loading:s,alt:c="image"}=t,[r,u]=n.useState(i),d=n.useRef(null),[A,f]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&u(p)}})),n.useEffect(()=>{i&&u(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!A&&d.current&&(d.current.src="",d.current.src=i)};return xt.on(bt.PAGE_DID_SHOW,p),()=>{xt.off(bt.PAGE_DID_SHOW,p)}},[i,A]),n.createElement(n.Fragment,null,!A&&!r&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:r}),n.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{f(!0),o?.(p.target)},alt:c})):n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{f(!0),o?.(p.target)},alt:c}))});var Pt=n.memo(qa);const Ya=({products:t,data:e,defImg:i,style:o,onCLick:a,popupDetailData:l,check:s})=>{var c;const{productView:r}=Lt(),{popupCurTimeRef:u}=ze(),d=(A,f)=>{if(s===f)return;const p=t?.[s];r(l,p,p?.bindCta,u.current,l?.index),a?.(f)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(Si,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(c=l?t:[0,1,2,3])===null||c===void 0?void 0:c.map((A,f)=>{var p,b,m;return n.createElement(n.Fragment,null,A?.bindCta?n.createElement(Dt,{className:Re.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{d(A,f)},key:f},n.createElement(Pt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===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(Ya);function bo(){const[t,e]=n.useState(0),[i,o]=n.useState(0),a=()=>{if(typeof window>"u")return 0;let s=window.innerHeight;return window.visualViewport&&(s=window.visualViewport.height),(s<=0||s>window.screen.height)&&(s=window.innerHeight),s<=0&&(s=document.documentElement.clientHeight),s},l=n.useCallback(()=>{var s;const c=a(),r=(s=window.screen)===null||s===void 0?void 0:s.height,u=navigator.userAgent,d=/Instagram/i.test(u),A=/FBAV|FBAN|FBSN/i.test(u);if(!r||c<=0||!d&&!A){e(c);return}const f=c/r,p=.9,b=r>=900?r*.8:r*.79,m=f>=p,S=m?Math.round(b):c,v=r-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
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var mt=require("lodash"),Ro=require("uuid"),Do=require("pako"),n=require("react"),On=require("qs"),Vo=require("eventemitter3"),Re=require("@emotion/css"),Ln=require("react-dom");function Bo(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=Bo(Ln);function it(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 a=0,o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function rt(t,e,i,o){function a(l){return l instanceof i?l:new i(function(s){s(l)})}return new(i||(i=Promise))(function(l,s){function c(d){try{u(o.next(d))}catch(A){s(A)}}function r(d){try{u(o.throw(d))}catch(A){s(A)}}function u(d){d.done?l(d.value):a(d.value).then(c,r)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Fo=/:\w+/g;var jn=(t,e)=>rt(void 0,void 0,void 0,function*(){const i={},o={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:c,urlParams:r,name:u,queryString:d,headers:A,body:f}=e[a];let p=c;r&&Object.entries(r).forEach(([b,m])=>{p=p.replace(Fo,S=>S===b?m:S)}),d&&(p+=d),o[l]=u;try{const b=yield fetch(p,{method:s,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",Wo=(t,e)=>rt(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(Nn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(Nn,JSON.stringify(c))}}return c});function ji(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)o[a]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(l=0|Math.random()*16,o[a]=i[a===19?l&3|8:l])}return o.join("")}const zo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*o)),a+=1;return e},Ho=()=>{const t=Ro.v4();return t?.replaceAll?t.replaceAll("-",""):zo(32)},Oe=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!o&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${o??"inherit"}`,u=`font-family:${a??"inherit"}`,d=f=>{const p=f.search(s),b=f.search(c);return p!==-1&&b!==-1&&p<b&&(i+=`<span style="${r}">${f.substring(p,b)}</span>`,l=f.substring(b,f?.length)),p!==-1&&b!==-1&&p>b&&(i+=`<span style="${u}">${f.substring(b,p)}</span>`,l=f.substring(p,f?.length)),p===-1?(i+=`<span style="${u}">${f.substring(b,f?.length)}</span>`,l="",!1):b===-1?(i+=`<span style="${r}">${f.substring(p,f?.length)}</span>`,l="",!1):!0};let A=!0;for(;A;)A=d(l);return i};function Ji(t){const i=document.cookie.split(";");let o=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(o=s)}),o??""}function Qi(){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 ai(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const l=t[a],s=t.substring(a+1,t.length);l==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let o=0;return e?.map(a=>{i?.push(t.substring(o,a)),o=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function Uo(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",a=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${a}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Rn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),a=Do.inflate(o,{to:"string"});return JSON.parse(a)}let $i=null;const Xo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class qo{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,$i)return $i;$i=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Xo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let It=null;const Yo={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{It||(It=new qo),o&&It.setApiUrl(o),It.setAppId(t),It.setTenantId(e),It.setEnv(i)},getDetail:t=>{if(!It)return;const e=It.getTenantId(),i=It.getAppId(),o=It.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var l,s;const c=yield a.json(),r=Rn((l=c?.data)===null||l===void 0?void 0:l.data);if(r){const{$store:u}=yield jn(o,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>rt(void 0,void 0,void 0,function*(){if(!It)return;const e=It.getTenantId(),i=It.getAppId(),o=It.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var l;const s=yield a.json();return s.success?(l=s?.data)===null||l===void 0?void 0:l.map(r=>Object.assign(Object.assign({},r),{data:Rn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>rt(void 0,void 0,void 0,function*(){if(!It)return;const e=yield Wo(It,t),i=ji(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");mt.isEmpty(o)&&(o=ji(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const a=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 a?.data||null})};function ti(){return n.useContext(Zn)}function Go(){return n.useContext(_n)}const en="feRealSessionIdKey",Dn=()=>{const t=Ho();return`${Date.now()}${t}`},_o=()=>{let t=Zo();return t||(t=Dn(),window.localStorage.setItem(en,t)),t},tn=()=>{const t=Dn();window.localStorage.setItem(en,t)},Zo=()=>window.localStorage.getItem(en),Vn="SXP_FAKE_USER_ID",Bn="FAKE_USER_STATE",Fn="AGREE_POLICY",Wn="SLIDE_SKIP_STATE",zn="CCONTSENT_STATE",Hn="USER_CONSENT_RESULT",Ko=()=>{let t=window.localStorage.getItem(Vn);return mt.isEmpty(t)&&(t=ji(36,62),window.localStorage.setItem(Vn,t)),t},Jo=()=>{const t=window.localStorage.getItem(Bn);return mt.isEmpty(t)&&window.localStorage.setItem(Bn,"true"),mt.isEmpty(t)},Qo=()=>{const t=window.localStorage.getItem(Wn);return mt.isEmpty(t)},$o=()=>{window.localStorage.setItem(Wn,"true")},el=()=>{const t=window.localStorage.getItem(zn);return mt.isEmpty(t)&&window.localStorage.setItem(zn,"true"),mt.isEmpty(t)},Un=()=>window.localStorage.getItem(Hn)==="true",Xn=()=>{window.localStorage.setItem(Hn,"true")};function kt(t,e){const{appDomain:i}=ze();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const xt=new Vo;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:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:c}=ze(),r=n.useMemo(()=>{var A;const f=location.search.slice(1),p={};(A=ai(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},[]),u=A=>{var f;return(f=r[A])!==null&&f!==void 0?f:null};n.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({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}}),s?.(!0),window.localStorage.setItem(Fn,"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:a?`https://${a}`:void 0},l??"More information"))))};var il=n.memo(tl);const qn=n.createContext({rtcList:[],tagList:[]});var nn;(function(t){t[t.BFF=5]="BFF"})(nn||(nn={}));const Ni="FOR U",nl=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,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:D})=>{var M,x,T,V,k;const[j,E]=n.useState([]),[y,F]=n.useState([]),[R,B]=n.useState(!0),[O,I]=n.useState({rtc:"",requestId:""}),N=n.useRef(null),X=n.useRef(!1),[U,q]=n.useState(()=>!!window.localStorage.getItem(Fn)),[Q,me]=n.useState(),[re,K]=n.useState(),[Te,Pe]=n.useState(A),[Be,ue]=n.useState([]),[de,_e]=n.useState(0),[He,Ue]=n.useState(!1),[Ge,nt]=n.useState(null),Ze=n.useRef(),ke=n.useRef(),Qe=n.useRef(),[Tt,De]=n.useState(Ni),Fe=n.useRef(-1),We=n.useRef(null),[Z,ee]=n.useState(!1),[_,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(),[$,W]=n.useState(!1),[Ne,$e]=n.useState(),[Ke,ot]=n.useState(),[Je,Ve]=n.useState([]),[et,ct]=n.useState(),[At,zt]=n.useState(),Mt=n.useMemo(()=>we??h,[we,h]),yt=n.useRef(!1);n.useEffect(()=>{var z,H;le((H=(z=h?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||H===void 0?void 0:H.globalConfig)},[h]);const wt=n.useMemo(()=>{var z,H,te,he;return(((he=(te=(H=(z=_?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!U&&!S||m)&&$},[U,_,m,S,$]),qt=n.useCallback(z=>{D?.(z),ot(z)},[]),gt=n.useCallback(z=>{var H;const te=z?.recList;return(H=te?.map(ce=>{var ve,Ae,Se,xe,Me,L;if(!((ve=ce?.video)===null||ve===void 0)&&ve.bindProducts&&((Se=(Ae=ce?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0){const Y=(L=(Me=(xe=ce?.video)===null||xe===void 0?void 0:xe.bindProducts)===null||Me===void 0?void 0:Me.filter(G=>!!G?.bindCta))!==null&&L!==void 0?L:[];return Object.assign(Object.assign({},ce),{video:Object.assign(Object.assign({},ce?.video),{bindProducts:Y})})}return ce}))!==null&&H!==void 0?H:[]},[]);n.useEffect(()=>{let z;return Je.length>0&&(z=setInterval(()=>{const te=new Date,he=15*1e3;Ve(ce=>ce.filter(ve=>te-ve.time<=he))},1e3)),()=>{clearInterval(z)}},[Je]),n.useEffect(()=>{const z=H=>{Ze.current=H};return xt.on(bt.CHANGE_THEME_TAG,z),()=>{xt.off(bt.CHANGE_THEME_TAG,z)}},[]),n.useEffect(()=>{Pe(A)},[A]);const Xe=n.useMemo(()=>e?.find(z=>z.type===nn.BFF),[e]),Ee=n.useMemo(()=>{var z;return((z=Xe?.headers)===null||z===void 0?void 0:z["x-app-id"])+Ko()},[Xe]),fe=()=>{var z,H;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,Y]=Me.split(":");if(L==="4")return Y==="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 ce=decodeURIComponent((z=he("OptanonConsent"))!==null&&z!==void 0?z:"");return!!(window?.OnetrustActiveGroups&&((H=window?.OnetrustActiveGroups)===null||H===void 0?void 0:H.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(ce))},be=n.useCallback((z,H,te=!0)=>{var he;if(!Xe)return;const ce=Xe.url;if(H?.query){const Ae=On.stringify(H.query);z=`${z}?${Ae}`}const ve=location.search.slice(1);return(he=ai(ve))===null||he===void 0||he.forEach(Ae=>{Ae.split("=")[0],Ae.split("=")[1]}),window.fetch(`${ce}/api/${z}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Ee},Xe.headers),method:H.method,body:H.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Xe.headers),{"x-user-id":Ee}))))}):JSON.stringify(H.body)},H.type==="beacon"&&{keepalive:!0})).then(Ae=>Ae.json()).catch(Ae=>Promise.reject(Ae))},[Xe,Ee]),vt=n.useCallback(z=>{var H;if(fe())return Promise.resolve();const te={eventName:z?.eventName,eventSource:z?.eventSource};return be?.(`v1/data/collect/${(H=Xe?.headers)===null||H===void 0?void 0:H["x-app-id"]}/${z?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[be,Xe]);n.useEffect(()=>{const z=window.Image;window.Image=function(){const H=new z,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(H,"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 ce=new URL(he),ve=Object.fromEntries(ce.searchParams.entries());vt({eventName:ve?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),H}},[vt]),n.useEffect(()=>{const z=navigator;if(!z.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const H=z.sendBeacon.bind(z);return z.sendBeacon=function(te,he){const ce=te instanceof URL?te.href:te.toString();if(fe()&&(ce.includes("https://tr.snapchat.com/p")||ce.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ve=H(te,he);function Ae(Se){return rt(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(()=>rt(this,void 0,void 0,function*(){var Se,xe;try{const Me=yield Ae(he);ce.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 Y,G;!((Y=L?.t)===null||Y===void 0)&&Y.ev&&vt({eventName:(G=L?.t)===null||G===void 0?void 0:G.ev,eventSource:"Snapchat Pixel"})}):ce.includes("https://analytics.tiktok.com/api/v2/pixel")&&Me?.event&&vt({eventName:Me.event,eventSource:"TikTok Pixel"})}catch(Me){console.error("\u76D1\u63A7\u5931\u8D25:",Me)}})),ve},()=>{z.sendBeacon=H}},[vt]),n.useEffect(()=>{const z=window.fetch;window.fetch=function(H,te){var he=arguments;return rt(this,void 0,void 0,function*(){var ce;let ve;try{ve=typeof H=="string"?H:H instanceof URL?H.href:H.url}catch(Ae){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Ae),z.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=z.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=(ce=he[1])===null||ce===void 0?void 0:ce.body;if(xe?.en)vt({eventName:xe?.en,eventSource:"Google Analytics"});else if(Me){const Y=function(G){if(typeof G!="string")return[];const J=[],se=/en=([^&\r\n]*)/g;let ie;for(;(ie=se.exec(G))!==null;)J.push(decodeURIComponent(ie[1]));return J}(Me);Y?.forEach(G=>{vt({eventName:G,eventSource:"Google Analytics"})})}}return Ae}catch(Ae){throw console.error(Ae),Ae}})}},[vt]),n.useEffect(()=>{const z=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,z.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 ce=JSON.parse(te);if(ce&&Array.isArray(ce.data)){const ve=ce.data[((he=ce.data)===null||he===void 0?void 0:he.length)-1];ve&&ve.e&&vt({eventName:ve.e,eventSource:"Northbeam Pixel"})}}catch(ce){console.error("Failed to parse Northbeam event from XHR",ce)}H.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=z,XMLHttpRequest.prototype.send=H}},[vt]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const Ht=n.useCallback((z,H)=>{if(!Xe)return;const te=Xe.url;if(H?.query){const he=On.stringify(H.query);z=`${z}?${he}`}return window.fetch(`${te}/admin/${z}`,{headers:Object.assign({"Content-Type":"application/json"},Xe.headers),method:H.method,body:JSON.stringify(H.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Xe]),Bt=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce,ve,Ae,Se,xe,Me,L,Y,G,J,se;if(z=Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:a,defaultSize:(te=z?.defaultSize)!==null&&te!==void 0?te:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},At&&{chatlabsId:At}),C&&{type:"story"}),Ke)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(Ke)});else if(i){const ne=(ve=(ce=(he=ai(i))===null||he===void 0?void 0:he.filter(ae=>{var pe,je;const ge=ae.split("=")[0];return(je=(pe=v?.channels)!==null&&pe!==void 0?pe:[])===null||je===void 0?void 0:je.includes(ge)}))===null||ce===void 0?void 0:ce.join("&"))!==null&&ve!==void 0?ve:"";ne&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(ne)}))}if(S){let ne=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!z?.channel||X.current)return;X.current=!0;let ae=[],pe=null;const je=ge=>rt(void 0,void 0,void 0,function*(){var Ie,dt,lt,at,st,tt;if(ge.pageNum=ne,pe=yield Ht?.("recommend/direct_page",{method:"POST",body:ge}),!pe?.success)return;B(!1),ae=ae.concat((at=(lt=(dt=(Ie=pe?.data)===null||Ie===void 0?void 0:Ie.recList)===null||dt===void 0?void 0:dt.filter)===null||lt===void 0?void 0:lt.call(dt,qe=>qe?.product||qe?.video))!==null&&at!==void 0?at:[]),j?.length===0&&(E(gt(Object.assign(Object.assign({},pe?.data),{recList:ae}))),ue(gt(Object.assign(Object.assign({},pe?.data),{recList:ae})))),((tt=(st=pe?.data)===null||st===void 0?void 0:st.recList)===null||tt===void 0?void 0:tt.some(qe=>qe?.product||qe?.video))&&(ne=ne+1,yield je(ge))});return yield je(z),!z?.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:ae})}_?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(xe=z?.pageNum)!==null&&xe!==void 0?xe:1}));const ie=yield be?.("v1/recommend/list",{method:"POST",body:z});if(!ie?.success)return;z?.hashTag||I({rtc:ie.data.rtc,requestId:ie.data.requestId}),_?.enablePreview&&!S&&(!((L=(Me=ie?.data)===null||Me===void 0?void 0:Me.recList)===null||L===void 0)&&L.some(ae=>ae?.product||ae?.video)||ee(!0));let oe=[];return oe=oe.concat((se=(J=(G=(Y=ie?.data)===null||Y===void 0?void 0:Y.recList)===null||G===void 0?void 0:G.filter)===null||J===void 0?void 0:J.call(G,ne=>ne?.product||ne?.video))!==null&&se!==void 0?se:[]),Object.assign(Object.assign({},ie.data),{recList:oe})}),[be,i,a,l,g,Ke,At,Ht]),Yi=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce;if(j.length<=0)return;const ve=j?.[j?.length-1],Ae=yield Bt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:re?.hashTag},((H=ve?.product)===null||H===void 0?void 0:H.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:[(ce=ve?.video)===null||ce===void 0?void 0:ce.itemId]}),{themeTag:Ze.current}),_?.enablePreview&&!S&&{pageNum:z}));return E(j.concat(gt(Ae))),ue(Be.concat(gt(Ae))),Ae}),[Bt,j,re,Be]),ri=n.useCallback((z,H)=>{var te,he,ce,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(!((ce=xe?.session)===null||ce===void 0)&&ce.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)&&(H?.("sessionTimeOut"),tn(),ke.current=new Date,Se=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&tn();return Se},[h]),ht=n.useCallback(({userInfo:z,eventInfo:H,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var ce,ve;if(!o||_?.enablePreview||he&&fe())return;z||(z={});const Ae=_o(),Se={},xe=location.search.slice(1);(ce=ai(xe))===null||ce===void 0||ce.forEach(J=>{const se=J.split("=")[0],ie=J.split("=")[1];Se[se]=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:et}),Ne&&te&&{layoutVariantId:Ne}),H),H?.position&&Ke&&{position:Number(H?.position)+1+""}),Me&&{clSource:Me}),Y=Object.entries(z).map(([J,se])=>({name:J,value:se})),G=Object.entries(L).map(([J,se])=>se&&{name:J,value:se}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),be?.(`v2/cld/${(ve=Xe?.headers)===null||ve===void 0?void 0:ve["x-app-id"]}/${H?.eventSubject}${Me?`/${decodeURIComponent(Me)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:G},type:"beacon"})},[be,O,o,_?.enablePreview,Ne,_,et,Xe]),oi=n.useCallback((z,H)=>{var te,he,ce;const ve=mt.cloneDeep(z),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:(ce=(he=window?.navigator)===null||he===void 0?void 0:he.userAgent)!==null&&ce!==void 0?ce:"",fbc:Se?`fb.2.${new Date().getTime()}.${Se}`:"",fbp:Ji("_fbp")?`${Ji("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},Me=/\{\{(.*?)\}\}/g,L=Y=>{if(Y){if(Y instanceof Array)Y?.map(G=>L(G));else for(const G in Y)if(Object.prototype.hasOwnProperty.call(Y,G)){const J=Y?.[G];if(typeof J=="object")L(J);else if(typeof J=="string"){const se=J?.match(Me);se&&se.forEach(ie=>{var oe;const ne=ie.substring(2,ie.length-2);try{let ae=new Function("fix_par","product",`return ${ne}`)(xe,H);ae?(ne?.indexOf("currency")!==-1&&ae?.indexOf("-")!==-1&&typeof ae=="string"&&(ae=(oe=ae?.split("-"))===null||oe===void 0?void 0:oe[0]),Y[G]=ae):delete Y[G]}catch(ae){delete Y[G],console.error("An error occurred:",ae?.message)}})}}}};return L(ve),ve},[Ee]),Pi=n.useCallback(({eventName:z,product:H})=>{var te,he,ce,ve,Ae,Se,xe,Me,L,Y;if(!o||_?.enablePreview||fe())return;let G=!1;const J=(te=_?.pixel)===null||te===void 0?void 0:te[z];if(J?.event_name&&typeof window?.fbq=="function"){let oe=function(ne,ae,pe){const je=new RegExp("([?&])"+ae+"=.*?(&|$)","i"),ge=ne.indexOf("?")!==-1?"&":"?";return ne.match(je)?ne.replace(je,"$1"+ae+"="+pe+"$2"):ne+ge+ae+"="+pe};if(z==="PageView"&&J?.event_name==="PageView")if(!yt.current)yt.current=!0;else{const ne=window.location.href,ae=oe(ne,"timestamp",Date.now());history.pushState({path:ae},"",ae),G=!0}else window?.fbq("track",J?.event_name,oi(J,H))}if(!G){z==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(he=_?.tiktokPixel)===null||he===void 0?void 0:he[z];oe?.event_name&&typeof window?.ttq=="object"&&typeof((ce=window?.ttq)===null||ce===void 0?void 0:ce.track)=="function"&&((ve=window?.ttq)===null||ve===void 0||ve.track(oe?.event_name,oi(oe,H)))}const se=(Ae=_?.snapchatPixel)===null||Ae===void 0?void 0:Ae[z];se?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",se?.event_name,oi(se,H)),z==="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=_?.converApi)===null||Me===void 0?void 0:Me[z];if(f&&ie){const oe=oi(ie,H),ne={},ae=location.search.slice(1);(L=ai(ae))===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/${(Y=Xe?.headers)===null||Y===void 0?void 0:Y["x-app-id"]}/${z}${pe?`/${decodeURIComponent(pe)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[be,o,f,_,Xe,oi]),$t=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/recommend/like",{method:"POST",body:z});return H?.success}),[be]),di=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/recommend/unlike",{method:"POST",body:z});return H?.success}),[be]),ei=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/customform",{method:"POST",body:z});return H?.success}),[be]),Ft=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce,ve,Ae,Se,xe;const Me=!!(!((he=(te=(H=z?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Me))try{const L=(Ae=(ve=(ce=ai(i))===null||ce===void 0?void 0:ce.filter(G=>{var J,se;const ie=G.split("=")[0];return(se=(J=v?.channels)!==null&&J!==void 0?J:[])===null||se===void 0?void 0:se.includes(ie)}))===null||ve===void 0?void 0:ve.join("&"))!==null&&Ae!==void 0?Ae:"",Y=yield be?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(L)}});F((xe=(Se=Y?.data)===null||Se===void 0?void 0:Se.tags)!==null&&xe!==void 0?xe:[])}catch(L){console.log("e",L)}}),[be,i]),Ut=n.useCallback((z,H,te,he)=>{var ce,ve,Ae,Se,xe,Me,L,Y,G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St,Le,Ce,jt,Ot,ci,ut,li,_i,Zi;const _t=te?.bindCta,No=((ce=H?.video)===null||ce===void 0?void 0:ce.bindProduct)||((ve=H?.video)===null||ve===void 0?void 0:ve.bindProducts)&&((Se=(Ae=H?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0;let Mi="",Ki=null;He?Mi="hashTagPage":!((xe=H?.video)===null||xe===void 0)&&xe.url?(Mi="videoPage",Ki="video"):!((L=(Me=H?.video)===null||Me===void 0?void 0:Me.imgUrls)===null||L===void 0)&&L.length&&(Mi="imagePage",Ki="image");const Pn=(ne=(ie=(Y=te?.tags)!==null&&Y!==void 0?Y:(se=(J=(G=H?.video)===null||G===void 0?void 0:G.bindProducts)===null||J===void 0?void 0:J[0])===null||se===void 0?void 0:se.tags)!==null&&ie!==void 0?ie:(oe=H?.video)===null||oe===void 0?void 0:oe.tags)!==null&&ne!==void 0?ne:(ae=H?.product)===null||ae===void 0?void 0:ae.tags;ht?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(pe=_t?.itemId)!==null&&pe!==void 0?pe:"",ctaName:(je=_t?.title)!==null&&je!==void 0?je:"",contentTags:Pn?JSON.stringify(Pn):"",position:he+"",contentId:(Ie=(ge=H?.video)===null||ge===void 0?void 0:ge.itemId)!==null&&Ie!==void 0?Ie:"",productId:No?te?.itemId:"",traceInfo:(_i=(ci=(St=(st=(dt=_t?.traceInfo)!==null&&dt!==void 0?dt:(at=(lt=H?.video)===null||lt===void 0?void 0:lt.bindCta)===null||at===void 0?void 0:at.traceInfo)!==null&&st!==void 0?st:(qe=(pt=(tt=H?.video)===null||tt===void 0?void 0:tt.bindProduct)===null||pt===void 0?void 0:pt.bindCta)===null||qe===void 0?void 0:qe.traceInfo)!==null&&St!==void 0?St:(Ot=(jt=(Ce=(Le=H?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Ce===void 0?void 0:Ce[0])===null||jt===void 0?void 0:jt.bindCta)===null||Ot===void 0?void 0:Ot.traceInfo)!==null&&ci!==void 0?ci:(li=(ut=H?.product)===null||ut===void 0?void 0:ut.bindCta)===null||li===void 0?void 0:li.traceInfo)!==null&&_i!==void 0?_i:"",fromKName:Mi,fromKPage:(Zi=location?.href)!==null&&Zi!==void 0?Zi:"",contentFormat:Ki})})},[ht,He]),Et=n.useCallback(()=>{var z,H,te;const he=location.search.slice(1),ce={};(z=ai(he.replace(/\+/g,"%2B")))===null||z===void 0||z.map(Se=>{const xe=Se.split("=")[0],Me=Se.split("=")[1];ce[xe]=Me});for(const Se in ce)ce[Se]=ce[Se].replace(/%2B/g,"+");const ve=Se=>{var xe;return(xe=ce[Se])!==null&&xe!==void 0?xe:""},Ae=new Date;ke.current=Ae,ht?.({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=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&te!==void 0?te:""},reportLayId:!1})},[ht]),Gi=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){var z,H;const te=yield be?.("v1/account",{method:"GET"});return zt((z=te?.data)===null||z===void 0?void 0:z.chatLabsId),((H=te?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[be]),Oi=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/account/consent",{method:"POST",body:{consentResult:z}});return H?.success}),[be]);n.useEffect(()=>{wt||Et()},[wt]),n.useEffect(()=>{if(wt||s)return;B(!0);let z,H;Bt().then(te=>{var he,ce,ve,Ae,Se,xe,Me,L,Y,G,J;if(te){const se=gt(te);let ie,oe;if(te?.layoutVariantId){z=te?.layoutVariantId,$e(te?.layoutVariantId);const ne=(ce=(he=te?.layoutVariantId)===null||he===void 0?void 0:he.split("-"))===null||ce===void 0?void 0:ce[1];ne&&(ie=w?.find(ae=>ae?.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),!((Y=(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||Y===void 0)&&Y.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(Ke||(oe?.playbook==="organic menu"||!oe&&_?.playbook==="organic menu"?(ct("organicMenu"),se.unshift("organic menu"),H="organicMenu"):(ct("paidMedia"),H="paidMedia")),E(se),ue(se),Ft(ie??Mt),Ke){const ne=se?.[0],ae=((G=ne?.video)===null||G===void 0?void 0:G.traceInfo)||((J=ne?.product)===null||J===void 0?void 0:J.traceInfo)||"";ht?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ae,branchfeed:Ke},z&&{layoutVariantId:z})}),ht?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ae,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-Qe?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{ht({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),H&&{playbookType:H})}),B(!1)})},[wt,Ke]),n.useEffect(()=>{s&&(B(!0),Ft(h),Bt().then(z=>{if(z){const H=gt(z);_?.playbook==="organic menu"&&!Ke&&H.unshift("organic menu"),E(H),ue(H)}}).finally(()=>{B(!1)}))},[Bt,Ft,Ke]);const Li=kt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return n.createElement(qn.Provider,{value:{rtcList:j,setRtcList:E,mutateLike:$t,mutateUnlike:di,submitForm:ei,popupDetailData:Q,loadVideos:Yi,setPopupDetailData:me,getRecommendVideos:Bt,bffEventReport:ht,isPreview:s,loading:R,sxpParameter:c,waterFallData:re,setWaterFallData:K,ctaEvent:Ut,swiperRef:N,openHashtag:Te,setOpenHashtag:Pe,cacheRtcList:Be,setCacheRtcList:ue,cacheActiveIndex:de,setCacheActiveIndex:_e,isFromHashtag:He,setIsFromHashtag:Ue,appDomain:r,hashTagSize:u,loadingImage:d??Li,isOpenHashTag:A,tagList:y,setLoading:B,videoRef:Ge,setVideoRef:nt,bffFbReport:Pi,isAgreePolicy:U,setIsAgreePolicy:q,curTime:ke,h5EnterLink:Et,themeTag:Ze,isShowConsent:wt,selectTag:Tt,setSelectTag:De,globalConfig:_,popupCurTimeRef:We,checkCommodityIndexRef:Fe,isEditor:S,isNoMoreData:Z,updateChannel:qt,channel:Ke,eventTimeList:Je,setEventTimeList:Ve,multiPostTimeRef:Qe,refreshFeSession:ri,getAccount:Gi,accountSonsent:Oi,isDiyH5:C,pixelPvStatusRef:yt}},wt?n.createElement(il,Object.assign({},(k=(V=(T=_?.consent)===null||T===void 0?void 0:T[0])===null||V===void 0?void 0:V.item)===null||k===void 0?void 0:k.props)):t({rtcList:j,mutateLike:$t,mutateUnlike:di,submitForm:ei,tagList:y,pageData:Mt}))};var Yn=n.memo(nl);function ze(){return n.useContext(qn)}var Gn;(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"})(Gn||(Gn={}));const _n=n.createContext({$store:{},options:[],configs:[]}),ol=({children:t,isSsr:e,enable:i})=>{const[o,a]=n.useState([]),{schema:l}=ti(),[s,c]=n.useState(l.__STORE__||{}),[r,u]=n.useState([]);n.useEffect(()=>{var f;e||mt.isEqual(r,l?.dataSource)||u((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const d=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:p}=yield jn("",r);c(f),A(f,p)}),[r]),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)})}),a(b)};return n.useEffect(()=>{e||d()},[d,e,l]),i?n.createElement(_n.Provider,{value:{$store:l.__STORE__||s,options:o,configs:r}},t):t};var ll=n.memo(ol);const Ri={id:ji(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},on={id:"",duration:0,name:"none"},Zn=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Ri],redoStack:[],popup:on,setPopup:()=>{}}),Kn=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:a=!0,utmVal:l},s)=>{const[c,r]=n.useState(null),[u,d]=n.useState(o||{pointData:[Ri],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[A,f]=n.useState([Ri]),[p,b]=n.useState([[Ri]]),[m,S]=n.useState([]),[v,g]=n.useState(on);typeof window<"u"&&(window.sxpPopup=(D,M)=>{g(Object.assign(Object.assign(Object.assign({},on),{id:D}),M))}),typeof window<"u"&&(window.getJointUtmLink=D=>($o(),D?.indexOf("?")!==-1?D+(l?"&"+l:""):D+(l?"?"+l:""))),n.useEffect(()=>{b([u.pointData]),S([])},[u.type]);const h=n.useCallback(D=>{const M=mt.cloneDeep(u);M&&(M.dataSource=D,d?.(M))},[u]),[w,C]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(D){D&&(b([D.pointData]),d(D))},exportSchema(){return mt.cloneDeep(u)},getPageInfoData(){return w},initPageInfoData(D){D&&C(D)}}));const P=n.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return n.createElement(Zn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:h,prePiontData:A,setPrePiontData:f,pageInfoData:w,setPageInfoData:D=>C(Object.assign(Object.assign({},w),D)),undoStack:p,redoStack:m,setRedoStack:S,setUndoStack:b,getCurPageConf:P,popup:v,setPopup:g}},n.createElement(ll,{isSsr:i,enable:a},t))});var al=Object.freeze({__proto__:null,EditorCore:Kn}),sl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],rl=[{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:a}=ze(),l=n.useCallback((r,u,d,A,f,p)=>{var b,m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U,q,Q,me,re,K,Te,Pe,Be,ue,de,_e,He;if(o?.findIndex(ke=>ke.target===r?.target)!==-1)return;r&&a?.(ke=>[...ke,{target:r?.target,time:new Date}]);let Ge="";e&&(!((m=(b=u?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0)&&m.length||!((S=u?.video)===null||S===void 0)&&S.bindProduct)?Ge="pdpPage":i?Ge="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?Ge="videoPage":!((g=u?.video)===null||g===void 0)&&g.imgUrls&&(!((w=(h=u?.video)===null||h===void 0?void 0:h.imgUrls)===null||w===void 0)&&w.length)?Ge="imagePage":u?.product&&(Ge="productPage");const nt=(V=(x=(C=d?.tags)!==null&&C!==void 0?C:(M=(D=(P=u?.video)===null||P===void 0?void 0:P.bindProducts)===null||D===void 0?void 0:D[0])===null||M===void 0?void 0:M.tags)!==null&&x!==void 0?x:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&V!==void 0?V:(k=u?.product)===null||k===void 0?void 0:k.tags;let Ze=null;!((j=u?.video)===null||j===void 0)&&j.url?Ze="video":!((E=u?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(y=u?.video)===null||y===void 0?void 0:y.imgUrls)===null||F===void 0)&&F.length)&&(Ze="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=d?.itemId)!==null&&R!==void 0?R:"",productName:(B=d?.title)!==null&&B!==void 0?B:"",price:d?.price?d?.price+"":"0",productCollection:(O=d?.collection)!==null&&O!==void 0?O:"",fromKName:Ge,fromKPage:location?.href,contentTags:nt?JSON.stringify(nt):"",position:f+"",contentId:(N=(I=u?.video)===null||I===void 0?void 0:I.itemId)!==null&&N!==void 0?N:"",ctatId:(X=A?.itemId)!==null&&X!==void 0?X:"",traceInfo:(He=(ue=(Pe=(me=(U=p??d?.traceInfo)!==null&&U!==void 0?U:(Q=(q=u?.video)===null||q===void 0?void 0:q.bindProduct)===null||Q===void 0?void 0:Q.traceInfo)!==null&&me!==void 0?me:(Te=(K=(re=u?.video)===null||re===void 0?void 0:re.bindProducts)===null||K===void 0?void 0:K[0])===null||Te===void 0?void 0:Te.traceInfo)!==null&&Pe!==void 0?Pe:(Be=u?.product)===null||Be===void 0?void 0:Be.traceInfo)!==null&&ue!==void 0?ue:(_e=(de=u?.video)===null||de===void 0?void 0:de.bindCta)===null||_e===void 0?void 0:_e.traceInfo)!==null&&He!==void 0?He:""},Ze&&{contentFormat:Ze})})},[t,e,i,o]),s=n.useCallback((r,u,d,A,f)=>{var p,b,m,S,v,g,h,w,C,P,D,M,x,T;let V="";e&&(!((b=(p=r?.video)===null||p===void 0?void 0:p.bindProducts)===null||b===void 0)&&b.length||!((m=r?.video)===null||m===void 0)&&m.bindProduct)?V="pdpPage":r?.product&&(V="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:V,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:f+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(M=(w=(v=u?.traceInfo)!==null&&v!==void 0?v:(h=(g=r?.video)===null||g===void 0?void 0:g.bindProduct)===null||h===void 0?void 0:h.traceInfo)!==null&&w!==void 0?w:(D=(P=(C=r?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||D===void 0?void 0:D.traceInfo)!==null&&M!==void 0?M:(x=r?.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]),c=n.useCallback((r,u,d,A)=>{u&&u===Ni&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:A?`['${A}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:c}}const dl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,a)=>n.createElement("div",{key:a,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 cl=n.memo(dl);const ul=t=>{var e,i,{columns:o,style:a,title:l,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:A,isPopup:f,onClick:p,onClose:b,submitButtonStyle:m}=t,S=it(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=ze(),{jumpToWeb:h}=Lt(),[w,C]=n.useState(!1),[P,D]=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"}],[]),V=((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(()=>mt.cloneDeep(o)||T,[o,T]),j=n.useCallback(y=>{const{name:F,value:R}=y.target;D(Object.assign(Object.assign({},P),{[F]:R}))},[P]),E=mt.debounce(y=>rt(void 0,void 0,void 0,function*(){var F,R,B,O,I;const N=P;if(!N)return;const X=(R=(F=Object.keys(N))===null||F===void 0?void 0:F.map(q=>{var Q;return{name:q,value:(Q=N[q])!==null&&Q!==void 0?Q:""}}))===null||R===void 0?void 0:R.filter(q=>q?.value);if(!X||!X?.length)return;C(!0);const U=yield v?.({attributes:X});if(C(!1),U){if(A){const q=g,Q=(B=q?.video)===null||B===void 0?void 0:B.bindProduct,me=(I=(O=q?.video)===null||O===void 0?void 0:O.bindProduct)===null||I===void 0?void 0:I.bindCta,re=g?.index;h(y,q,Q,me,re)}f||b?.(),p?.()}}),1e3);return n.useEffect(()=>{const y=()=>{var F,R;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((R=document?.body)===null||R===void 0?void 0:R.clientHeight))<V?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 ${Re.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Oe(l,s)}}),n.createElement("div",Object.assign({className:Re.css(Object.assign(Object.assign({},a),{marginTop:M}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(cl,{columns:k,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":u,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},m),dangerouslySetInnerHTML:{__html:Oe(w?"loading...":u,m)}})))};var vl=n.memo(ul);function ft(t,e){return t.extend=e,t}const pl=ft(vl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:rl,bindableProps:[],interactionRender:sl},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 Jn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ln(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Jn(e[i])&&Jn(t[i])&&Object.keys(e[i]).length>0&&ln(t[i],e[i])})}const Qn={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 Nt(){const t=typeof document<"u"?document:{};return ln(t,Qn),t}const hl={document:Qn,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 Ct(){const t=typeof window<"u"?window:{};return ln(t,hl),t}function ii(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 ui(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Wt(){return Date.now()}function bl(t){const e=Ct();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=Ct();let o,a,l;const s=bl(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(a==="none"?"":a)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function Di(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 Rt(){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 a=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const c=a[l],r=Object.getOwnPropertyDescriptor(o,c);r!==void 0&&r.enumerable&&(Di(t[c])&&Di(o[c])?o[c].__swiper__?t[c]=o[c]:Rt(t[c],o[c]):!Di(t[c])&&Di(o[c])?(t[c]={},o[c].__swiper__?t[c]=o[c]:Rt(t[c],o[c])):t[c]=o[c])}}}return t}function Vi(t,e,i){t.style.setProperty(e,i)}function $n(t){let{swiper:e,targetPosition:i,side:o}=t;const a=Ct(),l=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>l?"next":"prev",d=(f,p)=>u==="next"&&f>=p||u==="prev"&&f<=p,A=()=>{c=new Date().getTime(),s===null&&(s=c);const f=Math.max(Math.min((c-s)/r,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})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(A)};A()}function Yt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Bi(t){try{console.warn(t);return}catch{}}function vi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ii(e)),i}function eo(t){const e=Ct(),i=Nt(),o=t.getBoundingClientRect(),a=i.body,l=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:o.top+c-l,left:o.left+r-s}}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 ni(t,e){return Ct().getComputedStyle(t,null).getPropertyValue(e)}function Ai(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Fi(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 an(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function sn(t,e,i){const o=Ct();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 rn;function xl(){const t=Ct(),e=Nt();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 rn||(rn=xl()),rn}let dn;function Tl(t){let{userAgent:e}=t===void 0?{}:t;const i=to(),o=Ct(),a=o.navigator.platform,l=e||o.navigator.userAgent,s={ios:!1,android:!1},c=o.screen.width,r=o.screen.height,u=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=a==="Win32";let b=a==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&b&&i.touch&&m.indexOf(`${c}x${r}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),b=!1),u&&!p&&(s.os="android",s.android=!0),(d||f||A)&&(s.os="ios",s.ios=!0),s}function io(t){return t===void 0&&(t={}),dn||(dn=Tl(t)),dn}let cn;function El(){const t=Ct(),e=io();let i=!1;function o(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(o()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function kl(){return cn||(cn=El()),cn}function Il(t){let{swiper:e,on:i,emit:o}=t;const a=Ct();let l=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(A=>{s=a.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)&&c()})}),l.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),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 a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function Cl(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=[],s=Ct(),c=function(d,A){A===void 0&&(A={});const f=s.MutationObserver||s.WebkitMutationObserver,p=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){a("observerUpdate",b[0]);return}const m=function(){a("observerUpdate",b[0])};s.requestAnimationFrame?s.requestAnimationFrame(m):s.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)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Fi(e.hostEl);for(let A=0;A<d.length;A+=1)c(d[A])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{l.forEach(d=>{d.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",r),o("destroy",u)}var Pl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];e.apply(o,s)}return a.__emitterProxy=e,o.on(t,a,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((a,l)=>{(a===e||a.__emitterProxy&&a.__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 a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];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(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(o,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.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(ni(o,"padding-left")||0,10)-parseInt(ni(o,"padding-right")||0,10),i=i-parseInt(ni(o,"padding-top")||0,10)-parseInt(ni(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,V){return parseFloat(T.getPropertyValue(t.getDirectionLabel(V))||0)}const i=t.params,{wrapperEl:o,slidesEl:a,size:l,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=Yt(a,`.${t.params.slideClass}, swiper-slide`),A=r?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=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Vi(o,"--swiper-centered-offset-before",""),Vi(o,"--swiper-centered-offset-after",""));const D=i.grid&&i.grid.rows>1&&t.grid;D?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 V;if(d[T]&&(V=d[T]),D&&t.grid.updateSlide(T,V,d),!(d[T]&&ni(V,"display")==="none")){if(i.slidesPerView==="auto"){x&&(d[T].style[t.getDirectionLabel("width")]="");const k=getComputedStyle(V),j=V.style.transform,E=V.style.webkitTransform;if(j&&(V.style.transform="none"),E&&(V.style.webkitTransform="none"),i.roundLengths)M=t.isHorizontal()?sn(V,"width",!0):sn(V,"height",!0);else{const y=e(k,"width"),F=e(k,"padding-left"),R=e(k,"padding-right"),B=e(k,"margin-left"),O=e(k,"margin-right"),I=k.getPropertyValue("box-sizing");if(I&&I==="border-box")M=y+B+O;else{const{clientWidth:N,offsetWidth:X}=V;M=y+F+R+B+O+(X-N)}}j&&(V.style.transform=j),E&&(V.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,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),D&&t.grid.updateWrapperSize(M,f),!i.centeredSlides){const T=[];for(let V=0;V<f.length;V+=1){let k=f[V];i.roundLengths&&(k=Math.floor(k)),f[V]<=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(r&&i.loop){const T=b[0]+h;if(i.slidesPerGroup>1){const V=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),k=T*i.slidesPerGroup;for(let j=0;j<V;j+=1)f.push(f[f.length-1]+k)}for(let V=0;V<t.virtual.slidesBefore+t.virtual.slidesAfter;V+=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()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((V,k)=>!i.cssMode||i.loop?!0:k!==d.length-1).forEach(V=>{V.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const V=T-l;f=f.map(k=>k<=0?-m:k>V?V+S:k)}if(i.centerInsufficientSlides){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const V=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+V<l){const k=(l-T-V)/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){Vi(o,"--swiper-centered-offset-before",`${-f[0]}px`),Vi(o,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],V=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(k=>k+T),t.slidesGrid=t.slidesGrid.map(k=>k+V)}if(A!==u&&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"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,V=t.el.classList.contains(T);A<=i.maxBackfaceHiddenSlides?V||t.el.classList.add(T):V&&t.el.classList.remove(T)}}function Ml(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let a=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>o?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const c=e.activeIndex+l;if(c>e.slides.length&&!o)break;i.push(s(c))}else i.push(s(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const c=i[l].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}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:a,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<o.length;r+=1){const u=o[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=o[0].swiperSlideOffset);const A=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),f=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),p=-(s-d),b=p+e.slidesSizesGrid[r],m=p>=0&&p<=e.size-e.slidesSizesGrid[r],S=p>=0&&p<e.size-1||b>1&&b<=e.size||p<=0&&b>=e.size;S&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),no(u,S,i.slideVisibleClass),no(u,m,i.slideFullyVisibleClass),u.progress=a?-A:A,u.originalProgress=a?-f:f}}function Rl(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:a,isBeginning:l,isEnd:s,progressLoop:c}=e;const r=l,u=s;if(o===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/o;const d=Math.abs(t-e.minTranslate())<1,A=Math.abs(t-e.maxTranslate())<1;l=d||a<=0,s=A||a>=1,d&&(a=0),A&&(a=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?c=(m-f)/b:c=(m+b-p)/b,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:l,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!l||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const un=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Dl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=A=>Yt(o,`.${i.slideClass}${A}, swiper-slide${A}`)[0];let r,u,d;if(l)if(i.loop){let A=a-t.virtual.slidesBefore;A<0&&(A=t.virtual.slides.length+A),A>=t.virtual.slides.length&&(A-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${A}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(A=>A.column===a)[0],d=e.filter(A=>A.column===a+1)[0],u=e.filter(A=>A.column===a-1)[0]):r=e[a];r&&(s||(d=Sl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=wl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(A=>{un(A,A===r,i.slideActiveClass),un(A,A===d,i.slideNextClass),un(A,A===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Wi=(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 a=o.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},vn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},pn=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),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+o+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&vn(t,u)});return}const l=a+o-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=l+e;s+=1){const c=(s%i+i)%i;(c<a||c>l)&&vn(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(l+e,i-1);s+=1)s!==a&&(s>l||s<a)&&vn(t,s)};function Vl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let a;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?a=l:o>=e[l]&&o<e[l+1]&&(a=l+1):o>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Bl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:s,snapIndex:c}=e;let r=t,u;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 r>"u"&&(r=Vl(e)),o.indexOf(i)>=0)u=o.indexOf(i);else{const p=Math.min(a.slidesPerGroupSkip,r);u=p+Math.floor((r-p)/a.slidesPerGroup)}if(u>=o.length&&(u=o.length-1),r===l&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const A=e.grid&&a.grid&&a.grid.rows>1;let f;if(e.virtual&&a.virtual.enabled&&a.loop)f=d(r);else if(A){const p=e.slides.filter(m=>m.column===r)[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/a.grid.rows)}else if(e.slides[r]){const p=e.slides[r].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=r}else f=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:l,activeIndex:r}),e.initialized&&pn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Fl(t,e){const i=this,o=i.params;let a=t.closest(`.${o.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${o.slideClass}, swiper-slide`)&&(a=c)});let l=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){l=!0,s=c;break}}if(a&&l)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Wl={updateSize:Ol,updateSlides:Ll,updateAutoHeight:Ml,updateSlidesOffset:jl,updateSlidesProgress:Nl,updateProgress:Rl,updateSlidesClasses:Dl,updateActiveIndex:Bl,updateClickedSlide:Fl};function zl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return o?-a:a;if(i.cssMode)return a;let s=gl(l,t);return s+=e.cssOverflowAdjustment(),o&&(s=-s),s||0}function Hl(t,e){const i=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=o?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const A=i.maxTranslate()-i.minTranslate();A===0?d=0:d=(t-i.minTranslate())/A,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Ul(){return-this.snapGrid[0]}function Xl(){return-this.snapGrid[this.snapGrid.length-1]}function ql(t,e,i,o,a){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:s,wrapperEl:c}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const r=l.minTranslate(),u=l.maxTranslate();let d;if(o&&t>r?d=r:o&&t<u?d=u:d=t,l.updateProgress(d),s.cssMode){const A=l.isHorizontal();if(e===0)c[A?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:-d,side:A?"left":"top"}),!0;c.scrollTo({[A?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),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 Yl={getTranslate:zl,setTranslate:Hl,minTranslate:Ul,maxTranslate:Xl,translateTo:ql};function Gl(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:a}=t;const{activeIndex:l,previousIndex:s}=e;let c=o;if(c||(l>s?c="next":l<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&l!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function _l(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 Zl(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 Kl={setTransition:Gl,transitionStart:_l,transitionEnd:Zl};function Jl(t,e,i,o,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:A,rtlTranslate:f,wrapperEl:p,enabled:b}=l;if(!b&&!o&&!a||l.destroyed||l.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const m=Math.min(l.params.slidesPerGroupSkip,s);let S=m+Math.floor((s-m)/l.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const v=-r[S];if(c.normalizeSlideIndex)for(let h=0;h<u.length;h+=1){const w=-Math.floor(v*100),C=Math.floor(u[h]*100),P=Math.floor(u[h+1]*100);typeof u[h+1]<"u"?w>=C&&w<P-(P-C)/2?s=h:w>=C&&w<P&&(s=h+1):w>=C&&(s=h)}if(l.initialized&&s!==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)!==s))return!1;s!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(s>A?g="next":s<A?g="prev":g="reset",f&&-v===l.translate||!f&&v===l.translate)return l.updateActiveIndex(s),c.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),c.effect!=="slide"&&l.setTranslate(v),g!=="reset"&&(l.transitionStart(i,g),l.transitionEnd(i,g)),!1;if(c.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(s),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 Ql(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(l){const f=s*a.params.grid.rows;c=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else c=a.getSlideIndexByData(s);const r=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let A=r-c<d;if(u&&(A=A||c<Math.ceil(d/2)),o&&u&&a.params.slidesPerView!=="auto"&&!l&&(A=!1),A){const f=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?c+1:c-r+1,slideRealIndex:f==="next"?a.realIndex:void 0})}if(l){const f=s*a.params.grid.rows;s=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,o)}),a}function $l(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:a,params:l,animating:s}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let c=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(c=Math.max(o.slidesPerViewDynamic("current",!0),1));const r=o.activeIndex<l.slidesPerGroupSkip?1:c,u=o.virtual&&l.virtual.enabled;if(l.loop){if(s&&!u&&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+r,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+r,t,e,i)}function ea(t,e,i){e===void 0&&(e=!0);const o=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=o;if(!r||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const d=o.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const A=c?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"&&a.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=s.indexOf(m),S<0&&(S=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.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(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function ta(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 ia(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let l=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,l),c=s+Math.floor((l-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*o&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,t,e,i)}function na(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,l;const s=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?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=t.getSlideIndex(Yt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=t.getSlideIndex(Yt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var oa={slideTo:Jl,slideToLoop:Ql,slideNext:$l,slidePrev:ea,slideReset:ta,slideToClosest:ia,slideToClickedSlide:na};function la(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{Yt(o,`.${i.slideClass}, swiper-slide`).forEach((A,f)=>{A.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(l?i.grid.rows:1),c=e.slides.length%s!==0,r=l&&e.slides.length%i.grid.rows!==0,u=d=>{for(let A=0;A<d;A+=1){const f=e.isElement?vi("swiper-slide",[i.slideBlankClass]):vi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else Bi("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)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else Bi("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)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function aa(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:a,activeSlideIndex:l,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:A,slidesEl:f,params:p}=r,{centeredSlides:b}=p;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):p.centeredSlides&&r.snapIndex<p.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=A,r.emit("loopFix");return}let m=p.slidesPerView;m==="auto"?m=r.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,r.loopedSlides=v;const g=r.grid&&p.grid&&p.grid.rows>1;u.length<m+v?Bi("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"&&Bi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],w=[];let C=r.activeIndex;typeof l>"u"?l=r.getSlideIndex(u.filter(j=>j.classList.contains(p.slideActiveClass))[0]):C=l;const P=o==="next"||!o,D=o==="prev"||!o;let M=0,x=0;const T=g?Math.ceil(u.length/p.grid.rows):u.length,k=(g?u[l].column:l)+(b&&typeof a>"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 F=u.length-1;F>=0;F-=1)u[F].column===y&&h.push(F)}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?u.forEach((y,F)=>{y.column===E&&w.push(F)}):w.push(E)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),D&&h.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),P&&w.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.append(u[j]),u[j].swiperLoopMoveDOM=!1}),r.recalcSlides(),p.slidesPerView==="auto"?r.updateSlides():g&&(h.length>0&&D||w.length>0&&P)&&r.slides.forEach((j,E)=>{r.grid.updateSlide(E,j,r.slides)}),p.watchSlidesProgress&&r.updateSlidesOffset(),i){if(h.length>0&&D){if(typeof e>"u"){const j=r.slidesGrid[C],y=r.slidesGrid[C+M]-j;c?r.setTranslate(r.translate-y):(r.slideTo(C+Math.ceil(M),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-y,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-y))}else if(a){const j=g?h.length/p.grid.rows:h.length;r.slideTo(r.activeIndex+j,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(w.length>0&&P)if(typeof e>"u"){const j=r.slidesGrid[C],y=r.slidesGrid[C-x]-j;c?r.setTranslate(r.translate-y):(r.slideTo(C-x,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-y,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-y))}else{const j=g?w.length/p.grid.rows:w.length;r.slideTo(r.activeIndex-j,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=A,r.controller&&r.controller.control&&!s){const j={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...j,slideTo:E.params.slidesPerView===p.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...j,slideTo:r.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}r.emit("loopFix")}function sa(){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(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ra={loopCreate:la,loopFix:aa,loopDestroy:sa};function da(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 ca(){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 ua={setGrabCursor:da,unsetGrabCursor:ca};function va(t,e){e===void 0&&(e=this);function i(o){if(!o||o===Nt()||o===Ct())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(t);return!a&&!o.getRootNode?null:a||i(o.getRootNode().host)}return i(e)}function lo(t,e,i){const o=Ct(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=o.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function pa(t){const e=this,i=Nt();let o=t;o.originalEvent&&(o=o.originalEvent);const a=e.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){lo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:c}=e;if(!c||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let r=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(r=d[0]);const A=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(f?va(A,r):r.closest(A))){e.allowClick=!0;return}if(l.swipeHandler&&!r.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const p=s.currentX,b=s.currentY;if(!lo(e,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=b,a.touchStartTime=Wt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let m=!0;r.matches(a.focusableElements)&&(m=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const S=m&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!r.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function ma(t){const e=Nt(),i=this,o=i.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(o.touchId!==null||r.pointerId!==o.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(P=>P.identifier===o.touchId)[0],!u||u.identifier!==o.touchId)return}else u=r;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,A=u.pageY;if(r.preventedByNestedSwiper){l.startX=d,l.startY=A;return}if(!i.allowTouchMove){r.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(a.touchReleaseOnEdges&&!a.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&&r.target===e.activeElement&&r.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",r),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>a.touchAngle:90-P>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",r),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||r.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let b=i.isHorizontal()?f:p,m=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(b=Math.abs(b)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),l.diff=b,b*=a.touchRatio,s&&(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&&!a.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,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}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",r),o.isMoved=!0,o.currentTranslate=b+o.startTranslate;let w=!0,C=a.resistanceRatio;if(a.touchReleaseOnEdges&&(C=0),b>0?(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+b)**C))):b<0&&(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-b)**C))),w&&(r.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),a.threshold>0)if(Math.abs(b)>a.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}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function fa(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].filter(C=>C.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;a=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:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.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(),ui(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.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(s.followFinger?p=r?e.translate:-e.translate:p=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.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<u.length;C+=C<s.slidesPerGroupSkip?1:s.slidesPerGroup){const P=C<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[C+P]<"u"?(b||p>=u[C]&&p<u[C+P])&&(m=C,S=u[C+P]-u[C]):(b||p>=u[C])&&(m=C,S=u[u.length-1]-u[u.length-2])}let v=null,g=null;s.rewind&&(e.isBeginning?g=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(p-u[m])/S,w=m<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:m+w):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-s.longSwipesRatio?e.slideTo(m+w):g!==null&&h<0&&Math.abs(h)>s.longSwipesRatio?e.slideTo(g):e.slideTo(m))}else{if(!s.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 ao(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?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=a,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function ha(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Aa(){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 a;const l=t.maxTranslate()-t.minTranslate();l===0?a=0:a=(t.translate-t.minTranslate())/l,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ba(t){const e=this;Wi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ga(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const so=(t,e)=>{const i=Nt(),{params:o,el:a,wrapperEl:l,device:s}=t,c=!!o.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[r]("click",t.onClick,!0),o.cssMode&&l[r]("scroll",t.onScroll),o.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",ao,!0):t[u]("observerUpdate",ao,!0),a[r]("load",t.onLoad,{capture:!0}))};function ya(){const t=this,{params:e}=t;t.onTouchStart=pa.bind(t),t.onTouchMove=ma.bind(t),t.onTouchEnd=fa.bind(t),t.onDocumentTouchStart=ga.bind(t),e.cssMode&&(t.onScroll=Aa.bind(t)),t.onClick=ha.bind(t),t.onLoad=ba.bind(t),so(t,"on")}function wa(){so(this,"off")}var Sa={attachEvents:ya,detachEvents:wa};const ro=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function xa(){const t=this,{realIndex:e,initialized:i,params:o,el:a}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const s=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in l?l[s]:void 0)||t.originalParams,u=ro(t,o),d=ro(t,r),A=t.params.grabCursor,f=r.grabCursor,p=o.enabled;u&&!d?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${o.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),A&&!f?t.unsetGrabCursor():!A&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof r[h]>"u")return;const w=o[h]&&o[h].enabled,C=r[h]&&r[h].enabled;w&&!C&&t[h].disable(),!w&&C&&t[h].enable()});const b=r.direction&&r.direction!==o.direction,m=o.loop&&(r.slidesPerView!==o.slidesPerView||b),S=o.loop;b&&i&&t.changeDirection(),Rt(t.params,r);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=s,t.emit("_beforeBreakpoint",r),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",r)}function Ta(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const a=Ct(),l=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:l*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=r):u<=i.clientWidth&&(o=r)}return o||"max"}var Ea={setBreakpoint:xa,getBreakpoint:Ta};function ka(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&i.push(e+a)}):typeof o=="string"&&i.push(e+o)}),i}function Ia(){const t=this,{classNames:e,params:i,rtl:o,el:a,device:l}=t,s=ka(["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(...s),a.classList.add(...e),t.emitContainerClasses()}function Ca(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Pa={addClasses:Ia,removeClasses:Ca};function Oa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+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 La={checkOverflow:Oa},mn={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 Ma(t,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){Rt(e,o);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in l)){Rt(e,o);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Rt(e,o)}}const fn={eventsEmitter:Pl,update:Wl,translate:Yl,transition:Kl,slide:oa,loop:ra,grabCursor:ua,events:Sa,breakpoints:Ea,checkOverflow:La,classes:Pa},hn={};let An=class Qt{constructor(){let e,i;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=Rt({},i),e&&!i.el&&(i.el=e);const s=Nt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(A=>{const f=Rt({},i,{el:A});d.push(new Qt(f))}),d}const c=this;c.__swiper__=!0,c.support=to(),c.device=io({userAgent:i.userAgent}),c.browser=kl(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:Ma(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=Rt({},mn,r);return c.params=Rt({},u,hn,i),c.originalParams=Rt({},c.params),c.passedParams=Rt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.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:c.params.allowSlideNext,allowSlidePrev:c.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:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}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,a=Yt(i,`.${o.slideClass}, swiper-slide`),l=Ai(a[0]);return Ai(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=Yt(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 a=o.minTranslate(),s=(o.maxTranslate()-a)*e+a;o.translateTo(s,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 a=e.getSlideClasses(o);i.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=o;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let A=l[u]?Math.ceil(l[u].swiperSlideSize):0,f;for(let p=u+1;p<l.length;p+=1)l[p]&&!f&&(A+=Math.ceil(l[p].swiperSlideSize),d+=1,A>r&&(f=!0));for(let p=u-1;p>=0;p-=1)l[p]&&!f&&(A+=l[p].swiperSlideSize,d+=1,A>r&&(f=!0))}else if(e==="current")for(let A=u+1;A<l.length;A+=1)(i?s[A]+c[A]-s[u]<r:s[A]-s[u]<r)&&(d+=1);else for(let A=u-1;A>=0;A-=1)s[u]-s[A]<r&&(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(s=>{s.complete&&Wi(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const s=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(s.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||a()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),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 a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):Yt(o,a())[0];return!s&&i.params.createElements&&(s=vi("div",i.params.wrapperClass),o.append(s),Yt(o,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:o,wrapperEl:s,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:s,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||ni(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||ni(o,"direction")==="rtl"),wrongRTL:ni(s,"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 a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?Wi(i,l):l.addEventListener("load",s=>{Wi(i,s.target)})}),pn(i),i.initialized=!0,pn(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:a,el:l,wrapperEl:s,slides:c}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(r=>{o.off(r)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Al(o)),o.destroyed=!0),null}static extendDefaults(e){Rt(hn,e)}static get extendedDefaults(){return hn}static get defaults(){return mn}static installModule(e){Qt.prototype.__modules__||(Qt.prototype.__modules__=[]);const i=Qt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Qt.installModule(i)),Qt):(Qt.installModule(e),Qt)}};Object.keys(fn).forEach(t=>{Object.keys(fn[t]).forEach(e=>{An.prototype[e]=fn[t][e]})}),An.use([Il,Cl]);const co=["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 pi(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]:pi(t[o],e[o]):t[o]=e[o]})}function uo(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 ja(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Na(t){let{swiper:e,slides:i,passedParams:o,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.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,D;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),a.includes("controller")&&o.controller&&o.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||r)&&(d.pagination||d.pagination===!1)&&A&&!A.el&&(g=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(h=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||s)&&(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))};a.includes("loop")&&e.isElement&&(d.loop&&!o.loop?C=!0:!d.loop&&o.loop?P=!0:D=!0),u.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]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&b&&d.virtual.enabled?(b.slides=i,b.update(!0)):a.includes("virtual")&&b&&d.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),a.includes("children")&&i&&d.loop&&(D=!0),S&&m.init()&&m.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),A.init(),A.render(),A.update()),h&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),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)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),l&&(d.navigation.nextEl=l),s&&(d.navigation.prevEl=s),f.init(),f.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(C||D)&&e.loopDestroy(),(P||D)&&e.loopCreate(),e.update()}function Ra(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},a={};pi(i,mn),i._emitClasses=!0,i.init=!1;const l={},s=co.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?si(t[r])?(i[r]={},a[r]={},pi(i[r],t[r]),pi(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?o[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:l[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:l,events:o}}function Da(t,e){let{el:i,nextEl:o,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:c}=t;uo(e)&&o&&a&&(c.params.navigation.nextEl=o,c.originalParams.navigation.nextEl=o,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),vo(e)&&l&&(c.params.pagination.el=l,c.originalParams.pagination.el=l),po(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Va(t,e,i,o,a){const l=[];if(!e)return l;const s=r=>{l.indexOf(r)<0&&l.push(r)};if(i&&o){const r=o.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),o.length!==i.length&&s("children")}return co.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(si(t[r])&&si(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(A=>{t[r][A]!==e[r][A]&&s(r)}),d.forEach(A=>{t[r][A]!==e[r][A]&&s(r)}))}else t[r]!==e[r]&&s(r)}),l}const Ba=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function zi(){return zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},zi.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 Fa(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 a=ho(o.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Wa(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},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=l&&d<=s&&u.push(e[o(d)]);return u.map((d,A)=>n.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${A}`}))}function bi(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const bn=n.createContext(null),gi=()=>n.useContext(bn),za=n.createContext(null),Zt=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:a="div",children:l,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,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),D=n.useRef(null),{params:M,passedParams:x,rest:T,events:V}=Ra(c),{slides:k,slots:j}=Fa(l),E=()=>{b(!p)};Object.assign(M.on,{_containerClasses(O,I){d(I)}});const y=()=>{Object.assign(M.on,V),r=!0;const O={...M};if(delete O.wrapperClass,v.current=new An(O),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=k;const I={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};pi(v.current.params.virtual,I),pi(v.current.originalParams.virtual,I)}};S.current||y(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{r||!V||!v.current||Object.keys(V).forEach(O=>{v.current.on(O,V[O])})},R=()=>{!V||!v.current||Object.keys(V).forEach(O=>{v.current.off(O,V[O])})};n.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),n.useEffect(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),bi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&y(),Da({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:D.current,swiper:v.current},M),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),bi(()=>{F();const O=Va(x,g.current,k,h.current,I=>I.key);return g.current=x,h.current=k,O.length&&v.current&&!v.current.destroyed&&Na({swiper:v.current,slides:k,passedParams:x,changedParams:O,nextEl:w.current,prevEl:C.current,scrollbarEl:D.current,paginationEl:P.current}),()=>{R()}}),bi(()=>{Ba(v.current)},[A]);function B(){return M.virtual?Wa(v.current,k,A):k.map((O,I)=>n.cloneElement(O,{swiper:v.current,swiperSlideIndex:I}))}return n.createElement(o,zi({ref:S,className:mo(`${u}${i?` ${i}`:""}`)},T),n.createElement(za.Provider,{value:v.current},j["container-start"],n.createElement(a,{className:ja(M.wrapperClass)},j["wrapper-start"],B(),j["wrapper-end"]),uo(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:D,className:"swiper-scrollbar"}),vo(M)&&n.createElement("div",{ref:P,className:"swiper-pagination"}),j["container-end"]))});Zt.displayName="Swiper";const Dt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:a="",swiper:l,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...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)}bi(()=>{if(typeof u<"u"&&(A.current.swiperSlideIndex=u),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)}}}),bi(()=>{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,zi({ref:A,className:mo(`${f}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:h},d),s&&n.createElement(bn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},g(),c&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(bn.Provider,{value:v},g(),c&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Dt.displayName="SwiperSlide";function gn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Nt(),s=Ct();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(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(Fi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Fi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,D=P.clientWidth,M=P.clientHeight,x=s.innerWidth,T=s.innerHeight,V=eo(P);A&&(V.left-=P.scrollLeft);const k=[[V.left,V.top],[V.left+D,V.top],[V.left,V.top+M],[V.left+D,V.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()),a("keyPress",p)}}function r(){e.keyboard.enabled||(l.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(l.removeEventListener("keydown",c),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&r()}),o("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Hi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Ct();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 s,c=Wt(),r;const u=[];function d(h){let D=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&&(D=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(D=M,M=0),x=D*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&&!D&&(D=x<1?-1:1),T&&!M&&(M=T<1?-1:1),{spinX:D,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()-c<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&Wt()-c<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",h.raw)),c=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 D=e.el;e.params.mousewheel.eventsTarget!=="container"&&(D=document.querySelector(e.params.mousewheel.eventsTarget));const M=D&&D.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,V=d(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(V.pixelX)>Math.abs(V.pixelY))x=-V.pixelX*T;else return!0;else if(Math.abs(V.pixelY)>Math.abs(V.pixelX))x=-V.pixelY;else return!0;else x=Math.abs(V.pixelX)>Math.abs(V.pixelY)?-V.pixelX*T:-V.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};u.length>=2&&u.shift();const E=u.length?u[u.length-1]:void 0;if(u.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=r&&j.time<r.time+500&&j.delta<=r.delta&&j.direction===r.direction;if(!E){r=void 0;let y=e.getTranslate()+x*P.sensitivity;const F=e.isBeginning,R=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(),(!F&&e.isBeginning||!R&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,O=u[0];if(u.push(j),B&&(j.delta>B.delta||j.direction!==B.direction))u.splice(0);else if(u.length>=15&&j.time-O.time<500&&O.delta-j.delta>=1&&j.delta<=6){const I=x>0?.8:.2;r=j,u.splice(0),s=ui(()=>{e.slideToClosest(e.params.speed,!0,void 0,I)},0)}s||(s=ui(()=>{r=j,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||a("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 yn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(a=>{if(!i[a]&&i.auto===!0){let l=Yt(t.el,`.${o[a]}`)[0];l||(l=vi("div",o[a]),l.className=o[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function wn(t){let{swiper:e,extendParams:i,on:o,emit:a}=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 s(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 c(){const{nextEl:b,prevEl:m}=e.navigation;if(e.params.loop){s(m,!1),s(b,!1);return}s(m,e.isBeginning&&!e.params.rewind),s(b,e.isEnd&&!e.params.rewind)}function r(b){b.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(b){b.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const b=e.params.navigation;if(e.params.navigation=yn(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"?u:r),!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"?u:r),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(),c())}),o("toEdge fromEdge lock unlock",()=>{c()}),o("destroy",()=>{A()}),o("enable disable",()=>{let{nextEl:b,prevEl:m}=e.navigation;if(b=Ye(b),m=Ye(m),e.enabled){c();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)),a(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(),c()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),A()};Object.assign(e.navigation,{enable:f,disable:p,update:c,init:d,destroy:A})}function Kt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function yi(t){let{swiper:e,extendParams:i,on:o,emit:a}=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 s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(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(Kt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const h=Ai(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(r())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,D=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,V;if(g.dynamicBullets&&(s=sn(M[0],e.isHorizontal()?"width":"height",!0),h.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${s*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(c+=w-(C||0),c>g.dynamicMainBullets-1?c=g.dynamicMainBullets-1:c<0&&(c=0)),x=Math.max(w-c,0),T=x+(Math.min(M.length,g.dynamicMainBullets)-1),V=(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=Ai(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&&u(k,"prev"),j===T&&u(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(" "));u(j,"prev"),u(E,"next")}}if(g.dynamicBullets){const k=Math.min(M.length,g.dynamicMainBullets+4),j=(s*k-s)/2-V*s,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(Kt(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(w+1)}),M.querySelectorAll(Kt(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(D)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const V=(w+1)/D;let k=1,j=1;T==="horizontal"?k=V:j=V,M.querySelectorAll(Kt(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,D),x===0&&a("paginationRender",M)):(x===0&&a("paginationRender",M),a("paginationUpdate",M)),e.params.watchOverflow&&e.enabled&&M.classList[e.isLocked?"add":"remove"](g.lockClass)})}function f(){const v=e.params.pagination;if(r())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(Kt(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",h[0])}function p(){e.params.pagination=yn(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=>Fi(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`),c=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(r())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);a(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 Ha(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Nt();let s=!1,c=null,r=null,u,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,F=e.params.scrollbar,R=e.params.loop?e.progressLoop:e.progress;let B=d,O=(A-d)*R;j?(O=-O,O>0?(B=d-O,O=0):-O+d>A&&(B=A+O)):O<0?(B=d+O,O=0):O+d>A&&(B=A-O),e.isHorizontal()?(E.style.transform=`translate3d(${O}px, 0, 0)`,E.style.width=`${B}px`):(E.style.transform=`translate3d(0px, ${O}px, 0)`,E.style.height=`${B}px`),F.hide&&(clearTimeout(c),y.style.opacity=1,c=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 F;F=(S(k)-eo(y)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(A-d),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const R=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(R),e.setTranslate(R),e.updateActiveIndex(),e.updateSlidesClasses()}function g(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F,dragEl:R}=E;s=!0,u=k.target===R?S(k)-k.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,k.preventDefault(),k.stopPropagation(),y.style.transitionDuration="100ms",R.style.transitionDuration="100ms",v(k),clearTimeout(r),F.style.transitionDuration="0ms",j.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",k)}function h(k){const{scrollbar:j,wrapperEl:E}=e,{el:y,dragEl:F}=j;s&&(k.preventDefault&&k.cancelable?k.preventDefault():k.returnValue=!1,v(k),E.style.transitionDuration="0ms",y.style.transitionDuration="0ms",F.style.transitionDuration="0ms",a("scrollbarDragMove",k))}function w(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F}=E;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),j.hide&&(clearTimeout(r),r=ui(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",k),j.snapOnRelease&&e.slideToClosest())}function C(k){const{scrollbar:j,params:E}=e,y=j.el;if(!y)return;const F=y,R=E.passiveListeners?{passive:!1,capture:!1}:!1,B=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const O=k==="on"?"addEventListener":"removeEventListener";F[O]("pointerdown",g,R),l[O]("pointermove",h,R),l[O]("pointerup",w,B)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function D(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function M(){const{scrollbar:k,el:j}=e;e.params.scrollbar=yn(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 F;y&&(F=y.querySelector(Kt(e.params.scrollbar.dragClass)),F||(F=vi("div",e.params.scrollbar.dragClass),y.append(F))),Object.assign(k,{el:y,dragEl:F}),E.draggable&&P(),y&&y.classList[e.enabled?"remove":"add"](...ii(e.params.scrollbar.lockClass))}function x(){const k=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...ii(e.isHorizontal()?k.horizontalClass:k.verticalClass)),D()}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?V():(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"](...ii(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...ii(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ii(e.params.scrollbar.scrollbarDisabledClass)),M(),m(),p()},V=()=>{e.el.classList.add(...ii(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ii(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:V,updateSize:m,setTranslate:p,init:M,destroy:x})}function Sn(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 a=null,l,s,c=new Date().getTime();function r(R){const B=a;B.length!==0&&(B.innerHTML="",B.innerHTML=R)}function u(R){R===void 0&&(R=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(R).replace(/x/g,B)}function d(R){R=Ye(R),R.forEach(B=>{B.setAttribute("tabIndex","0")})}function A(R){R=Ye(R),R.forEach(B=>{B.setAttribute("tabIndex","-1")})}function f(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("role",B)})}function p(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-roledescription",B)})}function b(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-controls",B)})}function m(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-label",B)})}function S(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("id",B)})}function v(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-live",B)})}function g(R){R=Ye(R),R.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function h(R){R=Ye(R),R.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function w(R){if(R.keyCode!==13&&R.keyCode!==32)return;const B=e.params.a11y,O=R.target;if(!(e.pagination&&e.pagination.el&&(O===e.pagination.el||e.pagination.el.contains(R.target))&&!R.target.matches(Kt(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?r(B.lastSlideMessage):r(B.nextSlideMessage)),I.includes(O)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(B.firstSlideMessage):r(B.prevSlideMessage))}e.pagination&&O.matches(Kt(e.params.pagination.bulletClass))&&O.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:R,prevEl:B}=e.navigation;B&&(e.isBeginning?(g(B),A(B)):(h(B),d(B))),R&&(e.isEnd?(g(R),A(R)):(h(R),d(R)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function D(){return P()&&e.params.pagination.clickable}function M(){const R=e.params.a11y;P()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(d(B),e.params.pagination.renderBullet||(f(B,"button"),m(B,R.paginationBulletMessage.replace(/\{\{index\}\}/,Ai(B)+1)))),B.matches(Kt(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const x=(R,B,O)=>{d(R),R.tagName!=="BUTTON"&&(f(R,"button"),R.addEventListener("keydown",w)),m(R,O),b(R,B)},T=R=>{s&&s!==R.target&&!s.contains(R.target)&&(l=!0),e.a11y.clicked=!0},V=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},k=R=>{c=new Date().getTime()},j=R=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const B=R.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;s=B;const O=e.slides.indexOf(B)===e.activeIndex,I=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);O||I||R.sourceCapabilities&&R.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),l=!1)}))},E=()=>{const R=e.params.a11y;R.itemRoleDescriptionMessage&&p(e.slides,R.itemRoleDescriptionMessage),R.slideRole&&f(e.slides,R.slideRole);const B=e.slides.length;R.slideLabelMessage&&e.slides.forEach((O,I)=>{const N=e.params.loop?parseInt(O.getAttribute("data-swiper-slide-index"),10):I,X=R.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,B);m(O,X)})},y=()=>{const R=e.params.a11y;e.el.append(a);const B=e.el;R.containerRoleDescriptionMessage&&p(B,R.containerRoleDescriptionMessage),R.containerMessage&&m(B,R.containerMessage);const O=e.wrapperEl,I=R.id||O.getAttribute("id")||`swiper-wrapper-${u(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(O,I),v(O,N),E();let{nextEl:X,prevEl:U}=e.navigation?e.navigation:{};X=Ye(X),U=Ye(U),X&&X.forEach(Q=>x(Q,I,R.nextSlideMessage)),U&&U.forEach(Q=>x(Q,I,R.prevSlideMessage)),D()&&Ye(e.pagination.el).forEach(me=>{me.addEventListener("keydown",w)}),Nt().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",V,!0)};function F(){a&&a.remove();let{nextEl:R,prevEl:B}=e.navigation?e.navigation:{};R=Ye(R),B=Ye(B),R&&R.forEach(I=>I.removeEventListener("keydown",w)),B&&B.forEach(I=>I.removeEventListener("keydown",w)),D()&&Ye(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),Nt().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",V,!0))}o("beforeInit",()=>{a=vi("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.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&&F()})}function wi(t){let{swiper:e,extendParams:i,on:o,emit:a,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 s,c,r=l&&l.autoplay?l.autoplay.delay:3e3,u=l&&l.autoplay?l.autoplay.delay:3e3,d,A=new Date().getTime(),f,p,b,m,S,v,g;function h(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",h),!(g||B.detail&&B.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=d,f=!1);const B=e.autoplay.paused?d:A+u-new Date().getTime();e.autoplay.timeLeft=B,a("autoplayTimeLeft",B,B/r),c=requestAnimationFrame(()=>{w()})},C=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(I=>I.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},P=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),w();let O=typeof B>"u"?e.params.autoplay.delay:B;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const I=C();!Number.isNaN(I)&&I>0&&typeof B>"u"&&(O=I,r=I,u=I),d=O;const N=e.params.speed,X=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),a("autoplay")),e.params.cssMode&&(A=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return O>0?(clearTimeout(s),s=setTimeout(()=>{X()},O)):requestAnimationFrame(()=>{X()}),O},D=()=>{A=new Date().getTime(),e.autoplay.running=!0,P(),a("autoplayStart")},M=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},x=(B,O)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),B||(v=!0);const I=()=>{a("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,a("autoplayResume"))},V=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Nt();B.visibilityState==="hidden"&&(v=!0,x(!0)),B.visibilityState==="visible"&&T()},k=B=>{B.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=B=>{B.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))},F=()=>{Nt().addEventListener("visibilitychange",V)},R=()=>{Nt().removeEventListener("visibilitychange",V)};o("init",()=>{e.params.autoplay.enabled&&(E(),F(),D())}),o("destroy",()=>{y(),R(),e.autoplay.running&&M()}),o("_freeModeStaticRelease",()=>{(b||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?M():x(!0,!0)}),o("beforeTransitionStart",(B,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(s),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:D,stop:M,pause:x,resume:T})}function Ua(t){let{swiper:e,extendParams:i,emit:o,once:a}=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 r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Wt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:A,rtlTranslate:f,snapGrid:p,touchEventsData:b}=e,S=Wt()-b.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-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,V=M.time-x.time;e.velocity=T/V,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(V>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 D;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&&(D=!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&&(D=!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(D&&a("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,an(A,()=>{!e||e.destroyed||!b.allowMomentumBounce||(o("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(C),an(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,an(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:s,onTouchEnd:c}})}const Xa=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const a=n.useRef(),{popupDetailData:l}=ze();return n.useEffect(()=>{var s,c;o&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=l?.multiCheckIndex)!==null&&c!==void 0?c:0))},[l,o]),n.createElement(Zt,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Ua,Ha,Hi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Si=n.memo(Xa);const qa=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:a,className:l,loading:s,alt:c="image"}=t,[r,u]=n.useState(i),d=n.useRef(null),[A,f]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&u(p)}})),n.useEffect(()=>{i&&u(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!A&&d.current&&(d.current.src="",d.current.src=i)};return xt.on(bt.PAGE_DID_SHOW,p),()=>{xt.off(bt.PAGE_DID_SHOW,p)}},[i,A]),n.createElement(n.Fragment,null,!A&&!r&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:r}),n.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{f(!0),o?.(p.target)},alt:c})):n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{f(!0),o?.(p.target)},alt:c}))});var Pt=n.memo(qa);const Ya=({products:t,data:e,defImg:i,style:o,onCLick:a,popupDetailData:l,check:s})=>{var c;const{productView:r}=Lt(),{popupCurTimeRef:u}=ze(),d=(A,f)=>{if(s===f)return;const p=t?.[s];r(l,p,p?.bindCta,u.current,l?.index),a?.(f)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(Si,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(c=l?t:[0,1,2,3])===null||c===void 0?void 0:c.map((A,f)=>{var p,b,m;return n.createElement(n.Fragment,null,A?.bindCta?n.createElement(Dt,{className:Re.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{d(A,f)},key:f},n.createElement(Pt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===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(Ya);function bo(){const[t,e]=n.useState(0),[i,o]=n.useState(0),a=()=>{if(typeof window>"u")return 0;let s=window.innerHeight;return window.visualViewport&&(s=window.visualViewport.height),(s<=0||s>window.screen.height)&&(s=window.innerHeight),s<=0&&(s=document.documentElement.clientHeight),s},l=n.useCallback(()=>{var s;const c=a(),r=(s=window.screen)===null||s===void 0?void 0:s.height,u=navigator.userAgent,d=/Instagram/i.test(u),A=/FBAV|FBAN|FBSN/i.test(u);if(!r||c<=0||!d&&!A){e(c);return}const f=c/r,p=.9,b=r>=900?r*.8:r*.79,m=f>=p&&f!==1,S=m?Math.round(b):c,v=r-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:c,screenHeight:r,isInstagram:d,isFacebook:A,ua:u};window?.fundebug.notify("Collect_Info","resize",{metaData:{systemInfo:g,otherInfo:{}}})}e(S)},[a]);return n.useEffect(()=>{l();const s=["resize","orientationchange","load","DOMContentLoaded"];return s.forEach(c=>{window.addEventListener(c,l)}),window.visualViewport&&(window.visualViewport.addEventListener("resize",l),window.visualViewport.addEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.addEventListener("geometrychange",l),()=>{s.forEach(c=>{window.removeEventListener(c,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 Ga="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",_a=({visible:t,onClose:e,children:i,modalStyle:o,padding:a,popup:l,schema:s,fullHeight:c,isFullScreen:r=!1,openState:u})=>{var d,A,f,p,b,m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R;const{visibleHeight:B,bottomHeight:O}=bo(),I=n.useRef(null),N=n.useRef(null),X=n.useRef(null),U=n.useRef(null),q=n.useRef(null),Q=c||B,me=Q*.2,re=r?Q:Q*.8,[K,Te]=n.useState(me),[Pe,Be]=n.useState(!1),ue=n.useRef(null),{globalConfig:de,popupDetailData:_e}=ze(),{schema:He,popup:Ue}=ti(),[Ge,nt]=n.useState(15);n.useEffect(()=>{const ee=document.getElementById("sxp-render"),_=document.getElementById("pb-modal");_?ue.current=_:(ue.current=document.createElement("div"),ue.current.setAttribute("id","pb-modal"),ee?.appendChild(ue.current))},[]);const Ze=n.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),ke=n.useMemo(()=>{var ee,_,le;const we=s??He;return(le=(_=(ee=we?.sxpPageConf)===null||ee===void 0?void 0:ee.globalConfig)===null||_===void 0?void 0:_.popupList)===null||le===void 0?void 0:le.find($=>$?.id===l?.id)},[l,s,He]),Qe=n.useMemo(()=>{var ee,_;return((_=(ee=ke?.item)===null||ee===void 0?void 0:ee.event)===null||_===void 0?void 0:_.isScrollFullScreen)||!1},[ke]);n.useEffect(()=>{Ze?Be(!0):setTimeout(()=>{Be(!1),Te(me)},l?.duration)},[Ze,l]);const Tt=n.useCallback(()=>i,[Ue,u,de,s]);if(n.useEffect(()=>{const ee=_=>{const le=_?.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;_.addEventListener("keydown",function(W){(W.key==="Escape"||W.key==="Esc")&&(De(),W.preventDefault()),(W.key==="Tab"||W.keyCode===$)&&(W.shiftKey?document?.activeElement===we&&(ye?.focus(),W.preventDefault()):document?.activeElement===ye&&(we?.focus(),W.preventDefault()))}),we?.focus()};return q?.current&&ee(q?.current),()=>{var _;(_=q?.current)===null||_===void 0||_.removeEventListener("keydown",ee)}},[q,Pe,Ue]),!ue.current)return null;const De=mt.debounce(()=>{e?.()},300),Fe=ee=>{I.current=ee.touches[0],N.current=ee.touches[0],X.current=!0},We=ee=>{requestAnimationFrame(()=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.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,W=we-N.current.clientX;if(Math.abs(W)>Math.abs($))return;const Ne=K-ye;Ne>0&&Te(Ne)}})},Z=ee=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.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):K<me&&ye<0?Te(me):K>=me&&ye<0&&e?.()}X.current=!1};return Mn.createPortal(n.createElement(n.Fragment,null,Pe&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ze?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)",bottom:O+"px"},o),onClick:De},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=(D=(P=ke?.item)===null||P===void 0?void 0:P.props)===null||D===void 0?void 0:D.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:q,className:`modal-container ${Ze?"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:a,animationDuration:((V=l?.duration)!==null&&V!==void 0?V:0)/1e3+"s"},Qe&&{transform:`translateY(${K}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()}},Qe&&{onTouchMove:We,onTouchStart:Fe,onTouchEnd:Z}),n.createElement("div",Object.assign({id:"modal-content",ref:U,style:{height:Qe?Q:re,overflow:Qe&&K<=0||!Qe?"auto":"hidden",zIndex:1}},((R=(F=ke?.item)===null||F===void 0?void 0:F.props)===null||R===void 0?void 0:R.enableFixedCloseButton)&&{onScroll:ee=>{var _;nt(15-((_=ee?.target)===null||_===void 0?void 0:_.scrollTop))}}),Tt()),n.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ge}},n.createElement("img",{src:de?.popupCloseIcon||Ga,alt:"close button",className:"modal-icon"})))))),ue.current)};var mi=n.memo(_a);const Za=({text:t,maxStr:e=108,style:i,className:o,onClick:a,foldText:l,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=n.useState(!1),[A,f]=n.useState(!1),p=i||{},{lineClamp:b}=p,m=it(p,["lineClamp"]),S=Number(b||2),v=n.useRef(null),g=n.useRef(null),h=n.useRef(),w=()=>{d(!u)},C=n.useCallback(()=>{!v.current||!g.current||!c||!t||u||requestAnimationFrame(()=>{if(!v.current)return;v.current.style.position="relative";const P=v.current.getBoundingClientRect().height,D=g.current.getBoundingClientRect().height,M=P>D+1;f(M),v.current.style.position="absolute"})},[c,t,u]);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({},!u&&c&&{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:Oe(t?.replace(/\n/g,"</br>"),m)}}),c&&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:Oe(t?.replace(/\n/g,"</br>"),m)}}),t&&c&&A&&n.createElement("button",{"aria-label":u?s||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??w,dangerouslySetInnerHTML:{__html:Oe(u?s||"show less":l||"show more",m)}}))};var xi=n.memo(Za);const Ka=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:o,file:a,src:l}=t;switch(i){case 2:return o||null;case 3:return l||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Ja=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Ti=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:o,style:a})=>{var l,s,c,r,u,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?(c=(s=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||s===void 0?void 0:s.toUpperCase())!==null&&c!==void 0?c:"":"$";const v=e===void 0||e;let g=b?.toString();m?.showTwoDecimalPoint&&(g=b?.toFixed(2));let h=(r=g?.indexOf("."))!==null&&r!==void 0?r:-1;if(v){p=(u=b?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let w=0,C=h??p?.length;m?.millesimalSymbol==="."?p=p?.replace(/\,/g,function(P,D){return D>=w&&D<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:a?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${S}</span>`,p=Oe(p,a),m?.currencyPosition&&m?.currencyPosition!=="none"?p=m?.currencyPosition==="left"?S+p:p+S:m?.currencyPosition!=="none"&&(p=S+p),p},Qa=t=>{var e,i,o,a,l,s,c,r,u,d,A,f,p,b,m,S,v,g,h,w,C,P,D,M,{content:x,style:T,bgImg:V,onClick:k,schema:j,isDefault:E,bottom_image:y,tipText:F,isPost:R,viewTime:B,rec:O,swiper:I,commodityStyles:N,buttonStyle:X,index:U,commodityGroup:q,popupBg:Q,iframeIcon:me,commodityImgRatio:re,isTel:K,iframeBgColor:Te,isActive:Pe=!0}=t,Be=it(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:ue,popupDetailData:de,isPreview:_e,bffFbReport:He,popupCurTimeRef:Ue,checkCommodityIndexRef:Ge,globalConfig:nt,ctaEvent:Ze}=ze(),{jumpToWeb:ke,productView:Qe}=Lt(),Tt=n.useRef(null),[De,Fe]=n.useState(!1),[We,Z]=n.useState(!1),[ee,_]=n.useState((e=de?.multiCheckIndex)!==null&&e!==void 0?e:0),le=n.useRef(),[we,ye]=n.useState(0),$=R?O:de;let W=R?$?.product:(o=(i=$?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(l=(a=$?.video)===null||a===void 0?void 0:a.bindProducts)===null||l===void 0?void 0:l[0],Ne=R?(s=$?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=$?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(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 $e=R?U:de?.index;if(!R&&q?.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){Ge.current=ee;const fe=(S=$?.video)===null||S===void 0?void 0:S.bindProducts[ee];W=fe,Ne=fe?.bindCta}const Ke=fe=>{W?.link&&(ke(fe,$,W,Ne,$e),R?Ze?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},$,W,$e):Qe($,W,Ne,B||Tt.current,$e),window.location.href=window.getJointUtmLink(W.link))};n.useEffect(()=>{Pe&&(He?.({eventName:"ProductView",product:W}),He?.({eventName:"PageView",product:W}))},[Pe,He]),n.useEffect(()=>{const fe=()=>{Tt.current=new Date};return fe(),window.addEventListener("pageshow",fe),()=>{window.removeEventListener("pageshow",fe)}},[]);const ot=Ti({product:W,enableFormattedPrice:(v=N?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:nt,style:N?.price}),Je=(_e?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((h=Q?.horizontalMargin)!==null&&h!==void 0?h:0)*2,Ve=re?Je*(re.h/re.w):Je,et=({isPost:fe})=>{var be,vt,Ht,Bt;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:At(N?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Oe((be=W?.collection)!==null&&be!==void 0?be:"Tiffany Lock",N?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:At(N?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Oe((vt=W?.title)!==null&&vt!==void 0?vt:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:At(N?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:ot??""}}),n.createElement("div",{hidden:!!W&&!W?.taxInfo,style:At(N?.taxInfo),dangerouslySetInnerHTML:{__html:Oe((Ht=W?.taxInfo)!==null&&Ht!==void 0?Ht:"\u7A0E\u8D39",N?.taxInfo)}}),n.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},n.createElement(xi,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Fe(!0),isPost:fe,text:(Bt=W?.info)!==null&&Bt!==void 0?Bt:`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)},[a]);return n.useEffect(()=>{l();const s=["resize","orientationchange","load","DOMContentLoaded"];return s.forEach(c=>{window.addEventListener(c,l)}),window.visualViewport&&(window.visualViewport.addEventListener("resize",l),window.visualViewport.addEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.addEventListener("geometrychange",l),()=>{s.forEach(c=>{window.removeEventListener(c,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 Ga="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",_a=({visible:t,onClose:e,children:i,modalStyle:o,padding:a,popup:l,schema:s,fullHeight:c,isFullScreen:r=!1,openState:u})=>{var d,A,f,p,b,m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R;const{visibleHeight:B,bottomHeight:O}=bo(),I=n.useRef(null),N=n.useRef(null),X=n.useRef(null),U=n.useRef(null),q=n.useRef(null),Q=c||B,me=Q*.2,re=r?Q:Q*.8,[K,Te]=n.useState(me),[Pe,Be]=n.useState(!1),ue=n.useRef(null),{globalConfig:de,popupDetailData:_e}=ze(),{schema:He,popup:Ue}=ti(),[Ge,nt]=n.useState(15);n.useEffect(()=>{const ee=document.getElementById("sxp-render"),_=document.getElementById("pb-modal");_?ue.current=_:(ue.current=document.createElement("div"),ue.current.setAttribute("id","pb-modal"),ee?.appendChild(ue.current))},[]);const Ze=n.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),ke=n.useMemo(()=>{var ee,_,le;const we=s??He;return(le=(_=(ee=we?.sxpPageConf)===null||ee===void 0?void 0:ee.globalConfig)===null||_===void 0?void 0:_.popupList)===null||le===void 0?void 0:le.find($=>$?.id===l?.id)},[l,s,He]),Qe=n.useMemo(()=>{var ee,_;return((_=(ee=ke?.item)===null||ee===void 0?void 0:ee.event)===null||_===void 0?void 0:_.isScrollFullScreen)||!1},[ke]);n.useEffect(()=>{Ze?Be(!0):setTimeout(()=>{Be(!1),Te(me)},l?.duration)},[Ze,l]);const Tt=n.useCallback(()=>i,[Ue,u,de,s]);if(n.useEffect(()=>{const ee=_=>{const le=_?.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;_.addEventListener("keydown",function(W){(W.key==="Escape"||W.key==="Esc")&&(De(),W.preventDefault()),(W.key==="Tab"||W.keyCode===$)&&(W.shiftKey?document?.activeElement===we&&(ye?.focus(),W.preventDefault()):document?.activeElement===ye&&(we?.focus(),W.preventDefault()))}),we?.focus()};return q?.current&&ee(q?.current),()=>{var _;(_=q?.current)===null||_===void 0||_.removeEventListener("keydown",ee)}},[q,Pe,Ue]),!ue.current)return null;const De=mt.debounce(()=>{e?.()},300),Fe=ee=>{I.current=ee.touches[0],N.current=ee.touches[0],X.current=!0},We=ee=>{requestAnimationFrame(()=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.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,W=we-N.current.clientX;if(Math.abs(W)>Math.abs($))return;const Ne=K-ye;Ne>0&&Te(Ne)}})},Z=ee=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.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):K<me&&ye<0?Te(me):K>=me&&ye<0&&e?.()}X.current=!1};return Mn.createPortal(n.createElement(n.Fragment,null,Pe&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ze?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)",bottom:O+"px"},o),onClick:De},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=(D=(P=ke?.item)===null||P===void 0?void 0:P.props)===null||D===void 0?void 0:D.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:q,className:`modal-container ${Ze?"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:a,animationDuration:((V=l?.duration)!==null&&V!==void 0?V:0)/1e3+"s"},Qe&&{transform:`translateY(${K}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()}},Qe&&{onTouchMove:We,onTouchStart:Fe,onTouchEnd:Z}),n.createElement("div",Object.assign({id:"modal-content",ref:U,style:{height:Qe?Q:re,overflow:Qe&&K<=0||!Qe?"auto":"hidden",zIndex:1}},((R=(F=ke?.item)===null||F===void 0?void 0:F.props)===null||R===void 0?void 0:R.enableFixedCloseButton)&&{onScroll:ee=>{var _;nt(15-((_=ee?.target)===null||_===void 0?void 0:_.scrollTop))}}),Tt()),n.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ge}},n.createElement("img",{src:de?.popupCloseIcon||Ga,alt:"close button",className:"modal-icon"})))))),ue.current)};var mi=n.memo(_a);const Za=({text:t,maxStr:e=108,style:i,className:o,onClick:a,foldText:l,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=n.useState(!1),[A,f]=n.useState(!1),p=i||{},{lineClamp:b}=p,m=it(p,["lineClamp"]),S=Number(b||2),v=n.useRef(null),g=n.useRef(null),h=n.useRef(),w=()=>{d(!u)},C=n.useCallback(()=>{!v.current||!g.current||!c||!t||u||requestAnimationFrame(()=>{if(!v.current)return;v.current.style.position="relative";const P=v.current.getBoundingClientRect().height,D=g.current.getBoundingClientRect().height,M=P>D+1;f(M),v.current.style.position="absolute"})},[c,t,u]);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({},!u&&c&&{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:Oe(t?.replace(/\n/g,"</br>"),m)}}),c&&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:Oe(t?.replace(/\n/g,"</br>"),m)}}),t&&c&&A&&n.createElement("button",{"aria-label":u?s||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??w,dangerouslySetInnerHTML:{__html:Oe(u?s||"show less":l||"show more",m)}}))};var xi=n.memo(Za);const Ka=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:o,file:a,src:l}=t;switch(i){case 2:return o||null;case 3:return l||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Ja=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Ti=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:o,style:a})=>{var l,s,c,r,u,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?(c=(s=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||s===void 0?void 0:s.toUpperCase())!==null&&c!==void 0?c:"":"$";const v=e===void 0||e;let g=b?.toString();m?.showTwoDecimalPoint&&(g=b?.toFixed(2));let h=(r=g?.indexOf("."))!==null&&r!==void 0?r:-1;if(v){p=(u=b?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let w=0,C=h??p?.length;m?.millesimalSymbol==="."?p=p?.replace(/\,/g,function(P,D){return D>=w&&D<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:a?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${S}</span>`,p=Oe(p,a),m?.currencyPosition&&m?.currencyPosition!=="none"?p=m?.currencyPosition==="left"?S+p:p+S:m?.currencyPosition!=="none"&&(p=S+p),p},Qa=t=>{var e,i,o,a,l,s,c,r,u,d,A,f,p,b,m,S,v,g,h,w,C,P,D,M,{content:x,style:T,bgImg:V,onClick:k,schema:j,isDefault:E,bottom_image:y,tipText:F,isPost:R,viewTime:B,rec:O,swiper:I,commodityStyles:N,buttonStyle:X,index:U,commodityGroup:q,popupBg:Q,iframeIcon:me,commodityImgRatio:re,isTel:K,iframeBgColor:Te,isActive:Pe=!0}=t,Be=it(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:ue,popupDetailData:de,isPreview:_e,bffFbReport:He,popupCurTimeRef:Ue,checkCommodityIndexRef:Ge,globalConfig:nt,ctaEvent:Ze}=ze(),{jumpToWeb:ke,productView:Qe}=Lt(),Tt=n.useRef(null),[De,Fe]=n.useState(!1),[We,Z]=n.useState(!1),[ee,_]=n.useState((e=de?.multiCheckIndex)!==null&&e!==void 0?e:0),le=n.useRef(),[we,ye]=n.useState(0),$=R?O:de;let W=R?$?.product:(o=(i=$?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(l=(a=$?.video)===null||a===void 0?void 0:a.bindProducts)===null||l===void 0?void 0:l[0],Ne=R?(s=$?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=$?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(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 $e=R?U:de?.index;if(!R&&q?.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){Ge.current=ee;const fe=(S=$?.video)===null||S===void 0?void 0:S.bindProducts[ee];W=fe,Ne=fe?.bindCta}const Ke=fe=>{W?.link&&(ke(fe,$,W,Ne,$e),R?Ze?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},$,W,$e):Qe($,W,Ne,B||Tt.current,$e),window.location.href=window.getJointUtmLink(W.link))};n.useEffect(()=>{Pe&&(He?.({eventName:"ProductView",product:W}),He?.({eventName:"PageView",product:W}))},[Pe,He]),n.useEffect(()=>{const fe=()=>{Tt.current=new Date};return fe(),window.addEventListener("pageshow",fe),()=>{window.removeEventListener("pageshow",fe)}},[]);const ot=Ti({product:W,enableFormattedPrice:(v=N?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:nt,style:N?.price}),Je=(_e?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((h=Q?.horizontalMargin)!==null&&h!==void 0?h:0)*2,Ve=re?Je*(re.h/re.w):Je,et=({isPost:fe})=>{var be,vt,Ht,Bt;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:At(N?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Oe((be=W?.collection)!==null&&be!==void 0?be:"Tiffany Lock",N?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:At(N?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Oe((vt=W?.title)!==null&&vt!==void 0?vt:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:At(N?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:ot??""}}),n.createElement("div",{hidden:!!W&&!W?.taxInfo,style:At(N?.taxInfo),dangerouslySetInnerHTML:{__html:Oe((Ht=W?.taxInfo)!==null&&Ht!==void 0?Ht:"\u7A0E\u8D39",N?.taxInfo)}}),n.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},n.createElement(xi,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Fe(!0),isPost:fe,text:(Bt=W?.info)!==null&&Bt!==void 0?Bt:`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
- }`)(s,h)}catch{}},[s]),m=n.useCallback(g=>{const h=b(g),w=h?.value;w&&(h?.linkType==="recommendFlow"?(u?.(w),r.current=new Date):new Function(w)())},[s]),S=n.useCallback(()=>{d.current=new Date,c?.({eventInfo:{eventSubject:"startMultiPost",eventDescription:"startMultiPost",contentFormat:"image",position:"0",traceInfo:p}})},[]),v=n.useCallback(g=>{r.current=new Date,c?.({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 xt.on(bt.PAGE_DID_SHOW,g),xt.on(bt.PAGE_DID_HIDE,h),()=>{xt.off(bt.PAGE_DID_SHOW,g),xt.off(bt.PAGE_DID_HIDE,h)}},[A]),n.createElement("div",{className:"multiposts",style:Object.assign(Object.assign({},a),Ja(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 En=n.memo(ud),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=ft(En,{displayName:"MultiPosts",icon:"",category:"base",type:"MultiPosts",related:{settingRender:cd,interactionRender:vd},defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var Ui=Object.freeze({__proto__:null,AniLink:Fr,AniLinkPopup:qr,Appoint:js,AppointForm:pl,Click:od,Commodity:Ps,CommodityDetail:es,CommodityDetailDiroNew:cs,CommodityDiro:Us,CommodityDiroNew:_s,CommodityList:hs,Consent:Nr,ConsentDetail:xs,Display:Qr,HashTag:Lr,Iframe:ys,Link:Bs,MultiCommodity:or,MultiCommodityDiro:$s,MultiCommodityDiroNew:dr,MultiPosts:pd,NineCommodity:pr,Prompt:ls,Swipe:dd});const md="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",fd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",hd=t=>{var e,{active:i,activeIcon:o,unActicveIcon:a,recData:l,position:s}=t,c=it(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:r,mutateUnlike:u,bffEventReport:d,setCacheRtcList:A,cacheRtcList:f}=ze(),[p,b]=n.useState((e=f?.[s])===null||e===void 0?void 0:e.isCollected),m=kt(fd),S=kt(md),v=mt.debounce(()=>rt(void 0,void 0,void 0,function*(){var g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U;if(p){b(!1);const q=(w=yield u?.({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=(D=l?.video)===null||D===void 0?void 0:D.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:s+"",contentFormat:!((V=l?.video)===null||V===void 0)&&V.url?"video":"image",traceInfo:(k=l?.video)===null||k===void 0?void 0:k.traceInfo}}),!q)b(!0);else{const Q=(j=f?.map((me,re)=>(re===s&&(me.isCollected=!1),me)))!==null&&j!==void 0?j:[];A?.(Q)}}else{b(!0);const q=(E=yield r?.({content:JSON.stringify(l)}))!==null&&E!==void 0?E:!1;if(d?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(F=(y=l?.video)===null||y===void 0?void 0:y.itemId)!==null&&F!==void 0?F:"",contentName:(B=(R=l?.video)===null||R===void 0?void 0:R.title)!==null&&B!==void 0?B:"",contentTags:JSON.stringify((I=(O=l?.video)===null||O===void 0?void 0:O.tags)!==null&&I!==void 0?I:[]),position:s+"",contentFormat:!((N=l?.video)===null||N===void 0)&&N.url?"video":"image",traceInfo:(X=l?.video)===null||X===void 0?void 0:X.traceInfo}}),!q)b(!1);else{const Q=(U=f?.map((me,re)=>(re===s&&(me.isCollected=!0),me)))!==null&&U!==void 0?U:[];A?.(Q)}}}),200);return n.createElement("button",Object.assign({},c,{"aria-label":"like",onClick:v}),n.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:p?o||m:a||S,alt:"icon"}))};var kn=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/CRTYpdTAgwgFgusCzs1CcGvAJfwXBVypYoksYtSYqNj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pU2fQF3GHFoyokCDQFl6dAOSKMk1DAXaZBr1X0AAIfkECQMA/wAsPgAXABAADQAACFkA/wkU6KZYp2KJwHVyM1AgEnBuwHWBKJHiwIIJSyEEpzFjsX9PKE6MOLJixI0dOaJESVKky5YqPcqMWbLmS3ArZ6Z0A8Wkz5oCD+pE2TDKT4o2GjZkqLRhQAAh+QQJBAD/ACxAABcAEAAMAAAIWQD/CfyXqFSxROAMFko0UOATcF3AuYEoESK3hgkPZkRoMBE2gRQnRhRZsUuofx03qlSIpKRLkhMTcdSYsmbLkSFzdrlYk6ZPgcVg6gS3ZuBKnwwb/hO6s2FAACH5BAkEAP8ALEMAFwAPAAwAAAhTAP8JLJQIXKliBUsJXPgPnBtwXRxClLgQoUGLBxMmavgwYkeJHv8lxEiy4JqJH1NCLJbx4siRHlHK9FiqkMubLQXG3CnRxsKXN90w/IcEJMWFAQEAOw==";const hi=(()=>{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:a,activeIndex:l,videoPostConfig:s,videoPlayIcon:c,loopPlay:r,swiperRef:u,visibleHeight:d},A)=>{var f,p;const[b,m]=n.useState(!1),{bffEventReport:S,sxpParameter:v,waterFallData:g,openHashtag:h,bffFbReport:w,isDiyH5:C}=ze(),P=n.useRef(0),[D,M]=n.useState(!1),{isActive:x}=gi(),T=n.useRef(null),[V,k]=n.useState(""),[j,E]=n.useState(!1),y=n.useRef(),F=`pb-cache-video-${e}`,R=n.useRef(null),B=n.useRef(null),O=n.useRef(),I=n.useRef(),N=n.useRef(!0),X=n.useRef(r),U=t.video.scene,q=U?.mediaUrl||((f=t?.video)===null||f===void 0?void 0:f.url),Q=U?.mediaUrl?U?.cover:(p=t?.video)===null||p===void 0?void 0:p.cover,me=Q||v?.placeholder_image;n.useImperativeHandle(A,()=>({setLoopPlay(Z){X.current=Z}})),n.useEffect(()=>{X.current=r},[r]);const re=n.useMemo(()=>s?.mode==="2",[s]),K=n.useMemo(()=>{var Z;return s?.mode==="2"?`translateY(-${50+((Z=s?.offsetTop)!==null&&Z!==void 0?Z:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[s]),Te=n.useMemo(()=>Q||V,[V,t]),Pe=n.useMemo(()=>re?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[re]),Be=n.useMemo(()=>s?.bgWay==="1",[s]),ue=n.useMemo(()=>Be&&s?.bgColor?{backgroundColor:s?.bgColor}:{},[s,Be]);n.useEffect(()=>{y?.current&&(y.current.muted=a)},[a,y?.current]);const de=n.useCallback(()=>{var Z;y?.current&&((Z=y?.current)===null||Z===void 0||Z.play())},[y?.current]),_e=kt("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),He=n.useCallback(()=>{y?.current&&(E(!1),M(!0))},[]),Ue=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){var Z,ee,_,le,we,ye,$,W,Ne,$e,Ke,ot,Je;if(!y?.current)return;m(!1);const Ve=o[e];if(Ve&&(!((Z=y?.current)===null||Z===void 0)&&Z.duration)){P.current=((ee=y?.current)===null||ee===void 0?void 0:ee.currentTime)||0;const et=((le=(_=y?.current)===null||_===void 0?void 0:_.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),At=N?.current?"0":"1";S?.({eventInfo:Object.assign({eventSubject:"playVideo",eventDescription:"User played the video",contentId:(W=($=Ve?.video)===null||$===void 0?void 0:$.itemId)!==null&&W!==void 0?W:"",contentName:($e=(Ne=Ve?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&$e!==void 0?$e:"",playType:At,startTime:ct,videoDuration:et,contentTags:JSON.stringify((ot=(Ke=Ve?.video)===null||Ke===void 0?void 0:Ke.tags)!==null&&ot!==void 0?ot:[]),position:e+"",contentFormat:"video",traceInfo:(Je=Ve?.video)===null||Je===void 0?void 0:Je.traceInfo},N?.current&&{loadTime:I?.current-O?.current+""})}),N.current=!1}}),[S,o,e,N,y?.current]),Ge=n.useCallback(()=>{C&&(y.current.currentTime=U?.startTime)},[]),nt=n.useCallback(()=>{if(!y?.current||V||!re||(y.current.style.objectFit="contain",Q||!T||!T.current||Be))return;const Z=()=>{const ee=T?.current,_=ee.getContext("2d"),le=window?.innerWidth,we=d||window?.innerHeight;ee.height=we,ee.width=le,_?.drawImage(y.current,0,0,ee.width,ee.height),k(ee.toDataURL())};Z(),setTimeout(()=>{Z()},500)},[y.current,Be,t,V,re,d]),Ze=n.useCallback(()=>{y.current&&(Ge(),I.current=new Date,Ue(),nt())},[y.current,nt,Ue]),ke=n.useCallback(Z=>()=>{var ee,_,le,we,ye,$;if(!y.current||!D)return;const W=(ee=y?.current)===null||ee===void 0?void 0:ee.paused;switch(Z){case"start":if(!W)return;(_=y?.current)===null||_===void 0||_.play(),m(!1);break;case"pause":if(W)return;(le=y?.current)===null||le===void 0||le.pause(),m(!0);break;default:W?(C&&Math.round((we=y?.current)===null||we===void 0?void 0:we.currentTime)>=U?.endTime&&(y.current.currentTime=U?.startTime),(ye=y?.current)===null||ye===void 0||ye.play()):($=y?.current)===null||$===void 0||$.pause(),m(!W);break}},[D,y?.current]),Qe=n.useCallback(()=>{var Z,ee,_,le,we,ye,$,W,Ne,$e,Ke,ot,Je;if(!y?.current||l!==e)return;m(!0);const Ve=o[e],et=((ee=(Z=y?.current)===null||Z===void 0?void 0:Z.duration)!==null&&ee!==void 0?ee:0).toFixed(2),ct=((le=(_=y?.current)===null||_===void 0?void 0:_.currentTime)!==null&&le!==void 0?le:0).toFixed(2);if(!((we=y?.current)===null||we===void 0)&&we.duration){const At=(((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:(W=($=Ve?.video)===null||$===void 0?void 0:$.itemId)!==null&&W!==void 0?W:"",contentName:($e=(Ne=Ve?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&$e!==void 0?$e:"",endTime:ct,videoDuration:et,playDuration:At,contentTags:JSON.stringify((ot=(Ke=Ve?.video)===null||Ke===void 0?void 0:Ke.tags)!==null&&ot!==void 0?ot:[]),position:e+"",contentFormat:"video",traceInfo:(Je=Ve?.video)===null||Je===void 0?void 0:Je.traceInfo}})}},[o,e,S,y?.current,l]),Tt=n.useCallback(()=>{E(!0)},[]),De=()=>{!y.current||!C||setTimeout(()=>{var Z,ee,_,le,we,ye,$,W,Ne;if(Math.round((Z=y?.current)===null||Z===void 0?void 0:Z.currentTime)>=((ee=U?.endTime)!==null&&ee!==void 0?ee:0)){if((_=y.current)===null||_===void 0||_.pause(),!X.current)return;if(e===o?.length-1)(we=(le=u?.current)===null||le===void 0?void 0:le.swiper)===null||we===void 0||we.slideTo(0);else{const $e=($=(ye=u?.current)===null||ye===void 0?void 0:ye.swiper)===null||$===void 0?void 0:$.activeIndex;(Ne=(W=u?.current)===null||W===void 0?void 0:W.swiper)===null||Ne===void 0||Ne.slideTo($e+1)}}})};n.useEffect(()=>{var Z,ee,_,le,we,ye,$,W,Ne,$e,Ke;if(!x)return;const ot=q;if(!ot)return;const Je=document.querySelector(`#${F}`);if(!Je||(y.current=hi?.(Je),!y?.current))return;O.current=new Date;const Ve=window?.Hls;let et=B?.current;return ot.includes(".m3u8")&&Ve&&Ve.isSupported()?(et=new Ve,et?.loadSource(ot),et?.attachMedia(y?.current),et?.on(Ve.Events.MANIFEST_PARSED,function(){var ct;Ge(),(ct=y?.current)===null||ct===void 0||ct.play()})):y.current.src=ot,(Z=y?.current)===null||Z===void 0||Z.setAttribute("x5-playsinline","true"),(ee=y?.current)===null||ee===void 0||ee.setAttribute("webkit-playsinline","true"),(_=y?.current)===null||_===void 0||_.addEventListener("loadedmetadata",Ze),(le=y?.current)===null||le===void 0||le.addEventListener("loadeddata",nt),(we=y?.current)===null||we===void 0||we.addEventListener("play",Ue),(ye=y?.current)===null||ye===void 0||ye.addEventListener("playing",He),($=y?.current)===null||$===void 0||$.addEventListener("pause",Qe),(W=y?.current)===null||W===void 0||W.addEventListener("ended",de),(Ne=y?.current)===null||Ne===void 0||Ne.addEventListener("canplay",de),($e=y?.current)===null||$e===void 0||$e.addEventListener("waiting",Tt),(Ke=y.current)===null||Ke===void 0||Ke.addEventListener("timeupdate",De),()=>{var ct,At,zt,Mt,yt,wt,qt,gt,Xe,Ee,fe;((ct=y?.current)===null||ct===void 0?void 0:ct.paused)||Qe(),B?.current&&((At=B?.current)===null||At===void 0||At.destroy()),M(!1),(zt=y?.current)===null||zt===void 0||zt.removeEventListener("loadedmetadata",Ze),(Mt=y?.current)===null||Mt===void 0||Mt.removeEventListener("loadeddata",nt),(yt=y?.current)===null||yt===void 0||yt.removeEventListener("play",Ue),(wt=y?.current)===null||wt===void 0||wt.removeEventListener("playing",He),(qt=y?.current)===null||qt===void 0||qt.removeEventListener("pause",Qe),(gt=y?.current)===null||gt===void 0||gt.removeEventListener("ended",de),(Xe=y?.current)===null||Xe===void 0||Xe.removeEventListener("canplay",de),(Ee=y?.current)===null||Ee===void 0||Ee.removeEventListener("waiting",Tt),(fe=y.current)===null||fe===void 0||fe.removeEventListener("timeupdate",De)}},[x]),n.useEffect(()=>{var Z,ee,_,le,we,ye;!y?.current||!D||(x?(w?.({eventName:"ViewContent",product:(ee=(Z=o?.[e])===null||Z===void 0?void 0:Z.video)===null||ee===void 0?void 0:ee.bindProduct}),w?.({eventName:"PageView",product:(le=(_=o?.[e])===null||_===void 0?void 0:_.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,D,y?.current]),n.useEffect(()=>{var Z,ee,_;if(!x||!y?.current)return;!((Z=y?.current)===null||Z===void 0?void 0:Z.paused)&&h?(ee=y?.current)===null||ee===void 0||ee.pause():h||(_=y?.current)===null||_===void 0||_.play()},[h,x,y?.current]),n.useEffect(()=>{if(!x)return;const Z=()=>{ke("start")()},ee=ke("pause");return xt.on(bt.PAGE_DID_SHOW,Z),xt.on(bt.PAGE_DID_HIDE,ee),()=>{xt.off(bt.PAGE_DID_SHOW,Z),xt.off(bt.PAGE_DID_HIDE,ee)}},[ke,x]);const Fe=n.useMemo(()=>!me||D?null:n.createElement(Pt,{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:me,alt:"placeholder image"}),[D]),We=n.useMemo(()=>{if(!(!j||!D))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,D]);return n.useEffect(()=>{if(!y?.current)return;const Z=()=>{l===e&&q&&y?.current&&!b&&ke("pause")()};return window.addEventListener("beforeunload",Z),()=>{window.removeEventListener("beforeunload",Z)}},[l,e,t,y?.current,ke,b]),t?.video?n.createElement(n.Fragment,null,re?n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:ke(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},ue)},!Be&&D&&Te&&n.createElement(Pt,{src:Te,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},Pe)}),n.createElement("canvas",{ref:T,style:{display:"none"}}),n.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:K,left:0,right:0}},n.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},n.createElement("div",{className:"n-full-screen",ref:R,id:F,style:{width:"100%",height:"100%"}}),b&&n.createElement(Pt,{className:"clc-pb-video-pause",src:c??_e,alt:"pause"}))),Fe,We):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:R,id:F,style:{width:"100%",height:"100%"}}),Fe,We,b&&n.createElement(Pt,{className:"clc-pb-video-pause",src:c??_e,alt:"pause"}))):null});var gd=n.memo(bd);const yd=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:o,style:a})=>{const[l,s]=n.useState(t),c=r=>{r.stopPropagation();const u=!l;s(u),o?.(u)};return n.useEffect(()=>{s(t)},[t]),n.createElement("button",{style:a,"aria-label":"toggle button",className:"pb-toggle-button",onClick:c},n.createElement("img",{className:"pb-toggle-button-icon",alt:"toggle image",src:l?e:i}))};var Xi=n.memo(yd);const wd=({imageUrl:t,style:e,duration:i=2e3})=>{const[o,a]=n.useState(!0);ti(),n.useEffect(()=>{setTimeout(()=>{a(!1)},i)},[]);const l=kt("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),s=n.useMemo(()=>o?"pb-fadeIn":"pb-fadeOut",[o]);return n.createElement("div",{hidden:!o,className:`pb-finger-wrap ${s}`,style:Object.assign(Object.assign({},e),{animationDuration:`${i/1e3}s`})},n.createElement("img",{src:t||l,alt:"finger swiper"}))},In=t=>{const{src:e,height:i,imgUrlsPostConfig:o,onShowFirstImage:a}=t,l=n.useMemo(()=>o?.mode==="2",[o]),s=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]),c=n.useMemo(()=>l?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[l]),r=n.useMemo(()=>o?.bgWay==="1",[o]),u=n.useMemo(()=>r&&o?.bgColor?{backgroundColor:o?.bgColor}:{},[o,r]);return n.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},u)},(!l||!r)&&n.createElement(Pt,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},c),onLoad:a}),l&&n.createElement(Pt,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:s,left:0,right:0},onLoad:a}))},Sd=({imgUrls:t,width:e,height:i,rec:o,index:a,onViewImageEndEvent:l,onViewImageStartEvent:s,imgUrlsPostConfig:c})=>{var r,u;const{isActive:d}=gi(),{sxpParameter:A,openHashtag:f}=ze(),[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):(s(a,w.current?m:void 0,!0),w.current=!1)):h?.current&&h.current.swiper.autoplay.stop()},[o,d,l,f,a,s,p,m]);const P=n.useCallback(V=>rt(void 0,void 0,void 0,function*(){p||(S({loadTime:new Date-C+""}),b(!0))}),[p]);n.useEffect(()=>{if(!d)return;const V=()=>s(a,m),k=()=>l(o);return xt.on(bt.PAGE_DID_SHOW,V),xt.on(bt.PAGE_DID_HIDE,k),()=>{xt.off(bt.PAGE_DID_SHOW,V),xt.off(bt.PAGE_DID_HIDE,k)}},[d,m]);const D=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(V=>{g(V.activeIndex)},[]),T=n.useMemo(()=>Qi(),[]);return n.createElement("div",{onMouseEnter:D,onMouseLeave:M},n.createElement(Zt,Object.assign({defaultValue:0,direction:"horizontal",modules:[yi,wi,...T?[wn,Sn,Hi,gn]:[]],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:Re.css(Object.assign(Object.assign({".swiper-pagination":{bottom:(r=c?.marginBottom)!==null&&r!==void 0?r:0,fontSize:"14px"}},c?.dotsBgColor&&{".swiper-pagination-bullet":{backgroundColor:c?.dotsBgColor,opacity:1}}),c?.dotsActiveColor&&{".swipe-item-active-bullet":{backgroundColor:`${c?.dotsActiveColor}!important`,opacity:1}})),height:i,autoplay:{delay:((u=c?.delay)!==null&&u!==void 0?u:3)*1e3}}),t?.map((V,k)=>n.createElement(Dt,{key:k,"aria-hidden":k!==v},n.createElement(In,{src:!p&&k>0?"":V,height:i,imgUrlsPostConfig:c,onShowFirstImage:P})))))};var xd=n.memo(Sd);const Td=({tags:t,itemId:e,itemType:i,index:o,rec:a,hashTagStyle:l,hashTagRightMargin:s})=>{var c;const[r,u]=n.useState(!1),{setWaterFallData:d,setOpenHashtag:A,setCacheActiveIndex:f,waterFallData:p,setIsFromHashtag:b}=ze(),m=S=>{p?b?.(!0):f?.(o),d?.(i?{hashTag:S,itemId:e,itemType:i,rec:a}:{hashTag:S,rec:a}),A?.(!0)};return n.useMemo(()=>t.length<=6?null:n.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>u(!r)},r?"show less":"show more"),[r,t]),n.createElement("div",{className:"clc-sxp-bottom-hashtag",style:{marginTop:`${(c=l?.marginTop)!==null&&c!==void 0?c:16}px`,width:s}},n.createElement(Si,null,t?.map((S,v)=>n.createElement(Dt,{key:v,hidden:r?!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:Oe(`#${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 Ii(t){return n.memo(function(e){const{$store:i}=Go(),o=l=>{let s=l;const c=l.match(/{{.*?}}/g);return c?.length&&c.forEach(r=>{r.replace(/{{\s*([\w.]+)\s*}}/g,(u,d)=>{if(d){const A=mt.get(i,d);return s=s.replace(r,A),A}})}),s},a=n.useMemo(()=>{var l,s,c;const{bindDatas:r}=e,u=it(e,["bindDatas"]);if((l=r?.forEach)===null||l===void 0||l.call(r,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=mt.get(i,b))!==null&&m!==void 0?m:e[A])!==null&&S!==void 0?S:"";return u[A]=v,v}})}}),u){u.eventMap={};const d=mt.cloneDeep(u.event)||{};for(const A in d)if(Object.prototype.hasOwnProperty.call(d,A))try{d[A].value=o(d[A].value),u.eventMap[A]=new Function(d[A].value)}catch{}}return!((c=(s=u?.event)===null||s===void 0?void 0:s.onClick)===null||c===void 0)&&c.linkType&&(u.style.cursor="pointer"),u},[i,e]);return n.createElement(t,Object.assign({},a,a.eventMap))})}const Ed=({rec:t,index:e,tempMap:i,resolver:o,includesCtaType:a=[],isActive:l,isNineProduct:s})=>{var c,r,u,d,A;const{schema:f}=ti();if(!t?.video)return null;let p=null;!((r=(c=t?.video)===null||c===void 0?void 0:c.bindProducts)===null||r===void 0)&&r.length?p="\u591A\u5546\u54C1CTA":!((u=t?.video)===null||u===void 0)&&u.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,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U,q,Q,me,re;if(!(a?.length>0&&!a?.includes((S=b?.item)===null||S===void 0?void 0:S.type))&&!((!a||a?.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"&&!(!((D=t?.video)===null||D===void 0)&&D.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)||((V=b?.item)===null||V===void 0?void 0:V.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"&&!(!((F=(y=t?.video)===null||y===void 0?void 0:y.bindProducts)===null||F===void 0)&&F.length))return null;if(b&&o){const K=o[s?"NineCommodity":(R=b?.item)===null||R===void 0?void 0:R.type],Te=Ii(K),Pe=(B=K?.extend)===null||B===void 0?void 0:B.defaulSetting,Be=((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",ue=mt.cloneDeep((X=b?.item)===null||X===void 0?void 0:X.style);if(ue.hasOwnProperty("backdropFilter")){const de=ue.backdropFilter;ue.backdropFilter=`blur(${de??0}px)`}return n.createElement(Te,Object.assign({style:Object.assign(Object.assign(Object.assign({},Pe?.style),ue),{zIndex:50,marginInlineStart:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},Pe?.textStyle),(U=b?.item)===null||U===void 0?void 0:U.textStyle),bindDatas:(Q=(q=b?.item)===null||q===void 0?void 0:q.bindDatas)!==null&&Q!==void 0?Q:[]},Pe?.props,(me=b?.item)===null||me===void 0?void 0:me.props,{event:((re=b?.item)===null||re===void 0?void 0:re.event)||{},schema:f,id:b?.id,key:b?.id,recData:t,isExternalLink:Be,index:e,isActive:l}))}else return null}},[t,o,i,f,b?.id,l]);return n.createElement(n.Fragment,null,m)};var Gt=n.memo(Ed);const Oo=({nudge:t})=>{var e,i,o,a,l,s;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=(a=t?.size)===null||a===void 0?void 0:a.height)!==null&&l!==void 0?l:38,backgroundColor:t?.backgroundColor,borderRadius:(s=t?.borderRadius)!==null&&s!==void 0?s: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:Oe(t?.content,t?.textStyle)}})))},kd=({tagList:t=[],setActiveIndex:e,style:i})=>{const{getRecommendVideos:o,setRtcList:a,setCacheRtcList:l,setCacheActiveIndex:s,setLoading:c,swiperRef:r,waterFallData:u,bffEventReport:d,selectTag:A,setSelectTag:f}=ze(),{backMainFeed:p}=Lt(),b=n.useMemo(()=>[Ni,...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!==Ni&&(v=S),c?.(!0),o?.({themeTag:v}).then(g=>{var h,w,C,P;xt.emit(bt.CHANGE_THEME_TAG,v),a?.((h=g?.recList)!==null&&h!==void 0?h:[]),l?.((w=g?.recList)!==null&&w!==void 0?w:[]),e?.(0),s?.(0),(P=(C=r?.current)===null||C===void 0?void 0:C.swiper)===null||P===void 0||P.slideTo(0)}).finally(()=>{c?.(!1)}),f?.(S)};return u||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,a;const{consentPopupCate:l}=ki(),s=(o=(i=e?.consentPopup)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.item;if(!s||!l&&!(!((a=s?.props)===null||a===void 0)&&a.open))return null;const c=t?.[s?.type],r=Ii(c);return n.createElement(r,Object.assign({},s?.props,{style:s?.style,event:s?.event||{},consentPopupCate:l}))};var Cd=n.memo(Id);const Pd=({data:t,minusHeight:e,tagHeight:i,onClick:o})=>{var a,l,s,c,r;return n.createElement("button",{style:{position:"absolute",[(a=t?.xPosit)!==null&&a!==void 0?a:"left"]:(s=(l=t?.backButton)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,[(c=t?.yPosit)!==null&&c!==void 0?c:"top"]:(t?.yPosit=="top"?e+i:0)+((r=t?.y)!==null&&r!==void 0?r: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:a,resolver:l,data:s=[],ctaType:c,tipText:r,nudge:u,_schema:d,hashTagStyle:A,hashTagRightMargin:f,tagList:p=[],defaultData:b})=>{var m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U;const q=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),Q=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png"),{schema:me}=ti(),{openMultiPosts:re}=ki(),[K,Te]=n.useState(0),Pe=n.useRef(0),[Be,ue]=n.useState(!0),de=n.useRef(),[_e,He]=n.useState(!1),[Ue,Ge]=n.useState(!1),[nt,Ze]=n.useState(new Date().getTime()),ke=n.useRef(!1),[Qe,Tt]=n.useState(2);n.useState(!1);const De=n.useRef(null),Fe=n.useRef(""),{loadVideos:We,bffEventReport:Z,loading:ee,setPopupDetailData:_,ctaEvent:le,swiperRef:we,waterFallData:ye,setOpenHashtag:$,appDomain:W,openHashtag:Ne,loadingImage:$e,isFromHashtag:Ke,popupDetailData:ot,bffFbReport:Je,curTime:Ve,h5EnterLink:et,isShowConsent:ct,selectTag:At,isPreview:zt,isEditor:Mt,cacheRtcList:yt,setRtcList:wt,cacheActiveIndex:qt,rtcList:gt,isNoMoreData:Xe,channel:Ee,refreshFeSession:fe,isDiyH5:be,pixelPvStatusRef:vt}=ze(),{backMainFeed:Ht,productView:Bt,jumpToWeb:Yi}=Lt(),{visibleHeight:ri,bottomHeight:ht}=bo(),oi=n.useMemo(()=>s.length>0&&!ee&&(Jo()||t?.enableSwiperTip),[s,ee,t?.enableSwiperTip]);n.useEffect(()=>{fe?.(!0)},[]),n.useEffect(()=>{if(s?.length>0){const L=new Date;de.current=L}},[s?.length]);const Pi=n.useCallback(()=>{var L,Y,G;const J=(Y=(L=b?.data)===null||L===void 0?void 0:L.sxpPageConf)===null||Y===void 0?void 0:Y.globalConfig;if(!((G=J?.session)===null||G===void 0)&&G.enable||tn(),et?.(),s.length>0){const se=new Date;de.current=se}},[s.length,et,b]);n.useEffect(()=>{var L;if(!c||c?.length<1)return;const Y=s?.findIndex(G=>{var J,se,ie,oe,ne,ae,pe,je,ge;const Ie=c?.[0];return Ie==="\u591A\u5546\u54C1CTA"?((J=G?.video)===null||J===void 0?void 0:J.bindProducts)&&((ie=(se=G?.video)===null||se===void 0?void 0:se.bindProducts)===null||ie===void 0?void 0:ie.length)>0:Ie==="\u5546\u54C1CTA"?(oe=G?.video)===null||oe===void 0?void 0:oe.bindProduct:((ae=(ne=G?.video)===null||ne===void 0?void 0:ne.bindCta)===null||ae===void 0?void 0:ae.itemId)===Ie&&(((pe=G?.video)===null||pe===void 0?void 0:pe.url)||((ge=(je=G?.video)===null||je===void 0?void 0:je.imgUrls)===null||ge===void 0?void 0:ge.length))})||0;Y!==-1&&((L=we?.current)===null||L===void 0||L.swiper.slideTo(Y))},[s,c,we]);const $t=n.useCallback(L=>{var Y,G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St;const Le=s?.[K];let Ce="";ot&&(!((G=(Y=Le?.video)===null||Y===void 0?void 0:Y.bindProducts)===null||G===void 0)&&G.length||!((J=Le?.video)===null||J===void 0)&&J.bindProduct)?Ce="pdpPage":ot&&((ne=a?.[(oe=(ie=(se=Le?.video)===null||se===void 0?void 0:se.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":Ke?Ce="hashTagPage":!((ae=Le?.video)===null||ae===void 0)&&ae.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"),Z?.({eventInfo:{sessionDuration:Math.floor((new Date-Ve.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(Ie=Le?.video)===null||Ie===void 0?void 0:Ie.itemId,productId:(dt=Le?.product)===null||dt===void 0?void 0:dt.itemId,position:K+"",fromKName:L||Ce,fromKPage:location?.href,ctatId:(st=(at=(lt=Le?.video)===null||lt===void 0?void 0:lt.bindCta)===null||at===void 0?void 0:at.itemId)!==null&&st!==void 0?st:"",traceInfo:(St=(pt=(tt=Le?.video)===null||tt===void 0?void 0:tt.traceInfo)!==null&&pt!==void 0?pt:(qe=Le?.product)===null||qe===void 0?void 0:qe.traceInfo)!==null&&St!==void 0?St:""}})},[s,Z,K,ot,a,Ke,Ve]);n.useEffect(()=>{const L=s?.[K],Y=()=>{const G=!Ne&&!ct;document.visibilityState==="hidden"?(G&&(xt.emit(bt.PAGE_DID_HIDE,L),Ae(L)),(t?.playbook!=="organic menu"||K!==0||Ee)&&(fe?.(!1,$t)||$t())):document.visibilityState==="visible"&&(ke.current===!0&&(Ze(new Date().getTime()),ke.current=!1),fe?.(!1),Pi(),G&&(setTimeout(()=>{xt.emit(bt.PAGE_DID_SHOW,L)},100),Ht("external",At)))};return document.addEventListener("visibilitychange",Y),()=>{document.removeEventListener("visibilitychange",Y)}},[K,Z,s,Pi,ot,Ke,a,Ve,Ht,Ne,ct,At,Ee,$t,fe]);const di=n.useCallback(mt.debounce(()=>{var L;(L=De.current)===null||L===void 0||L.setLoopPlay(!1),fe?.(!1,$t)},1e3),[$t,fe]);n.useEffect(()=>{const L=["touchstart","touchcancel"];return L.forEach(Y=>{window.addEventListener(Y,di)}),()=>{L.forEach(Y=>{window.removeEventListener(Y,di)})}},[di]);const ei=n.useMemo(()=>{let L=0;return p.length>0&&(L+=45,ye&&(L-=45)),L},[p,ye]),Ft=n.useMemo(()=>{let L=0;return t?.logoUrl&&t?.isShowLogo&&(L+=56),L},[t]),Ut=n.useMemo(()=>(i||ri)-Ft-ei,[i,ri,Ft,ei]),Et=n.useMemo(()=>{var L;const Y=K===0&&!ye&&!Mt&&!be?[(L=s?.[0])!==null&&L!==void 0?L:null]:s?.map((G,J)=>K===J||J-1===K||J+1===K?G:null);return Y?.length?!ye&&!Xe&&!be?Y.concat([{loading:!0}]):Y:[]},[s,K,ye,Mt,Xe,be]),Gi=n.useMemo(()=>{var L,Y,G,J;if(t?.logoUrl&&t?.isShowLogo){const se=(Y=(L=t?.logoBar)===null||L===void 0?void 0:L.onClick)===null||Y===void 0?void 0:Y.value,ie=((J=(G=t?.logoBar)===null||G===void 0?void 0:G.onClick)===null||J===void 0?void 0:J.linkType)==="externalLink",oe=Et[K];return n.createElement("div",Object.assign({className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},se&&{onClick:ne=>{var ae,pe,je,ge;ie&&Yi(ne,oe,(ae=oe?.video)===null||ae===void 0?void 0:ae.bindProduct,(pe=oe?.video)===null||pe===void 0?void 0:pe.bindCta,K,((je=oe?.product)===null||je===void 0?void 0:je.traceInfo)||((ge=oe?.video)===null||ge===void 0?void 0:ge.traceInfo)),new Function(se)()}}),n.createElement("img",{src:t?.logoUrl,alt:"logo"}))}return null},[t,K,Et]),Oi=n.useCallback((L,Y)=>{var G,J,se,ie,oe,ne,ae,pe,je,ge;return L==="organic menu"?n.createElement(En,Object.assign({recData:s?.[1]},(se=(J=(G=t?.multiPosts)===null||G===void 0?void 0:G[0])===null||J===void 0?void 0:J.item)===null||se===void 0?void 0:se.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)):!((ae=L?.video)===null||ae===void 0)&&ae.url?n.createElement(gd,Object.assign({key:nt},K===Y&&{ref:De},{rec:L,index:Y,muted:Be,data:s,height:Ut,activeIndex:K,videoPostConfig:t?.videoPost,videoPlayIcon:t?.videoPlayIcon,loopPlay:!0,swiperRef:we,visibleHeight:ri})):!((pe=L?.video)===null||pe===void 0)&&pe.imgUrls?n.createElement(xd,{key:L?.video.itemId,imgUrls:L?.video.imgUrls,width:o,height:Ut,rec:L,index:Y,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,dt)=>{var lt,at,st,tt,pt,qe,St,Le;const Ce=l[(lt=Ie?.item)===null||lt===void 0?void 0:lt.type],jt=Ii(Ce),Ot=(at=Ce?.extend)===null||at===void 0?void 0:at.defaulSetting;return n.createElement(jt,Object.assign({key:`${Y}${dt}`,textStyle:Object.assign(Object.assign({},Ot?.textStyle),(st=Ie?.item)===null||st===void 0?void 0:st.textStyle),bindDatas:(pt=(tt=Ie?.item)===null||tt===void 0?void 0:tt.bindDatas)!==null&&pt!==void 0?pt:[]},Ot?.props,(qe=Ie?.item)===null||qe===void 0?void 0:qe.props,{event:((St=Ie?.item)===null||St===void 0?void 0:St.event)||{},schema:me,id:Ie?.id,viewTime:de.current,rec:L,isPost:!0,tipText:r,style:Object.assign(Object.assign(Object.assign({},Ot?.style),(Le=Ie?.item)===null||Le===void 0?void 0:Le.style),{height:"100%",overflow:"auto"}),index:Y,isActive:K===Y}))}):null},[o,s,Ut,Be,K,t?.productPost,t?.videoPlayIcon,de,r,l,me,nt,ri]),Li=n.useCallback(L=>{Ge(L)},[]),z=n.useMemo(()=>Ue?{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"},[Ue]),H=n.useCallback((L,Y)=>{var G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st;if(L?.video){let tt=null;!((J=(G=L?.video)===null||G===void 0?void 0:G.bindProducts)===null||J===void 0)&&J.length?tt="\u591A\u5546\u54C1CTA":!((se=L?.video)===null||se===void 0)&&se.bindProduct?tt="\u5546\u54C1CTA":tt=(oe=(ie=L?.video)===null||ie===void 0?void 0:ie.bindCta)===null||oe===void 0?void 0:oe.itemId;const pt=a?.[tt],qe=t?.nineProductEnable&&Y===(gt?.[0]==="organic menu"?2:1)&&((ne=["MultiCommodity","MultiCommodityDiro","MultiCommodityDiroNew"])===null||ne===void 0?void 0:ne.includes((ae=pt?.item)===null||ae===void 0?void 0:ae.type));return n.createElement(n.Fragment,null,qe&&n.createElement(Gt,{rec:L,index:Y,tempMap:a,resolver:l,isActive:Y===K,isNineProduct:qe}),((pe=L?.video)===null||pe===void 0?void 0:pe.title)&&!Ue&&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:u}),(t?.isShowCTA===void 0||t?.isShowCTA)&&!qe?n.createElement("div",{className:"clc-sxp-bottom-card"},n.createElement(Gt,{rec:L,index:Y,tempMap:a,resolver:l,isActive:Y===K,includesCtaType:[]})):null,n.createElement("div",{style:{display:"flex",flexDirection:"column"}},n.createElement(xi,{className:"clc-sxp-bottom-text",isPost:!0,foldText:r?.foldText,unfoldText:r?.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:Li}),n.createElement(Gt,{rec:L,index:Y,tempMap:a,resolver:l,includesCtaType:["AniLink"],isActive:Y===K}),n.createElement(Co,{index:K,tags:(lt=(dt=L?.video)===null||dt===void 0?void 0:dt.hashTags)!==null&&lt!==void 0?lt:[],itemId:(at=L?.video)===null||at===void 0?void 0:at.itemId,itemType:!((st=L?.video)===null||st===void 0)&&st.itemId?"VIDEO":null,rec:L,hashTagStyle:A,hashTagRightMargin:o-(f??0)}))),n.createElement(Gt,{rec:L,index:Y,tempMap:a,resolver:l,includesCtaType:["AniLinkPopup"],isActive:Y===K}))}return null},[e,K,a,l,r,u,A,t,Li,Ue,z,gt]),te=n.useCallback((L,Y,G)=>{var J,se,ie,oe;if(!t?.isShowLike||!G)return;let ne=(J=t?.likeIconY)!==null&&J!==void 0?J:400;return ye&&ne<40&&t?.likeIconYPosit==="top"&&(ne+=40),t?.likeIconYPosit==="top"&&(ne+=Ft),t?.likeIconFixed&&t?.likeIconYPosit!=="top"&&(ne+=ht),L?.video?n.createElement(kn,{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",[(se=t.likeIconXPosit)!==null&&se!==void 0?se:"right"]:(ie=t.likeIconX)!==null&&ie!==void 0?ie:0,[(oe=t.likeIconYPosit)!==null&&oe!==void 0?oe:"bottom"]:ne},position:Y}):null},[t,ye,ht]),he=L=>{var Y,G,J,se,ie,oe;if(!(!((Y=L?.video)===null||Y===void 0)&&Y.url)&&(!((G=L?.video)===null||G===void 0)&&G.imgUrls)){const ne=Date.now(),ae=Pe.current===0?0:(ne-Pe.current)/1e3;Z?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(se=(J=L?.video)===null||J===void 0?void 0:J.itemId)!==null&&se!==void 0?se:"",contentName:(ie=L?.video.title)!==null&&ie!==void 0?ie:"",imageEndTime:`${ne}`,playDuration:`${ae}`,contentTags:JSON.stringify((oe=L?.video.tags)!==null&&oe!==void 0?oe:[]),position:K+"",contentFormat:"image",traceInfo:L?.video.traceInfo}})}},ce=(L,Y)=>{var G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St,Le,Ce,jt;if(zt||ye)return;const Ot=new Date-Ve.current;if(t?.openSlideSkip&&Ot>=((G=t?.slideSkipStartTime)!==null&&G!==void 0?G:0)&&Qo()&&L){const ci=((ie=(se=(J=L?.video)===null||J===void 0?void 0:J.bindProducts)===null||se===void 0?void 0:se[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)||((ae=L?.product)===null||ae===void 0?void 0:ae.link),ut=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(ci){let li=null;!((Ie=L?.video)===null||Ie===void 0)&&Ie.url?li="video":!((lt=(dt=L?.video)===null||dt===void 0?void 0:dt.imgUrls)===null||lt===void 0)&&lt.length&&(li="image"),Z?.({eventInfo:{eventSubject:"swipeToWeb",eventDescription:"User swiped to web",productId:(at=ut?.itemId)!==null&&at!==void 0?at:"",productName:(st=ut?.title)!==null&&st!==void 0?st:"",price:ut?.price?ut?.price+"":"0",productCollection:(tt=ut?.collection)!==null&&tt!==void 0?tt:"",contentTags:ut?.tags?JSON.stringify(ut?.tags):"",position:Y+"",contentId:(qe=(pt=L?.video)===null||pt===void 0?void 0:pt.itemId)!==null&&qe!==void 0?qe:"",traceInfo:(jt=(Le=(St=L?.video)===null||St===void 0?void 0:St.traceInfo)!==null&&Le!==void 0?Le:(Ce=L?.product)===null||Ce===void 0?void 0:Ce.traceInfo)!==null&&jt!==void 0?jt:"",contentFormat:li}}),ke.current=!0,window.location.href=window.getJointUtmLink(ci)}}},ve=L=>{var Y,G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St,Le;const Ce=s[L.previousIndex];if(!Ce)return;let jt=null;!((Y=Ce?.video)===null||Y===void 0)&&Y.url?jt="video":!((J=(G=Ce?.video)===null||G===void 0?void 0:G.imgUrls)===null||J===void 0)&&J.length&&(jt="image"),L.previousIndex-L.activeIndex<0?(Z?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(ie=(se=Ce?.video)===null||se===void 0?void 0:se.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=(ae=Ce?.video)===null||ae===void 0?void 0:ae.traceInfo)!==null&&pe!==void 0?pe:(je=Ce?.product)===null||je===void 0?void 0:je.traceInfo)!==null&&ge!==void 0?ge:"",contentFormat:jt,position:((Ie=L.previousIndex)!==null&&Ie!==void 0?Ie:0)+""}}),he(Ce),ce(Ce,L.previousIndex)):(Z?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(lt=(dt=Ce?.video)===null||dt===void 0?void 0:dt.itemId)!==null&&lt!==void 0?lt:"",productId:(st=(at=Ce.product)===null||at===void 0?void 0:at.itemId)!==null&&st!==void 0?st:"",requestId:null,traceInfo:(St=(pt=(tt=Ce?.video)===null||tt===void 0?void 0:tt.traceInfo)!==null&&pt!==void 0?pt:(qe=Ce?.product)===null||qe===void 0?void 0:qe.traceInfo)!==null&&St!==void 0?St:"",contentFormat:jt,position:((Le=L.previousIndex)!==null&&Le!==void 0?Le:0)+""}}),he(Ce)),Ae(Ce),de.current=new Date},Ae=L=>{var Y,G,J;!(!((Y=L?.video)===null||Y===void 0)&&Y.url)&&!(!((G=L?.video)===null||G===void 0)&&G.imgUrls)&&L?.product&&Bt(L,L.product,(J=L?.product)===null||J===void 0?void 0:J.bindCta,de.current,K)};n.useEffect(()=>{const L=s[K];Ne?Ae(L):de.current=new Date},[Ne,s,K]),n.useEffect(()=>{if(!t?.enableCookieSetting)return;function L(G){if(!G||G.indexOf(".")===-1)return"";const J=G.split(".");return J.length>=2?"."+J.slice(-2).join("."):""}window.OptanonWrapper=function(){const G=window?.OnetrustActiveGroups;G&&G?.length>2};const Y=G=>{var J,se;const ie=window?.OnetrustActiveGroups;(!((J=G.target)===null||J===void 0)&&J.closest(".ot-pc-refuse-all-handler")||!((se=G.target)===null||se===void 0)&&se.closest(".save-preference-btn-handler"))&&(window.OptanonWrapper=function(){var oe,ne;const ae=window?.OnetrustActiveGroups;if(ae)if(ae?.includes("4"))window?.loadMetaPixel(!1,SXP_CONFIG==null?void 0:SXP_CONFIG.meta_conversion_api_pid),window?.fbq("consent","grant"),vt.current=!0,Fe.current&&ie?.includes("4");else{window?.fbq("consent","revoke"),Fe.current=Ji("_fbp"),Uo("_fbp","/",L(window.location.hostname));const pe=s[K],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")&&Z?.({eventInfo:{eventSubject:"refuseCookie",eventDescription:"refuseCookie",traceInfo:je},isActiveTargetingCookie:!1})}})};return document.addEventListener("click",Y),()=>{document.removeEventListener("click",Y)}},[t,Z,s,K]);const Se=(L,Y,G)=>{var J,se,ie,oe,ne,ae,pe,je;const ge=s[L];if(!(!((J=ge?.video)===null||J===void 0)&&J.url)&&(!((se=ge?.video)===null||se===void 0)&&se.imgUrls)){const Ie=Date.now();Pe.current=Ie,Z?.({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((ae=ge?.video.tags)!==null&&ae!==void 0?ae:[]),position:L+"",contentFormat:"image",traceInfo:ge?.video.traceInfo,loadTime:Y?.loadTime}}),G&&(Je?.({eventName:"ViewContent",product:(pe=ge?.video)===null||pe===void 0?void 0:pe.bindProduct}),Je?.({eventName:"PageView",product:(je=ge?.video)===null||je===void 0?void 0:je.bindProduct}))}},xe=n.useCallback(L=>{var Y,G,J,se,ie,oe;if(!L)return;let ne=(Y=t?.muteIconY)!==null&&Y!==void 0?Y:23;return ye&&ne<40&&t?.muteIconYPosit==="top"&&(ne+=40),t?.muteIconYPosit==="top"&&(ne+=Ft),t?.muteIconFixed&&t?.muteIconYPosit!=="top"&&(ne+=ht),(t?.isShowMute===void 0||t?.isShowMute===!0)&&n.createElement(Xi,{style:{position:t?.muteIconFixed?"fixed":"absolute",visibility:!((J=(G=Et?.[K])===null||G===void 0?void 0:G.video)===null||J===void 0)&&J.url?"visible":"hidden",zIndex:999,transform:"translate3d(0px,0px,0px)",[(se=t?.muteIconXPosit)!==null&&se!==void 0?se:"right"]:(ie=t?.muteIconX)!==null&&ie!==void 0?ie:0,[(oe=t?.muteIconYPosit)!==null&&oe!==void 0?oe:"bottom"]:ne},defaultValue:Be,activeIcon:t?.unMuteIcon?t?.unMuteIcon:q,unactiveIcon:t?.muteIcon?t?.muteIcon:Q,onChange:ue})},[t,Et,K,Be,ye,ht]),Me=n.useMemo(()=>ee?n.createElement("div",{style:{height:Ut,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:$e,alt:"loading...",style:{objectFit:"contain"}})):Et?.map((L,Y)=>n.createElement(Dt,{key:Y,virtualIndex:Y,style:{overflow:"hidden"}},L&&n.createElement(n.Fragment,null,L?.loading?n.createElement("div",{style:{height:Ut,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:$e,alt:"loading...",style:{objectFit:"contain"}})):n.createElement(n.Fragment,null,H(L,Y),te(L,Y,!t?.likeIconFixed),xe(!t?.muteIconFixed),Oi(L,Y))))),[o,s,Ut,ee,H,Oi,Et,$e,nt,xe]);return n.createElement("div",{id:"sxp-render",className:"clc-sxp-container",style:{height:Ut}},s?.length<1&&ee?n.createElement("div",{style:{height:Ut,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:$e,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:`${Ft}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:()=>{!mt.isEqual(gt,yt)&&yt&&yt?.length&&wt?.(yt),$?.(!0)}}),Gi,n.createElement(Lo,{tagList:p,setActiveIndex:Te,style:{top:Ft}}),((w=t?.backButton)===null||w===void 0?void 0:w.enable)&&!Ee&&!re&&!ye&&n.createElement(Mo,{data:t?.backButton,minusHeight:Ft,tagHeight:ei,onClick:()=>history?.back()}),(((x=(M=(D=(P=(C=t?.multiPosts)===null||C===void 0?void 0:C[0])===null||P===void 0?void 0:P.item)===null||D===void 0?void 0:D.props)===null||M===void 0?void 0:M.backButton)===null||x===void 0?void 0:x.enable)&&Ee||re)&&!ye&&n.createElement(Mo,{data:(j=(k=(V=(T=t?.multiPosts)===null||T===void 0?void 0:T[0])===null||V===void 0?void 0:V.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.backButton,minusHeight:Ft,tagHeight:ei,onClick:()=>{var L,Y;const G=Et?.[K];Z?.({eventInfo:{eventSubject:"backMultiPostClick",eventDescription:"backMultiPostClick",traceInfo:((L=G?.video)===null||L===void 0?void 0:L.traceInfo)||((Y=G?.product)===null||Y===void 0?void 0:Y.traceInfo)||""}}),location?.reload()}}),oi?n.createElement(wd,{imageUrl:t?.swipeTipIcon,style:{top:`${50-((E=t?.swipeTipOffset)!==null&&E!==void 0?E:0)}%`},duration:t?.swiperTipAniDur}):null,n.createElement(Zt,{style:{marginTop:ei},ref:we,onSlideChange:()=>{we.current.swiper.allowTouchMove=!1,setTimeout(()=>{we.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:L=>{Te(L.activeIndex),!Ne&&(ve(L),!(ye||Mt||be)&&L?.activeIndex+1>=s?.length&&(_e||(He(!0),We?.(Qe).then(Y=>{var G;He(!1),Y&&((G=Y?.recList)===null||G===void 0?void 0:G.length)>0&&Tt(Qe+1)}))))},direction:"vertical",height:Ut},Me,te(Et[K],K,!!t?.likeIconFixed),xe(!!t?.muteIconFixed)),n.createElement(To,Object.assign({},(R=(F=(y=t?.hashTag)===null||y===void 0?void 0:y[0])===null||F===void 0?void 0:F.item)===null||R===void 0?void 0:R.props)),n.createElement(Cd,{resolver:l,globalConfig:t}),re&&n.createElement(En,Object.assign({},(I=(O=(B=t?.multiPosts)===null||B===void 0?void 0:B[0])===null||O===void 0?void 0:O.item)===null||I===void 0?void 0:I.props,(U=(X=(N=t?.multiPosts)===null||N===void 0?void 0:N[0])===null||X===void 0?void 0:X.item)===null||U===void 0?void 0:U.event,{style:{position:"fixed",top:0,left:0,right:0,bottom:ht+"px"}}))),t?.enableCookieSetting&&n.createElement("div",{style:{position:"fixed",bottom:ht+"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:a,index:l})=>n.createElement(Zt,{defaultValue:0,direction:"horizontal",modules:[yi,wi],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(s=>n.createElement(Dt,{key:s},n.createElement(In,{src:s,height:i,imgUrlsPostConfig:o}))));var Md=n.memo(Ld);const jd=({rec:t,index:e,height:i,data:o,muted:a,activeIndex:l,videoPostConfig:s,width:c})=>{const[r,u]=n.useState(!1),d=n.useRef(null),{bffEventReport:A,sxpParameter:f,waterFallData:p,openHashtag:b}=ze(),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=a)},[a]);const D=n.useCallback(()=>{var O;(O=d.current)===null||O===void 0||O.play()},[]),M=kt("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),x=n.useCallback(()=>{var O,I,N,X,U,q,Q,me,re,K,Te,Pe,Be;u(!1);const ue=o[e];if(ue&&(!((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=((X=(N=d.current)===null||N===void 0?void 0:N.duration)!==null&&X!==void 0?X:0).toFixed(2),_e=((q=(U=d.current)===null||U===void 0?void 0:U.currentTime)!==null&&q!==void 0?q:0).toFixed(2),He=g?"0":"1";A?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(me=(Q=ue?.video)===null||Q===void 0?void 0:Q.itemId)!==null&&me!==void 0?me:"",contentName:(K=(re=ue?.video)===null||re===void 0?void 0:re.title)!==null&&K!==void 0?K:"",playType:He,startTime:_e,videoDuration:de,contentTags:JSON.stringify((Pe=(Te=ue?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Pe!==void 0?Pe:[]),position:e+"",contentFormat:"video",traceInfo:(Be=ue?.video)===null||Be===void 0?void 0:Be.traceInfo}}),h(!1)}},[A,o,e,g]),T=n.useCallback(()=>{v(!0)},[]),V=n.useCallback(O=>()=>{var I,N,X,U,q;if(!S)return;const Q=(I=d.current)===null||I===void 0?void 0:I.paused;switch(O){case"start":if(!Q)return;(N=d.current)===null||N===void 0||N.play(),u(!1);break;case"pause":if(Q)return;(X=d.current)===null||X===void 0||X.pause(),u(!0);break;default:Q?(U=d.current)===null||U===void 0||U.play():(q=d.current)===null||q===void 0||q.pause(),u(!Q);break}},[S]),k=n.useCallback(()=>{var O,I,N,X,U,q,Q,me,re,K,Te,Pe,Be;const ue=o[e],de=((I=(O=d.current)===null||O===void 0?void 0:O.duration)!==null&&I!==void 0?I:0).toFixed(2),_e=((X=(N=d.current)===null||N===void 0?void 0:N.currentTime)!==null&&X!==void 0?X:0).toFixed(2);if(!((U=d?.current)===null||U===void 0)&&U.duration){const He=(((q=d?.current)===null||q===void 0?void 0:q.currentTime)-m.current).toFixed(2);A?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(me=(Q=ue?.video)===null||Q===void 0?void 0:Q.itemId)!==null&&me!==void 0?me:"",contentName:(K=(re=ue?.video)===null||re===void 0?void 0:re.title)!==null&&K!==void 0?K:"",endTime:_e,videoDuration:de,playDuration:He,contentTags:JSON.stringify((Pe=(Te=ue?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Pe!==void 0?Pe:[]),position:e+"",contentFormat:"video",traceInfo:(Be=ue?.video)===null||Be===void 0?void 0:Be.traceInfo}})}},[o,e,A]),j=n.useMemo(()=>s?.mode==="2",[s]),E=n.useMemo(()=>{var O;return s?.mode==="2"?`translateY(-${50+((O=s?.offsetTop)!==null&&O!==void 0?O:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[s]),y=n.useMemo(()=>{var O;return((O=t?.video)===null||O===void 0?void 0:O.cover)||C},[C,t]),F=n.useCallback(()=>{if(!w||!d||!d.current||!w.current)return;const O=d?.current,I=w?.current,N=I.getContext("2d"),X=window?.innerWidth,U=window?.innerHeight;I.height=U,I.width=X,N?.drawImage(O,0,0,I.width,I.height),P(I.toDataURL())},[]);n.useEffect(()=>{var O,I,N,X;if(d.current){if(u(!1),!d.current.src){const U=t?.video.url;if(U.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const q=new window.Hls;q.loadSource(U),q.attachMedia(d.current)}else d.current.canPlayType("application/vnd.apple.mpegurl"),d.current.src=U;else d.current.src=U;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),(X=d.current)===null||X===void 0||X.addEventListener("loadeddata",F),()=>{var U,q,Q,me;(U=d.current)===null||U===void 0||U.removeEventListener("loadedmetadata",T),(q=d.current)===null||q===void 0||q.removeEventListener("canplay",T),(Q=d.current)===null||Q===void 0||Q.removeEventListener("playing",x),(me=d.current)===null||me===void 0||me.removeEventListener("loadeddata",F)}}},[T,x,t?.video,F]);const R=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)&&!r&&V("pause")()};return window.addEventListener("beforeunload",O),()=>{window.removeEventListener("beforeunload",O)}},[l,e,t,d,V,r]);const B=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:V(),style:{position:"relative",width:c,height:i,overflow:"hidden"}},n.createElement(Pt,{src:y,style:Object.assign({height:i,width:c,objectFit:"cover"},B)}),n.createElement("canvas",{ref:w,style:{display:"none"}}),n.createElement("div",{style:{position:"absolute",width:c,height:i,top:"50%",transform:E,left:0,right:0}},n.createElement("div",{style:{position:"relative",width:c,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:D,style:{width:"100%",height:i,objectFit:"contain"}}),n.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:M,alt:"video pause image"}))),R):n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:V(),style:{position:"relative",width:c,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:D}),R,n.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:M,alt:"video pause image"}))):null};var Nd=n.memo(jd);const Ci={};Object.values(Ui).forEach(t=>{Ci[t.extend.type]=t});const Rd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Dd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Vd=({data:t=[],globalConfig:e,tipText:i,nudge:o,tempMap:a,descStyle:l,hashTagStyle:s,containerHeight:c=664,containerWidth:r=375,appDomain:u,tagList:d=[]})=>{const A=n.useMemo(()=>{let P=0;return e?.logoUrl&&e?.isShowLogo&&(P+=45),d.length>0&&(P+=45),c-P},[e,c,d]),f=(P,D)=>{var M,x,T,V;if(!((M=P?.video)===null||M===void 0)&&M.url)return n.createElement(Nd,{rec:P,index:D,muted:!0,width:r,data:t??[],height:A,activeIndex:D,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:r,height:A,rec:P,index:D,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(V=e?.productPost)===null||V===void 0?void 0:V.map((k,j)=>{var E,y,F,R,B,O,I,N;const X=Ci[(E=k?.item)===null||E===void 0?void 0:E.type],U=Ii(X),q=(y=X?.extend)===null||y===void 0?void 0:y.defaulSetting;return n.createElement(U,Object.assign({key:`${D}${j}`,textStyle:Object.assign(Object.assign({},q?.textStyle),(F=k?.item)===null||F===void 0?void 0:F.textStyle),bindDatas:(B=(R=k?.item)===null||R===void 0?void 0:R.bindDatas)!==null&&B!==void 0?B:[]},q?.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({},q?.style),(N=k?.item)===null||N===void 0?void 0:N.style),{width:r,height:A,overflow:"auto"}),index:D}))})},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,D)=>e?.isShowCTA===void 0||e?.isShowCTA?n.createElement("div",{className:"clc-sxp-bottom-card"},n.createElement(Gt,{rec:P,index:D,tempMap:a,resolver:Ci,isActive:!0})):null,m=(P,D)=>{var M,x,T,V,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,D),n.createElement("div",null,n.createElement(xi,{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(Gt,{rec:P,index:D,tempMap:a,resolver:Ci,includesCtaType:["AniLink"],isActive:!0})),n.createElement(Co,{index:D,tags:(k=(V=P?.video)===null||V===void 0?void 0:V.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:s})),n.createElement(Gt,{rec:P,index:D,tempMap:a,resolver:Ci,includesCtaType:["AniLinkPopup"],isActive:!0})):null},S=kt(Dd,u),v=kt(Rd,u),g=(P,D)=>{var M,x,T,V;if(!e?.isShowLike)return;let k=(M=e?.likeIconY)!==null&&M!==void 0?M:400;return k<40&&(k+=40),P?.video?n.createElement(kn,{key:P.position,activeIcon:(x=e?.likeIcon)!==null&&x!==void 0?x:S,unActicveIcon:(T=e?.unlikeIcon)!==null&&T!==void 0?T:v,position:D,active:P.isCollected,recData:P,className:"clc-sxp-like-button",style:{top:k,right:(V=e?.likeIconX)!==null&&V!==void 0?V:0}}):null},h=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",u),w=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",u),C=(P,D)=>{var M,x,T,V;return n.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},p,n.createElement(Lo,{tagList:d}),n.createElement(Xi,{style:{position:"absolute",right:(M=e?.muteIconX)!==null&&M!==void 0?M:0,visibility:!((T=(x=t?.[D])===null||x===void 0?void 0:x.video)===null||T===void 0)&&T.url?"visible":"hidden",bottom:(V=e?.muteIconY)!==null&&V!==void 0?V:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:h,unactiveIcon:e?.muteIcon?e?.muteIcon:w}),f(P,D),m(P,D),g(P,D))};return n.createElement("div",{className:Re.css({width:"100%",height:c,display:"flex",boxSizing:"border-box",gap:16,pointerEvents:"none",userSelect:"none",transform:"scale(0.7) translateX(-22%) translateY(-140px)"})},t?.map((P,D)=>C(P,D)))};var Bd=n.memo(Vd);const Fd=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:o,rec:a,index:l,swiperRef:s,data:c=[],loopPlay:r})=>{const{isActive:u}=gi(),[d,A]=n.useState(!1);n.useEffect(()=>{u&&d&&r&&setTimeout(()=>{var p,b,m,S;if(l===c?.length-1)(p=s?.current)===null||p===void 0||p.swiper.slideTo(0);else{const v=(m=(b=s?.current)===null||b===void 0?void 0:b.swiper)===null||m===void 0?void 0:m.activeIndex;(S=s?.current)===null||S===void 0||S.swiper.slideTo(v+1)}},3e3)},[u,d,c,l,s,r]);const f=()=>{A(!0)};return n.createElement(Zt,{defaultValue:0,direction:"horizontal",modules:[yi,wi],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(p=>n.createElement(Dt,{key:p},n.createElement(In,{src:p,height:i,imgUrlsPostConfig:o,onShowFirstImage:f}))))};var Wd=n.memo(Fd);const zd=n.forwardRef(({rec:t,index:e,height:i,data:o,muted:a,activeIndex:l,videoPostConfig:s,width:c,swiperRef:r,videoPlayIcon:u,onUpdateTimeLine:d,loopPlay:A,onPlay:f,onPause:p},b)=>{const{isActive:m}=gi(),[S,v]=n.useState(!1),g=n.useRef(null),{bffEventReport:h,sxpParameter:w,waterFallData:C,openHashtag:P}=ze();n.useRef(0);const[D,M]=n.useState(!1);n.useState(!0),n.useRef(null),n.useState("");const x=`pb-cache-video-${e}`,T=n.useRef(null),V=n.useRef(A),k=t.video.scene;n.useEffect(()=>{V.current=A},[A]),n.useImperativeHandle(b,()=>({play(){var N;g.current&&(R(),(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){V.current=N},isPlaying(){var N;return!(!((N=g?.current)===null||N===void 0)&&N.paused)}})),n.useEffect(()=>{g.current&&(g.current.muted=a)},[a]);const j=kt("/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 X,U,q,Q,me,re;if(!m||!g?.current||!D)return;const K=(X=g.current)===null||X===void 0?void 0:X.paused;switch(N){case"start":if(!K)return;(U=g.current)===null||U===void 0||U.play(),v(!1);break;case"pause":if(K)return;(q=g.current)===null||q===void 0||q.pause(),v(!0);break;default:K?(((Q=g?.current)===null||Q===void 0?void 0:Q.currentTime)>=k?.endTime&&(g.current.currentTime=k?.startTime),(me=g.current)===null||me===void 0||me.play()):(re=g.current)===null||re===void 0||re.pause(),v(!K);break}},[D]),F=n.useMemo(()=>s?.mode==="2",[s]),R=()=>{g.current&&setTimeout(()=>{var N,X,U,q,Q,me,re,K,Te;if(((N=g?.current)===null||N===void 0?void 0:N.currentTime)>=((X=k?.endTime)!==null&&X!==void 0?X:0)){if((U=g.current)===null||U===void 0||U.pause(),!V.current)return;if(e===o?.length-1)(Q=(q=r?.current)===null||q===void 0?void 0:q.swiper)===null||Q===void 0||Q.slideTo(0);else{const Pe=(re=(me=r?.current)===null||me===void 0?void 0:me.swiper)===null||re===void 0?void 0:re.activeIndex;(Te=(K=r?.current)===null||K===void 0?void 0:K.swiper)===null||Te===void 0||Te.slideTo(Pe+1)}}})},B=()=>{v(!0),p?.()},O=()=>{var N;const X=((N=g?.current)===null||N===void 0?void 0:N.currentTime)-k?.startTime;f?.(e,X)};n.useEffect(()=>{var N,X,U,q;if(!m)return;const Q=k?.mediaUrl;if(!Q)return;v(!1);const me=document.querySelector(`#${x}`);if(!me||(g.current=hi?.(me),!g?.current))return;const re=window?.Hls;let K=T?.current;return Q.includes(".m3u8")&&re&&re.isSupported()?(K=new re,K?.loadSource(Q),K?.attachMedia(g?.current),K?.on(re.Events.MANIFEST_PARSED,function(){var Te;g.current.currentTime=k?.startTime,(Te=g?.current)===null||Te===void 0||Te.play()})):g.current.src=Q,(N=g.current)===null||N===void 0||N.addEventListener("loadedmetadata",E),(X=g?.current)===null||X===void 0||X.addEventListener("pause",B),(U=g?.current)===null||U===void 0||U.addEventListener("play",O),(q=g.current)===null||q===void 0||q.addEventListener("timeupdate",R),()=>{var Te,Pe,Be,ue,de;T?.current&&((Te=T?.current)===null||Te===void 0||Te.destroy()),M(!1),(Pe=g.current)===null||Pe===void 0||Pe.removeEventListener("loadedmetadata",E),(Be=g.current)===null||Be===void 0||Be.removeEventListener("pause",B),(ue=g.current)===null||ue===void 0||ue.removeEventListener("play",O),(de=g.current)===null||de===void 0||de.removeEventListener("timeupdate",R)}},[m]);const I=n.useMemo(()=>{var N;return!w?.placeholder_image||D?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"})},[D,w?.placeholder_image]);return n.useMemo(()=>F?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[F]),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(Pt,{className:"clc-pb-video-pause",src:u??j,alt:"pause"})):null});var Hd=n.memo(zd);const qi={};Object.values(Ui).forEach(t=>{qi[t.extend.type]=t});const Ud="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Xd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",qd=n.forwardRef(({data:t=[],globalConfig:e,tipText:i,nudge:o,tempMap:a,descStyle:l,hashTagStyle:s,containerHeight:c=664,containerWidth:r=375,appDomain:u,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,D]=n.useState(0);n.useMemo(()=>{let O=0;return e?.logoUrl&&e?.isShowLogo&&(O+=45),d.length>0&&(O+=45),c-O},[e,c,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(X=>N?.endsWith(X))}else return!1},x=(O,I)=>{var N,X;const U=(N=O?.video)===null||N===void 0?void 0:N.scene;return M(U?.mediaUrl)?n.createElement(Hd,Object.assign({key:I},P===I&&{ref:w},{rec:O,index:I,muted:!0,width:r,data:t,height:c,activeIndex:I,videoPostConfig:e?.videoPost,videoPlayIcon:e?.videoPlayIcon,swiperRef:C,loopPlay:p,onUpdateTimeLine:m,onPlay:v,onPause:g})):n.createElement(Wd,{key:I,imgUrls:[(X=U?.mediaUrl)!==null&&X!==void 0?X:""],width:r,height:c,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,X,U,q;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:`${(X=e?.bottomInfoDist)!==null&&X!==void 0?X: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(Gt,{rec:O,index:I,tempMap:a,resolver:qi,isActive:I===f})):null,n.createElement("div",null,n.createElement(xi,{isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(q=(U=O?.video)===null||U===void 0?void 0:U.title)!==null&&q!==void 0?q:"",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(Gt,{rec:O,index:I,tempMap:a,resolver:qi,includesCtaType:["AniLink"],isActive:I===f}))),n.createElement(Gt,{rec:O,index:I,tempMap:a,resolver:qi,includesCtaType:["AniLinkPopup"],isActive:I===f})):null},V=kt(Xd,u),k=kt(Ud,u),j=(O,I)=>{var N,X,U,q;if(!e?.isShowLike)return null;let Q=(N=e?.likeIconY)!==null&&N!==void 0?N:400;return Q<40&&(Q+=40),O?.video?n.createElement(kn,{key:O.position,activeIcon:(X=e?.likeIcon)!==null&&X!==void 0?X:V,unActicveIcon:(U=e?.unlikeIcon)!==null&&U!==void 0?U:k,position:I,active:O.isCollected,recData:O,style:{top:Q,right:(q=e?.likeIconX)!==null&&q!==void 0?q: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=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",u),y=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",u),F=O=>{var I,N,X,U;if(!O)return null;let q=(I=e?.muteIconY)!==null&&I!==void 0?I:23;return e?.muteIconYPosit==="top"&&(q+=45),e?.isShowMute===void 0||e?.isShowMute===!0?n.createElement(Xi,{style:{position:"absolute",visibility:"visible",zIndex:999,transform:"translate3d(0px,0px,0px)",[(N=e?.muteIconXPosit)!==null&&N!==void 0?N:"right"]:(X=e?.muteIconX)!==null&&X!==void 0?X:0,[(U=e?.muteIconYPosit)!==null&&U!==void 0?U:"bottom"]:q,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},R=(O,I)=>{var N,X,U,q;return n.createElement("div",{style:{position:"relative"}},n.createElement(Dt,{key:I,virtualIndex:I,style:{overflow:"hidden",position:"relative"}},T(O,I),j(O,I),F(!e?.muteIconFixed),n.createElement(Xi,{style:{position:"absolute",right:(N=e?.muteIconX)!==null&&N!==void 0?N:0,visibility:!((U=(X=t?.[I])===null||X===void 0?void 0:X.video)===null||U===void 0)&&U.url?"visible":"hidden",bottom:(q=e?.muteIconY)!==null&&q!==void 0?q: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 B=n.useCallback(mt.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,B)}),()=>{O.forEach(I=>{window.removeEventListener(I,B)})}},[B,S]),n.createElement("div",{id:"sxp-render",style:{height:c,position:"relative",pointerEvents:b}},n.createElement(Zt,{ref:C,allowTouchMove:b!=="none",onSlideChange:()=>{C.current.swiper.allowTouchMove=!1,setTimeout(()=>{C.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:O=>{D(O?.activeIndex),A?.(O.activeIndex)},direction:"vertical",style:{overflow:"hidden",height:c},height:c},t?.map((O,I)=>R(O,I))))});var Yd=n.memo(qd);const Gd=()=>{const{schema:t,resolver:e,popup:i}=ti(),{setPopupDetailData:o,popupDetailData:a,popupCurTimeRef:l,checkCommodityIndexRef:s}=ze(),{productView:c}=Lt(),[r,u]=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,u(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,D,M,x,T,V,k,j,E;if(!i||i?.id===""||!r||new Date-l.current<((p=i?.duration)!==null&&p!==void 0?p:0))return;u(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(F=>F?.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 F=a;let R=(w=(h=F?.video)===null||h===void 0?void 0:h.bindProduct)!==null&&w!==void 0?w:(P=(C=F?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0],B=(x=(M=(D=F?.video)===null||D===void 0?void 0:D.bindProduct)===null||M===void 0?void 0:M.bindCta)!==null&&x!==void 0?x:(k=(V=(T=F?.video)===null||T===void 0?void 0:T.bindProducts)===null||V===void 0?void 0:V[0])===null||k===void 0?void 0:k.bindCta;if(s?.current>=0){const O=(E=(j=F?.video)===null||j===void 0?void 0:j.bindProducts)===null||E===void 0?void 0:E[s?.current];O&&(R=O,B=O?.bindCta)}R&&B&&c(F,R,B,l.current,a?.index)}setTimeout(()=>{window?.sxpPopup(""),o?.(null),s.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,D,M,x,T,V,k,j,E,y;if(S?.id===i?.id){const F=e[(g=S?.item)===null||g===void 0?void 0:g.type],R=Ii(F),B=((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=(D=(P=S?.item)===null||P===void 0?void 0:P.event)===null||D===void 0?void 0:D.onClick)===null||M===void 0?void 0:M.linkType)==="popup",I=(x=F?.extend)===null||x===void 0?void 0:x.defaulSetting;return n.createElement(R,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),(V=S?.item)===null||V===void 0?void 0:V.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:B,isPopup:O,onClose:A}))}else return n.createElement(n.Fragment,null)})},[t,i,e,A]);return n.createElement(mi,{popup:r,onClose:A,padding:0,modalStyle:{position:"fixed"},isFullScreen:d},f)},Cn={};Object.values(Ui).forEach(t=>{Cn[t.extend.type]=t});const _d=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:o=20,loadingImage:a,appDomain:l,enabledMetaConversionApi:s,dataList:c})=>{var r,u,d,A,f,p,b;const m=((r=t?.page_type)===null||r===void 0?void 0:r.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(Kn,{resolver:Cn,enableDataSource:!1,schema:v,utmVal:h||S},n.createElement(Yn,{utmVal:S,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(d=(u=t?.sxp_parameter)===null||u===void 0?void 0:u.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:a,appDomain:l,enabledMetaConversionApi:s,utmParameter:t?.utm_parameter,data:t,dataList:c,isDiyH5:m,onUpdateSchema:C=>g(C),onUpdateChannel:C=>w(C),render:({rtcList:C,tagList:P,pageData:D})=>{var M;return n.createElement(n.Fragment,null,n.createElement(jo,Object.assign({defaultData:t},(M=D?.data)===null||M===void 0?void 0:M.sxpPageConf,{tagList:P,data:C,resolver:Cn})),n.createElement(Gd,null))}}))};var Zd=n.memo(_d);exports.DiyPortalPreview=Bd,exports.DiyStoryPreview=Yd,exports.EditorDataProvider=td,exports.Modal=mi,exports.SxpDataSourceProvider=Yn,exports.SxpPageCore=Zd,exports.SxpPageRender=jo,exports.core=al,exports.default=Yo,exports.materials=Ui,exports.useEditorDataProvider=ki;
17
+ }`)(s,h)}catch{}},[s]),m=n.useCallback(g=>{const h=b(g),w=h?.value;w&&(h?.linkType==="recommendFlow"?(u?.(w),r.current=new Date):new Function(w)())},[s]),S=n.useCallback(()=>{d.current=new Date,c?.({eventInfo:{eventSubject:"startMultiPost",eventDescription:"startMultiPost",contentFormat:"image",position:"0",traceInfo:p}})},[]),v=n.useCallback(g=>{r.current=new Date,c?.({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 xt.on(bt.PAGE_DID_SHOW,g),xt.on(bt.PAGE_DID_HIDE,h),()=>{xt.off(bt.PAGE_DID_SHOW,g),xt.off(bt.PAGE_DID_HIDE,h)}},[A]),n.createElement("div",{className:"multiposts",style:Object.assign(Object.assign({},a),Ja(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 En=n.memo(ud),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=ft(En,{displayName:"MultiPosts",icon:"",category:"base",type:"MultiPosts",related:{settingRender:cd,interactionRender:vd},defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var Ui=Object.freeze({__proto__:null,AniLink:Fr,AniLinkPopup:qr,Appoint:js,AppointForm:pl,Click:od,Commodity:Ps,CommodityDetail:es,CommodityDetailDiroNew:cs,CommodityDiro:Us,CommodityDiroNew:_s,CommodityList:hs,Consent:Nr,ConsentDetail:xs,Display:Qr,HashTag:Lr,Iframe:ys,Link:Bs,MultiCommodity:or,MultiCommodityDiro:$s,MultiCommodityDiroNew:dr,MultiPosts:pd,NineCommodity:pr,Prompt:ls,Swipe:dd});const md="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",fd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",hd=t=>{var e,{active:i,activeIcon:o,unActicveIcon:a,recData:l,position:s}=t,c=it(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:r,mutateUnlike:u,bffEventReport:d,setCacheRtcList:A,cacheRtcList:f}=ze(),[p,b]=n.useState((e=f?.[s])===null||e===void 0?void 0:e.isCollected),m=kt(fd),S=kt(md),v=mt.debounce(()=>rt(void 0,void 0,void 0,function*(){var g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U;if(p){b(!1);const q=(w=yield u?.({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=(D=l?.video)===null||D===void 0?void 0:D.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:s+"",contentFormat:!((V=l?.video)===null||V===void 0)&&V.url?"video":"image",traceInfo:(k=l?.video)===null||k===void 0?void 0:k.traceInfo}}),!q)b(!0);else{const Q=(j=f?.map((me,re)=>(re===s&&(me.isCollected=!1),me)))!==null&&j!==void 0?j:[];A?.(Q)}}else{b(!0);const q=(E=yield r?.({content:JSON.stringify(l)}))!==null&&E!==void 0?E:!1;if(d?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(F=(y=l?.video)===null||y===void 0?void 0:y.itemId)!==null&&F!==void 0?F:"",contentName:(B=(R=l?.video)===null||R===void 0?void 0:R.title)!==null&&B!==void 0?B:"",contentTags:JSON.stringify((I=(O=l?.video)===null||O===void 0?void 0:O.tags)!==null&&I!==void 0?I:[]),position:s+"",contentFormat:!((N=l?.video)===null||N===void 0)&&N.url?"video":"image",traceInfo:(X=l?.video)===null||X===void 0?void 0:X.traceInfo}}),!q)b(!1);else{const Q=(U=f?.map((me,re)=>(re===s&&(me.isCollected=!0),me)))!==null&&U!==void 0?U:[];A?.(Q)}}}),200);return n.createElement("button",Object.assign({},c,{"aria-label":"like",onClick:v}),n.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:p?o||m:a||S,alt:"icon"}))};var kn=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+mxiyJUuIwTCmnCkTo8ibLkeurKmR58V/I4PinCgQpc+UC0vlxFlR4RqaBJtWLBixjcKAAAAh+QQJAwD/ACxQABgAFQAQAAAIcwD/CfyHBJwbcAMTKhwIrlSxRA0fIlyYEFwXgxYxXjxI0Y1DiB8jgnyocGPGgyZTTvwnMaTLlhLd/EOpsSZNmlBE6nw5EiIX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PnBtwXRxClLgQoUGLBxMmavgwYkeJHv8lxEiy4JqJH1NCLJbx4siRHlHK9FiqkMubLQXG3CnRxsKXN90w/IcEJMWFAQEAOw==";const hi=(()=>{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:a,activeIndex:l,videoPostConfig:s,videoPlayIcon:c,loopPlay:r,swiperRef:u,visibleHeight:d},A)=>{var f,p;const[b,m]=n.useState(!1),{bffEventReport:S,sxpParameter:v,waterFallData:g,openHashtag:h,bffFbReport:w,isDiyH5:C}=ze(),P=n.useRef(0),[D,M]=n.useState(!1),{isActive:x}=gi(),T=n.useRef(null),[V,k]=n.useState(""),[j,E]=n.useState(!1),y=n.useRef(),F=`pb-cache-video-${e}`,R=n.useRef(null),B=n.useRef(null),O=n.useRef(),I=n.useRef(),N=n.useRef(!0),X=n.useRef(r),U=t.video.scene,q=U?.mediaUrl||((f=t?.video)===null||f===void 0?void 0:f.url),Q=U?.mediaUrl?U?.cover:(p=t?.video)===null||p===void 0?void 0:p.cover,me=Q||v?.placeholder_image;n.useImperativeHandle(A,()=>({setLoopPlay(Z){X.current=Z}})),n.useEffect(()=>{X.current=r},[r]);const re=n.useMemo(()=>s?.mode==="2",[s]),K=n.useMemo(()=>{var Z;return s?.mode==="2"?`translateY(-${50+((Z=s?.offsetTop)!==null&&Z!==void 0?Z:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[s]),Te=n.useMemo(()=>Q||V,[V,t]),Pe=n.useMemo(()=>re?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[re]),Be=n.useMemo(()=>s?.bgWay==="1",[s]),ue=n.useMemo(()=>Be&&s?.bgColor?{backgroundColor:s?.bgColor}:{},[s,Be]);n.useEffect(()=>{y?.current&&(y.current.muted=a)},[a,y?.current]);const de=n.useCallback(()=>{var Z;y?.current&&((Z=y?.current)===null||Z===void 0||Z.play())},[y?.current]),_e=kt("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),He=n.useCallback(()=>{y?.current&&(E(!1),M(!0))},[]),Ue=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){var Z,ee,_,le,we,ye,$,W,Ne,$e,Ke,ot,Je;if(!y?.current)return;m(!1);const Ve=o[e];if(Ve&&(!((Z=y?.current)===null||Z===void 0)&&Z.duration)){P.current=((ee=y?.current)===null||ee===void 0?void 0:ee.currentTime)||0;const et=((le=(_=y?.current)===null||_===void 0?void 0:_.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),At=N?.current?"0":"1";S?.({eventInfo:Object.assign({eventSubject:"playVideo",eventDescription:"User played the video",contentId:(W=($=Ve?.video)===null||$===void 0?void 0:$.itemId)!==null&&W!==void 0?W:"",contentName:($e=(Ne=Ve?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&$e!==void 0?$e:"",playType:At,startTime:ct,videoDuration:et,contentTags:JSON.stringify((ot=(Ke=Ve?.video)===null||Ke===void 0?void 0:Ke.tags)!==null&&ot!==void 0?ot:[]),position:e+"",contentFormat:"video",traceInfo:(Je=Ve?.video)===null||Je===void 0?void 0:Je.traceInfo},N?.current&&{loadTime:I?.current-O?.current+""})}),N.current=!1}}),[S,o,e,N,y?.current]),Ge=n.useCallback(()=>{C&&(y.current.currentTime=U?.startTime)},[]),nt=n.useCallback(()=>{if(!y?.current||V||!re||(y.current.style.objectFit="contain",Q||!T||!T.current||Be))return;const Z=()=>{const ee=T?.current,_=ee.getContext("2d"),le=window?.innerWidth,we=d||window?.innerHeight;ee.height=we,ee.width=le,_?.drawImage(y.current,0,0,ee.width,ee.height),k(ee.toDataURL())};Z(),setTimeout(()=>{Z()},500)},[y.current,Be,t,V,re,d]),Ze=n.useCallback(()=>{y.current&&(Ge(),I.current=new Date,Ue(),nt())},[y.current,nt,Ue]),ke=n.useCallback(Z=>()=>{var ee,_,le,we,ye,$;if(!y.current||!D)return;const W=(ee=y?.current)===null||ee===void 0?void 0:ee.paused;switch(Z){case"start":if(!W)return;(_=y?.current)===null||_===void 0||_.play(),m(!1);break;case"pause":if(W)return;(le=y?.current)===null||le===void 0||le.pause(),m(!0);break;default:W?(C&&Math.round((we=y?.current)===null||we===void 0?void 0:we.currentTime)>=U?.endTime&&(y.current.currentTime=U?.startTime),(ye=y?.current)===null||ye===void 0||ye.play()):($=y?.current)===null||$===void 0||$.pause(),m(!W);break}},[D,y?.current]),Qe=n.useCallback(()=>{var Z,ee,_,le,we,ye,$,W,Ne,$e,Ke,ot,Je;if(!y?.current||l!==e)return;m(!0);const Ve=o[e],et=((ee=(Z=y?.current)===null||Z===void 0?void 0:Z.duration)!==null&&ee!==void 0?ee:0).toFixed(2),ct=((le=(_=y?.current)===null||_===void 0?void 0:_.currentTime)!==null&&le!==void 0?le:0).toFixed(2);if(!((we=y?.current)===null||we===void 0)&&we.duration){const At=(((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:(W=($=Ve?.video)===null||$===void 0?void 0:$.itemId)!==null&&W!==void 0?W:"",contentName:($e=(Ne=Ve?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&$e!==void 0?$e:"",endTime:ct,videoDuration:et,playDuration:At,contentTags:JSON.stringify((ot=(Ke=Ve?.video)===null||Ke===void 0?void 0:Ke.tags)!==null&&ot!==void 0?ot:[]),position:e+"",contentFormat:"video",traceInfo:(Je=Ve?.video)===null||Je===void 0?void 0:Je.traceInfo}})}},[o,e,S,y?.current,l]),Tt=n.useCallback(()=>{E(!0)},[]),De=()=>{!y.current||!C||setTimeout(()=>{var Z,ee,_,le,we,ye,$,W,Ne;if(Math.round((Z=y?.current)===null||Z===void 0?void 0:Z.currentTime)>=((ee=U?.endTime)!==null&&ee!==void 0?ee:0)){if((_=y.current)===null||_===void 0||_.pause(),!X.current)return;if(e===o?.length-1)(we=(le=u?.current)===null||le===void 0?void 0:le.swiper)===null||we===void 0||we.slideTo(0);else{const $e=($=(ye=u?.current)===null||ye===void 0?void 0:ye.swiper)===null||$===void 0?void 0:$.activeIndex;(Ne=(W=u?.current)===null||W===void 0?void 0:W.swiper)===null||Ne===void 0||Ne.slideTo($e+1)}}})};n.useEffect(()=>{var Z,ee,_,le,we,ye,$,W,Ne,$e,Ke;if(!x)return;const ot=q;if(!ot)return;const Je=document.querySelector(`#${F}`);if(!Je||(y.current=hi?.(Je),!y?.current))return;O.current=new Date;const Ve=window?.Hls;let et=B?.current;return ot.includes(".m3u8")&&Ve&&Ve.isSupported()?(et=new Ve,et?.loadSource(ot),et?.attachMedia(y?.current),et?.on(Ve.Events.MANIFEST_PARSED,function(){var ct;Ge(),(ct=y?.current)===null||ct===void 0||ct.play()})):y.current.src=ot,(Z=y?.current)===null||Z===void 0||Z.setAttribute("x5-playsinline","true"),(ee=y?.current)===null||ee===void 0||ee.setAttribute("webkit-playsinline","true"),(_=y?.current)===null||_===void 0||_.addEventListener("loadedmetadata",Ze),(le=y?.current)===null||le===void 0||le.addEventListener("loadeddata",nt),(we=y?.current)===null||we===void 0||we.addEventListener("play",Ue),(ye=y?.current)===null||ye===void 0||ye.addEventListener("playing",He),($=y?.current)===null||$===void 0||$.addEventListener("pause",Qe),(W=y?.current)===null||W===void 0||W.addEventListener("ended",de),(Ne=y?.current)===null||Ne===void 0||Ne.addEventListener("canplay",de),($e=y?.current)===null||$e===void 0||$e.addEventListener("waiting",Tt),(Ke=y.current)===null||Ke===void 0||Ke.addEventListener("timeupdate",De),()=>{var ct,At,zt,Mt,yt,wt,qt,gt,Xe,Ee,fe;((ct=y?.current)===null||ct===void 0?void 0:ct.paused)||Qe(),B?.current&&((At=B?.current)===null||At===void 0||At.destroy()),M(!1),(zt=y?.current)===null||zt===void 0||zt.removeEventListener("loadedmetadata",Ze),(Mt=y?.current)===null||Mt===void 0||Mt.removeEventListener("loadeddata",nt),(yt=y?.current)===null||yt===void 0||yt.removeEventListener("play",Ue),(wt=y?.current)===null||wt===void 0||wt.removeEventListener("playing",He),(qt=y?.current)===null||qt===void 0||qt.removeEventListener("pause",Qe),(gt=y?.current)===null||gt===void 0||gt.removeEventListener("ended",de),(Xe=y?.current)===null||Xe===void 0||Xe.removeEventListener("canplay",de),(Ee=y?.current)===null||Ee===void 0||Ee.removeEventListener("waiting",Tt),(fe=y.current)===null||fe===void 0||fe.removeEventListener("timeupdate",De)}},[x]),n.useEffect(()=>{var Z,ee,_,le,we,ye;!y?.current||!D||(x?(w?.({eventName:"ViewContent",product:(ee=(Z=o?.[e])===null||Z===void 0?void 0:Z.video)===null||ee===void 0?void 0:ee.bindProduct}),w?.({eventName:"PageView",product:(le=(_=o?.[e])===null||_===void 0?void 0:_.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,D,y?.current]),n.useEffect(()=>{var Z,ee,_;if(!x||!y?.current)return;!((Z=y?.current)===null||Z===void 0?void 0:Z.paused)&&h?(ee=y?.current)===null||ee===void 0||ee.pause():h||(_=y?.current)===null||_===void 0||_.play()},[h,x,y?.current]),n.useEffect(()=>{if(!x)return;const Z=()=>{ke("start")()},ee=ke("pause");return xt.on(bt.PAGE_DID_SHOW,Z),xt.on(bt.PAGE_DID_HIDE,ee),()=>{xt.off(bt.PAGE_DID_SHOW,Z),xt.off(bt.PAGE_DID_HIDE,ee)}},[ke,x]);const Fe=n.useMemo(()=>!me||D?null:n.createElement(Pt,{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:me,alt:"placeholder image"}),[D]),We=n.useMemo(()=>{if(!(!j||!D))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,D]);return n.useEffect(()=>{if(!y?.current)return;const Z=()=>{l===e&&q&&y?.current&&!b&&ke("pause")()};return window.addEventListener("beforeunload",Z),()=>{window.removeEventListener("beforeunload",Z)}},[l,e,t,y?.current,ke,b]),t?.video?n.createElement(n.Fragment,null,re?n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:ke(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},ue)},!Be&&D&&Te&&n.createElement(Pt,{src:Te,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},Pe)}),n.createElement("canvas",{ref:T,style:{display:"none"}}),n.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:K,left:0,right:0}},n.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},n.createElement("div",{className:"n-full-screen",ref:R,id:F,style:{width:"100%",height:"100%"}}),b&&n.createElement(Pt,{className:"clc-pb-video-pause",src:c??_e,alt:"pause"}))),Fe,We):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:R,id:F,style:{width:"100%",height:"100%"}}),Fe,We,b&&n.createElement(Pt,{className:"clc-pb-video-pause",src:c??_e,alt:"pause"}))):null});var gd=n.memo(bd);const yd=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:o,style:a})=>{const[l,s]=n.useState(t),c=r=>{r.stopPropagation();const u=!l;s(u),o?.(u)};return n.useEffect(()=>{s(t)},[t]),n.createElement("button",{style:a,"aria-label":"toggle button",className:"pb-toggle-button",onClick:c},n.createElement("img",{className:"pb-toggle-button-icon",alt:"toggle image",src:l?e:i}))};var Xi=n.memo(yd);const wd=({imageUrl:t,style:e,duration:i=2e3})=>{const[o,a]=n.useState(!0);ti(),n.useEffect(()=>{setTimeout(()=>{a(!1)},i)},[]);const l=kt("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),s=n.useMemo(()=>o?"pb-fadeIn":"pb-fadeOut",[o]);return n.createElement("div",{hidden:!o,className:`pb-finger-wrap ${s}`,style:Object.assign(Object.assign({},e),{animationDuration:`${i/1e3}s`})},n.createElement("img",{src:t||l,alt:"finger swiper"}))},In=t=>{const{src:e,height:i,imgUrlsPostConfig:o,onShowFirstImage:a}=t,l=n.useMemo(()=>o?.mode==="2",[o]),s=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]),c=n.useMemo(()=>l?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[l]),r=n.useMemo(()=>o?.bgWay==="1",[o]),u=n.useMemo(()=>r&&o?.bgColor?{backgroundColor:o?.bgColor}:{},[o,r]);return n.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},u)},(!l||!r)&&n.createElement(Pt,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},c),onLoad:a}),l&&n.createElement(Pt,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:s,left:0,right:0},onLoad:a}))},Sd=({imgUrls:t,width:e,height:i,rec:o,index:a,onViewImageEndEvent:l,onViewImageStartEvent:s,imgUrlsPostConfig:c})=>{var r,u;const{isActive:d}=gi(),{sxpParameter:A,openHashtag:f}=ze(),[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):(s(a,w.current?m:void 0,!0),w.current=!1)):h?.current&&h.current.swiper.autoplay.stop()},[o,d,l,f,a,s,p,m]);const P=n.useCallback(V=>rt(void 0,void 0,void 0,function*(){p||(S({loadTime:new Date-C+""}),b(!0))}),[p]);n.useEffect(()=>{if(!d)return;const V=()=>s(a,m),k=()=>l(o);return xt.on(bt.PAGE_DID_SHOW,V),xt.on(bt.PAGE_DID_HIDE,k),()=>{xt.off(bt.PAGE_DID_SHOW,V),xt.off(bt.PAGE_DID_HIDE,k)}},[d,m]);const D=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(V=>{g(V.activeIndex)},[]),T=n.useMemo(()=>Qi(),[]);return n.createElement("div",{onMouseEnter:D,onMouseLeave:M},n.createElement(Zt,Object.assign({defaultValue:0,direction:"horizontal",modules:[yi,wi,...T?[wn,Sn,Hi,gn]:[]],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:Re.css(Object.assign(Object.assign({".swiper-pagination":{bottom:(r=c?.marginBottom)!==null&&r!==void 0?r:0,fontSize:"14px"}},c?.dotsBgColor&&{".swiper-pagination-bullet":{backgroundColor:c?.dotsBgColor,opacity:1}}),c?.dotsActiveColor&&{".swipe-item-active-bullet":{backgroundColor:`${c?.dotsActiveColor}!important`,opacity:1}})),height:i,autoplay:{delay:((u=c?.delay)!==null&&u!==void 0?u:3)*1e3}}),t?.map((V,k)=>n.createElement(Dt,{key:k,"aria-hidden":k!==v},n.createElement(In,{src:!p&&k>0?"":V,height:i,imgUrlsPostConfig:c,onShowFirstImage:P})))))};var xd=n.memo(Sd);const Td=({tags:t,itemId:e,itemType:i,index:o,rec:a,hashTagStyle:l,hashTagRightMargin:s})=>{var c;const[r,u]=n.useState(!1),{setWaterFallData:d,setOpenHashtag:A,setCacheActiveIndex:f,waterFallData:p,setIsFromHashtag:b}=ze(),m=S=>{p?b?.(!0):f?.(o),d?.(i?{hashTag:S,itemId:e,itemType:i,rec:a}:{hashTag:S,rec:a}),A?.(!0)};return n.useMemo(()=>t.length<=6?null:n.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>u(!r)},r?"show less":"show more"),[r,t]),n.createElement("div",{className:"clc-sxp-bottom-hashtag",style:{marginTop:`${(c=l?.marginTop)!==null&&c!==void 0?c:16}px`,width:s}},n.createElement(Si,null,t?.map((S,v)=>n.createElement(Dt,{key:v,hidden:r?!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:Oe(`#${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 Ii(t){return n.memo(function(e){const{$store:i}=Go(),o=l=>{let s=l;const c=l.match(/{{.*?}}/g);return c?.length&&c.forEach(r=>{r.replace(/{{\s*([\w.]+)\s*}}/g,(u,d)=>{if(d){const A=mt.get(i,d);return s=s.replace(r,A),A}})}),s},a=n.useMemo(()=>{var l,s,c;const{bindDatas:r}=e,u=it(e,["bindDatas"]);if((l=r?.forEach)===null||l===void 0||l.call(r,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=mt.get(i,b))!==null&&m!==void 0?m:e[A])!==null&&S!==void 0?S:"";return u[A]=v,v}})}}),u){u.eventMap={};const d=mt.cloneDeep(u.event)||{};for(const A in d)if(Object.prototype.hasOwnProperty.call(d,A))try{d[A].value=o(d[A].value),u.eventMap[A]=new Function(d[A].value)}catch{}}return!((c=(s=u?.event)===null||s===void 0?void 0:s.onClick)===null||c===void 0)&&c.linkType&&(u.style.cursor="pointer"),u},[i,e]);return n.createElement(t,Object.assign({},a,a.eventMap))})}const Ed=({rec:t,index:e,tempMap:i,resolver:o,includesCtaType:a=[],isActive:l,isNineProduct:s})=>{var c,r,u,d,A;const{schema:f}=ti();if(!t?.video)return null;let p=null;!((r=(c=t?.video)===null||c===void 0?void 0:c.bindProducts)===null||r===void 0)&&r.length?p="\u591A\u5546\u54C1CTA":!((u=t?.video)===null||u===void 0)&&u.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,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U,q,Q,me,re;if(!(a?.length>0&&!a?.includes((S=b?.item)===null||S===void 0?void 0:S.type))&&!((!a||a?.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"&&!(!((D=t?.video)===null||D===void 0)&&D.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)||((V=b?.item)===null||V===void 0?void 0:V.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"&&!(!((F=(y=t?.video)===null||y===void 0?void 0:y.bindProducts)===null||F===void 0)&&F.length))return null;if(b&&o){const K=o[s?"NineCommodity":(R=b?.item)===null||R===void 0?void 0:R.type],Te=Ii(K),Pe=(B=K?.extend)===null||B===void 0?void 0:B.defaulSetting,Be=((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",ue=mt.cloneDeep((X=b?.item)===null||X===void 0?void 0:X.style);if(ue.hasOwnProperty("backdropFilter")){const de=ue.backdropFilter;ue.backdropFilter=`blur(${de??0}px)`}return n.createElement(Te,Object.assign({style:Object.assign(Object.assign(Object.assign({},Pe?.style),ue),{zIndex:50,marginInlineStart:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},Pe?.textStyle),(U=b?.item)===null||U===void 0?void 0:U.textStyle),bindDatas:(Q=(q=b?.item)===null||q===void 0?void 0:q.bindDatas)!==null&&Q!==void 0?Q:[]},Pe?.props,(me=b?.item)===null||me===void 0?void 0:me.props,{event:((re=b?.item)===null||re===void 0?void 0:re.event)||{},schema:f,id:b?.id,key:b?.id,recData:t,isExternalLink:Be,index:e,isActive:l}))}else return null}},[t,o,i,f,b?.id,l]);return n.createElement(n.Fragment,null,m)};var Gt=n.memo(Ed);const Oo=({nudge:t})=>{var e,i,o,a,l,s;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=(a=t?.size)===null||a===void 0?void 0:a.height)!==null&&l!==void 0?l:38,backgroundColor:t?.backgroundColor,borderRadius:(s=t?.borderRadius)!==null&&s!==void 0?s: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:Oe(t?.content,t?.textStyle)}})))},kd=({tagList:t=[],setActiveIndex:e,style:i})=>{const{getRecommendVideos:o,setRtcList:a,setCacheRtcList:l,setCacheActiveIndex:s,setLoading:c,swiperRef:r,waterFallData:u,bffEventReport:d,selectTag:A,setSelectTag:f}=ze(),{backMainFeed:p}=Lt(),b=n.useMemo(()=>[Ni,...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!==Ni&&(v=S),c?.(!0),o?.({themeTag:v}).then(g=>{var h,w,C,P;xt.emit(bt.CHANGE_THEME_TAG,v),a?.((h=g?.recList)!==null&&h!==void 0?h:[]),l?.((w=g?.recList)!==null&&w!==void 0?w:[]),e?.(0),s?.(0),(P=(C=r?.current)===null||C===void 0?void 0:C.swiper)===null||P===void 0||P.slideTo(0)}).finally(()=>{c?.(!1)}),f?.(S)};return u||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,a;const{consentPopupCate:l}=ki(),s=(o=(i=e?.consentPopup)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.item;if(!s||!l&&!(!((a=s?.props)===null||a===void 0)&&a.open))return null;const c=t?.[s?.type],r=Ii(c);return n.createElement(r,Object.assign({},s?.props,{style:s?.style,event:s?.event||{},consentPopupCate:l}))};var Cd=n.memo(Id);const Pd=({data:t,minusHeight:e,tagHeight:i,onClick:o})=>{var a,l,s,c,r;return n.createElement("button",{style:{position:"absolute",[(a=t?.xPosit)!==null&&a!==void 0?a:"left"]:(s=(l=t?.backButton)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,[(c=t?.yPosit)!==null&&c!==void 0?c:"top"]:(t?.yPosit=="top"?e+i:0)+((r=t?.y)!==null&&r!==void 0?r: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:a,resolver:l,data:s=[],ctaType:c,tipText:r,nudge:u,_schema:d,hashTagStyle:A,hashTagRightMargin:f,tagList:p=[],defaultData:b})=>{var m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U;const q=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),Q=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png"),{schema:me}=ti(),{openMultiPosts:re}=ki(),[K,Te]=n.useState(0),Pe=n.useRef(0),[Be,ue]=n.useState(!0),de=n.useRef(),[_e,He]=n.useState(!1),[Ue,Ge]=n.useState(!1),[nt,Ze]=n.useState(new Date().getTime()),ke=n.useRef(!1),[Qe,Tt]=n.useState(2);n.useState(!1);const De=n.useRef(null),Fe=n.useRef(""),{loadVideos:We,bffEventReport:Z,loading:ee,setPopupDetailData:_,ctaEvent:le,swiperRef:we,waterFallData:ye,setOpenHashtag:$,appDomain:W,openHashtag:Ne,loadingImage:$e,isFromHashtag:Ke,popupDetailData:ot,bffFbReport:Je,curTime:Ve,h5EnterLink:et,isShowConsent:ct,selectTag:At,isPreview:zt,isEditor:Mt,cacheRtcList:yt,setRtcList:wt,cacheActiveIndex:qt,rtcList:gt,isNoMoreData:Xe,channel:Ee,refreshFeSession:fe,isDiyH5:be,pixelPvStatusRef:vt}=ze(),{backMainFeed:Ht,productView:Bt,jumpToWeb:Yi}=Lt(),{visibleHeight:ri,bottomHeight:ht}=bo(),oi=n.useMemo(()=>s.length>0&&!ee&&(Jo()||t?.enableSwiperTip),[s,ee,t?.enableSwiperTip]);n.useEffect(()=>{fe?.(!0)},[]),n.useEffect(()=>{if(s?.length>0){const L=new Date;de.current=L}},[s?.length]);const Pi=n.useCallback(()=>{var L,Y,G;const J=(Y=(L=b?.data)===null||L===void 0?void 0:L.sxpPageConf)===null||Y===void 0?void 0:Y.globalConfig;if(!((G=J?.session)===null||G===void 0)&&G.enable||tn(),et?.(),s.length>0){const se=new Date;de.current=se}},[s.length,et,b]);n.useEffect(()=>{var L;if(!c||c?.length<1)return;const Y=s?.findIndex(G=>{var J,se,ie,oe,ne,ae,pe,je,ge;const Ie=c?.[0];return Ie==="\u591A\u5546\u54C1CTA"?((J=G?.video)===null||J===void 0?void 0:J.bindProducts)&&((ie=(se=G?.video)===null||se===void 0?void 0:se.bindProducts)===null||ie===void 0?void 0:ie.length)>0:Ie==="\u5546\u54C1CTA"?(oe=G?.video)===null||oe===void 0?void 0:oe.bindProduct:((ae=(ne=G?.video)===null||ne===void 0?void 0:ne.bindCta)===null||ae===void 0?void 0:ae.itemId)===Ie&&(((pe=G?.video)===null||pe===void 0?void 0:pe.url)||((ge=(je=G?.video)===null||je===void 0?void 0:je.imgUrls)===null||ge===void 0?void 0:ge.length))})||0;Y!==-1&&((L=we?.current)===null||L===void 0||L.swiper.slideTo(Y))},[s,c,we]);const $t=n.useCallback(L=>{var Y,G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St;const Le=s?.[K];let Ce="";ot&&(!((G=(Y=Le?.video)===null||Y===void 0?void 0:Y.bindProducts)===null||G===void 0)&&G.length||!((J=Le?.video)===null||J===void 0)&&J.bindProduct)?Ce="pdpPage":ot&&((ne=a?.[(oe=(ie=(se=Le?.video)===null||se===void 0?void 0:se.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":Ke?Ce="hashTagPage":!((ae=Le?.video)===null||ae===void 0)&&ae.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"),Z?.({eventInfo:{sessionDuration:Math.floor((new Date-Ve.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(Ie=Le?.video)===null||Ie===void 0?void 0:Ie.itemId,productId:(dt=Le?.product)===null||dt===void 0?void 0:dt.itemId,position:K+"",fromKName:L||Ce,fromKPage:location?.href,ctatId:(st=(at=(lt=Le?.video)===null||lt===void 0?void 0:lt.bindCta)===null||at===void 0?void 0:at.itemId)!==null&&st!==void 0?st:"",traceInfo:(St=(pt=(tt=Le?.video)===null||tt===void 0?void 0:tt.traceInfo)!==null&&pt!==void 0?pt:(qe=Le?.product)===null||qe===void 0?void 0:qe.traceInfo)!==null&&St!==void 0?St:""}})},[s,Z,K,ot,a,Ke,Ve]);n.useEffect(()=>{const L=s?.[K],Y=()=>{const G=!Ne&&!ct;document.visibilityState==="hidden"?(G&&(xt.emit(bt.PAGE_DID_HIDE,L),Ae(L)),(t?.playbook!=="organic menu"||K!==0||Ee)&&(fe?.(!1,$t)||$t())):document.visibilityState==="visible"&&(ke.current===!0&&(Ze(new Date().getTime()),ke.current=!1),fe?.(!1),Pi(),G&&(setTimeout(()=>{xt.emit(bt.PAGE_DID_SHOW,L)},100),Ht("external",At)))};return document.addEventListener("visibilitychange",Y),()=>{document.removeEventListener("visibilitychange",Y)}},[K,Z,s,Pi,ot,Ke,a,Ve,Ht,Ne,ct,At,Ee,$t,fe]);const di=n.useCallback(mt.debounce(()=>{var L;(L=De.current)===null||L===void 0||L.setLoopPlay(!1),fe?.(!1,$t)},1e3),[$t,fe]);n.useEffect(()=>{const L=["touchstart","touchcancel"];return L.forEach(Y=>{window.addEventListener(Y,di)}),()=>{L.forEach(Y=>{window.removeEventListener(Y,di)})}},[di]);const ei=n.useMemo(()=>{let L=0;return p.length>0&&(L+=45,ye&&(L-=45)),L},[p,ye]),Ft=n.useMemo(()=>{let L=0;return t?.logoUrl&&t?.isShowLogo&&(L+=56),L},[t]),Ut=n.useMemo(()=>(i||ri)-Ft-ei,[i,ri,Ft,ei]),Et=n.useMemo(()=>{var L;const Y=K===0&&!ye&&!Mt&&!be?[(L=s?.[0])!==null&&L!==void 0?L:null]:s?.map((G,J)=>K===J||J-1===K||J+1===K?G:null);return Y?.length?!ye&&!Xe&&!be?Y.concat([{loading:!0}]):Y:[]},[s,K,ye,Mt,Xe,be]),Gi=n.useMemo(()=>{var L,Y,G,J;if(t?.logoUrl&&t?.isShowLogo){const se=(Y=(L=t?.logoBar)===null||L===void 0?void 0:L.onClick)===null||Y===void 0?void 0:Y.value,ie=((J=(G=t?.logoBar)===null||G===void 0?void 0:G.onClick)===null||J===void 0?void 0:J.linkType)==="externalLink",oe=Et[K];return n.createElement("div",Object.assign({className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},se&&{onClick:ne=>{var ae,pe,je,ge;ie&&Yi(ne,oe,(ae=oe?.video)===null||ae===void 0?void 0:ae.bindProduct,(pe=oe?.video)===null||pe===void 0?void 0:pe.bindCta,K,((je=oe?.product)===null||je===void 0?void 0:je.traceInfo)||((ge=oe?.video)===null||ge===void 0?void 0:ge.traceInfo)),new Function(se)()}}),n.createElement("img",{src:t?.logoUrl,alt:"logo"}))}return null},[t,K,Et]),Oi=n.useCallback((L,Y)=>{var G,J,se,ie,oe,ne,ae,pe,je,ge;return L==="organic menu"?n.createElement(En,Object.assign({recData:s?.[1]},(se=(J=(G=t?.multiPosts)===null||G===void 0?void 0:G[0])===null||J===void 0?void 0:J.item)===null||se===void 0?void 0:se.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)):!((ae=L?.video)===null||ae===void 0)&&ae.url?n.createElement(gd,Object.assign({key:nt},K===Y&&{ref:De},{rec:L,index:Y,muted:Be,data:s,height:Ut,activeIndex:K,videoPostConfig:t?.videoPost,videoPlayIcon:t?.videoPlayIcon,loopPlay:!0,swiperRef:we,visibleHeight:ri})):!((pe=L?.video)===null||pe===void 0)&&pe.imgUrls?n.createElement(xd,{key:L?.video.itemId,imgUrls:L?.video.imgUrls,width:o,height:Ut,rec:L,index:Y,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,dt)=>{var lt,at,st,tt,pt,qe,St,Le;const Ce=l[(lt=Ie?.item)===null||lt===void 0?void 0:lt.type],jt=Ii(Ce),Ot=(at=Ce?.extend)===null||at===void 0?void 0:at.defaulSetting;return n.createElement(jt,Object.assign({key:`${Y}${dt}`,textStyle:Object.assign(Object.assign({},Ot?.textStyle),(st=Ie?.item)===null||st===void 0?void 0:st.textStyle),bindDatas:(pt=(tt=Ie?.item)===null||tt===void 0?void 0:tt.bindDatas)!==null&&pt!==void 0?pt:[]},Ot?.props,(qe=Ie?.item)===null||qe===void 0?void 0:qe.props,{event:((St=Ie?.item)===null||St===void 0?void 0:St.event)||{},schema:me,id:Ie?.id,viewTime:de.current,rec:L,isPost:!0,tipText:r,style:Object.assign(Object.assign(Object.assign({},Ot?.style),(Le=Ie?.item)===null||Le===void 0?void 0:Le.style),{height:"100%",overflow:"auto"}),index:Y,isActive:K===Y}))}):null},[o,s,Ut,Be,K,t?.productPost,t?.videoPlayIcon,de,r,l,me,nt,ri]),Li=n.useCallback(L=>{Ge(L)},[]),z=n.useMemo(()=>Ue?{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"},[Ue]),H=n.useCallback((L,Y)=>{var G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st;if(L?.video){let tt=null;!((J=(G=L?.video)===null||G===void 0?void 0:G.bindProducts)===null||J===void 0)&&J.length?tt="\u591A\u5546\u54C1CTA":!((se=L?.video)===null||se===void 0)&&se.bindProduct?tt="\u5546\u54C1CTA":tt=(oe=(ie=L?.video)===null||ie===void 0?void 0:ie.bindCta)===null||oe===void 0?void 0:oe.itemId;const pt=a?.[tt],qe=t?.nineProductEnable&&Y===(gt?.[0]==="organic menu"?1:0)&&((ne=["MultiCommodity","MultiCommodityDiro","MultiCommodityDiroNew"])===null||ne===void 0?void 0:ne.includes((ae=pt?.item)===null||ae===void 0?void 0:ae.type));return n.createElement(n.Fragment,null,qe&&n.createElement(Gt,{rec:L,index:Y,tempMap:a,resolver:l,isActive:Y===K,isNineProduct:qe}),((pe=L?.video)===null||pe===void 0?void 0:pe.title)&&!Ue&&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:u}),(t?.isShowCTA===void 0||t?.isShowCTA)&&!qe?n.createElement("div",{className:"clc-sxp-bottom-card"},n.createElement(Gt,{rec:L,index:Y,tempMap:a,resolver:l,isActive:Y===K,includesCtaType:[]})):null,n.createElement("div",{style:{display:"flex",flexDirection:"column"}},n.createElement(xi,{className:"clc-sxp-bottom-text",isPost:!0,foldText:r?.foldText,unfoldText:r?.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:Li}),n.createElement(Gt,{rec:L,index:Y,tempMap:a,resolver:l,includesCtaType:["AniLink"],isActive:Y===K}),n.createElement(Co,{index:K,tags:(lt=(dt=L?.video)===null||dt===void 0?void 0:dt.hashTags)!==null&&lt!==void 0?lt:[],itemId:(at=L?.video)===null||at===void 0?void 0:at.itemId,itemType:!((st=L?.video)===null||st===void 0)&&st.itemId?"VIDEO":null,rec:L,hashTagStyle:A,hashTagRightMargin:o-(f??0)}))),n.createElement(Gt,{rec:L,index:Y,tempMap:a,resolver:l,includesCtaType:["AniLinkPopup"],isActive:Y===K}))}return null},[e,K,a,l,r,u,A,t,Li,Ue,z,gt]),te=n.useCallback((L,Y,G)=>{var J,se,ie,oe;if(!t?.isShowLike||!G)return;let ne=(J=t?.likeIconY)!==null&&J!==void 0?J:400;return ye&&ne<40&&t?.likeIconYPosit==="top"&&(ne+=40),t?.likeIconYPosit==="top"&&(ne+=Ft),t?.likeIconFixed&&t?.likeIconYPosit!=="top"&&(ne+=ht),L?.video?n.createElement(kn,{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",[(se=t.likeIconXPosit)!==null&&se!==void 0?se:"right"]:(ie=t.likeIconX)!==null&&ie!==void 0?ie:0,[(oe=t.likeIconYPosit)!==null&&oe!==void 0?oe:"bottom"]:ne},position:Y}):null},[t,ye,ht]),he=L=>{var Y,G,J,se,ie,oe;if(!(!((Y=L?.video)===null||Y===void 0)&&Y.url)&&(!((G=L?.video)===null||G===void 0)&&G.imgUrls)){const ne=Date.now(),ae=Pe.current===0?0:(ne-Pe.current)/1e3;Z?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(se=(J=L?.video)===null||J===void 0?void 0:J.itemId)!==null&&se!==void 0?se:"",contentName:(ie=L?.video.title)!==null&&ie!==void 0?ie:"",imageEndTime:`${ne}`,playDuration:`${ae}`,contentTags:JSON.stringify((oe=L?.video.tags)!==null&&oe!==void 0?oe:[]),position:K+"",contentFormat:"image",traceInfo:L?.video.traceInfo}})}},ce=(L,Y)=>{var G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St,Le,Ce,jt;if(zt||ye)return;const Ot=new Date-Ve.current;if(t?.openSlideSkip&&Ot>=((G=t?.slideSkipStartTime)!==null&&G!==void 0?G:0)&&Qo()&&L){const ci=((ie=(se=(J=L?.video)===null||J===void 0?void 0:J.bindProducts)===null||se===void 0?void 0:se[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)||((ae=L?.product)===null||ae===void 0?void 0:ae.link),ut=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(ci){let li=null;!((Ie=L?.video)===null||Ie===void 0)&&Ie.url?li="video":!((lt=(dt=L?.video)===null||dt===void 0?void 0:dt.imgUrls)===null||lt===void 0)&&lt.length&&(li="image"),Z?.({eventInfo:{eventSubject:"swipeToWeb",eventDescription:"User swiped to web",productId:(at=ut?.itemId)!==null&&at!==void 0?at:"",productName:(st=ut?.title)!==null&&st!==void 0?st:"",price:ut?.price?ut?.price+"":"0",productCollection:(tt=ut?.collection)!==null&&tt!==void 0?tt:"",contentTags:ut?.tags?JSON.stringify(ut?.tags):"",position:Y+"",contentId:(qe=(pt=L?.video)===null||pt===void 0?void 0:pt.itemId)!==null&&qe!==void 0?qe:"",traceInfo:(jt=(Le=(St=L?.video)===null||St===void 0?void 0:St.traceInfo)!==null&&Le!==void 0?Le:(Ce=L?.product)===null||Ce===void 0?void 0:Ce.traceInfo)!==null&&jt!==void 0?jt:"",contentFormat:li}}),ke.current=!0,window.location.href=window.getJointUtmLink(ci)}}},ve=L=>{var Y,G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St,Le;const Ce=s[L.previousIndex];if(!Ce)return;let jt=null;!((Y=Ce?.video)===null||Y===void 0)&&Y.url?jt="video":!((J=(G=Ce?.video)===null||G===void 0?void 0:G.imgUrls)===null||J===void 0)&&J.length&&(jt="image"),L.previousIndex-L.activeIndex<0?(Z?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(ie=(se=Ce?.video)===null||se===void 0?void 0:se.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=(ae=Ce?.video)===null||ae===void 0?void 0:ae.traceInfo)!==null&&pe!==void 0?pe:(je=Ce?.product)===null||je===void 0?void 0:je.traceInfo)!==null&&ge!==void 0?ge:"",contentFormat:jt,position:((Ie=L.previousIndex)!==null&&Ie!==void 0?Ie:0)+""}}),he(Ce),ce(Ce,L.previousIndex)):(Z?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(lt=(dt=Ce?.video)===null||dt===void 0?void 0:dt.itemId)!==null&&lt!==void 0?lt:"",productId:(st=(at=Ce.product)===null||at===void 0?void 0:at.itemId)!==null&&st!==void 0?st:"",requestId:null,traceInfo:(St=(pt=(tt=Ce?.video)===null||tt===void 0?void 0:tt.traceInfo)!==null&&pt!==void 0?pt:(qe=Ce?.product)===null||qe===void 0?void 0:qe.traceInfo)!==null&&St!==void 0?St:"",contentFormat:jt,position:((Le=L.previousIndex)!==null&&Le!==void 0?Le:0)+""}}),he(Ce)),Ae(Ce),de.current=new Date},Ae=L=>{var Y,G,J;!(!((Y=L?.video)===null||Y===void 0)&&Y.url)&&!(!((G=L?.video)===null||G===void 0)&&G.imgUrls)&&L?.product&&Bt(L,L.product,(J=L?.product)===null||J===void 0?void 0:J.bindCta,de.current,K)};n.useEffect(()=>{const L=s[K];Ne?Ae(L):de.current=new Date},[Ne,s,K]),n.useEffect(()=>{if(!t?.enableCookieSetting)return;function L(G){if(!G||G.indexOf(".")===-1)return"";const J=G.split(".");return J.length>=2?"."+J.slice(-2).join("."):""}window.OptanonWrapper=function(){const G=window?.OnetrustActiveGroups;G&&G?.length>2};const Y=G=>{var J,se;const ie=window?.OnetrustActiveGroups;(!((J=G.target)===null||J===void 0)&&J.closest(".ot-pc-refuse-all-handler")||!((se=G.target)===null||se===void 0)&&se.closest(".save-preference-btn-handler"))&&(window.OptanonWrapper=function(){var oe,ne;const ae=window?.OnetrustActiveGroups;if(ae)if(ae?.includes("4"))window?.loadMetaPixel(!1,SXP_CONFIG==null?void 0:SXP_CONFIG.meta_conversion_api_pid),window?.fbq("consent","grant"),vt.current=!0,Fe.current&&ie?.includes("4");else{window?.fbq("consent","revoke"),Fe.current=Ji("_fbp"),Uo("_fbp","/",L(window.location.hostname));const pe=s[K],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")&&Z?.({eventInfo:{eventSubject:"refuseCookie",eventDescription:"refuseCookie",traceInfo:je},isActiveTargetingCookie:!1})}})};return document.addEventListener("click",Y),()=>{document.removeEventListener("click",Y)}},[t,Z,s,K]);const Se=(L,Y,G)=>{var J,se,ie,oe,ne,ae,pe,je;const ge=s[L];if(!(!((J=ge?.video)===null||J===void 0)&&J.url)&&(!((se=ge?.video)===null||se===void 0)&&se.imgUrls)){const Ie=Date.now();Pe.current=Ie,Z?.({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((ae=ge?.video.tags)!==null&&ae!==void 0?ae:[]),position:L+"",contentFormat:"image",traceInfo:ge?.video.traceInfo,loadTime:Y?.loadTime}}),G&&(Je?.({eventName:"ViewContent",product:(pe=ge?.video)===null||pe===void 0?void 0:pe.bindProduct}),Je?.({eventName:"PageView",product:(je=ge?.video)===null||je===void 0?void 0:je.bindProduct}))}},xe=n.useCallback(L=>{var Y,G,J,se,ie,oe;if(!L)return;let ne=(Y=t?.muteIconY)!==null&&Y!==void 0?Y:23;return ye&&ne<40&&t?.muteIconYPosit==="top"&&(ne+=40),t?.muteIconYPosit==="top"&&(ne+=Ft),t?.muteIconFixed&&t?.muteIconYPosit!=="top"&&(ne+=ht),(t?.isShowMute===void 0||t?.isShowMute===!0)&&n.createElement(Xi,{style:{position:t?.muteIconFixed?"fixed":"absolute",visibility:!((J=(G=Et?.[K])===null||G===void 0?void 0:G.video)===null||J===void 0)&&J.url?"visible":"hidden",zIndex:999,transform:"translate3d(0px,0px,0px)",[(se=t?.muteIconXPosit)!==null&&se!==void 0?se:"right"]:(ie=t?.muteIconX)!==null&&ie!==void 0?ie:0,[(oe=t?.muteIconYPosit)!==null&&oe!==void 0?oe:"bottom"]:ne},defaultValue:Be,activeIcon:t?.unMuteIcon?t?.unMuteIcon:q,unactiveIcon:t?.muteIcon?t?.muteIcon:Q,onChange:ue})},[t,Et,K,Be,ye,ht]),Me=n.useMemo(()=>ee?n.createElement("div",{style:{height:Ut,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:$e,alt:"loading...",style:{objectFit:"contain"}})):Et?.map((L,Y)=>n.createElement(Dt,{key:Y,virtualIndex:Y,style:{overflow:"hidden"}},L&&n.createElement(n.Fragment,null,L?.loading?n.createElement("div",{style:{height:Ut,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:$e,alt:"loading...",style:{objectFit:"contain"}})):n.createElement(n.Fragment,null,H(L,Y),te(L,Y,!t?.likeIconFixed),xe(!t?.muteIconFixed),Oi(L,Y))))),[o,s,Ut,ee,H,Oi,Et,$e,nt,xe]);return n.createElement("div",{id:"sxp-render",className:"clc-sxp-container",style:{height:Ut}},s?.length<1&&ee?n.createElement("div",{style:{height:Ut,width:o,display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement("img",{width:64,height:64,src:$e,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:`${Ft}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:()=>{!mt.isEqual(gt,yt)&&yt&&yt?.length&&wt?.(yt),$?.(!0)}}),Gi,n.createElement(Lo,{tagList:p,setActiveIndex:Te,style:{top:Ft}}),((w=t?.backButton)===null||w===void 0?void 0:w.enable)&&!Ee&&!re&&!ye&&n.createElement(Mo,{data:t?.backButton,minusHeight:Ft,tagHeight:ei,onClick:()=>history?.back()}),(((x=(M=(D=(P=(C=t?.multiPosts)===null||C===void 0?void 0:C[0])===null||P===void 0?void 0:P.item)===null||D===void 0?void 0:D.props)===null||M===void 0?void 0:M.backButton)===null||x===void 0?void 0:x.enable)&&Ee||re)&&!ye&&n.createElement(Mo,{data:(j=(k=(V=(T=t?.multiPosts)===null||T===void 0?void 0:T[0])===null||V===void 0?void 0:V.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.backButton,minusHeight:Ft,tagHeight:ei,onClick:()=>{var L,Y;const G=Et?.[K];Z?.({eventInfo:{eventSubject:"backMultiPostClick",eventDescription:"backMultiPostClick",traceInfo:((L=G?.video)===null||L===void 0?void 0:L.traceInfo)||((Y=G?.product)===null||Y===void 0?void 0:Y.traceInfo)||""}}),location?.reload()}}),oi?n.createElement(wd,{imageUrl:t?.swipeTipIcon,style:{top:`${50-((E=t?.swipeTipOffset)!==null&&E!==void 0?E:0)}%`},duration:t?.swiperTipAniDur}):null,n.createElement(Zt,{style:{marginTop:ei},ref:we,onSlideChange:()=>{we.current.swiper.allowTouchMove=!1,setTimeout(()=>{we.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:L=>{Te(L.activeIndex),!Ne&&(ve(L),!(ye||Mt||be)&&L?.activeIndex+1>=s?.length&&(_e||(He(!0),We?.(Qe).then(Y=>{var G;He(!1),Y&&((G=Y?.recList)===null||G===void 0?void 0:G.length)>0&&Tt(Qe+1)}))))},direction:"vertical",height:Ut},Me,te(Et[K],K,!!t?.likeIconFixed),xe(!!t?.muteIconFixed)),n.createElement(To,Object.assign({},(R=(F=(y=t?.hashTag)===null||y===void 0?void 0:y[0])===null||F===void 0?void 0:F.item)===null||R===void 0?void 0:R.props)),n.createElement(Cd,{resolver:l,globalConfig:t}),re&&n.createElement(En,Object.assign({},(I=(O=(B=t?.multiPosts)===null||B===void 0?void 0:B[0])===null||O===void 0?void 0:O.item)===null||I===void 0?void 0:I.props,(U=(X=(N=t?.multiPosts)===null||N===void 0?void 0:N[0])===null||X===void 0?void 0:X.item)===null||U===void 0?void 0:U.event,{style:{position:"fixed",top:0,left:0,right:0,bottom:ht+"px"}}))),t?.enableCookieSetting&&n.createElement("div",{style:{position:"fixed",bottom:ht+"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:a,index:l})=>n.createElement(Zt,{defaultValue:0,direction:"horizontal",modules:[yi,wi],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(s=>n.createElement(Dt,{key:s},n.createElement(In,{src:s,height:i,imgUrlsPostConfig:o}))));var Md=n.memo(Ld);const jd=({rec:t,index:e,height:i,data:o,muted:a,activeIndex:l,videoPostConfig:s,width:c})=>{const[r,u]=n.useState(!1),d=n.useRef(null),{bffEventReport:A,sxpParameter:f,waterFallData:p,openHashtag:b}=ze(),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=a)},[a]);const D=n.useCallback(()=>{var O;(O=d.current)===null||O===void 0||O.play()},[]),M=kt("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),x=n.useCallback(()=>{var O,I,N,X,U,q,Q,me,re,K,Te,Pe,Be;u(!1);const ue=o[e];if(ue&&(!((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=((X=(N=d.current)===null||N===void 0?void 0:N.duration)!==null&&X!==void 0?X:0).toFixed(2),_e=((q=(U=d.current)===null||U===void 0?void 0:U.currentTime)!==null&&q!==void 0?q:0).toFixed(2),He=g?"0":"1";A?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(me=(Q=ue?.video)===null||Q===void 0?void 0:Q.itemId)!==null&&me!==void 0?me:"",contentName:(K=(re=ue?.video)===null||re===void 0?void 0:re.title)!==null&&K!==void 0?K:"",playType:He,startTime:_e,videoDuration:de,contentTags:JSON.stringify((Pe=(Te=ue?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Pe!==void 0?Pe:[]),position:e+"",contentFormat:"video",traceInfo:(Be=ue?.video)===null||Be===void 0?void 0:Be.traceInfo}}),h(!1)}},[A,o,e,g]),T=n.useCallback(()=>{v(!0)},[]),V=n.useCallback(O=>()=>{var I,N,X,U,q;if(!S)return;const Q=(I=d.current)===null||I===void 0?void 0:I.paused;switch(O){case"start":if(!Q)return;(N=d.current)===null||N===void 0||N.play(),u(!1);break;case"pause":if(Q)return;(X=d.current)===null||X===void 0||X.pause(),u(!0);break;default:Q?(U=d.current)===null||U===void 0||U.play():(q=d.current)===null||q===void 0||q.pause(),u(!Q);break}},[S]),k=n.useCallback(()=>{var O,I,N,X,U,q,Q,me,re,K,Te,Pe,Be;const ue=o[e],de=((I=(O=d.current)===null||O===void 0?void 0:O.duration)!==null&&I!==void 0?I:0).toFixed(2),_e=((X=(N=d.current)===null||N===void 0?void 0:N.currentTime)!==null&&X!==void 0?X:0).toFixed(2);if(!((U=d?.current)===null||U===void 0)&&U.duration){const He=(((q=d?.current)===null||q===void 0?void 0:q.currentTime)-m.current).toFixed(2);A?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(me=(Q=ue?.video)===null||Q===void 0?void 0:Q.itemId)!==null&&me!==void 0?me:"",contentName:(K=(re=ue?.video)===null||re===void 0?void 0:re.title)!==null&&K!==void 0?K:"",endTime:_e,videoDuration:de,playDuration:He,contentTags:JSON.stringify((Pe=(Te=ue?.video)===null||Te===void 0?void 0:Te.tags)!==null&&Pe!==void 0?Pe:[]),position:e+"",contentFormat:"video",traceInfo:(Be=ue?.video)===null||Be===void 0?void 0:Be.traceInfo}})}},[o,e,A]),j=n.useMemo(()=>s?.mode==="2",[s]),E=n.useMemo(()=>{var O;return s?.mode==="2"?`translateY(-${50+((O=s?.offsetTop)!==null&&O!==void 0?O:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[s]),y=n.useMemo(()=>{var O;return((O=t?.video)===null||O===void 0?void 0:O.cover)||C},[C,t]),F=n.useCallback(()=>{if(!w||!d||!d.current||!w.current)return;const O=d?.current,I=w?.current,N=I.getContext("2d"),X=window?.innerWidth,U=window?.innerHeight;I.height=U,I.width=X,N?.drawImage(O,0,0,I.width,I.height),P(I.toDataURL())},[]);n.useEffect(()=>{var O,I,N,X;if(d.current){if(u(!1),!d.current.src){const U=t?.video.url;if(U.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const q=new window.Hls;q.loadSource(U),q.attachMedia(d.current)}else d.current.canPlayType("application/vnd.apple.mpegurl"),d.current.src=U;else d.current.src=U;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),(X=d.current)===null||X===void 0||X.addEventListener("loadeddata",F),()=>{var U,q,Q,me;(U=d.current)===null||U===void 0||U.removeEventListener("loadedmetadata",T),(q=d.current)===null||q===void 0||q.removeEventListener("canplay",T),(Q=d.current)===null||Q===void 0||Q.removeEventListener("playing",x),(me=d.current)===null||me===void 0||me.removeEventListener("loadeddata",F)}}},[T,x,t?.video,F]);const R=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)&&!r&&V("pause")()};return window.addEventListener("beforeunload",O),()=>{window.removeEventListener("beforeunload",O)}},[l,e,t,d,V,r]);const B=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:V(),style:{position:"relative",width:c,height:i,overflow:"hidden"}},n.createElement(Pt,{src:y,style:Object.assign({height:i,width:c,objectFit:"cover"},B)}),n.createElement("canvas",{ref:w,style:{display:"none"}}),n.createElement("div",{style:{position:"absolute",width:c,height:i,top:"50%",transform:E,left:0,right:0}},n.createElement("div",{style:{position:"relative",width:c,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:D,style:{width:"100%",height:i,objectFit:"contain"}}),n.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:M,alt:"video pause image"}))),R):n.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:V(),style:{position:"relative",width:c,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:D}),R,n.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:M,alt:"video pause image"}))):null};var Nd=n.memo(jd);const Ci={};Object.values(Ui).forEach(t=>{Ci[t.extend.type]=t});const Rd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Dd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Vd=({data:t=[],globalConfig:e,tipText:i,nudge:o,tempMap:a,descStyle:l,hashTagStyle:s,containerHeight:c=664,containerWidth:r=375,appDomain:u,tagList:d=[]})=>{const A=n.useMemo(()=>{let P=0;return e?.logoUrl&&e?.isShowLogo&&(P+=45),d.length>0&&(P+=45),c-P},[e,c,d]),f=(P,D)=>{var M,x,T,V;if(!((M=P?.video)===null||M===void 0)&&M.url)return n.createElement(Nd,{rec:P,index:D,muted:!0,width:r,data:t??[],height:A,activeIndex:D,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:r,height:A,rec:P,index:D,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(V=e?.productPost)===null||V===void 0?void 0:V.map((k,j)=>{var E,y,F,R,B,O,I,N;const X=Ci[(E=k?.item)===null||E===void 0?void 0:E.type],U=Ii(X),q=(y=X?.extend)===null||y===void 0?void 0:y.defaulSetting;return n.createElement(U,Object.assign({key:`${D}${j}`,textStyle:Object.assign(Object.assign({},q?.textStyle),(F=k?.item)===null||F===void 0?void 0:F.textStyle),bindDatas:(B=(R=k?.item)===null||R===void 0?void 0:R.bindDatas)!==null&&B!==void 0?B:[]},q?.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({},q?.style),(N=k?.item)===null||N===void 0?void 0:N.style),{width:r,height:A,overflow:"auto"}),index:D}))})},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,D)=>e?.isShowCTA===void 0||e?.isShowCTA?n.createElement("div",{className:"clc-sxp-bottom-card"},n.createElement(Gt,{rec:P,index:D,tempMap:a,resolver:Ci,isActive:!0})):null,m=(P,D)=>{var M,x,T,V,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,D),n.createElement("div",null,n.createElement(xi,{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(Gt,{rec:P,index:D,tempMap:a,resolver:Ci,includesCtaType:["AniLink"],isActive:!0})),n.createElement(Co,{index:D,tags:(k=(V=P?.video)===null||V===void 0?void 0:V.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:s})),n.createElement(Gt,{rec:P,index:D,tempMap:a,resolver:Ci,includesCtaType:["AniLinkPopup"],isActive:!0})):null},S=kt(Dd,u),v=kt(Rd,u),g=(P,D)=>{var M,x,T,V;if(!e?.isShowLike)return;let k=(M=e?.likeIconY)!==null&&M!==void 0?M:400;return k<40&&(k+=40),P?.video?n.createElement(kn,{key:P.position,activeIcon:(x=e?.likeIcon)!==null&&x!==void 0?x:S,unActicveIcon:(T=e?.unlikeIcon)!==null&&T!==void 0?T:v,position:D,active:P.isCollected,recData:P,className:"clc-sxp-like-button",style:{top:k,right:(V=e?.likeIconX)!==null&&V!==void 0?V:0}}):null},h=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",u),w=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",u),C=(P,D)=>{var M,x,T,V;return n.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},p,n.createElement(Lo,{tagList:d}),n.createElement(Xi,{style:{position:"absolute",right:(M=e?.muteIconX)!==null&&M!==void 0?M:0,visibility:!((T=(x=t?.[D])===null||x===void 0?void 0:x.video)===null||T===void 0)&&T.url?"visible":"hidden",bottom:(V=e?.muteIconY)!==null&&V!==void 0?V:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:h,unactiveIcon:e?.muteIcon?e?.muteIcon:w}),f(P,D),m(P,D),g(P,D))};return n.createElement("div",{className:Re.css({width:"100%",height:c,display:"flex",boxSizing:"border-box",gap:16,pointerEvents:"none",userSelect:"none",transform:"scale(0.7) translateX(-22%) translateY(-140px)"})},t?.map((P,D)=>C(P,D)))};var Bd=n.memo(Vd);const Fd=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:o,rec:a,index:l,swiperRef:s,data:c=[],loopPlay:r})=>{const{isActive:u}=gi(),[d,A]=n.useState(!1);n.useEffect(()=>{u&&d&&r&&setTimeout(()=>{var p,b,m,S;if(l===c?.length-1)(p=s?.current)===null||p===void 0||p.swiper.slideTo(0);else{const v=(m=(b=s?.current)===null||b===void 0?void 0:b.swiper)===null||m===void 0?void 0:m.activeIndex;(S=s?.current)===null||S===void 0||S.swiper.slideTo(v+1)}},3e3)},[u,d,c,l,s,r]);const f=()=>{A(!0)};return n.createElement(Zt,{defaultValue:0,direction:"horizontal",modules:[yi,wi],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(p=>n.createElement(Dt,{key:p},n.createElement(In,{src:p,height:i,imgUrlsPostConfig:o,onShowFirstImage:f}))))};var Wd=n.memo(Fd);const zd=n.forwardRef(({rec:t,index:e,height:i,data:o,muted:a,activeIndex:l,videoPostConfig:s,width:c,swiperRef:r,videoPlayIcon:u,onUpdateTimeLine:d,loopPlay:A,onPlay:f,onPause:p},b)=>{const{isActive:m}=gi(),[S,v]=n.useState(!1),g=n.useRef(null),{bffEventReport:h,sxpParameter:w,waterFallData:C,openHashtag:P}=ze();n.useRef(0);const[D,M]=n.useState(!1);n.useState(!0),n.useRef(null),n.useState("");const x=`pb-cache-video-${e}`,T=n.useRef(null),V=n.useRef(A),k=t.video.scene;n.useEffect(()=>{V.current=A},[A]),n.useImperativeHandle(b,()=>({play(){var N;g.current&&(R(),(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){V.current=N},isPlaying(){var N;return!(!((N=g?.current)===null||N===void 0)&&N.paused)}})),n.useEffect(()=>{g.current&&(g.current.muted=a)},[a]);const j=kt("/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 X,U,q,Q,me,re;if(!m||!g?.current||!D)return;const K=(X=g.current)===null||X===void 0?void 0:X.paused;switch(N){case"start":if(!K)return;(U=g.current)===null||U===void 0||U.play(),v(!1);break;case"pause":if(K)return;(q=g.current)===null||q===void 0||q.pause(),v(!0);break;default:K?(((Q=g?.current)===null||Q===void 0?void 0:Q.currentTime)>=k?.endTime&&(g.current.currentTime=k?.startTime),(me=g.current)===null||me===void 0||me.play()):(re=g.current)===null||re===void 0||re.pause(),v(!K);break}},[D]),F=n.useMemo(()=>s?.mode==="2",[s]),R=()=>{g.current&&setTimeout(()=>{var N,X,U,q,Q,me,re,K,Te;if(((N=g?.current)===null||N===void 0?void 0:N.currentTime)>=((X=k?.endTime)!==null&&X!==void 0?X:0)){if((U=g.current)===null||U===void 0||U.pause(),!V.current)return;if(e===o?.length-1)(Q=(q=r?.current)===null||q===void 0?void 0:q.swiper)===null||Q===void 0||Q.slideTo(0);else{const Pe=(re=(me=r?.current)===null||me===void 0?void 0:me.swiper)===null||re===void 0?void 0:re.activeIndex;(Te=(K=r?.current)===null||K===void 0?void 0:K.swiper)===null||Te===void 0||Te.slideTo(Pe+1)}}})},B=()=>{v(!0),p?.()},O=()=>{var N;const X=((N=g?.current)===null||N===void 0?void 0:N.currentTime)-k?.startTime;f?.(e,X)};n.useEffect(()=>{var N,X,U,q;if(!m)return;const Q=k?.mediaUrl;if(!Q)return;v(!1);const me=document.querySelector(`#${x}`);if(!me||(g.current=hi?.(me),!g?.current))return;const re=window?.Hls;let K=T?.current;return Q.includes(".m3u8")&&re&&re.isSupported()?(K=new re,K?.loadSource(Q),K?.attachMedia(g?.current),K?.on(re.Events.MANIFEST_PARSED,function(){var Te;g.current.currentTime=k?.startTime,(Te=g?.current)===null||Te===void 0||Te.play()})):g.current.src=Q,(N=g.current)===null||N===void 0||N.addEventListener("loadedmetadata",E),(X=g?.current)===null||X===void 0||X.addEventListener("pause",B),(U=g?.current)===null||U===void 0||U.addEventListener("play",O),(q=g.current)===null||q===void 0||q.addEventListener("timeupdate",R),()=>{var Te,Pe,Be,ue,de;T?.current&&((Te=T?.current)===null||Te===void 0||Te.destroy()),M(!1),(Pe=g.current)===null||Pe===void 0||Pe.removeEventListener("loadedmetadata",E),(Be=g.current)===null||Be===void 0||Be.removeEventListener("pause",B),(ue=g.current)===null||ue===void 0||ue.removeEventListener("play",O),(de=g.current)===null||de===void 0||de.removeEventListener("timeupdate",R)}},[m]);const I=n.useMemo(()=>{var N;return!w?.placeholder_image||D?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"})},[D,w?.placeholder_image]);return n.useMemo(()=>F?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[F]),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(Pt,{className:"clc-pb-video-pause",src:u??j,alt:"pause"})):null});var Hd=n.memo(zd);const qi={};Object.values(Ui).forEach(t=>{qi[t.extend.type]=t});const Ud="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Xd="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",qd=n.forwardRef(({data:t=[],globalConfig:e,tipText:i,nudge:o,tempMap:a,descStyle:l,hashTagStyle:s,containerHeight:c=664,containerWidth:r=375,appDomain:u,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,D]=n.useState(0);n.useMemo(()=>{let O=0;return e?.logoUrl&&e?.isShowLogo&&(O+=45),d.length>0&&(O+=45),c-O},[e,c,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(X=>N?.endsWith(X))}else return!1},x=(O,I)=>{var N,X;const U=(N=O?.video)===null||N===void 0?void 0:N.scene;return M(U?.mediaUrl)?n.createElement(Hd,Object.assign({key:I},P===I&&{ref:w},{rec:O,index:I,muted:!0,width:r,data:t,height:c,activeIndex:I,videoPostConfig:e?.videoPost,videoPlayIcon:e?.videoPlayIcon,swiperRef:C,loopPlay:p,onUpdateTimeLine:m,onPlay:v,onPause:g})):n.createElement(Wd,{key:I,imgUrls:[(X=U?.mediaUrl)!==null&&X!==void 0?X:""],width:r,height:c,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,X,U,q;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:`${(X=e?.bottomInfoDist)!==null&&X!==void 0?X: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(Gt,{rec:O,index:I,tempMap:a,resolver:qi,isActive:I===f})):null,n.createElement("div",null,n.createElement(xi,{isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(q=(U=O?.video)===null||U===void 0?void 0:U.title)!==null&&q!==void 0?q:"",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(Gt,{rec:O,index:I,tempMap:a,resolver:qi,includesCtaType:["AniLink"],isActive:I===f}))),n.createElement(Gt,{rec:O,index:I,tempMap:a,resolver:qi,includesCtaType:["AniLinkPopup"],isActive:I===f})):null},V=kt(Xd,u),k=kt(Ud,u),j=(O,I)=>{var N,X,U,q;if(!e?.isShowLike)return null;let Q=(N=e?.likeIconY)!==null&&N!==void 0?N:400;return Q<40&&(Q+=40),O?.video?n.createElement(kn,{key:O.position,activeIcon:(X=e?.likeIcon)!==null&&X!==void 0?X:V,unActicveIcon:(U=e?.unlikeIcon)!==null&&U!==void 0?U:k,position:I,active:O.isCollected,recData:O,style:{top:Q,right:(q=e?.likeIconX)!==null&&q!==void 0?q: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=kt("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",u),y=kt("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",u),F=O=>{var I,N,X,U;if(!O)return null;let q=(I=e?.muteIconY)!==null&&I!==void 0?I:23;return e?.muteIconYPosit==="top"&&(q+=45),e?.isShowMute===void 0||e?.isShowMute===!0?n.createElement(Xi,{style:{position:"absolute",visibility:"visible",zIndex:999,transform:"translate3d(0px,0px,0px)",[(N=e?.muteIconXPosit)!==null&&N!==void 0?N:"right"]:(X=e?.muteIconX)!==null&&X!==void 0?X:0,[(U=e?.muteIconYPosit)!==null&&U!==void 0?U:"bottom"]:q,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},R=(O,I)=>{var N,X,U,q;return n.createElement("div",{style:{position:"relative"}},n.createElement(Dt,{key:I,virtualIndex:I,style:{overflow:"hidden",position:"relative"}},T(O,I),j(O,I),F(!e?.muteIconFixed),n.createElement(Xi,{style:{position:"absolute",right:(N=e?.muteIconX)!==null&&N!==void 0?N:0,visibility:!((U=(X=t?.[I])===null||X===void 0?void 0:X.video)===null||U===void 0)&&U.url?"visible":"hidden",bottom:(q=e?.muteIconY)!==null&&q!==void 0?q: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 B=n.useCallback(mt.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,B)}),()=>{O.forEach(I=>{window.removeEventListener(I,B)})}},[B,S]),n.createElement("div",{id:"sxp-render",style:{height:c,position:"relative",pointerEvents:b}},n.createElement(Zt,{ref:C,allowTouchMove:b!=="none",onSlideChange:()=>{C.current.swiper.allowTouchMove=!1,setTimeout(()=>{C.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:O=>{D(O?.activeIndex),A?.(O.activeIndex)},direction:"vertical",style:{overflow:"hidden",height:c},height:c},t?.map((O,I)=>R(O,I))))});var Yd=n.memo(qd);const Gd=()=>{const{schema:t,resolver:e,popup:i}=ti(),{setPopupDetailData:o,popupDetailData:a,popupCurTimeRef:l,checkCommodityIndexRef:s}=ze(),{productView:c}=Lt(),[r,u]=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,u(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,D,M,x,T,V,k,j,E;if(!i||i?.id===""||!r||new Date-l.current<((p=i?.duration)!==null&&p!==void 0?p:0))return;u(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(F=>F?.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 F=a;let R=(w=(h=F?.video)===null||h===void 0?void 0:h.bindProduct)!==null&&w!==void 0?w:(P=(C=F?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0],B=(x=(M=(D=F?.video)===null||D===void 0?void 0:D.bindProduct)===null||M===void 0?void 0:M.bindCta)!==null&&x!==void 0?x:(k=(V=(T=F?.video)===null||T===void 0?void 0:T.bindProducts)===null||V===void 0?void 0:V[0])===null||k===void 0?void 0:k.bindCta;if(s?.current>=0){const O=(E=(j=F?.video)===null||j===void 0?void 0:j.bindProducts)===null||E===void 0?void 0:E[s?.current];O&&(R=O,B=O?.bindCta)}R&&B&&c(F,R,B,l.current,a?.index)}setTimeout(()=>{window?.sxpPopup(""),o?.(null),s.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,D,M,x,T,V,k,j,E,y;if(S?.id===i?.id){const F=e[(g=S?.item)===null||g===void 0?void 0:g.type],R=Ii(F),B=((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=(D=(P=S?.item)===null||P===void 0?void 0:P.event)===null||D===void 0?void 0:D.onClick)===null||M===void 0?void 0:M.linkType)==="popup",I=(x=F?.extend)===null||x===void 0?void 0:x.defaulSetting;return n.createElement(R,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),(V=S?.item)===null||V===void 0?void 0:V.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:B,isPopup:O,onClose:A}))}else return n.createElement(n.Fragment,null)})},[t,i,e,A]);return n.createElement(mi,{popup:r,onClose:A,padding:0,modalStyle:{position:"fixed"},isFullScreen:d},f)},Cn={};Object.values(Ui).forEach(t=>{Cn[t.extend.type]=t});const _d=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:o=20,loadingImage:a,appDomain:l,enabledMetaConversionApi:s,dataList:c})=>{var r,u,d,A,f,p,b;const m=((r=t?.page_type)===null||r===void 0?void 0:r.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(Kn,{resolver:Cn,enableDataSource:!1,schema:v,utmVal:h||S},n.createElement(Yn,{utmVal:S,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(d=(u=t?.sxp_parameter)===null||u===void 0?void 0:u.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:a,appDomain:l,enabledMetaConversionApi:s,utmParameter:t?.utm_parameter,data:t,dataList:c,isDiyH5:m,onUpdateSchema:C=>g(C),onUpdateChannel:C=>w(C),render:({rtcList:C,tagList:P,pageData:D})=>{var M;return n.createElement(n.Fragment,null,n.createElement(jo,Object.assign({defaultData:t},(M=D?.data)===null||M===void 0?void 0:M.sxpPageConf,{tagList:P,data:C,resolver:Cn})),n.createElement(Gd,null))}}))};var Zd=n.memo(_d);exports.DiyPortalPreview=Bd,exports.DiyStoryPreview=Yd,exports.EditorDataProvider=td,exports.Modal=mi,exports.SxpDataSourceProvider=Yn,exports.SxpPageCore=Zd,exports.SxpPageRender=jo,exports.core=al,exports.default=Yo,exports.materials=Ui,exports.useEditorDataProvider=ki;
18
18
  //# sourceMappingURL=index.min.cjs.map