pb-sxp-ui 1.13.4 → 1.13.5

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,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var lt=require("lodash"),Ao=require("uuid"),bo=require("pako"),o=require("react"),Li=require("qs"),go=require("eventemitter3"),Ie=require("@emotion/css"),mn=require("react-dom");function yo(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var fn=yo(mn);function tt(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(i[n[a]]=t[n[a]]);return i}function At(t,e,i,n){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(n.next(d))}catch(f){s(f)}}function r(d){try{u(n.throw(d))}catch(f){s(f)}}function u(d){d.done?l(d.value):a(d.value).then(c,r)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const wo=/:\w+/g;var hn=(t,e)=>At(void 0,void 0,void 0,function*(){const i={},n={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:c,urlParams:r,name:u,queryString:d,headers:f,body:h}=e[a];let A=c;r&&Object.entries(r).forEach(([y,b])=>{A=A.replace(wo,x=>x===y?b:x)}),d&&(A+=d),n[l]=u;try{const y=yield fetch(A,{method:s,headers:Object.assign({"Content-Type":"application/json"},f),body:JSON.stringify(h)}).then(b=>b.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const An="SXP_TOKEN_INFO",So=(t,e)=>At(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(An);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":n||"","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(An,JSON.stringify(c))}}return c});function bi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)n[a]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",a=0;a<36;a++)n[a]||(l=0|Math.random()*16,n[a]=i[a===19?l&3|8:l])}return n.join("")}const xo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*n)),a+=1;return e},To=()=>{const t=Ao.v4();return t?.replaceAll?t.replaceAll("-",""):xo(32)},Ee=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!n&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${n??"inherit"}`,u=`font-family:${a??"inherit"}`,d=h=>{let A=h.search(s),y=h.search(c);return A!==-1&&y!==-1&&A<y&&(i+=`<span style="${r}">${h.substring(A,y)}</span>`,l=h.substring(y,h?.length)),A!==-1&&y!==-1&&A>y&&(i+=`<span style="${u}">${h.substring(y,A)}</span>`,l=h.substring(A,h?.length)),A===-1?(i+=`<span style="${u}">${h.substring(y,h?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${r}">${h.substring(A,h?.length)}</span>`,l="",!1):!0};let f=!0;for(;f;)f=d(l);return i};function bn(t){const i=document.cookie.split(";");let n=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(n=s)}),n??""}function Oi(){let 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 gn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),a=bo.inflate(n,{to:"string"});return JSON.parse(a)}let Ri=null;const Eo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Co{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Ri)return Ri;Ri=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Eo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let gt=null;const Io={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{gt||(gt=new Co),n&&gt.setApiUrl(n),gt.setAppId(t),gt.setTenantId(e),gt.setEnv(i)},getDetail:t=>{if(!gt)return;const e=gt.getTenantId(),i=gt.getAppId(),n=gt.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>At(void 0,void 0,void 0,function*(){var l,s;const c=yield a.json(),r=gn((l=c?.data)===null||l===void 0?void 0:l.data);if(r){const{$store:u}=yield hn(n,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>At(void 0,void 0,void 0,function*(){if(!gt)return;const e=gt.getTenantId(),i=gt.getAppId(),n=gt.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>At(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:gn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>At(void 0,void 0,void 0,function*(){if(!gt)return;const e=yield So(gt,t),i=bi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");lt.isEmpty(n)&&(n=bi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));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:n,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return a?.data||null})};function Jt(){return o.useContext(Mn)}function ko(){return o.useContext(Pn)}const Ni="feRealSessionIdKey",yn=()=>{const t=To();return`${Date.now()}${t}`},Po=()=>{let t=Mo();return t||(t=yn(),window.localStorage.setItem(Ni,t)),t},Vi=()=>{const t=yn();window.localStorage.setItem(Ni,t)},Mo=()=>window.localStorage.getItem(Ni),wn="SXP_FAKE_USER_ID",Sn="FAKE_USER_STATE",xn="AGREE_POLICY",Tn="SLIDE_SKIP_STATE",En="CCONTSENT_STATE",Do=()=>{let t=window.localStorage.getItem(wn);return lt.isEmpty(t)&&(t=bi(36,62),window.localStorage.setItem(wn,t)),t},_o=()=>{const t=window.localStorage.getItem(Sn);return lt.isEmpty(t)&&window.localStorage.setItem(Sn,"true"),lt.isEmpty(t)},Lo=()=>{const t=window.localStorage.getItem(Tn);return lt.isEmpty(t)},Oo=()=>{window.localStorage.setItem(Tn,"true")},Ro=()=>{const t=window.localStorage.getItem(En);return lt.isEmpty(t)&&window.localStorage.setItem(En,"true"),lt.isEmpty(t)};function Ot(t,e){const{appDomain:i}=je();return o.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const mt=new go;var dt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(dt||(dt={}));const No=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:c}=je(),r=o.useMemo(()=>{const f=location.search.slice(1),h=Li.parse(f.replace(/\+/g,"%2B"));for(const A in h)h[A]=h[A].replace(/%2B/g,"+");return h},[]),u=f=>{var h;return(h=r[f])!==null&&h!==void 0?h:null};o.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"),clSource:u("cl_source"),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(xn,"yes")};return o.createElement("div",{className:"consent-bg"},o.createElement("div",{className:"consent"},o.createElement("div",{className:"consent-col"},o.createElement("div",{className:"consent-title"},i??"Privacy Policy"),o.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),o.createElement("div",{className:"consent-col"},o.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),o.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},l??"More information"))))};var Vo=o.memo(No);const Cn=o.createContext({rtcList:[],tagList:[]});var ji;(function(t){t[t.BFF=5]="BFF"})(ji||(ji={}));const gi="FOR U",jo=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:f=!1,enabledMetaConversionApi:h=!1,consentHeight:A,consentWidth:y,isOpenConsent:b=!1,isEditor:x=!1,utmParameter:v,channelQueryList:g,data:p,dataList:T,onUpdateSchema:k,onUpdateChannel:I})=>{var O,m,S,w,P;const[C,L]=o.useState([]),[E,V]=o.useState([]),[F,D]=o.useState(!1),[N,R]=o.useState({rtc:"",requestId:""}),M=o.useRef(null),j=o.useRef(!1),[W,Z]=o.useState(()=>!!window.localStorage.getItem(xn)),[J,$]=o.useState(),[ae,de]=o.useState(),[ee,ke]=o.useState(f),[_e,Be]=o.useState([]),[Y,K]=o.useState(0),[ue,fe]=o.useState(!1),[he,le]=o.useState(null),Pe=o.useRef(),Ge=o.useRef(),Re=o.useRef(),[Ze,Qe]=o.useState(gi),Ae=o.useRef(-1),q=o.useRef(null),[G,ie]=o.useState(!1),[ne,se]=o.useState((m=(O=p?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||m===void 0?void 0:m.globalConfig),[xe,Je]=o.useState(),[te,B]=o.useState(!1),[Ue,wt]=o.useState(),[$e,bt]=o.useState(),[ft,St]=o.useState([]),[Vt,Dt]=o.useState(),jt=o.useMemo(()=>xe??p,[xe,p]),kt=o.useMemo(()=>{var z,X,ve,Te;return(((Te=(ve=(X=(z=ne?.consent)===null||z===void 0?void 0:z[0])===null||X===void 0?void 0:X.item)===null||ve===void 0?void 0:ve.props)===null||Te===void 0?void 0:Te.privacy_necessity)&&!W&&!x||b)&&te},[W,ne,b,x,te]),Lt=o.useCallback(z=>{I?.(z),bt(z)},[]),xt=o.useCallback(z=>{var X;const ve=z?.recList;return(X=ve?.map(ge=>{var Se,Oe,We,Xe,Ye,Ke;if(!((Se=ge?.video)===null||Se===void 0)&&Se.bindProducts&&((We=(Oe=ge?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||We===void 0?void 0:We.length)>0){const st=(Ke=(Ye=(Xe=ge?.video)===null||Xe===void 0?void 0:Xe.bindProducts)===null||Ye===void 0?void 0:Ye.filter(nt=>!!nt?.bindCta))!==null&&Ke!==void 0?Ke:[];return Object.assign(Object.assign({},ge),{video:Object.assign(Object.assign({},ge?.video),{bindProducts:st})})}return ge}))!==null&&X!==void 0?X:[]},[]);o.useEffect(()=>{let z;return ft.length>0&&(z=setInterval(()=>{const ve=new Date,Te=15*1e3;St(ge=>ge.filter(Se=>ve-Se.time<=Te))},1e3)),()=>{clearInterval(z)}},[ft]),o.useEffect(()=>{const z=X=>{Pe.current=X};return mt.on(dt.CHANGE_THEME_TAG,z),()=>{mt.off(dt.CHANGE_THEME_TAG,z)}},[]),o.useEffect(()=>{ke(f)},[f]);const it=o.useMemo(()=>e?.find(z=>z.type===ji.BFF),[e]),Ft=o.useMemo(()=>{var z;return((z=it?.headers)===null||z===void 0?void 0:z["x-app-id"])+Do()},[it]),Fe=o.useCallback((z,X)=>{if(!it)return;const ve=it.url;if(X?.query){const Te=Li.stringify(X.query);z=`${z}?${Te}`}return X.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${ve}/api/${z}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},X.body),it.headers),{"x-user-id":Ft}))],{type:"application/json;charset=UTF-8"})):window.fetch(`${ve}/api/${z}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":Ft},it.headers),method:X.method,body:JSON.stringify(X.body)}).then(Te=>Te.json()).catch(Te=>Promise.reject(Te))},[it,Ft]),ht=o.useCallback(z=>At(void 0,void 0,void 0,function*(){var X,ve,Te,ge,Se,Oe,We,Xe,Ye,Ke,st,nt,rt,_;if(z={maxSize:(X=z?.maxSize)!==null&&X!==void 0?X:a,defaultSize:(ve=z?.defaultSize)!==null&&ve!==void 0?ve:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},$e)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent($e)});else if(i){const U=(Se=(ge=(Te=i?.split("&"))===null||Te===void 0?void 0:Te.filter(oe=>{var Q,be;const re=oe.split("=")[0];return(be=(Q=v?.channels)!==null&&Q!==void 0?Q:[])===null||be===void 0?void 0:be.includes(re)}))===null||ge===void 0?void 0:ge.join("&"))!==null&&Se!==void 0?Se:"";U&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(U)}))}if(x){let U=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!z?.channel||j.current)return;j.current=!0;let oe=[],Q=null;const be=re=>At(void 0,void 0,void 0,function*(){var ce,De,Ne,Ve,me,we;if(re.pageNum=U,Q=yield Fe?.("v1/recommend/list",{method:"POST",body:re}),!Q?.success)return;D(!1),oe=oe.concat((Ve=(Ne=(De=(ce=Q?.data)===null||ce===void 0?void 0:ce.recList)===null||De===void 0?void 0:De.filter)===null||Ne===void 0?void 0:Ne.call(De,ze=>ze?.product||ze?.video))!==null&&Ve!==void 0?Ve:[]),L(xt(Object.assign(Object.assign({},Q.data),{recList:oe}))),Be(xt(Object.assign(Object.assign({},Q.data),{recList:oe}))),((we=(me=Q?.data)===null||me===void 0?void 0:me.recList)===null||we===void 0?void 0:we.some(ze=>ze?.product||ze?.video))&&(U=U+1,yield be(re))});return yield be(z),!z?.hashTag&&Q&&R({rtc:(Oe=Q?.data)===null||Oe===void 0?void 0:Oe.rtc,requestId:(We=Q?.data)===null||We===void 0?void 0:We.requestId}),Object.assign(Object.assign({},Q.data),{recList:oe})}ne?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(Xe=z?.pageNum)!==null&&Xe!==void 0?Xe:1}));const H=yield Fe?.("v1/recommend/list",{method:"POST",body:z});if(H?.success){if(z?.hashTag||R({rtc:H.data.rtc,requestId:H.data.requestId}),ne?.enablePreview&&!x){let U=[];return U=U.concat((nt=(st=(Ke=(Ye=H?.data)===null||Ye===void 0?void 0:Ye.recList)===null||Ke===void 0?void 0:Ke.filter)===null||st===void 0?void 0:st.call(Ke,Q=>Q?.product||Q?.video))!==null&&nt!==void 0?nt:[]),((_=(rt=H?.data)===null||rt===void 0?void 0:rt.recList)===null||_===void 0?void 0:_.some(Q=>Q?.product||Q?.video))||ie(!0),Object.assign(Object.assign({},H.data),{recList:U})}return H?.data}}),[Fe,i,a,l,g,$e]),pe=o.useCallback(z=>At(void 0,void 0,void 0,function*(){var X,ve,Te,ge;if(C.length<=0)return;const Se=C?.[C?.length-1],Oe=yield ht(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ae?.hashTag},((X=Se?.product)===null||X===void 0?void 0:X.itemId)&&{productFilter:[(ve=Se?.product)===null||ve===void 0?void 0:ve.itemId]}),((Te=Se?.video)===null||Te===void 0?void 0:Te.itemId)&&{contentFilter:[(ge=Se?.video)===null||ge===void 0?void 0:ge.itemId]}),{themeTag:Pe.current}),ne?.enablePreview&&!x&&{pageNum:z}));return L(C.concat(xt(Oe))),Be(_e.concat(xt(Oe))),Oe}),[ht,C,ae,_e]),ye=o.useCallback((z,X)=>{var ve,Te,ge,Se,Oe;let We=!1;const Xe=(Te=(ve=p?.data)===null||ve===void 0?void 0:ve.sxpPageConf)===null||Te===void 0?void 0:Te.globalConfig;if(!((ge=Xe?.session)===null||ge===void 0)&&ge.enable){const Ye=localStorage.getItem("sessionStartTime"),Ke=Ye?JSON.parse(Ye):new Date().getTime();Math.floor((new Date().getTime()-Ke)/1e3/60)>=((Oe=(Se=Xe?.session)===null||Se===void 0?void 0:Se.expires)!==null&&Oe!==void 0?Oe:30)&&(X?.("sessionTimeOut"),Vi(),Ge.current=new Date,We=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&Vi();return We},[p]),Le=o.useCallback(({userInfo:z,eventInfo:X,reportLayId:ve=!0})=>{var Te;if(!n||ne?.enablePreview)return;z||(z={});const ge=Po(),Se=Object.assign(Object.assign(Object.assign(Object.assign({sessionID:ge,rtc:N.rtc,requestId:N.requestId},{playbookType:Vt}),Ue&&ve&&{layoutVariantId:Ue}),X),X?.position&&$e&&{position:Number(X?.position)+1+""}),Oe=Object.entries(z).map(([Xe,Ye])=>({name:Xe,value:Ye})),We=Object.entries(Se).map(([Xe,Ye])=>Ye&&{name:Xe,value:Ye}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",Se),console.log("========= \u7ED3\u675F ========="),Fe?.(`v2/event/report/CLD/${(Te=it?.headers)===null||Te===void 0?void 0:Te["x-app-id"]}/${X?.eventSubject}`,{method:"POST",body:{userInfo:Oe,eventInfo:We},type:"beacon"})},[Fe,N,n,ne?.enablePreview,Ue,ne,Vt,it]),Tt=o.useCallback(({eventName:z,product:X})=>{var ve,Te,ge,Se,Oe,We;if(!n||!h||ne?.enablePreview||!(!((ve=ne?.converApi)===null||ve===void 0)&&ve[z]))return;let Xe=lt.cloneDeep((Te=ne?.converApi)===null||Te===void 0?void 0:Te[z]);const Ye=new URLSearchParams(window.location.search),Ke=Ye?.get("fbclid"),st={event_source_url:(ge=window?.location)===null||ge===void 0?void 0:ge.href,external_id:Ft,client_user_agent:(Oe=(Se=window?.navigator)===null||Se===void 0?void 0:Se.userAgent)!==null&&Oe!==void 0?Oe:"",fbc:Ke?`fb.2.${new Date().getTime()}.${Ke}`:"",fbp:bn("_fbp")?`fb.2.${new Date().getTime()}.${bn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},nt=/\{\{(.*?)\}\}/g,rt=_=>{if(_){if(_ instanceof Array)_?.map(H=>rt(H));else for(const H in _)if(_.hasOwnProperty(H)){const U=_?.[H];if(typeof U=="object")rt(U);else if(typeof U=="string"){const oe=U?.match(nt);oe&&oe.forEach(Q=>{var be;const re=Q.substring(2,Q.length-2);try{let ce=new Function("fix_par","product",`return ${re}`)(st,X);ce?(re?.indexOf("currency")!==-1&&ce?.indexOf("-")!==-1&&typeof ce=="string"&&(ce=(be=ce?.split("-"))===null||be===void 0?void 0:be[0]),_[H]=ce):delete _[H]}catch(ce){delete _[H],console.error("An error occurred:",ce?.message)}})}}}};return rt(Xe),Fe?.(`v2/event/report/FB/${(We=it?.headers)===null||We===void 0?void 0:We["x-app-id"]}/${z}`,{method:"POST",body:Xe,type:"beacon"})},[Fe,n,h,ne?.enablePreview,ne,Ft,it]),Kt=o.useCallback(z=>At(void 0,void 0,void 0,function*(){const X=yield Fe?.("v1/recommend/like",{method:"POST",body:z});return X?.success}),[Fe]),Xt=o.useCallback(z=>At(void 0,void 0,void 0,function*(){const X=yield Fe?.("v1/recommend/unlike",{method:"POST",body:z});return X?.success}),[Fe]),Gt=o.useCallback(z=>At(void 0,void 0,void 0,function*(){const X=yield Fe?.("v1/customform",{method:"POST",body:z});return X?.success}),[Fe]),ti=o.useCallback(z=>At(void 0,void 0,void 0,function*(){var X,ve,Te,ge,Se,Oe,We,Xe;const Ye=!!(!((Te=(ve=(X=z?.data)===null||X===void 0?void 0:X.sxpPageConf)===null||ve===void 0?void 0:ve.globalConfig)===null||Te===void 0)&&Te.isShowTag);if(!(!i||!Ye))try{const Ke=(Oe=(Se=(ge=i?.split("&"))===null||ge===void 0?void 0:ge.filter(nt=>{var rt,_;const H=nt.split("=")[0];return(_=(rt=v?.channels)!==null&&rt!==void 0?rt:[])===null||_===void 0?void 0:_.includes(H)}))===null||Se===void 0?void 0:Se.join("&"))!==null&&Oe!==void 0?Oe:"",st=yield Fe?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Ke)}});V((Xe=(We=st?.data)===null||We===void 0?void 0:We.tags)!==null&&Xe!==void 0?Xe:[])}catch(Ke){console.log("e",Ke)}}),[Fe,i]),ii=o.useCallback((z,X,ve,Te)=>{var ge,Se,Oe,We,Xe,Ye,Ke,st,nt,rt,_,H,U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze,et,ot,pt,Me,ut,Et,Ce,vt,Yt,Ct,li;const qe=ve?.bindCta,ui=((ge=X?.video)===null||ge===void 0?void 0:ge.bindProduct)||((Se=X?.video)===null||Se===void 0?void 0:Se.bindProducts)&&((We=(Oe=X?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||We===void 0?void 0:We.length)>0;let Ai="",_i=null;ue?Ai="hashTagPage":!((Xe=X?.video)===null||Xe===void 0)&&Xe.url?(Ai="videoPage",_i="video"):!((Ke=(Ye=X?.video)===null||Ye===void 0?void 0:Ye.imgUrls)===null||Ke===void 0)&&Ke.length&&(Ai="imagePage",_i="image");const pn=(oe=(H=(st=ve?.tags)!==null&&st!==void 0?st:(_=(rt=(nt=X?.video)===null||nt===void 0?void 0:nt.bindProducts)===null||rt===void 0?void 0:rt[0])===null||_===void 0?void 0:_.tags)!==null&&H!==void 0?H:(U=X?.video)===null||U===void 0?void 0:U.tags)!==null&&oe!==void 0?oe:(Q=X?.product)===null||Q===void 0?void 0:Q.tags;Le?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(be=qe?.itemId)!==null&&be!==void 0?be:"",ctaName:(re=qe?.title)!==null&&re!==void 0?re:"",contentTags:pn?JSON.stringify(pn):"",position:Te+"",contentId:(De=(ce=X?.video)===null||ce===void 0?void 0:ce.itemId)!==null&&De!==void 0?De:"",productId:ui?ve?.itemId:"",traceInfo:(Ct=(Ce=(ot=(we=(Ne=qe?.traceInfo)!==null&&Ne!==void 0?Ne:(me=(Ve=X?.video)===null||Ve===void 0?void 0:Ve.bindCta)===null||me===void 0?void 0:me.traceInfo)!==null&&we!==void 0?we:(et=(ze=(at=X?.video)===null||at===void 0?void 0:at.bindProduct)===null||ze===void 0?void 0:ze.bindCta)===null||et===void 0?void 0:et.traceInfo)!==null&&ot!==void 0?ot:(Et=(ut=(Me=(pt=X?.video)===null||pt===void 0?void 0:pt.bindProducts)===null||Me===void 0?void 0:Me[0])===null||ut===void 0?void 0:ut.bindCta)===null||Et===void 0?void 0:Et.traceInfo)!==null&&Ce!==void 0?Ce:(Yt=(vt=X?.product)===null||vt===void 0?void 0:vt.bindCta)===null||Yt===void 0?void 0:Yt.traceInfo)!==null&&Ct!==void 0?Ct:"",fromKName:Ai,fromKPage:(li=location?.href)!==null&&li!==void 0?li:"",contentFormat:_i})})},[Le,ue]),Bt=o.useCallback(()=>{var z,X;const ve=location.search.slice(1),Te=Li.parse(ve.replace(/\+/g,"%2B"));for(const Oe in Te)Te[Oe]=Te[Oe].replace(/%2B/g,"+");const ge=Oe=>{var We;return(We=Te[Oe])!==null&&We!==void 0?We:""},Se=new Date;Ge.current=Se,Le?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:ge("utm_source"),utmMedium:ge("utm_medium"),utmCampaign:ge("utm_campaign"),utmId:ge("utm_id"),utmContent:ge("utm_content"),enterTime:Math.floor(Se/1e3)+"",requestId:null,enterUrl:(X=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&X!==void 0?X:"",clSource:ge("cl_source")},reportLayId:!1})},[Le]);o.useEffect(()=>{kt||Bt()},[kt]),o.useEffect(()=>{if(kt||s)return;D(!0);let z,X;ht().then(ve=>{var Te,ge,Se,Oe,We,Xe,Ye,Ke,st,nt,rt;if(ve){const _=xt(ve);let H,U;if(ve?.layoutVariantId){z=ve?.layoutVariantId,wt(ve?.layoutVariantId);const oe=(ge=(Te=ve?.layoutVariantId)===null||Te===void 0?void 0:Te.split("-"))===null||ge===void 0?void 0:ge[1];oe&&(H=T?.find(Q=>Q?.id===oe),H?(Je(H),document.title=(Se=H?.name)!==null&&Se!==void 0?Se:"home",U=(We=(Oe=H?.data)===null||Oe===void 0?void 0:Oe.sxpPageConf)===null||We===void 0?void 0:We.globalConfig,se(U),k?.(H?.data),!((st=(Ke=(Ye=(Xe=U?.consent)===null||Xe===void 0?void 0:Xe[0])===null||Ye===void 0?void 0:Ye.item)===null||Ke===void 0?void 0:Ke.props)===null||st===void 0)&&st.privacy_necessity&&B(!0)):B(!0))}else B(!0);if($e||(U?.playbook==="organic menu"||!U&&ne?.playbook==="organic menu"?(Dt("organicMenu"),_.unshift("organic menu"),X="organicMenu"):(Dt("paidMedia"),X="paidMedia")),L(_),Be(_),ti(H??jt),$e){const oe=_?.[0],Q=((nt=oe?.video)===null||nt===void 0?void 0:nt.traceInfo)||((rt=oe?.product)===null||rt===void 0?void 0:rt.traceInfo)||"";Le?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:Q,branchfeed:$e},z&&{layoutVariantId:z})}),Le?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:Q,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-Re?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{Le({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),X&&{playbookType:X})}),D(!1)})},[kt,$e]),o.useEffect(()=>{s&&(D(!0),ti(p),ht().then(z=>{if(z){const X=xt(z);ne?.playbook==="organic menu"&&!$e&&X.unshift("organic menu"),L(X),Be(X)}}).finally(()=>{D(!1)}))},[ht,ti,$e]);const Ut=Ot("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return o.createElement(Cn.Provider,{value:{rtcList:C,setRtcList:L,mutateLike:Kt,mutateUnlike:Xt,submitForm:Gt,popupDetailData:J,loadVideos:pe,setPopupDetailData:$,getRecommendVideos:ht,bffEventReport:Le,isPreview:s,loading:F,sxpParameter:c,waterFallData:ae,setWaterFallData:de,ctaEvent:ii,swiperRef:M,openHashtag:ee,setOpenHashtag:ke,cacheRtcList:_e,setCacheRtcList:Be,cacheActiveIndex:Y,setCacheActiveIndex:K,isFromHashtag:ue,setIsFromHashtag:fe,appDomain:r,hashTagSize:u,loadingImage:d??Ut,isOpenHashTag:f,tagList:E,setLoading:D,videoRef:he,setVideoRef:le,bffFbReport:Tt,isAgreePolicy:W,setIsAgreePolicy:Z,curTime:Ge,h5EnterLink:Bt,themeTag:Pe,isShowConsent:kt,selectTag:Ze,setSelectTag:Qe,globalConfig:ne,popupCurTimeRef:q,checkCommodityIndexRef:Ae,isEditor:x,isNoMoreData:G,updateChannel:Lt,channel:$e,eventTimeList:ft,setEventTimeList:St,multiPostTimeRef:Re,refreshFeSession:ye}},kt?o.createElement(Vo,Object.assign({},(P=(w=(S=ne?.consent)===null||S===void 0?void 0:S[0])===null||w===void 0?void 0:w.item)===null||P===void 0?void 0:P.props)):t({rtcList:C,mutateLike:Kt,mutateUnlike:Xt,submitForm:Gt,tagList:E,pageData:jt}))};var In=o.memo(jo);function je(){return o.useContext(Cn)}var kn;(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"})(kn||(kn={}));const Pn=o.createContext({$store:{},options:[],configs:[]}),Fo=({children:t,isSsr:e,enable:i})=>{const[n,a]=o.useState([]),{schema:l}=Jt(),[s,c]=o.useState(l.__STORE__||{}),[r,u]=o.useState([]);o.useEffect(()=>{var h;e||lt.isEqual(r,l?.dataSource)||u((h=l?.dataSource)!==null&&h!==void 0?h:[])},[l?.dataSource,e]);const d=o.useCallback(()=>At(void 0,void 0,void 0,function*(){const{$store:h,idMapName:A}=yield hn("",r);c(h),f(h,A)}),[r]),f=(h,A)=>{const y=[];Object.entries(h).forEach(([b,x])=>{Object.keys(x).forEach(v=>{const g={label:`${A[b]} - ${v}`,value:`{{ ${b}.${v} }}`};y.push(g)})}),a(y)};return o.useEffect(()=>{e||d()},[d,e,l]),i?o.createElement(Pn.Provider,{value:{$store:l.__STORE__||s,options:n,configs:r}},t):t};var Bo=o.memo(Fo);const yi={id:bi(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},Fi={id:"",duration:0,name:"none"},Mn=o.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[yi],redoStack:[],popup:Fi,setPopup:()=>{}}),Dn=o.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:a=!0,utmVal:l},s)=>{const[c,r]=o.useState(null),[u,d]=o.useState(n||{pointData:[yi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[f,h]=o.useState([yi]),[A,y]=o.useState([[yi]]),[b,x]=o.useState([]),[v,g]=o.useState(Fi);typeof window<"u"&&(window.sxpPopup=(O,m)=>{g(Object.assign(Object.assign(Object.assign({},Fi),{id:O}),m))}),typeof window<"u"&&(window.getJointUtmLink=O=>(Oo(),O?.indexOf("?")!==-1?O+(l?"&"+l:""):O+(l?"?"+l:""))),o.useEffect(()=>{y([u.pointData]),x([])},[u.type]);const p=o.useCallback(O=>{const m=lt.cloneDeep(u);m&&(m.dataSource=O,d?.(m))},[u]),[T,k]=o.useState();o.useImperativeHandle(s,()=>({loadSchema(O){O&&(y([O.pointData]),d(O))},exportSchema(){return lt.cloneDeep(u)},getPageInfoData(){return T},initPageInfoData(O){O&&k(O)}}));const I=o.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return o.createElement(Mn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:p,prePiontData:f,setPrePiontData:h,pageInfoData:T,setPageInfoData:O=>k(Object.assign(Object.assign({},T),O)),undoStack:A,redoStack:b,setRedoStack:x,setUndoStack:y,getCurPageConf:I,popup:v,setPopup:g}},o.createElement(Bo,{isSsr:i,enable:a},t))});var zo=Object.freeze({__proto__:null,EditorCore:Dn}),Ho=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Wo=[{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 It(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:a}=je(),l=o.useCallback((r,u,d,f,h,A)=>{var y,b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D,N,R,M,j,W,Z,J,$,ae,de,ee,ke,_e,Be,Y,K,ue,fe;if(n?.findIndex(Re=>Re.target===r?.target)!==-1)return;r&&a?.(Re=>[...Re,{target:r?.target,time:new Date}]);let le="";e&&(!((b=(y=u?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0)&&b.length||!((x=u?.video)===null||x===void 0)&&x.bindProduct)?le="pdpPage":i?le="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?le="videoPage":!((g=u?.video)===null||g===void 0)&&g.imgUrls&&(!((T=(p=u?.video)===null||p===void 0?void 0:p.imgUrls)===null||T===void 0)&&T.length)?le="imagePage":u?.product&&(le="productPage");const Pe=(P=(S=(k=d?.tags)!==null&&k!==void 0?k:(m=(O=(I=u?.video)===null||I===void 0?void 0:I.bindProducts)===null||O===void 0?void 0:O[0])===null||m===void 0?void 0:m.tags)!==null&&S!==void 0?S:(w=u?.video)===null||w===void 0?void 0:w.tags)!==null&&P!==void 0?P:(C=u?.product)===null||C===void 0?void 0:C.tags;let Ge=null;!((L=u?.video)===null||L===void 0)&&L.url?Ge="video":!((E=u?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(V=u?.video)===null||V===void 0?void 0:V.imgUrls)===null||F===void 0)&&F.length)&&(Ge="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(D=d?.itemId)!==null&&D!==void 0?D:"",productName:(N=d?.title)!==null&&N!==void 0?N:"",price:d?.price?d?.price+"":"0",productCollection:(R=d?.collection)!==null&&R!==void 0?R:"",fromKName:le,fromKPage:location?.href,contentTags:Pe?JSON.stringify(Pe):"",position:h+"",contentId:(j=(M=u?.video)===null||M===void 0?void 0:M.itemId)!==null&&j!==void 0?j:"",ctatId:(W=f?.itemId)!==null&&W!==void 0?W:"",traceInfo:(fe=(Y=(_e=(ae=(Z=A??d?.traceInfo)!==null&&Z!==void 0?Z:($=(J=u?.video)===null||J===void 0?void 0:J.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&ae!==void 0?ae:(ke=(ee=(de=u?.video)===null||de===void 0?void 0:de.bindProducts)===null||ee===void 0?void 0:ee[0])===null||ke===void 0?void 0:ke.traceInfo)!==null&&_e!==void 0?_e:(Be=u?.product)===null||Be===void 0?void 0:Be.traceInfo)!==null&&Y!==void 0?Y:(ue=(K=u?.video)===null||K===void 0?void 0:K.bindCta)===null||ue===void 0?void 0:ue.traceInfo)!==null&&fe!==void 0?fe:""},Ge&&{contentFormat:Ge})})},[t,e,i,n]),s=o.useCallback((r,u,d,f,h)=>{var A,y,b,x,v,g,p,T,k,I,O,m,S,w;let P="";e&&(!((y=(A=r?.video)===null||A===void 0?void 0:A.bindProducts)===null||y===void 0)&&y.length||!((b=r?.video)===null||b===void 0)&&b.bindProduct)?P="pdpPage":r?.product&&(P="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:P,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:h+"",contentId:(x=r?.video)===null||x===void 0?void 0:x.itemId,ctatId:d?.itemId,traceInfo:(w=(m=(T=(v=u?.traceInfo)!==null&&v!==void 0?v:(p=(g=r?.video)===null||g===void 0?void 0:g.bindProduct)===null||p===void 0?void 0:p.traceInfo)!==null&&T!==void 0?T:(O=(I=(k=r?.video)===null||k===void 0?void 0:k.bindProducts)===null||I===void 0?void 0:I[0])===null||O===void 0?void 0:O.traceInfo)!==null&&m!==void 0?m:(S=r?.product)===null||S===void 0?void 0:S.traceInfo)!==null&&w!==void 0?w:"",timeOnSite:Math.floor((new Date-f)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=o.useCallback((r,u,d,f)=>{u&&u===gi&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:f?`['${f}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:c}}const Xo=({layout:t,columns:e,onChange:i})=>o.createElement(o.Fragment,null,e?.map((n,a)=>o.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&o.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&o.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var Go=o.memo(Xo);const Uo=t=>{var e,i,{columns:n,style:a,title:l,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:f,isPopup:h,onClick:A,onClose:y,submitButtonStyle:b}=t,x=tt(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=je(),{jumpToWeb:p}=It(),[T,k]=o.useState(!1),[I,O]=o.useState({}),[m,S]=o.useState(0),w=o.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"}],[]),P=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=o.useMemo(()=>lt.cloneDeep(n)||w,[n,w]),L=o.useCallback(V=>{const{name:F,value:D}=V.target;O(Object.assign(Object.assign({},I),{[F]:D}))},[I]),E=lt.debounce(V=>At(void 0,void 0,void 0,function*(){var F,D,N,R,M;const j=I;if(!j)return;const W=(D=(F=Object.keys(j))===null||F===void 0?void 0:F.map(J=>{var $;return{name:J,value:($=j[J])!==null&&$!==void 0?$:""}}))===null||D===void 0?void 0:D.filter(J=>J?.value);if(!W||!W?.length)return;k(!0);const Z=yield v?.({attributes:W});if(k(!1),Z){if(f){const J=g,$=(N=J?.video)===null||N===void 0?void 0:N.bindProduct,ae=(M=(R=J?.video)===null||R===void 0?void 0:R.bindProduct)===null||M===void 0?void 0:M.bindCta,de=g?.index;p(V,J,$,ae,de)}h||y?.(),A?.()}}),1e3);return o.useEffect(()=>{const V=()=>{var F,D;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((D=document?.body)===null||D===void 0?void 0:D.clientHeight))<P?S(50):S(0)};return window.addEventListener("resize",V),()=>{window.removeEventListener("resize",V)}},[]),o.createElement("div",{className:"pb-appoint-form"},o.createElement("div",{className:`pb-appoint-form-title ${Ie.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Ee(l,s)}}),o.createElement("div",Object.assign({className:Ie.css(Object.assign(Object.assign({},a),{marginTop:m}))},x),o.createElement("div",{className:"pb-appoint-form-container"},o.createElement(Go,{columns:C,layout:d,onChange:L}))),o.createElement("div",{className:"pb-appoint-form-btn-wrapper"},o.createElement("button",{"aria-label":u,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},b),dangerouslySetInnerHTML:{__html:Ee(T?"loading...":u,b)}})))};var Yo=o.memo(Uo);function ct(t,e){return t.extend=e,t}const qo=ct(Yo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Wo,bindableProps:[],interactionRender:Ho},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var Zo=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function _n(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Bi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:_n(e[i])&&_n(t[i])&&Object.keys(e[i]).length>0&&Bi(t[i],e[i])})}const Ln={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 Pt(){const t=typeof document<"u"?document:{};return Bi(t,Ln),t}const Ko={document:Ln,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 yt(){const t=typeof window<"u"?window:{};return Bi(t,Ko),t}function Qt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Jo(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ai(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Rt(){return Date.now()}function Qo(t){const e=yt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function $o(t,e){e===void 0&&(e="x");const i=yt();let n,a,l;const s=Qo(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,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0}function wi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function el(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function _t(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!el(n)){const a=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const c=a[l],r=Object.getOwnPropertyDescriptor(n,c);r!==void 0&&r.enumerable&&(wi(t[c])&&wi(n[c])?n[c].__swiper__?t[c]=n[c]:_t(t[c],n[c]):!wi(t[c])&&wi(n[c])?(t[c]={},n[c].__swiper__?t[c]=n[c]:_t(t[c],n[c])):t[c]=n[c])}}}return t}function Si(t,e,i){t.style.setProperty(e,i)}function On(t){let{swiper:e,targetPosition:i,side:n}=t;const a=yt(),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=(h,A)=>u==="next"&&h>=A||u==="prev"&&h<=A,f=()=>{c=new Date().getTime(),s===null&&(s=c);const h=Math.max(Math.min((c-s)/r,1),0),A=.5-Math.cos(h*Math.PI)/2;let y=l+A*(i-l);if(d(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),d(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(f)};f()}function Ht(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function xi(t){try{console.warn(t);return}catch{}}function si(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Qt(e)),i}function Rn(t){const e=yt(),i=Pt(),n=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:n.top+c-l,left:n.left+r-s}}function tl(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function il(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function $t(t,e){return yt().getComputedStyle(t,null).getPropertyValue(e)}function vi(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ti(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function zi(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Hi(t,e,i){const n=yt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function He(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Wi(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const l=Pt(),s=yt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:f}=e;let h=d;h.originalEvent&&(h=h.originalEvent);const A=h.keyCode||h.charCode,y=e.params.keyboard.pageUpDown,b=y&&A===33,x=y&&A===34,v=A===37,g=A===39,p=A===38,T=A===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&T||x)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&p||b))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||x||v||g||p||T)){let k=!1;if(Ti(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ti(e.el,`.${e.params.slideActiveClass}`).length===0)return;const I=e.el,O=I.clientWidth,m=I.clientHeight,S=s.innerWidth,w=s.innerHeight,P=Rn(I);f&&(P.left-=I.scrollLeft);const C=[[P.left,P.top],[P.left+O,P.top],[P.left,P.top+m],[P.left+O,P.top+m]];for(let L=0;L<C.length;L+=1){const E=C[L];if(E[0]>=0&&E[0]<=S&&E[1]>=0&&E[1]<=w){if(E[0]===0&&E[1]===0)continue;k=!0}}if(!k)return}e.isHorizontal()?((b||x||v||g)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((x||g)&&!f||(b||v)&&f)&&e.slideNext(),((b||v)&&!f||(x||g)&&f)&&e.slidePrev()):((b||x||p||T)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(x||T)&&e.slideNext(),(b||p)&&e.slidePrev()),a("keyPress",A)}}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)}n("init",()=>{e.params.keyboard.enabled&&r()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Ei(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const l=yt();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=Rt(),r;const u=[];function d(p){let O=0,m=0,S=0,w=0;return"detail"in p&&(m=p.detail),"wheelDelta"in p&&(m=-p.wheelDelta/120),"wheelDeltaY"in p&&(m=-p.wheelDeltaY/120),"wheelDeltaX"in p&&(O=-p.wheelDeltaX/120),"axis"in p&&p.axis===p.HORIZONTAL_AXIS&&(O=m,m=0),S=O*10,w=m*10,"deltaY"in p&&(w=p.deltaY),"deltaX"in p&&(S=p.deltaX),p.shiftKey&&!S&&(S=w,w=0),(S||w)&&p.deltaMode&&(p.deltaMode===1?(S*=40,w*=40):(S*=800,w*=800)),S&&!O&&(O=S<1?-1:1),w&&!m&&(m=w<1?-1:1),{spinX:O,spinY:m,pixelX:S,pixelY:w}}function f(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function A(p){return e.params.mousewheel.thresholdDelta&&p.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Rt()-c<e.params.mousewheel.thresholdTime?!1:p.delta>=6&&Rt()-c<60?!0:(p.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",p.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",p.raw)),c=new l.Date().getTime(),!1)}function y(p){const T=e.params.mousewheel;if(p.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function b(p){let T=p,k=!0;if(!e.enabled||p.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const I=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let O=e.el;e.params.mousewheel.eventsTarget!=="container"&&(O=document.querySelector(e.params.mousewheel.eventsTarget));const m=O&&O.contains(T.target);if(!e.mouseEntered&&!m&&!I.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let S=0;const w=e.rtlTranslate?-1:1,P=d(T);if(I.forceToAxis)if(e.isHorizontal())if(Math.abs(P.pixelX)>Math.abs(P.pixelY))S=-P.pixelX*w;else return!0;else if(Math.abs(P.pixelY)>Math.abs(P.pixelX))S=-P.pixelY;else return!0;else S=Math.abs(P.pixelX)>Math.abs(P.pixelY)?-P.pixelX*w:-P.pixelY;if(S===0)return!0;I.invert&&(S=-S);let C=e.getTranslate()+S*I.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),k=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),k&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const L={time:Rt(),delta:Math.abs(S),direction:Math.sign(S),raw:p};u.length>=2&&u.shift();const E=u.length?u[u.length-1]:void 0;if(u.push(L),E?(L.direction!==E.direction||L.delta>E.delta||L.time>E.time+150)&&A(L):A(L),y(L))return!0}else{const L={time:Rt(),delta:Math.abs(S),direction:Math.sign(S)},E=r&&L.time<r.time+500&&L.delta<=r.delta&&L.direction===r.direction;if(!E){r=void 0;let V=e.getTranslate()+S*I.sensitivity;const F=e.isBeginning,D=e.isEnd;if(V>=e.minTranslate()&&(V=e.minTranslate()),V<=e.maxTranslate()&&(V=e.maxTranslate()),e.setTransition(0),e.setTranslate(V),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!D&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:L.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const N=u.length?u[u.length-1]:void 0,R=u[0];if(u.push(L),N&&(L.delta>N.delta||L.direction!==N.direction))u.splice(0);else if(u.length>=15&&L.time-R.time<500&&R.delta-L.delta>=1&&L.delta<=6){const M=S>0?.8:.2;r=L,u.splice(0),s=ai(()=>{e.slideToClosest(e.params.speed,!0,void 0,M)},0)}s||(s=ai(()=>{r=L,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||a("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),I.releaseOnEdges&&(V===e.minTranslate()||V===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function x(p){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[p]("mouseenter",f),T[p]("mouseleave",h),T[p]("wheel",b)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function Xi(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(a=>{if(!i[a]&&i.auto===!0){let l=Ht(t.el,`.${n[a]}`)[0];l||(l=si("div",n[a]),l.className=n[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function Gi(t){let{swiper:e,extendParams:i,on:n,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(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b&&b.length>1&&e.el.querySelectorAll(y).length===1?b=e.el.querySelector(y):b&&b.length===1&&(b=b[0])),y&&!b?y:b)}function s(y,b){const x=e.params.navigation;y=He(y),y.forEach(v=>{v&&(v.classList[b?"add":"remove"](...x.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=b),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](x.lockClass))})}function c(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){s(b,!1),s(y,!1);return}s(b,e.isBeginning&&!e.params.rewind),s(y,e.isEnd&&!e.params.rewind)}function r(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const y=e.params.navigation;if(e.params.navigation=Xi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=l(y.nextEl),x=l(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:x}),b=He(b),x=He(x);const v=(g,p)=>{g&&g.addEventListener("click",p==="next"?u:r),!e.enabled&&g&&g.classList.add(...y.lockClass.split(" "))};b.forEach(g=>v(g,"next")),x.forEach(g=>v(g,"prev"))}function f(){let{nextEl:y,prevEl:b}=e.navigation;y=He(y),b=He(b);const x=(v,g)=>{v.removeEventListener("click",g==="next"?u:r),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(v=>x(v,"next")),b.forEach(v=>x(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?A():(d(),c())}),n("toEdge fromEdge lock unlock",()=>{c()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=He(y),b=He(b),e.enabled){c();return}[...y,...b].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:x,prevEl:v}=e.navigation;x=He(x),v=He(v);const g=b.target;let p=v.includes(g)||x.includes(g);if(e.isElement&&!p){const T=b.path||b.composedPath&&b.composedPath();T&&(p=T.find(k=>x.includes(k)||v.includes(k)))}if(e.params.navigation.hideOnClick&&!p){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let T;x.length?T=x[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(T=v[0].classList.contains(e.params.navigation.hiddenClass)),a(T===!0?"navigationShow":"navigationHide"),[...x,...v].filter(k=>!!k).forEach(k=>k.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},A=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:h,disable:A,update:c,init:d,destroy:f})}function qt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ci(t){let{swiper:e,extendParams:i,on:n,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:p}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${p}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${p}-${g}-${g}`)))}function d(v){const g=v.target.closest(qt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const p=vi(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===p)return;e.slideToLoop(p)}else e.slideTo(p)}function f(){const v=e.rtl,g=e.params.pagination;if(r())return;let p=e.pagination.el;p=He(p);let T,k;const I=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(I/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(k=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,k=e.previousSnapIndex):(k=e.previousIndex||0,T=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const m=e.pagination.bullets;let S,w,P;if(g.dynamicBullets&&(s=Hi(m[0],e.isHorizontal()?"width":"height",!0),p.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${s*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&k!==void 0&&(c+=T-(k||0),c>g.dynamicMainBullets-1?c=g.dynamicMainBullets-1:c<0&&(c=0)),S=Math.max(T-c,0),w=S+(Math.min(m.length,g.dynamicMainBullets)-1),P=(w+S)/2),m.forEach(C=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();C.classList.remove(...L)}),p.length>1)m.forEach(C=>{const L=vi(C);L===T?C.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),g.dynamicBullets&&(L>=S&&L<=w&&C.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),L===S&&u(C,"prev"),L===w&&u(C,"next"))});else{const C=m[T];if(C&&C.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&m.forEach((L,E)=>{L.setAttribute("part",E===T?"bullet-active":"bullet")}),g.dynamicBullets){const L=m[S],E=m[w];for(let V=S;V<=w;V+=1)m[V]&&m[V].classList.add(...`${g.bulletActiveClass}-main`.split(" "));u(L,"prev"),u(E,"next")}}if(g.dynamicBullets){const C=Math.min(m.length,g.dynamicMainBullets+4),L=(s*C-s)/2-P*s,E=v?"right":"left";m.forEach(V=>{V.style[e.isHorizontal()?E:"top"]=`${L}px`})}}p.forEach((m,S)=>{if(g.type==="fraction"&&(m.querySelectorAll(qt(g.currentClass)).forEach(w=>{w.textContent=g.formatFractionCurrent(T+1)}),m.querySelectorAll(qt(g.totalClass)).forEach(w=>{w.textContent=g.formatFractionTotal(O)})),g.type==="progressbar"){let w;g.progressbarOpposite?w=e.isHorizontal()?"vertical":"horizontal":w=e.isHorizontal()?"horizontal":"vertical";const P=(T+1)/O;let C=1,L=1;w==="horizontal"?C=P:L=P,m.querySelectorAll(qt(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${L})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(m.innerHTML=g.renderCustom(e,T+1,O),S===0&&a("paginationRender",m)):(S===0&&a("paginationRender",m),a("paginationUpdate",m)),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](g.lockClass)})}function h(){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 p=e.pagination.el;p=He(p);let T="";if(v.type==="bullets"){let k=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&k>g&&(k=g);for(let I=0;I<k;I+=1)v.renderBullet?T+=v.renderBullet.call(e,I,v.bulletClass):T+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?T=v.renderFraction.call(e,v.currentClass,v.totalClass):T=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?T=v.renderProgressbar.call(e,v.progressbarFillClass):T=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],p.forEach(k=>{v.type!=="custom"&&(k.innerHTML=T||""),v.type==="bullets"&&e.pagination.bullets.push(...k.querySelectorAll(qt(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",p[0])}function A(){e.params.pagination=Xi(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(p=>Ti(p,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=He(g),g.forEach(p=>{v.type==="bullets"&&v.clickable&&p.classList.add(...(v.clickableClass||"").split(" ")),p.classList.add(v.modifierClass+v.type),p.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(p.classList.add(`${v.modifierClass}${v.type}-dynamic`),c=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&p.classList.add(v.progressbarOppositeClass),v.clickable&&p.addEventListener("click",d),e.enabled||p.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(r())return;let g=e.pagination.el;g&&(g=He(g),g.forEach(p=>{p.classList.remove(v.hiddenClass),p.classList.remove(v.modifierClass+v.type),p.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(p.classList.remove(...(v.clickableClass||"").split(" ")),p.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(p=>p.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=He(g),g.forEach(p=>{p.classList.remove(v.horizontalClass,v.verticalClass),p.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?x():(A(),h(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{h(),f()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=He(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(v,g)=>{const p=g.target,T=He(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!p.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&p===e.navigation.nextEl||e.navigation.prevEl&&p===e.navigation.prevEl))return;const k=T[0].classList.contains(e.params.pagination.hiddenClass);a(k===!0?"paginationShow":"paginationHide"),T.forEach(I=>I.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=He(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),A(),h(),f()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=He(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:x,render:h,update:f,init:A,destroy:y})}function nl(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const l=Pt();let s=!1,c=null,r=null,u,d,f,h;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 A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:L}=e,{dragEl:E,el:V}=C,F=e.params.scrollbar,D=e.params.loop?e.progressLoop:e.progress;let N=d,R=(f-d)*D;L?(R=-R,R>0?(N=d-R,R=0):-R+d>f&&(N=f+R)):R<0?(N=d+R,R=0):R+d>f&&(N=f-R),e.isHorizontal()?(E.style.transform=`translate3d(${R}px, 0, 0)`,E.style.width=`${N}px`):(E.style.transform=`translate3d(0px, ${R}px, 0)`,E.style.height=`${N}px`),F.hide&&(clearTimeout(c),V.style.opacity=1,c=setTimeout(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3))}function y(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:L,el:E}=C;L.style.width="",L.style.height="",f=e.isHorizontal()?E.offsetWidth:E.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=f*h:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?L.style.width=`${d}px`:L.style.height=`${d}px`,h>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(C){return e.isHorizontal()?C.clientX:C.clientY}function v(C){const{scrollbar:L,rtlTranslate:E}=e,{el:V}=L;let F;F=(x(C)-Rn(V)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(f-d),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const D=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(D),e.setTranslate(D),e.updateActiveIndex(),e.updateSlidesClasses()}function g(C){const L=e.params.scrollbar,{scrollbar:E,wrapperEl:V}=e,{el:F,dragEl:D}=E;s=!0,u=C.target===D?x(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),V.style.transitionDuration="100ms",D.style.transitionDuration="100ms",v(C),clearTimeout(r),F.style.transitionDuration="0ms",L.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",C)}function p(C){const{scrollbar:L,wrapperEl:E}=e,{el:V,dragEl:F}=L;s&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),E.style.transitionDuration="0ms",V.style.transitionDuration="0ms",F.style.transitionDuration="0ms",a("scrollbarDragMove",C))}function T(C){const L=e.params.scrollbar,{scrollbar:E,wrapperEl:V}=e,{el:F}=E;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",V.style.transitionDuration=""),L.hide&&(clearTimeout(r),r=ai(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",C),L.snapOnRelease&&e.slideToClosest())}function k(C){const{scrollbar:L,params:E}=e,V=L.el;if(!V)return;const F=V,D=E.passiveListeners?{passive:!1,capture:!1}:!1,N=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const R=C==="on"?"addEventListener":"removeEventListener";F[R]("pointerdown",g,D),l[R]("pointermove",p,D),l[R]("pointerup",T,N)}function I(){!e.params.scrollbar.el||!e.scrollbar.el||k("on")}function O(){!e.params.scrollbar.el||!e.scrollbar.el||k("off")}function m(){const{scrollbar:C,el:L}=e;e.params.scrollbar=Xi(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let V;if(typeof E.el=="string"&&e.isElement&&(V=e.el.querySelector(E.el)),!V&&typeof E.el=="string"){if(V=l.querySelectorAll(E.el),!V.length)return}else V||(V=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&V.length>1&&L.querySelectorAll(E.el).length===1&&(V=L.querySelector(E.el)),V.length>0&&(V=V[0]),V.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;V&&(F=V.querySelector(qt(e.params.scrollbar.dragClass)),F||(F=si("div",e.params.scrollbar.dragClass),V.append(F))),Object.assign(C,{el:V,dragEl:F}),E.draggable&&I(),V&&V.classList[e.enabled?"remove":"add"](...Qt(e.params.scrollbar.lockClass))}function S(){const C=e.params.scrollbar,L=e.scrollbar.el;L&&L.classList.remove(...Qt(e.isHorizontal()?C.horizontalClass:C.verticalClass)),O()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:L}=e.scrollbar;L=He(L),L.forEach(E=>{E.classList.remove(C.horizontalClass,C.verticalClass),E.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?P():(m(),b(),A())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{A()}),n("setTransition",(C,L)=>{y(L)}),n("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Qt(e.params.scrollbar.lockClass))}),n("destroy",()=>{S()});const w=()=>{e.el.classList.remove(...Qt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Qt(e.params.scrollbar.scrollbarDisabledClass)),m(),b(),A()},P=()=>{e.el.classList.add(...Qt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Qt(e.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(e.scrollbar,{enable:w,disable:P,updateSize:b,setTranslate:A,init:m,destroy:S})}function Ui(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null,l,s,c=new Date().getTime();function r(D){const N=a;N.length!==0&&(N.innerHTML="",N.innerHTML=D)}function u(D){D===void 0&&(D=16);const N=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(D).replace(/x/g,N)}function d(D){D=He(D),D.forEach(N=>{N.setAttribute("tabIndex","0")})}function f(D){D=He(D),D.forEach(N=>{N.setAttribute("tabIndex","-1")})}function h(D,N){D=He(D),D.forEach(R=>{R.setAttribute("role",N)})}function A(D,N){D=He(D),D.forEach(R=>{R.setAttribute("aria-roledescription",N)})}function y(D,N){D=He(D),D.forEach(R=>{R.setAttribute("aria-controls",N)})}function b(D,N){D=He(D),D.forEach(R=>{R.setAttribute("aria-label",N)})}function x(D,N){D=He(D),D.forEach(R=>{R.setAttribute("id",N)})}function v(D,N){D=He(D),D.forEach(R=>{R.setAttribute("aria-live",N)})}function g(D){D=He(D),D.forEach(N=>{N.setAttribute("aria-disabled",!0)})}function p(D){D=He(D),D.forEach(N=>{N.setAttribute("aria-disabled",!1)})}function T(D){if(D.keyCode!==13&&D.keyCode!==32)return;const N=e.params.a11y,R=D.target;if(!(e.pagination&&e.pagination.el&&(R===e.pagination.el||e.pagination.el.contains(D.target))&&!D.target.matches(qt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const M=He(e.navigation.prevEl);He(e.navigation.nextEl).includes(R)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(N.lastSlideMessage):r(N.nextSlideMessage)),M.includes(R)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(N.firstSlideMessage):r(N.prevSlideMessage))}e.pagination&&R.matches(qt(e.params.pagination.bulletClass))&&R.click()}}function k(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:D,prevEl:N}=e.navigation;N&&(e.isBeginning?(g(N),f(N)):(p(N),d(N))),D&&(e.isEnd?(g(D),f(D)):(p(D),d(D)))}function I(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function O(){return I()&&e.params.pagination.clickable}function m(){const D=e.params.a11y;I()&&e.pagination.bullets.forEach(N=>{e.params.pagination.clickable&&(d(N),e.params.pagination.renderBullet||(h(N,"button"),b(N,D.paginationBulletMessage.replace(/\{\{index\}\}/,vi(N)+1)))),N.matches(qt(e.params.pagination.bulletActiveClass))?N.setAttribute("aria-current","true"):N.removeAttribute("aria-current")})}const S=(D,N,R)=>{d(D),D.tagName!=="BUTTON"&&(h(D,"button"),D.addEventListener("keydown",T)),b(D,R),y(D,N)},w=D=>{s&&s!==D.target&&!s.contains(D.target)&&(l=!0),e.a11y.clicked=!0},P=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=D=>{c=new Date().getTime()},L=D=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const N=D.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!N||!e.slides.includes(N))return;s=N;const R=e.slides.indexOf(N)===e.activeIndex,M=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(N);R||M||D.sourceCapabilities&&D.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(N.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(N),0),l=!1)}))},E=()=>{const D=e.params.a11y;D.itemRoleDescriptionMessage&&A(e.slides,D.itemRoleDescriptionMessage),D.slideRole&&h(e.slides,D.slideRole);const N=e.slides.length;D.slideLabelMessage&&e.slides.forEach((R,M)=>{const j=e.params.loop?parseInt(R.getAttribute("data-swiper-slide-index"),10):M,W=D.slideLabelMessage.replace(/\{\{index\}\}/,j+1).replace(/\{\{slidesLength\}\}/,N);b(R,W)})},V=()=>{const D=e.params.a11y;e.el.append(a);const N=e.el;D.containerRoleDescriptionMessage&&A(N,D.containerRoleDescriptionMessage),D.containerMessage&&b(N,D.containerMessage);const R=e.wrapperEl,M=D.id||R.getAttribute("id")||`swiper-wrapper-${u(16)}`,j=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(R,M),v(R,j),E();let{nextEl:W,prevEl:Z}=e.navigation?e.navigation:{};W=He(W),Z=He(Z),W&&W.forEach($=>S($,M,D.nextSlideMessage)),Z&&Z.forEach($=>S($,M,D.prevSlideMessage)),O()&&He(e.pagination.el).forEach(ae=>{ae.addEventListener("keydown",T)}),Pt().addEventListener("visibilitychange",C),e.el.addEventListener("focus",L,!0),e.el.addEventListener("focus",L,!0),e.el.addEventListener("pointerdown",w,!0),e.el.addEventListener("pointerup",P,!0)};function F(){a&&a.remove();let{nextEl:D,prevEl:N}=e.navigation?e.navigation:{};D=He(D),N=He(N),D&&D.forEach(M=>M.removeEventListener("keydown",T)),N&&N.forEach(M=>M.removeEventListener("keydown",T)),O()&&He(e.pagination.el).forEach(j=>{j.removeEventListener("keydown",T)}),Pt().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",L,!0),e.el.removeEventListener("pointerdown",w,!0),e.el.removeEventListener("pointerup",P,!0))}n("beforeInit",()=>{a=si("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&V()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&k()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&m()}),n("destroy",()=>{e.params.a11y.enabled&&F()})}function Ii(t){let{swiper:e,extendParams:i,on:n,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,f=new Date().getTime(),h,A,y,b,x,v,g;function p(N){!e||e.destroyed||!e.wrapperEl||N.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",p),!(g||N.detail&&N.detail.bySwiperTouchMove)&&w())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(u=d,h=!1);const N=e.autoplay.paused?d:f+u-new Date().getTime();e.autoplay.timeLeft=N,a("autoplayTimeLeft",N,N/r),c=requestAnimationFrame(()=>{T()})},k=()=>{let N;return e.virtual&&e.params.virtual.enabled?N=e.slides.filter(M=>M.classList.contains("swiper-slide-active"))[0]:N=e.slides[e.activeIndex],N?parseInt(N.getAttribute("data-swiper-autoplay"),10):void 0},I=N=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),T();let R=typeof N>"u"?e.params.autoplay.delay:N;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const M=k();!Number.isNaN(M)&&M>0&&typeof N>"u"&&(R=M,r=M,u=M),d=R;const j=e.params.speed,W=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(j,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,j,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(j,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,j,!0,!0),a("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{I()})))};return R>0?(clearTimeout(s),s=setTimeout(()=>{W()},R)):requestAnimationFrame(()=>{W()}),R},O=()=>{f=new Date().getTime(),e.autoplay.running=!0,I(),a("autoplayStart")},m=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},S=(N,R)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),N||(v=!0);const M=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",p):w()};if(e.autoplay.paused=!0,R){x&&(d=e.params.autoplay.delay),x=!1,M();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),M())},w=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),v?(v=!1,I(d)):I(),e.autoplay.paused=!1,a("autoplayResume"))},P=()=>{if(e.destroyed||!e.autoplay.running)return;const N=Pt();N.visibilityState==="hidden"&&(v=!0,S(!0)),N.visibilityState==="visible"&&w()},C=N=>{N.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&S(!0))},L=N=>{N.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&w())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",L))},V=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",L))},F=()=>{Pt().addEventListener("visibilitychange",P)},D=()=>{Pt().removeEventListener("visibilitychange",P)};n("init",()=>{e.params.autoplay.enabled&&(E(),F(),O())}),n("destroy",()=>{V(),D(),e.autoplay.running&&m()}),n("_freeModeStaticRelease",()=>{(y||v)&&w()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?m():S(!0,!0)}),n("beforeTransitionStart",(N,R,M)=>{e.destroyed||!e.autoplay.running||(M||!e.params.autoplay.disableOnInteraction?S(!0,!0):m())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){m();return}A=!0,y=!1,v=!1,b=setTimeout(()=>{v=!0,y=!0,S(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!A)){if(clearTimeout(b),clearTimeout(s),e.params.autoplay.disableOnInteraction){y=!1,A=!1;return}y&&e.params.cssMode&&w(),y=!1,A=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:O,stop:m,pause:S,resume:w})}function ol(t){let{swiper:e,extendParams:i,emit:n,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:Rt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:f,rtlTranslate:h,snapGrid:A,touchEventsData:y}=e,x=Rt()-y.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<A.length?e.slideTo(A.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(y.velocities.length>1){const m=y.velocities.pop(),S=y.velocities.pop(),w=m.position-S.position,P=m.time-S.time;e.velocity=w/P,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(P>150||Rt()-m.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,y.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let p=e.translate+g;h&&(p=-p);let T=!1,k;const I=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let O;if(p<e.maxTranslate())d.freeMode.momentumBounce?(p+e.maxTranslate()<-I&&(p=e.maxTranslate()-I),k=e.maxTranslate(),T=!0,y.allowMomentumBounce=!0):p=e.maxTranslate(),d.loop&&d.centeredSlides&&(O=!0);else if(p>e.minTranslate())d.freeMode.momentumBounce?(p-e.minTranslate()>I&&(p=e.minTranslate()+I),k=e.minTranslate(),T=!0,y.allowMomentumBounce=!0):p=e.minTranslate(),d.loop&&d.centeredSlides&&(O=!0);else if(d.freeMode.sticky){let m;for(let S=0;S<A.length;S+=1)if(A[S]>-p){m=S;break}Math.abs(A[m]-p)<Math.abs(A[m-1]-p)||e.swipeDirection==="next"?p=A[m]:p=A[m-1],p=-p}if(O&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?v=Math.abs((-p-e.translate)/e.velocity):v=Math.abs((p-e.translate)/e.velocity),d.freeMode.sticky){const m=Math.abs((h?-p:p)-e.translate),S=e.slidesSizesGrid[e.activeIndex];m<S?v=d.speed:m<2*S?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&T?(e.updateProgress(k),e.setTransition(v),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating=!0,zi(f,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(k),zi(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(p),e.setTransition(v),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,zi(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(p),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&n("_freeModeNoMomentumRelease");(!d.freeMode.momentum||x>=d.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:s,onTouchEnd:c}})}let Yi;function ll(){const t=yt(),e=Pt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Nn(){return Yi||(Yi=ll()),Yi}let qi;function al(t){let{userAgent:e}=t===void 0?{}:t;const i=Nn(),n=yt(),a=n.navigator.platform,l=e||n.navigator.userAgent,s={ios:!1,android:!1},c=n.screen.width,r=n.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let d=l.match(/(iPad).*OS\s([\d_]+)/);const f=l.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),A=a==="Win32";let y=a==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&i.touch&&b.indexOf(`${c}x${r}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),u&&!A&&(s.os="android",s.android=!0),(d||h||f)&&(s.os="ios",s.ios=!0),s}function Vn(t){return t===void 0&&(t={}),qi||(qi=al(t)),qi}let Zi;function sl(){const t=yt(),e=Vn();let i=!1;function n(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(n()){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=n(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function rl(){return Zi||(Zi=sl()),Zi}function dl(t){let{swiper:e,on:i,emit:n}=t;const a=yt();let l=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(f=>{s=a.requestAnimationFrame(()=>{const{width:h,height:A}=e;let y=h,b=A;f.forEach(x=>{let{contentBoxSize:v,contentRect:g,target:p}=x;p&&p!==e.el||(y=g?g.width:(v[0]||v).inlineSize,b=g?g.height:(v[0]||v).blockSize)}),(y!==h||b!==A)&&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||n("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:n,emit:a}=t;const l=[],s=yt(),c=function(d,f){f===void 0&&(f={});const h=s.MutationObserver||s.WebkitMutationObserver,A=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){a("observerUpdate",y[0]);return}const b=function(){a("observerUpdate",y[0])};s.requestAnimationFrame?s.requestAnimationFrame(b):s.setTimeout(b,0)});A.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),l.push(A)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Ti(e.hostEl);for(let f=0;f<d.length;f+=1)c(d[f])}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}),n("init",r),n("destroy",u)}var ul={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][a](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function a(){n.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(n,s)}return a.__emitterProxy=e,n.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((a,l)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var 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),n=t):(e=l[0].events,i=l[0].data,n=l[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(n,i)})}),t}};function vl(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt($t(n,"padding-left")||0,10)-parseInt($t(n,"padding-right")||0,10),i=i-parseInt($t(n,"padding-top")||0,10)-parseInt($t(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function pl(){const t=this;function e(w,P){return parseFloat(w.getPropertyValue(t.getDirectionLabel(P))||0)}const i=t.params,{wrapperEl:n,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=Ht(a,`.${t.params.slideClass}, swiper-slide`),f=r?t.virtual.slides.length:d.length;let h=[];const A=[],y=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let p=i.spaceBetween,T=-b,k=0,I=0;if(typeof l>"u")return;typeof p=="string"&&p.indexOf("%")>=0?p=parseFloat(p.replace("%",""))/100*l:typeof p=="string"&&(p=parseFloat(p)),t.virtualSize=-p,d.forEach(w=>{s?w.style.marginLeft="":w.style.marginRight="",w.style.marginBottom="",w.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Si(n,"--swiper-centered-offset-before",""),Si(n,"--swiper-centered-offset-after",""));const O=i.grid&&i.grid.rows>1&&t.grid;O?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let m;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(w=>typeof i.breakpoints[w].slidesPerView<"u").length>0;for(let w=0;w<f;w+=1){m=0;let P;if(d[w]&&(P=d[w]),O&&t.grid.updateSlide(w,P,d),!(d[w]&&$t(P,"display")==="none")){if(i.slidesPerView==="auto"){S&&(d[w].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(P),L=P.style.transform,E=P.style.webkitTransform;if(L&&(P.style.transform="none"),E&&(P.style.webkitTransform="none"),i.roundLengths)m=t.isHorizontal()?Hi(P,"width",!0):Hi(P,"height",!0);else{const V=e(C,"width"),F=e(C,"padding-left"),D=e(C,"padding-right"),N=e(C,"margin-left"),R=e(C,"margin-right"),M=C.getPropertyValue("box-sizing");if(M&&M==="border-box")m=V+N+R;else{const{clientWidth:j,offsetWidth:W}=P;m=V+F+D+N+R+(W-j)}}L&&(P.style.transform=L),E&&(P.style.webkitTransform=E),i.roundLengths&&(m=Math.floor(m))}else m=(l-(i.slidesPerView-1)*p)/i.slidesPerView,i.roundLengths&&(m=Math.floor(m)),d[w]&&(d[w].style[t.getDirectionLabel("width")]=`${m}px`);d[w]&&(d[w].swiperSlideSize=m),y.push(m),i.centeredSlides?(T=T+m/2+k/2+p,k===0&&w!==0&&(T=T-l/2-p),w===0&&(T=T-l/2-p),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),I%i.slidesPerGroup===0&&h.push(T),A.push(T)):(i.roundLengths&&(T=Math.floor(T)),(I-Math.min(t.params.slidesPerGroupSkip,I))%t.params.slidesPerGroup===0&&h.push(T),A.push(T),T=T+m+p),t.virtualSize+=m+p,k=m,I+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+x,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+p}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+p}px`),O&&t.grid.updateWrapperSize(m,h),!i.centeredSlides){const w=[];for(let P=0;P<h.length;P+=1){let C=h[P];i.roundLengths&&(C=Math.floor(C)),h[P]<=t.virtualSize-l&&w.push(C)}h=w,Math.floor(t.virtualSize-l)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-l)}if(r&&i.loop){const w=y[0]+p;if(i.slidesPerGroup>1){const P=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=w*i.slidesPerGroup;for(let L=0;L<P;L+=1)h.push(h[h.length-1]+C)}for(let P=0;P<t.virtual.slidesBefore+t.virtual.slidesAfter;P+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+w),A.push(A[A.length-1]+w),t.virtualSize+=w}if(h.length===0&&(h=[0]),p!==0){const w=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((P,C)=>!i.cssMode||i.loop?!0:C!==d.length-1).forEach(P=>{P.style[w]=`${p}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let w=0;y.forEach(C=>{w+=C+(p||0)}),w-=p;const P=w-l;h=h.map(C=>C<=0?-b:C>P?P+x:C)}if(i.centerInsufficientSlides){let w=0;y.forEach(C=>{w+=C+(p||0)}),w-=p;const P=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(w+P<l){const C=(l-w-P)/2;h.forEach((L,E)=>{h[E]=L-C}),A.forEach((L,E)=>{A[E]=L+C})}}if(Object.assign(t,{slides:d,snapGrid:h,slidesGrid:A,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Si(n,"--swiper-centered-offset-before",`${-h[0]}px`),Si(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const w=-t.snapGrid[0],P=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+w),t.slidesGrid=t.slidesGrid.map(C=>C+P)}if(f!==u&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),A.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const w=`${i.containerModifierClass}backface-hidden`,P=t.el.classList.contains(w);f<=i.maxBackfaceHiddenSlides?P||t.el.classList.add(w):P&&t.el.classList.remove(w)}}function ml(t){const e=this,i=[],n=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=>n?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&&!n)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 fl(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const jn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function hl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:a,snapGrid:l}=e;if(n.length===0)return;typeof n[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<n.length;r+=1){const u=n[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=n[0].swiperSlideOffset);const f=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),h=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),A=-(s-d),y=A+e.slidesSizesGrid[r],b=A>=0&&A<=e.size-e.slidesSizesGrid[r],x=A>=0&&A<e.size-1||y>1&&y<=e.size||A<=0&&y>=e.size;x&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),jn(u,x,i.slideVisibleClass),jn(u,b,i.slideFullyVisibleClass),u.progress=a?-f:f,u.originalProgress=a?-h:h}}function Al(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,n=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:l,isEnd:s,progressLoop:c}=e;const r=l,u=s;if(n===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/n;const d=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;l=d||a<=0,s=f||a>=1,d&&(a=0),f&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[d],A=e.slidesGrid[f],y=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=h?c=(b-h)/y:c=(b+y-A)/y,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 Ki=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function bl(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=f=>Ht(n,`.${i.slideClass}${f}, swiper-slide${f}`)[0];let r,u,d;if(l)if(i.loop){let f=a-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${f}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(f=>f.column===a)[0],d=e.filter(f=>f.column===a+1)[0],u=e.filter(f=>f.column===a-1)[0]):r=e[a];r&&(s||(d=il(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=tl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(f=>{Ki(f,f===r,i.slideActiveClass),Ki(f,f===d,i.slideNextClass),Ki(f,f===u,i.slidePrevClass)}),t.emitSlidesClasses()}const ki=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let a=n.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(n.shadowRoot?a=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(a=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},Ji=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Qi=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),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+n+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&Ji(t,u)});return}const l=a+n-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)&&Ji(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)&&Ji(t,s)};function gl(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let a;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?a=l:n>=e[l]&&n<e[l+1]&&(a=l+1):n>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function yl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:a,activeIndex:l,realIndex:s,snapIndex:c}=e;let r=t,u;const d=A=>{let y=A-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof r>"u"&&(r=gl(e)),n.indexOf(i)>=0)u=n.indexOf(i);else{const A=Math.min(a.slidesPerGroupSkip,r);u=A+Math.floor((r-A)/a.slidesPerGroup)}if(u>=n.length&&(u=n.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 f=e.grid&&a.grid&&a.grid.rows>1;let h;if(e.virtual&&a.virtual.enabled&&a.loop)h=d(r);else if(f){const A=e.slides.filter(b=>b.column===r)[0];let y=parseInt(A.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(A),0)),h=Math.floor(y/a.grid.rows)}else if(e.slides[r]){const A=e.slides[r].getAttribute("data-swiper-slide-index");A?h=parseInt(A,10):h=r}else h=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:h,previousIndex:l,activeIndex:r}),e.initialized&&Qi(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function wl(t,e){const i=this,n=i.params;let a=t.closest(`.${n.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(`.${n.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}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Sl={updateSize:vl,updateSlides:pl,updateAutoHeight:ml,updateSlidesOffset:fl,updateSlidesProgress:hl,updateProgress:Al,updateSlidesClasses:bl,updateActiveIndex:yl,updateClickedSlide:wl};function xl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return n?-a:a;if(i.cssMode)return a;let s=$o(l,t);return s+=e.cssOverflowAdjustment(),n&&(s=-s),s||0}function Tl(t,e){const i=this,{rtlTranslate:n,params:a,wrapperEl:l,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=n?-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 f=i.maxTranslate()-i.minTranslate();f===0?d=0:d=(t-i.minTranslate())/f,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function El(){return-this.snapGrid[0]}function Cl(){return-this.snapGrid[this.snapGrid.length-1]}function Il(t,e,i,n,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:s,wrapperEl:c}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const r=l.minTranslate(),u=l.maxTranslate();let d;if(n&&t>r?d=r:n&&t<u?d=u:d=t,l.updateProgress(d),s.cssMode){const f=l.isHorizontal();if(e===0)c[f?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return On({swiper:l,targetPosition:-d,side:f?"left":"top"}),!0;c.scrollTo({[f?"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(h){!l||l.destroyed||h.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 kl={getTranslate:xl,setTranslate:Tl,minTranslate:El,maxTranslate:Cl,translateTo:Il};function Pl(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 Fn(t){let{swiper:e,runCallbacks:i,direction:n,step:a}=t;const{activeIndex:l,previousIndex:s}=e;let c=n;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 Ml(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Fn({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Dl(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Fn({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var _l={setTransition:Pl,transitionStart:Ml,transitionEnd:Dl};function Ll(t,e,i,n,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:f,rtlTranslate:h,wrapperEl:A,enabled:y}=l;if(!y&&!n&&!a||l.destroyed||l.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const b=Math.min(l.params.slidesPerGroupSkip,s);let x=b+Math.floor((s-b)/l.params.slidesPerGroup);x>=r.length&&(x=r.length-1);const v=-r[x];if(c.normalizeSlideIndex)for(let p=0;p<u.length;p+=1){const T=-Math.floor(v*100),k=Math.floor(u[p]*100),I=Math.floor(u[p+1]*100);typeof u[p+1]<"u"?T>=k&&T<I-(I-k)/2?s=p:T>=k&&T<I&&(s=p+1):T>=k&&(s=p)}if(l.initialized&&s!==f&&(!l.allowSlideNext&&(h?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(f||0)!==s))return!1;s!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(s>f?g="next":s<f?g="prev":g="reset",h&&-v===l.translate||!h&&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 p=l.isHorizontal(),T=h?v:-v;if(e===0){const k=l.virtual&&l.params.virtual.enabled;k&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),k&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{A[p?"scrollLeft":"scrollTop"]=T})):A[p?"scrollLeft":"scrollTop"]=T,k&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return On({swiper:l,targetPosition:T,side:p?"left":"top"}),!0;A.scrollTo({[p?"left":"top"]:T,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(s),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,g),e===0?l.transitionEnd(i,g):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(T){!l||l.destroyed||T.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 Ol(t,e,i,n){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 h=s*a.params.grid.rows;c=a.slides.filter(A=>A.getAttribute("data-swiper-slide-index")*1===h)[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 f=r-c<d;if(u&&(f=f||c<Math.ceil(d/2)),n&&u&&a.params.slidesPerView!=="auto"&&!l&&(f=!1),f){const h=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?c+1:c-r+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(l){const h=s*a.params.grid.rows;s=a.slides.filter(A=>A.getAttribute("data-swiper-slide-index")*1===h)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,n)}),a}function Rl(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:a,params:l,animating:s}=n;if(!a||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let c=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(c=Math.max(n.slidesPerViewDynamic("current",!0),1));const r=n.activeIndex<l.slidesPerGroupSkip?1:c,u=n.virtual&&l.virtual.enabled;if(l.loop){if(s&&!u&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+r,t,e,i)}),!0}return l.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+r,t,e,i)}function Nl(t,e,i){e===void 0&&(e=!0);const n=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=n;if(!r||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const d=n.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const f=c?n.translate:-n.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const A=h(f),y=l.map(v=>h(v));let b=l[y.indexOf(A)-1];if(typeof b>"u"&&a.cssMode){let v;l.forEach((g,p)=>{A>=g&&(v=p)}),typeof v<"u"&&(b=l[v>0?v-1:v])}let x=0;if(typeof b<"u"&&(x=s.indexOf(b),x<0&&(x=n.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(x=x-n.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),a.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(a.loop&&n.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{n.slideTo(x,t,e,i)}),!0;return n.slideTo(x,t,e,i)}function Vl(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function jl(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.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)*n&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*n&&(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 Fl(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=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-n/2||a>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),a=t.getSlideIndex(Ht(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ai(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-n?(t.loopFix(),a=t.getSlideIndex(Ht(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ai(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var Bl={slideTo:Ll,slideToLoop:Ol,slideNext:Rl,slidePrev:Nl,slideReset:Vl,slideToClosest:jl,slideToClickedSlide:Fl};function zl(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{Ht(n,`.${i.slideClass}, swiper-slide`).forEach((f,h)=>{f.setAttribute("data-swiper-slide-index",h)})},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 f=0;f<d;f+=1){const h=e.isElement?si("swiper-slide",[i.slideBlankClass]):si("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else xi("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 xi("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 Hl(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,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:f,slidesEl:h,params:A}=r,{centeredSlides:y}=A;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&A.virtual.enabled){i&&(!A.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):A.centeredSlides&&r.snapIndex<A.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=f,r.emit("loopFix");return}let b=A.slidesPerView;b==="auto"?b=r.slidesPerViewDynamic():(b=Math.ceil(parseFloat(A.slidesPerView,10)),y&&b%2===0&&(b=b+1));const x=A.slidesPerGroupAuto?b:A.slidesPerGroup;let v=x;v%x!==0&&(v+=x-v%x),v+=A.loopAdditionalSlides,r.loopedSlides=v;const g=r.grid&&A.grid&&A.grid.rows>1;u.length<b+v?xi("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&&A.grid.fill==="row"&&xi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const p=[],T=[];let k=r.activeIndex;typeof l>"u"?l=r.getSlideIndex(u.filter(L=>L.classList.contains(A.slideActiveClass))[0]):k=l;const I=n==="next"||!n,O=n==="prev"||!n;let m=0,S=0;const w=g?Math.ceil(u.length/A.grid.rows):u.length,C=(g?u[l].column:l)+(y&&typeof a>"u"?-b/2+.5:0);if(C<v){m=Math.max(v-C,x);for(let L=0;L<v-C;L+=1){const E=L-Math.floor(L/w)*w;if(g){const V=w-E-1;for(let F=u.length-1;F>=0;F-=1)u[F].column===V&&p.push(F)}else p.push(w-E-1)}}else if(C+b>w-v){S=Math.max(C-(w-v*2),x);for(let L=0;L<S;L+=1){const E=L-Math.floor(L/w)*w;g?u.forEach((V,F)=>{V.column===E&&T.push(F)}):T.push(E)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),O&&p.forEach(L=>{u[L].swiperLoopMoveDOM=!0,h.prepend(u[L]),u[L].swiperLoopMoveDOM=!1}),I&&T.forEach(L=>{u[L].swiperLoopMoveDOM=!0,h.append(u[L]),u[L].swiperLoopMoveDOM=!1}),r.recalcSlides(),A.slidesPerView==="auto"?r.updateSlides():g&&(p.length>0&&O||T.length>0&&I)&&r.slides.forEach((L,E)=>{r.grid.updateSlide(E,L,r.slides)}),A.watchSlidesProgress&&r.updateSlidesOffset(),i){if(p.length>0&&O){if(typeof e>"u"){const L=r.slidesGrid[k],V=r.slidesGrid[k+m]-L;c?r.setTranslate(r.translate-V):(r.slideTo(k+Math.ceil(m),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-V,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-V))}else if(a){const L=g?p.length/A.grid.rows:p.length;r.slideTo(r.activeIndex+L,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(T.length>0&&I)if(typeof e>"u"){const L=r.slidesGrid[k],V=r.slidesGrid[k-S]-L;c?r.setTranslate(r.translate-V):(r.slideTo(k-S,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-V,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-V))}else{const L=g?T.length/A.grid.rows:T.length;r.slideTo(r.activeIndex-L,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=f,r.controller&&r.controller.control&&!s){const L={slideRealIndex:e,direction:n,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...L,slideTo:E.params.slidesPerView===A.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...L,slideTo:r.controller.control.params.slidesPerView===A.slidesPerView?i:!1})}r.emit("loopFix")}function Wl(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;n[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),n.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Xl={loopCreate:zl,loopFix:Hl,loopDestroy:Wl};function Gl(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 Ul(){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 Yl={setGrabCursor:Gl,unsetGrabCursor:Ul};function ql(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Pt()||n===yt())return null;n.assignedSlot&&(n=n.assignedSlot);const a=n.closest(t);return!a&&!n.getRootNode?null:a||i(n.getRootNode().host)}return i(e)}function Bn(t,e,i){const n=yt(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=n.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Zl(t){const e=this,i=Pt();let n=t;n.originalEvent&&(n=n.originalEvent);const a=e.touchEventsData;if(n.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==n.pointerId)return;a.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(a.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Bn(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:c}=e;if(!c||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let r=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in n&&n.which===3||"button"in n&&n.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&d&&(r=d[0]);const f=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(h?ql(f,r):r.closest(f))){e.allowClick=!0;return}if(l.swipeHandler&&!r.closest(l.swipeHandler))return;s.currentX=n.pageX,s.currentY=n.pageY;const A=s.currentX,y=s.currentY;if(!Bn(e,n,A))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=A,s.startY=y,a.touchStartTime=Rt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let b=!0;r.matches(a.focusableElements)&&(b=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const x=b&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||x)&&!r.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Kl(t){const e=Pt(),i=this,n=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"&&(n.touchId!==null||r.pointerId!==n.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(I=>I.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=r;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,f=u.pageY;if(r.preventedByNestedSwiper){l.startX=d,l.startY=f;return}if(!i.allowTouchMove){r.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:d,startY:f,currentX:d,currentY:f}),n.touchStartTime=Rt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(f<l.startY&&i.translate<=i.maxTranslate()||f>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.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(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",r),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=f;const h=l.currentX-l.startX,A=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(h**2+A**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let I;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:h*h+A*A>=25&&(I=Math.atan2(Math.abs(A),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?I>a.touchAngle:90-I>a.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",r),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||r.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let y=i.isHorizontal()?h:A,b=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(y=Math.abs(y)*(s?1:-1),b=Math.abs(b)*(s?1:-1)),l.diff=y,y*=a.touchRatio,s&&(y=-y,b=-b);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const v=i.params.loop&&!a.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const I=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(I)}n.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let p;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&x!==i.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(l,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",r),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let T=!0,k=a.resistanceRatio;if(a.touchReleaseOnEdges&&(k=0),y>0?(v&&g&&!p&&n.allowThresholdMove&&n.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(T=!1,a.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**k))):y<0&&(v&&g&&!p&&n.allowThresholdMove&&n.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)))}),n.currentTranslate<i.maxTranslate()&&(T=!1,a.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**k))),T&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(y)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!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(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Jl(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let a;if(n.type==="touchend"||n.type==="touchcancel"){if(a=[...n.changedTouches].filter(k=>k.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;a=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),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 f=Rt(),h=f-i.touchStartTime;if(e.allowClick){const k=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(k&&k[0]||n.target,k),e.emit("tap click",n),h<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Rt(),ai(()=>{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 A;if(s.followFinger?A=r?e.translate:-e.translate:A=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:A});return}const y=A>=-e.maxTranslate()&&!e.params.loop;let b=0,x=e.slidesSizesGrid[0];for(let k=0;k<u.length;k+=k<s.slidesPerGroupSkip?1:s.slidesPerGroup){const I=k<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[k+I]<"u"?(y||A>=u[k]&&A<u[k+I])&&(b=k,x=u[k+I]-u[k]):(y||A>=u[k])&&(b=k,x=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 p=(A-u[b])/x,T=b<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(p>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:b+T):e.slideTo(b)),e.swipeDirection==="prev"&&(p>1-s.longSwipesRatio?e.slideTo(b+T):g!==null&&p<0&&Math.abs(p)>s.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+T):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:b+T),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function zn(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,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=n,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Ql(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function $l(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let 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 ea(t){const e=this;ki(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ta(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Hn=(t,e)=>{const i=Pt(),{params:n,el:a,wrapperEl:l,device:s}=t,c=!!n.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}),(n.preventClicks||n.preventClicksPropagation)&&a[r]("click",t.onClick,!0),n.cssMode&&l[r]("scroll",t.onScroll),n.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",zn,!0):t[u]("observerUpdate",zn,!0),a[r]("load",t.onLoad,{capture:!0}))};function ia(){const t=this,{params:e}=t;t.onTouchStart=Zl.bind(t),t.onTouchMove=Kl.bind(t),t.onTouchEnd=Jl.bind(t),t.onDocumentTouchStart=ta.bind(t),e.cssMode&&(t.onScroll=$l.bind(t)),t.onClick=Ql.bind(t),t.onLoad=ea.bind(t),Hn(t,"on")}function na(){Hn(this,"off")}var oa={attachEvents:ia,detachEvents:na};const Wn=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function la(){const t=this,{realIndex:e,initialized:i,params:n,el:a}=t,l=n.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=Wn(t,n),d=Wn(t,r),f=t.params.grabCursor,h=r.grabCursor,A=n.enabled;u&&!d?(a.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${n.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&n.grid.fill==="column")&&a.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),f&&!h?t.unsetGrabCursor():!f&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(p=>{if(typeof r[p]>"u")return;const T=n[p]&&n[p].enabled,k=r[p]&&r[p].enabled;T&&!k&&t[p].disable(),!T&&k&&t[p].enable()});const y=r.direction&&r.direction!==n.direction,b=n.loop&&(r.slidesPerView!==n.slidesPerView||y),x=n.loop;y&&i&&t.changeDirection(),_t(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}),A&&!v?t.disable():!A&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(b?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&g?(t.loopCreate(e),t.updateSlides()):x&&!g&&t.loopDestroy()),t.emit("breakpoint",r)}function aa(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const a=yt(),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&&(n=r):u<=i.clientWidth&&(n=r)}return n||"max"}var sa={setBreakpoint:la,getBreakpoint:aa};function ra(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(a=>{n[a]&&i.push(e+a)}):typeof n=="string"&&i.push(e+n)}),i}function da(){const t=this,{classNames:e,params:i,rtl:n,el:a,device:l}=t,s=ra(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...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 ua={addClasses:da,removeClasses:ca};function va(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+n*2;t.isLocked=t.size>l}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var pa={checkOverflow:va},$i={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(n){n===void 0&&(n={});const a=Object.keys(n)[0],l=n[a];if(typeof l!="object"||l===null){_t(e,n);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)){_t(e,n);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),_t(e,n)}}const en={eventsEmitter:ul,update:Sl,translate:kl,transition:_l,slide:Bl,loop:Xl,grabCursor:Yl,events:oa,breakpoints:sa,checkOverflow:pa,classes:ua},tn={};let nn=class Zt{constructor(){let e,i;for(var n=arguments.length,a=new Array(n),l=0;l<n;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=_t({},i),e&&!i.el&&(i.el=e);const s=Pt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(f=>{const h=_t({},i,{el:f});d.push(new Zt(h))}),d}const c=this;c.__swiper__=!0,c.support=Nn(),c.device=Vn({userAgent:i.userAgent}),c.browser=rl(),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=_t({},$i,r);return c.params=_t({},u,tn,i),c.originalParams=_t({},c.params),c.passedParams=_t({},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:n}=this,a=Ht(i,`.${n.slideClass}, swiper-slide`),l=vi(a[0]);return vi(e)-l}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Ht(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const a=n.minTranslate(),s=(n.maxTranslate()-a)*e+a;n.translateTo(s,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const a=e.getSlideClasses(n);i.push({slideEl:n,classNames:a}),e.emit("_slideClass",n,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=n;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let f=l[u]?Math.ceil(l[u].swiperSlideSize):0,h;for(let A=u+1;A<l.length;A+=1)l[A]&&!h&&(f+=Math.ceil(l[A].swiperSlideSize),d+=1,f>r&&(h=!0));for(let A=u-1;A>=0;A-=1)l[A]&&!h&&(f+=l[A].swiperSlideSize,d+=1,f>r&&(h=!0))}else if(e==="current")for(let f=u+1;f<l.length;f+=1)(i?s[f]+c[f]-s[u]<r:s[f]-s[u]<r)&&(d+=1);else for(let f=u-1;f>=0;f-=1)s[u]-s[f]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&ki(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(n.freeMode&&n.freeMode.enabled&&!n.cssMode)a(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const s=e.virtual&&n.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()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,a=n.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${a}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(a()):Ht(n,a())[0];return!s&&i.params.createElements&&(s=si("div",i.params.wrapperClass),n.append(s),Ht(n,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:n,wrapperEl:s,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||$t(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||$t(n,"direction")==="rtl"),wrongRTL:$t(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?ki(i,l):l.addEventListener("load",s=>{ki(i,s.target)})}),Qi(i),i.initialized=!0,Qi(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:a,el:l,wrapperEl:s,slides:c}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),a.loop&&n.loopDestroy(),i&&(n.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")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(r=>{n.off(r)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),Jo(n)),n.destroyed=!0),null}static extendDefaults(e){_t(tn,e)}static get extendedDefaults(){return tn}static get defaults(){return $i}static installModule(e){Zt.prototype.__modules__||(Zt.prototype.__modules__=[]);const i=Zt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Zt.installModule(i)),Zt):(Zt.installModule(e),Zt)}};Object.keys(en).forEach(t=>{Object.keys(en[t]).forEach(e=>{nn.prototype[e]=en[t][e]})}),nn.use([dl,cl]);const Xn=["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 ni(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ri(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:ni(e[n])&&ni(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:ri(t[n],e[n]):t[n]=e[n]})}function Gn(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Un(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Yn(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function qn(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function fa(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function ha(t){let{swiper:e,slides:i,passedParams:n,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:d,pagination:f,navigation:h,scrollbar:A,virtual:y,thumbs:b}=e;let x,v,g,p,T,k,I,O;a.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(x=!0),a.includes("controller")&&n.controller&&n.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&n.pagination&&(n.pagination.el||r)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(g=!0),a.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&A&&!A.el&&(p=!0),a.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||l)&&(d.navigation||d.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(T=!0);const m=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),d[S].prevEl=void 0,d[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),d[S].el=void 0,e[S].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!n.loop?k=!0:!d.loop&&n.loop?I=!0:O=!0),u.forEach(S=>{if(ni(d[S])&&ni(n[S]))Object.assign(d[S],n[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in n[S]&&!n[S].enabled&&m(S);else{const w=n[S];(w===!0||w===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?w===!1&&m(S):d[S]=n[S]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&y&&d.virtual.enabled?(y.slides=i,y.update(!0)):a.includes("virtual")&&y&&d.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),a.includes("children")&&i&&d.loop&&(O=!0),x&&b.init()&&b.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),f.init(),f.render(),f.update()),p&&(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),A.init(),A.updateSize(),A.setTranslate()),T&&(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),h.init(),h.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),a.includes("direction")&&e.changeDirection(n.direction,!1),(k||O)&&e.loopDestroy(),(I||O)&&e.loopCreate(),e.update()}function Aa(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},a={};ri(i,$i),i._emitClasses=!0,i.init=!1;const l={},s=Xn.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?ni(t[r])?(i[r]={},a[r]={},ri(i[r],t[r]),ri(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?n[`${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:n}}function ba(t,e){let{el:i,nextEl:n,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:c}=t;Gn(e)&&n&&a&&(c.params.navigation.nextEl=n,c.originalParams.navigation.nextEl=n,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),Un(e)&&l&&(c.params.pagination.el=l,c.originalParams.pagination.el=l),Yn(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function ga(t,e,i,n,a){const l=[];if(!e)return l;const s=r=>{l.indexOf(r)<0&&l.push(r)};if(i&&n){const r=n.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),n.length!==i.length&&s("children")}return Xn.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(ni(t[r])&&ni(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(f=>{t[r][f]!==e[r][f]&&s(r)}),d.forEach(f=>{t[r][f]!==e[r][f]&&s(r)}))}else t[r]!==e[r]&&s(r)}),l}const ya=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Pi(){return Pi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Pi.apply(this,arguments)}function Zn(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Kn(t){const e=[];return o.Children.toArray(t).forEach(i=>{Zn(i)?e.push(i):i.props&&i.props.children&&Kn(i.props.children).forEach(n=>e.push(n))}),e}function wa(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return o.Children.toArray(t).forEach(n=>{if(Zn(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const a=Kn(n.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Sa(t,e,i){if(!i)return null;const n=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},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[n(d)]);return u.map((d,f)=>o.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${f}`}))}function pi(t,e){return typeof window>"u"?o.useEffect(t,e):o.useLayoutEffect(t,e)}const on=o.createContext(null),ln=()=>o.useContext(on),xa=o.createContext(null),oi=o.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:a="div",children:l,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=o.useState("swiper"),[f,h]=o.useState(null),[A,y]=o.useState(!1),b=o.useRef(!1),x=o.useRef(null),v=o.useRef(null),g=o.useRef(null),p=o.useRef(null),T=o.useRef(null),k=o.useRef(null),I=o.useRef(null),O=o.useRef(null),{params:m,passedParams:S,rest:w,events:P}=Aa(c),{slides:C,slots:L}=wa(l),E=()=>{y(!A)};Object.assign(m.on,{_containerClasses(R,M){d(M)}});const V=()=>{Object.assign(m.on,P),r=!0;const R={...m};if(delete R.wrapperClass,v.current=new nn(R),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const M={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};ri(v.current.params.virtual,M),ri(v.current.originalParams.virtual,M)}};x.current||V(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{r||!P||!v.current||Object.keys(P).forEach(R=>{v.current.on(R,P[R])})},D=()=>{!P||!v.current||Object.keys(P).forEach(R=>{v.current.off(R,P[R])})};o.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),o.useEffect(()=>{!b.current&&v.current&&(v.current.emitSlidesClasses(),b.current=!0)}),pi(()=>{if(e&&(e.current=x.current),!!x.current)return v.current.destroyed&&V(),ba({el:x.current,nextEl:T.current,prevEl:k.current,paginationEl:I.current,scrollbarEl:O.current,swiper:v.current},m),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),pi(()=>{F();const R=ga(S,g.current,C,p.current,M=>M.key);return g.current=S,p.current=C,R.length&&v.current&&!v.current.destroyed&&ha({swiper:v.current,slides:C,passedParams:S,changedParams:R,nextEl:T.current,prevEl:k.current,scrollbarEl:O.current,paginationEl:I.current}),()=>{D()}}),pi(()=>{ya(v.current)},[f]);function N(){return m.virtual?Sa(v.current,C,f):C.map((R,M)=>o.cloneElement(R,{swiper:v.current,swiperSlideIndex:M}))}return o.createElement(n,Pi({ref:x,className:qn(`${u}${i?` ${i}`:""}`)},w),o.createElement(xa.Provider,{value:v.current},L["container-start"],o.createElement(a,{className:fa(m.wrapperClass)},L["wrapper-start"],N(),L["wrapper-end"]),Gn(m)&&o.createElement(o.Fragment,null,o.createElement("div",{ref:k,className:"swiper-button-prev"}),o.createElement("div",{ref:T,className:"swiper-button-next"})),Yn(m)&&o.createElement("div",{ref:O,className:"swiper-scrollbar"}),Un(m)&&o.createElement("div",{ref:I,className:"swiper-pagination"}),L["container-end"]))});oi.displayName="Swiper";const zt=o.forwardRef(function(t,e){let{tag:i="div",children:n,className:a="",swiper:l,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const f=o.useRef(null),[h,A]=o.useState("swiper-slide"),[y,b]=o.useState(!1);function x(T,k,I){k===f.current&&A(I)}pi(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),e&&(e.current=f.current),!(!f.current||!l)){if(l.destroyed){h!=="swiper-slide"&&A("swiper-slide");return}return l.on("_slideClass",x),()=>{l&&l.off("_slideClass",x)}}}),pi(()=>{l&&f.current&&!l.destroyed&&A(l.getSlideClasses(f.current))},[l]);const v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(v):n,p=()=>{b(!0)};return o.createElement(i,Pi({ref:f,className:qn(`${h}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:p},d),s&&o.createElement(on.Provider,{value:v},o.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},g(),c&&!y&&o.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&o.createElement(on.Provider,{value:v},g(),c&&!y&&o.createElement("div",{className:"swiper-lazy-preloader"})))});zt.displayName="SwiperSlide";const Ta="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Ea=({visible:t,onClose:e,children:i,modalStyle:n,padding:a,popup:l,schema:s,fullHeight:c=window.innerHeight,isFullScreen:r=!1,openState:u})=>{var d,f,h,A,y,b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D;const N=o.useRef(null),R=o.useRef(null),M=o.useRef(null),j=o.useRef(null),W=o.useRef(null),Z=c*.2,J=r?c:c*.8,[$,ae]=o.useState(Z),[de,ee]=o.useState(!1),ke=o.useRef(null),{globalConfig:_e,popupDetailData:Be}=je(),{schema:Y,popup:K}=Jt(),[ue,fe]=o.useState(15);o.useEffect(()=>{const q=document.getElementById("sxp-render"),G=document.getElementById("pb-modal");G?ke.current=G:(ke.current=document.createElement("div"),ke.current.setAttribute("id","pb-modal"),q?.appendChild(ke.current))},[]);const he=o.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),le=o.useMemo(()=>{var q,G,ie;const ne=s??Y;return(ie=(G=(q=ne?.sxpPageConf)===null||q===void 0?void 0:q.globalConfig)===null||G===void 0?void 0:G.popupList)===null||ie===void 0?void 0:ie.find(xe=>xe?.id===l?.id)},[l,s,Y]),Pe=o.useMemo(()=>{var q,G;return((G=(q=le?.item)===null||q===void 0?void 0:q.event)===null||G===void 0?void 0:G.isScrollFullScreen)||!1},[le]);o.useEffect(()=>{he?ee(!0):setTimeout(()=>{ee(!1),ae(Z)},l?.duration)},[he,l]);const Ge=o.useCallback(()=>i,[K,u,_e,s]);if(o.useEffect(()=>{const q=G=>{var ie=G?.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])'),ne=ie?.[0],se=ie?.[ie?.length-1],xe=9;G.addEventListener("keydown",function(Je){(Je.key==="Escape"||Je.key==="Esc")&&(Re(),Je.preventDefault());var te=Je.key==="Tab"||Je.keyCode===xe;te&&(Je.shiftKey?document?.activeElement===ne&&(se?.focus(),Je.preventDefault()):document?.activeElement===se&&(ne?.focus(),Je.preventDefault()))}),ne?.focus()};return W?.current&&q(W?.current),()=>{var G;(G=W?.current)===null||G===void 0||G.removeEventListener("keydown",q)}},[W,de,K]),!ke.current)return null;const Re=lt.debounce(()=>{e?.()},300),Ze=q=>{N.current=q.touches[0],R.current=q.touches[0],M.current=!0},Qe=q=>{requestAnimationFrame(()=>{var G;if(M.current&&((G=j?.current)===null||G===void 0?void 0:G.scrollTop)===0){const ie=q.touches[0].clientY,ne=q.touches[0].clientX,se=N.current.clientY-ie;N.current=q.touches[0];const xe=ie-R.current.clientY,Je=ne-R.current.clientX;if(Math.abs(Je)>Math.abs(xe))return;const te=$-se;te>0&&ae(te)}})},Ae=q=>{var G;if(M.current&&((G=j?.current)===null||G===void 0?void 0:G.scrollTop)===0){const ie=q.changedTouches[0].clientY-R.current.clientY,ne=q.changedTouches[0].clientX-R.current.clientX;if(Math.abs(ne)>Math.abs(ie))return;const se=R.current.clientY-N.current.clientY;se>0?ae(0):$<Z&&se<0?ae(Z):$>=Z&&se<0&&e?.()}M.current=!1};return fn.createPortal(o.createElement(o.Fragment,null,de&&o.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:he?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:Re},o.createElement("div",{style:{position:"relative",left:`${(A=(h=(f=(d=le?.item)===null||d===void 0?void 0:d.props)===null||f===void 0?void 0:f.popupBg)===null||h===void 0?void 0:h.horizontalMargin)!==null&&A!==void 0?A:0}px`,right:`${(v=(x=(b=(y=le?.item)===null||y===void 0?void 0:y.props)===null||b===void 0?void 0:b.popupBg)===null||x===void 0?void 0:x.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${(k=(T=(p=(g=le?.item)===null||g===void 0?void 0:g.props)===null||p===void 0?void 0:p.popupBg)===null||T===void 0?void 0:T.bottomMargin)!==null&&k!==void 0?k:0}px`,overflow:"hidden",width:`calc(100% - ${((S=(m=(O=(I=le?.item)===null||I===void 0?void 0:I.props)===null||O===void 0?void 0:O.popupBg)===null||m===void 0?void 0:m.horizontalMargin)!==null&&S!==void 0?S:0)*2}px)`,height:"100%"}},o.createElement("div",Object.assign({ref:W,className:`modal-container ${he?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(w=le?.item)===null||w===void 0?void 0:w.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:a,animationDuration:((P=l?.duration)!==null&&P!==void 0?P:0)/1e3+"s"},Pe&&{transform:`translateY(${$}px)`}),{overflow:"hidden",borderRadius:`${(V=(E=(L=(C=le?.item)===null||C===void 0?void 0:C.props)===null||L===void 0?void 0:L.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&V!==void 0?V:0}px`,zIndex:9}),onClick:q=>{q.stopPropagation(),q.preventDefault()}},Pe&&{onTouchMove:Qe,onTouchStart:Ze,onTouchEnd:Ae}),o.createElement("div",Object.assign({id:"modal-content",ref:j,style:{height:Pe?c:J,overflow:Pe&&$<=0||!Pe?"auto":"hidden",zIndex:1}},((D=(F=le?.item)===null||F===void 0?void 0:F.props)===null||D===void 0?void 0:D.enableFixedCloseButton)&&{onScroll:q=>{var G;fe(15-((G=q?.target)===null||G===void 0?void 0:G.scrollTop))}}),Ge()),o.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:ue}},o.createElement("img",{src:_e?.popupCloseIcon||Ta,alt:"close button",className:"modal-icon"})))))),ke.current)};var di=o.memo(Ea);const Ca=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),a=[];for(let s=0;s<n.length&&(a.push(n[s]),!(a.join(" ").length>=e));s++);return(a.length>1&&a.length<n.length?a.slice(0,a.length-1):a).join(" ")+" "},Ia=({text:t,maxStr:e=108,style:i,className:n,onClick:a,foldText:l,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=o.useState(!1),[f,h]=o.useState(!1),A=Number(i?.lineClamp||2),y=o.useRef(null),b=o.useRef(null),x=o.useCallback(()=>{d(!u)},[u,r]);return o.useMemo(()=>!u&&t.length>e?Ca(t,e)+"...":t,[t,e,u]),o.useEffect(()=>{var v,g;b?.current&&(b.current.style.display="block"),((v=b?.current)===null||v===void 0?void 0:v.offsetHeight)>((g=y?.current)===null||g===void 0?void 0:g.offsetHeight)&&c?h(!0):h(!1),b.current.style.display="none"},[c,t]),o.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},o.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!c||u?"":A,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:Ee(t?.replace(/\n/g,"</br>"),i)}}),o.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:Ee(t?.replace(/\n/g,"</br>"),i)}}),t&&c&&f&&o.createElement("button",{"aria-label":u?s||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??x,dangerouslySetInnerHTML:{__html:Ee(u?s||"show less":l||"show more",i)}}))};var Mi=o.memo(Ia);const ka=o.forwardRef((t,e)=>{const{src:i,onLoad:n,style:a,className:l,loading:s,alt:c="image"}=t,[r,u]=o.useState(i),d=o.useRef(null),[f,h]=o.useState(!1);return o.useImperativeHandle(e,()=>({setSrc:A=>{A&&u(A)}})),o.useEffect(()=>{i&&u(i)},[i]),o.useEffect(()=>{const A=()=>{i&&!f&&d.current&&(d.current.src="",d.current.src=i)};return mt.on(dt.PAGE_DID_SHOW,A),()=>{mt.off(dt.PAGE_DID_SHOW,A)}},[i,f]),o.createElement(o.Fragment,null,!f&&!r&&o.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?o.createElement("picture",null,o.createElement("source",{type:"image/avif",srcSet:r}),o.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),o.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),o.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:A=>{h(!0),n?.(A.target)},alt:c})):o.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:A=>{h(!0),n?.(A.target)},alt:c}))});var Mt=o.memo(ka);const Pa=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const a=o.useRef(),{popupDetailData:l}=je();return o.useEffect(()=>{var s,c;n&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=l?.multiCheckIndex)!==null&&c!==void 0?c:0))},[l,n]),o.createElement(oi,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[ol,nl,Ei],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var mi=o.memo(Pa);const Ma=({products:t,data:e,defImg:i,style:n,onCLick:a,popupDetailData:l,check:s})=>{var c;const{productView:r}=It(),{popupCurTimeRef:u}=je(),d=(f,h)=>{if(s===h)return;const A=t?.[s];r(l,A,A?.bindCta,u.current,l?.index),a?.(h)};return o.createElement(o.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&o.createElement(mi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(c=l?t:[0,1,2,3])===null||c===void 0?void 0:c.map((f,h)=>{var A,y,b;return o.createElement(o.Fragment,null,f?.bindCta?o.createElement(zt,{className:Ie.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{d(f,h)},key:h},o.createElement(Mt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(b=(A=f?.cover)!==null&&A!==void 0?A:(y=f?.homePage)===null||y===void 0?void 0:y[0])!==null&&b!==void 0?b:i})):null)})))};var Jn=o.memo(Ma);const Da=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:a,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},_a=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",fi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:a})=>{var l,s,c,r,u,d,f,h;let A="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return A;let b=i?.priceSymbol,x=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=y?.toString();b?.showTwoDecimalPoint&&(g=y?.toFixed(2));let p=(r=g?.indexOf("."))!==null&&r!==void 0?r:-1;if(v){A=(u=y?.toLocaleString("zh",{minimumFractionDigits:b?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let T=0,k=p??A?.length;b?.millesimalSymbol==="."?A=A?.replace(/\,/g,function(I,O){return O>=T&&O<k?".":I}):b?.millesimalSymbol===" "&&(A=A?.replace(","," "))}else A=`${b?.showTwoDecimalPoint?y?.toFixed(2):y}`;return b?.decimalPoint===","&&p>0&&(A=A=A?.replace(/\./g,function(T,k){return k>=p&&k<A?.length?",":T})),x=`<span style="font-family:${(h=(f=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&f!==void 0?f:a?.["fontFamily-en"])!==null&&h!==void 0?h:"inherit"}">${x}</span>`,A=Ee(A,a),b?.currencyPosition&&b?.currencyPosition!=="none"?A=b?.currencyPosition==="left"?x+A:A+x:b?.currencyPosition!=="none"&&(A=x+A),A},La=t=>{var e,i,n,a,l,s,c,r,u,d,f,h,A,y,b,x,v,g,p,T,k,I,O,m,{content:S,style:w,bgImg:P,onClick:C,schema:L,isDefault:E,bottom_image:V,tipText:F,isPost:D,viewTime:N,rec:R,swiper:M,commodityStyles:j,buttonStyle:W,index:Z,commodityGroup:J,popupBg:$,iframeIcon:ae,commodityImgRatio:de,isTel:ee,iframeBgColor:ke,isActive:_e=!0}=t,Be=tt(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:Y,popupDetailData:K,isPreview:ue,bffFbReport:fe,popupCurTimeRef:he,checkCommodityIndexRef:le,globalConfig:Pe}=je(),{jumpToWeb:Ge,productView:Re}=It(),Ze=o.useRef(null),[Qe,Ae]=o.useState(!1),[q,G]=o.useState(!1),[ie,ne]=o.useState((e=K?.multiCheckIndex)!==null&&e!==void 0?e:0),se=o.useRef(),[xe,Je]=o.useState(0),te=D?R:K;let B=D?te?.product:(n=(i=te?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(l=(a=te?.video)===null||a===void 0?void 0:a.bindProducts)===null||l===void 0?void 0:l[0],Ue=D?(s=te?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=te?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(h=(f=(d=te?.video)===null||d===void 0?void 0:d.bindProducts)===null||f===void 0?void 0:f[0])===null||h===void 0?void 0:h.bindCta;const wt=D?Z:K?.index;if(!D&&J?.open&&(!((A=te?.video)===null||A===void 0)&&A.bindProducts)&&((b=(y=te?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0?void 0:b.length)>0){le.current=ie;const ye=(x=te?.video)===null||x===void 0?void 0:x.bindProducts[ie];B=ye,Ue=ye?.bindCta}const $e=ye=>{B?.link&&(Ge(ye,te,B,Ue,wt),D||Re(te,B,Ue,N||Ze.current,wt),window.location.href=window.getJointUtmLink(B.link))};o.useEffect(()=>{_e&&(fe?.({eventName:"ProductView",product:B}),fe?.({eventName:"PageView",product:B}))},[_e,fe]),o.useEffect(()=>{const ye=()=>{Ze.current=new Date};return ye(),window.addEventListener("pageshow",ye),()=>{window.removeEventListener("pageshow",ye)}},[]);const bt=fi({product:B,enableFormattedPrice:(v=j?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:Pe,style:j?.price}),ft=(ue?375:(g=w?.width)!==null&&g!==void 0?g:window.innerWidth)-((p=$?.horizontalMargin)!==null&&p!==void 0?p:0)*2,St=de?ft*(de.h/de.w):ft,Vt=({isPost:ye})=>{var Le,Tt,Kt,Xt;return o.createElement("div",null,o.createElement("div",{className:"pb-commondity-content-collection",style:jt(j?.collection),hidden:!!B&&(!B?.collection||B?.collection===""),dangerouslySetInnerHTML:{__html:Ee((Le=B?.collection)!==null&&Le!==void 0?Le:"Tiffany Lock",j?.collection)}}),o.createElement("div",{className:"pb-commondity-content-title",style:jt(j?.title),hidden:!!B&&!B?.title,dangerouslySetInnerHTML:{__html:Ee((Tt=B?.title)!==null&&Tt!==void 0?Tt:"Pendant in Yellow Gold with Diamonds, Medium",j?.title)}}),o.createElement("div",{className:"pb-commondity-content-price",style:jt(j?.price),hidden:!!B&&!B?.price,dangerouslySetInnerHTML:{__html:bt??""}}),o.createElement("div",{hidden:!!B&&!B?.taxInfo,style:jt(j?.taxInfo),dangerouslySetInnerHTML:{__html:Ee((Kt=B?.taxInfo)!==null&&Kt!==void 0?Kt:"\u7A0E\u8D39",j?.taxInfo)}}),o.createElement("div",{hidden:!!B&&(!B?.info||B?.info==="")},o.createElement(Mi,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Ae(!0),isPost:ye,text:(Xt=B?.info)!==null&&Xt!==void 0?Xt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var lt=require("lodash"),Ao=require("uuid"),bo=require("pako"),o=require("react"),Li=require("qs"),go=require("eventemitter3"),Ie=require("@emotion/css"),mn=require("react-dom");function yo(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var fn=yo(mn);function tt(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(i[n[a]]=t[n[a]]);return i}function At(t,e,i,n){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(n.next(d))}catch(f){s(f)}}function r(d){try{u(n.throw(d))}catch(f){s(f)}}function u(d){d.done?l(d.value):a(d.value).then(c,r)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const wo=/:\w+/g;var hn=(t,e)=>At(void 0,void 0,void 0,function*(){const i={},n={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:c,urlParams:r,name:u,queryString:d,headers:f,body:h}=e[a];let A=c;r&&Object.entries(r).forEach(([y,b])=>{A=A.replace(wo,x=>x===y?b:x)}),d&&(A+=d),n[l]=u;try{const y=yield fetch(A,{method:s,headers:Object.assign({"Content-Type":"application/json"},f),body:JSON.stringify(h)}).then(b=>b.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const An="SXP_TOKEN_INFO",So=(t,e)=>At(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(An);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":n||"","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(An,JSON.stringify(c))}}return c});function bi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)n[a]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",a=0;a<36;a++)n[a]||(l=0|Math.random()*16,n[a]=i[a===19?l&3|8:l])}return n.join("")}const xo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*n)),a+=1;return e},To=()=>{const t=Ao.v4();return t?.replaceAll?t.replaceAll("-",""):xo(32)},Ee=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!n&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${n??"inherit"}`,u=`font-family:${a??"inherit"}`,d=h=>{let A=h.search(s),y=h.search(c);return A!==-1&&y!==-1&&A<y&&(i+=`<span style="${r}">${h.substring(A,y)}</span>`,l=h.substring(y,h?.length)),A!==-1&&y!==-1&&A>y&&(i+=`<span style="${u}">${h.substring(y,A)}</span>`,l=h.substring(A,h?.length)),A===-1?(i+=`<span style="${u}">${h.substring(y,h?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${r}">${h.substring(A,h?.length)}</span>`,l="",!1):!0};let f=!0;for(;f;)f=d(l);return i};function bn(t){const i=document.cookie.split(";");let n=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(n=s)}),n??""}function Oi(){let 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 gn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),a=bo.inflate(n,{to:"string"});return JSON.parse(a)}let Ri=null;const Eo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Co{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Ri)return Ri;Ri=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Eo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let gt=null;const Io={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{gt||(gt=new Co),n&&gt.setApiUrl(n),gt.setAppId(t),gt.setTenantId(e),gt.setEnv(i)},getDetail:t=>{if(!gt)return;const e=gt.getTenantId(),i=gt.getAppId(),n=gt.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>At(void 0,void 0,void 0,function*(){var l,s;const c=yield a.json(),r=gn((l=c?.data)===null||l===void 0?void 0:l.data);if(r){const{$store:u}=yield hn(n,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>At(void 0,void 0,void 0,function*(){if(!gt)return;const e=gt.getTenantId(),i=gt.getAppId(),n=gt.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>At(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:gn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>At(void 0,void 0,void 0,function*(){if(!gt)return;const e=yield So(gt,t),i=bi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");lt.isEmpty(n)&&(n=bi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));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:n,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return a?.data||null})};function Jt(){return o.useContext(Mn)}function ko(){return o.useContext(Pn)}const Ni="feRealSessionIdKey",yn=()=>{const t=To();return`${Date.now()}${t}`},Po=()=>{let t=Mo();return t||(t=yn(),window.localStorage.setItem(Ni,t)),t},Vi=()=>{const t=yn();window.localStorage.setItem(Ni,t)},Mo=()=>window.localStorage.getItem(Ni),wn="SXP_FAKE_USER_ID",Sn="FAKE_USER_STATE",xn="AGREE_POLICY",Tn="SLIDE_SKIP_STATE",En="CCONTSENT_STATE",Do=()=>{let t=window.localStorage.getItem(wn);return lt.isEmpty(t)&&(t=bi(36,62),window.localStorage.setItem(wn,t)),t},_o=()=>{const t=window.localStorage.getItem(Sn);return lt.isEmpty(t)&&window.localStorage.setItem(Sn,"true"),lt.isEmpty(t)},Lo=()=>{const t=window.localStorage.getItem(Tn);return lt.isEmpty(t)},Oo=()=>{window.localStorage.setItem(Tn,"true")},Ro=()=>{const t=window.localStorage.getItem(En);return lt.isEmpty(t)&&window.localStorage.setItem(En,"true"),lt.isEmpty(t)};function Ot(t,e){const{appDomain:i}=je();return o.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const mt=new go;var dt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(dt||(dt={}));const No=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:c}=je(),r=o.useMemo(()=>{const f=location.search.slice(1),h=Li.parse(f.replace(/\+/g,"%2B"));for(const A in h)h[A]=h[A].replace(/%2B/g,"+");return h},[]),u=f=>{var h;return(h=r[f])!==null&&h!==void 0?h:null};o.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"),clSource:u("cl_source"),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(xn,"yes")};return o.createElement("div",{className:"consent-bg"},o.createElement("div",{className:"consent"},o.createElement("div",{className:"consent-col"},o.createElement("div",{className:"consent-title"},i??"Privacy Policy"),o.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),o.createElement("div",{className:"consent-col"},o.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),o.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},l??"More information"))))};var Vo=o.memo(No);const Cn=o.createContext({rtcList:[],tagList:[]});var ji;(function(t){t[t.BFF=5]="BFF"})(ji||(ji={}));const gi="FOR U",jo=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:f=!1,enabledMetaConversionApi:h=!1,consentHeight:A,consentWidth:y,isOpenConsent:b=!1,isEditor:x=!1,utmParameter:v,channelQueryList:g,data:p,dataList:T,onUpdateSchema:k,onUpdateChannel:I})=>{var O,m,S,w,P;const[C,L]=o.useState([]),[E,V]=o.useState([]),[F,D]=o.useState(!1),[N,R]=o.useState({rtc:"",requestId:""}),M=o.useRef(null),j=o.useRef(!1),[W,Z]=o.useState(()=>!!window.localStorage.getItem(xn)),[J,$]=o.useState(),[ae,de]=o.useState(),[ee,ke]=o.useState(f),[_e,Be]=o.useState([]),[Y,K]=o.useState(0),[ue,fe]=o.useState(!1),[he,le]=o.useState(null),Pe=o.useRef(),Ge=o.useRef(),Re=o.useRef(),[Ze,Qe]=o.useState(gi),Ae=o.useRef(-1),q=o.useRef(null),[G,ie]=o.useState(!1),[ne,se]=o.useState((m=(O=p?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||m===void 0?void 0:m.globalConfig),[xe,Je]=o.useState(),[te,B]=o.useState(!1),[Ue,wt]=o.useState(),[$e,bt]=o.useState(),[ft,St]=o.useState([]),[Vt,Dt]=o.useState(),jt=o.useMemo(()=>xe??p,[xe,p]),kt=o.useMemo(()=>{var z,X,ve,Te;return(((Te=(ve=(X=(z=ne?.consent)===null||z===void 0?void 0:z[0])===null||X===void 0?void 0:X.item)===null||ve===void 0?void 0:ve.props)===null||Te===void 0?void 0:Te.privacy_necessity)&&!W&&!x||b)&&te},[W,ne,b,x,te]),Lt=o.useCallback(z=>{I?.(z),bt(z)},[]),xt=o.useCallback(z=>{var X;const ve=z?.recList;return(X=ve?.map(ge=>{var Se,Oe,We,Xe,Ye,Ke;if(!((Se=ge?.video)===null||Se===void 0)&&Se.bindProducts&&((We=(Oe=ge?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||We===void 0?void 0:We.length)>0){const st=(Ke=(Ye=(Xe=ge?.video)===null||Xe===void 0?void 0:Xe.bindProducts)===null||Ye===void 0?void 0:Ye.filter(nt=>!!nt?.bindCta))!==null&&Ke!==void 0?Ke:[];return Object.assign(Object.assign({},ge),{video:Object.assign(Object.assign({},ge?.video),{bindProducts:st})})}return ge}))!==null&&X!==void 0?X:[]},[]);o.useEffect(()=>{let z;return ft.length>0&&(z=setInterval(()=>{const ve=new Date,Te=15*1e3;St(ge=>ge.filter(Se=>ve-Se.time<=Te))},1e3)),()=>{clearInterval(z)}},[ft]),o.useEffect(()=>{const z=X=>{Pe.current=X};return mt.on(dt.CHANGE_THEME_TAG,z),()=>{mt.off(dt.CHANGE_THEME_TAG,z)}},[]),o.useEffect(()=>{ke(f)},[f]);const it=o.useMemo(()=>e?.find(z=>z.type===ji.BFF),[e]),Ft=o.useMemo(()=>{var z;return((z=it?.headers)===null||z===void 0?void 0:z["x-app-id"])+Do()},[it]),Fe=o.useCallback((z,X)=>{if(!it)return;const ve=it.url;if(X?.query){const Te=Li.stringify(X.query);z=`${z}?${Te}`}return X.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${ve}/api/${z}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},X.body),it.headers),{"x-user-id":Ft}))],{type:"application/json;charset=UTF-8"})):window.fetch(`${ve}/api/${z}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":Ft},it.headers),method:X.method,body:JSON.stringify(X.body)}).then(Te=>Te.json()).catch(Te=>Promise.reject(Te))},[it,Ft]),ht=o.useCallback(z=>At(void 0,void 0,void 0,function*(){var X,ve,Te,ge,Se,Oe,We,Xe,Ye,Ke,st,nt,rt,_;if(z={maxSize:(X=z?.maxSize)!==null&&X!==void 0?X:a,defaultSize:(ve=z?.defaultSize)!==null&&ve!==void 0?ve:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},$e)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent($e)});else if(i){const U=(Se=(ge=(Te=i?.split("&"))===null||Te===void 0?void 0:Te.filter(oe=>{var Q,be;const re=oe.split("=")[0];return(be=(Q=v?.channels)!==null&&Q!==void 0?Q:[])===null||be===void 0?void 0:be.includes(re)}))===null||ge===void 0?void 0:ge.join("&"))!==null&&Se!==void 0?Se:"";U&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(U)}))}if(x){let U=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!z?.channel||j.current)return;j.current=!0;let oe=[],Q=null;const be=re=>At(void 0,void 0,void 0,function*(){var ce,De,Ne,Ve,me,we;if(re.pageNum=U,Q=yield Fe?.("v1/recommend/list",{method:"POST",body:re}),!Q?.success)return;D(!1),oe=oe.concat((Ve=(Ne=(De=(ce=Q?.data)===null||ce===void 0?void 0:ce.recList)===null||De===void 0?void 0:De.filter)===null||Ne===void 0?void 0:Ne.call(De,ze=>ze?.product||ze?.video))!==null&&Ve!==void 0?Ve:[]),L(xt(Object.assign(Object.assign({},Q.data),{recList:oe}))),Be(xt(Object.assign(Object.assign({},Q.data),{recList:oe}))),((we=(me=Q?.data)===null||me===void 0?void 0:me.recList)===null||we===void 0?void 0:we.some(ze=>ze?.product||ze?.video))&&(U=U+1,yield be(re))});return yield be(z),!z?.hashTag&&Q&&R({rtc:(Oe=Q?.data)===null||Oe===void 0?void 0:Oe.rtc,requestId:(We=Q?.data)===null||We===void 0?void 0:We.requestId}),Object.assign(Object.assign({},Q.data),{recList:oe})}ne?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(Xe=z?.pageNum)!==null&&Xe!==void 0?Xe:1}));const H=yield Fe?.("v1/recommend/list",{method:"POST",body:z});if(H?.success){if(z?.hashTag||R({rtc:H.data.rtc,requestId:H.data.requestId}),ne?.enablePreview&&!x){let U=[];return U=U.concat((nt=(st=(Ke=(Ye=H?.data)===null||Ye===void 0?void 0:Ye.recList)===null||Ke===void 0?void 0:Ke.filter)===null||st===void 0?void 0:st.call(Ke,Q=>Q?.product||Q?.video))!==null&&nt!==void 0?nt:[]),((_=(rt=H?.data)===null||rt===void 0?void 0:rt.recList)===null||_===void 0?void 0:_.some(Q=>Q?.product||Q?.video))||ie(!0),Object.assign(Object.assign({},H.data),{recList:U})}return H?.data}}),[Fe,i,a,l,g,$e]),pe=o.useCallback(z=>At(void 0,void 0,void 0,function*(){var X,ve,Te,ge;if(C.length<=0)return;const Se=C?.[C?.length-1],Oe=yield ht(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ae?.hashTag},((X=Se?.product)===null||X===void 0?void 0:X.itemId)&&{productFilter:[(ve=Se?.product)===null||ve===void 0?void 0:ve.itemId]}),((Te=Se?.video)===null||Te===void 0?void 0:Te.itemId)&&{contentFilter:[(ge=Se?.video)===null||ge===void 0?void 0:ge.itemId]}),{themeTag:Pe.current}),ne?.enablePreview&&!x&&{pageNum:z}));return L(C.concat(xt(Oe))),Be(_e.concat(xt(Oe))),Oe}),[ht,C,ae,_e]),ye=o.useCallback((z,X)=>{var ve,Te,ge,Se,Oe;let We=!1;const Xe=(Te=(ve=p?.data)===null||ve===void 0?void 0:ve.sxpPageConf)===null||Te===void 0?void 0:Te.globalConfig;if(!((ge=Xe?.session)===null||ge===void 0)&&ge.enable){const Ye=localStorage.getItem("sessionStartTime"),Ke=Ye?JSON.parse(Ye):new Date().getTime();Math.floor((new Date().getTime()-Ke)/1e3/60)>=((Oe=(Se=Xe?.session)===null||Se===void 0?void 0:Se.expires)!==null&&Oe!==void 0?Oe:30)&&(X?.("sessionTimeOut"),Vi(),Ge.current=new Date,We=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&Vi();return We},[p]),Le=o.useCallback(({userInfo:z,eventInfo:X,reportLayId:ve=!0})=>{var Te;if(!n||ne?.enablePreview)return;z||(z={});const ge=Po(),Se=Object.assign(Object.assign(Object.assign(Object.assign({sessionID:ge,rtc:N.rtc,requestId:N.requestId},{playbookType:Vt}),Ue&&ve&&{layoutVariantId:Ue}),X),X?.position&&$e&&{position:Number(X?.position)+1+""}),Oe=Object.entries(z).map(([Xe,Ye])=>({name:Xe,value:Ye})),We=Object.entries(Se).map(([Xe,Ye])=>Ye&&{name:Xe,value:Ye}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",Se),console.log("========= \u7ED3\u675F ========="),Fe?.(`v2/event/report/CLD/${(Te=it?.headers)===null||Te===void 0?void 0:Te["x-app-id"]}/${X?.eventSubject}`,{method:"POST",body:{userInfo:Oe,eventInfo:We},type:"beacon"})},[Fe,N,n,ne?.enablePreview,Ue,ne,Vt,it]),Tt=o.useCallback(({eventName:z,product:X})=>{var ve,Te,ge,Se,Oe,We;if(!n||!h||ne?.enablePreview||!(!((ve=ne?.converApi)===null||ve===void 0)&&ve[z]))return;let Xe=lt.cloneDeep((Te=ne?.converApi)===null||Te===void 0?void 0:Te[z]);const Ye=new URLSearchParams(window.location.search),Ke=Ye?.get("fbclid"),st={event_source_url:(ge=window?.location)===null||ge===void 0?void 0:ge.href,external_id:Ft,client_user_agent:(Oe=(Se=window?.navigator)===null||Se===void 0?void 0:Se.userAgent)!==null&&Oe!==void 0?Oe:"",fbc:Ke?`fb.2.${new Date().getTime()}.${Ke}`:"",fbp:bn("_fbp")?`fb.2.${new Date().getTime()}.${bn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},nt=/\{\{(.*?)\}\}/g,rt=_=>{if(_){if(_ instanceof Array)_?.map(H=>rt(H));else for(const H in _)if(_.hasOwnProperty(H)){const U=_?.[H];if(typeof U=="object")rt(U);else if(typeof U=="string"){const oe=U?.match(nt);oe&&oe.forEach(Q=>{var be;const re=Q.substring(2,Q.length-2);try{let ce=new Function("fix_par","product",`return ${re}`)(st,X);ce?(re?.indexOf("currency")!==-1&&ce?.indexOf("-")!==-1&&typeof ce=="string"&&(ce=(be=ce?.split("-"))===null||be===void 0?void 0:be[0]),_[H]=ce):delete _[H]}catch(ce){delete _[H],console.error("An error occurred:",ce?.message)}})}}}};return rt(Xe),Fe?.(`v2/event/report/FB/${(We=it?.headers)===null||We===void 0?void 0:We["x-app-id"]}/${z}`,{method:"POST",body:Xe,type:"beacon"})},[Fe,n,h,ne?.enablePreview,ne,Ft,it]),Zt=o.useCallback(z=>At(void 0,void 0,void 0,function*(){const X=yield Fe?.("v1/recommend/like",{method:"POST",body:z});return X?.success}),[Fe]),Xt=o.useCallback(z=>At(void 0,void 0,void 0,function*(){const X=yield Fe?.("v1/recommend/unlike",{method:"POST",body:z});return X?.success}),[Fe]),Kt=o.useCallback(z=>At(void 0,void 0,void 0,function*(){const X=yield Fe?.("v1/customform",{method:"POST",body:z});return X?.success}),[Fe]),ti=o.useCallback(z=>At(void 0,void 0,void 0,function*(){var X,ve,Te,ge,Se,Oe,We,Xe;const Ye=!!(!((Te=(ve=(X=z?.data)===null||X===void 0?void 0:X.sxpPageConf)===null||ve===void 0?void 0:ve.globalConfig)===null||Te===void 0)&&Te.isShowTag);if(!(!i||!Ye))try{const Ke=(Oe=(Se=(ge=i?.split("&"))===null||ge===void 0?void 0:ge.filter(nt=>{var rt,_;const H=nt.split("=")[0];return(_=(rt=v?.channels)!==null&&rt!==void 0?rt:[])===null||_===void 0?void 0:_.includes(H)}))===null||Se===void 0?void 0:Se.join("&"))!==null&&Oe!==void 0?Oe:"",st=yield Fe?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Ke)}});V((Xe=(We=st?.data)===null||We===void 0?void 0:We.tags)!==null&&Xe!==void 0?Xe:[])}catch(Ke){console.log("e",Ke)}}),[Fe,i]),ii=o.useCallback((z,X,ve,Te)=>{var ge,Se,Oe,We,Xe,Ye,Ke,st,nt,rt,_,H,U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze,et,ot,pt,Me,ut,Et,Ce,vt,Ut,Ct,li;const qe=ve?.bindCta,ui=((ge=X?.video)===null||ge===void 0?void 0:ge.bindProduct)||((Se=X?.video)===null||Se===void 0?void 0:Se.bindProducts)&&((We=(Oe=X?.video)===null||Oe===void 0?void 0:Oe.bindProducts)===null||We===void 0?void 0:We.length)>0;let Ai="",_i=null;ue?Ai="hashTagPage":!((Xe=X?.video)===null||Xe===void 0)&&Xe.url?(Ai="videoPage",_i="video"):!((Ke=(Ye=X?.video)===null||Ye===void 0?void 0:Ye.imgUrls)===null||Ke===void 0)&&Ke.length&&(Ai="imagePage",_i="image");const pn=(oe=(H=(st=ve?.tags)!==null&&st!==void 0?st:(_=(rt=(nt=X?.video)===null||nt===void 0?void 0:nt.bindProducts)===null||rt===void 0?void 0:rt[0])===null||_===void 0?void 0:_.tags)!==null&&H!==void 0?H:(U=X?.video)===null||U===void 0?void 0:U.tags)!==null&&oe!==void 0?oe:(Q=X?.product)===null||Q===void 0?void 0:Q.tags;Le?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(be=qe?.itemId)!==null&&be!==void 0?be:"",ctaName:(re=qe?.title)!==null&&re!==void 0?re:"",contentTags:pn?JSON.stringify(pn):"",position:Te+"",contentId:(De=(ce=X?.video)===null||ce===void 0?void 0:ce.itemId)!==null&&De!==void 0?De:"",productId:ui?ve?.itemId:"",traceInfo:(Ct=(Ce=(ot=(we=(Ne=qe?.traceInfo)!==null&&Ne!==void 0?Ne:(me=(Ve=X?.video)===null||Ve===void 0?void 0:Ve.bindCta)===null||me===void 0?void 0:me.traceInfo)!==null&&we!==void 0?we:(et=(ze=(at=X?.video)===null||at===void 0?void 0:at.bindProduct)===null||ze===void 0?void 0:ze.bindCta)===null||et===void 0?void 0:et.traceInfo)!==null&&ot!==void 0?ot:(Et=(ut=(Me=(pt=X?.video)===null||pt===void 0?void 0:pt.bindProducts)===null||Me===void 0?void 0:Me[0])===null||ut===void 0?void 0:ut.bindCta)===null||Et===void 0?void 0:Et.traceInfo)!==null&&Ce!==void 0?Ce:(Ut=(vt=X?.product)===null||vt===void 0?void 0:vt.bindCta)===null||Ut===void 0?void 0:Ut.traceInfo)!==null&&Ct!==void 0?Ct:"",fromKName:Ai,fromKPage:(li=location?.href)!==null&&li!==void 0?li:"",contentFormat:_i})})},[Le,ue]),Bt=o.useCallback(()=>{var z,X;const ve=location.search.slice(1),Te=Li.parse(ve.replace(/\+/g,"%2B"));for(const Oe in Te)Te[Oe]=Te[Oe].replace(/%2B/g,"+");const ge=Oe=>{var We;return(We=Te[Oe])!==null&&We!==void 0?We:""},Se=new Date;Ge.current=Se,Le?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:ge("utm_source"),utmMedium:ge("utm_medium"),utmCampaign:ge("utm_campaign"),utmId:ge("utm_id"),utmContent:ge("utm_content"),enterTime:Math.floor(Se/1e3)+"",requestId:null,enterUrl:(X=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&X!==void 0?X:"",clSource:ge("cl_source")},reportLayId:!1})},[Le]);o.useEffect(()=>{kt||Bt()},[kt]),o.useEffect(()=>{if(kt||s)return;D(!0);let z,X;ht().then(ve=>{var Te,ge,Se,Oe,We,Xe,Ye,Ke,st,nt,rt;if(ve){const _=xt(ve);let H,U;if(ve?.layoutVariantId){z=ve?.layoutVariantId,wt(ve?.layoutVariantId);const oe=(ge=(Te=ve?.layoutVariantId)===null||Te===void 0?void 0:Te.split("-"))===null||ge===void 0?void 0:ge[1];oe&&(H=T?.find(Q=>Q?.id===oe),H?(Je(H),document.title=(Se=H?.name)!==null&&Se!==void 0?Se:"home",U=(We=(Oe=H?.data)===null||Oe===void 0?void 0:Oe.sxpPageConf)===null||We===void 0?void 0:We.globalConfig,se(U),k?.(H?.data),!((st=(Ke=(Ye=(Xe=U?.consent)===null||Xe===void 0?void 0:Xe[0])===null||Ye===void 0?void 0:Ye.item)===null||Ke===void 0?void 0:Ke.props)===null||st===void 0)&&st.privacy_necessity&&B(!0)):B(!0))}else B(!0);if($e||(U?.playbook==="organic menu"||!U&&ne?.playbook==="organic menu"?(Dt("organicMenu"),_.unshift("organic menu"),X="organicMenu"):(Dt("paidMedia"),X="paidMedia")),L(_),Be(_),ti(H??jt),$e){const oe=_?.[0],Q=((nt=oe?.video)===null||nt===void 0?void 0:nt.traceInfo)||((rt=oe?.product)===null||rt===void 0?void 0:rt.traceInfo)||"";Le?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:Q,branchfeed:$e},z&&{layoutVariantId:z})}),Le?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:Q,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-Re?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{Le({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),X&&{playbookType:X})}),D(!1)})},[kt,$e]),o.useEffect(()=>{s&&(D(!0),ti(p),ht().then(z=>{if(z){const X=xt(z);ne?.playbook==="organic menu"&&!$e&&X.unshift("organic menu"),L(X),Be(X)}}).finally(()=>{D(!1)}))},[ht,ti,$e]);const Gt=Ot("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return o.createElement(Cn.Provider,{value:{rtcList:C,setRtcList:L,mutateLike:Zt,mutateUnlike:Xt,submitForm:Kt,popupDetailData:J,loadVideos:pe,setPopupDetailData:$,getRecommendVideos:ht,bffEventReport:Le,isPreview:s,loading:F,sxpParameter:c,waterFallData:ae,setWaterFallData:de,ctaEvent:ii,swiperRef:M,openHashtag:ee,setOpenHashtag:ke,cacheRtcList:_e,setCacheRtcList:Be,cacheActiveIndex:Y,setCacheActiveIndex:K,isFromHashtag:ue,setIsFromHashtag:fe,appDomain:r,hashTagSize:u,loadingImage:d??Gt,isOpenHashTag:f,tagList:E,setLoading:D,videoRef:he,setVideoRef:le,bffFbReport:Tt,isAgreePolicy:W,setIsAgreePolicy:Z,curTime:Ge,h5EnterLink:Bt,themeTag:Pe,isShowConsent:kt,selectTag:Ze,setSelectTag:Qe,globalConfig:ne,popupCurTimeRef:q,checkCommodityIndexRef:Ae,isEditor:x,isNoMoreData:G,updateChannel:Lt,channel:$e,eventTimeList:ft,setEventTimeList:St,multiPostTimeRef:Re,refreshFeSession:ye}},kt?o.createElement(Vo,Object.assign({},(P=(w=(S=ne?.consent)===null||S===void 0?void 0:S[0])===null||w===void 0?void 0:w.item)===null||P===void 0?void 0:P.props)):t({rtcList:C,mutateLike:Zt,mutateUnlike:Xt,submitForm:Kt,tagList:E,pageData:jt}))};var In=o.memo(jo);function je(){return o.useContext(Cn)}var kn;(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"})(kn||(kn={}));const Pn=o.createContext({$store:{},options:[],configs:[]}),Fo=({children:t,isSsr:e,enable:i})=>{const[n,a]=o.useState([]),{schema:l}=Jt(),[s,c]=o.useState(l.__STORE__||{}),[r,u]=o.useState([]);o.useEffect(()=>{var h;e||lt.isEqual(r,l?.dataSource)||u((h=l?.dataSource)!==null&&h!==void 0?h:[])},[l?.dataSource,e]);const d=o.useCallback(()=>At(void 0,void 0,void 0,function*(){const{$store:h,idMapName:A}=yield hn("",r);c(h),f(h,A)}),[r]),f=(h,A)=>{const y=[];Object.entries(h).forEach(([b,x])=>{Object.keys(x).forEach(v=>{const g={label:`${A[b]} - ${v}`,value:`{{ ${b}.${v} }}`};y.push(g)})}),a(y)};return o.useEffect(()=>{e||d()},[d,e,l]),i?o.createElement(Pn.Provider,{value:{$store:l.__STORE__||s,options:n,configs:r}},t):t};var Bo=o.memo(Fo);const yi={id:bi(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},Fi={id:"",duration:0,name:"none"},Mn=o.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[yi],redoStack:[],popup:Fi,setPopup:()=>{}}),Dn=o.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:a=!0,utmVal:l},s)=>{const[c,r]=o.useState(null),[u,d]=o.useState(n||{pointData:[yi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[f,h]=o.useState([yi]),[A,y]=o.useState([[yi]]),[b,x]=o.useState([]),[v,g]=o.useState(Fi);typeof window<"u"&&(window.sxpPopup=(O,m)=>{g(Object.assign(Object.assign(Object.assign({},Fi),{id:O}),m))}),typeof window<"u"&&(window.getJointUtmLink=O=>(Oo(),O?.indexOf("?")!==-1?O+(l?"&"+l:""):O+(l?"?"+l:""))),o.useEffect(()=>{y([u.pointData]),x([])},[u.type]);const p=o.useCallback(O=>{const m=lt.cloneDeep(u);m&&(m.dataSource=O,d?.(m))},[u]),[T,k]=o.useState();o.useImperativeHandle(s,()=>({loadSchema(O){O&&(y([O.pointData]),d(O))},exportSchema(){return lt.cloneDeep(u)},getPageInfoData(){return T},initPageInfoData(O){O&&k(O)}}));const I=o.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return o.createElement(Mn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:p,prePiontData:f,setPrePiontData:h,pageInfoData:T,setPageInfoData:O=>k(Object.assign(Object.assign({},T),O)),undoStack:A,redoStack:b,setRedoStack:x,setUndoStack:y,getCurPageConf:I,popup:v,setPopup:g}},o.createElement(Bo,{isSsr:i,enable:a},t))});var zo=Object.freeze({__proto__:null,EditorCore:Dn}),Ho=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Wo=[{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 It(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:a}=je(),l=o.useCallback((r,u,d,f,h,A)=>{var y,b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D,N,R,M,j,W,Z,J,$,ae,de,ee,ke,_e,Be,Y,K,ue,fe;if(n?.findIndex(Re=>Re.target===r?.target)!==-1)return;r&&a?.(Re=>[...Re,{target:r?.target,time:new Date}]);let le="";e&&(!((b=(y=u?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0)&&b.length||!((x=u?.video)===null||x===void 0)&&x.bindProduct)?le="pdpPage":i?le="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?le="videoPage":!((g=u?.video)===null||g===void 0)&&g.imgUrls&&(!((T=(p=u?.video)===null||p===void 0?void 0:p.imgUrls)===null||T===void 0)&&T.length)?le="imagePage":u?.product&&(le="productPage");const Pe=(P=(S=(k=d?.tags)!==null&&k!==void 0?k:(m=(O=(I=u?.video)===null||I===void 0?void 0:I.bindProducts)===null||O===void 0?void 0:O[0])===null||m===void 0?void 0:m.tags)!==null&&S!==void 0?S:(w=u?.video)===null||w===void 0?void 0:w.tags)!==null&&P!==void 0?P:(C=u?.product)===null||C===void 0?void 0:C.tags;let Ge=null;!((L=u?.video)===null||L===void 0)&&L.url?Ge="video":!((E=u?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(V=u?.video)===null||V===void 0?void 0:V.imgUrls)===null||F===void 0)&&F.length)&&(Ge="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(D=d?.itemId)!==null&&D!==void 0?D:"",productName:(N=d?.title)!==null&&N!==void 0?N:"",price:d?.price?d?.price+"":"0",productCollection:(R=d?.collection)!==null&&R!==void 0?R:"",fromKName:le,fromKPage:location?.href,contentTags:Pe?JSON.stringify(Pe):"",position:h+"",contentId:(j=(M=u?.video)===null||M===void 0?void 0:M.itemId)!==null&&j!==void 0?j:"",ctatId:(W=f?.itemId)!==null&&W!==void 0?W:"",traceInfo:(fe=(Y=(_e=(ae=(Z=A??d?.traceInfo)!==null&&Z!==void 0?Z:($=(J=u?.video)===null||J===void 0?void 0:J.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&ae!==void 0?ae:(ke=(ee=(de=u?.video)===null||de===void 0?void 0:de.bindProducts)===null||ee===void 0?void 0:ee[0])===null||ke===void 0?void 0:ke.traceInfo)!==null&&_e!==void 0?_e:(Be=u?.product)===null||Be===void 0?void 0:Be.traceInfo)!==null&&Y!==void 0?Y:(ue=(K=u?.video)===null||K===void 0?void 0:K.bindCta)===null||ue===void 0?void 0:ue.traceInfo)!==null&&fe!==void 0?fe:""},Ge&&{contentFormat:Ge})})},[t,e,i,n]),s=o.useCallback((r,u,d,f,h)=>{var A,y,b,x,v,g,p,T,k,I,O,m,S,w;let P="";e&&(!((y=(A=r?.video)===null||A===void 0?void 0:A.bindProducts)===null||y===void 0)&&y.length||!((b=r?.video)===null||b===void 0)&&b.bindProduct)?P="pdpPage":r?.product&&(P="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:P,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:h+"",contentId:(x=r?.video)===null||x===void 0?void 0:x.itemId,ctatId:d?.itemId,traceInfo:(w=(m=(T=(v=u?.traceInfo)!==null&&v!==void 0?v:(p=(g=r?.video)===null||g===void 0?void 0:g.bindProduct)===null||p===void 0?void 0:p.traceInfo)!==null&&T!==void 0?T:(O=(I=(k=r?.video)===null||k===void 0?void 0:k.bindProducts)===null||I===void 0?void 0:I[0])===null||O===void 0?void 0:O.traceInfo)!==null&&m!==void 0?m:(S=r?.product)===null||S===void 0?void 0:S.traceInfo)!==null&&w!==void 0?w:"",timeOnSite:Math.floor((new Date-f)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=o.useCallback((r,u,d,f)=>{u&&u===gi&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:f?`['${f}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:c}}const Xo=({layout:t,columns:e,onChange:i})=>o.createElement(o.Fragment,null,e?.map((n,a)=>o.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&o.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&o.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var Go=o.memo(Xo);const Uo=t=>{var e,i,{columns:n,style:a,title:l,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:f,isPopup:h,onClick:A,onClose:y,submitButtonStyle:b}=t,x=tt(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=je(),{jumpToWeb:p}=It(),[T,k]=o.useState(!1),[I,O]=o.useState({}),[m,S]=o.useState(0),w=o.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"}],[]),P=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=o.useMemo(()=>lt.cloneDeep(n)||w,[n,w]),L=o.useCallback(V=>{const{name:F,value:D}=V.target;O(Object.assign(Object.assign({},I),{[F]:D}))},[I]),E=lt.debounce(V=>At(void 0,void 0,void 0,function*(){var F,D,N,R,M;const j=I;if(!j)return;const W=(D=(F=Object.keys(j))===null||F===void 0?void 0:F.map(J=>{var $;return{name:J,value:($=j[J])!==null&&$!==void 0?$:""}}))===null||D===void 0?void 0:D.filter(J=>J?.value);if(!W||!W?.length)return;k(!0);const Z=yield v?.({attributes:W});if(k(!1),Z){if(f){const J=g,$=(N=J?.video)===null||N===void 0?void 0:N.bindProduct,ae=(M=(R=J?.video)===null||R===void 0?void 0:R.bindProduct)===null||M===void 0?void 0:M.bindCta,de=g?.index;p(V,J,$,ae,de)}h||y?.(),A?.()}}),1e3);return o.useEffect(()=>{const V=()=>{var F,D;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((D=document?.body)===null||D===void 0?void 0:D.clientHeight))<P?S(50):S(0)};return window.addEventListener("resize",V),()=>{window.removeEventListener("resize",V)}},[]),o.createElement("div",{className:"pb-appoint-form"},o.createElement("div",{className:`pb-appoint-form-title ${Ie.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Ee(l,s)}}),o.createElement("div",Object.assign({className:Ie.css(Object.assign(Object.assign({},a),{marginTop:m}))},x),o.createElement("div",{className:"pb-appoint-form-container"},o.createElement(Go,{columns:C,layout:d,onChange:L}))),o.createElement("div",{className:"pb-appoint-form-btn-wrapper"},o.createElement("button",{"aria-label":u,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},b),dangerouslySetInnerHTML:{__html:Ee(T?"loading...":u,b)}})))};var Yo=o.memo(Uo);function ct(t,e){return t.extend=e,t}const qo=ct(Yo,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Wo,bindableProps:[],interactionRender:Ho},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var Zo=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function _n(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Bi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:_n(e[i])&&_n(t[i])&&Object.keys(e[i]).length>0&&Bi(t[i],e[i])})}const Ln={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 Pt(){const t=typeof document<"u"?document:{};return Bi(t,Ln),t}const Ko={document:Ln,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 yt(){const t=typeof window<"u"?window:{};return Bi(t,Ko),t}function Qt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Jo(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ai(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Rt(){return Date.now()}function Qo(t){const e=yt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function $o(t,e){e===void 0&&(e="x");const i=yt();let n,a,l;const s=Qo(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,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0}function wi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function el(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function _t(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!el(n)){const a=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const c=a[l],r=Object.getOwnPropertyDescriptor(n,c);r!==void 0&&r.enumerable&&(wi(t[c])&&wi(n[c])?n[c].__swiper__?t[c]=n[c]:_t(t[c],n[c]):!wi(t[c])&&wi(n[c])?(t[c]={},n[c].__swiper__?t[c]=n[c]:_t(t[c],n[c])):t[c]=n[c])}}}return t}function Si(t,e,i){t.style.setProperty(e,i)}function On(t){let{swiper:e,targetPosition:i,side:n}=t;const a=yt(),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=(h,A)=>u==="next"&&h>=A||u==="prev"&&h<=A,f=()=>{c=new Date().getTime(),s===null&&(s=c);const h=Math.max(Math.min((c-s)/r,1),0),A=.5-Math.cos(h*Math.PI)/2;let y=l+A*(i-l);if(d(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),d(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(f)};f()}function Ht(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function xi(t){try{console.warn(t);return}catch{}}function si(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Qt(e)),i}function Rn(t){const e=yt(),i=Pt(),n=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:n.top+c-l,left:n.left+r-s}}function tl(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function il(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function $t(t,e){return yt().getComputedStyle(t,null).getPropertyValue(e)}function vi(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ti(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function zi(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Hi(t,e,i){const n=yt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function He(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Wi(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const l=Pt(),s=yt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:f}=e;let h=d;h.originalEvent&&(h=h.originalEvent);const A=h.keyCode||h.charCode,y=e.params.keyboard.pageUpDown,b=y&&A===33,x=y&&A===34,v=A===37,g=A===39,p=A===38,T=A===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&T||x)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&p||b))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||x||v||g||p||T)){let k=!1;if(Ti(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ti(e.el,`.${e.params.slideActiveClass}`).length===0)return;const I=e.el,O=I.clientWidth,m=I.clientHeight,S=s.innerWidth,w=s.innerHeight,P=Rn(I);f&&(P.left-=I.scrollLeft);const C=[[P.left,P.top],[P.left+O,P.top],[P.left,P.top+m],[P.left+O,P.top+m]];for(let L=0;L<C.length;L+=1){const E=C[L];if(E[0]>=0&&E[0]<=S&&E[1]>=0&&E[1]<=w){if(E[0]===0&&E[1]===0)continue;k=!0}}if(!k)return}e.isHorizontal()?((b||x||v||g)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((x||g)&&!f||(b||v)&&f)&&e.slideNext(),((b||v)&&!f||(x||g)&&f)&&e.slidePrev()):((b||x||p||T)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(x||T)&&e.slideNext(),(b||p)&&e.slidePrev()),a("keyPress",A)}}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)}n("init",()=>{e.params.keyboard.enabled&&r()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Ei(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const l=yt();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=Rt(),r;const u=[];function d(p){let O=0,m=0,S=0,w=0;return"detail"in p&&(m=p.detail),"wheelDelta"in p&&(m=-p.wheelDelta/120),"wheelDeltaY"in p&&(m=-p.wheelDeltaY/120),"wheelDeltaX"in p&&(O=-p.wheelDeltaX/120),"axis"in p&&p.axis===p.HORIZONTAL_AXIS&&(O=m,m=0),S=O*10,w=m*10,"deltaY"in p&&(w=p.deltaY),"deltaX"in p&&(S=p.deltaX),p.shiftKey&&!S&&(S=w,w=0),(S||w)&&p.deltaMode&&(p.deltaMode===1?(S*=40,w*=40):(S*=800,w*=800)),S&&!O&&(O=S<1?-1:1),w&&!m&&(m=w<1?-1:1),{spinX:O,spinY:m,pixelX:S,pixelY:w}}function f(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function A(p){return e.params.mousewheel.thresholdDelta&&p.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Rt()-c<e.params.mousewheel.thresholdTime?!1:p.delta>=6&&Rt()-c<60?!0:(p.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",p.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",p.raw)),c=new l.Date().getTime(),!1)}function y(p){const T=e.params.mousewheel;if(p.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function b(p){let T=p,k=!0;if(!e.enabled||p.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const I=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let O=e.el;e.params.mousewheel.eventsTarget!=="container"&&(O=document.querySelector(e.params.mousewheel.eventsTarget));const m=O&&O.contains(T.target);if(!e.mouseEntered&&!m&&!I.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let S=0;const w=e.rtlTranslate?-1:1,P=d(T);if(I.forceToAxis)if(e.isHorizontal())if(Math.abs(P.pixelX)>Math.abs(P.pixelY))S=-P.pixelX*w;else return!0;else if(Math.abs(P.pixelY)>Math.abs(P.pixelX))S=-P.pixelY;else return!0;else S=Math.abs(P.pixelX)>Math.abs(P.pixelY)?-P.pixelX*w:-P.pixelY;if(S===0)return!0;I.invert&&(S=-S);let C=e.getTranslate()+S*I.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),k=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),k&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const L={time:Rt(),delta:Math.abs(S),direction:Math.sign(S),raw:p};u.length>=2&&u.shift();const E=u.length?u[u.length-1]:void 0;if(u.push(L),E?(L.direction!==E.direction||L.delta>E.delta||L.time>E.time+150)&&A(L):A(L),y(L))return!0}else{const L={time:Rt(),delta:Math.abs(S),direction:Math.sign(S)},E=r&&L.time<r.time+500&&L.delta<=r.delta&&L.direction===r.direction;if(!E){r=void 0;let V=e.getTranslate()+S*I.sensitivity;const F=e.isBeginning,D=e.isEnd;if(V>=e.minTranslate()&&(V=e.minTranslate()),V<=e.maxTranslate()&&(V=e.maxTranslate()),e.setTransition(0),e.setTranslate(V),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!D&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:L.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const N=u.length?u[u.length-1]:void 0,R=u[0];if(u.push(L),N&&(L.delta>N.delta||L.direction!==N.direction))u.splice(0);else if(u.length>=15&&L.time-R.time<500&&R.delta-L.delta>=1&&L.delta<=6){const M=S>0?.8:.2;r=L,u.splice(0),s=ai(()=>{e.slideToClosest(e.params.speed,!0,void 0,M)},0)}s||(s=ai(()=>{r=L,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||a("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),I.releaseOnEdges&&(V===e.minTranslate()||V===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function x(p){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[p]("mouseenter",f),T[p]("mouseleave",h),T[p]("wheel",b)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function Xi(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(a=>{if(!i[a]&&i.auto===!0){let l=Ht(t.el,`.${n[a]}`)[0];l||(l=si("div",n[a]),l.className=n[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function Gi(t){let{swiper:e,extendParams:i,on:n,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(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b&&b.length>1&&e.el.querySelectorAll(y).length===1?b=e.el.querySelector(y):b&&b.length===1&&(b=b[0])),y&&!b?y:b)}function s(y,b){const x=e.params.navigation;y=He(y),y.forEach(v=>{v&&(v.classList[b?"add":"remove"](...x.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=b),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](x.lockClass))})}function c(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){s(b,!1),s(y,!1);return}s(b,e.isBeginning&&!e.params.rewind),s(y,e.isEnd&&!e.params.rewind)}function r(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const y=e.params.navigation;if(e.params.navigation=Xi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=l(y.nextEl),x=l(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:x}),b=He(b),x=He(x);const v=(g,p)=>{g&&g.addEventListener("click",p==="next"?u:r),!e.enabled&&g&&g.classList.add(...y.lockClass.split(" "))};b.forEach(g=>v(g,"next")),x.forEach(g=>v(g,"prev"))}function f(){let{nextEl:y,prevEl:b}=e.navigation;y=He(y),b=He(b);const x=(v,g)=>{v.removeEventListener("click",g==="next"?u:r),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(v=>x(v,"next")),b.forEach(v=>x(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?A():(d(),c())}),n("toEdge fromEdge lock unlock",()=>{c()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=He(y),b=He(b),e.enabled){c();return}[...y,...b].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:x,prevEl:v}=e.navigation;x=He(x),v=He(v);const g=b.target;let p=v.includes(g)||x.includes(g);if(e.isElement&&!p){const T=b.path||b.composedPath&&b.composedPath();T&&(p=T.find(k=>x.includes(k)||v.includes(k)))}if(e.params.navigation.hideOnClick&&!p){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let T;x.length?T=x[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(T=v[0].classList.contains(e.params.navigation.hiddenClass)),a(T===!0?"navigationShow":"navigationHide"),[...x,...v].filter(k=>!!k).forEach(k=>k.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},A=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:h,disable:A,update:c,init:d,destroy:f})}function Yt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ci(t){let{swiper:e,extendParams:i,on:n,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:p}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${p}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${p}-${g}-${g}`)))}function d(v){const g=v.target.closest(Yt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const p=vi(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===p)return;e.slideToLoop(p)}else e.slideTo(p)}function f(){const v=e.rtl,g=e.params.pagination;if(r())return;let p=e.pagination.el;p=He(p);let T,k;const I=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(I/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(k=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,k=e.previousSnapIndex):(k=e.previousIndex||0,T=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const m=e.pagination.bullets;let S,w,P;if(g.dynamicBullets&&(s=Hi(m[0],e.isHorizontal()?"width":"height",!0),p.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${s*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&k!==void 0&&(c+=T-(k||0),c>g.dynamicMainBullets-1?c=g.dynamicMainBullets-1:c<0&&(c=0)),S=Math.max(T-c,0),w=S+(Math.min(m.length,g.dynamicMainBullets)-1),P=(w+S)/2),m.forEach(C=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();C.classList.remove(...L)}),p.length>1)m.forEach(C=>{const L=vi(C);L===T?C.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),g.dynamicBullets&&(L>=S&&L<=w&&C.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),L===S&&u(C,"prev"),L===w&&u(C,"next"))});else{const C=m[T];if(C&&C.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&m.forEach((L,E)=>{L.setAttribute("part",E===T?"bullet-active":"bullet")}),g.dynamicBullets){const L=m[S],E=m[w];for(let V=S;V<=w;V+=1)m[V]&&m[V].classList.add(...`${g.bulletActiveClass}-main`.split(" "));u(L,"prev"),u(E,"next")}}if(g.dynamicBullets){const C=Math.min(m.length,g.dynamicMainBullets+4),L=(s*C-s)/2-P*s,E=v?"right":"left";m.forEach(V=>{V.style[e.isHorizontal()?E:"top"]=`${L}px`})}}p.forEach((m,S)=>{if(g.type==="fraction"&&(m.querySelectorAll(Yt(g.currentClass)).forEach(w=>{w.textContent=g.formatFractionCurrent(T+1)}),m.querySelectorAll(Yt(g.totalClass)).forEach(w=>{w.textContent=g.formatFractionTotal(O)})),g.type==="progressbar"){let w;g.progressbarOpposite?w=e.isHorizontal()?"vertical":"horizontal":w=e.isHorizontal()?"horizontal":"vertical";const P=(T+1)/O;let C=1,L=1;w==="horizontal"?C=P:L=P,m.querySelectorAll(Yt(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${L})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(m.innerHTML=g.renderCustom(e,T+1,O),S===0&&a("paginationRender",m)):(S===0&&a("paginationRender",m),a("paginationUpdate",m)),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](g.lockClass)})}function h(){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 p=e.pagination.el;p=He(p);let T="";if(v.type==="bullets"){let k=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&k>g&&(k=g);for(let I=0;I<k;I+=1)v.renderBullet?T+=v.renderBullet.call(e,I,v.bulletClass):T+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?T=v.renderFraction.call(e,v.currentClass,v.totalClass):T=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?T=v.renderProgressbar.call(e,v.progressbarFillClass):T=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],p.forEach(k=>{v.type!=="custom"&&(k.innerHTML=T||""),v.type==="bullets"&&e.pagination.bullets.push(...k.querySelectorAll(Yt(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",p[0])}function A(){e.params.pagination=Xi(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(p=>Ti(p,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=He(g),g.forEach(p=>{v.type==="bullets"&&v.clickable&&p.classList.add(...(v.clickableClass||"").split(" ")),p.classList.add(v.modifierClass+v.type),p.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(p.classList.add(`${v.modifierClass}${v.type}-dynamic`),c=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&p.classList.add(v.progressbarOppositeClass),v.clickable&&p.addEventListener("click",d),e.enabled||p.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(r())return;let g=e.pagination.el;g&&(g=He(g),g.forEach(p=>{p.classList.remove(v.hiddenClass),p.classList.remove(v.modifierClass+v.type),p.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(p.classList.remove(...(v.clickableClass||"").split(" ")),p.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(p=>p.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=He(g),g.forEach(p=>{p.classList.remove(v.horizontalClass,v.verticalClass),p.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?x():(A(),h(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{h(),f()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=He(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(v,g)=>{const p=g.target,T=He(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!p.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&p===e.navigation.nextEl||e.navigation.prevEl&&p===e.navigation.prevEl))return;const k=T[0].classList.contains(e.params.pagination.hiddenClass);a(k===!0?"paginationShow":"paginationHide"),T.forEach(I=>I.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=He(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),A(),h(),f()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=He(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:x,render:h,update:f,init:A,destroy:y})}function nl(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const l=Pt();let s=!1,c=null,r=null,u,d,f,h;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 A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:L}=e,{dragEl:E,el:V}=C,F=e.params.scrollbar,D=e.params.loop?e.progressLoop:e.progress;let N=d,R=(f-d)*D;L?(R=-R,R>0?(N=d-R,R=0):-R+d>f&&(N=f+R)):R<0?(N=d+R,R=0):R+d>f&&(N=f-R),e.isHorizontal()?(E.style.transform=`translate3d(${R}px, 0, 0)`,E.style.width=`${N}px`):(E.style.transform=`translate3d(0px, ${R}px, 0)`,E.style.height=`${N}px`),F.hide&&(clearTimeout(c),V.style.opacity=1,c=setTimeout(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3))}function y(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:L,el:E}=C;L.style.width="",L.style.height="",f=e.isHorizontal()?E.offsetWidth:E.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=f*h:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?L.style.width=`${d}px`:L.style.height=`${d}px`,h>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(C){return e.isHorizontal()?C.clientX:C.clientY}function v(C){const{scrollbar:L,rtlTranslate:E}=e,{el:V}=L;let F;F=(x(C)-Rn(V)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(f-d),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const D=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(D),e.setTranslate(D),e.updateActiveIndex(),e.updateSlidesClasses()}function g(C){const L=e.params.scrollbar,{scrollbar:E,wrapperEl:V}=e,{el:F,dragEl:D}=E;s=!0,u=C.target===D?x(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),V.style.transitionDuration="100ms",D.style.transitionDuration="100ms",v(C),clearTimeout(r),F.style.transitionDuration="0ms",L.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",C)}function p(C){const{scrollbar:L,wrapperEl:E}=e,{el:V,dragEl:F}=L;s&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),E.style.transitionDuration="0ms",V.style.transitionDuration="0ms",F.style.transitionDuration="0ms",a("scrollbarDragMove",C))}function T(C){const L=e.params.scrollbar,{scrollbar:E,wrapperEl:V}=e,{el:F}=E;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",V.style.transitionDuration=""),L.hide&&(clearTimeout(r),r=ai(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",C),L.snapOnRelease&&e.slideToClosest())}function k(C){const{scrollbar:L,params:E}=e,V=L.el;if(!V)return;const F=V,D=E.passiveListeners?{passive:!1,capture:!1}:!1,N=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const R=C==="on"?"addEventListener":"removeEventListener";F[R]("pointerdown",g,D),l[R]("pointermove",p,D),l[R]("pointerup",T,N)}function I(){!e.params.scrollbar.el||!e.scrollbar.el||k("on")}function O(){!e.params.scrollbar.el||!e.scrollbar.el||k("off")}function m(){const{scrollbar:C,el:L}=e;e.params.scrollbar=Xi(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let V;if(typeof E.el=="string"&&e.isElement&&(V=e.el.querySelector(E.el)),!V&&typeof E.el=="string"){if(V=l.querySelectorAll(E.el),!V.length)return}else V||(V=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&V.length>1&&L.querySelectorAll(E.el).length===1&&(V=L.querySelector(E.el)),V.length>0&&(V=V[0]),V.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;V&&(F=V.querySelector(Yt(e.params.scrollbar.dragClass)),F||(F=si("div",e.params.scrollbar.dragClass),V.append(F))),Object.assign(C,{el:V,dragEl:F}),E.draggable&&I(),V&&V.classList[e.enabled?"remove":"add"](...Qt(e.params.scrollbar.lockClass))}function S(){const C=e.params.scrollbar,L=e.scrollbar.el;L&&L.classList.remove(...Qt(e.isHorizontal()?C.horizontalClass:C.verticalClass)),O()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:L}=e.scrollbar;L=He(L),L.forEach(E=>{E.classList.remove(C.horizontalClass,C.verticalClass),E.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?P():(m(),b(),A())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{A()}),n("setTransition",(C,L)=>{y(L)}),n("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Qt(e.params.scrollbar.lockClass))}),n("destroy",()=>{S()});const w=()=>{e.el.classList.remove(...Qt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Qt(e.params.scrollbar.scrollbarDisabledClass)),m(),b(),A()},P=()=>{e.el.classList.add(...Qt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Qt(e.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(e.scrollbar,{enable:w,disable:P,updateSize:b,setTranslate:A,init:m,destroy:S})}function Ui(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null,l,s,c=new Date().getTime();function r(D){const N=a;N.length!==0&&(N.innerHTML="",N.innerHTML=D)}function u(D){D===void 0&&(D=16);const N=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(D).replace(/x/g,N)}function d(D){D=He(D),D.forEach(N=>{N.setAttribute("tabIndex","0")})}function f(D){D=He(D),D.forEach(N=>{N.setAttribute("tabIndex","-1")})}function h(D,N){D=He(D),D.forEach(R=>{R.setAttribute("role",N)})}function A(D,N){D=He(D),D.forEach(R=>{R.setAttribute("aria-roledescription",N)})}function y(D,N){D=He(D),D.forEach(R=>{R.setAttribute("aria-controls",N)})}function b(D,N){D=He(D),D.forEach(R=>{R.setAttribute("aria-label",N)})}function x(D,N){D=He(D),D.forEach(R=>{R.setAttribute("id",N)})}function v(D,N){D=He(D),D.forEach(R=>{R.setAttribute("aria-live",N)})}function g(D){D=He(D),D.forEach(N=>{N.setAttribute("aria-disabled",!0)})}function p(D){D=He(D),D.forEach(N=>{N.setAttribute("aria-disabled",!1)})}function T(D){if(D.keyCode!==13&&D.keyCode!==32)return;const N=e.params.a11y,R=D.target;if(!(e.pagination&&e.pagination.el&&(R===e.pagination.el||e.pagination.el.contains(D.target))&&!D.target.matches(Yt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const M=He(e.navigation.prevEl);He(e.navigation.nextEl).includes(R)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(N.lastSlideMessage):r(N.nextSlideMessage)),M.includes(R)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(N.firstSlideMessage):r(N.prevSlideMessage))}e.pagination&&R.matches(Yt(e.params.pagination.bulletClass))&&R.click()}}function k(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:D,prevEl:N}=e.navigation;N&&(e.isBeginning?(g(N),f(N)):(p(N),d(N))),D&&(e.isEnd?(g(D),f(D)):(p(D),d(D)))}function I(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function O(){return I()&&e.params.pagination.clickable}function m(){const D=e.params.a11y;I()&&e.pagination.bullets.forEach(N=>{e.params.pagination.clickable&&(d(N),e.params.pagination.renderBullet||(h(N,"button"),b(N,D.paginationBulletMessage.replace(/\{\{index\}\}/,vi(N)+1)))),N.matches(Yt(e.params.pagination.bulletActiveClass))?N.setAttribute("aria-current","true"):N.removeAttribute("aria-current")})}const S=(D,N,R)=>{d(D),D.tagName!=="BUTTON"&&(h(D,"button"),D.addEventListener("keydown",T)),b(D,R),y(D,N)},w=D=>{s&&s!==D.target&&!s.contains(D.target)&&(l=!0),e.a11y.clicked=!0},P=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=D=>{c=new Date().getTime()},L=D=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const N=D.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!N||!e.slides.includes(N))return;s=N;const R=e.slides.indexOf(N)===e.activeIndex,M=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(N);R||M||D.sourceCapabilities&&D.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(N.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(N),0),l=!1)}))},E=()=>{const D=e.params.a11y;D.itemRoleDescriptionMessage&&A(e.slides,D.itemRoleDescriptionMessage),D.slideRole&&h(e.slides,D.slideRole);const N=e.slides.length;D.slideLabelMessage&&e.slides.forEach((R,M)=>{const j=e.params.loop?parseInt(R.getAttribute("data-swiper-slide-index"),10):M,W=D.slideLabelMessage.replace(/\{\{index\}\}/,j+1).replace(/\{\{slidesLength\}\}/,N);b(R,W)})},V=()=>{const D=e.params.a11y;e.el.append(a);const N=e.el;D.containerRoleDescriptionMessage&&A(N,D.containerRoleDescriptionMessage),D.containerMessage&&b(N,D.containerMessage);const R=e.wrapperEl,M=D.id||R.getAttribute("id")||`swiper-wrapper-${u(16)}`,j=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(R,M),v(R,j),E();let{nextEl:W,prevEl:Z}=e.navigation?e.navigation:{};W=He(W),Z=He(Z),W&&W.forEach($=>S($,M,D.nextSlideMessage)),Z&&Z.forEach($=>S($,M,D.prevSlideMessage)),O()&&He(e.pagination.el).forEach(ae=>{ae.addEventListener("keydown",T)}),Pt().addEventListener("visibilitychange",C),e.el.addEventListener("focus",L,!0),e.el.addEventListener("focus",L,!0),e.el.addEventListener("pointerdown",w,!0),e.el.addEventListener("pointerup",P,!0)};function F(){a&&a.remove();let{nextEl:D,prevEl:N}=e.navigation?e.navigation:{};D=He(D),N=He(N),D&&D.forEach(M=>M.removeEventListener("keydown",T)),N&&N.forEach(M=>M.removeEventListener("keydown",T)),O()&&He(e.pagination.el).forEach(j=>{j.removeEventListener("keydown",T)}),Pt().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",L,!0),e.el.removeEventListener("pointerdown",w,!0),e.el.removeEventListener("pointerup",P,!0))}n("beforeInit",()=>{a=si("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&V()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&k()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&m()}),n("destroy",()=>{e.params.a11y.enabled&&F()})}function Ii(t){let{swiper:e,extendParams:i,on:n,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,f=new Date().getTime(),h,A,y,b,x,v,g;function p(N){!e||e.destroyed||!e.wrapperEl||N.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",p),!(g||N.detail&&N.detail.bySwiperTouchMove)&&w())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(u=d,h=!1);const N=e.autoplay.paused?d:f+u-new Date().getTime();e.autoplay.timeLeft=N,a("autoplayTimeLeft",N,N/r),c=requestAnimationFrame(()=>{T()})},k=()=>{let N;return e.virtual&&e.params.virtual.enabled?N=e.slides.filter(M=>M.classList.contains("swiper-slide-active"))[0]:N=e.slides[e.activeIndex],N?parseInt(N.getAttribute("data-swiper-autoplay"),10):void 0},I=N=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),T();let R=typeof N>"u"?e.params.autoplay.delay:N;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const M=k();!Number.isNaN(M)&&M>0&&typeof N>"u"&&(R=M,r=M,u=M),d=R;const j=e.params.speed,W=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(j,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,j,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(j,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,j,!0,!0),a("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{I()})))};return R>0?(clearTimeout(s),s=setTimeout(()=>{W()},R)):requestAnimationFrame(()=>{W()}),R},O=()=>{f=new Date().getTime(),e.autoplay.running=!0,I(),a("autoplayStart")},m=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},S=(N,R)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),N||(v=!0);const M=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",p):w()};if(e.autoplay.paused=!0,R){x&&(d=e.params.autoplay.delay),x=!1,M();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),M())},w=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),v?(v=!1,I(d)):I(),e.autoplay.paused=!1,a("autoplayResume"))},P=()=>{if(e.destroyed||!e.autoplay.running)return;const N=Pt();N.visibilityState==="hidden"&&(v=!0,S(!0)),N.visibilityState==="visible"&&w()},C=N=>{N.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&S(!0))},L=N=>{N.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&w())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",L))},V=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",L))},F=()=>{Pt().addEventListener("visibilitychange",P)},D=()=>{Pt().removeEventListener("visibilitychange",P)};n("init",()=>{e.params.autoplay.enabled&&(E(),F(),O())}),n("destroy",()=>{V(),D(),e.autoplay.running&&m()}),n("_freeModeStaticRelease",()=>{(y||v)&&w()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?m():S(!0,!0)}),n("beforeTransitionStart",(N,R,M)=>{e.destroyed||!e.autoplay.running||(M||!e.params.autoplay.disableOnInteraction?S(!0,!0):m())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){m();return}A=!0,y=!1,v=!1,b=setTimeout(()=>{v=!0,y=!0,S(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!A)){if(clearTimeout(b),clearTimeout(s),e.params.autoplay.disableOnInteraction){y=!1,A=!1;return}y&&e.params.cssMode&&w(),y=!1,A=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:O,stop:m,pause:S,resume:w})}function ol(t){let{swiper:e,extendParams:i,emit:n,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:Rt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:f,rtlTranslate:h,snapGrid:A,touchEventsData:y}=e,x=Rt()-y.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<A.length?e.slideTo(A.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(y.velocities.length>1){const m=y.velocities.pop(),S=y.velocities.pop(),w=m.position-S.position,P=m.time-S.time;e.velocity=w/P,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(P>150||Rt()-m.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,y.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let p=e.translate+g;h&&(p=-p);let T=!1,k;const I=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let O;if(p<e.maxTranslate())d.freeMode.momentumBounce?(p+e.maxTranslate()<-I&&(p=e.maxTranslate()-I),k=e.maxTranslate(),T=!0,y.allowMomentumBounce=!0):p=e.maxTranslate(),d.loop&&d.centeredSlides&&(O=!0);else if(p>e.minTranslate())d.freeMode.momentumBounce?(p-e.minTranslate()>I&&(p=e.minTranslate()+I),k=e.minTranslate(),T=!0,y.allowMomentumBounce=!0):p=e.minTranslate(),d.loop&&d.centeredSlides&&(O=!0);else if(d.freeMode.sticky){let m;for(let S=0;S<A.length;S+=1)if(A[S]>-p){m=S;break}Math.abs(A[m]-p)<Math.abs(A[m-1]-p)||e.swipeDirection==="next"?p=A[m]:p=A[m-1],p=-p}if(O&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?v=Math.abs((-p-e.translate)/e.velocity):v=Math.abs((p-e.translate)/e.velocity),d.freeMode.sticky){const m=Math.abs((h?-p:p)-e.translate),S=e.slidesSizesGrid[e.activeIndex];m<S?v=d.speed:m<2*S?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&T?(e.updateProgress(k),e.setTransition(v),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating=!0,zi(f,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(k),zi(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(p),e.setTransition(v),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,zi(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(p),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&n("_freeModeNoMomentumRelease");(!d.freeMode.momentum||x>=d.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:s,onTouchEnd:c}})}let Yi;function ll(){const t=yt(),e=Pt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Nn(){return Yi||(Yi=ll()),Yi}let qi;function al(t){let{userAgent:e}=t===void 0?{}:t;const i=Nn(),n=yt(),a=n.navigator.platform,l=e||n.navigator.userAgent,s={ios:!1,android:!1},c=n.screen.width,r=n.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let d=l.match(/(iPad).*OS\s([\d_]+)/);const f=l.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),A=a==="Win32";let y=a==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&i.touch&&b.indexOf(`${c}x${r}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),u&&!A&&(s.os="android",s.android=!0),(d||h||f)&&(s.os="ios",s.ios=!0),s}function Vn(t){return t===void 0&&(t={}),qi||(qi=al(t)),qi}let Zi;function sl(){const t=yt(),e=Vn();let i=!1;function n(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(n()){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=n(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function rl(){return Zi||(Zi=sl()),Zi}function dl(t){let{swiper:e,on:i,emit:n}=t;const a=yt();let l=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(f=>{s=a.requestAnimationFrame(()=>{const{width:h,height:A}=e;let y=h,b=A;f.forEach(x=>{let{contentBoxSize:v,contentRect:g,target:p}=x;p&&p!==e.el||(y=g?g.width:(v[0]||v).inlineSize,b=g?g.height:(v[0]||v).blockSize)}),(y!==h||b!==A)&&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||n("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:n,emit:a}=t;const l=[],s=yt(),c=function(d,f){f===void 0&&(f={});const h=s.MutationObserver||s.WebkitMutationObserver,A=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){a("observerUpdate",y[0]);return}const b=function(){a("observerUpdate",y[0])};s.requestAnimationFrame?s.requestAnimationFrame(b):s.setTimeout(b,0)});A.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),l.push(A)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Ti(e.hostEl);for(let f=0;f<d.length;f+=1)c(d[f])}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}),n("init",r),n("destroy",u)}var ul={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][a](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function a(){n.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(n,s)}return a.__emitterProxy=e,n.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((a,l)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var 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),n=t):(e=l[0].events,i=l[0].data,n=l[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(n,i)})}),t}};function vl(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt($t(n,"padding-left")||0,10)-parseInt($t(n,"padding-right")||0,10),i=i-parseInt($t(n,"padding-top")||0,10)-parseInt($t(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function pl(){const t=this;function e(w,P){return parseFloat(w.getPropertyValue(t.getDirectionLabel(P))||0)}const i=t.params,{wrapperEl:n,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=Ht(a,`.${t.params.slideClass}, swiper-slide`),f=r?t.virtual.slides.length:d.length;let h=[];const A=[],y=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let p=i.spaceBetween,T=-b,k=0,I=0;if(typeof l>"u")return;typeof p=="string"&&p.indexOf("%")>=0?p=parseFloat(p.replace("%",""))/100*l:typeof p=="string"&&(p=parseFloat(p)),t.virtualSize=-p,d.forEach(w=>{s?w.style.marginLeft="":w.style.marginRight="",w.style.marginBottom="",w.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Si(n,"--swiper-centered-offset-before",""),Si(n,"--swiper-centered-offset-after",""));const O=i.grid&&i.grid.rows>1&&t.grid;O?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let m;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(w=>typeof i.breakpoints[w].slidesPerView<"u").length>0;for(let w=0;w<f;w+=1){m=0;let P;if(d[w]&&(P=d[w]),O&&t.grid.updateSlide(w,P,d),!(d[w]&&$t(P,"display")==="none")){if(i.slidesPerView==="auto"){S&&(d[w].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(P),L=P.style.transform,E=P.style.webkitTransform;if(L&&(P.style.transform="none"),E&&(P.style.webkitTransform="none"),i.roundLengths)m=t.isHorizontal()?Hi(P,"width",!0):Hi(P,"height",!0);else{const V=e(C,"width"),F=e(C,"padding-left"),D=e(C,"padding-right"),N=e(C,"margin-left"),R=e(C,"margin-right"),M=C.getPropertyValue("box-sizing");if(M&&M==="border-box")m=V+N+R;else{const{clientWidth:j,offsetWidth:W}=P;m=V+F+D+N+R+(W-j)}}L&&(P.style.transform=L),E&&(P.style.webkitTransform=E),i.roundLengths&&(m=Math.floor(m))}else m=(l-(i.slidesPerView-1)*p)/i.slidesPerView,i.roundLengths&&(m=Math.floor(m)),d[w]&&(d[w].style[t.getDirectionLabel("width")]=`${m}px`);d[w]&&(d[w].swiperSlideSize=m),y.push(m),i.centeredSlides?(T=T+m/2+k/2+p,k===0&&w!==0&&(T=T-l/2-p),w===0&&(T=T-l/2-p),Math.abs(T)<1/1e3&&(T=0),i.roundLengths&&(T=Math.floor(T)),I%i.slidesPerGroup===0&&h.push(T),A.push(T)):(i.roundLengths&&(T=Math.floor(T)),(I-Math.min(t.params.slidesPerGroupSkip,I))%t.params.slidesPerGroup===0&&h.push(T),A.push(T),T=T+m+p),t.virtualSize+=m+p,k=m,I+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+x,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+p}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+p}px`),O&&t.grid.updateWrapperSize(m,h),!i.centeredSlides){const w=[];for(let P=0;P<h.length;P+=1){let C=h[P];i.roundLengths&&(C=Math.floor(C)),h[P]<=t.virtualSize-l&&w.push(C)}h=w,Math.floor(t.virtualSize-l)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-l)}if(r&&i.loop){const w=y[0]+p;if(i.slidesPerGroup>1){const P=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=w*i.slidesPerGroup;for(let L=0;L<P;L+=1)h.push(h[h.length-1]+C)}for(let P=0;P<t.virtual.slidesBefore+t.virtual.slidesAfter;P+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+w),A.push(A[A.length-1]+w),t.virtualSize+=w}if(h.length===0&&(h=[0]),p!==0){const w=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((P,C)=>!i.cssMode||i.loop?!0:C!==d.length-1).forEach(P=>{P.style[w]=`${p}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let w=0;y.forEach(C=>{w+=C+(p||0)}),w-=p;const P=w-l;h=h.map(C=>C<=0?-b:C>P?P+x:C)}if(i.centerInsufficientSlides){let w=0;y.forEach(C=>{w+=C+(p||0)}),w-=p;const P=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(w+P<l){const C=(l-w-P)/2;h.forEach((L,E)=>{h[E]=L-C}),A.forEach((L,E)=>{A[E]=L+C})}}if(Object.assign(t,{slides:d,snapGrid:h,slidesGrid:A,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Si(n,"--swiper-centered-offset-before",`${-h[0]}px`),Si(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const w=-t.snapGrid[0],P=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+w),t.slidesGrid=t.slidesGrid.map(C=>C+P)}if(f!==u&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),A.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const w=`${i.containerModifierClass}backface-hidden`,P=t.el.classList.contains(w);f<=i.maxBackfaceHiddenSlides?P||t.el.classList.add(w):P&&t.el.classList.remove(w)}}function ml(t){const e=this,i=[],n=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=>n?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&&!n)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 fl(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const jn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function hl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:a,snapGrid:l}=e;if(n.length===0)return;typeof n[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<n.length;r+=1){const u=n[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=n[0].swiperSlideOffset);const f=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),h=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),A=-(s-d),y=A+e.slidesSizesGrid[r],b=A>=0&&A<=e.size-e.slidesSizesGrid[r],x=A>=0&&A<e.size-1||y>1&&y<=e.size||A<=0&&y>=e.size;x&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),jn(u,x,i.slideVisibleClass),jn(u,b,i.slideFullyVisibleClass),u.progress=a?-f:f,u.originalProgress=a?-h:h}}function Al(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,n=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:l,isEnd:s,progressLoop:c}=e;const r=l,u=s;if(n===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/n;const d=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;l=d||a<=0,s=f||a>=1,d&&(a=0),f&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[d],A=e.slidesGrid[f],y=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=h?c=(b-h)/y:c=(b+y-A)/y,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 Ki=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function bl(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=f=>Ht(n,`.${i.slideClass}${f}, swiper-slide${f}`)[0];let r,u,d;if(l)if(i.loop){let f=a-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${f}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(f=>f.column===a)[0],d=e.filter(f=>f.column===a+1)[0],u=e.filter(f=>f.column===a-1)[0]):r=e[a];r&&(s||(d=il(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=tl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(f=>{Ki(f,f===r,i.slideActiveClass),Ki(f,f===d,i.slideNextClass),Ki(f,f===u,i.slidePrevClass)}),t.emitSlidesClasses()}const ki=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let a=n.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(n.shadowRoot?a=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(a=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},Ji=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Qi=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),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+n+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&Ji(t,u)});return}const l=a+n-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)&&Ji(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)&&Ji(t,s)};function gl(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let a;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?a=l:n>=e[l]&&n<e[l+1]&&(a=l+1):n>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function yl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:a,activeIndex:l,realIndex:s,snapIndex:c}=e;let r=t,u;const d=A=>{let y=A-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof r>"u"&&(r=gl(e)),n.indexOf(i)>=0)u=n.indexOf(i);else{const A=Math.min(a.slidesPerGroupSkip,r);u=A+Math.floor((r-A)/a.slidesPerGroup)}if(u>=n.length&&(u=n.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 f=e.grid&&a.grid&&a.grid.rows>1;let h;if(e.virtual&&a.virtual.enabled&&a.loop)h=d(r);else if(f){const A=e.slides.filter(b=>b.column===r)[0];let y=parseInt(A.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(A),0)),h=Math.floor(y/a.grid.rows)}else if(e.slides[r]){const A=e.slides[r].getAttribute("data-swiper-slide-index");A?h=parseInt(A,10):h=r}else h=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:h,previousIndex:l,activeIndex:r}),e.initialized&&Qi(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function wl(t,e){const i=this,n=i.params;let a=t.closest(`.${n.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(`.${n.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}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Sl={updateSize:vl,updateSlides:pl,updateAutoHeight:ml,updateSlidesOffset:fl,updateSlidesProgress:hl,updateProgress:Al,updateSlidesClasses:bl,updateActiveIndex:yl,updateClickedSlide:wl};function xl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return n?-a:a;if(i.cssMode)return a;let s=$o(l,t);return s+=e.cssOverflowAdjustment(),n&&(s=-s),s||0}function Tl(t,e){const i=this,{rtlTranslate:n,params:a,wrapperEl:l,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=n?-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 f=i.maxTranslate()-i.minTranslate();f===0?d=0:d=(t-i.minTranslate())/f,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function El(){return-this.snapGrid[0]}function Cl(){return-this.snapGrid[this.snapGrid.length-1]}function Il(t,e,i,n,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:s,wrapperEl:c}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const r=l.minTranslate(),u=l.maxTranslate();let d;if(n&&t>r?d=r:n&&t<u?d=u:d=t,l.updateProgress(d),s.cssMode){const f=l.isHorizontal();if(e===0)c[f?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return On({swiper:l,targetPosition:-d,side:f?"left":"top"}),!0;c.scrollTo({[f?"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(h){!l||l.destroyed||h.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 kl={getTranslate:xl,setTranslate:Tl,minTranslate:El,maxTranslate:Cl,translateTo:Il};function Pl(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 Fn(t){let{swiper:e,runCallbacks:i,direction:n,step:a}=t;const{activeIndex:l,previousIndex:s}=e;let c=n;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 Ml(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Fn({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Dl(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Fn({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var _l={setTransition:Pl,transitionStart:Ml,transitionEnd:Dl};function Ll(t,e,i,n,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:f,rtlTranslate:h,wrapperEl:A,enabled:y}=l;if(!y&&!n&&!a||l.destroyed||l.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const b=Math.min(l.params.slidesPerGroupSkip,s);let x=b+Math.floor((s-b)/l.params.slidesPerGroup);x>=r.length&&(x=r.length-1);const v=-r[x];if(c.normalizeSlideIndex)for(let p=0;p<u.length;p+=1){const T=-Math.floor(v*100),k=Math.floor(u[p]*100),I=Math.floor(u[p+1]*100);typeof u[p+1]<"u"?T>=k&&T<I-(I-k)/2?s=p:T>=k&&T<I&&(s=p+1):T>=k&&(s=p)}if(l.initialized&&s!==f&&(!l.allowSlideNext&&(h?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(f||0)!==s))return!1;s!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(s>f?g="next":s<f?g="prev":g="reset",h&&-v===l.translate||!h&&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 p=l.isHorizontal(),T=h?v:-v;if(e===0){const k=l.virtual&&l.params.virtual.enabled;k&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),k&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{A[p?"scrollLeft":"scrollTop"]=T})):A[p?"scrollLeft":"scrollTop"]=T,k&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return On({swiper:l,targetPosition:T,side:p?"left":"top"}),!0;A.scrollTo({[p?"left":"top"]:T,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(s),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,g),e===0?l.transitionEnd(i,g):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(T){!l||l.destroyed||T.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 Ol(t,e,i,n){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 h=s*a.params.grid.rows;c=a.slides.filter(A=>A.getAttribute("data-swiper-slide-index")*1===h)[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 f=r-c<d;if(u&&(f=f||c<Math.ceil(d/2)),n&&u&&a.params.slidesPerView!=="auto"&&!l&&(f=!1),f){const h=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?c+1:c-r+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(l){const h=s*a.params.grid.rows;s=a.slides.filter(A=>A.getAttribute("data-swiper-slide-index")*1===h)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,n)}),a}function Rl(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:a,params:l,animating:s}=n;if(!a||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let c=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(c=Math.max(n.slidesPerViewDynamic("current",!0),1));const r=n.activeIndex<l.slidesPerGroupSkip?1:c,u=n.virtual&&l.virtual.enabled;if(l.loop){if(s&&!u&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+r,t,e,i)}),!0}return l.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+r,t,e,i)}function Nl(t,e,i){e===void 0&&(e=!0);const n=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=n;if(!r||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const d=n.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const f=c?n.translate:-n.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const A=h(f),y=l.map(v=>h(v));let b=l[y.indexOf(A)-1];if(typeof b>"u"&&a.cssMode){let v;l.forEach((g,p)=>{A>=g&&(v=p)}),typeof v<"u"&&(b=l[v>0?v-1:v])}let x=0;if(typeof b<"u"&&(x=s.indexOf(b),x<0&&(x=n.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(x=x-n.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),a.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(a.loop&&n.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{n.slideTo(x,t,e,i)}),!0;return n.slideTo(x,t,e,i)}function Vl(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function jl(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.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)*n&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*n&&(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 Fl(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=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-n/2||a>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),a=t.getSlideIndex(Ht(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ai(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-n?(t.loopFix(),a=t.getSlideIndex(Ht(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ai(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var Bl={slideTo:Ll,slideToLoop:Ol,slideNext:Rl,slidePrev:Nl,slideReset:Vl,slideToClosest:jl,slideToClickedSlide:Fl};function zl(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{Ht(n,`.${i.slideClass}, swiper-slide`).forEach((f,h)=>{f.setAttribute("data-swiper-slide-index",h)})},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 f=0;f<d;f+=1){const h=e.isElement?si("swiper-slide",[i.slideBlankClass]):si("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else xi("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 xi("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 Hl(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,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:f,slidesEl:h,params:A}=r,{centeredSlides:y}=A;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&A.virtual.enabled){i&&(!A.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):A.centeredSlides&&r.snapIndex<A.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=f,r.emit("loopFix");return}let b=A.slidesPerView;b==="auto"?b=r.slidesPerViewDynamic():(b=Math.ceil(parseFloat(A.slidesPerView,10)),y&&b%2===0&&(b=b+1));const x=A.slidesPerGroupAuto?b:A.slidesPerGroup;let v=x;v%x!==0&&(v+=x-v%x),v+=A.loopAdditionalSlides,r.loopedSlides=v;const g=r.grid&&A.grid&&A.grid.rows>1;u.length<b+v?xi("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&&A.grid.fill==="row"&&xi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const p=[],T=[];let k=r.activeIndex;typeof l>"u"?l=r.getSlideIndex(u.filter(L=>L.classList.contains(A.slideActiveClass))[0]):k=l;const I=n==="next"||!n,O=n==="prev"||!n;let m=0,S=0;const w=g?Math.ceil(u.length/A.grid.rows):u.length,C=(g?u[l].column:l)+(y&&typeof a>"u"?-b/2+.5:0);if(C<v){m=Math.max(v-C,x);for(let L=0;L<v-C;L+=1){const E=L-Math.floor(L/w)*w;if(g){const V=w-E-1;for(let F=u.length-1;F>=0;F-=1)u[F].column===V&&p.push(F)}else p.push(w-E-1)}}else if(C+b>w-v){S=Math.max(C-(w-v*2),x);for(let L=0;L<S;L+=1){const E=L-Math.floor(L/w)*w;g?u.forEach((V,F)=>{V.column===E&&T.push(F)}):T.push(E)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),O&&p.forEach(L=>{u[L].swiperLoopMoveDOM=!0,h.prepend(u[L]),u[L].swiperLoopMoveDOM=!1}),I&&T.forEach(L=>{u[L].swiperLoopMoveDOM=!0,h.append(u[L]),u[L].swiperLoopMoveDOM=!1}),r.recalcSlides(),A.slidesPerView==="auto"?r.updateSlides():g&&(p.length>0&&O||T.length>0&&I)&&r.slides.forEach((L,E)=>{r.grid.updateSlide(E,L,r.slides)}),A.watchSlidesProgress&&r.updateSlidesOffset(),i){if(p.length>0&&O){if(typeof e>"u"){const L=r.slidesGrid[k],V=r.slidesGrid[k+m]-L;c?r.setTranslate(r.translate-V):(r.slideTo(k+Math.ceil(m),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-V,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-V))}else if(a){const L=g?p.length/A.grid.rows:p.length;r.slideTo(r.activeIndex+L,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(T.length>0&&I)if(typeof e>"u"){const L=r.slidesGrid[k],V=r.slidesGrid[k-S]-L;c?r.setTranslate(r.translate-V):(r.slideTo(k-S,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-V,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-V))}else{const L=g?T.length/A.grid.rows:T.length;r.slideTo(r.activeIndex-L,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=f,r.controller&&r.controller.control&&!s){const L={slideRealIndex:e,direction:n,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...L,slideTo:E.params.slidesPerView===A.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...L,slideTo:r.controller.control.params.slidesPerView===A.slidesPerView?i:!1})}r.emit("loopFix")}function Wl(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;n[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),n.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Xl={loopCreate:zl,loopFix:Hl,loopDestroy:Wl};function Gl(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 Ul(){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 Yl={setGrabCursor:Gl,unsetGrabCursor:Ul};function ql(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Pt()||n===yt())return null;n.assignedSlot&&(n=n.assignedSlot);const a=n.closest(t);return!a&&!n.getRootNode?null:a||i(n.getRootNode().host)}return i(e)}function Bn(t,e,i){const n=yt(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=n.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Zl(t){const e=this,i=Pt();let n=t;n.originalEvent&&(n=n.originalEvent);const a=e.touchEventsData;if(n.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==n.pointerId)return;a.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(a.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Bn(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:c}=e;if(!c||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let r=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in n&&n.which===3||"button"in n&&n.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&d&&(r=d[0]);const f=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(h?ql(f,r):r.closest(f))){e.allowClick=!0;return}if(l.swipeHandler&&!r.closest(l.swipeHandler))return;s.currentX=n.pageX,s.currentY=n.pageY;const A=s.currentX,y=s.currentY;if(!Bn(e,n,A))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=A,s.startY=y,a.touchStartTime=Rt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let b=!0;r.matches(a.focusableElements)&&(b=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const x=b&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||x)&&!r.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Kl(t){const e=Pt(),i=this,n=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"&&(n.touchId!==null||r.pointerId!==n.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(I=>I.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=r;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,f=u.pageY;if(r.preventedByNestedSwiper){l.startX=d,l.startY=f;return}if(!i.allowTouchMove){r.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:d,startY:f,currentX:d,currentY:f}),n.touchStartTime=Rt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(f<l.startY&&i.translate<=i.maxTranslate()||f>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.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(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",r),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=f;const h=l.currentX-l.startX,A=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(h**2+A**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let I;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:h*h+A*A>=25&&(I=Math.atan2(Math.abs(A),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?I>a.touchAngle:90-I>a.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",r),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||r.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let y=i.isHorizontal()?h:A,b=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(y=Math.abs(y)*(s?1:-1),b=Math.abs(b)*(s?1:-1)),l.diff=y,y*=a.touchRatio,s&&(y=-y,b=-b);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const v=i.params.loop&&!a.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const I=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(I)}n.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let p;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&x!==i.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(l,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",r),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let T=!0,k=a.resistanceRatio;if(a.touchReleaseOnEdges&&(k=0),y>0?(v&&g&&!p&&n.allowThresholdMove&&n.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(T=!1,a.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**k))):y<0&&(v&&g&&!p&&n.allowThresholdMove&&n.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)))}),n.currentTranslate<i.maxTranslate()&&(T=!1,a.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**k))),T&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(y)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!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(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Jl(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let a;if(n.type==="touchend"||n.type==="touchcancel"){if(a=[...n.changedTouches].filter(k=>k.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;a=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),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 f=Rt(),h=f-i.touchStartTime;if(e.allowClick){const k=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(k&&k[0]||n.target,k),e.emit("tap click",n),h<300&&f-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Rt(),ai(()=>{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 A;if(s.followFinger?A=r?e.translate:-e.translate:A=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:A});return}const y=A>=-e.maxTranslate()&&!e.params.loop;let b=0,x=e.slidesSizesGrid[0];for(let k=0;k<u.length;k+=k<s.slidesPerGroupSkip?1:s.slidesPerGroup){const I=k<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[k+I]<"u"?(y||A>=u[k]&&A<u[k+I])&&(b=k,x=u[k+I]-u[k]):(y||A>=u[k])&&(b=k,x=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 p=(A-u[b])/x,T=b<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(p>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:b+T):e.slideTo(b)),e.swipeDirection==="prev"&&(p>1-s.longSwipesRatio?e.slideTo(b+T):g!==null&&p<0&&Math.abs(p)>s.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+T):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:b+T),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function zn(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,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=n,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Ql(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function $l(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let 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 ea(t){const e=this;ki(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ta(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Hn=(t,e)=>{const i=Pt(),{params:n,el:a,wrapperEl:l,device:s}=t,c=!!n.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}),(n.preventClicks||n.preventClicksPropagation)&&a[r]("click",t.onClick,!0),n.cssMode&&l[r]("scroll",t.onScroll),n.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",zn,!0):t[u]("observerUpdate",zn,!0),a[r]("load",t.onLoad,{capture:!0}))};function ia(){const t=this,{params:e}=t;t.onTouchStart=Zl.bind(t),t.onTouchMove=Kl.bind(t),t.onTouchEnd=Jl.bind(t),t.onDocumentTouchStart=ta.bind(t),e.cssMode&&(t.onScroll=$l.bind(t)),t.onClick=Ql.bind(t),t.onLoad=ea.bind(t),Hn(t,"on")}function na(){Hn(this,"off")}var oa={attachEvents:ia,detachEvents:na};const Wn=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function la(){const t=this,{realIndex:e,initialized:i,params:n,el:a}=t,l=n.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=Wn(t,n),d=Wn(t,r),f=t.params.grabCursor,h=r.grabCursor,A=n.enabled;u&&!d?(a.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${n.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&n.grid.fill==="column")&&a.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),f&&!h?t.unsetGrabCursor():!f&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(p=>{if(typeof r[p]>"u")return;const T=n[p]&&n[p].enabled,k=r[p]&&r[p].enabled;T&&!k&&t[p].disable(),!T&&k&&t[p].enable()});const y=r.direction&&r.direction!==n.direction,b=n.loop&&(r.slidesPerView!==n.slidesPerView||y),x=n.loop;y&&i&&t.changeDirection(),_t(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}),A&&!v?t.disable():!A&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(b?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&g?(t.loopCreate(e),t.updateSlides()):x&&!g&&t.loopDestroy()),t.emit("breakpoint",r)}function aa(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const a=yt(),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&&(n=r):u<=i.clientWidth&&(n=r)}return n||"max"}var sa={setBreakpoint:la,getBreakpoint:aa};function ra(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(a=>{n[a]&&i.push(e+a)}):typeof n=="string"&&i.push(e+n)}),i}function da(){const t=this,{classNames:e,params:i,rtl:n,el:a,device:l}=t,s=ra(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...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 ua={addClasses:da,removeClasses:ca};function va(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+n*2;t.isLocked=t.size>l}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var pa={checkOverflow:va},$i={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(n){n===void 0&&(n={});const a=Object.keys(n)[0],l=n[a];if(typeof l!="object"||l===null){_t(e,n);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)){_t(e,n);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),_t(e,n)}}const en={eventsEmitter:ul,update:Sl,translate:kl,transition:_l,slide:Bl,loop:Xl,grabCursor:Yl,events:oa,breakpoints:sa,checkOverflow:pa,classes:ua},tn={};let nn=class qt{constructor(){let e,i;for(var n=arguments.length,a=new Array(n),l=0;l<n;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=_t({},i),e&&!i.el&&(i.el=e);const s=Pt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(f=>{const h=_t({},i,{el:f});d.push(new qt(h))}),d}const c=this;c.__swiper__=!0,c.support=Nn(),c.device=Vn({userAgent:i.userAgent}),c.browser=rl(),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=_t({},$i,r);return c.params=_t({},u,tn,i),c.originalParams=_t({},c.params),c.passedParams=_t({},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:n}=this,a=Ht(i,`.${n.slideClass}, swiper-slide`),l=vi(a[0]);return vi(e)-l}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Ht(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const a=n.minTranslate(),s=(n.maxTranslate()-a)*e+a;n.translateTo(s,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const a=e.getSlideClasses(n);i.push({slideEl:n,classNames:a}),e.emit("_slideClass",n,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=n;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let f=l[u]?Math.ceil(l[u].swiperSlideSize):0,h;for(let A=u+1;A<l.length;A+=1)l[A]&&!h&&(f+=Math.ceil(l[A].swiperSlideSize),d+=1,f>r&&(h=!0));for(let A=u-1;A>=0;A-=1)l[A]&&!h&&(f+=l[A].swiperSlideSize,d+=1,f>r&&(h=!0))}else if(e==="current")for(let f=u+1;f<l.length;f+=1)(i?s[f]+c[f]-s[u]<r:s[f]-s[u]<r)&&(d+=1);else for(let f=u-1;f>=0;f-=1)s[u]-s[f]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&ki(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(n.freeMode&&n.freeMode.enabled&&!n.cssMode)a(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const s=e.virtual&&n.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()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,a=n.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${a}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(a()):Ht(n,a())[0];return!s&&i.params.createElements&&(s=si("div",i.params.wrapperClass),n.append(s),Ht(n,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:n,wrapperEl:s,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||$t(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||$t(n,"direction")==="rtl"),wrongRTL:$t(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?ki(i,l):l.addEventListener("load",s=>{ki(i,s.target)})}),Qi(i),i.initialized=!0,Qi(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:a,el:l,wrapperEl:s,slides:c}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),a.loop&&n.loopDestroy(),i&&(n.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")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(r=>{n.off(r)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),Jo(n)),n.destroyed=!0),null}static extendDefaults(e){_t(tn,e)}static get extendedDefaults(){return tn}static get defaults(){return $i}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(en).forEach(t=>{Object.keys(en[t]).forEach(e=>{nn.prototype[e]=en[t][e]})}),nn.use([dl,cl]);const Xn=["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 ni(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ri(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:ni(e[n])&&ni(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:ri(t[n],e[n]):t[n]=e[n]})}function Gn(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Un(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Yn(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function qn(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function fa(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function ha(t){let{swiper:e,slides:i,passedParams:n,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:d,pagination:f,navigation:h,scrollbar:A,virtual:y,thumbs:b}=e;let x,v,g,p,T,k,I,O;a.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(x=!0),a.includes("controller")&&n.controller&&n.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&n.pagination&&(n.pagination.el||r)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(g=!0),a.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&A&&!A.el&&(p=!0),a.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||l)&&(d.navigation||d.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(T=!0);const m=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),d[S].prevEl=void 0,d[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),d[S].el=void 0,e[S].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!n.loop?k=!0:!d.loop&&n.loop?I=!0:O=!0),u.forEach(S=>{if(ni(d[S])&&ni(n[S]))Object.assign(d[S],n[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in n[S]&&!n[S].enabled&&m(S);else{const w=n[S];(w===!0||w===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?w===!1&&m(S):d[S]=n[S]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&y&&d.virtual.enabled?(y.slides=i,y.update(!0)):a.includes("virtual")&&y&&d.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),a.includes("children")&&i&&d.loop&&(O=!0),x&&b.init()&&b.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),f.init(),f.render(),f.update()),p&&(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),A.init(),A.updateSize(),A.setTranslate()),T&&(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),h.init(),h.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),a.includes("direction")&&e.changeDirection(n.direction,!1),(k||O)&&e.loopDestroy(),(I||O)&&e.loopCreate(),e.update()}function Aa(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},a={};ri(i,$i),i._emitClasses=!0,i.init=!1;const l={},s=Xn.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?ni(t[r])?(i[r]={},a[r]={},ri(i[r],t[r]),ri(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?n[`${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:n}}function ba(t,e){let{el:i,nextEl:n,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:c}=t;Gn(e)&&n&&a&&(c.params.navigation.nextEl=n,c.originalParams.navigation.nextEl=n,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),Un(e)&&l&&(c.params.pagination.el=l,c.originalParams.pagination.el=l),Yn(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function ga(t,e,i,n,a){const l=[];if(!e)return l;const s=r=>{l.indexOf(r)<0&&l.push(r)};if(i&&n){const r=n.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),n.length!==i.length&&s("children")}return Xn.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(ni(t[r])&&ni(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(f=>{t[r][f]!==e[r][f]&&s(r)}),d.forEach(f=>{t[r][f]!==e[r][f]&&s(r)}))}else t[r]!==e[r]&&s(r)}),l}const ya=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Pi(){return Pi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Pi.apply(this,arguments)}function Zn(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Kn(t){const e=[];return o.Children.toArray(t).forEach(i=>{Zn(i)?e.push(i):i.props&&i.props.children&&Kn(i.props.children).forEach(n=>e.push(n))}),e}function wa(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return o.Children.toArray(t).forEach(n=>{if(Zn(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const a=Kn(n.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Sa(t,e,i){if(!i)return null;const n=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},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[n(d)]);return u.map((d,f)=>o.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${f}`}))}function pi(t,e){return typeof window>"u"?o.useEffect(t,e):o.useLayoutEffect(t,e)}const on=o.createContext(null),ln=()=>o.useContext(on),xa=o.createContext(null),oi=o.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:a="div",children:l,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=o.useState("swiper"),[f,h]=o.useState(null),[A,y]=o.useState(!1),b=o.useRef(!1),x=o.useRef(null),v=o.useRef(null),g=o.useRef(null),p=o.useRef(null),T=o.useRef(null),k=o.useRef(null),I=o.useRef(null),O=o.useRef(null),{params:m,passedParams:S,rest:w,events:P}=Aa(c),{slides:C,slots:L}=wa(l),E=()=>{y(!A)};Object.assign(m.on,{_containerClasses(R,M){d(M)}});const V=()=>{Object.assign(m.on,P),r=!0;const R={...m};if(delete R.wrapperClass,v.current=new nn(R),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const M={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};ri(v.current.params.virtual,M),ri(v.current.originalParams.virtual,M)}};x.current||V(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{r||!P||!v.current||Object.keys(P).forEach(R=>{v.current.on(R,P[R])})},D=()=>{!P||!v.current||Object.keys(P).forEach(R=>{v.current.off(R,P[R])})};o.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),o.useEffect(()=>{!b.current&&v.current&&(v.current.emitSlidesClasses(),b.current=!0)}),pi(()=>{if(e&&(e.current=x.current),!!x.current)return v.current.destroyed&&V(),ba({el:x.current,nextEl:T.current,prevEl:k.current,paginationEl:I.current,scrollbarEl:O.current,swiper:v.current},m),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),pi(()=>{F();const R=ga(S,g.current,C,p.current,M=>M.key);return g.current=S,p.current=C,R.length&&v.current&&!v.current.destroyed&&ha({swiper:v.current,slides:C,passedParams:S,changedParams:R,nextEl:T.current,prevEl:k.current,scrollbarEl:O.current,paginationEl:I.current}),()=>{D()}}),pi(()=>{ya(v.current)},[f]);function N(){return m.virtual?Sa(v.current,C,f):C.map((R,M)=>o.cloneElement(R,{swiper:v.current,swiperSlideIndex:M}))}return o.createElement(n,Pi({ref:x,className:qn(`${u}${i?` ${i}`:""}`)},w),o.createElement(xa.Provider,{value:v.current},L["container-start"],o.createElement(a,{className:fa(m.wrapperClass)},L["wrapper-start"],N(),L["wrapper-end"]),Gn(m)&&o.createElement(o.Fragment,null,o.createElement("div",{ref:k,className:"swiper-button-prev"}),o.createElement("div",{ref:T,className:"swiper-button-next"})),Yn(m)&&o.createElement("div",{ref:O,className:"swiper-scrollbar"}),Un(m)&&o.createElement("div",{ref:I,className:"swiper-pagination"}),L["container-end"]))});oi.displayName="Swiper";const zt=o.forwardRef(function(t,e){let{tag:i="div",children:n,className:a="",swiper:l,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const f=o.useRef(null),[h,A]=o.useState("swiper-slide"),[y,b]=o.useState(!1);function x(T,k,I){k===f.current&&A(I)}pi(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),e&&(e.current=f.current),!(!f.current||!l)){if(l.destroyed){h!=="swiper-slide"&&A("swiper-slide");return}return l.on("_slideClass",x),()=>{l&&l.off("_slideClass",x)}}}),pi(()=>{l&&f.current&&!l.destroyed&&A(l.getSlideClasses(f.current))},[l]);const v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(v):n,p=()=>{b(!0)};return o.createElement(i,Pi({ref:f,className:qn(`${h}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:p},d),s&&o.createElement(on.Provider,{value:v},o.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},g(),c&&!y&&o.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&o.createElement(on.Provider,{value:v},g(),c&&!y&&o.createElement("div",{className:"swiper-lazy-preloader"})))});zt.displayName="SwiperSlide";const Ta="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Ea=({visible:t,onClose:e,children:i,modalStyle:n,padding:a,popup:l,schema:s,fullHeight:c=window.innerHeight,isFullScreen:r=!1,openState:u})=>{var d,f,h,A,y,b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D;const N=o.useRef(null),R=o.useRef(null),M=o.useRef(null),j=o.useRef(null),W=o.useRef(null),Z=c*.2,J=r?c:c*.8,[$,ae]=o.useState(Z),[de,ee]=o.useState(!1),ke=o.useRef(null),{globalConfig:_e,popupDetailData:Be}=je(),{schema:Y,popup:K}=Jt(),[ue,fe]=o.useState(15);o.useEffect(()=>{const q=document.getElementById("sxp-render"),G=document.getElementById("pb-modal");G?ke.current=G:(ke.current=document.createElement("div"),ke.current.setAttribute("id","pb-modal"),q?.appendChild(ke.current))},[]);const he=o.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),le=o.useMemo(()=>{var q,G,ie;const ne=s??Y;return(ie=(G=(q=ne?.sxpPageConf)===null||q===void 0?void 0:q.globalConfig)===null||G===void 0?void 0:G.popupList)===null||ie===void 0?void 0:ie.find(xe=>xe?.id===l?.id)},[l,s,Y]),Pe=o.useMemo(()=>{var q,G;return((G=(q=le?.item)===null||q===void 0?void 0:q.event)===null||G===void 0?void 0:G.isScrollFullScreen)||!1},[le]);o.useEffect(()=>{he?ee(!0):setTimeout(()=>{ee(!1),ae(Z)},l?.duration)},[he,l]);const Ge=o.useCallback(()=>i,[K,u,_e,s]);if(o.useEffect(()=>{const q=G=>{var ie=G?.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])'),ne=ie?.[0],se=ie?.[ie?.length-1],xe=9;G.addEventListener("keydown",function(Je){(Je.key==="Escape"||Je.key==="Esc")&&(Re(),Je.preventDefault());var te=Je.key==="Tab"||Je.keyCode===xe;te&&(Je.shiftKey?document?.activeElement===ne&&(se?.focus(),Je.preventDefault()):document?.activeElement===se&&(ne?.focus(),Je.preventDefault()))}),ne?.focus()};return W?.current&&q(W?.current),()=>{var G;(G=W?.current)===null||G===void 0||G.removeEventListener("keydown",q)}},[W,de,K]),!ke.current)return null;const Re=lt.debounce(()=>{e?.()},300),Ze=q=>{N.current=q.touches[0],R.current=q.touches[0],M.current=!0},Qe=q=>{requestAnimationFrame(()=>{var G;if(M.current&&((G=j?.current)===null||G===void 0?void 0:G.scrollTop)===0){const ie=q.touches[0].clientY,ne=q.touches[0].clientX,se=N.current.clientY-ie;N.current=q.touches[0];const xe=ie-R.current.clientY,Je=ne-R.current.clientX;if(Math.abs(Je)>Math.abs(xe))return;const te=$-se;te>0&&ae(te)}})},Ae=q=>{var G;if(M.current&&((G=j?.current)===null||G===void 0?void 0:G.scrollTop)===0){const ie=q.changedTouches[0].clientY-R.current.clientY,ne=q.changedTouches[0].clientX-R.current.clientX;if(Math.abs(ne)>Math.abs(ie))return;const se=R.current.clientY-N.current.clientY;se>0?ae(0):$<Z&&se<0?ae(Z):$>=Z&&se<0&&e?.()}M.current=!1};return fn.createPortal(o.createElement(o.Fragment,null,de&&o.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:he?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:Re},o.createElement("div",{style:{position:"relative",left:`${(A=(h=(f=(d=le?.item)===null||d===void 0?void 0:d.props)===null||f===void 0?void 0:f.popupBg)===null||h===void 0?void 0:h.horizontalMargin)!==null&&A!==void 0?A:0}px`,right:`${(v=(x=(b=(y=le?.item)===null||y===void 0?void 0:y.props)===null||b===void 0?void 0:b.popupBg)===null||x===void 0?void 0:x.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${(k=(T=(p=(g=le?.item)===null||g===void 0?void 0:g.props)===null||p===void 0?void 0:p.popupBg)===null||T===void 0?void 0:T.bottomMargin)!==null&&k!==void 0?k:0}px`,overflow:"hidden",width:`calc(100% - ${((S=(m=(O=(I=le?.item)===null||I===void 0?void 0:I.props)===null||O===void 0?void 0:O.popupBg)===null||m===void 0?void 0:m.horizontalMargin)!==null&&S!==void 0?S:0)*2}px)`,height:"100%"}},o.createElement("div",Object.assign({ref:W,className:`modal-container ${he?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(w=le?.item)===null||w===void 0?void 0:w.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:a,animationDuration:((P=l?.duration)!==null&&P!==void 0?P:0)/1e3+"s"},Pe&&{transform:`translateY(${$}px)`}),{overflow:"hidden",borderRadius:`${(V=(E=(L=(C=le?.item)===null||C===void 0?void 0:C.props)===null||L===void 0?void 0:L.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&V!==void 0?V:0}px`,zIndex:9}),onClick:q=>{q.stopPropagation(),q.preventDefault()}},Pe&&{onTouchMove:Qe,onTouchStart:Ze,onTouchEnd:Ae}),o.createElement("div",Object.assign({id:"modal-content",ref:j,style:{height:Pe?c:J,overflow:Pe&&$<=0||!Pe?"auto":"hidden",zIndex:1}},((D=(F=le?.item)===null||F===void 0?void 0:F.props)===null||D===void 0?void 0:D.enableFixedCloseButton)&&{onScroll:q=>{var G;fe(15-((G=q?.target)===null||G===void 0?void 0:G.scrollTop))}}),Ge()),o.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:ue}},o.createElement("img",{src:_e?.popupCloseIcon||Ta,alt:"close button",className:"modal-icon"})))))),ke.current)};var di=o.memo(Ea);const Ca=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),a=[];for(let s=0;s<n.length&&(a.push(n[s]),!(a.join(" ").length>=e));s++);return(a.length>1&&a.length<n.length?a.slice(0,a.length-1):a).join(" ")+" "},Ia=({text:t,maxStr:e=108,style:i,className:n,onClick:a,foldText:l,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=o.useState(!1),[f,h]=o.useState(!1),A=Number(i?.lineClamp||2),y=o.useRef(null),b=o.useRef(null),x=o.useCallback(()=>{d(!u)},[u,r]);return o.useMemo(()=>!u&&t.length>e?Ca(t,e)+"...":t,[t,e,u]),o.useEffect(()=>{var v,g;b?.current&&(b.current.style.display="block"),((v=b?.current)===null||v===void 0?void 0:v.offsetHeight)>((g=y?.current)===null||g===void 0?void 0:g.offsetHeight)&&c?h(!0):h(!1),b.current.style.display="none"},[c,t]),o.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},o.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!c||u?"":A,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:Ee(t?.replace(/\n/g,"</br>"),i)}}),o.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:Ee(t?.replace(/\n/g,"</br>"),i)}}),t&&c&&f&&o.createElement("button",{"aria-label":u?s||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??x,dangerouslySetInnerHTML:{__html:Ee(u?s||"show less":l||"show more",i)}}))};var Mi=o.memo(Ia);const ka=o.forwardRef((t,e)=>{const{src:i,onLoad:n,style:a,className:l,loading:s,alt:c="image"}=t,[r,u]=o.useState(i),d=o.useRef(null),[f,h]=o.useState(!1);return o.useImperativeHandle(e,()=>({setSrc:A=>{A&&u(A)}})),o.useEffect(()=>{i&&u(i)},[i]),o.useEffect(()=>{const A=()=>{i&&!f&&d.current&&(d.current.src="",d.current.src=i)};return mt.on(dt.PAGE_DID_SHOW,A),()=>{mt.off(dt.PAGE_DID_SHOW,A)}},[i,f]),o.createElement(o.Fragment,null,!f&&!r&&o.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?o.createElement("picture",null,o.createElement("source",{type:"image/avif",srcSet:r}),o.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),o.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),o.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:A=>{h(!0),n?.(A.target)},alt:c})):o.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:A=>{h(!0),n?.(A.target)},alt:c}))});var Mt=o.memo(ka);const Pa=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const a=o.useRef(),{popupDetailData:l}=je();return o.useEffect(()=>{var s,c;n&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=l?.multiCheckIndex)!==null&&c!==void 0?c:0))},[l,n]),o.createElement(oi,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[ol,nl,Ei],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var mi=o.memo(Pa);const Ma=({products:t,data:e,defImg:i,style:n,onCLick:a,popupDetailData:l,check:s})=>{var c;const{productView:r}=It(),{popupCurTimeRef:u}=je(),d=(f,h)=>{if(s===h)return;const A=t?.[s];r(l,A,A?.bindCta,u.current,l?.index),a?.(h)};return o.createElement(o.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&o.createElement(mi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(c=l?t:[0,1,2,3])===null||c===void 0?void 0:c.map((f,h)=>{var A,y,b;return o.createElement(o.Fragment,null,f?.bindCta?o.createElement(zt,{className:Ie.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{d(f,h)},key:h},o.createElement(Mt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(b=(A=f?.cover)!==null&&A!==void 0?A:(y=f?.homePage)===null||y===void 0?void 0:y[0])!==null&&b!==void 0?b:i})):null)})))};var Jn=o.memo(Ma);const Da=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:a,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},_a=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",fi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:a})=>{var l,s,c,r,u,d,f,h;let A="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return A;let b=i?.priceSymbol,x=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=y?.toString();b?.showTwoDecimalPoint&&(g=y?.toFixed(2));let p=(r=g?.indexOf("."))!==null&&r!==void 0?r:-1;if(v){A=(u=y?.toLocaleString("zh",{minimumFractionDigits:b?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let T=0,k=p??A?.length;b?.millesimalSymbol==="."?A=A?.replace(/\,/g,function(I,O){return O>=T&&O<k?".":I}):b?.millesimalSymbol===" "&&(A=A?.replace(","," "))}else A=`${b?.showTwoDecimalPoint?y?.toFixed(2):y}`;return b?.decimalPoint===","&&p>0&&(A=A=A?.replace(/\./g,function(T,k){return k>=p&&k<A?.length?",":T})),x=`<span style="font-family:${(h=(f=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&f!==void 0?f:a?.["fontFamily-en"])!==null&&h!==void 0?h:"inherit"}">${x}</span>`,A=Ee(A,a),b?.currencyPosition&&b?.currencyPosition!=="none"?A=b?.currencyPosition==="left"?x+A:A+x:b?.currencyPosition!=="none"&&(A=x+A),A},La=t=>{var e,i,n,a,l,s,c,r,u,d,f,h,A,y,b,x,v,g,p,T,k,I,O,m,{content:S,style:w,bgImg:P,onClick:C,schema:L,isDefault:E,bottom_image:V,tipText:F,isPost:D,viewTime:N,rec:R,swiper:M,commodityStyles:j,buttonStyle:W,index:Z,commodityGroup:J,popupBg:$,iframeIcon:ae,commodityImgRatio:de,isTel:ee,iframeBgColor:ke,isActive:_e=!0}=t,Be=tt(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:Y,popupDetailData:K,isPreview:ue,bffFbReport:fe,popupCurTimeRef:he,checkCommodityIndexRef:le,globalConfig:Pe}=je(),{jumpToWeb:Ge,productView:Re}=It(),Ze=o.useRef(null),[Qe,Ae]=o.useState(!1),[q,G]=o.useState(!1),[ie,ne]=o.useState((e=K?.multiCheckIndex)!==null&&e!==void 0?e:0),se=o.useRef(),[xe,Je]=o.useState(0),te=D?R:K;let B=D?te?.product:(n=(i=te?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(l=(a=te?.video)===null||a===void 0?void 0:a.bindProducts)===null||l===void 0?void 0:l[0],Ue=D?(s=te?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=te?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(h=(f=(d=te?.video)===null||d===void 0?void 0:d.bindProducts)===null||f===void 0?void 0:f[0])===null||h===void 0?void 0:h.bindCta;const wt=D?Z:K?.index;if(!D&&J?.open&&(!((A=te?.video)===null||A===void 0)&&A.bindProducts)&&((b=(y=te?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0?void 0:b.length)>0){le.current=ie;const ye=(x=te?.video)===null||x===void 0?void 0:x.bindProducts[ie];B=ye,Ue=ye?.bindCta}const $e=ye=>{B?.link&&(Ge(ye,te,B,Ue,wt),D||Re(te,B,Ue,N||Ze.current,wt),window.location.href=window.getJointUtmLink(B.link))};o.useEffect(()=>{_e&&(fe?.({eventName:"ProductView",product:B}),fe?.({eventName:"PageView",product:B}))},[_e,fe]),o.useEffect(()=>{const ye=()=>{Ze.current=new Date};return ye(),window.addEventListener("pageshow",ye),()=>{window.removeEventListener("pageshow",ye)}},[]);const bt=fi({product:B,enableFormattedPrice:(v=j?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:Pe,style:j?.price}),ft=(ue?375:(g=w?.width)!==null&&g!==void 0?g:window.innerWidth)-((p=$?.horizontalMargin)!==null&&p!==void 0?p:0)*2,St=de?ft*(de.h/de.w):ft,Vt=({isPost:ye})=>{var Le,Tt,Zt,Xt;return o.createElement("div",null,o.createElement("div",{className:"pb-commondity-content-collection",style:jt(j?.collection),hidden:!!B&&(!B?.collection||B?.collection===""),dangerouslySetInnerHTML:{__html:Ee((Le=B?.collection)!==null&&Le!==void 0?Le:"Tiffany Lock",j?.collection)}}),o.createElement("div",{className:"pb-commondity-content-title",style:jt(j?.title),hidden:!!B&&!B?.title,dangerouslySetInnerHTML:{__html:Ee((Tt=B?.title)!==null&&Tt!==void 0?Tt:"Pendant in Yellow Gold with Diamonds, Medium",j?.title)}}),o.createElement("div",{className:"pb-commondity-content-price",style:jt(j?.price),hidden:!!B&&!B?.price,dangerouslySetInnerHTML:{__html:bt??""}}),o.createElement("div",{hidden:!!B&&!B?.taxInfo,style:jt(j?.taxInfo),dangerouslySetInnerHTML:{__html:Ee((Zt=B?.taxInfo)!==null&&Zt!==void 0?Zt:"\u7A0E\u8D39",j?.taxInfo)}}),o.createElement("div",{hidden:!!B&&(!B?.info||B?.info==="")},o.createElement(Mi,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Ae(!0),isPost:ye,text:(Xt=B?.info)!==null&&Xt!==void 0?Xt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
2
2
  bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
3
3
  collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
4
4
  necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
@@ -7,5 +7,5 @@ Made in Italy`})),Dt=o.useCallback(pe=>pe?.lineClamp?Object.assign(Object.assign
7
7
  return props?.button${g+1}${p}
8
8
  } else {
9
9
  return props?.button${g+1}
10
- }`)(s,p)}catch{}},[s]),b=o.useCallback(g=>{const p=y(g),T=p?.value;T&&(p?.linkType==="recommendFlow"?(u?.(T),r.current=new Date):new Function(T)())},[s]),x=o.useCallback(()=>{d.current=new Date,c?.({eventInfo:{eventSubject:"startMultiPost",eventDescription:"startMultiPost",contentFormat:"image",position:"0",traceInfo:A}})},[]),v=o.useCallback(g=>{r.current=new Date,c?.({eventInfo:{eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:A,nextStep:g||"others",timeOnSite:Math.floor((new Date-d?.current)/1e3)+""}})},[]);return o.useEffect(()=>{f?(x(),h.current=!0):h.current&&v()},[f]),o.useEffect(()=>{if(!f)return;const g=()=>x(),p=()=>v();return mt.on(dt.PAGE_DID_SHOW,g),mt.on(dt.PAGE_DID_HIDE,p),()=>{mt.off(dt.PAGE_DID_SHOW,g),mt.off(dt.PAGE_DID_HIDE,p)}},[f]),o.createElement("div",{className:"multiposts",style:Object.assign(Object.assign({},a),_a(n))},Array.from({length:4},(g,p)=>o.createElement("button",{hidden:!y(p,"Url"),className:"multiposts-btn",role:"button","aria-label":`multiposts-${p+1}`,onClick:()=>b(p)},o.createElement("img",{className:"multiposts-btn-img",src:y(p,"Url"),alt:`multiposts-img-${p+1}`}))))};var rn=o.memo(Or),Rr=[{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 Nr=ct(rn,{displayName:"MultiPosts",icon:"",category:"base",type:"MultiPosts",related:{settingRender:Lr,interactionRender:Rr},defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var dn=Object.freeze({__proto__:null,AniLink:br,AniLinkPopup:Tr,Appoint:hs,AppointForm:qo,Commodity:vs,CommodityDetail:Na,CommodityDetailDiroNew:Ua,CommodityDiro:Cs,CommodityDiroNew:Ds,CommodityList:Qa,Consent:pr,ConsentDetail:as,Display:_r,HashTag:cr,Iframe:is,Link:ws,MultiCommodity:zs,MultiCommodityDiro:Ns,MultiCommodityDiroNew:Us,MultiPosts:Nr,Prompt:za});const Vr="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",jr="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Fr=t=>{var e,{active:i,activeIcon:n,unActicveIcon:a,recData:l,position:s}=t,c=tt(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:r,mutateUnlike:u,bffEventReport:d,setCacheRtcList:f,cacheRtcList:h}=je(),[A,y]=o.useState((e=h?.[s])===null||e===void 0?void 0:e.isCollected),b=Ot(jr),x=Ot(Vr),v=lt.debounce(()=>At(void 0,void 0,void 0,function*(){var g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D,N,R,M,j,W,Z;if(A){y(!1);const J=(T=yield u?.({videoItemId:(p=(g=l?.video)===null||g===void 0?void 0:g.itemId)!==null&&p!==void 0?p:""}))!==null&&T!==void 0?T:!1;if(d?.({eventInfo:{eventSubject:"favoriteContentCanceled",eventDescription:"This content was unfavorite by the user",contentId:(I=(k=l?.video)===null||k===void 0?void 0:k.itemId)!==null&&I!==void 0?I:"",contentName:(m=(O=l?.video)===null||O===void 0?void 0:O.title)!==null&&m!==void 0?m:"",contentTags:JSON.stringify((w=(S=l?.video)===null||S===void 0?void 0:S.tags)!==null&&w!==void 0?w:[]),position:s+"",contentFormat:!((P=l?.video)===null||P===void 0)&&P.url?"video":"image",traceInfo:(C=l?.video)===null||C===void 0?void 0:C.traceInfo}}),!J)y(!0);else{const $=(L=h?.map((ae,de)=>(de===s&&(ae.isCollected=!1),ae)))!==null&&L!==void 0?L:[];f?.($)}}else{y(!0);const J=(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=(V=l?.video)===null||V===void 0?void 0:V.itemId)!==null&&F!==void 0?F:"",contentName:(N=(D=l?.video)===null||D===void 0?void 0:D.title)!==null&&N!==void 0?N:"",contentTags:JSON.stringify((M=(R=l?.video)===null||R===void 0?void 0:R.tags)!==null&&M!==void 0?M:[]),position:s+"",contentFormat:!((j=l?.video)===null||j===void 0)&&j.url?"video":"image",traceInfo:(W=l?.video)===null||W===void 0?void 0:W.traceInfo}}),!J)y(!1);else{const $=(Z=h?.map((ae,de)=>(de===s&&(ae.isCollected=!0),ae)))!==null&&Z!==void 0?Z:[];f?.($)}}}),200);return o.createElement("button",Object.assign({},c,{"aria-label":"like",onClick:v}),o.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:A?n||b:a||x,alt:"icon"}))};var so=o.memo(Fr),Br="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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ddTqdWkAqFqFZqxalJwDZ8K5YrR6dWWUcoSFFtMrcGlU90ODAgAIfkECQMA/wAsMwAYABYADwAACHEA/wkcSFAguC7g3BwMVrChm2KJwJWCKBEitob/ohxMuFEhQo/FCAaLOJEkxZIVEwlEwvFjx5cubXQ5SdOkTYkRPbbcqVPnmpsog9b8B5NnUYX/hAKtCc5gz6MvBy5d6qahy6scMRJcqhUjj2JIuxYMCAAh+QQJBAD/ACw3ABcAEwAOAAAIYgD/CRxIUKCbYl0KKkQCrgs4Nw0fglNYqlgicBUvZsQYbGBEiA5BSgw5EdvGkxYxpiz1sSXJlyo1rpwp86LImy4l1ozJ82ROnC+LdaLZc6bBny6LDXSDUqabRAoFrmkZdWBAACH5BAkDAP8ALDoAFwASAA0AAAhiAP8JHDjQTbFOxRIVIjgQCbgu4Nw8jPiQG8NE4EolzLhRI8aCEyVCFEkR4r9CHDF6TJnyX8iXI1+WWkmzY0eHJHPCBPdPpU2fQF3GHFoyokCDQFl6dAOSKMk1DAXaZBr1X0AAIfkECQMA/wAsPgAXABAADQAACFkA/wkU6KZYp2KJwHVyM1AgEnBuwHWBKJHiwIIJSyEEpzFjsX9PKE6MOLJixI0dOaJESVKky5YqPcqMWbLmS3ArZ6Z0A8Wkz5oCD+pE2TDKT4o2GjZkqLRhQAAh+QQJBAD/ACxAABcAEAAMAAAIWQD/CfyXqFSxROAMFko0UOATcF3AuYEoESK3hgkPZkRoMBE2gRQnRhRZsUuofx03qlSIpKRLkhMTcdSYsmbLkSFzdrlYk6ZPgcVg6gS3ZuBKnwwb/hO6s2FAACH5BAkEAP8ALEMAFwAPAAwAAAhTAP8JLJQIXKliBUsJXPgPnBtwXRxClLgQoUGLBxMmavgwYkeJHv8lxEiy4JqJH1NCLJbx4siRHlHK9FiqkMubLQXG3CnRxsKXN90w/IcEJMWFAQEAOw==";const cn=(()=>{if(typeof document>"u")return;const t=document.createElement("div"),e=mn.render(o.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})(),zr=({rec:t,index:e,height:i,data:n,muted:a,activeIndex:l,videoPostConfig:s,videoPlayIcon:c})=>{const[r,u]=o.useState(!1),{bffEventReport:d,sxpParameter:f,waterFallData:h,openHashtag:A,bffFbReport:y}=je(),b=o.useRef(0),[x,v]=o.useState(!1),{isActive:g}=ln(),p=o.useRef(null),[T,k]=o.useState(""),[I,O]=o.useState(!1),m=o.useRef(),S=`pb-cache-video-${e}`,w=o.useRef(null),P=o.useRef(null),C=o.useRef(),L=o.useRef(),E=o.useRef(!0),V=o.useMemo(()=>s?.mode==="2",[s]),F=o.useMemo(()=>{var Y;return s?.mode==="2"?`translateY(-${50+((Y=s?.offsetTop)!==null&&Y!==void 0?Y:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[s]),D=o.useMemo(()=>{var Y;return((Y=t?.video)===null||Y===void 0?void 0:Y.cover)||T},[T,t]),N=o.useMemo(()=>V?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[V]),R=o.useMemo(()=>s?.bgWay==="1",[s]),M=o.useMemo(()=>R&&s?.bgColor?{backgroundColor:s?.bgColor}:{},[s,R]);o.useEffect(()=>{m?.current&&(m.current.muted=a)},[a,m?.current]);const j=o.useCallback(()=>{var Y;m?.current&&((Y=m?.current)===null||Y===void 0||Y.play())},[m?.current]),W=Ot("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),Z=o.useCallback(()=>{m?.current&&(O(!1),v(!0))},[]),J=o.useCallback(()=>At(void 0,void 0,void 0,function*(){var Y,K,ue,fe,he,le,Pe,Ge,Re,Ze,Qe,Ae,q;if(!m?.current)return;u(!1);const G=n[e];if(G&&(!((Y=m?.current)===null||Y===void 0)&&Y.duration)){b.current=((K=m?.current)===null||K===void 0?void 0:K.currentTime)||0;const ie=((fe=(ue=m?.current)===null||ue===void 0?void 0:ue.duration)!==null&&fe!==void 0?fe:0).toFixed(2),ne=((le=(he=m?.current)===null||he===void 0?void 0:he.currentTime)!==null&&le!==void 0?le:0).toFixed(2),se=E?.current?"0":"1";d?.({eventInfo:Object.assign({eventSubject:"playVideo",eventDescription:"User played the video",contentId:(Ge=(Pe=G?.video)===null||Pe===void 0?void 0:Pe.itemId)!==null&&Ge!==void 0?Ge:"",contentName:(Ze=(Re=G?.video)===null||Re===void 0?void 0:Re.title)!==null&&Ze!==void 0?Ze:"",playType:se,startTime:ne,videoDuration:ie,contentTags:JSON.stringify((Ae=(Qe=G?.video)===null||Qe===void 0?void 0:Qe.tags)!==null&&Ae!==void 0?Ae:[]),position:e+"",contentFormat:"video",traceInfo:(q=G?.video)===null||q===void 0?void 0:q.traceInfo},E?.current&&{loadTime:L?.current-C?.current+""})}),E.current=!1}}),[d,n,e,E,m?.current]),$=o.useCallback(()=>{var Y;if(!m?.current||T||!V||(m.current.style.objectFit="contain",!((Y=t?.video)===null||Y===void 0)&&Y.cover||!p||!p.current||R))return;const K=()=>{const ue=p?.current,fe=ue.getContext("2d"),he=window?.innerWidth,le=window?.innerHeight;ue.height=le,ue.width=he,fe?.drawImage(m.current,0,0,ue.width,ue.height),k(ue.toDataURL())};K(),setTimeout(()=>{K()},500)},[m.current,R,t,T,V]),ae=o.useCallback(()=>{m.current&&(L.current=new Date,J(),$())},[m.current,$,J]),de=o.useCallback(Y=>()=>{var K,ue,fe,he,le;if(!m.current||!x)return;const Pe=(K=m?.current)===null||K===void 0?void 0:K.paused;switch(Y){case"start":if(!Pe)return;(ue=m?.current)===null||ue===void 0||ue.play(),u(!1);break;case"pause":if(Pe)return;(fe=m?.current)===null||fe===void 0||fe.pause(),u(!0);break;default:Pe?(he=m?.current)===null||he===void 0||he.play():(le=m?.current)===null||le===void 0||le.pause(),u(!Pe);break}},[x,m?.current]),ee=o.useCallback(()=>{var Y,K,ue,fe,he,le,Pe,Ge,Re,Ze,Qe,Ae,q;if(!m?.current||l!==e)return;const G=n[e],ie=((K=(Y=m?.current)===null||Y===void 0?void 0:Y.duration)!==null&&K!==void 0?K:0).toFixed(2),ne=((fe=(ue=m?.current)===null||ue===void 0?void 0:ue.currentTime)!==null&&fe!==void 0?fe:0).toFixed(2);if(!((he=m?.current)===null||he===void 0)&&he.duration){const se=(((le=m?.current)===null||le===void 0?void 0:le.currentTime)-b.current).toFixed(2);d?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(Ge=(Pe=G?.video)===null||Pe===void 0?void 0:Pe.itemId)!==null&&Ge!==void 0?Ge:"",contentName:(Ze=(Re=G?.video)===null||Re===void 0?void 0:Re.title)!==null&&Ze!==void 0?Ze:"",endTime:ne,videoDuration:ie,playDuration:se,contentTags:JSON.stringify((Ae=(Qe=G?.video)===null||Qe===void 0?void 0:Qe.tags)!==null&&Ae!==void 0?Ae:[]),position:e+"",contentFormat:"video",traceInfo:(q=G?.video)===null||q===void 0?void 0:q.traceInfo}})}},[n,e,d,m?.current,l]),ke=o.useCallback(()=>{O(!0)},[]);o.useEffect(()=>{var Y,K,ue,fe,he,le,Pe,Ge,Re,Ze;if(!g)return;const Qe=t?.video.url;if(!Qe)return;const Ae=document.querySelector(`#${S}`);if(!Ae||(m.current=cn?.(Ae),!m?.current))return;C.current=new Date;const q=window?.Hls;let G=P?.current;return Qe.includes(".m3u8")&&q&&q.isSupported()?(G=new q,G?.loadSource(Qe),G?.attachMedia(m?.current),G?.on(q.Events.MANIFEST_PARSED,function(){var ie;(ie=m?.current)===null||ie===void 0||ie.play()})):m.current.src=Qe,(Y=m?.current)===null||Y===void 0||Y.setAttribute("x5-playsinline","true"),(K=m?.current)===null||K===void 0||K.setAttribute("webkit-playsinline","true"),(ue=m?.current)===null||ue===void 0||ue.addEventListener("loadedmetadata",ae),(fe=m?.current)===null||fe===void 0||fe.addEventListener("loadeddata",$),(he=m?.current)===null||he===void 0||he.addEventListener("play",J),(le=m?.current)===null||le===void 0||le.addEventListener("playing",Z),(Pe=m?.current)===null||Pe===void 0||Pe.addEventListener("pause",ee),(Ge=m?.current)===null||Ge===void 0||Ge.addEventListener("ended",j),(Re=m?.current)===null||Re===void 0||Re.addEventListener("canplay",j),(Ze=m?.current)===null||Ze===void 0||Ze.addEventListener("waiting",ke),()=>{var ie,ne,se,xe,Je,te,B,Ue,wt,$e;((ie=m?.current)===null||ie===void 0?void 0:ie.paused)||ee(),P?.current&&((ne=P?.current)===null||ne===void 0||ne.destroy()),v(!1),(se=m?.current)===null||se===void 0||se.removeEventListener("loadedmetadata",ae),(xe=m?.current)===null||xe===void 0||xe.removeEventListener("loadeddata",$),(Je=m?.current)===null||Je===void 0||Je.removeEventListener("play",J),(te=m?.current)===null||te===void 0||te.removeEventListener("playing",Z),(B=m?.current)===null||B===void 0||B.removeEventListener("pause",ee),(Ue=m?.current)===null||Ue===void 0||Ue.removeEventListener("ended",j),(wt=m?.current)===null||wt===void 0||wt.removeEventListener("canplay",j),($e=m?.current)===null||$e===void 0||$e.removeEventListener("waiting",ke)}},[g]),o.useEffect(()=>{var Y,K,ue,fe,he,le;!m?.current||!x||(g?(y?.({eventName:"ViewContent",product:(K=(Y=n?.[e])===null||Y===void 0?void 0:Y.video)===null||K===void 0?void 0:K.bindProduct}),y?.({eventName:"PageView",product:(fe=(ue=n?.[e])===null||ue===void 0?void 0:ue.video)===null||fe===void 0?void 0:fe.bindProduct}),(he=m?.current)===null||he===void 0||he.play()):(le=m?.current)===null||le===void 0||le.pause())},[g,x,m?.current]),o.useEffect(()=>{var Y,K,ue;if(!g||!m?.current)return;!((Y=m?.current)===null||Y===void 0?void 0:Y.paused)&&A?(K=m?.current)===null||K===void 0||K.pause():A||(ue=m?.current)===null||ue===void 0||ue.play()},[A,g,m?.current]),o.useEffect(()=>{if(!g)return;const Y=()=>{de("start")()},K=de("pause");return mt.on(dt.PAGE_DID_SHOW,Y),mt.on(dt.PAGE_DID_HIDE,K),()=>{mt.off(dt.PAGE_DID_SHOW,Y),mt.off(dt.PAGE_DID_HIDE,K)}},[de,g]);const _e=o.useMemo(()=>!f?.placeholder_image||x?null:o.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:f?.placeholder_image,alt:"placeholder image"}),[x,f?.placeholder_image]),Be=o.useMemo(()=>{if(!(!I||!x))return o.createElement("img",{style:{position:"absolute",top:"50%",left:0,right:0,transform:"translateY(-100%)",margin:"auto",width:"50px",height:"50px",objectFit:"contain"},src:Br,alt:"placeholder image"})},[I,x]);return o.useEffect(()=>{if(!m?.current)return;const Y=()=>{var K;l===e&&(!((K=t?.video)===null||K===void 0)&&K.url)&&m?.current&&!r&&de("pause")()};return window.addEventListener("beforeunload",Y),()=>{window.removeEventListener("beforeunload",Y)}},[l,e,t,m?.current,de,r]),t?.video?o.createElement(o.Fragment,null,V?o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:de(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},M)},!R&&x&&D&&o.createElement(Mt,{src:D,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},N)}),o.createElement("canvas",{ref:p,style:{display:"none"}}),o.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:F,left:0,right:0}},o.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.createElement("div",{className:"n-full-screen",ref:w,id:S,style:{width:"100%",height:"100%"}}),r&&o.createElement(Mt,{className:"clc-pb-video-pause",src:c??W,alt:"pause"}))),_e,Be):o.createElement("div",{className:"video-container",key:t?.video.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:de()},o.createElement("div",{className:"n-full-screen",ref:w,id:S,style:{width:"100%",height:"100%"}}),_e,Be,r&&o.createElement(Mt,{className:"clc-pb-video-pause",src:c??W,alt:"pause"}))):null};var Hr=o.memo(zr);const Wr=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:n,style:a})=>{const[l,s]=o.useState(t),c=r=>{r.stopPropagation();const u=!l;s(u),n?.(u)};return o.useEffect(()=>{s(t)},[t]),o.createElement("button",{style:a,"aria-label":"toggle button",className:"pb-toggle-button",onClick:c},o.createElement("img",{className:"pb-toggle-button-icon",alt:"toggle image",src:l?e:i}))};var ro=o.memo(Wr);const Xr=({imageUrl:t,style:e,duration:i=2e3})=>{const[n,a]=o.useState(!0);Jt(),o.useEffect(()=>{setTimeout(()=>{a(!1)},i)},[]);const l=Ot("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),s=o.useMemo(()=>n?"pb-fadeIn":"pb-fadeOut",[n]);return o.createElement("div",{hidden:!n,className:`pb-finger-wrap ${s}`,style:Object.assign(Object.assign({},e),{animationDuration:`${i/1e3}s`})},o.createElement("img",{src:t||l,alt:"finger swiper"}))},co=t=>{const{src:e,height:i,imgUrlsPostConfig:n,onShowFirstImage:a}=t,l=o.useMemo(()=>n?.mode==="2",[n]),s=o.useMemo(()=>{var d;return n?.mode==="2"?`translateY(-${50+((d=n?.offsetTop)!==null&&d!==void 0?d:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[n]),c=o.useMemo(()=>l?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[l]),r=o.useMemo(()=>n?.bgWay==="1",[n]),u=o.useMemo(()=>r&&n?.bgColor?{backgroundColor:n?.bgColor}:{},[n,r]);return o.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},u)},(!l||!r)&&o.createElement(Mt,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},c),onLoad:a}),l&&o.createElement(Mt,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:s,left:0,right:0},onLoad:a}))},Gr=({imgUrls:t,width:e,height:i,rec:n,index:a,onViewImageEndEvent:l,onViewImageStartEvent:s,imgUrlsPostConfig:c})=>{var r,u;const{isActive:d}=ln(),{sxpParameter:f,openHashtag:h}=je(),[A,y]=o.useState(!1),[b,x]=o.useState(),[v,g]=o.useState(0),p=o.useRef(),T=o.useRef(!0),k=new Date;o.useEffect(()=>{A&&d?(p?.current&&p.current.swiper.autoplay.start(),h?l(n):(s(a,T.current?b:void 0,!0),T.current=!1)):p?.current&&p.current.swiper.autoplay.stop()},[n,d,l,h,a,s,A,b]);const I=o.useCallback(P=>At(void 0,void 0,void 0,function*(){A||(x({loadTime:new Date-k+""}),y(!0))}),[A]);o.useEffect(()=>{if(!d)return;const P=()=>s(a,b),C=()=>l(n);return mt.on(dt.PAGE_DID_SHOW,P),mt.on(dt.PAGE_DID_HIDE,C),()=>{mt.off(dt.PAGE_DID_SHOW,P),mt.off(dt.PAGE_DID_HIDE,C)}},[d,b]);const O=o.useCallback(()=>{p.current&&p.current.swiper&&w&&p.current.swiper.autoplay.stop()},[]),m=o.useCallback(()=>{p.current&&p.current.swiper&&w&&p.current.swiper.autoplay.start()},[]),S=o.useCallback(P=>{g(P.activeIndex)},[]),w=o.useMemo(()=>Oi(),[]);return o.createElement("div",{onMouseEnter:O,onMouseLeave:m},o.createElement(oi,Object.assign({defaultValue:0,direction:"horizontal",modules:[Ci,Ii,...w?[Gi,Ui,Ei,Wi]:[]],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"}},w?{mousewheel:!0,keyboard:!0,navigation:!0,a11y:{enabled:!0}}:{},{loop:!0,ref:p,onSlideChange:S,className:Ie.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((P,C)=>o.createElement(zt,{key:C,"aria-hidden":C!==v},o.createElement(co,{src:!A&&C>0?"":P,height:i,imgUrlsPostConfig:c,onShowFirstImage:I})))))};var Ur=o.memo(Gr);const Yr=({tags:t,itemId:e,itemType:i,index:n,rec:a,hashTagStyle:l,hashTagRightMargin:s})=>{var c;const[r,u]=o.useState(!1),{setWaterFallData:d,setOpenHashtag:f,setCacheActiveIndex:h,waterFallData:A,setIsFromHashtag:y}=je(),b=x=>{A?y?.(!0):h?.(n),d?.(i?{hashTag:x,itemId:e,itemType:i,rec:a}:{hashTag:x,rec:a}),f?.(!0)};return o.useMemo(()=>t.length<=6?null:o.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>u(!r)},r?"show less":"show more"),[r,t]),o.createElement("div",{className:"clc-sxp-bottom-hashtag",style:{marginTop:`${(c=l?.marginTop)!==null&&c!==void 0?c:16}px`,width:s}},o.createElement(mi,null,t?.map((x,v)=>o.createElement(zt,{key:v,hidden:r?!1:v>=6,className:"clc-sxp-bottom-hashtag-item",style:l,onClick:()=>b(x),tag:"li",role:"listitem"},o.createElement("button",{className:"clc-sxp-bottom-hashtag-item-button","aria-label":x,"aria-describedby":x,dangerouslySetInnerHTML:{__html:Ee(`#${x}`,l)}})))))};var uo=o.memo(Yr),vo="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 hi(t){return o.memo(function(e){const{$store:i}=ko(),n=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 f=lt.get(i,d);return s=s.replace(r,f),f}})}),s},a=o.useMemo(()=>{var l,s,c;const{bindDatas:r}=e,u=tt(e,["bindDatas"]);if((l=r?.forEach)===null||l===void 0||l.call(r,d=>{if(d?.propKey&&d?.dataPath){const{propKey:f,dataPath:h}=d;h.replace(/{{\s*([\w.]+)\s*}}/g,(A,y)=>{var b,x;if(y){const v=(x=(b=lt.get(i,y))!==null&&b!==void 0?b:e[f])!==null&&x!==void 0?x:"";return u[f]=v,v}})}}),u){u.eventMap={};const d=lt.cloneDeep(u.event)||{};for(const f in d)if(Object.prototype.hasOwnProperty.call(d,f))try{d[f].value=n(d[f].value),u.eventMap[f]=new Function(d[f].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 o.createElement(t,Object.assign({},a,a.eventMap))})}const qr=({rec:t,index:e,tempMap:i,resolver:n,includesCtaType:a,isActive:l,value:s})=>{const{schema:c}=Jt();if(!t?.video)return null;const r=o.useMemo(()=>{var u,d,f,h,A,y,b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D,N,R,M;if(!(a&&!a?.includes((u=s?.item)===null||u===void 0?void 0:u.type))&&!(!a&&((d=s?.item)===null||d===void 0?void 0:d.category)==="cta")){if(((f=s?.item)===null||f===void 0?void 0:f.type)==="CommodityDiro"&&!(!((h=t?.video)===null||h===void 0)&&h.bindProduct)||((A=s?.item)===null||A===void 0?void 0:A.type)==="Commodity"&&!(!((y=t?.video)===null||y===void 0)&&y.bindProduct)||((b=s?.item)===null||b===void 0?void 0:b.type)==="CommodityDiroNew"&&!(!((x=t?.video)===null||x===void 0)&&x.bindProduct)||((v=s?.item)===null||v===void 0?void 0:v.type)==="MultiCommodity"&&!(!((p=(g=t?.video)===null||g===void 0?void 0:g.bindProducts)===null||p===void 0)&&p.length)||((T=s?.item)===null||T===void 0?void 0:T.type)==="MultiCommodityDiro"&&!(!((I=(k=t?.video)===null||k===void 0?void 0:k.bindProducts)===null||I===void 0)&&I.length)||((O=s?.item)===null||O===void 0?void 0:O.type)==="MultiCommodityDiroNew"&&!(!((S=(m=t?.video)===null||m===void 0?void 0:m.bindProducts)===null||S===void 0)&&S.length))return null;if(s&&n){const j=n[(w=s?.item)===null||w===void 0?void 0:w.type],W=hi(j),Z=(P=j?.extend)===null||P===void 0?void 0:P.defaulSetting,J=((E=(L=(C=s?.item)===null||C===void 0?void 0:C.event)===null||L===void 0?void 0:L.onClick)===null||E===void 0?void 0:E.linkType)==="externalLink";let $=lt.cloneDeep((V=s?.item)===null||V===void 0?void 0:V.style);if($.hasOwnProperty("backdropFilter")){let ae=$.backdropFilter;$.backdropFilter=`blur(${ae??0}px)`}return o.createElement(W,Object.assign({style:Object.assign(Object.assign(Object.assign({},Z?.style),$),{zIndex:50,marginLeft:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},Z?.textStyle),(F=s?.item)===null||F===void 0?void 0:F.textStyle),bindDatas:(N=(D=s?.item)===null||D===void 0?void 0:D.bindDatas)!==null&&N!==void 0?N:[]},Z?.props,(R=s?.item)===null||R===void 0?void 0:R.props,{event:((M=s?.item)===null||M===void 0?void 0:M.event)||{},schema:c,id:s?.id,key:s?.id,recData:t,isExternalLink:J,index:e,isActive:l}))}else return null}},[t,n,i,c,s?.id,l]);return o.createElement(o.Fragment,null,r)};var Di=o.memo(qr);const po=({nudge:t})=>{var e,i,n,a,l,s;return o.createElement(o.Fragment,null,t?.isOpen&&o.createElement("div",{className:"clc-sxp-bottom-nudge",style:{marginBottom:(e=t?.marginBottom)!==null&&e!==void 0?e:5,width:(n=(i=t?.size)===null||i===void 0?void 0:i.width)!==null&&n!==void 0?n:212,height:(l=(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?o.createElement("img",{src:t.icon,alt:"nudge icon",style:{height:"100%",objectFit:"cover",flexShrink:0}}):null,o.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:Ee(t?.content,t?.textStyle)}})))},Zr=({tagList:t=[],setActiveIndex:e,style:i})=>{const{getRecommendVideos:n,setRtcList:a,setCacheRtcList:l,setCacheActiveIndex:s,setLoading:c,swiperRef:r,waterFallData:u,bffEventReport:d,selectTag:f,setSelectTag:h}=je(),{backMainFeed:A}=It(),y=o.useMemo(()=>[gi,...t],[t]),b=x=>()=>{if(x===f)return;x!=="FOR U"?d?.({eventInfo:{eventSubject:"clickThemeTagsViewContents",eventDescription:"click Theme Tags View Contents",themeTags:`['${x}']`}}):A("theme",x,f);let v;x!==gi&&(v=x),c?.(!0),n?.({themeTag:v}).then(g=>{var p,T,k,I;mt.emit(dt.CHANGE_THEME_TAG,v),a?.((p=g?.recList)!==null&&p!==void 0?p:[]),l?.((T=g?.recList)!==null&&T!==void 0?T:[]),e?.(0),s?.(0),(I=(k=r?.current)===null||k===void 0?void 0:k.swiper)===null||I===void 0||I.slideTo(0)}).finally(()=>{c?.(!1)}),h?.(x)};return u||t.length<=0?null:o.createElement("div",{className:"clc-sxp-tagbar",style:i},o.createElement("div",{className:"clc-sxp-tagbar-list",style:{margin:"auto",gap:24}},y.map(x=>o.createElement("button",{className:`clc-sxp-tagbar-list-item ${x===f?"clc-sxp-tagbar-list-item-active":""}`,key:x,"aria-label":x,onClick:b(x)},x))))};var mo=o.memo(Zr);const Kr=({resolver:t,globalConfig:e})=>{var i,n;const a=o.useMemo(()=>Ro(),[]),l=t?.Display,s=hi(l),c=(n=(i=e?.consentPopup)===null||i===void 0?void 0:i[0])===null||n===void 0?void 0:n.item;return o.createElement(s,Object.assign({},c?.props,{style:c?.style,event:c?.event||{},contsentState:a}))};var Jr=o.memo(Kr);const Qr=({data:t,minusHeight:e,tagHeight:i,onClick:n})=>{var a,l,s,c,r;return o.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:n},o.createElement("img",{src:t?.icon||vo,alt:"back button",width:100,style:{objectFit:"cover"}}))};var fo=o.memo(Qr);const ho=({globalConfig:t,descStyle:e,containerHeight:i=window.innerHeight,containerWidth:n=window.innerWidth,tempMap:a,resolver:l,data:s=[],ctaType:c,tipText:r,nudge:u,_schema:d,hashTagStyle:f,hashTagRightMargin:h,tagList:A=[],defaultData:y})=>{var b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D,N,R,M,j,W,Z;const J=Ot("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),$=Ot("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png"),{schema:ae}=Jt(),{openMultiPosts:de}=sn(),[ee,ke]=o.useState(0),_e=o.useRef(0),[Be,Y]=o.useState(!0),K=o.useRef(),[ue,fe]=o.useState(!1),[he,le]=o.useState(!1),[Pe,Ge]=o.useState(new Date().getTime()),Re=o.useRef(!1),[Ze,Qe]=o.useState(2),{loadVideos:Ae,bffEventReport:q,loading:G,setPopupDetailData:ie,ctaEvent:ne,swiperRef:se,waterFallData:xe,setOpenHashtag:Je,appDomain:te,openHashtag:B,loadingImage:Ue,isFromHashtag:wt,popupDetailData:$e,bffFbReport:bt,curTime:ft,h5EnterLink:St,isShowConsent:Vt,selectTag:Dt,isPreview:jt,isEditor:kt,cacheRtcList:Lt,setRtcList:xt,cacheActiveIndex:it,rtcList:Ft,isNoMoreData:Fe,channel:ht,refreshFeSession:pe}=je(),{backMainFeed:ye,productView:Le,jumpToWeb:Tt}=It(),Kt=o.useMemo(()=>s.length>0&&!G&&(_o()||t?.enableSwiperTip),[s,G,t?.enableSwiperTip]);o.useEffect(()=>{pe?.(!0)},[]),o.useEffect(()=>{if(s?.length>0){const _=new Date;K.current=_}},[s?.length]);const Xt=o.useCallback(()=>{var _,H,U;const oe=(H=(_=y?.data)===null||_===void 0?void 0:_.sxpPageConf)===null||H===void 0?void 0:H.globalConfig;if(!((U=oe?.session)===null||U===void 0)&&U.enable||Vi(),St?.(),s.length>0){const Q=new Date;K.current=Q}},[s.length,St,y]);o.useEffect(()=>{var _;if(!c||c?.length<1)return;const H=s?.findIndex(U=>{var oe,Q,be,re,ce,De,Ne,Ve,me;const we=c?.[0];return we==="\u591A\u5546\u54C1CTA"?((oe=U?.video)===null||oe===void 0?void 0:oe.bindProducts)&&((be=(Q=U?.video)===null||Q===void 0?void 0:Q.bindProducts)===null||be===void 0?void 0:be.length)>0:we==="\u5546\u54C1CTA"?(re=U?.video)===null||re===void 0?void 0:re.bindProduct:((De=(ce=U?.video)===null||ce===void 0?void 0:ce.bindCta)===null||De===void 0?void 0:De.itemId)===we&&(((Ne=U?.video)===null||Ne===void 0?void 0:Ne.url)||((me=(Ve=U?.video)===null||Ve===void 0?void 0:Ve.imgUrls)===null||me===void 0?void 0:me.length))})||0;H!==-1&&((_=se?.current)===null||_===void 0||_.swiper.slideTo(H))},[s,c,se]);const Gt=o.useCallback(_=>{var H,U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze,et,ot,pt,Me,ut,Et;const Ce=s?.[ee];let vt="";$e&&(!((U=(H=Ce?.video)===null||H===void 0?void 0:H.bindProducts)===null||U===void 0)&&U.length||!((oe=Ce?.video)===null||oe===void 0)&&oe.bindProduct)?vt="pdpPage":$e&&((ce=a?.[(re=(be=(Q=Ce?.video)===null||Q===void 0?void 0:Q.bindCta)===null||be===void 0?void 0:be.itemId)!==null&&re!==void 0?re:""].item)===null||ce===void 0?void 0:ce.type)==="Appoint"?vt="formPage":wt?vt="hashTagPage":!((De=Ce?.video)===null||De===void 0)&&De.url?vt="videoPage":!((Ne=Ce?.video)===null||Ne===void 0)&&Ne.imgUrls&&(!((me=(Ve=Ce?.video)===null||Ve===void 0?void 0:Ve.imgUrls)===null||me===void 0)&&me.length)?vt="imagePage":Ce?.product&&(vt="productPage"),q?.({eventInfo:{sessionDuration:Math.floor((new Date-ft.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(we=Ce?.video)===null||we===void 0?void 0:we.itemId,productId:(at=Ce?.product)===null||at===void 0?void 0:at.itemId,position:ee+"",fromKName:_||vt,fromKPage:location?.href,ctatId:(ot=(et=(ze=Ce?.video)===null||ze===void 0?void 0:ze.bindCta)===null||et===void 0?void 0:et.itemId)!==null&&ot!==void 0?ot:"",traceInfo:(Et=(Me=(pt=Ce?.video)===null||pt===void 0?void 0:pt.traceInfo)!==null&&Me!==void 0?Me:(ut=Ce?.product)===null||ut===void 0?void 0:ut.traceInfo)!==null&&Et!==void 0?Et:""}})},[s,q,ee,$e,a,wt,ft]);o.useEffect(()=>{const _=s?.[ee],H=()=>{const U=!B&&!Vt;document.visibilityState==="hidden"?(U&&(mt.emit(dt.PAGE_DID_HIDE,_),Ke(_)),(t?.playbook!=="organic menu"||ee!==0||ht)&&(pe?.(!1,Gt)||Gt())):document.visibilityState==="visible"&&(Re.current===!0&&(Ge(new Date().getTime()),Re.current=!1),pe?.(!1,Gt),Xt(),U&&(mt.emit(dt.PAGE_DID_SHOW,_),ye("external",Dt)))};return document.addEventListener("visibilitychange",H),()=>{document.removeEventListener("visibilitychange",H)}},[ee,q,s,Xt,$e,wt,a,ft,ye,B,Vt,Dt,ht,Gt,pe]);const ti=o.useCallback(lt.debounce(()=>{pe?.(!1,Gt)},1e3),[Gt,pe]);o.useEffect(()=>{const _=["touchstart","touchcancel"];return _.forEach(H=>{window.addEventListener(H,ti)}),()=>{_.forEach(H=>{window.removeEventListener(H,ti)})}},[ti]);const ii=o.useMemo(()=>{let _=0;return A.length>0&&(_+=45,xe&&(_-=45)),_},[A,xe]),Bt=o.useMemo(()=>{let _=0;return t?.logoUrl&&t?.isShowLogo&&(_+=56),_},[t]),Ut=o.useMemo(()=>i-Bt-ii,[Bt,i,ii]),z=o.useMemo(()=>{var _;const H=ee===0&&!xe&&!kt?[(_=s?.[0])!==null&&_!==void 0?_:null]:s?.map((U,oe)=>ee===oe||oe-1===ee||oe+1===ee?U:null);return H?.length?!xe&&!Fe?H.concat([{loading:!0}]):H:[]},[s,ee,xe,kt,Fe]),X=o.useMemo(()=>{var _,H,U,oe;if(t?.logoUrl&&t?.isShowLogo){const Q=(H=(_=t?.logoBar)===null||_===void 0?void 0:_.onClick)===null||H===void 0?void 0:H.value,be=((oe=(U=t?.logoBar)===null||U===void 0?void 0:U.onClick)===null||oe===void 0?void 0:oe.linkType)==="externalLink",re=z[ee];return o.createElement("div",Object.assign({className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},Q&&{onClick:ce=>{var De,Ne,Ve,me;be&&Tt(ce,re,(De=re?.video)===null||De===void 0?void 0:De.bindProduct,(Ne=re?.video)===null||Ne===void 0?void 0:Ne.bindCta,ee,((Ve=re?.product)===null||Ve===void 0?void 0:Ve.traceInfo)||((me=re?.video)===null||me===void 0?void 0:me.traceInfo)),new Function(Q)()}}),o.createElement("img",{src:t?.logoUrl,alt:"logo"}))}return null},[t,ee,z]),ve=o.useCallback((_,H)=>{var U,oe,Q,be,re,ce,De,Ne,Ve,me;return _==="organic menu"?o.createElement(rn,Object.assign({recData:s?.[1]},(Q=(oe=(U=t?.multiPosts)===null||U===void 0?void 0:U[0])===null||oe===void 0?void 0:oe.item)===null||Q===void 0?void 0:Q.props,(ce=(re=(be=t?.multiPosts)===null||be===void 0?void 0:be[0])===null||re===void 0?void 0:re.item)===null||ce===void 0?void 0:ce.event)):!((De=_?.video)===null||De===void 0)&&De.url?o.createElement(Hr,{key:Pe,rec:_,index:H,muted:Be,data:s,height:Ut,activeIndex:ee,videoPostConfig:t?.videoPost,videoPlayIcon:t?.videoPlayIcon}):!((Ne=_?.video)===null||Ne===void 0)&&Ne.imgUrls?o.createElement(Ur,{key:_?.video.itemId,imgUrls:_?.video.imgUrls,width:n,height:Ut,rec:_,index:H,onViewImageEndEvent:We,onViewImageStartEvent:st,imgUrlsPostConfig:t?.imgUrlsPost}):_.product&&Array.isArray(t?.productPost)&&((Ve=t?.productPost)===null||Ve===void 0?void 0:Ve.length)>0?(me=t?.productPost)===null||me===void 0?void 0:me.map((we,at)=>{var ze,et,ot,pt,Me,ut,Et,Ce;const vt=l[(ze=we?.item)===null||ze===void 0?void 0:ze.type],Yt=hi(vt),Ct=(et=vt?.extend)===null||et===void 0?void 0:et.defaulSetting;return o.createElement(Yt,Object.assign({key:`${H}${at}`,textStyle:Object.assign(Object.assign({},Ct?.textStyle),(ot=we?.item)===null||ot===void 0?void 0:ot.textStyle),bindDatas:(Me=(pt=we?.item)===null||pt===void 0?void 0:pt.bindDatas)!==null&&Me!==void 0?Me:[]},Ct?.props,(ut=we?.item)===null||ut===void 0?void 0:ut.props,{event:((Et=we?.item)===null||Et===void 0?void 0:Et.event)||{},schema:ae,id:we?.id,viewTime:K.current,rec:_,isPost:!0,tipText:r,style:Object.assign(Object.assign(Object.assign({},Ct?.style),(Ce=we?.item)===null||Ce===void 0?void 0:Ce.style),{height:"100%",overflow:"auto"}),index:H,isActive:ee===H}))}):null},[n,s,Ut,Be,ee,t?.productPost,t?.videoPlayIcon,K,r,l,ae,Pe]),Te=o.useCallback(_=>{le(_)},[]),ge=o.useMemo(()=>he?{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"},[he]),Se=o.useCallback((_,H)=>{var U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze;if(_?.video){let et=null;!((oe=(U=_?.video)===null||U===void 0?void 0:U.bindProducts)===null||oe===void 0)&&oe.length?et="\u591A\u5546\u54C1CTA":!((Q=_?.video)===null||Q===void 0)&&Q.bindProduct?et="\u5546\u54C1CTA":et=(re=(be=_?.video)===null||be===void 0?void 0:be.bindCta)===null||re===void 0?void 0:re.itemId;const ot=a?.[et];return o.createElement(o.Fragment,null,((ce=_?.video)===null||ce===void 0?void 0:ce.title)&&!he&&o.createElement("div",{className:"clc-sxp-bottom-shadow"}),o.createElement("div",{className:"clc-sxp-bottom",style:{marginBottom:`${(De=t?.bottomInfoDist)!==null&&De!==void 0?De:40}px`}},o.createElement(po,{nudge:u}),t?.isShowCTA===void 0||t?.isShowCTA?o.createElement("div",{className:"clc-sxp-bottom-card"},o.createElement(Di,{rec:_,index:H,tempMap:a,resolver:l,isActive:H===ee,value:ot})):null,o.createElement("div",null,o.createElement(Mi,{className:"clc-sxp-bottom-text",isPost:!0,foldText:r?.foldText,unfoldText:r?.unfoldText,text:(Ve=(Ne=_?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&Ve!==void 0?Ve:"",style:Object.assign(Object.assign({},e),{textShadow:t?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"}),onChange:Te}),o.createElement(Di,{rec:_,index:H,tempMap:a,resolver:l,includesCtaType:["AniLink"],isActive:H===ee,value:ot}),o.createElement(uo,{index:ee,tags:(we=(me=_?.video)===null||me===void 0?void 0:me.hashTags)!==null&&we!==void 0?we:[],itemId:(at=_?.video)===null||at===void 0?void 0:at.itemId,itemType:!((ze=_?.video)===null||ze===void 0)&&ze.itemId?"VIDEO":null,rec:_,hashTagStyle:f,hashTagRightMargin:n-(h??0)}))),o.createElement(Di,{rec:_,index:H,tempMap:a,resolver:l,includesCtaType:["AniLinkPopup"],isActive:H===ee,value:ot}))}return null},[e,ee,a,l,r,u,f,t,Te,he,ge]),Oe=o.useCallback((_,H,U)=>{var oe,Q,be,re;if(!t?.isShowLike||!U)return;let ce=(oe=t?.likeIconY)!==null&&oe!==void 0?oe:400;return xe&&ce<40&&t?.likeIconYPosit==="top"&&(ce+=40),t?.likeIconYPosit==="top"&&(ce+=Bt),_?.video?o.createElement(so,{key:_.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:_.isCollected,recData:_,className:"clc-sxp-like-button",style:{position:t?.likeIconFixed?"fixed":"absolute",[(Q=t.likeIconXPosit)!==null&&Q!==void 0?Q:"right"]:(be=t.likeIconX)!==null&&be!==void 0?be:0,[(re=t.likeIconYPosit)!==null&&re!==void 0?re:"bottom"]:ce},position:H}):null},[t,xe]),We=_=>{var H,U,oe,Q,be,re;if(!(!((H=_?.video)===null||H===void 0)&&H.url)&&(!((U=_?.video)===null||U===void 0)&&U.imgUrls)){const ce=Date.now(),De=_e.current===0?0:(ce-_e.current)/1e3;q?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(Q=(oe=_?.video)===null||oe===void 0?void 0:oe.itemId)!==null&&Q!==void 0?Q:"",contentName:(be=_?.video.title)!==null&&be!==void 0?be:"",imageEndTime:`${ce}`,playDuration:`${De}`,contentTags:JSON.stringify((re=_?.video.tags)!==null&&re!==void 0?re:[]),position:ee+"",contentFormat:"image",traceInfo:_?.video.traceInfo}})}},Xe=(_,H)=>{var U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze,et,ot,pt,Me,ut,Et,Ce,vt,Yt;if(jt||xe)return;const Ct=new Date-ft.current;if(t?.openSlideSkip&&Ct>=((U=t?.slideSkipStartTime)!==null&&U!==void 0?U:0)&&Lo()&&_){const li=((be=(Q=(oe=_?.video)===null||oe===void 0?void 0:oe.bindProducts)===null||Q===void 0?void 0:Q[0])===null||be===void 0?void 0:be.link)||((ce=(re=_?.video)===null||re===void 0?void 0:re.bindProduct)===null||ce===void 0?void 0:ce.link)||((De=_?.product)===null||De===void 0?void 0:De.link),qe=_?.product||((Ne=_?.video)===null||Ne===void 0?void 0:Ne.bindProduct)||((me=(Ve=_?.video)===null||Ve===void 0?void 0:Ve.bindProducts)===null||me===void 0?void 0:me[0]);if(li){let ui=null;!((we=_?.video)===null||we===void 0)&&we.url?ui="video":!((ze=(at=_?.video)===null||at===void 0?void 0:at.imgUrls)===null||ze===void 0)&&ze.length&&(ui="image"),q?.({eventInfo:{eventSubject:"swipeToWeb",eventDescription:"User swiped to web",productId:(et=qe?.itemId)!==null&&et!==void 0?et:"",productName:(ot=qe?.title)!==null&&ot!==void 0?ot:"",price:qe?.price?qe?.price+"":"0",productCollection:(pt=qe?.collection)!==null&&pt!==void 0?pt:"",contentTags:qe?.tags?JSON.stringify(qe?.tags):"",position:H+"",contentId:(ut=(Me=_?.video)===null||Me===void 0?void 0:Me.itemId)!==null&&ut!==void 0?ut:"",traceInfo:(Yt=(Ce=(Et=_?.video)===null||Et===void 0?void 0:Et.traceInfo)!==null&&Ce!==void 0?Ce:(vt=_?.product)===null||vt===void 0?void 0:vt.traceInfo)!==null&&Yt!==void 0?Yt:"",contentFormat:ui}}),Re.current=!0,window.location.href=window.getJointUtmLink(li)}}},Ye=_=>{var H,U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze,et,ot,pt;const Me=s[_.previousIndex];if(!Me)return;let ut=null;!((H=Me?.video)===null||H===void 0)&&H.url?ut="video":!((oe=(U=Me?.video)===null||U===void 0?void 0:U.imgUrls)===null||oe===void 0)&&oe.length&&(ut="image"),_.previousIndex-_.activeIndex<0?(q?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(be=(Q=Me?.video)===null||Q===void 0?void 0:Q.itemId)!==null&&be!==void 0?be:"",productId:(ce=(re=Me?.product)===null||re===void 0?void 0:re.itemId)!==null&&ce!==void 0?ce:"",requestId:null,traceInfo:(Ne=(De=Me?.video)===null||De===void 0?void 0:De.traceInfo)!==null&&Ne!==void 0?Ne:"",contentFormat:ut,position:((Ve=_.previousIndex)!==null&&Ve!==void 0?Ve:0)+""}}),We(Me),Xe(Me,_.previousIndex)):(q?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(we=(me=Me?.video)===null||me===void 0?void 0:me.itemId)!==null&&we!==void 0?we:"",productId:(ze=(at=Me.product)===null||at===void 0?void 0:at.itemId)!==null&&ze!==void 0?ze:"",requestId:null,traceInfo:(ot=(et=Me?.video)===null||et===void 0?void 0:et.traceInfo)!==null&&ot!==void 0?ot:"",contentFormat:ut,position:((pt=_.previousIndex)!==null&&pt!==void 0?pt:0)+""}}),We(Me)),Ke(Me),K.current=new Date},Ke=_=>{var H,U,oe;!(!((H=_?.video)===null||H===void 0)&&H.url)&&!(!((U=_?.video)===null||U===void 0)&&U.imgUrls)&&_?.product&&Le(_,_.product,(oe=_?.product)===null||oe===void 0?void 0:oe.bindCta,K.current,ee)};o.useEffect(()=>{const _=s[ee];B?Ke(_):K.current=new Date},[B,s,ee]);const st=(_,H,U)=>{var oe,Q,be,re,ce,De,Ne,Ve;const me=s[_];if(!(!((oe=me?.video)===null||oe===void 0)&&oe.url)&&(!((Q=me?.video)===null||Q===void 0)&&Q.imgUrls)){const we=Date.now();_e.current=we,q?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(re=(be=me?.video)===null||be===void 0?void 0:be.itemId)!==null&&re!==void 0?re:"",contentName:(ce=me?.video.title)!==null&&ce!==void 0?ce:"",imageStartTime:`${we}`,contentTags:JSON.stringify((De=me?.video.tags)!==null&&De!==void 0?De:[]),position:_+"",contentFormat:"image",traceInfo:me?.video.traceInfo,loadTime:H?.loadTime}}),U&&(bt?.({eventName:"ViewContent",product:(Ne=me?.video)===null||Ne===void 0?void 0:Ne.bindProduct}),bt?.({eventName:"PageView",product:(Ve=me?.video)===null||Ve===void 0?void 0:Ve.bindProduct}))}},nt=o.useCallback(_=>{var H,U,oe,Q,be,re;if(!_)return;let ce=(H=t?.muteIconY)!==null&&H!==void 0?H:23;return xe&&ce<40&&t?.muteIconYPosit==="top"&&(ce+=40),t?.muteIconYPosit==="top"&&(ce+=Bt),(t?.isShowMute===void 0||t?.isShowMute===!0)&&o.createElement(ro,{style:{position:t?.muteIconFixed?"fixed":"absolute",visibility:!((oe=(U=z?.[ee])===null||U===void 0?void 0:U.video)===null||oe===void 0)&&oe.url?"visible":"hidden",zIndex:999,transform:"translate3d(0px,0px,0px)",[(Q=t?.muteIconXPosit)!==null&&Q!==void 0?Q:"right"]:(be=t?.muteIconX)!==null&&be!==void 0?be:0,[(re=t?.muteIconYPosit)!==null&&re!==void 0?re:"bottom"]:ce},defaultValue:Be,activeIcon:t?.unMuteIcon?t?.unMuteIcon:J,unactiveIcon:t?.muteIcon?t?.muteIcon:$,onChange:Y})},[t,z,ee,Be,xe]),rt=o.useMemo(()=>G?o.createElement("div",{style:{height:Ut,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},o.createElement("img",{width:64,height:64,src:Ue,alt:"loading...",style:{objectFit:"contain"}})):z?.map((_,H)=>o.createElement(zt,{key:H,virtualIndex:H,style:{overflow:"hidden"}},_&&o.createElement(o.Fragment,null,_?.loading?o.createElement("div",{style:{height:Ut,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},o.createElement("img",{width:64,height:64,src:Ue,alt:"loading...",style:{objectFit:"contain"}})):o.createElement(o.Fragment,null,Se(_,H),Oe(_,H,!t?.likeIconFixed),nt(!t?.muteIconFixed),ve(_,H))))),[n,s,Ut,G,Se,ve,z,Ue,Pe,nt]);return o.createElement("div",{id:"sxp-render",className:"clc-sxp-container",style:Object.assign({},t?.textUnderlineOffset&&{textUnderlineOffset:`${t?.textUnderlineOffset}px`})},xe&&o.createElement(to,{icon:vo,styles:{background:"rgba(0,0,0,.3)",color:"#fff",top:`${Bt}px`},textStyle:Object.assign(Object.assign({},(p=(g=(v=(x=(b=t?.hashTag)===null||b===void 0?void 0:b[0])===null||x===void 0?void 0:x.item)===null||v===void 0?void 0:v.props)===null||g===void 0?void 0:g.textStyles)===null||p===void 0?void 0:p.hashTagTitle),{color:"#fff"}),onClose:()=>{!lt.isEqual(Ft,Lt)&&Lt&&Lt?.length&&xt?.(Lt),Je?.(!0)}}),X,o.createElement(mo,{tagList:A,setActiveIndex:ke,style:{top:Bt}}),((T=t?.backButton)===null||T===void 0?void 0:T.enable)&&!ht&&!de&&!xe&&o.createElement(fo,{data:t?.backButton,minusHeight:Bt,tagHeight:ii,onClick:()=>history?.back()}),(((S=(m=(O=(I=(k=t?.multiPosts)===null||k===void 0?void 0:k[0])===null||I===void 0?void 0:I.item)===null||O===void 0?void 0:O.props)===null||m===void 0?void 0:m.backButton)===null||S===void 0?void 0:S.enable)&&ht||de)&&!xe&&o.createElement(fo,{data:(L=(C=(P=(w=t?.multiPosts)===null||w===void 0?void 0:w[0])===null||P===void 0?void 0:P.item)===null||C===void 0?void 0:C.props)===null||L===void 0?void 0:L.backButton,minusHeight:Bt,tagHeight:ii,onClick:()=>{var _,H;const U=z?.[ee];q?.({eventInfo:{eventSubject:"backMultiPostClick",eventDescription:"backMultiPostClick",traceInfo:((_=U?.video)===null||_===void 0?void 0:_.traceInfo)||((H=U?.product)===null||H===void 0?void 0:H.traceInfo)||""}}),location?.reload()}}),Kt?o.createElement(Xr,{imageUrl:t?.swipeTipIcon,style:{top:`${50-((E=t?.swipeTipOffset)!==null&&E!==void 0?E:0)}%`},duration:t?.swiperTipAniDur}):null,o.createElement(oi,{style:{marginTop:ii},ref:se,onSlideChange:()=>{se.current.swiper.allowTouchMove=!1,setTimeout(()=>{se.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:_=>{ke(_.activeIndex),!B&&(Ye(_),!(xe||kt)&&_?.activeIndex+1>=s?.length&&(ue||(fe(!0),Ae?.(Ze).then(H=>{var U;fe(!1),H&&((U=H?.recList)===null||U===void 0?void 0:U.length)>0&&Qe(Ze+1)}))))},direction:"vertical",height:Ut},rt,Oe(z[ee],ee,!!t?.likeIconFixed),nt(!!t?.muteIconFixed)),o.createElement(no,Object.assign({},(D=(F=(V=t?.hashTag)===null||V===void 0?void 0:V[0])===null||F===void 0?void 0:F.item)===null||D===void 0?void 0:D.props)),o.createElement(Jr,{resolver:l,globalConfig:t}),de&&o.createElement(rn,Object.assign({},(M=(R=(N=t?.multiPosts)===null||N===void 0?void 0:N[0])===null||R===void 0?void 0:R.item)===null||M===void 0?void 0:M.props,(Z=(W=(j=t?.multiPosts)===null||j===void 0?void 0:j[0])===null||W===void 0?void 0:W.item)===null||Z===void 0?void 0:Z.event,{style:{position:"fixed",top:0,left:0,right:0}})))},$r=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:n,rec:a,index:l})=>o.createElement(oi,{defaultValue:0,direction:"horizontal",modules:[Ci,Ii],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(s=>o.createElement(zt,{key:s},o.createElement(co,{src:s,height:i,imgUrlsPostConfig:n}))));var ed=o.memo($r);const td=({rec:t,index:e,height:i,data:n,muted:a,activeIndex:l,videoPostConfig:s,width:c})=>{const[r,u]=o.useState(!1),d=o.useRef(null),{bffEventReport:f,sxpParameter:h,waterFallData:A,openHashtag:y}=je(),b=o.useRef(0),[x,v]=o.useState(!1),[g,p]=o.useState(!0),T=o.useRef(null),[k,I]=o.useState("");o.useEffect(()=>{d.current&&(d.current.muted=a)},[a]);const O=o.useCallback(()=>{var R;(R=d.current)===null||R===void 0||R.play()},[]),m=Ot("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),S=o.useCallback(()=>{var R,M,j,W,Z,J,$,ae,de,ee,ke,_e,Be;u(!1);const Y=n[e];if(Y&&(!((R=d?.current)===null||R===void 0)&&R.duration)){b.current=((M=d?.current)===null||M===void 0?void 0:M.currentTime)||0;const K=((W=(j=d.current)===null||j===void 0?void 0:j.duration)!==null&&W!==void 0?W:0).toFixed(2),ue=((J=(Z=d.current)===null||Z===void 0?void 0:Z.currentTime)!==null&&J!==void 0?J:0).toFixed(2),fe=g?"0":"1";f?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(ae=($=Y?.video)===null||$===void 0?void 0:$.itemId)!==null&&ae!==void 0?ae:"",contentName:(ee=(de=Y?.video)===null||de===void 0?void 0:de.title)!==null&&ee!==void 0?ee:"",playType:fe,startTime:ue,videoDuration:K,contentTags:JSON.stringify((_e=(ke=Y?.video)===null||ke===void 0?void 0:ke.tags)!==null&&_e!==void 0?_e:[]),position:e+"",contentFormat:"video",traceInfo:(Be=Y?.video)===null||Be===void 0?void 0:Be.traceInfo}}),p(!1)}},[f,n,e,g]),w=o.useCallback(()=>{v(!0)},[]),P=o.useCallback(R=>()=>{var M,j,W,Z,J;if(!x)return;const $=(M=d.current)===null||M===void 0?void 0:M.paused;switch(R){case"start":if(!$)return;(j=d.current)===null||j===void 0||j.play(),u(!1);break;case"pause":if($)return;(W=d.current)===null||W===void 0||W.pause(),u(!0);break;default:$?(Z=d.current)===null||Z===void 0||Z.play():(J=d.current)===null||J===void 0||J.pause(),u(!$);break}},[x]),C=o.useCallback(()=>{var R,M,j,W,Z,J,$,ae,de,ee,ke,_e,Be;const Y=n[e],K=((M=(R=d.current)===null||R===void 0?void 0:R.duration)!==null&&M!==void 0?M:0).toFixed(2),ue=((W=(j=d.current)===null||j===void 0?void 0:j.currentTime)!==null&&W!==void 0?W:0).toFixed(2);if(!((Z=d?.current)===null||Z===void 0)&&Z.duration){const fe=(((J=d?.current)===null||J===void 0?void 0:J.currentTime)-b.current).toFixed(2);f?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(ae=($=Y?.video)===null||$===void 0?void 0:$.itemId)!==null&&ae!==void 0?ae:"",contentName:(ee=(de=Y?.video)===null||de===void 0?void 0:de.title)!==null&&ee!==void 0?ee:"",endTime:ue,videoDuration:K,playDuration:fe,contentTags:JSON.stringify((_e=(ke=Y?.video)===null||ke===void 0?void 0:ke.tags)!==null&&_e!==void 0?_e:[]),position:e+"",contentFormat:"video",traceInfo:(Be=Y?.video)===null||Be===void 0?void 0:Be.traceInfo}})}},[n,e,f]),L=o.useMemo(()=>s?.mode==="2",[s]),E=o.useMemo(()=>{var R;return s?.mode==="2"?`translateY(-${50+((R=s?.offsetTop)!==null&&R!==void 0?R:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[s]),V=o.useMemo(()=>{var R;return((R=t?.video)===null||R===void 0?void 0:R.cover)||k},[k,t]),F=o.useCallback(()=>{if(!T||!d||!d.current||!T.current)return;const R=d?.current,M=T?.current,j=M.getContext("2d"),W=window?.innerWidth,Z=window?.innerHeight;M.height=Z,M.width=W,j?.drawImage(R,0,0,M.width,M.height),I(M.toDataURL())},[]);o.useEffect(()=>{var R,M,j,W;if(d.current){if(u(!1),!d.current.src){const Z=t?.video.url;if(Z.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const J=new window.Hls;J.loadSource(Z),J.attachMedia(d.current)}else d.current.canPlayType("application/vnd.apple.mpegurl"),d.current.src=Z;else d.current.src=Z;d.current.setAttribute("x5-playsinline","true"),d.current.setAttribute("webkit-playsinline","true")}return(R=d.current)===null||R===void 0||R.addEventListener("loadedmetadata",w),(M=d.current)===null||M===void 0||M.addEventListener("canplay",w),(j=d.current)===null||j===void 0||j.addEventListener("playing",S),(W=d.current)===null||W===void 0||W.addEventListener("loadeddata",F),()=>{var Z,J,$,ae;(Z=d.current)===null||Z===void 0||Z.removeEventListener("loadedmetadata",w),(J=d.current)===null||J===void 0||J.removeEventListener("canplay",w),($=d.current)===null||$===void 0||$.removeEventListener("playing",S),(ae=d.current)===null||ae===void 0||ae.removeEventListener("loadeddata",F)}}},[w,S,t?.video,F]);const D=o.useMemo(()=>!h?.placeholder_image||x?null:o.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:h?.placeholder_image,alt:"video poster"}),[x,h?.placeholder_image]);o.useEffect(()=>{const R=()=>{var M,j;l===e&&(!((M=t?.video)===null||M===void 0)&&M.url)&&(!((j=d?.current)===null||j===void 0)&&j.src)&&!r&&P("pause")()};return window.addEventListener("beforeunload",R),()=>{window.removeEventListener("beforeunload",R)}},[l,e,t,d,P,r]);const N=o.useMemo(()=>L?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[L]);return t?.video?o.createElement(o.Fragment,null,L?o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:P(),style:{position:"relative",width:c,height:i,overflow:"hidden"}},o.createElement(Mt,{src:V,style:Object.assign({height:i,width:c,objectFit:"cover"},N)}),o.createElement("canvas",{ref:T,style:{display:"none"}}),o.createElement("div",{style:{position:"absolute",width:c,height:i,top:"50%",transform:E,left:0,right:0}},o.createElement("div",{style:{position:"relative",width:c,height:"100%"}},o.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:C,onEnded:O,style:{width:"100%",height:i,objectFit:"contain"}}),o.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:m,alt:"video pause image"}))),D):o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:P(),style:{position:"relative",width:c,height:i,overflow:"hidden"}},o.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:C,onEnded:O}),D,o.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:m,alt:"video pause image"}))):null};var id=o.memo(td);const un={};Object.values(dn).forEach(t=>{un[t.extend.type]=t});const nd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",od="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",ld=({data:t=[],globalConfig:e,tipText:i,nudge:n,tempMap:a,descStyle:l,hashTagStyle:s,containerHeight:c=664,containerWidth:r=375,appDomain:u,tagList:d=[]})=>{const f=o.useMemo(()=>{let I=0;return e?.logoUrl&&e?.isShowLogo&&(I+=45),d.length>0&&(I+=45),c-I},[e,c,d]),h=(I,O)=>{var m,S,w,P;if(!((m=I?.video)===null||m===void 0)&&m.url)return o.createElement(id,{rec:I,index:O,muted:!0,width:r,data:t??[],height:f,activeIndex:O,videoPostConfig:e?.videoPost});if(!((S=I?.video)===null||S===void 0)&&S.imgUrls)return o.createElement(ed,{key:I?.video.itemId,imgUrls:I?.video.imgUrls,width:r,height:f,rec:I,index:O,imgUrlsPostConfig:e?.imgUrlsPost});if(I.product&&I.product&&Array.isArray(e?.productPost)&&((w=e?.productPost)===null||w===void 0?void 0:w.length)>0)return(P=e?.productPost)===null||P===void 0?void 0:P.map((C,L)=>{var E,V,F,D,N,R,M,j;const W=un[(E=C?.item)===null||E===void 0?void 0:E.type],Z=hi(W),J=(V=W?.extend)===null||V===void 0?void 0:V.defaulSetting;return o.createElement(Z,Object.assign({key:`${O}${L}`,textStyle:Object.assign(Object.assign({},J?.textStyle),(F=C?.item)===null||F===void 0?void 0:F.textStyle),bindDatas:(N=(D=C?.item)===null||D===void 0?void 0:D.bindDatas)!==null&&N!==void 0?N:[]},J?.props,(R=C?.item)===null||R===void 0?void 0:R.props,{event:((M=C?.item)===null||M===void 0?void 0:M.event)||{},id:C?.id,rec:I,isPost:!0,tipText:i,style:Object.assign(Object.assign(Object.assign({},J?.style),(j=C?.item)===null||j===void 0?void 0:j.style),{width:r,height:f,overflow:"auto"}),index:O}))})},A=o.useMemo(()=>e?.logoUrl&&e?.isShowLogo?o.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},o.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]),y=(I,O)=>e?.isShowCTA===void 0||e?.isShowCTA?o.createElement("div",{className:"clc-sxp-bottom-card"},o.createElement(Di,{rec:I,index:O,tempMap:a,resolver:un})):null,b=(I,O)=>{var m,S,w,P,C,L,E;return I?.video?o.createElement(o.Fragment,null,((m=I?.video)===null||m===void 0?void 0:m.title)&&o.createElement("div",{className:"clc-sxp-bottom-shadow"}),o.createElement("div",{className:"clc-sxp-bottom"},o.createElement(po,{nudge:n}),y(I,O),o.createElement("div",null,o.createElement(Mi,{className:"clc-sxp-bottom-text",isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(w=(S=I?.video)===null||S===void 0?void 0:S.title)!==null&&w!==void 0?w:"",style:Object.assign(Object.assign({},l),{textShadow:e?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"})})),o.createElement(uo,{index:O,tags:(C=(P=I?.video)===null||P===void 0?void 0:P.hashTags)!==null&&C!==void 0?C:[],itemId:(L=I?.video)===null||L===void 0?void 0:L.itemId,itemType:!((E=I?.video)===null||E===void 0)&&E.itemId?"VIDEO":null,rec:I,hashTagStyle:s}))):null},x=Ot(od,u),v=Ot(nd,u),g=(I,O)=>{var m,S,w,P;if(!e?.isShowLike)return;let C=(m=e?.likeIconY)!==null&&m!==void 0?m:400;return C<40&&(C+=40),I?.video?o.createElement(so,{key:I.position,activeIcon:(S=e?.likeIcon)!==null&&S!==void 0?S:x,unActicveIcon:(w=e?.unlikeIcon)!==null&&w!==void 0?w:v,position:O,active:I.isCollected,recData:I,className:"clc-sxp-like-button",style:{top:C,right:(P=e?.likeIconX)!==null&&P!==void 0?P:0}}):null},p=Ot("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",u),T=Ot("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",u),k=(I,O)=>{var m,S,w,P;return o.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},A,o.createElement(mo,{tagList:d}),o.createElement(ro,{style:{position:"absolute",right:(m=e?.muteIconX)!==null&&m!==void 0?m:0,visibility:!((w=(S=t?.[O])===null||S===void 0?void 0:S.video)===null||w===void 0)&&w.url?"visible":"hidden",bottom:(P=e?.muteIconY)!==null&&P!==void 0?P:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:p,unactiveIcon:e?.muteIcon?e?.muteIcon:T}),h(I,O),b(I,O),g(I,O))};return o.createElement("div",{className:Ie.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((I,O)=>k(I,O)))};var ad=o.memo(ld);const sd=()=>{const{schema:t,resolver:e,popup:i}=Jt(),{setPopupDetailData:n,popupDetailData:a,popupCurTimeRef:l,checkCommodityIndexRef:s}=je(),{productView:c}=It(),[r,u]=o.useState();o.useEffect(()=>{const A=()=>{l.current=new Date};return A(),window.addEventListener("pageshow",A),()=>{window.removeEventListener("pageshow",A)}},[]),o.useEffect(()=>{i&&i?.id&&i?.id!==""&&(l.current=new Date,u(i))},[i]);const d=o.useMemo(()=>{var A,y,b,x;const v=(b=(y=(A=t?.sxpPageConf)===null||A===void 0?void 0:A.globalConfig)===null||y===void 0?void 0:y.popupList)===null||b===void 0?void 0:b.find((g,p)=>{if(g?.id===i?.id)return g});return v!==-1&&((x=v?.item)===null||x===void 0?void 0:x.type)==="Iframe"},[i,t]),f=()=>{var A,y,b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E;if(!i||i?.id===""||!r||new Date-l.current<((A=i?.duration)!==null&&A!==void 0?A:0))return;u(Object.assign(Object.assign({},i),{id:""}));const V=(x=(b=(y=t?.sxpPageConf)===null||y===void 0?void 0:y.globalConfig)===null||b===void 0?void 0:b.popupList)===null||x===void 0?void 0:x.find(F=>F?.id===i?.id);if(((v=V?.item)===null||v===void 0?void 0:v.type)==="CommodityDetail"||((g=V?.item)===null||g===void 0?void 0:g.type)==="CommodityDetailDiroNew"){const F=a;let D=(T=(p=F?.video)===null||p===void 0?void 0:p.bindProduct)!==null&&T!==void 0?T:(I=(k=F?.video)===null||k===void 0?void 0:k.bindProducts)===null||I===void 0?void 0:I[0],N=(S=(m=(O=F?.video)===null||O===void 0?void 0:O.bindProduct)===null||m===void 0?void 0:m.bindCta)!==null&&S!==void 0?S:(C=(P=(w=F?.video)===null||w===void 0?void 0:w.bindProducts)===null||P===void 0?void 0:P[0])===null||C===void 0?void 0:C.bindCta;if(s?.current>=0){const R=(E=(L=F?.video)===null||L===void 0?void 0:L.bindProducts)===null||E===void 0?void 0:E[s?.current];R&&(D=R,N=R?.bindCta)}D&&N&&c(F,D,N,l.current,a?.index)}setTimeout(()=>{window?.sxpPopup(""),n?.(null),s.current=-1},i?.duration)},h=o.useMemo(()=>{var A,y,b;return(b=(y=(A=t?.sxpPageConf)===null||A===void 0?void 0:A.globalConfig)===null||y===void 0?void 0:y.popupList)===null||b===void 0?void 0:b.map((x,v)=>{var g,p,T,k,I,O,m,S,w,P,C,L,E,V;if(x?.id===i?.id){const F=e[(g=x?.item)===null||g===void 0?void 0:g.type],D=hi(F),N=((k=(T=(p=x?.item)===null||p===void 0?void 0:p.event)===null||T===void 0?void 0:T.onClick)===null||k===void 0?void 0:k.linkType)==="externalLink",R=((m=(O=(I=x?.item)===null||I===void 0?void 0:I.event)===null||O===void 0?void 0:O.onClick)===null||m===void 0?void 0:m.linkType)==="popup",M=(S=F?.extend)===null||S===void 0?void 0:S.defaulSetting;return o.createElement(D,Object.assign({key:v,style:Object.assign(Object.assign(Object.assign({},M?.style),(w=x?.item)===null||w===void 0?void 0:w.style),{height:"100%"}),textStyle:Object.assign(Object.assign({},M?.textStyle),(P=x?.item)===null||P===void 0?void 0:P.textStyle),bindDatas:(L=(C=x?.item)===null||C===void 0?void 0:C.bindDatas)!==null&&L!==void 0?L:[]},M?.props,(E=x?.item)===null||E===void 0?void 0:E.props,{event:((V=x?.item)===null||V===void 0?void 0:V.event)||{},schema:t,id:x?.id,isExternalLink:N,isPopup:R,onClose:f}))}else return o.createElement(o.Fragment,null)})},[t,i,e,f]);return o.createElement(di,{popup:r,onClose:f,padding:0,modalStyle:{position:"fixed"},isFullScreen:d},h)},vn={};Object.values(dn).forEach(t=>{vn[t.extend.type]=t});const rd=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:n=20,loadingImage:a,appDomain:l,enabledMetaConversionApi:s,dataList:c})=>{var r,u,d,f,h,A;const y=o.useMemo(()=>{var p;return location?.search?(p=location?.search)===null||p===void 0?void 0:p.replace("?",""):""},[]),[b,x]=o.useState(t?.data),[v,g]=o.useState();return o.createElement(Dn,{resolver:vn,enableDataSource:!1,schema:b,utmVal:v||y},o.createElement(In,{utmVal:y,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(u=(r=t?.sxp_parameter)===null||r===void 0?void 0:r.personalized_recommend)!==null&&u!==void 0?u:e,defaultSize:(f=(d=t?.sxp_parameter)===null||d===void 0?void 0:d.default_recommend)!==null&&f!==void 0?f:i,hashTagSize:(A=(h=t?.sxp_parameter)===null||h===void 0?void 0:h.hash_tag_size)!==null&&A!==void 0?A:n,loadingImage:a,appDomain:l,enabledMetaConversionApi:s,utmParameter:t?.utm_parameter,data:t,dataList:c,onUpdateSchema:p=>x(p),onUpdateChannel:p=>g(p),render:({rtcList:p,tagList:T,pageData:k})=>{var I;return o.createElement(o.Fragment,null,o.createElement(ho,Object.assign({defaultData:t},(I=k?.data)===null||I===void 0?void 0:I.sxpPageConf,{tagList:T,data:p,resolver:vn})),o.createElement(sd,null))}}))};var dd=o.memo(rd);exports.DiyPortalPreview=ad,exports.EditorDataProvider=Ir,exports.Modal=di,exports.SxpDataSourceProvider=In,exports.SxpPageCore=dd,exports.SxpPageRender=ho,exports.core=zo,exports.default=Io,exports.materials=dn,exports.useEditorDataProvider=sn;
10
+ }`)(s,p)}catch{}},[s]),b=o.useCallback(g=>{const p=y(g),T=p?.value;T&&(p?.linkType==="recommendFlow"?(u?.(T),r.current=new Date):new Function(T)())},[s]),x=o.useCallback(()=>{d.current=new Date,c?.({eventInfo:{eventSubject:"startMultiPost",eventDescription:"startMultiPost",contentFormat:"image",position:"0",traceInfo:A}})},[]),v=o.useCallback(g=>{r.current=new Date,c?.({eventInfo:{eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:A,nextStep:g||"others",timeOnSite:Math.floor((new Date-d?.current)/1e3)+""}})},[]);return o.useEffect(()=>{f?(x(),h.current=!0):h.current&&v()},[f]),o.useEffect(()=>{if(!f)return;const g=()=>x(),p=()=>v();return mt.on(dt.PAGE_DID_SHOW,g),mt.on(dt.PAGE_DID_HIDE,p),()=>{mt.off(dt.PAGE_DID_SHOW,g),mt.off(dt.PAGE_DID_HIDE,p)}},[f]),o.createElement("div",{className:"multiposts",style:Object.assign(Object.assign({},a),_a(n))},Array.from({length:4},(g,p)=>o.createElement("button",{hidden:!y(p,"Url"),className:"multiposts-btn",role:"button","aria-label":`multiposts-${p+1}`,onClick:()=>b(p)},o.createElement("img",{className:"multiposts-btn-img",src:y(p,"Url"),alt:`multiposts-img-${p+1}`}))))};var rn=o.memo(Or),Rr=[{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 Nr=ct(rn,{displayName:"MultiPosts",icon:"",category:"base",type:"MultiPosts",related:{settingRender:Lr,interactionRender:Rr},defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var dn=Object.freeze({__proto__:null,AniLink:br,AniLinkPopup:Tr,Appoint:hs,AppointForm:qo,Commodity:vs,CommodityDetail:Na,CommodityDetailDiroNew:Ua,CommodityDiro:Cs,CommodityDiroNew:Ds,CommodityList:Qa,Consent:pr,ConsentDetail:as,Display:_r,HashTag:cr,Iframe:is,Link:ws,MultiCommodity:zs,MultiCommodityDiro:Ns,MultiCommodityDiroNew:Us,MultiPosts:Nr,Prompt:za});const Vr="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",jr="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Fr=t=>{var e,{active:i,activeIcon:n,unActicveIcon:a,recData:l,position:s}=t,c=tt(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:r,mutateUnlike:u,bffEventReport:d,setCacheRtcList:f,cacheRtcList:h}=je(),[A,y]=o.useState((e=h?.[s])===null||e===void 0?void 0:e.isCollected),b=Ot(jr),x=Ot(Vr),v=lt.debounce(()=>At(void 0,void 0,void 0,function*(){var g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D,N,R,M,j,W,Z;if(A){y(!1);const J=(T=yield u?.({videoItemId:(p=(g=l?.video)===null||g===void 0?void 0:g.itemId)!==null&&p!==void 0?p:""}))!==null&&T!==void 0?T:!1;if(d?.({eventInfo:{eventSubject:"favoriteContentCanceled",eventDescription:"This content was unfavorite by the user",contentId:(I=(k=l?.video)===null||k===void 0?void 0:k.itemId)!==null&&I!==void 0?I:"",contentName:(m=(O=l?.video)===null||O===void 0?void 0:O.title)!==null&&m!==void 0?m:"",contentTags:JSON.stringify((w=(S=l?.video)===null||S===void 0?void 0:S.tags)!==null&&w!==void 0?w:[]),position:s+"",contentFormat:!((P=l?.video)===null||P===void 0)&&P.url?"video":"image",traceInfo:(C=l?.video)===null||C===void 0?void 0:C.traceInfo}}),!J)y(!0);else{const $=(L=h?.map((ae,de)=>(de===s&&(ae.isCollected=!1),ae)))!==null&&L!==void 0?L:[];f?.($)}}else{y(!0);const J=(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=(V=l?.video)===null||V===void 0?void 0:V.itemId)!==null&&F!==void 0?F:"",contentName:(N=(D=l?.video)===null||D===void 0?void 0:D.title)!==null&&N!==void 0?N:"",contentTags:JSON.stringify((M=(R=l?.video)===null||R===void 0?void 0:R.tags)!==null&&M!==void 0?M:[]),position:s+"",contentFormat:!((j=l?.video)===null||j===void 0)&&j.url?"video":"image",traceInfo:(W=l?.video)===null||W===void 0?void 0:W.traceInfo}}),!J)y(!1);else{const $=(Z=h?.map((ae,de)=>(de===s&&(ae.isCollected=!0),ae)))!==null&&Z!==void 0?Z:[];f?.($)}}}),200);return o.createElement("button",Object.assign({},c,{"aria-label":"like",onClick:v}),o.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:A?n||b:a||x,alt:"icon"}))};var so=o.memo(Fr),Br="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+LAYQ4QGMR4s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wAsMwAYABYADwAACHEA/wkcSFAguC7g3BwMVrChm2KJwJWCKBEitob/ohxMuFEhQo/FCAaLOJEkxZIVEwlEwvFjx5cubXQ5SdOkTYkRPbbcqVPnmpsog9b8B5NnUYX/hAKtCc5gz6MvBy5d6qahy6scMRJcqhUjj2JIuxYMCAAh+QQJBAD/ACw3ABcAEwAOAAAIYgD/CRxIUKCbYl0KKkQCrgs4Nw0fglNYqlgicBUvZsQYbGBEiA5BSgw5EdvGkxYxpiz1sSXJlyo1rpwp86LImy4l1ozJ82ROnC+LdaLZc6bBny6LDXSDUqabRAoFrmkZdWBAACH5BAkDAP8ALDoAFwASAA0AAAhiAP8JHDjQTbFOxRIVIjgQCbgu4Nw8jPiQG8NE4EolzLhRI8aCEyVCFEkR4r9CHDF6TJnyX8iXI1+WWkmzY0eHJHPCBPdPpU2fQF3GHFoyokCDQFl6dAOSKMk1DAXaZBr1X0AAIfkECQMA/wAsPgAXABAADQAACFkA/wkU6KZYp2KJwHVyM1AgEnBuwHWBKJHiwIIJSyEEpzFjsX9PKE6MOLJixI0dOaJESVKky5YqPcqMWbLmS3ArZ6Z0A8Wkz5oCD+pE2TDKT4o2GjZkqLRhQAAh+QQJBAD/ACxAABcAEAAMAAAIWQD/CfyXqFSxROAMFko0UOATcF3AuYEoESK3hgkPZkRoMBE2gRQnRhRZsUuofx03qlSIpKRLkhMTcdSYsmbLkSFzdrlYk6ZPgcVg6gS3ZuBKnwwb/hO6s2FAACH5BAkEAP8ALEMAFwAPAAwAAAhTAP8JLJQIXKliBUsJXPgPnBtwXRxClLgQoUGLBxMmavgwYkeJHv8lxEiy4JqJH1NCLJbx4siRHlHK9FiqkMubLQXG3CnRxsKXN90w/IcEJMWFAQEAOw==";const cn=(()=>{if(typeof document>"u")return;const t=document.createElement("div"),e=mn.render(o.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})(),zr=({rec:t,index:e,height:i,data:n,muted:a,activeIndex:l,videoPostConfig:s,videoPlayIcon:c})=>{const[r,u]=o.useState(!1),{bffEventReport:d,sxpParameter:f,waterFallData:h,openHashtag:A,bffFbReport:y}=je(),b=o.useRef(0),[x,v]=o.useState(!1),{isActive:g}=ln(),p=o.useRef(null),[T,k]=o.useState(""),[I,O]=o.useState(!1),m=o.useRef(),S=`pb-cache-video-${e}`,w=o.useRef(null),P=o.useRef(null),C=o.useRef(),L=o.useRef(),E=o.useRef(!0),V=o.useMemo(()=>s?.mode==="2",[s]),F=o.useMemo(()=>{var Y;return s?.mode==="2"?`translateY(-${50+((Y=s?.offsetTop)!==null&&Y!==void 0?Y:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[s]),D=o.useMemo(()=>{var Y;return((Y=t?.video)===null||Y===void 0?void 0:Y.cover)||T},[T,t]),N=o.useMemo(()=>V?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[V]),R=o.useMemo(()=>s?.bgWay==="1",[s]),M=o.useMemo(()=>R&&s?.bgColor?{backgroundColor:s?.bgColor}:{},[s,R]);o.useEffect(()=>{m?.current&&(m.current.muted=a)},[a,m?.current]);const j=o.useCallback(()=>{var Y;m?.current&&((Y=m?.current)===null||Y===void 0||Y.play())},[m?.current]),W=Ot("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),Z=o.useCallback(()=>{m?.current&&(O(!1),v(!0))},[]),J=o.useCallback(()=>At(void 0,void 0,void 0,function*(){var Y,K,ue,fe,he,le,Pe,Ge,Re,Ze,Qe,Ae,q;if(!m?.current)return;u(!1);const G=n[e];if(G&&(!((Y=m?.current)===null||Y===void 0)&&Y.duration)){b.current=((K=m?.current)===null||K===void 0?void 0:K.currentTime)||0;const ie=((fe=(ue=m?.current)===null||ue===void 0?void 0:ue.duration)!==null&&fe!==void 0?fe:0).toFixed(2),ne=((le=(he=m?.current)===null||he===void 0?void 0:he.currentTime)!==null&&le!==void 0?le:0).toFixed(2),se=E?.current?"0":"1";d?.({eventInfo:Object.assign({eventSubject:"playVideo",eventDescription:"User played the video",contentId:(Ge=(Pe=G?.video)===null||Pe===void 0?void 0:Pe.itemId)!==null&&Ge!==void 0?Ge:"",contentName:(Ze=(Re=G?.video)===null||Re===void 0?void 0:Re.title)!==null&&Ze!==void 0?Ze:"",playType:se,startTime:ne,videoDuration:ie,contentTags:JSON.stringify((Ae=(Qe=G?.video)===null||Qe===void 0?void 0:Qe.tags)!==null&&Ae!==void 0?Ae:[]),position:e+"",contentFormat:"video",traceInfo:(q=G?.video)===null||q===void 0?void 0:q.traceInfo},E?.current&&{loadTime:L?.current-C?.current+""})}),E.current=!1}}),[d,n,e,E,m?.current]),$=o.useCallback(()=>{var Y;if(!m?.current||T||!V||(m.current.style.objectFit="contain",!((Y=t?.video)===null||Y===void 0)&&Y.cover||!p||!p.current||R))return;const K=()=>{const ue=p?.current,fe=ue.getContext("2d"),he=window?.innerWidth,le=window?.innerHeight;ue.height=le,ue.width=he,fe?.drawImage(m.current,0,0,ue.width,ue.height),k(ue.toDataURL())};K(),setTimeout(()=>{K()},500)},[m.current,R,t,T,V]),ae=o.useCallback(()=>{m.current&&(L.current=new Date,J(),$())},[m.current,$,J]),de=o.useCallback(Y=>()=>{var K,ue,fe,he,le;if(!m.current||!x)return;const Pe=(K=m?.current)===null||K===void 0?void 0:K.paused;switch(Y){case"start":if(!Pe)return;(ue=m?.current)===null||ue===void 0||ue.play(),u(!1);break;case"pause":if(Pe)return;(fe=m?.current)===null||fe===void 0||fe.pause(),u(!0);break;default:Pe?(he=m?.current)===null||he===void 0||he.play():(le=m?.current)===null||le===void 0||le.pause(),u(!Pe);break}},[x,m?.current]),ee=o.useCallback(()=>{var Y,K,ue,fe,he,le,Pe,Ge,Re,Ze,Qe,Ae,q;if(!m?.current||l!==e)return;const G=n[e],ie=((K=(Y=m?.current)===null||Y===void 0?void 0:Y.duration)!==null&&K!==void 0?K:0).toFixed(2),ne=((fe=(ue=m?.current)===null||ue===void 0?void 0:ue.currentTime)!==null&&fe!==void 0?fe:0).toFixed(2);if(!((he=m?.current)===null||he===void 0)&&he.duration){const se=(((le=m?.current)===null||le===void 0?void 0:le.currentTime)-b.current).toFixed(2);d?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(Ge=(Pe=G?.video)===null||Pe===void 0?void 0:Pe.itemId)!==null&&Ge!==void 0?Ge:"",contentName:(Ze=(Re=G?.video)===null||Re===void 0?void 0:Re.title)!==null&&Ze!==void 0?Ze:"",endTime:ne,videoDuration:ie,playDuration:se,contentTags:JSON.stringify((Ae=(Qe=G?.video)===null||Qe===void 0?void 0:Qe.tags)!==null&&Ae!==void 0?Ae:[]),position:e+"",contentFormat:"video",traceInfo:(q=G?.video)===null||q===void 0?void 0:q.traceInfo}})}},[n,e,d,m?.current,l]),ke=o.useCallback(()=>{O(!0)},[]);o.useEffect(()=>{var Y,K,ue,fe,he,le,Pe,Ge,Re,Ze;if(!g)return;const Qe=t?.video.url;if(!Qe)return;const Ae=document.querySelector(`#${S}`);if(!Ae||(m.current=cn?.(Ae),!m?.current))return;C.current=new Date;const q=window?.Hls;let G=P?.current;return Qe.includes(".m3u8")&&q&&q.isSupported()?(G=new q,G?.loadSource(Qe),G?.attachMedia(m?.current),G?.on(q.Events.MANIFEST_PARSED,function(){var ie;(ie=m?.current)===null||ie===void 0||ie.play()})):m.current.src=Qe,(Y=m?.current)===null||Y===void 0||Y.setAttribute("x5-playsinline","true"),(K=m?.current)===null||K===void 0||K.setAttribute("webkit-playsinline","true"),(ue=m?.current)===null||ue===void 0||ue.addEventListener("loadedmetadata",ae),(fe=m?.current)===null||fe===void 0||fe.addEventListener("loadeddata",$),(he=m?.current)===null||he===void 0||he.addEventListener("play",J),(le=m?.current)===null||le===void 0||le.addEventListener("playing",Z),(Pe=m?.current)===null||Pe===void 0||Pe.addEventListener("pause",ee),(Ge=m?.current)===null||Ge===void 0||Ge.addEventListener("ended",j),(Re=m?.current)===null||Re===void 0||Re.addEventListener("canplay",j),(Ze=m?.current)===null||Ze===void 0||Ze.addEventListener("waiting",ke),()=>{var ie,ne,se,xe,Je,te,B,Ue,wt,$e;((ie=m?.current)===null||ie===void 0?void 0:ie.paused)||ee(),P?.current&&((ne=P?.current)===null||ne===void 0||ne.destroy()),v(!1),(se=m?.current)===null||se===void 0||se.removeEventListener("loadedmetadata",ae),(xe=m?.current)===null||xe===void 0||xe.removeEventListener("loadeddata",$),(Je=m?.current)===null||Je===void 0||Je.removeEventListener("play",J),(te=m?.current)===null||te===void 0||te.removeEventListener("playing",Z),(B=m?.current)===null||B===void 0||B.removeEventListener("pause",ee),(Ue=m?.current)===null||Ue===void 0||Ue.removeEventListener("ended",j),(wt=m?.current)===null||wt===void 0||wt.removeEventListener("canplay",j),($e=m?.current)===null||$e===void 0||$e.removeEventListener("waiting",ke)}},[g]),o.useEffect(()=>{var Y,K,ue,fe,he,le;!m?.current||!x||(g?(y?.({eventName:"ViewContent",product:(K=(Y=n?.[e])===null||Y===void 0?void 0:Y.video)===null||K===void 0?void 0:K.bindProduct}),y?.({eventName:"PageView",product:(fe=(ue=n?.[e])===null||ue===void 0?void 0:ue.video)===null||fe===void 0?void 0:fe.bindProduct}),(he=m?.current)===null||he===void 0||he.play()):(le=m?.current)===null||le===void 0||le.pause())},[g,x,m?.current]),o.useEffect(()=>{var Y,K,ue;if(!g||!m?.current)return;!((Y=m?.current)===null||Y===void 0?void 0:Y.paused)&&A?(K=m?.current)===null||K===void 0||K.pause():A||(ue=m?.current)===null||ue===void 0||ue.play()},[A,g,m?.current]),o.useEffect(()=>{if(!g)return;const Y=()=>{de("start")()},K=de("pause");return mt.on(dt.PAGE_DID_SHOW,Y),mt.on(dt.PAGE_DID_HIDE,K),()=>{mt.off(dt.PAGE_DID_SHOW,Y),mt.off(dt.PAGE_DID_HIDE,K)}},[de,g]);const _e=o.useMemo(()=>!f?.placeholder_image||x?null:o.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:f?.placeholder_image,alt:"placeholder image"}),[x,f?.placeholder_image]),Be=o.useMemo(()=>{if(!(!I||!x))return o.createElement("img",{style:{position:"absolute",top:"50%",left:0,right:0,transform:"translateY(-100%)",margin:"auto",width:"50px",height:"50px",objectFit:"contain"},src:Br,alt:"placeholder image"})},[I,x]);return o.useEffect(()=>{if(!m?.current)return;const Y=()=>{var K;l===e&&(!((K=t?.video)===null||K===void 0)&&K.url)&&m?.current&&!r&&de("pause")()};return window.addEventListener("beforeunload",Y),()=>{window.removeEventListener("beforeunload",Y)}},[l,e,t,m?.current,de,r]),t?.video?o.createElement(o.Fragment,null,V?o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:de(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},M)},!R&&x&&D&&o.createElement(Mt,{src:D,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},N)}),o.createElement("canvas",{ref:p,style:{display:"none"}}),o.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:F,left:0,right:0}},o.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.createElement("div",{className:"n-full-screen",ref:w,id:S,style:{width:"100%",height:"100%"}}),r&&o.createElement(Mt,{className:"clc-pb-video-pause",src:c??W,alt:"pause"}))),_e,Be):o.createElement("div",{className:"video-container",key:t?.video.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:de()},o.createElement("div",{className:"n-full-screen",ref:w,id:S,style:{width:"100%",height:"100%"}}),_e,Be,r&&o.createElement(Mt,{className:"clc-pb-video-pause",src:c??W,alt:"pause"}))):null};var Hr=o.memo(zr);const Wr=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:n,style:a})=>{const[l,s]=o.useState(t),c=r=>{r.stopPropagation();const u=!l;s(u),n?.(u)};return o.useEffect(()=>{s(t)},[t]),o.createElement("button",{style:a,"aria-label":"toggle button",className:"pb-toggle-button",onClick:c},o.createElement("img",{className:"pb-toggle-button-icon",alt:"toggle image",src:l?e:i}))};var ro=o.memo(Wr);const Xr=({imageUrl:t,style:e,duration:i=2e3})=>{const[n,a]=o.useState(!0);Jt(),o.useEffect(()=>{setTimeout(()=>{a(!1)},i)},[]);const l=Ot("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),s=o.useMemo(()=>n?"pb-fadeIn":"pb-fadeOut",[n]);return o.createElement("div",{hidden:!n,className:`pb-finger-wrap ${s}`,style:Object.assign(Object.assign({},e),{animationDuration:`${i/1e3}s`})},o.createElement("img",{src:t||l,alt:"finger swiper"}))},co=t=>{const{src:e,height:i,imgUrlsPostConfig:n,onShowFirstImage:a}=t,l=o.useMemo(()=>n?.mode==="2",[n]),s=o.useMemo(()=>{var d;return n?.mode==="2"?`translateY(-${50+((d=n?.offsetTop)!==null&&d!==void 0?d:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[n]),c=o.useMemo(()=>l?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[l]),r=o.useMemo(()=>n?.bgWay==="1",[n]),u=o.useMemo(()=>r&&n?.bgColor?{backgroundColor:n?.bgColor}:{},[n,r]);return o.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},u)},(!l||!r)&&o.createElement(Mt,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},c),onLoad:a}),l&&o.createElement(Mt,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:s,left:0,right:0},onLoad:a}))},Gr=({imgUrls:t,width:e,height:i,rec:n,index:a,onViewImageEndEvent:l,onViewImageStartEvent:s,imgUrlsPostConfig:c})=>{var r,u;const{isActive:d}=ln(),{sxpParameter:f,openHashtag:h}=je(),[A,y]=o.useState(!1),[b,x]=o.useState(),[v,g]=o.useState(0),p=o.useRef(),T=o.useRef(!0),k=new Date;o.useEffect(()=>{A&&d?(p?.current&&p.current.swiper.autoplay.start(),h?l(n):(s(a,T.current?b:void 0,!0),T.current=!1)):p?.current&&p.current.swiper.autoplay.stop()},[n,d,l,h,a,s,A,b]);const I=o.useCallback(P=>At(void 0,void 0,void 0,function*(){A||(x({loadTime:new Date-k+""}),y(!0))}),[A]);o.useEffect(()=>{if(!d)return;const P=()=>s(a,b),C=()=>l(n);return mt.on(dt.PAGE_DID_SHOW,P),mt.on(dt.PAGE_DID_HIDE,C),()=>{mt.off(dt.PAGE_DID_SHOW,P),mt.off(dt.PAGE_DID_HIDE,C)}},[d,b]);const O=o.useCallback(()=>{p.current&&p.current.swiper&&w&&p.current.swiper.autoplay.stop()},[]),m=o.useCallback(()=>{p.current&&p.current.swiper&&w&&p.current.swiper.autoplay.start()},[]),S=o.useCallback(P=>{g(P.activeIndex)},[]),w=o.useMemo(()=>Oi(),[]);return o.createElement("div",{onMouseEnter:O,onMouseLeave:m},o.createElement(oi,Object.assign({defaultValue:0,direction:"horizontal",modules:[Ci,Ii,...w?[Gi,Ui,Ei,Wi]:[]],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"}},w?{mousewheel:!0,keyboard:!0,navigation:!0,a11y:{enabled:!0}}:{},{loop:!0,ref:p,onSlideChange:S,className:Ie.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((P,C)=>o.createElement(zt,{key:C,"aria-hidden":C!==v},o.createElement(co,{src:!A&&C>0?"":P,height:i,imgUrlsPostConfig:c,onShowFirstImage:I})))))};var Ur=o.memo(Gr);const Yr=({tags:t,itemId:e,itemType:i,index:n,rec:a,hashTagStyle:l,hashTagRightMargin:s})=>{var c;const[r,u]=o.useState(!1),{setWaterFallData:d,setOpenHashtag:f,setCacheActiveIndex:h,waterFallData:A,setIsFromHashtag:y}=je(),b=x=>{A?y?.(!0):h?.(n),d?.(i?{hashTag:x,itemId:e,itemType:i,rec:a}:{hashTag:x,rec:a}),f?.(!0)};return o.useMemo(()=>t.length<=6?null:o.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>u(!r)},r?"show less":"show more"),[r,t]),o.createElement("div",{className:"clc-sxp-bottom-hashtag",style:{marginTop:`${(c=l?.marginTop)!==null&&c!==void 0?c:16}px`,width:s}},o.createElement(mi,null,t?.map((x,v)=>o.createElement(zt,{key:v,hidden:r?!1:v>=6,className:"clc-sxp-bottom-hashtag-item",style:l,onClick:()=>b(x),tag:"li",role:"listitem"},o.createElement("button",{className:"clc-sxp-bottom-hashtag-item-button","aria-label":x,"aria-describedby":x,dangerouslySetInnerHTML:{__html:Ee(`#${x}`,l)}})))))};var uo=o.memo(Yr),vo="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 hi(t){return o.memo(function(e){const{$store:i}=ko(),n=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 f=lt.get(i,d);return s=s.replace(r,f),f}})}),s},a=o.useMemo(()=>{var l,s,c;const{bindDatas:r}=e,u=tt(e,["bindDatas"]);if((l=r?.forEach)===null||l===void 0||l.call(r,d=>{if(d?.propKey&&d?.dataPath){const{propKey:f,dataPath:h}=d;h.replace(/{{\s*([\w.]+)\s*}}/g,(A,y)=>{var b,x;if(y){const v=(x=(b=lt.get(i,y))!==null&&b!==void 0?b:e[f])!==null&&x!==void 0?x:"";return u[f]=v,v}})}}),u){u.eventMap={};const d=lt.cloneDeep(u.event)||{};for(const f in d)if(Object.prototype.hasOwnProperty.call(d,f))try{d[f].value=n(d[f].value),u.eventMap[f]=new Function(d[f].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 o.createElement(t,Object.assign({},a,a.eventMap))})}const qr=({rec:t,index:e,tempMap:i,resolver:n,includesCtaType:a,isActive:l,value:s})=>{const{schema:c}=Jt();if(!t?.video)return null;const r=o.useMemo(()=>{var u,d,f,h,A,y,b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D,N,R,M;if(!(a&&!a?.includes((u=s?.item)===null||u===void 0?void 0:u.type))&&!(!a&&((d=s?.item)===null||d===void 0?void 0:d.category)==="cta")){if(((f=s?.item)===null||f===void 0?void 0:f.type)==="CommodityDiro"&&!(!((h=t?.video)===null||h===void 0)&&h.bindProduct)||((A=s?.item)===null||A===void 0?void 0:A.type)==="Commodity"&&!(!((y=t?.video)===null||y===void 0)&&y.bindProduct)||((b=s?.item)===null||b===void 0?void 0:b.type)==="CommodityDiroNew"&&!(!((x=t?.video)===null||x===void 0)&&x.bindProduct)||((v=s?.item)===null||v===void 0?void 0:v.type)==="MultiCommodity"&&!(!((p=(g=t?.video)===null||g===void 0?void 0:g.bindProducts)===null||p===void 0)&&p.length)||((T=s?.item)===null||T===void 0?void 0:T.type)==="MultiCommodityDiro"&&!(!((I=(k=t?.video)===null||k===void 0?void 0:k.bindProducts)===null||I===void 0)&&I.length)||((O=s?.item)===null||O===void 0?void 0:O.type)==="MultiCommodityDiroNew"&&!(!((S=(m=t?.video)===null||m===void 0?void 0:m.bindProducts)===null||S===void 0)&&S.length))return null;if(s&&n){const j=n[(w=s?.item)===null||w===void 0?void 0:w.type],W=hi(j),Z=(P=j?.extend)===null||P===void 0?void 0:P.defaulSetting,J=((E=(L=(C=s?.item)===null||C===void 0?void 0:C.event)===null||L===void 0?void 0:L.onClick)===null||E===void 0?void 0:E.linkType)==="externalLink";let $=lt.cloneDeep((V=s?.item)===null||V===void 0?void 0:V.style);if($.hasOwnProperty("backdropFilter")){let ae=$.backdropFilter;$.backdropFilter=`blur(${ae??0}px)`}return o.createElement(W,Object.assign({style:Object.assign(Object.assign(Object.assign({},Z?.style),$),{zIndex:50,marginLeft:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},Z?.textStyle),(F=s?.item)===null||F===void 0?void 0:F.textStyle),bindDatas:(N=(D=s?.item)===null||D===void 0?void 0:D.bindDatas)!==null&&N!==void 0?N:[]},Z?.props,(R=s?.item)===null||R===void 0?void 0:R.props,{event:((M=s?.item)===null||M===void 0?void 0:M.event)||{},schema:c,id:s?.id,key:s?.id,recData:t,isExternalLink:J,index:e,isActive:l}))}else return null}},[t,n,i,c,s?.id,l]);return o.createElement(o.Fragment,null,r)};var Di=o.memo(qr);const po=({nudge:t})=>{var e,i,n,a,l,s;return o.createElement(o.Fragment,null,t?.isOpen&&o.createElement("div",{className:"clc-sxp-bottom-nudge",style:{marginBottom:(e=t?.marginBottom)!==null&&e!==void 0?e:5,width:(n=(i=t?.size)===null||i===void 0?void 0:i.width)!==null&&n!==void 0?n:212,height:(l=(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?o.createElement("img",{src:t.icon,alt:"nudge icon",style:{height:"100%",objectFit:"cover",flexShrink:0}}):null,o.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:Ee(t?.content,t?.textStyle)}})))},Zr=({tagList:t=[],setActiveIndex:e,style:i})=>{const{getRecommendVideos:n,setRtcList:a,setCacheRtcList:l,setCacheActiveIndex:s,setLoading:c,swiperRef:r,waterFallData:u,bffEventReport:d,selectTag:f,setSelectTag:h}=je(),{backMainFeed:A}=It(),y=o.useMemo(()=>[gi,...t],[t]),b=x=>()=>{if(x===f)return;x!=="FOR U"?d?.({eventInfo:{eventSubject:"clickThemeTagsViewContents",eventDescription:"click Theme Tags View Contents",themeTags:`['${x}']`}}):A("theme",x,f);let v;x!==gi&&(v=x),c?.(!0),n?.({themeTag:v}).then(g=>{var p,T,k,I;mt.emit(dt.CHANGE_THEME_TAG,v),a?.((p=g?.recList)!==null&&p!==void 0?p:[]),l?.((T=g?.recList)!==null&&T!==void 0?T:[]),e?.(0),s?.(0),(I=(k=r?.current)===null||k===void 0?void 0:k.swiper)===null||I===void 0||I.slideTo(0)}).finally(()=>{c?.(!1)}),h?.(x)};return u||t.length<=0?null:o.createElement("div",{className:"clc-sxp-tagbar",style:i},o.createElement("div",{className:"clc-sxp-tagbar-list",style:{margin:"auto",gap:24}},y.map(x=>o.createElement("button",{className:`clc-sxp-tagbar-list-item ${x===f?"clc-sxp-tagbar-list-item-active":""}`,key:x,"aria-label":x,onClick:b(x)},x))))};var mo=o.memo(Zr);const Kr=({resolver:t,globalConfig:e})=>{var i,n;const a=o.useMemo(()=>Ro(),[]),l=t?.Display,s=hi(l),c=(n=(i=e?.consentPopup)===null||i===void 0?void 0:i[0])===null||n===void 0?void 0:n.item;return o.createElement(s,Object.assign({},c?.props,{style:c?.style,event:c?.event||{},contsentState:a}))};var Jr=o.memo(Kr);const Qr=({data:t,minusHeight:e,tagHeight:i,onClick:n})=>{var a,l,s,c,r;return o.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:n},o.createElement("img",{src:t?.icon||vo,alt:"back button",width:100,style:{objectFit:"cover"}}))};var fo=o.memo(Qr);const ho=({globalConfig:t,descStyle:e,containerHeight:i=window.innerHeight,containerWidth:n=window.innerWidth,tempMap:a,resolver:l,data:s=[],ctaType:c,tipText:r,nudge:u,_schema:d,hashTagStyle:f,hashTagRightMargin:h,tagList:A=[],defaultData:y})=>{var b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E,V,F,D,N,R,M,j,W,Z;const J=Ot("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),$=Ot("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png"),{schema:ae}=Jt(),{openMultiPosts:de}=sn(),[ee,ke]=o.useState(0),_e=o.useRef(0),[Be,Y]=o.useState(!0),K=o.useRef(),[ue,fe]=o.useState(!1),[he,le]=o.useState(!1),[Pe,Ge]=o.useState(new Date().getTime()),Re=o.useRef(!1),[Ze,Qe]=o.useState(2),{loadVideos:Ae,bffEventReport:q,loading:G,setPopupDetailData:ie,ctaEvent:ne,swiperRef:se,waterFallData:xe,setOpenHashtag:Je,appDomain:te,openHashtag:B,loadingImage:Ue,isFromHashtag:wt,popupDetailData:$e,bffFbReport:bt,curTime:ft,h5EnterLink:St,isShowConsent:Vt,selectTag:Dt,isPreview:jt,isEditor:kt,cacheRtcList:Lt,setRtcList:xt,cacheActiveIndex:it,rtcList:Ft,isNoMoreData:Fe,channel:ht,refreshFeSession:pe}=je(),{backMainFeed:ye,productView:Le,jumpToWeb:Tt}=It(),Zt=o.useMemo(()=>s.length>0&&!G&&(_o()||t?.enableSwiperTip),[s,G,t?.enableSwiperTip]);o.useEffect(()=>{pe?.(!0)},[]),o.useEffect(()=>{if(s?.length>0){const _=new Date;K.current=_}},[s?.length]);const Xt=o.useCallback(()=>{var _,H,U;const oe=(H=(_=y?.data)===null||_===void 0?void 0:_.sxpPageConf)===null||H===void 0?void 0:H.globalConfig;if(!((U=oe?.session)===null||U===void 0)&&U.enable||Vi(),St?.(),s.length>0){const Q=new Date;K.current=Q}},[s.length,St,y]);o.useEffect(()=>{var _;if(!c||c?.length<1)return;const H=s?.findIndex(U=>{var oe,Q,be,re,ce,De,Ne,Ve,me;const we=c?.[0];return we==="\u591A\u5546\u54C1CTA"?((oe=U?.video)===null||oe===void 0?void 0:oe.bindProducts)&&((be=(Q=U?.video)===null||Q===void 0?void 0:Q.bindProducts)===null||be===void 0?void 0:be.length)>0:we==="\u5546\u54C1CTA"?(re=U?.video)===null||re===void 0?void 0:re.bindProduct:((De=(ce=U?.video)===null||ce===void 0?void 0:ce.bindCta)===null||De===void 0?void 0:De.itemId)===we&&(((Ne=U?.video)===null||Ne===void 0?void 0:Ne.url)||((me=(Ve=U?.video)===null||Ve===void 0?void 0:Ve.imgUrls)===null||me===void 0?void 0:me.length))})||0;H!==-1&&((_=se?.current)===null||_===void 0||_.swiper.slideTo(H))},[s,c,se]);const Kt=o.useCallback(_=>{var H,U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze,et,ot,pt,Me,ut,Et;const Ce=s?.[ee];let vt="";$e&&(!((U=(H=Ce?.video)===null||H===void 0?void 0:H.bindProducts)===null||U===void 0)&&U.length||!((oe=Ce?.video)===null||oe===void 0)&&oe.bindProduct)?vt="pdpPage":$e&&((ce=a?.[(re=(be=(Q=Ce?.video)===null||Q===void 0?void 0:Q.bindCta)===null||be===void 0?void 0:be.itemId)!==null&&re!==void 0?re:""].item)===null||ce===void 0?void 0:ce.type)==="Appoint"?vt="formPage":wt?vt="hashTagPage":!((De=Ce?.video)===null||De===void 0)&&De.url?vt="videoPage":!((Ne=Ce?.video)===null||Ne===void 0)&&Ne.imgUrls&&(!((me=(Ve=Ce?.video)===null||Ve===void 0?void 0:Ve.imgUrls)===null||me===void 0)&&me.length)?vt="imagePage":Ce?.product&&(vt="productPage"),q?.({eventInfo:{sessionDuration:Math.floor((new Date-ft.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(we=Ce?.video)===null||we===void 0?void 0:we.itemId,productId:(at=Ce?.product)===null||at===void 0?void 0:at.itemId,position:ee+"",fromKName:_||vt,fromKPage:location?.href,ctatId:(ot=(et=(ze=Ce?.video)===null||ze===void 0?void 0:ze.bindCta)===null||et===void 0?void 0:et.itemId)!==null&&ot!==void 0?ot:"",traceInfo:(Et=(Me=(pt=Ce?.video)===null||pt===void 0?void 0:pt.traceInfo)!==null&&Me!==void 0?Me:(ut=Ce?.product)===null||ut===void 0?void 0:ut.traceInfo)!==null&&Et!==void 0?Et:""}})},[s,q,ee,$e,a,wt,ft]);o.useEffect(()=>{const _=s?.[ee],H=()=>{const U=!B&&!Vt;document.visibilityState==="hidden"?(U&&(mt.emit(dt.PAGE_DID_HIDE,_),Ke(_)),(t?.playbook!=="organic menu"||ee!==0||ht)&&(pe?.(!1,Kt)||Kt())):document.visibilityState==="visible"&&(Re.current===!0&&(Ge(new Date().getTime()),Re.current=!1),pe?.(!1),Xt(),U&&(mt.emit(dt.PAGE_DID_SHOW,_),ye("external",Dt)))};return document.addEventListener("visibilitychange",H),()=>{document.removeEventListener("visibilitychange",H)}},[ee,q,s,Xt,$e,wt,a,ft,ye,B,Vt,Dt,ht,Kt,pe]);const ti=o.useCallback(lt.debounce(()=>{pe?.(!1,Kt)},1e3),[Kt,pe]);o.useEffect(()=>{const _=["touchstart","touchcancel"];return _.forEach(H=>{window.addEventListener(H,ti)}),()=>{_.forEach(H=>{window.removeEventListener(H,ti)})}},[ti]);const ii=o.useMemo(()=>{let _=0;return A.length>0&&(_+=45,xe&&(_-=45)),_},[A,xe]),Bt=o.useMemo(()=>{let _=0;return t?.logoUrl&&t?.isShowLogo&&(_+=56),_},[t]),Gt=o.useMemo(()=>i-Bt-ii,[Bt,i,ii]),z=o.useMemo(()=>{var _;const H=ee===0&&!xe&&!kt?[(_=s?.[0])!==null&&_!==void 0?_:null]:s?.map((U,oe)=>ee===oe||oe-1===ee||oe+1===ee?U:null);return H?.length?!xe&&!Fe?H.concat([{loading:!0}]):H:[]},[s,ee,xe,kt,Fe]),X=o.useMemo(()=>{var _,H,U,oe;if(t?.logoUrl&&t?.isShowLogo){const Q=(H=(_=t?.logoBar)===null||_===void 0?void 0:_.onClick)===null||H===void 0?void 0:H.value,be=((oe=(U=t?.logoBar)===null||U===void 0?void 0:U.onClick)===null||oe===void 0?void 0:oe.linkType)==="externalLink",re=z[ee];return o.createElement("div",Object.assign({className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},Q&&{onClick:ce=>{var De,Ne,Ve,me;be&&Tt(ce,re,(De=re?.video)===null||De===void 0?void 0:De.bindProduct,(Ne=re?.video)===null||Ne===void 0?void 0:Ne.bindCta,ee,((Ve=re?.product)===null||Ve===void 0?void 0:Ve.traceInfo)||((me=re?.video)===null||me===void 0?void 0:me.traceInfo)),new Function(Q)()}}),o.createElement("img",{src:t?.logoUrl,alt:"logo"}))}return null},[t,ee,z]),ve=o.useCallback((_,H)=>{var U,oe,Q,be,re,ce,De,Ne,Ve,me;return _==="organic menu"?o.createElement(rn,Object.assign({recData:s?.[1]},(Q=(oe=(U=t?.multiPosts)===null||U===void 0?void 0:U[0])===null||oe===void 0?void 0:oe.item)===null||Q===void 0?void 0:Q.props,(ce=(re=(be=t?.multiPosts)===null||be===void 0?void 0:be[0])===null||re===void 0?void 0:re.item)===null||ce===void 0?void 0:ce.event)):!((De=_?.video)===null||De===void 0)&&De.url?o.createElement(Hr,{key:Pe,rec:_,index:H,muted:Be,data:s,height:Gt,activeIndex:ee,videoPostConfig:t?.videoPost,videoPlayIcon:t?.videoPlayIcon}):!((Ne=_?.video)===null||Ne===void 0)&&Ne.imgUrls?o.createElement(Ur,{key:_?.video.itemId,imgUrls:_?.video.imgUrls,width:n,height:Gt,rec:_,index:H,onViewImageEndEvent:We,onViewImageStartEvent:st,imgUrlsPostConfig:t?.imgUrlsPost}):_.product&&Array.isArray(t?.productPost)&&((Ve=t?.productPost)===null||Ve===void 0?void 0:Ve.length)>0?(me=t?.productPost)===null||me===void 0?void 0:me.map((we,at)=>{var ze,et,ot,pt,Me,ut,Et,Ce;const vt=l[(ze=we?.item)===null||ze===void 0?void 0:ze.type],Ut=hi(vt),Ct=(et=vt?.extend)===null||et===void 0?void 0:et.defaulSetting;return o.createElement(Ut,Object.assign({key:`${H}${at}`,textStyle:Object.assign(Object.assign({},Ct?.textStyle),(ot=we?.item)===null||ot===void 0?void 0:ot.textStyle),bindDatas:(Me=(pt=we?.item)===null||pt===void 0?void 0:pt.bindDatas)!==null&&Me!==void 0?Me:[]},Ct?.props,(ut=we?.item)===null||ut===void 0?void 0:ut.props,{event:((Et=we?.item)===null||Et===void 0?void 0:Et.event)||{},schema:ae,id:we?.id,viewTime:K.current,rec:_,isPost:!0,tipText:r,style:Object.assign(Object.assign(Object.assign({},Ct?.style),(Ce=we?.item)===null||Ce===void 0?void 0:Ce.style),{height:"100%",overflow:"auto"}),index:H,isActive:ee===H}))}):null},[n,s,Gt,Be,ee,t?.productPost,t?.videoPlayIcon,K,r,l,ae,Pe]),Te=o.useCallback(_=>{le(_)},[]),ge=o.useMemo(()=>he?{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"},[he]),Se=o.useCallback((_,H)=>{var U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze;if(_?.video){let et=null;!((oe=(U=_?.video)===null||U===void 0?void 0:U.bindProducts)===null||oe===void 0)&&oe.length?et="\u591A\u5546\u54C1CTA":!((Q=_?.video)===null||Q===void 0)&&Q.bindProduct?et="\u5546\u54C1CTA":et=(re=(be=_?.video)===null||be===void 0?void 0:be.bindCta)===null||re===void 0?void 0:re.itemId;const ot=a?.[et];return o.createElement(o.Fragment,null,((ce=_?.video)===null||ce===void 0?void 0:ce.title)&&!he&&o.createElement("div",{className:"clc-sxp-bottom-shadow"}),o.createElement("div",{className:"clc-sxp-bottom",style:{marginBottom:`${(De=t?.bottomInfoDist)!==null&&De!==void 0?De:40}px`}},o.createElement(po,{nudge:u}),t?.isShowCTA===void 0||t?.isShowCTA?o.createElement("div",{className:"clc-sxp-bottom-card"},o.createElement(Di,{rec:_,index:H,tempMap:a,resolver:l,isActive:H===ee,value:ot})):null,o.createElement("div",null,o.createElement(Mi,{className:"clc-sxp-bottom-text",isPost:!0,foldText:r?.foldText,unfoldText:r?.unfoldText,text:(Ve=(Ne=_?.video)===null||Ne===void 0?void 0:Ne.title)!==null&&Ve!==void 0?Ve:"",style:Object.assign(Object.assign({},e),{textShadow:t?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"}),onChange:Te}),o.createElement(Di,{rec:_,index:H,tempMap:a,resolver:l,includesCtaType:["AniLink"],isActive:H===ee,value:ot}),o.createElement(uo,{index:ee,tags:(we=(me=_?.video)===null||me===void 0?void 0:me.hashTags)!==null&&we!==void 0?we:[],itemId:(at=_?.video)===null||at===void 0?void 0:at.itemId,itemType:!((ze=_?.video)===null||ze===void 0)&&ze.itemId?"VIDEO":null,rec:_,hashTagStyle:f,hashTagRightMargin:n-(h??0)}))),o.createElement(Di,{rec:_,index:H,tempMap:a,resolver:l,includesCtaType:["AniLinkPopup"],isActive:H===ee,value:ot}))}return null},[e,ee,a,l,r,u,f,t,Te,he,ge]),Oe=o.useCallback((_,H,U)=>{var oe,Q,be,re;if(!t?.isShowLike||!U)return;let ce=(oe=t?.likeIconY)!==null&&oe!==void 0?oe:400;return xe&&ce<40&&t?.likeIconYPosit==="top"&&(ce+=40),t?.likeIconYPosit==="top"&&(ce+=Bt),_?.video?o.createElement(so,{key:_.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:_.isCollected,recData:_,className:"clc-sxp-like-button",style:{position:t?.likeIconFixed?"fixed":"absolute",[(Q=t.likeIconXPosit)!==null&&Q!==void 0?Q:"right"]:(be=t.likeIconX)!==null&&be!==void 0?be:0,[(re=t.likeIconYPosit)!==null&&re!==void 0?re:"bottom"]:ce},position:H}):null},[t,xe]),We=_=>{var H,U,oe,Q,be,re;if(!(!((H=_?.video)===null||H===void 0)&&H.url)&&(!((U=_?.video)===null||U===void 0)&&U.imgUrls)){const ce=Date.now(),De=_e.current===0?0:(ce-_e.current)/1e3;q?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(Q=(oe=_?.video)===null||oe===void 0?void 0:oe.itemId)!==null&&Q!==void 0?Q:"",contentName:(be=_?.video.title)!==null&&be!==void 0?be:"",imageEndTime:`${ce}`,playDuration:`${De}`,contentTags:JSON.stringify((re=_?.video.tags)!==null&&re!==void 0?re:[]),position:ee+"",contentFormat:"image",traceInfo:_?.video.traceInfo}})}},Xe=(_,H)=>{var U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze,et,ot,pt,Me,ut,Et,Ce,vt,Ut;if(jt||xe)return;const Ct=new Date-ft.current;if(t?.openSlideSkip&&Ct>=((U=t?.slideSkipStartTime)!==null&&U!==void 0?U:0)&&Lo()&&_){const li=((be=(Q=(oe=_?.video)===null||oe===void 0?void 0:oe.bindProducts)===null||Q===void 0?void 0:Q[0])===null||be===void 0?void 0:be.link)||((ce=(re=_?.video)===null||re===void 0?void 0:re.bindProduct)===null||ce===void 0?void 0:ce.link)||((De=_?.product)===null||De===void 0?void 0:De.link),qe=_?.product||((Ne=_?.video)===null||Ne===void 0?void 0:Ne.bindProduct)||((me=(Ve=_?.video)===null||Ve===void 0?void 0:Ve.bindProducts)===null||me===void 0?void 0:me[0]);if(li){let ui=null;!((we=_?.video)===null||we===void 0)&&we.url?ui="video":!((ze=(at=_?.video)===null||at===void 0?void 0:at.imgUrls)===null||ze===void 0)&&ze.length&&(ui="image"),q?.({eventInfo:{eventSubject:"swipeToWeb",eventDescription:"User swiped to web",productId:(et=qe?.itemId)!==null&&et!==void 0?et:"",productName:(ot=qe?.title)!==null&&ot!==void 0?ot:"",price:qe?.price?qe?.price+"":"0",productCollection:(pt=qe?.collection)!==null&&pt!==void 0?pt:"",contentTags:qe?.tags?JSON.stringify(qe?.tags):"",position:H+"",contentId:(ut=(Me=_?.video)===null||Me===void 0?void 0:Me.itemId)!==null&&ut!==void 0?ut:"",traceInfo:(Ut=(Ce=(Et=_?.video)===null||Et===void 0?void 0:Et.traceInfo)!==null&&Ce!==void 0?Ce:(vt=_?.product)===null||vt===void 0?void 0:vt.traceInfo)!==null&&Ut!==void 0?Ut:"",contentFormat:ui}}),Re.current=!0,window.location.href=window.getJointUtmLink(li)}}},Ye=_=>{var H,U,oe,Q,be,re,ce,De,Ne,Ve,me,we,at,ze,et,ot,pt;const Me=s[_.previousIndex];if(!Me)return;let ut=null;!((H=Me?.video)===null||H===void 0)&&H.url?ut="video":!((oe=(U=Me?.video)===null||U===void 0?void 0:U.imgUrls)===null||oe===void 0)&&oe.length&&(ut="image"),_.previousIndex-_.activeIndex<0?(q?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(be=(Q=Me?.video)===null||Q===void 0?void 0:Q.itemId)!==null&&be!==void 0?be:"",productId:(ce=(re=Me?.product)===null||re===void 0?void 0:re.itemId)!==null&&ce!==void 0?ce:"",requestId:null,traceInfo:(Ne=(De=Me?.video)===null||De===void 0?void 0:De.traceInfo)!==null&&Ne!==void 0?Ne:"",contentFormat:ut,position:((Ve=_.previousIndex)!==null&&Ve!==void 0?Ve:0)+""}}),We(Me),Xe(Me,_.previousIndex)):(q?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(we=(me=Me?.video)===null||me===void 0?void 0:me.itemId)!==null&&we!==void 0?we:"",productId:(ze=(at=Me.product)===null||at===void 0?void 0:at.itemId)!==null&&ze!==void 0?ze:"",requestId:null,traceInfo:(ot=(et=Me?.video)===null||et===void 0?void 0:et.traceInfo)!==null&&ot!==void 0?ot:"",contentFormat:ut,position:((pt=_.previousIndex)!==null&&pt!==void 0?pt:0)+""}}),We(Me)),Ke(Me),K.current=new Date},Ke=_=>{var H,U,oe;!(!((H=_?.video)===null||H===void 0)&&H.url)&&!(!((U=_?.video)===null||U===void 0)&&U.imgUrls)&&_?.product&&Le(_,_.product,(oe=_?.product)===null||oe===void 0?void 0:oe.bindCta,K.current,ee)};o.useEffect(()=>{const _=s[ee];B?Ke(_):K.current=new Date},[B,s,ee]);const st=(_,H,U)=>{var oe,Q,be,re,ce,De,Ne,Ve;const me=s[_];if(!(!((oe=me?.video)===null||oe===void 0)&&oe.url)&&(!((Q=me?.video)===null||Q===void 0)&&Q.imgUrls)){const we=Date.now();_e.current=we,q?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(re=(be=me?.video)===null||be===void 0?void 0:be.itemId)!==null&&re!==void 0?re:"",contentName:(ce=me?.video.title)!==null&&ce!==void 0?ce:"",imageStartTime:`${we}`,contentTags:JSON.stringify((De=me?.video.tags)!==null&&De!==void 0?De:[]),position:_+"",contentFormat:"image",traceInfo:me?.video.traceInfo,loadTime:H?.loadTime}}),U&&(bt?.({eventName:"ViewContent",product:(Ne=me?.video)===null||Ne===void 0?void 0:Ne.bindProduct}),bt?.({eventName:"PageView",product:(Ve=me?.video)===null||Ve===void 0?void 0:Ve.bindProduct}))}},nt=o.useCallback(_=>{var H,U,oe,Q,be,re;if(!_)return;let ce=(H=t?.muteIconY)!==null&&H!==void 0?H:23;return xe&&ce<40&&t?.muteIconYPosit==="top"&&(ce+=40),t?.muteIconYPosit==="top"&&(ce+=Bt),(t?.isShowMute===void 0||t?.isShowMute===!0)&&o.createElement(ro,{style:{position:t?.muteIconFixed?"fixed":"absolute",visibility:!((oe=(U=z?.[ee])===null||U===void 0?void 0:U.video)===null||oe===void 0)&&oe.url?"visible":"hidden",zIndex:999,transform:"translate3d(0px,0px,0px)",[(Q=t?.muteIconXPosit)!==null&&Q!==void 0?Q:"right"]:(be=t?.muteIconX)!==null&&be!==void 0?be:0,[(re=t?.muteIconYPosit)!==null&&re!==void 0?re:"bottom"]:ce},defaultValue:Be,activeIcon:t?.unMuteIcon?t?.unMuteIcon:J,unactiveIcon:t?.muteIcon?t?.muteIcon:$,onChange:Y})},[t,z,ee,Be,xe]),rt=o.useMemo(()=>G?o.createElement("div",{style:{height:Gt,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},o.createElement("img",{width:64,height:64,src:Ue,alt:"loading...",style:{objectFit:"contain"}})):z?.map((_,H)=>o.createElement(zt,{key:H,virtualIndex:H,style:{overflow:"hidden"}},_&&o.createElement(o.Fragment,null,_?.loading?o.createElement("div",{style:{height:Gt,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},o.createElement("img",{width:64,height:64,src:Ue,alt:"loading...",style:{objectFit:"contain"}})):o.createElement(o.Fragment,null,Se(_,H),Oe(_,H,!t?.likeIconFixed),nt(!t?.muteIconFixed),ve(_,H))))),[n,s,Gt,G,Se,ve,z,Ue,Pe,nt]);return o.createElement("div",{id:"sxp-render",className:"clc-sxp-container",style:Object.assign({},t?.textUnderlineOffset&&{textUnderlineOffset:`${t?.textUnderlineOffset}px`})},xe&&o.createElement(to,{icon:vo,styles:{background:"rgba(0,0,0,.3)",color:"#fff",top:`${Bt}px`},textStyle:Object.assign(Object.assign({},(p=(g=(v=(x=(b=t?.hashTag)===null||b===void 0?void 0:b[0])===null||x===void 0?void 0:x.item)===null||v===void 0?void 0:v.props)===null||g===void 0?void 0:g.textStyles)===null||p===void 0?void 0:p.hashTagTitle),{color:"#fff"}),onClose:()=>{!lt.isEqual(Ft,Lt)&&Lt&&Lt?.length&&xt?.(Lt),Je?.(!0)}}),X,o.createElement(mo,{tagList:A,setActiveIndex:ke,style:{top:Bt}}),((T=t?.backButton)===null||T===void 0?void 0:T.enable)&&!ht&&!de&&!xe&&o.createElement(fo,{data:t?.backButton,minusHeight:Bt,tagHeight:ii,onClick:()=>history?.back()}),(((S=(m=(O=(I=(k=t?.multiPosts)===null||k===void 0?void 0:k[0])===null||I===void 0?void 0:I.item)===null||O===void 0?void 0:O.props)===null||m===void 0?void 0:m.backButton)===null||S===void 0?void 0:S.enable)&&ht||de)&&!xe&&o.createElement(fo,{data:(L=(C=(P=(w=t?.multiPosts)===null||w===void 0?void 0:w[0])===null||P===void 0?void 0:P.item)===null||C===void 0?void 0:C.props)===null||L===void 0?void 0:L.backButton,minusHeight:Bt,tagHeight:ii,onClick:()=>{var _,H;const U=z?.[ee];q?.({eventInfo:{eventSubject:"backMultiPostClick",eventDescription:"backMultiPostClick",traceInfo:((_=U?.video)===null||_===void 0?void 0:_.traceInfo)||((H=U?.product)===null||H===void 0?void 0:H.traceInfo)||""}}),location?.reload()}}),Zt?o.createElement(Xr,{imageUrl:t?.swipeTipIcon,style:{top:`${50-((E=t?.swipeTipOffset)!==null&&E!==void 0?E:0)}%`},duration:t?.swiperTipAniDur}):null,o.createElement(oi,{style:{marginTop:ii},ref:se,onSlideChange:()=>{se.current.swiper.allowTouchMove=!1,setTimeout(()=>{se.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:_=>{ke(_.activeIndex),!B&&(Ye(_),!(xe||kt)&&_?.activeIndex+1>=s?.length&&(ue||(fe(!0),Ae?.(Ze).then(H=>{var U;fe(!1),H&&((U=H?.recList)===null||U===void 0?void 0:U.length)>0&&Qe(Ze+1)}))))},direction:"vertical",height:Gt},rt,Oe(z[ee],ee,!!t?.likeIconFixed),nt(!!t?.muteIconFixed)),o.createElement(no,Object.assign({},(D=(F=(V=t?.hashTag)===null||V===void 0?void 0:V[0])===null||F===void 0?void 0:F.item)===null||D===void 0?void 0:D.props)),o.createElement(Jr,{resolver:l,globalConfig:t}),de&&o.createElement(rn,Object.assign({},(M=(R=(N=t?.multiPosts)===null||N===void 0?void 0:N[0])===null||R===void 0?void 0:R.item)===null||M===void 0?void 0:M.props,(Z=(W=(j=t?.multiPosts)===null||j===void 0?void 0:j[0])===null||W===void 0?void 0:W.item)===null||Z===void 0?void 0:Z.event,{style:{position:"fixed",top:0,left:0,right:0}})))},$r=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:n,rec:a,index:l})=>o.createElement(oi,{defaultValue:0,direction:"horizontal",modules:[Ci,Ii],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",bulletElement:"button"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(s=>o.createElement(zt,{key:s},o.createElement(co,{src:s,height:i,imgUrlsPostConfig:n}))));var ed=o.memo($r);const td=({rec:t,index:e,height:i,data:n,muted:a,activeIndex:l,videoPostConfig:s,width:c})=>{const[r,u]=o.useState(!1),d=o.useRef(null),{bffEventReport:f,sxpParameter:h,waterFallData:A,openHashtag:y}=je(),b=o.useRef(0),[x,v]=o.useState(!1),[g,p]=o.useState(!0),T=o.useRef(null),[k,I]=o.useState("");o.useEffect(()=>{d.current&&(d.current.muted=a)},[a]);const O=o.useCallback(()=>{var R;(R=d.current)===null||R===void 0||R.play()},[]),m=Ot("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),S=o.useCallback(()=>{var R,M,j,W,Z,J,$,ae,de,ee,ke,_e,Be;u(!1);const Y=n[e];if(Y&&(!((R=d?.current)===null||R===void 0)&&R.duration)){b.current=((M=d?.current)===null||M===void 0?void 0:M.currentTime)||0;const K=((W=(j=d.current)===null||j===void 0?void 0:j.duration)!==null&&W!==void 0?W:0).toFixed(2),ue=((J=(Z=d.current)===null||Z===void 0?void 0:Z.currentTime)!==null&&J!==void 0?J:0).toFixed(2),fe=g?"0":"1";f?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(ae=($=Y?.video)===null||$===void 0?void 0:$.itemId)!==null&&ae!==void 0?ae:"",contentName:(ee=(de=Y?.video)===null||de===void 0?void 0:de.title)!==null&&ee!==void 0?ee:"",playType:fe,startTime:ue,videoDuration:K,contentTags:JSON.stringify((_e=(ke=Y?.video)===null||ke===void 0?void 0:ke.tags)!==null&&_e!==void 0?_e:[]),position:e+"",contentFormat:"video",traceInfo:(Be=Y?.video)===null||Be===void 0?void 0:Be.traceInfo}}),p(!1)}},[f,n,e,g]),w=o.useCallback(()=>{v(!0)},[]),P=o.useCallback(R=>()=>{var M,j,W,Z,J;if(!x)return;const $=(M=d.current)===null||M===void 0?void 0:M.paused;switch(R){case"start":if(!$)return;(j=d.current)===null||j===void 0||j.play(),u(!1);break;case"pause":if($)return;(W=d.current)===null||W===void 0||W.pause(),u(!0);break;default:$?(Z=d.current)===null||Z===void 0||Z.play():(J=d.current)===null||J===void 0||J.pause(),u(!$);break}},[x]),C=o.useCallback(()=>{var R,M,j,W,Z,J,$,ae,de,ee,ke,_e,Be;const Y=n[e],K=((M=(R=d.current)===null||R===void 0?void 0:R.duration)!==null&&M!==void 0?M:0).toFixed(2),ue=((W=(j=d.current)===null||j===void 0?void 0:j.currentTime)!==null&&W!==void 0?W:0).toFixed(2);if(!((Z=d?.current)===null||Z===void 0)&&Z.duration){const fe=(((J=d?.current)===null||J===void 0?void 0:J.currentTime)-b.current).toFixed(2);f?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(ae=($=Y?.video)===null||$===void 0?void 0:$.itemId)!==null&&ae!==void 0?ae:"",contentName:(ee=(de=Y?.video)===null||de===void 0?void 0:de.title)!==null&&ee!==void 0?ee:"",endTime:ue,videoDuration:K,playDuration:fe,contentTags:JSON.stringify((_e=(ke=Y?.video)===null||ke===void 0?void 0:ke.tags)!==null&&_e!==void 0?_e:[]),position:e+"",contentFormat:"video",traceInfo:(Be=Y?.video)===null||Be===void 0?void 0:Be.traceInfo}})}},[n,e,f]),L=o.useMemo(()=>s?.mode==="2",[s]),E=o.useMemo(()=>{var R;return s?.mode==="2"?`translateY(-${50+((R=s?.offsetTop)!==null&&R!==void 0?R:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[s]),V=o.useMemo(()=>{var R;return((R=t?.video)===null||R===void 0?void 0:R.cover)||k},[k,t]),F=o.useCallback(()=>{if(!T||!d||!d.current||!T.current)return;const R=d?.current,M=T?.current,j=M.getContext("2d"),W=window?.innerWidth,Z=window?.innerHeight;M.height=Z,M.width=W,j?.drawImage(R,0,0,M.width,M.height),I(M.toDataURL())},[]);o.useEffect(()=>{var R,M,j,W;if(d.current){if(u(!1),!d.current.src){const Z=t?.video.url;if(Z.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const J=new window.Hls;J.loadSource(Z),J.attachMedia(d.current)}else d.current.canPlayType("application/vnd.apple.mpegurl"),d.current.src=Z;else d.current.src=Z;d.current.setAttribute("x5-playsinline","true"),d.current.setAttribute("webkit-playsinline","true")}return(R=d.current)===null||R===void 0||R.addEventListener("loadedmetadata",w),(M=d.current)===null||M===void 0||M.addEventListener("canplay",w),(j=d.current)===null||j===void 0||j.addEventListener("playing",S),(W=d.current)===null||W===void 0||W.addEventListener("loadeddata",F),()=>{var Z,J,$,ae;(Z=d.current)===null||Z===void 0||Z.removeEventListener("loadedmetadata",w),(J=d.current)===null||J===void 0||J.removeEventListener("canplay",w),($=d.current)===null||$===void 0||$.removeEventListener("playing",S),(ae=d.current)===null||ae===void 0||ae.removeEventListener("loadeddata",F)}}},[w,S,t?.video,F]);const D=o.useMemo(()=>!h?.placeholder_image||x?null:o.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:h?.placeholder_image,alt:"video poster"}),[x,h?.placeholder_image]);o.useEffect(()=>{const R=()=>{var M,j;l===e&&(!((M=t?.video)===null||M===void 0)&&M.url)&&(!((j=d?.current)===null||j===void 0)&&j.src)&&!r&&P("pause")()};return window.addEventListener("beforeunload",R),()=>{window.removeEventListener("beforeunload",R)}},[l,e,t,d,P,r]);const N=o.useMemo(()=>L?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[L]);return t?.video?o.createElement(o.Fragment,null,L?o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:P(),style:{position:"relative",width:c,height:i,overflow:"hidden"}},o.createElement(Mt,{src:V,style:Object.assign({height:i,width:c,objectFit:"cover"},N)}),o.createElement("canvas",{ref:T,style:{display:"none"}}),o.createElement("div",{style:{position:"absolute",width:c,height:i,top:"50%",transform:E,left:0,right:0}},o.createElement("div",{style:{position:"relative",width:c,height:"100%"}},o.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:C,onEnded:O,style:{width:"100%",height:i,objectFit:"contain"}}),o.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:m,alt:"video pause image"}))),D):o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:P(),style:{position:"relative",width:c,height:i,overflow:"hidden"}},o.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:C,onEnded:O}),D,o.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:m,alt:"video pause image"}))):null};var id=o.memo(td);const un={};Object.values(dn).forEach(t=>{un[t.extend.type]=t});const nd="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",od="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",ld=({data:t=[],globalConfig:e,tipText:i,nudge:n,tempMap:a,descStyle:l,hashTagStyle:s,containerHeight:c=664,containerWidth:r=375,appDomain:u,tagList:d=[]})=>{const f=o.useMemo(()=>{let I=0;return e?.logoUrl&&e?.isShowLogo&&(I+=45),d.length>0&&(I+=45),c-I},[e,c,d]),h=(I,O)=>{var m,S,w,P;if(!((m=I?.video)===null||m===void 0)&&m.url)return o.createElement(id,{rec:I,index:O,muted:!0,width:r,data:t??[],height:f,activeIndex:O,videoPostConfig:e?.videoPost});if(!((S=I?.video)===null||S===void 0)&&S.imgUrls)return o.createElement(ed,{key:I?.video.itemId,imgUrls:I?.video.imgUrls,width:r,height:f,rec:I,index:O,imgUrlsPostConfig:e?.imgUrlsPost});if(I.product&&I.product&&Array.isArray(e?.productPost)&&((w=e?.productPost)===null||w===void 0?void 0:w.length)>0)return(P=e?.productPost)===null||P===void 0?void 0:P.map((C,L)=>{var E,V,F,D,N,R,M,j;const W=un[(E=C?.item)===null||E===void 0?void 0:E.type],Z=hi(W),J=(V=W?.extend)===null||V===void 0?void 0:V.defaulSetting;return o.createElement(Z,Object.assign({key:`${O}${L}`,textStyle:Object.assign(Object.assign({},J?.textStyle),(F=C?.item)===null||F===void 0?void 0:F.textStyle),bindDatas:(N=(D=C?.item)===null||D===void 0?void 0:D.bindDatas)!==null&&N!==void 0?N:[]},J?.props,(R=C?.item)===null||R===void 0?void 0:R.props,{event:((M=C?.item)===null||M===void 0?void 0:M.event)||{},id:C?.id,rec:I,isPost:!0,tipText:i,style:Object.assign(Object.assign(Object.assign({},J?.style),(j=C?.item)===null||j===void 0?void 0:j.style),{width:r,height:f,overflow:"auto"}),index:O}))})},A=o.useMemo(()=>e?.logoUrl&&e?.isShowLogo?o.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},o.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]),y=(I,O)=>e?.isShowCTA===void 0||e?.isShowCTA?o.createElement("div",{className:"clc-sxp-bottom-card"},o.createElement(Di,{rec:I,index:O,tempMap:a,resolver:un})):null,b=(I,O)=>{var m,S,w,P,C,L,E;return I?.video?o.createElement(o.Fragment,null,((m=I?.video)===null||m===void 0?void 0:m.title)&&o.createElement("div",{className:"clc-sxp-bottom-shadow"}),o.createElement("div",{className:"clc-sxp-bottom"},o.createElement(po,{nudge:n}),y(I,O),o.createElement("div",null,o.createElement(Mi,{className:"clc-sxp-bottom-text",isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(w=(S=I?.video)===null||S===void 0?void 0:S.title)!==null&&w!==void 0?w:"",style:Object.assign(Object.assign({},l),{textShadow:e?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"})})),o.createElement(uo,{index:O,tags:(C=(P=I?.video)===null||P===void 0?void 0:P.hashTags)!==null&&C!==void 0?C:[],itemId:(L=I?.video)===null||L===void 0?void 0:L.itemId,itemType:!((E=I?.video)===null||E===void 0)&&E.itemId?"VIDEO":null,rec:I,hashTagStyle:s}))):null},x=Ot(od,u),v=Ot(nd,u),g=(I,O)=>{var m,S,w,P;if(!e?.isShowLike)return;let C=(m=e?.likeIconY)!==null&&m!==void 0?m:400;return C<40&&(C+=40),I?.video?o.createElement(so,{key:I.position,activeIcon:(S=e?.likeIcon)!==null&&S!==void 0?S:x,unActicveIcon:(w=e?.unlikeIcon)!==null&&w!==void 0?w:v,position:O,active:I.isCollected,recData:I,className:"clc-sxp-like-button",style:{top:C,right:(P=e?.likeIconX)!==null&&P!==void 0?P:0}}):null},p=Ot("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",u),T=Ot("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",u),k=(I,O)=>{var m,S,w,P;return o.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},A,o.createElement(mo,{tagList:d}),o.createElement(ro,{style:{position:"absolute",right:(m=e?.muteIconX)!==null&&m!==void 0?m:0,visibility:!((w=(S=t?.[O])===null||S===void 0?void 0:S.video)===null||w===void 0)&&w.url?"visible":"hidden",bottom:(P=e?.muteIconY)!==null&&P!==void 0?P:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:p,unactiveIcon:e?.muteIcon?e?.muteIcon:T}),h(I,O),b(I,O),g(I,O))};return o.createElement("div",{className:Ie.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((I,O)=>k(I,O)))};var ad=o.memo(ld);const sd=()=>{const{schema:t,resolver:e,popup:i}=Jt(),{setPopupDetailData:n,popupDetailData:a,popupCurTimeRef:l,checkCommodityIndexRef:s}=je(),{productView:c}=It(),[r,u]=o.useState();o.useEffect(()=>{const A=()=>{l.current=new Date};return A(),window.addEventListener("pageshow",A),()=>{window.removeEventListener("pageshow",A)}},[]),o.useEffect(()=>{i&&i?.id&&i?.id!==""&&(l.current=new Date,u(i))},[i]);const d=o.useMemo(()=>{var A,y,b,x;const v=(b=(y=(A=t?.sxpPageConf)===null||A===void 0?void 0:A.globalConfig)===null||y===void 0?void 0:y.popupList)===null||b===void 0?void 0:b.find((g,p)=>{if(g?.id===i?.id)return g});return v!==-1&&((x=v?.item)===null||x===void 0?void 0:x.type)==="Iframe"},[i,t]),f=()=>{var A,y,b,x,v,g,p,T,k,I,O,m,S,w,P,C,L,E;if(!i||i?.id===""||!r||new Date-l.current<((A=i?.duration)!==null&&A!==void 0?A:0))return;u(Object.assign(Object.assign({},i),{id:""}));const V=(x=(b=(y=t?.sxpPageConf)===null||y===void 0?void 0:y.globalConfig)===null||b===void 0?void 0:b.popupList)===null||x===void 0?void 0:x.find(F=>F?.id===i?.id);if(((v=V?.item)===null||v===void 0?void 0:v.type)==="CommodityDetail"||((g=V?.item)===null||g===void 0?void 0:g.type)==="CommodityDetailDiroNew"){const F=a;let D=(T=(p=F?.video)===null||p===void 0?void 0:p.bindProduct)!==null&&T!==void 0?T:(I=(k=F?.video)===null||k===void 0?void 0:k.bindProducts)===null||I===void 0?void 0:I[0],N=(S=(m=(O=F?.video)===null||O===void 0?void 0:O.bindProduct)===null||m===void 0?void 0:m.bindCta)!==null&&S!==void 0?S:(C=(P=(w=F?.video)===null||w===void 0?void 0:w.bindProducts)===null||P===void 0?void 0:P[0])===null||C===void 0?void 0:C.bindCta;if(s?.current>=0){const R=(E=(L=F?.video)===null||L===void 0?void 0:L.bindProducts)===null||E===void 0?void 0:E[s?.current];R&&(D=R,N=R?.bindCta)}D&&N&&c(F,D,N,l.current,a?.index)}setTimeout(()=>{window?.sxpPopup(""),n?.(null),s.current=-1},i?.duration)},h=o.useMemo(()=>{var A,y,b;return(b=(y=(A=t?.sxpPageConf)===null||A===void 0?void 0:A.globalConfig)===null||y===void 0?void 0:y.popupList)===null||b===void 0?void 0:b.map((x,v)=>{var g,p,T,k,I,O,m,S,w,P,C,L,E,V;if(x?.id===i?.id){const F=e[(g=x?.item)===null||g===void 0?void 0:g.type],D=hi(F),N=((k=(T=(p=x?.item)===null||p===void 0?void 0:p.event)===null||T===void 0?void 0:T.onClick)===null||k===void 0?void 0:k.linkType)==="externalLink",R=((m=(O=(I=x?.item)===null||I===void 0?void 0:I.event)===null||O===void 0?void 0:O.onClick)===null||m===void 0?void 0:m.linkType)==="popup",M=(S=F?.extend)===null||S===void 0?void 0:S.defaulSetting;return o.createElement(D,Object.assign({key:v,style:Object.assign(Object.assign(Object.assign({},M?.style),(w=x?.item)===null||w===void 0?void 0:w.style),{height:"100%"}),textStyle:Object.assign(Object.assign({},M?.textStyle),(P=x?.item)===null||P===void 0?void 0:P.textStyle),bindDatas:(L=(C=x?.item)===null||C===void 0?void 0:C.bindDatas)!==null&&L!==void 0?L:[]},M?.props,(E=x?.item)===null||E===void 0?void 0:E.props,{event:((V=x?.item)===null||V===void 0?void 0:V.event)||{},schema:t,id:x?.id,isExternalLink:N,isPopup:R,onClose:f}))}else return o.createElement(o.Fragment,null)})},[t,i,e,f]);return o.createElement(di,{popup:r,onClose:f,padding:0,modalStyle:{position:"fixed"},isFullScreen:d},h)},vn={};Object.values(dn).forEach(t=>{vn[t.extend.type]=t});const rd=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:n=20,loadingImage:a,appDomain:l,enabledMetaConversionApi:s,dataList:c})=>{var r,u,d,f,h,A;const y=o.useMemo(()=>{var p;return location?.search?(p=location?.search)===null||p===void 0?void 0:p.replace("?",""):""},[]),[b,x]=o.useState(t?.data),[v,g]=o.useState();return o.createElement(Dn,{resolver:vn,enableDataSource:!1,schema:b,utmVal:v||y},o.createElement(In,{utmVal:y,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(u=(r=t?.sxp_parameter)===null||r===void 0?void 0:r.personalized_recommend)!==null&&u!==void 0?u:e,defaultSize:(f=(d=t?.sxp_parameter)===null||d===void 0?void 0:d.default_recommend)!==null&&f!==void 0?f:i,hashTagSize:(A=(h=t?.sxp_parameter)===null||h===void 0?void 0:h.hash_tag_size)!==null&&A!==void 0?A:n,loadingImage:a,appDomain:l,enabledMetaConversionApi:s,utmParameter:t?.utm_parameter,data:t,dataList:c,onUpdateSchema:p=>x(p),onUpdateChannel:p=>g(p),render:({rtcList:p,tagList:T,pageData:k})=>{var I;return o.createElement(o.Fragment,null,o.createElement(ho,Object.assign({defaultData:t},(I=k?.data)===null||I===void 0?void 0:I.sxpPageConf,{tagList:T,data:p,resolver:vn})),o.createElement(sd,null))}}))};var dd=o.memo(rd);exports.DiyPortalPreview=ad,exports.EditorDataProvider=Ir,exports.Modal=di,exports.SxpDataSourceProvider=In,exports.SxpPageCore=dd,exports.SxpPageRender=ho,exports.core=zo,exports.default=Io,exports.materials=dn,exports.useEditorDataProvider=sn;
11
11
  //# sourceMappingURL=index.min.cjs.map