pb-sxp-ui 1.19.20 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -14
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +2 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +1 -14
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/hooks/useVisibleHeight.js +1 -14
- package/lib/core/hooks/useVisibleHeight.js +1 -14
- package/package.json +1 -1
package/dist/index.min.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var mt=require("lodash"),Ro=require("uuid"),Do=require("pako"),n=require("react"),On=require("qs"),Vo=require("eventemitter3"),Re=require("@emotion/css"),Ln=require("react-dom");function Bo(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Mn=Bo(Ln);function it(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function rt(t,e,i,o){function a(l){return l instanceof i?l:new i(function(s){s(l)})}return new(i||(i=Promise))(function(l,s){function c(d){try{u(o.next(d))}catch(A){s(A)}}function r(d){try{u(o.throw(d))}catch(A){s(A)}}function u(d){d.done?l(d.value):a(d.value).then(c,r)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Fo=/:\w+/g;var jn=(t,e)=>rt(void 0,void 0,void 0,function*(){const i={},o={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:c,urlParams:r,name:u,queryString:d,headers:A,body:f}=e[a];let p=c;r&&Object.entries(r).forEach(([b,m])=>{p=p.replace(Fo,S=>S===b?m:S)}),d&&(p+=d),o[l]=u;try{const b=yield fetch(p,{method:s,headers:Object.assign({"Content-Type":"application/json"},A),body:JSON.stringify(f)}).then(m=>m.json());i[l]=b}catch(b){console.error("DataSource request error: ",b),i[l]={}}}return{$store:i,idMapName:o}});const Nn="SXP_TOKEN_INFO",Wo=(t,e)=>rt(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(Nn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(Nn,JSON.stringify(c))}}return c});function ji(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)o[a]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(l=0|Math.random()*16,o[a]=i[a===19?l&3|8:l])}return o.join("")}const zo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*o)),a+=1;return e},Ho=()=>{const t=Ro.v4();return t?.replaceAll?t.replaceAll("-",""):zo(32)},Oe=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!o&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${o??"inherit"}`,u=`font-family:${a??"inherit"}`,d=f=>{const p=f.search(s),b=f.search(c);return p!==-1&&b!==-1&&p<b&&(i+=`<span style="${r}">${f.substring(p,b)}</span>`,l=f.substring(b,f?.length)),p!==-1&&b!==-1&&p>b&&(i+=`<span style="${u}">${f.substring(b,p)}</span>`,l=f.substring(p,f?.length)),p===-1?(i+=`<span style="${u}">${f.substring(b,f?.length)}</span>`,l="",!1):b===-1?(i+=`<span style="${r}">${f.substring(p,f?.length)}</span>`,l="",!1):!0};let A=!0;for(;A;)A=d(l);return i};function Ji(t){const i=document.cookie.split(";");let o=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(o=s)}),o??""}function Qi(){const t=self.navigator.userAgent;return t?/TalkBack/i.test(t)||/Funtouch/i.test(t)||/VoiceOver/i.test(t)||/NVDA/i.test(t)||/JAWS/i.test(t)||/ChromeVox/i.test(t):!1}function ai(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const l=t[a],s=t.substring(a+1,t.length);l==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let o=0;return e?.map(a=>{i?.push(t.substring(o,a)),o=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function Uo(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",a=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${a}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Rn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),a=Do.inflate(o,{to:"string"});return JSON.parse(a)}let $i=null;const Xo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class qo{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,$i)return $i;$i=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Xo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let It=null;const Yo={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{It||(It=new qo),o&&It.setApiUrl(o),It.setAppId(t),It.setTenantId(e),It.setEnv(i)},getDetail:t=>{if(!It)return;const e=It.getTenantId(),i=It.getAppId(),o=It.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var l,s;const c=yield a.json(),r=Rn((l=c?.data)===null||l===void 0?void 0:l.data);if(r){const{$store:u}=yield jn(o,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>rt(void 0,void 0,void 0,function*(){if(!It)return;const e=It.getTenantId(),i=It.getAppId(),o=It.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var l;const s=yield a.json();return s.success?(l=s?.data)===null||l===void 0?void 0:l.map(r=>Object.assign(Object.assign({},r),{data:Rn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>rt(void 0,void 0,void 0,function*(){if(!It)return;const e=yield Wo(It,t),i=ji(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");mt.isEmpty(o)&&(o=ji(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const a=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:o,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return a?.data||null})};function ti(){return n.useContext(Zn)}function Go(){return n.useContext(_n)}const en="feRealSessionIdKey",Dn=()=>{const t=Ho();return`${Date.now()}${t}`},_o=()=>{let t=Zo();return t||(t=Dn(),window.localStorage.setItem(en,t)),t},tn=()=>{const t=Dn();window.localStorage.setItem(en,t)},Zo=()=>window.localStorage.getItem(en),Vn="SXP_FAKE_USER_ID",Bn="FAKE_USER_STATE",Fn="AGREE_POLICY",Wn="SLIDE_SKIP_STATE",zn="CCONTSENT_STATE",Hn="USER_CONSENT_RESULT",Ko=()=>{let t=window.localStorage.getItem(Vn);return mt.isEmpty(t)&&(t=ji(36,62),window.localStorage.setItem(Vn,t)),t},Jo=()=>{const t=window.localStorage.getItem(Bn);return mt.isEmpty(t)&&window.localStorage.setItem(Bn,"true"),mt.isEmpty(t)},Qo=()=>{const t=window.localStorage.getItem(Wn);return mt.isEmpty(t)},$o=()=>{window.localStorage.setItem(Wn,"true")},el=()=>{const t=window.localStorage.getItem(zn);return mt.isEmpty(t)&&window.localStorage.setItem(zn,"true"),mt.isEmpty(t)},Un=()=>window.localStorage.getItem(Hn)==="true",Xn=()=>{window.localStorage.setItem(Hn,"true")};function kt(t,e){const{appDomain:i}=ze();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const xt=new Vo;var bt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(bt||(bt={}));const tl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:c}=ze(),r=n.useMemo(()=>{var A;const f=location.search.slice(1),p={};(A=ai(f.replace(/\+/g,"%2B")))===null||A===void 0||A.map(b=>{const m=b.split("=")[0],S=b.split("=")[1];p[m]=S});for(const b in p)p[b]=p[b].replace(/%2B/g,"+");return p},[]),u=A=>{var f;return(f=r[A])!==null&&f!==void 0?f:null};n.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),s?.(!0),window.localStorage.setItem(Fn,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},l??"More information"))))};var il=n.memo(tl);const qn=n.createContext({rtcList:[],tagList:[]});var nn;(function(t){t[t.BFF=5]="BFF"})(nn||(nn={}));const Ni="FOR U",nl=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:A=!1,enabledMetaConversionApi:f=!1,consentHeight:p,consentWidth:b,isOpenConsent:m=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:h,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:D})=>{var M,x,T,V,k;const[j,E]=n.useState([]),[y,F]=n.useState([]),[R,B]=n.useState(!0),[O,I]=n.useState({rtc:"",requestId:""}),N=n.useRef(null),X=n.useRef(!1),[U,q]=n.useState(()=>!!window.localStorage.getItem(Fn)),[Q,me]=n.useState(),[re,K]=n.useState(),[Te,Pe]=n.useState(A),[Be,ue]=n.useState([]),[de,_e]=n.useState(0),[He,Ue]=n.useState(!1),[Ge,nt]=n.useState(null),Ze=n.useRef(),ke=n.useRef(),Qe=n.useRef(),[Tt,De]=n.useState(Ni),Fe=n.useRef(-1),We=n.useRef(null),[Z,ee]=n.useState(!1),[_,le]=n.useState((x=(M=h?.data)===null||M===void 0?void 0:M.sxpPageConf)===null||x===void 0?void 0:x.globalConfig),[we,ye]=n.useState(),[$,W]=n.useState(!1),[Ne,$e]=n.useState(),[Ke,ot]=n.useState(),[Je,Ve]=n.useState([]),[et,ct]=n.useState(),[At,zt]=n.useState(),Mt=n.useMemo(()=>we??h,[we,h]),yt=n.useRef(!1);n.useEffect(()=>{var z,H;le((H=(z=h?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||H===void 0?void 0:H.globalConfig)},[h]);const wt=n.useMemo(()=>{var z,H,te,he;return(((he=(te=(H=(z=_?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!U&&!S||m)&&$},[U,_,m,S,$]),qt=n.useCallback(z=>{D?.(z),ot(z)},[]),gt=n.useCallback(z=>{var H;const te=z?.recList;return(H=te?.map(ce=>{var ve,Ae,Se,xe,Me,L;if(!((ve=ce?.video)===null||ve===void 0)&&ve.bindProducts&&((Se=(Ae=ce?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0){const Y=(L=(Me=(xe=ce?.video)===null||xe===void 0?void 0:xe.bindProducts)===null||Me===void 0?void 0:Me.filter(G=>!!G?.bindCta))!==null&&L!==void 0?L:[];return Object.assign(Object.assign({},ce),{video:Object.assign(Object.assign({},ce?.video),{bindProducts:Y})})}return ce}))!==null&&H!==void 0?H:[]},[]);n.useEffect(()=>{let z;return Je.length>0&&(z=setInterval(()=>{const te=new Date,he=15*1e3;Ve(ce=>ce.filter(ve=>te-ve.time<=he))},1e3)),()=>{clearInterval(z)}},[Je]),n.useEffect(()=>{const z=H=>{Ze.current=H};return xt.on(bt.CHANGE_THEME_TAG,z),()=>{xt.off(bt.CHANGE_THEME_TAG,z)}},[]),n.useEffect(()=>{Pe(A)},[A]);const Xe=n.useMemo(()=>e?.find(z=>z.type===nn.BFF),[e]),Ee=n.useMemo(()=>{var z;return((z=Xe?.headers)===null||z===void 0?void 0:z["x-app-id"])+Ko()},[Xe]),fe=()=>{var z,H;function te(ve){const Ae=ve.match(/groups=([^&]+)/);if(!Ae||!Ae[1])return!1;const xe=Ae[1].split(",");for(const Me of xe){const[L,Y]=Me.split(":");if(L==="4")return Y==="0"}return!1}function he(ve){var Ae;const xe=`; ${document.cookie}`.split(`; ${ve}=`);return xe.length===2?(Ae=xe.pop())===null||Ae===void 0?void 0:Ae.split(";").shift():""}const ce=decodeURIComponent((z=he("OptanonConsent"))!==null&&z!==void 0?z:"");return!!(window?.OnetrustActiveGroups&&((H=window?.OnetrustActiveGroups)===null||H===void 0?void 0:H.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(ce))},be=n.useCallback((z,H,te=!0)=>{var he;if(!Xe)return;const ce=Xe.url;if(H?.query){const Ae=On.stringify(H.query);z=`${z}?${Ae}`}const ve=location.search.slice(1);return(he=ai(ve))===null||he===void 0||he.forEach(Ae=>{Ae.split("=")[0],Ae.split("=")[1]}),window.fetch(`${ce}/api/${z}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Ee},Xe.headers),method:H.method,body:H.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Xe.headers),{"x-user-id":Ee}))))}):JSON.stringify(H.body)},H.type==="beacon"&&{keepalive:!0})).then(Ae=>Ae.json()).catch(Ae=>Promise.reject(Ae))},[Xe,Ee]),vt=n.useCallback(z=>{var H;if(fe())return Promise.resolve();const te={eventName:z?.eventName,eventSource:z?.eventSource};return be?.(`v1/data/collect/${(H=Xe?.headers)===null||H===void 0?void 0:H["x-app-id"]}/${z?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[be,Xe]);n.useEffect(()=>{const z=window.Image;window.Image=function(){const H=new z,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(H,"src",{set(he){if(!(fe()&&(he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/")||he.includes("https://www.facebook.com/tr")))&&(te.set.call(this,he),he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/"))){const ce=new URL(he),ve=Object.fromEntries(ce.searchParams.entries());vt({eventName:ve?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),H}},[vt]),n.useEffect(()=>{const z=navigator;if(!z.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const H=z.sendBeacon.bind(z);return z.sendBeacon=function(te,he){const ce=te instanceof URL?te.href:te.toString();if(fe()&&(ce.includes("https://tr.snapchat.com/p")||ce.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ve=H(te,he);function Ae(Se){return rt(this,void 0,void 0,function*(){return typeof Se=="string"?JSON.parse(Se):Se instanceof Blob?JSON.parse(yield Se.text()):Se instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(Se)):null})}return ve&&Promise.resolve().then(()=>rt(this,void 0,void 0,function*(){var Se,xe;try{const Me=yield Ae(he);ce.includes("https://tr.snapchat.com/p")?(xe=(Se=Me?.req)===null||Se===void 0?void 0:Se.forEach)===null||xe===void 0||xe.call(Se,L=>{var Y,G;!((Y=L?.t)===null||Y===void 0)&&Y.ev&&vt({eventName:(G=L?.t)===null||G===void 0?void 0:G.ev,eventSource:"Snapchat Pixel"})}):ce.includes("https://analytics.tiktok.com/api/v2/pixel")&&Me?.event&&vt({eventName:Me.event,eventSource:"TikTok Pixel"})}catch(Me){console.error("\u76D1\u63A7\u5931\u8D25:",Me)}})),ve},()=>{z.sendBeacon=H}},[vt]),n.useEffect(()=>{const z=window.fetch;window.fetch=function(H,te){var he=arguments;return rt(this,void 0,void 0,function*(){var ce;let ve;try{ve=typeof H=="string"?H:H instanceof URL?H.href:H.url}catch(Ae){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Ae),z.apply(this,he)}try{if(fe()&&(ve.includes("https://www.google-analytics.com/g/collect")||ve.includes("https://arms-retcode.aliyuncs.com/r.png")))return Promise.resolve(new Response(""));const Ae=z.apply(this,he);if(ve.includes("https://www.google-analytics.com/g/collect")){const Se=new URL(ve),xe=Object.fromEntries(Se.searchParams.entries()),Me=(ce=he[1])===null||ce===void 0?void 0:ce.body;if(xe?.en)vt({eventName:xe?.en,eventSource:"Google Analytics"});else if(Me){const Y=function(G){if(typeof G!="string")return[];const J=[],se=/en=([^&\r\n]*)/g;let ie;for(;(ie=se.exec(G))!==null;)J.push(decodeURIComponent(ie[1]));return J}(Me);Y?.forEach(G=>{vt({eventName:G,eventSource:"Google Analytics"})})}}return Ae}catch(Ae){throw console.error(Ae),Ae}})}},[vt]),n.useEffect(()=>{const z=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,z.apply(this,arguments)},XMLHttpRequest.prototype.send=function(te){var he;if(!(fe()&&this._url&&typeof this._url=="string"&&(this._url.includes("https://rumcollector.uptime.com")||this._url.includes("https://arms-retcode.aliyuncs.com/r.png")||this._url.includes("https://i.giesswein.com/nb-collector")))){if(this._url&&typeof this._url=="string"&&this._url.includes("https://i.giesswein.com/nb-collector")&&te&&typeof te=="string")try{const ce=JSON.parse(te);if(ce&&Array.isArray(ce.data)){const ve=ce.data[((he=ce.data)===null||he===void 0?void 0:he.length)-1];ve&&ve.e&&vt({eventName:ve.e,eventSource:"Northbeam Pixel"})}}catch(ce){console.error("Failed to parse Northbeam event from XHR",ce)}H.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=z,XMLHttpRequest.prototype.send=H}},[vt]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const Ht=n.useCallback((z,H)=>{if(!Xe)return;const te=Xe.url;if(H?.query){const he=On.stringify(H.query);z=`${z}?${he}`}return window.fetch(`${te}/admin/${z}`,{headers:Object.assign({"Content-Type":"application/json"},Xe.headers),method:H.method,body:JSON.stringify(H.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Xe]),Bt=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce,ve,Ae,Se,xe,Me,L,Y,G,J,se;if(z=Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:a,defaultSize:(te=z?.defaultSize)!==null&&te!==void 0?te:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},At&&{chatlabsId:At}),C&&{type:"story"}),Ke)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(Ke)});else if(i){const ne=(ve=(ce=(he=ai(i))===null||he===void 0?void 0:he.filter(ae=>{var pe,je;const ge=ae.split("=")[0];return(je=(pe=v?.channels)!==null&&pe!==void 0?pe:[])===null||je===void 0?void 0:je.includes(ge)}))===null||ce===void 0?void 0:ce.join("&"))!==null&&ve!==void 0?ve:"";ne&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(ne)}))}if(S){let ne=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!z?.channel||X.current)return;X.current=!0;let ae=[],pe=null;const je=ge=>rt(void 0,void 0,void 0,function*(){var Ie,dt,lt,at,st,tt;if(ge.pageNum=ne,pe=yield Ht?.("recommend/direct_page",{method:"POST",body:ge}),!pe?.success)return;B(!1),ae=ae.concat((at=(lt=(dt=(Ie=pe?.data)===null||Ie===void 0?void 0:Ie.recList)===null||dt===void 0?void 0:dt.filter)===null||lt===void 0?void 0:lt.call(dt,qe=>qe?.product||qe?.video))!==null&&at!==void 0?at:[]),j?.length===0&&(E(gt(Object.assign(Object.assign({},pe?.data),{recList:ae}))),ue(gt(Object.assign(Object.assign({},pe?.data),{recList:ae})))),((tt=(st=pe?.data)===null||st===void 0?void 0:st.recList)===null||tt===void 0?void 0:tt.some(qe=>qe?.product||qe?.video))&&(ne=ne+1,yield je(ge))});return yield je(z),!z?.hashTag&&pe&&I({rtc:(Ae=pe?.data)===null||Ae===void 0?void 0:Ae.rtc,requestId:(Se=pe?.data)===null||Se===void 0?void 0:Se.requestId}),Object.assign(Object.assign({},pe?.data),{recList:ae})}_?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(xe=z?.pageNum)!==null&&xe!==void 0?xe:1}));const ie=yield be?.("v1/recommend/list",{method:"POST",body:z});if(!ie?.success)return;z?.hashTag||I({rtc:ie.data.rtc,requestId:ie.data.requestId}),_?.enablePreview&&!S&&(!((L=(Me=ie?.data)===null||Me===void 0?void 0:Me.recList)===null||L===void 0)&&L.some(ae=>ae?.product||ae?.video)||ee(!0));let oe=[];return oe=oe.concat((se=(J=(G=(Y=ie?.data)===null||Y===void 0?void 0:Y.recList)===null||G===void 0?void 0:G.filter)===null||J===void 0?void 0:J.call(G,ne=>ne?.product||ne?.video))!==null&&se!==void 0?se:[]),Object.assign(Object.assign({},ie.data),{recList:oe})}),[be,i,a,l,g,Ke,At,Ht]),Yi=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce;if(j.length<=0)return;const ve=j?.[j?.length-1],Ae=yield Bt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:re?.hashTag},((H=ve?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:[(te=ve?.product)===null||te===void 0?void 0:te.itemId]}),((he=ve?.video)===null||he===void 0?void 0:he.itemId)&&{contentFilter:[(ce=ve?.video)===null||ce===void 0?void 0:ce.itemId]}),{themeTag:Ze.current}),_?.enablePreview&&!S&&{pageNum:z}));return E(j.concat(gt(Ae))),ue(Be.concat(gt(Ae))),Ae}),[Bt,j,re,Be]),ri=n.useCallback((z,H)=>{var te,he,ce,ve,Ae;let Se=!1;const xe=(he=(te=h?.data)===null||te===void 0?void 0:te.sxpPageConf)===null||he===void 0?void 0:he.globalConfig;if(!((ce=xe?.session)===null||ce===void 0)&&ce.enable){const Me=localStorage.getItem("sessionStartTime"),L=Me?JSON.parse(Me):new Date().getTime();Math.floor((new Date().getTime()-L)/1e3/60)>=((Ae=(ve=xe?.session)===null||ve===void 0?void 0:ve.expires)!==null&&Ae!==void 0?Ae:30)&&(H?.("sessionTimeOut"),tn(),ke.current=new Date,Se=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&tn();return Se},[h]),ht=n.useCallback(({userInfo:z,eventInfo:H,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var ce,ve;if(!o||_?.enablePreview||he&&fe())return;z||(z={});const Ae=_o(),Se={},xe=location.search.slice(1);(ce=ai(xe))===null||ce===void 0||ce.forEach(J=>{const se=J.split("=")[0],ie=J.split("=")[1];Se[se]=ie});const Me=Se?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Ae,rtc:O.rtc,requestId:O.requestId},{playbookType:et}),Ne&&te&&{layoutVariantId:Ne}),H),H?.position&&Ke&&{position:Number(H?.position)+1+""}),Me&&{clSource:Me}),Y=Object.entries(z).map(([J,se])=>({name:J,value:se})),G=Object.entries(L).map(([J,se])=>se&&{name:J,value:se}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),be?.(`v2/cld/${(ve=Xe?.headers)===null||ve===void 0?void 0:ve["x-app-id"]}/${H?.eventSubject}${Me?`/${decodeURIComponent(Me)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:G},type:"beacon"})},[be,O,o,_?.enablePreview,Ne,_,et,Xe]),oi=n.useCallback((z,H)=>{var te,he,ce;const ve=mt.cloneDeep(z),Ae=new URLSearchParams(window.location.search),Se=Ae?.get("fbclid"),xe={event_source_url:(te=window?.location)===null||te===void 0?void 0:te.href,external_id:Ee,client_user_agent:(ce=(he=window?.navigator)===null||he===void 0?void 0:he.userAgent)!==null&&ce!==void 0?ce:"",fbc:Se?`fb.2.${new Date().getTime()}.${Se}`:"",fbp:Ji("_fbp")?`${Ji("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},Me=/\{\{(.*?)\}\}/g,L=Y=>{if(Y){if(Y instanceof Array)Y?.map(G=>L(G));else for(const G in Y)if(Object.prototype.hasOwnProperty.call(Y,G)){const J=Y?.[G];if(typeof J=="object")L(J);else if(typeof J=="string"){const se=J?.match(Me);se&&se.forEach(ie=>{var oe;const ne=ie.substring(2,ie.length-2);try{let ae=new Function("fix_par","product",`return ${ne}`)(xe,H);ae?(ne?.indexOf("currency")!==-1&&ae?.indexOf("-")!==-1&&typeof ae=="string"&&(ae=(oe=ae?.split("-"))===null||oe===void 0?void 0:oe[0]),Y[G]=ae):delete Y[G]}catch(ae){delete Y[G],console.error("An error occurred:",ae?.message)}})}}}};return L(ve),ve},[Ee]),Pi=n.useCallback(({eventName:z,product:H})=>{var te,he,ce,ve,Ae,Se,xe,Me,L,Y;if(!o||_?.enablePreview||fe())return;let G=!1;const J=(te=_?.pixel)===null||te===void 0?void 0:te[z];if(J?.event_name&&typeof window?.fbq=="function"){let oe=function(ne,ae,pe){const je=new RegExp("([?&])"+ae+"=.*?(&|$)","i"),ge=ne.indexOf("?")!==-1?"&":"?";return ne.match(je)?ne.replace(je,"$1"+ae+"="+pe+"$2"):ne+ge+ae+"="+pe};if(z==="PageView"&&J?.event_name==="PageView")if(!yt.current)yt.current=!0;else{const ne=window.location.href,ae=oe(ne,"timestamp",Date.now());history.pushState({path:ae},"",ae),G=!0}else window?.fbq("track",J?.event_name,oi(J,H))}if(!G){z==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(he=_?.tiktokPixel)===null||he===void 0?void 0:he[z];oe?.event_name&&typeof window?.ttq=="object"&&typeof((ce=window?.ttq)===null||ce===void 0?void 0:ce.track)=="function"&&((ve=window?.ttq)===null||ve===void 0||ve.track(oe?.event_name,oi(oe,H)))}const se=(Ae=_?.snapchatPixel)===null||Ae===void 0?void 0:Ae[z];se?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",se?.event_name,oi(se,H)),z==="PageView"&&typeof window?.Northbeam=="object"&&typeof((Se=window?.Northbeam)===null||Se===void 0?void 0:Se.trackPageView)=="function"&&((xe=window?.Northbeam)===null||xe===void 0||xe.trackPageView());const ie=(Me=_?.converApi)===null||Me===void 0?void 0:Me[z];if(f&&ie){const oe=oi(ie,H),ne={},ae=location.search.slice(1);(L=ai(ae))===null||L===void 0||L.forEach(je=>{const ge=je.split("=")[0],Ie=je.split("=")[1];ne[ge]=Ie});const pe=ne?.cl_source;be?.(`v2/fb/${(Y=Xe?.headers)===null||Y===void 0?void 0:Y["x-app-id"]}/${z}${pe?`/${decodeURIComponent(pe)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[be,o,f,_,Xe,oi]),$t=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/recommend/like",{method:"POST",body:z});return H?.success}),[be]),di=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/recommend/unlike",{method:"POST",body:z});return H?.success}),[be]),ei=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/customform",{method:"POST",body:z});return H?.success}),[be]),Ft=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce,ve,Ae,Se,xe;const Me=!!(!((he=(te=(H=z?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Me))try{const L=(Ae=(ve=(ce=ai(i))===null||ce===void 0?void 0:ce.filter(G=>{var J,se;const ie=G.split("=")[0];return(se=(J=v?.channels)!==null&&J!==void 0?J:[])===null||se===void 0?void 0:se.includes(ie)}))===null||ve===void 0?void 0:ve.join("&"))!==null&&Ae!==void 0?Ae:"",Y=yield be?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(L)}});F((xe=(Se=Y?.data)===null||Se===void 0?void 0:Se.tags)!==null&&xe!==void 0?xe:[])}catch(L){console.log("e",L)}}),[be,i]),Ut=n.useCallback((z,H,te,he)=>{var ce,ve,Ae,Se,xe,Me,L,Y,G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St,Le,Ce,jt,Ot,ci,ut,li,_i,Zi;const _t=te?.bindCta,No=((ce=H?.video)===null||ce===void 0?void 0:ce.bindProduct)||((ve=H?.video)===null||ve===void 0?void 0:ve.bindProducts)&&((Se=(Ae=H?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0;let Mi="",Ki=null;He?Mi="hashTagPage":!((xe=H?.video)===null||xe===void 0)&&xe.url?(Mi="videoPage",Ki="video"):!((L=(Me=H?.video)===null||Me===void 0?void 0:Me.imgUrls)===null||L===void 0)&&L.length&&(Mi="imagePage",Ki="image");const Pn=(ne=(ie=(Y=te?.tags)!==null&&Y!==void 0?Y:(se=(J=(G=H?.video)===null||G===void 0?void 0:G.bindProducts)===null||J===void 0?void 0:J[0])===null||se===void 0?void 0:se.tags)!==null&&ie!==void 0?ie:(oe=H?.video)===null||oe===void 0?void 0:oe.tags)!==null&&ne!==void 0?ne:(ae=H?.product)===null||ae===void 0?void 0:ae.tags;ht?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(pe=_t?.itemId)!==null&&pe!==void 0?pe:"",ctaName:(je=_t?.title)!==null&&je!==void 0?je:"",contentTags:Pn?JSON.stringify(Pn):"",position:he+"",contentId:(Ie=(ge=H?.video)===null||ge===void 0?void 0:ge.itemId)!==null&&Ie!==void 0?Ie:"",productId:No?te?.itemId:"",traceInfo:(_i=(ci=(St=(st=(dt=_t?.traceInfo)!==null&&dt!==void 0?dt:(at=(lt=H?.video)===null||lt===void 0?void 0:lt.bindCta)===null||at===void 0?void 0:at.traceInfo)!==null&&st!==void 0?st:(qe=(pt=(tt=H?.video)===null||tt===void 0?void 0:tt.bindProduct)===null||pt===void 0?void 0:pt.bindCta)===null||qe===void 0?void 0:qe.traceInfo)!==null&&St!==void 0?St:(Ot=(jt=(Ce=(Le=H?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Ce===void 0?void 0:Ce[0])===null||jt===void 0?void 0:jt.bindCta)===null||Ot===void 0?void 0:Ot.traceInfo)!==null&&ci!==void 0?ci:(li=(ut=H?.product)===null||ut===void 0?void 0:ut.bindCta)===null||li===void 0?void 0:li.traceInfo)!==null&&_i!==void 0?_i:"",fromKName:Mi,fromKPage:(Zi=location?.href)!==null&&Zi!==void 0?Zi:"",contentFormat:Ki})})},[ht,He]),Et=n.useCallback(()=>{var z,H,te;const he=location.search.slice(1),ce={};(z=ai(he.replace(/\+/g,"%2B")))===null||z===void 0||z.map(Se=>{const xe=Se.split("=")[0],Me=Se.split("=")[1];ce[xe]=Me});for(const Se in ce)ce[Se]=ce[Se].replace(/%2B/g,"+");const ve=Se=>{var xe;return(xe=ce[Se])!==null&&xe!==void 0?xe:""},Ae=new Date;ke.current=Ae,ht?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:ve("utm_source"),utmMedium:ve("utm_medium"),utmCampaign:ve("utm_campaign"),utmId:ve("utm_id"),utmContent:ve("utm_content"),enterTime:Math.floor(Ae/1e3)+"",requestId:null,enterUrl:(te=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&te!==void 0?te:""},reportLayId:!1})},[ht]),Gi=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){var z,H;const te=yield be?.("v1/account",{method:"GET"});return zt((z=te?.data)===null||z===void 0?void 0:z.chatLabsId),((H=te?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[be]),Oi=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/account/consent",{method:"POST",body:{consentResult:z}});return H?.success}),[be]);n.useEffect(()=>{wt||Et()},[wt]),n.useEffect(()=>{if(wt||s)return;B(!0);let z,H;Bt().then(te=>{var he,ce,ve,Ae,Se,xe,Me,L,Y,G,J;if(te){const se=gt(te);let ie,oe;if(te?.layoutVariantId){z=te?.layoutVariantId,$e(te?.layoutVariantId);const ne=(ce=(he=te?.layoutVariantId)===null||he===void 0?void 0:he.split("-"))===null||ce===void 0?void 0:ce[1];ne&&(ie=w?.find(ae=>ae?.id===ne),ie?(ye(ie),document.title=(ve=ie?.name)!==null&&ve!==void 0?ve:"home",oe=(Se=(Ae=ie?.data)===null||Ae===void 0?void 0:Ae.sxpPageConf)===null||Se===void 0?void 0:Se.globalConfig,le(oe),P?.(ie?.data),!((Y=(L=(Me=(xe=oe?.consent)===null||xe===void 0?void 0:xe[0])===null||Me===void 0?void 0:Me.item)===null||L===void 0?void 0:L.props)===null||Y===void 0)&&Y.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(Ke||(oe?.playbook==="organic menu"||!oe&&_?.playbook==="organic menu"?(ct("organicMenu"),se.unshift("organic menu"),H="organicMenu"):(ct("paidMedia"),H="paidMedia")),E(se),ue(se),Ft(ie??Mt),Ke){const ne=se?.[0],ae=((G=ne?.video)===null||G===void 0?void 0:G.traceInfo)||((J=ne?.product)===null||J===void 0?void 0:J.traceInfo)||"";ht?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ae,branchfeed:Ke},z&&{layoutVariantId:z})}),ht?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ae,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-Qe?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{ht({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),H&&{playbookType:H})}),B(!1)})},[wt,Ke]),n.useEffect(()=>{s&&(B(!0),Ft(h),Bt().then(z=>{if(z){const H=gt(z);_?.playbook==="organic menu"&&!Ke&&H.unshift("organic menu"),E(H),ue(H)}}).finally(()=>{B(!1)}))},[Bt,Ft,Ke]);const Li=kt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return n.createElement(qn.Provider,{value:{rtcList:j,setRtcList:E,mutateLike:$t,mutateUnlike:di,submitForm:ei,popupDetailData:Q,loadVideos:Yi,setPopupDetailData:me,getRecommendVideos:Bt,bffEventReport:ht,isPreview:s,loading:R,sxpParameter:c,waterFallData:re,setWaterFallData:K,ctaEvent:Ut,swiperRef:N,openHashtag:Te,setOpenHashtag:Pe,cacheRtcList:Be,setCacheRtcList:ue,cacheActiveIndex:de,setCacheActiveIndex:_e,isFromHashtag:He,setIsFromHashtag:Ue,appDomain:r,hashTagSize:u,loadingImage:d??Li,isOpenHashTag:A,tagList:y,setLoading:B,videoRef:Ge,setVideoRef:nt,bffFbReport:Pi,isAgreePolicy:U,setIsAgreePolicy:q,curTime:ke,h5EnterLink:Et,themeTag:Ze,isShowConsent:wt,selectTag:Tt,setSelectTag:De,globalConfig:_,popupCurTimeRef:We,checkCommodityIndexRef:Fe,isEditor:S,isNoMoreData:Z,updateChannel:qt,channel:Ke,eventTimeList:Je,setEventTimeList:Ve,multiPostTimeRef:Qe,refreshFeSession:ri,getAccount:Gi,accountSonsent:Oi,isDiyH5:C,pixelPvStatusRef:yt}},wt?n.createElement(il,Object.assign({},(k=(V=(T=_?.consent)===null||T===void 0?void 0:T[0])===null||V===void 0?void 0:V.item)===null||k===void 0?void 0:k.props)):t({rtcList:j,mutateLike:$t,mutateUnlike:di,submitForm:ei,tagList:y,pageData:Mt}))};var Yn=n.memo(nl);function ze(){return n.useContext(qn)}var Gn;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(Gn||(Gn={}));const _n=n.createContext({$store:{},options:[],configs:[]}),ol=({children:t,isSsr:e,enable:i})=>{const[o,a]=n.useState([]),{schema:l}=ti(),[s,c]=n.useState(l.__STORE__||{}),[r,u]=n.useState([]);n.useEffect(()=>{var f;e||mt.isEqual(r,l?.dataSource)||u((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const d=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:p}=yield jn("",r);c(f),A(f,p)}),[r]),A=(f,p)=>{const b=[];Object.entries(f).forEach(([m,S])=>{Object.keys(S).forEach(v=>{const g={label:`${p[m]} - ${v}`,value:`{{ ${m}.${v} }}`};b.push(g)})}),a(b)};return n.useEffect(()=>{e||d()},[d,e,l]),i?n.createElement(_n.Provider,{value:{$store:l.__STORE__||s,options:o,configs:r}},t):t};var ll=n.memo(ol);const Ri={id:ji(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},on={id:"",duration:0,name:"none"},Zn=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Ri],redoStack:[],popup:on,setPopup:()=>{}}),Kn=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:a=!0,utmVal:l},s)=>{const[c,r]=n.useState(null),[u,d]=n.useState(o||{pointData:[Ri],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[A,f]=n.useState([Ri]),[p,b]=n.useState([[Ri]]),[m,S]=n.useState([]),[v,g]=n.useState(on);typeof window<"u"&&(window.sxpPopup=(D,M)=>{g(Object.assign(Object.assign(Object.assign({},on),{id:D}),M))}),typeof window<"u"&&(window.getJointUtmLink=D=>($o(),D?.indexOf("?")!==-1?D+(l?"&"+l:""):D+(l?"?"+l:""))),n.useEffect(()=>{b([u.pointData]),S([])},[u.type]);const h=n.useCallback(D=>{const M=mt.cloneDeep(u);M&&(M.dataSource=D,d?.(M))},[u]),[w,C]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(D){D&&(b([D.pointData]),d(D))},exportSchema(){return mt.cloneDeep(u)},getPageInfoData(){return w},initPageInfoData(D){D&&C(D)}}));const P=n.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return n.createElement(Zn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:h,prePiontData:A,setPrePiontData:f,pageInfoData:w,setPageInfoData:D=>C(Object.assign(Object.assign({},w),D)),undoStack:p,redoStack:m,setRedoStack:S,setUndoStack:b,getCurPageConf:P,popup:v,setPopup:g}},n.createElement(ll,{isSsr:i,enable:a},t))});var al=Object.freeze({__proto__:null,EditorCore:Kn}),sl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],rl=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Lt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:o,setEventTimeList:a}=ze(),l=n.useCallback((r,u,d,A,f,p)=>{var b,m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U,q,Q,me,re,K,Te,Pe,Be,ue,de,_e,He;if(o?.findIndex(ke=>ke.target===r?.target)!==-1)return;r&&a?.(ke=>[...ke,{target:r?.target,time:new Date}]);let Ge="";e&&(!((m=(b=u?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0)&&m.length||!((S=u?.video)===null||S===void 0)&&S.bindProduct)?Ge="pdpPage":i?Ge="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?Ge="videoPage":!((g=u?.video)===null||g===void 0)&&g.imgUrls&&(!((w=(h=u?.video)===null||h===void 0?void 0:h.imgUrls)===null||w===void 0)&&w.length)?Ge="imagePage":u?.product&&(Ge="productPage");const nt=(V=(x=(C=d?.tags)!==null&&C!==void 0?C:(M=(D=(P=u?.video)===null||P===void 0?void 0:P.bindProducts)===null||D===void 0?void 0:D[0])===null||M===void 0?void 0:M.tags)!==null&&x!==void 0?x:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&V!==void 0?V:(k=u?.product)===null||k===void 0?void 0:k.tags;let Ze=null;!((j=u?.video)===null||j===void 0)&&j.url?Ze="video":!((E=u?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(y=u?.video)===null||y===void 0?void 0:y.imgUrls)===null||F===void 0)&&F.length)&&(Ze="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=d?.itemId)!==null&&R!==void 0?R:"",productName:(B=d?.title)!==null&&B!==void 0?B:"",price:d?.price?d?.price+"":"0",productCollection:(O=d?.collection)!==null&&O!==void 0?O:"",fromKName:Ge,fromKPage:location?.href,contentTags:nt?JSON.stringify(nt):"",position:f+"",contentId:(N=(I=u?.video)===null||I===void 0?void 0:I.itemId)!==null&&N!==void 0?N:"",ctatId:(X=A?.itemId)!==null&&X!==void 0?X:"",traceInfo:(He=(ue=(Pe=(me=(U=p??d?.traceInfo)!==null&&U!==void 0?U:(Q=(q=u?.video)===null||q===void 0?void 0:q.bindProduct)===null||Q===void 0?void 0:Q.traceInfo)!==null&&me!==void 0?me:(Te=(K=(re=u?.video)===null||re===void 0?void 0:re.bindProducts)===null||K===void 0?void 0:K[0])===null||Te===void 0?void 0:Te.traceInfo)!==null&&Pe!==void 0?Pe:(Be=u?.product)===null||Be===void 0?void 0:Be.traceInfo)!==null&&ue!==void 0?ue:(_e=(de=u?.video)===null||de===void 0?void 0:de.bindCta)===null||_e===void 0?void 0:_e.traceInfo)!==null&&He!==void 0?He:""},Ze&&{contentFormat:Ze})})},[t,e,i,o]),s=n.useCallback((r,u,d,A,f)=>{var p,b,m,S,v,g,h,w,C,P,D,M,x,T;let V="";e&&(!((b=(p=r?.video)===null||p===void 0?void 0:p.bindProducts)===null||b===void 0)&&b.length||!((m=r?.video)===null||m===void 0)&&m.bindProduct)?V="pdpPage":r?.product&&(V="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:V,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:f+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(M=(w=(v=u?.traceInfo)!==null&&v!==void 0?v:(h=(g=r?.video)===null||g===void 0?void 0:g.bindProduct)===null||h===void 0?void 0:h.traceInfo)!==null&&w!==void 0?w:(D=(P=(C=r?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||D===void 0?void 0:D.traceInfo)!==null&&M!==void 0?M:(x=r?.product)===null||x===void 0?void 0:x.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-A)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=n.useCallback((r,u,d,A)=>{u&&u===Ni&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:A?`['${A}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:c}}const dl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,a)=>n.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var cl=n.memo(dl);const ul=t=>{var e,i,{columns:o,style:a,title:l,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:A,isPopup:f,onClick:p,onClose:b,submitButtonStyle:m}=t,S=it(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=ze(),{jumpToWeb:h}=Lt(),[w,C]=n.useState(!1),[P,D]=n.useState({}),[M,x]=n.useState(0),T=n.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),V=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),k=n.useMemo(()=>mt.cloneDeep(o)||T,[o,T]),j=n.useCallback(y=>{const{name:F,value:R}=y.target;D(Object.assign(Object.assign({},P),{[F]:R}))},[P]),E=mt.debounce(y=>rt(void 0,void 0,void 0,function*(){var F,R,B,O,I;const N=P;if(!N)return;const X=(R=(F=Object.keys(N))===null||F===void 0?void 0:F.map(q=>{var Q;return{name:q,value:(Q=N[q])!==null&&Q!==void 0?Q:""}}))===null||R===void 0?void 0:R.filter(q=>q?.value);if(!X||!X?.length)return;C(!0);const U=yield v?.({attributes:X});if(C(!1),U){if(A){const q=g,Q=(B=q?.video)===null||B===void 0?void 0:B.bindProduct,me=(I=(O=q?.video)===null||O===void 0?void 0:O.bindProduct)===null||I===void 0?void 0:I.bindCta,re=g?.index;h(y,q,Q,me,re)}f||b?.(),p?.()}}),1e3);return n.useEffect(()=>{const y=()=>{var F,R;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((R=document?.body)===null||R===void 0?void 0:R.clientHeight))<V?x(50):x(0)};return window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${Re.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Oe(l,s)}}),n.createElement("div",Object.assign({className:Re.css(Object.assign(Object.assign({},a),{marginTop:M}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(cl,{columns:k,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":u,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},m),dangerouslySetInnerHTML:{__html:Oe(w?"loading...":u,m)}})))};var vl=n.memo(ul);function ft(t,e){return t.extend=e,t}const pl=ft(vl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:rl,bindableProps:[],interactionRender:sl},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var ml=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{label:"\u82F1\u6587\u5927\u5C0F\u5199",type:"Select",name:["props","buttonStyle","textTransform"],options:[{label:"\u9ED8\u8BA4",value:"unset"},{label:"\u5C0F\u5199",value:"lowercase"},{label:"\u5927\u5199",value:"uppercase"}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}],fl=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function Jn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ln(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Jn(e[i])&&Jn(t[i])&&Object.keys(e[i]).length>0&&ln(t[i],e[i])})}const Qn={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Nt(){const t=typeof document<"u"?document:{};return ln(t,Qn),t}const hl={document:Qn,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Ct(){const t=typeof window<"u"?window:{};return ln(t,hl),t}function ii(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Al(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ui(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Wt(){return Date.now()}function bl(t){const e=Ct();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function gl(t,e){e===void 0&&(e="x");const i=Ct();let o,a,l;const s=bl(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(a==="none"?"":a)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function Di(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function yl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Rt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!yl(o)){const a=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const c=a[l],r=Object.getOwnPropertyDescriptor(o,c);r!==void 0&&r.enumerable&&(Di(t[c])&&Di(o[c])?o[c].__swiper__?t[c]=o[c]:Rt(t[c],o[c]):!Di(t[c])&&Di(o[c])?(t[c]={},o[c].__swiper__?t[c]=o[c]:Rt(t[c],o[c])):t[c]=o[c])}}}return t}function Vi(t,e,i){t.style.setProperty(e,i)}function $n(t){let{swiper:e,targetPosition:i,side:o}=t;const a=Ct(),l=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>l?"next":"prev",d=(f,p)=>u==="next"&&f>=p||u==="prev"&&f<=p,A=()=>{c=new Date().getTime(),s===null&&(s=c);const f=Math.max(Math.min((c-s)/r,1),0),p=.5-Math.cos(f*Math.PI)/2;let b=l+p*(i-l);if(d(b,i)&&(b=i),e.wrapperEl.scrollTo({[o]:b}),d(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:b})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(A)};A()}function Yt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Bi(t){try{console.warn(t);return}catch{}}function vi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ii(e)),i}function eo(t){const e=Ct(),i=Nt(),o=t.getBoundingClientRect(),a=i.body,l=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:o.top+c-l,left:o.left+r-s}}function wl(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Sl(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function ni(t,e){return Ct().getComputedStyle(t,null).getPropertyValue(e)}function Ai(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Fi(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function an(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function sn(t,e,i){const o=Ct();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ye(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let rn;function xl(){const t=Ct(),e=Nt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function to(){return rn||(rn=xl()),rn}let dn;function Tl(t){let{userAgent:e}=t===void 0?{}:t;const i=to(),o=Ct(),a=o.navigator.platform,l=e||o.navigator.userAgent,s={ios:!1,android:!1},c=o.screen.width,r=o.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let d=l.match(/(iPad).*OS\s([\d_]+)/);const A=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=a==="Win32";let b=a==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&b&&i.touch&&m.indexOf(`${c}x${r}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),b=!1),u&&!p&&(s.os="android",s.android=!0),(d||f||A)&&(s.os="ios",s.ios=!0),s}function io(t){return t===void 0&&(t={}),dn||(dn=Tl(t)),dn}let cn;function El(){const t=Ct(),e=io();let i=!1;function o(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(o()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function kl(){return cn||(cn=El()),cn}function Il(t){let{swiper:e,on:i,emit:o}=t;const a=Ct();let l=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(A=>{s=a.requestAnimationFrame(()=>{const{width:f,height:p}=e;let b=f,m=p;A.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:h}=S;h&&h!==e.el||(b=g?g.width:(v[0]||v).inlineSize,m=g?g.height:(v[0]||v).blockSize)}),(b!==f||m!==p)&&c()})}),l.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},d=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function Cl(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=[],s=Ct(),c=function(d,A){A===void 0&&(A={});const f=s.MutationObserver||s.WebkitMutationObserver,p=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){a("observerUpdate",b[0]);return}const m=function(){a("observerUpdate",b[0])};s.requestAnimationFrame?s.requestAnimationFrame(m):s.setTimeout(m,0)});p.observe(d,{attributes:typeof A.attributes>"u"?!0:A.attributes,childList:typeof A.childList>"u"?!0:A.childList,characterData:typeof A.characterData>"u"?!0:A.characterData}),l.push(p)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Fi(e.hostEl);for(let A=0;A<d.length;A+=1)c(d[A])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{l.forEach(d=>{d.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",r),o("destroy",u)}var Pl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];e.apply(o,s)}return a.__emitterProxy=e,o.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((a,l)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[o].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),o=t):(e=l[0].events,i=l[0].data,o=l[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(o,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(o,i)})}),t}};function Ol(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ni(o,"padding-left")||0,10)-parseInt(ni(o,"padding-right")||0,10),i=i-parseInt(ni(o,"padding-top")||0,10)-parseInt(ni(o,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Ll(){const t=this;function e(T,V){return parseFloat(T.getPropertyValue(t.getDirectionLabel(V))||0)}const i=t.params,{wrapperEl:o,slidesEl:a,size:l,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=Yt(a,`.${t.params.slideClass}, swiper-slide`),A=r?t.virtual.slides.length:d.length;let f=[];const p=[],b=[];let m=i.slidesOffsetBefore;typeof m=="function"&&(m=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let h=i.spaceBetween,w=-m,C=0,P=0;if(typeof l>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*l:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,d.forEach(T=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Vi(o,"--swiper-centered-offset-before",""),Vi(o,"--swiper-centered-offset-after",""));const D=i.grid&&i.grid.rows>1&&t.grid;D?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let M;const x=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<A;T+=1){M=0;let V;if(d[T]&&(V=d[T]),D&&t.grid.updateSlide(T,V,d),!(d[T]&&ni(V,"display")==="none")){if(i.slidesPerView==="auto"){x&&(d[T].style[t.getDirectionLabel("width")]="");const k=getComputedStyle(V),j=V.style.transform,E=V.style.webkitTransform;if(j&&(V.style.transform="none"),E&&(V.style.webkitTransform="none"),i.roundLengths)M=t.isHorizontal()?sn(V,"width",!0):sn(V,"height",!0);else{const y=e(k,"width"),F=e(k,"padding-left"),R=e(k,"padding-right"),B=e(k,"margin-left"),O=e(k,"margin-right"),I=k.getPropertyValue("box-sizing");if(I&&I==="border-box")M=y+B+O;else{const{clientWidth:N,offsetWidth:X}=V;M=y+F+R+B+O+(X-N)}}j&&(V.style.transform=j),E&&(V.style.webkitTransform=E),i.roundLengths&&(M=Math.floor(M))}else M=(l-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${M}px`);d[T]&&(d[T].swiperSlideSize=M),b.push(M),i.centeredSlides?(w=w+M/2+C/2+h,C===0&&T!==0&&(w=w-l/2-h),T===0&&(w=w-l/2-h),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),p.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),p.push(w),w=w+M+h),t.virtualSize+=M+h,C=M,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+S,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),D&&t.grid.updateWrapperSize(M,f),!i.centeredSlides){const T=[];for(let V=0;V<f.length;V+=1){let k=f[V];i.roundLengths&&(k=Math.floor(k)),f[V]<=t.virtualSize-l&&T.push(k)}f=T,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}if(r&&i.loop){const T=b[0]+h;if(i.slidesPerGroup>1){const V=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),k=T*i.slidesPerGroup;for(let j=0;j<V;j+=1)f.push(f[f.length-1]+k)}for(let V=0;V<t.virtual.slidesBefore+t.virtual.slidesAfter;V+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),p.push(p[p.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),h!==0){const T=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((V,k)=>!i.cssMode||i.loop?!0:k!==d.length-1).forEach(V=>{V.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const V=T-l;f=f.map(k=>k<=0?-m:k>V?V+S:k)}if(i.centerInsufficientSlides){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const V=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+V<l){const k=(l-T-V)/2;f.forEach((j,E)=>{f[E]=j-k}),p.forEach((j,E)=>{p[E]=j+k})}}if(Object.assign(t,{slides:d,snapGrid:f,slidesGrid:p,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Vi(o,"--swiper-centered-offset-before",`${-f[0]}px`),Vi(o,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],V=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(k=>k+T),t.slidesGrid=t.slidesGrid.map(k=>k+V)}if(A!==u&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,V=t.el.classList.contains(T);A<=i.maxBackfaceHiddenSlides?V||t.el.classList.add(T):V&&t.el.classList.remove(T)}}function Ml(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let a=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>o?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const c=e.activeIndex+l;if(c>e.slides.length&&!o)break;i.push(s(c))}else i.push(s(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const c=i[l].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function jl(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const no=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Nl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:a,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<o.length;r+=1){const u=o[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=o[0].swiperSlideOffset);const A=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),f=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),p=-(s-d),b=p+e.slidesSizesGrid[r],m=p>=0&&p<=e.size-e.slidesSizesGrid[r],S=p>=0&&p<e.size-1||b>1&&b<=e.size||p<=0&&b>=e.size;S&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),no(u,S,i.slideVisibleClass),no(u,m,i.slideFullyVisibleClass),u.progress=a?-A:A,u.originalProgress=a?-f:f}}function Rl(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:l,isEnd:s,progressLoop:c}=e;const r=l,u=s;if(o===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/o;const d=Math.abs(t-e.minTranslate())<1,A=Math.abs(t-e.maxTranslate())<1;l=d||a<=0,s=A||a>=1,d&&(a=0),A&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),A=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[d],p=e.slidesGrid[A],b=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=f?c=(m-f)/b:c=(m+b-p)/b,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:l,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!l||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const un=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Dl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=A=>Yt(o,`.${i.slideClass}${A}, swiper-slide${A}`)[0];let r,u,d;if(l)if(i.loop){let A=a-t.virtual.slidesBefore;A<0&&(A=t.virtual.slides.length+A),A>=t.virtual.slides.length&&(A-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${A}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(A=>A.column===a)[0],d=e.filter(A=>A.column===a+1)[0],u=e.filter(A=>A.column===a-1)[0]):r=e[a];r&&(s||(d=Sl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=wl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(A=>{un(A,A===r,i.slideActiveClass),un(A,A===d,i.slideNextClass),un(A,A===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Wi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let a=o.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},vn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},pn=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+o+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&vn(t,u)});return}const l=a+o-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=l+e;s+=1){const c=(s%i+i)%i;(c<a||c>l)&&vn(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(l+e,i-1);s+=1)s!==a&&(s>l||s<a)&&vn(t,s)};function Vl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let a;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?o>=e[l]&&o<e[l+1]-(e[l+1]-e[l])/2?a=l:o>=e[l]&&o<e[l+1]&&(a=l+1):o>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Bl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:s,snapIndex:c}=e;let r=t,u;const d=p=>{let b=p-e.virtual.slidesBefore;return b<0&&(b=e.virtual.slides.length+b),b>=e.virtual.slides.length&&(b-=e.virtual.slides.length),b};if(typeof r>"u"&&(r=Vl(e)),o.indexOf(i)>=0)u=o.indexOf(i);else{const p=Math.min(a.slidesPerGroupSkip,r);u=p+Math.floor((r-p)/a.slidesPerGroup)}if(u>=o.length&&(u=o.length-1),r===l&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const A=e.grid&&a.grid&&a.grid.rows>1;let f;if(e.virtual&&a.virtual.enabled&&a.loop)f=d(r);else if(A){const p=e.slides.filter(m=>m.column===r)[0];let b=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(e.slides.indexOf(p),0)),f=Math.floor(b/a.grid.rows)}else if(e.slides[r]){const p=e.slides[r].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=r}else f=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:l,activeIndex:r}),e.initialized&&pn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Fl(t,e){const i=this,o=i.params;let a=t.closest(`.${o.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${o.slideClass}, swiper-slide`)&&(a=c)});let l=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){l=!0,s=c;break}}if(a&&l)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Wl={updateSize:Ol,updateSlides:Ll,updateAutoHeight:Ml,updateSlidesOffset:jl,updateSlidesProgress:Nl,updateProgress:Rl,updateSlidesClasses:Dl,updateActiveIndex:Bl,updateClickedSlide:Fl};function zl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return o?-a:a;if(i.cssMode)return a;let s=gl(l,t);return s+=e.cssOverflowAdjustment(),o&&(s=-s),s||0}function Hl(t,e){const i=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=o?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const A=i.maxTranslate()-i.minTranslate();A===0?d=0:d=(t-i.minTranslate())/A,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Ul(){return-this.snapGrid[0]}function Xl(){return-this.snapGrid[this.snapGrid.length-1]}function ql(t,e,i,o,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const l=this,{params:s,wrapperEl:c}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const r=l.minTranslate(),u=l.maxTranslate();let d;if(o&&t>r?d=r:o&&t<u?d=u:d=t,l.updateProgress(d),s.cssMode){const A=l.isHorizontal();if(e===0)c[A?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:-d,side:A?"left":"top"}),!0;c.scrollTo({[A?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(f){!l||l.destroyed||f.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var Yl={getTranslate:zl,setTranslate:Hl,minTranslate:Ul,maxTranslate:Xl,translateTo:ql};function Gl(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function oo(t){let{swiper:e,runCallbacks:i,direction:o,step:a}=t;const{activeIndex:l,previousIndex:s}=e;let c=o;if(c||(l>s?c="next":l<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&l!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function _l(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),oo({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Zl(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),oo({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Kl={setTransition:Gl,transitionStart:_l,transitionEnd:Zl};function Jl(t,e,i,o,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:A,rtlTranslate:f,wrapperEl:p,enabled:b}=l;if(!b&&!o&&!a||l.destroyed||l.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const m=Math.min(l.params.slidesPerGroupSkip,s);let S=m+Math.floor((s-m)/l.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const v=-r[S];if(c.normalizeSlideIndex)for(let h=0;h<u.length;h+=1){const w=-Math.floor(v*100),C=Math.floor(u[h]*100),P=Math.floor(u[h+1]*100);typeof u[h+1]<"u"?w>=C&&w<P-(P-C)/2?s=h:w>=C&&w<P&&(s=h+1):w>=C&&(s=h)}if(l.initialized&&s!==A&&(!l.allowSlideNext&&(f?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(A||0)!==s))return!1;s!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(s>A?g="next":s<A?g="prev":g="reset",f&&-v===l.translate||!f&&v===l.translate)return l.updateActiveIndex(s),c.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),c.effect!=="slide"&&l.setTranslate(v),g!=="reset"&&(l.transitionStart(i,g),l.transitionEnd(i,g)),!1;if(c.cssMode){const h=l.isHorizontal(),w=f?v:-v;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[h?"scrollLeft":"scrollTop"]=w})):p[h?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:w,side:h?"left":"top"}),!0;p.scrollTo({[h?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(s),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,o),l.transitionStart(i,g),e===0?l.transitionEnd(i,g):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,g))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function Ql(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(l){const f=s*a.params.grid.rows;c=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else c=a.getSlideIndexByData(s);const r=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let A=r-c<d;if(u&&(A=A||c<Math.ceil(d/2)),o&&u&&a.params.slidesPerView!=="auto"&&!l&&(A=!1),A){const f=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?c+1:c-r+1,slideRealIndex:f==="next"?a.realIndex:void 0})}if(l){const f=s*a.params.grid.rows;s=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,o)}),a}function $l(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:a,params:l,animating:s}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let c=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(c=Math.max(o.slidesPerViewDynamic("current",!0),1));const r=o.activeIndex<l.slidesPerGroupSkip?1:c,u=o.virtual&&l.virtual.enabled;if(l.loop){if(s&&!u&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+r,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+r,t,e,i)}function ea(t,e,i){e===void 0&&(e=!0);const o=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=o;if(!r||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const d=o.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const A=c?o.translate:-o.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=f(A),b=l.map(v=>f(v));let m=l[b.indexOf(p)-1];if(typeof m>"u"&&a.cssMode){let v;l.forEach((g,h)=>{p>=g&&(v=h)}),typeof v<"u"&&(m=l[v>0?v-1:v])}let S=0;if(typeof m<"u"&&(S=s.indexOf(m),S<0&&(S=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.rewind&&o.isBeginning){const v=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(v,t,e,i)}else if(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function ta(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function ia(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let l=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,l),c=s+Math.floor((l-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*o&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,t,e,i)}function na(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,l;const s=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=t.getSlideIndex(Yt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=t.getSlideIndex(Yt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var oa={slideTo:Jl,slideToLoop:Ql,slideNext:$l,slidePrev:ea,slideReset:ta,slideToClosest:ia,slideToClickedSlide:na};function la(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{Yt(o,`.${i.slideClass}, swiper-slide`).forEach((A,f)=>{A.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(l?i.grid.rows:1),c=e.slides.length%s!==0,r=l&&e.slides.length%i.grid.rows!==0,u=d=>{for(let A=0;A<d;A+=1){const f=e.isElement?vi("swiper-slide",[i.slideBlankClass]):vi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else Bi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else Bi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function aa(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:a,activeSlideIndex:l,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:A,slidesEl:f,params:p}=r,{centeredSlides:b}=p;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):p.centeredSlides&&r.snapIndex<p.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=A,r.emit("loopFix");return}let m=p.slidesPerView;m==="auto"?m=r.slidesPerViewDynamic():(m=Math.ceil(parseFloat(p.slidesPerView,10)),b&&m%2===0&&(m=m+1));const S=p.slidesPerGroupAuto?m:p.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=p.loopAdditionalSlides,r.loopedSlides=v;const g=r.grid&&p.grid&&p.grid.rows>1;u.length<m+v?Bi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):g&&p.grid.fill==="row"&&Bi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],w=[];let C=r.activeIndex;typeof l>"u"?l=r.getSlideIndex(u.filter(j=>j.classList.contains(p.slideActiveClass))[0]):C=l;const P=o==="next"||!o,D=o==="prev"||!o;let M=0,x=0;const T=g?Math.ceil(u.length/p.grid.rows):u.length,k=(g?u[l].column:l)+(b&&typeof a>"u"?-m/2+.5:0);if(k<v){M=Math.max(v-k,S);for(let j=0;j<v-k;j+=1){const E=j-Math.floor(j/T)*T;if(g){const y=T-E-1;for(let F=u.length-1;F>=0;F-=1)u[F].column===y&&h.push(F)}else h.push(T-E-1)}}else if(k+m>T-v){x=Math.max(k-(T-v*2),S);for(let j=0;j<x;j+=1){const E=j-Math.floor(j/T)*T;g?u.forEach((y,F)=>{y.column===E&&w.push(F)}):w.push(E)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),D&&h.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),P&&w.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.append(u[j]),u[j].swiperLoopMoveDOM=!1}),r.recalcSlides(),p.slidesPerView==="auto"?r.updateSlides():g&&(h.length>0&&D||w.length>0&&P)&&r.slides.forEach((j,E)=>{r.grid.updateSlide(E,j,r.slides)}),p.watchSlidesProgress&&r.updateSlidesOffset(),i){if(h.length>0&&D){if(typeof e>"u"){const j=r.slidesGrid[C],y=r.slidesGrid[C+M]-j;c?r.setTranslate(r.translate-y):(r.slideTo(C+Math.ceil(M),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-y,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-y))}else if(a){const j=g?h.length/p.grid.rows:h.length;r.slideTo(r.activeIndex+j,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(w.length>0&&P)if(typeof e>"u"){const j=r.slidesGrid[C],y=r.slidesGrid[C-x]-j;c?r.setTranslate(r.translate-y):(r.slideTo(C-x,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-y,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-y))}else{const j=g?w.length/p.grid.rows:w.length;r.slideTo(r.activeIndex-j,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=A,r.controller&&r.controller.control&&!s){const j={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...j,slideTo:E.params.slidesPerView===p.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...j,slideTo:r.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}r.emit("loopFix")}function sa(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ra={loopCreate:la,loopFix:aa,loopDestroy:sa};function da(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function ca(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var ua={setGrabCursor:da,unsetGrabCursor:ca};function va(t,e){e===void 0&&(e=this);function i(o){if(!o||o===Nt()||o===Ct())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(t);return!a&&!o.getRootNode?null:a||i(o.getRootNode().host)}return i(e)}function lo(t,e,i){const o=Ct(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=o.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function pa(t){const e=this,i=Nt();let o=t;o.originalEvent&&(o=o.originalEvent);const a=e.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){lo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:c}=e;if(!c||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let r=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(r=d[0]);const A=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(f?va(A,r):r.closest(A))){e.allowClick=!0;return}if(l.swipeHandler&&!r.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const p=s.currentX,b=s.currentY;if(!lo(e,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=b,a.touchStartTime=Wt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let m=!0;r.matches(a.focusableElements)&&(m=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const S=m&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!r.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function ma(t){const e=Nt(),i=this,o=i.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(o.touchId!==null||r.pointerId!==o.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(P=>P.identifier===o.touchId)[0],!u||u.identifier!==o.touchId)return}else u=r;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,A=u.pageY;if(r.preventedByNestedSwiper){l.startX=d,l.startY=A;return}if(!i.allowTouchMove){r.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:d,startY:A,currentX:d,currentY:A}),o.touchStartTime=Wt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(A<l.startY&&i.translate<=i.maxTranslate()||A>l.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(d<l.startX&&i.translate<=i.maxTranslate()||d>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",r),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=A;const f=l.currentX-l.startX,p=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+p**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:f*f+p*p>=25&&(P=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,o.isScrolling=i.isHorizontal()?P>a.touchAngle:90-P>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",r),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||r.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let b=i.isHorizontal()?f:p,m=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(b=Math.abs(b)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),l.diff=b,b*=a.touchRatio,s&&(b=-b,m=-m);const S=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=m>0?"prev":"next";const v=i.params.loop&&!a.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}o.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let h;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(b)>=1){Object.assign(l,{startX:d,startY:A,currentX:d,currentY:A,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",r),o.isMoved=!0,o.currentTranslate=b+o.startTranslate;let w=!0,C=a.resistanceRatio;if(a.touchReleaseOnEdges&&(C=0),b>0?(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+b)**C))):b<0&&(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-b)**C))),w&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(b)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function fa(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].filter(C=>C.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;a=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const A=Wt(),f=A-i.touchStartTime;if(e.allowClick){const C=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(C&&C[0]||o.target,C),e.emit("tap click",o),f<300&&A-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=Wt(),ui(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(s.followFinger?p=r?e.translate:-e.translate:p=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const b=p>=-e.maxTranslate()&&!e.params.loop;let m=0,S=e.slidesSizesGrid[0];for(let C=0;C<u.length;C+=C<s.slidesPerGroupSkip?1:s.slidesPerGroup){const P=C<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[C+P]<"u"?(b||p>=u[C]&&p<u[C+P])&&(m=C,S=u[C+P]-u[C]):(b||p>=u[C])&&(m=C,S=u[u.length-1]-u[u.length-2])}let v=null,g=null;s.rewind&&(e.isBeginning?g=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(p-u[m])/S,w=m<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:m+w):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-s.longSwipesRatio?e.slideTo(m+w):g!==null&&h<0&&Math.abs(h)>s.longSwipesRatio?e.slideTo(g):e.slideTo(m))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(m+w):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:m+w),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:m))}}function ao(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function ha(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Aa(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const l=t.maxTranslate()-t.minTranslate();l===0?a=0:a=(t.translate-t.minTranslate())/l,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ba(t){const e=this;Wi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ga(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const so=(t,e)=>{const i=Nt(),{params:o,el:a,wrapperEl:l,device:s}=t,c=!!o.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[r]("click",t.onClick,!0),o.cssMode&&l[r]("scroll",t.onScroll),o.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",ao,!0):t[u]("observerUpdate",ao,!0),a[r]("load",t.onLoad,{capture:!0}))};function ya(){const t=this,{params:e}=t;t.onTouchStart=pa.bind(t),t.onTouchMove=ma.bind(t),t.onTouchEnd=fa.bind(t),t.onDocumentTouchStart=ga.bind(t),e.cssMode&&(t.onScroll=Aa.bind(t)),t.onClick=ha.bind(t),t.onLoad=ba.bind(t),so(t,"on")}function wa(){so(this,"off")}var Sa={attachEvents:ya,detachEvents:wa};const ro=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function xa(){const t=this,{realIndex:e,initialized:i,params:o,el:a}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const s=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in l?l[s]:void 0)||t.originalParams,u=ro(t,o),d=ro(t,r),A=t.params.grabCursor,f=r.grabCursor,p=o.enabled;u&&!d?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${o.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),A&&!f?t.unsetGrabCursor():!A&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof r[h]>"u")return;const w=o[h]&&o[h].enabled,C=r[h]&&r[h].enabled;w&&!C&&t[h].disable(),!w&&C&&t[h].enable()});const b=r.direction&&r.direction!==o.direction,m=o.loop&&(r.slidesPerView!==o.slidesPerView||b),S=o.loop;b&&i&&t.changeDirection(),Rt(t.params,r);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!v?t.disable():!p&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",r)}function Ta(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const a=Ct(),l=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:l*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=r):u<=i.clientWidth&&(o=r)}return o||"max"}var Ea={setBreakpoint:xa,getBreakpoint:Ta};function ka(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&i.push(e+a)}):typeof o=="string"&&i.push(e+o)}),i}function Ia(){const t=this,{classNames:e,params:i,rtl:o,el:a,device:l}=t,s=ka(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...s),a.classList.add(...e),t.emitContainerClasses()}function Ca(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Pa={addClasses:Ia,removeClasses:Ca};function Oa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+o*2;t.isLocked=t.size>l}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var La={checkOverflow:Oa},mn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ma(t,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){Rt(e,o);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in l)){Rt(e,o);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Rt(e,o)}}const fn={eventsEmitter:Pl,update:Wl,translate:Yl,transition:Kl,slide:oa,loop:ra,grabCursor:ua,events:Sa,breakpoints:Ea,checkOverflow:La,classes:Pa},hn={};let An=class Qt{constructor(){let e,i;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=Rt({},i),e&&!i.el&&(i.el=e);const s=Nt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(A=>{const f=Rt({},i,{el:A});d.push(new Qt(f))}),d}const c=this;c.__swiper__=!0,c.support=to(),c.device=io({userAgent:i.userAgent}),c.browser=kl(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:Ma(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=Rt({},mn,r);return c.params=Rt({},u,hn,i),c.originalParams=Rt({},c.params),c.passedParams=Rt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:o}=this,a=Yt(i,`.${o.slideClass}, swiper-slide`),l=Ai(a[0]);return Ai(e)-l}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:o}=e;e.slides=Yt(i,`.${o.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const o=this;e=Math.min(Math.max(e,0),1);const a=o.minTranslate(),s=(o.maxTranslate()-a)*e+a;o.translateTo(s,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const a=e.getSlideClasses(o);i.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=o;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let A=l[u]?Math.ceil(l[u].swiperSlideSize):0,f;for(let p=u+1;p<l.length;p+=1)l[p]&&!f&&(A+=Math.ceil(l[p].swiperSlideSize),d+=1,A>r&&(f=!0));for(let p=u-1;p>=0;p-=1)l[p]&&!f&&(A+=l[p].swiperSlideSize,d+=1,A>r&&(f=!0))}else if(e==="current")for(let A=u+1;A<l.length;A+=1)(i?s[A]+c[A]-s[u]<r:s[A]-s[u]<r)&&(d+=1);else for(let A=u-1;A>=0;A-=1)s[u]-s[A]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Wi(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const s=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(s.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||a()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):Yt(o,a())[0];return!s&&i.params.createElements&&(s=vi("div",i.params.wrapperClass),o.append(s),Yt(o,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:o,wrapperEl:s,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:s,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||ni(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||ni(o,"direction")==="rtl"),wrongRTL:ni(s,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?Wi(i,l):l.addEventListener("load",s=>{Wi(i,s.target)})}),pn(i),i.initialized=!0,pn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:a,el:l,wrapperEl:s,slides:c}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(r=>{o.off(r)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Al(o)),o.destroyed=!0),null}static extendDefaults(e){Rt(hn,e)}static get extendedDefaults(){return hn}static get defaults(){return mn}static installModule(e){Qt.prototype.__modules__||(Qt.prototype.__modules__=[]);const i=Qt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Qt.installModule(i)),Qt):(Qt.installModule(e),Qt)}};Object.keys(fn).forEach(t=>{Object.keys(fn[t]).forEach(e=>{An.prototype[e]=fn[t][e]})}),An.use([Il,Cl]);const co=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function si(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function pi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:si(e[o])&&si(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:pi(t[o],e[o]):t[o]=e[o]})}function uo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function vo(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function po(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function mo(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function ja(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Na(t){let{swiper:e,slides:i,passedParams:o,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:d,pagination:A,navigation:f,scrollbar:p,virtual:b,thumbs:m}=e;let S,v,g,h,w,C,P,D;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),a.includes("controller")&&o.controller&&o.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||r)&&(d.pagination||d.pagination===!1)&&A&&!A.el&&(g=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(h=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||s)&&(o.navigation.nextEl||l)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const M=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),d[x].prevEl=void 0,d[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),d[x].el=void 0,e[x].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!o.loop?C=!0:!d.loop&&o.loop?P=!0:D=!0),u.forEach(x=>{if(si(d[x])&&si(o[x]))Object.assign(d[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&M(x);else{const T=o[x];(T===!0||T===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?T===!1&&M(x):d[x]=o[x]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&b&&d.virtual.enabled?(b.slides=i,b.update(!0)):a.includes("virtual")&&b&&d.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),a.includes("children")&&i&&d.loop&&(D=!0),S&&m.init()&&m.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),A.init(),A.render(),A.update()),h&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),p.init(),p.updateSize(),p.setTranslate()),w&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),l&&(d.navigation.nextEl=l),s&&(d.navigation.prevEl=s),f.init(),f.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(C||D)&&e.loopDestroy(),(P||D)&&e.loopCreate(),e.update()}function Ra(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},a={};pi(i,mn),i._emitClasses=!0,i.init=!1;const l={},s=co.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?si(t[r])?(i[r]={},a[r]={},pi(i[r],t[r]),pi(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?o[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:l[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:l,events:o}}function Da(t,e){let{el:i,nextEl:o,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:c}=t;uo(e)&&o&&a&&(c.params.navigation.nextEl=o,c.originalParams.navigation.nextEl=o,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),vo(e)&&l&&(c.params.pagination.el=l,c.originalParams.pagination.el=l),po(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Va(t,e,i,o,a){const l=[];if(!e)return l;const s=r=>{l.indexOf(r)<0&&l.push(r)};if(i&&o){const r=o.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),o.length!==i.length&&s("children")}return co.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(si(t[r])&&si(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(A=>{t[r][A]!==e[r][A]&&s(r)}),d.forEach(A=>{t[r][A]!==e[r][A]&&s(r)}))}else t[r]!==e[r]&&s(r)}),l}const Ba=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function zi(){return zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},zi.apply(this,arguments)}function fo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ho(t){const e=[];return n.Children.toArray(t).forEach(i=>{fo(i)?e.push(i):i.props&&i.props.children&&ho(i.props.children).forEach(o=>e.push(o))}),e}function Fa(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(fo(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const a=ho(o.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Wa(t,e,i){if(!i)return null;const o=d=>{let A=d;return d<0?A=e.length+d:A>=e.length&&(A=A-e.length),A},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=l&&d<=s&&u.push(e[o(d)]);return u.map((d,A)=>n.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${A}`}))}function bi(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const bn=n.createContext(null),gi=()=>n.useContext(bn),za=n.createContext(null),Zt=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:a="div",children:l,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=n.useState("swiper"),[A,f]=n.useState(null),[p,b]=n.useState(!1),m=n.useRef(!1),S=n.useRef(null),v=n.useRef(null),g=n.useRef(null),h=n.useRef(null),w=n.useRef(null),C=n.useRef(null),P=n.useRef(null),D=n.useRef(null),{params:M,passedParams:x,rest:T,events:V}=Ra(c),{slides:k,slots:j}=Fa(l),E=()=>{b(!p)};Object.assign(M.on,{_containerClasses(O,I){d(I)}});const y=()=>{Object.assign(M.on,V),r=!0;const O={...M};if(delete O.wrapperClass,v.current=new An(O),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=k;const I={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};pi(v.current.params.virtual,I),pi(v.current.originalParams.virtual,I)}};S.current||y(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{r||!V||!v.current||Object.keys(V).forEach(O=>{v.current.on(O,V[O])})},R=()=>{!V||!v.current||Object.keys(V).forEach(O=>{v.current.off(O,V[O])})};n.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),n.useEffect(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),bi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&y(),Da({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:D.current,swiper:v.current},M),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),bi(()=>{F();const O=Va(x,g.current,k,h.current,I=>I.key);return g.current=x,h.current=k,O.length&&v.current&&!v.current.destroyed&&Na({swiper:v.current,slides:k,passedParams:x,changedParams:O,nextEl:w.current,prevEl:C.current,scrollbarEl:D.current,paginationEl:P.current}),()=>{R()}}),bi(()=>{Ba(v.current)},[A]);function B(){return M.virtual?Wa(v.current,k,A):k.map((O,I)=>n.cloneElement(O,{swiper:v.current,swiperSlideIndex:I}))}return n.createElement(o,zi({ref:S,className:mo(`${u}${i?` ${i}`:""}`)},T),n.createElement(za.Provider,{value:v.current},j["container-start"],n.createElement(a,{className:ja(M.wrapperClass)},j["wrapper-start"],B(),j["wrapper-end"]),uo(M)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:C,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),po(M)&&n.createElement("div",{ref:D,className:"swiper-scrollbar"}),vo(M)&&n.createElement("div",{ref:P,className:"swiper-pagination"}),j["container-end"]))});Zt.displayName="Swiper";const Dt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:a="",swiper:l,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const A=n.useRef(null),[f,p]=n.useState("swiper-slide"),[b,m]=n.useState(!1);function S(w,C,P){C===A.current&&p(P)}bi(()=>{if(typeof u<"u"&&(A.current.swiperSlideIndex=u),e&&(e.current=A.current),!(!A.current||!l)){if(l.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),bi(()=>{l&&A.current&&!l.destroyed&&p(l.getSlideClasses(A.current))},[l]);const v={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},g=()=>typeof o=="function"?o(v):o,h=()=>{m(!0)};return n.createElement(i,zi({ref:A,className:mo(`${f}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:h},d),s&&n.createElement(bn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},g(),c&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(bn.Provider,{value:v},g(),c&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Dt.displayName="SwiperSlide";function gn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Nt(),s=Ct();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:A}=e;let f=d;f.originalEvent&&(f=f.originalEvent);const p=f.keyCode||f.charCode,b=e.params.keyboard.pageUpDown,m=b&&p===33,S=b&&p===34,v=p===37,g=p===39,h=p===38,w=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&w||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&h||m))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(m||S||v||g||h||w)){let C=!1;if(Fi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Fi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,D=P.clientWidth,M=P.clientHeight,x=s.innerWidth,T=s.innerHeight,V=eo(P);A&&(V.left-=P.scrollLeft);const k=[[V.left,V.top],[V.left+D,V.top],[V.left,V.top+M],[V.left+D,V.top+M]];for(let j=0;j<k.length;j+=1){const E=k[j];if(E[0]>=0&&E[0]<=x&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((m||S||v||g)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((S||g)&&!A||(m||v)&&A)&&e.slideNext(),((m||v)&&!A||(S||g)&&A)&&e.slidePrev()):((m||S||h||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(S||w)&&e.slideNext(),(m||h)&&e.slidePrev()),a("keyPress",p)}}function r(){e.keyboard.enabled||(l.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(l.removeEventListener("keydown",c),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&r()}),o("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Hi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Ct();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,c=Wt(),r;const u=[];function d(h){let D=0,M=0,x=0,T=0;return"detail"in h&&(M=h.detail),"wheelDelta"in h&&(M=-h.wheelDelta/120),"wheelDeltaY"in h&&(M=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(D=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(D=M,M=0),x=D*10,T=M*10,"deltaY"in h&&(T=h.deltaY),"deltaX"in h&&(x=h.deltaX),h.shiftKey&&!x&&(x=T,T=0),(x||T)&&h.deltaMode&&(h.deltaMode===1?(x*=40,T*=40):(x*=800,T*=800)),x&&!D&&(D=x<1?-1:1),T&&!M&&(M=T<1?-1:1),{spinX:D,spinY:M,pixelX:x,pixelY:T}}function A(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function p(h){return e.params.mousewheel.thresholdDelta&&h.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Wt()-c<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&Wt()-c<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",h.raw)),c=new l.Date().getTime(),!1)}function b(h){const w=e.params.mousewheel;if(h.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function m(h){let w=h,C=!0;if(!e.enabled||h.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let D=e.el;e.params.mousewheel.eventsTarget!=="container"&&(D=document.querySelector(e.params.mousewheel.eventsTarget));const M=D&&D.contains(w.target);if(!e.mouseEntered&&!M&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let x=0;const T=e.rtlTranslate?-1:1,V=d(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(V.pixelX)>Math.abs(V.pixelY))x=-V.pixelX*T;else return!0;else if(Math.abs(V.pixelY)>Math.abs(V.pixelX))x=-V.pixelY;else return!0;else x=Math.abs(V.pixelX)>Math.abs(V.pixelY)?-V.pixelX*T:-V.pixelY;if(x===0)return!0;P.invert&&(x=-x);let k=e.getTranslate()+x*P.sensitivity;if(k>=e.minTranslate()&&(k=e.minTranslate()),k<=e.maxTranslate()&&(k=e.maxTranslate()),C=e.params.loop?!0:!(k===e.minTranslate()||k===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const j={time:Wt(),delta:Math.abs(x),direction:Math.sign(x),raw:h};u.length>=2&&u.shift();const E=u.length?u[u.length-1]:void 0;if(u.push(j),E?(j.direction!==E.direction||j.delta>E.delta||j.time>E.time+150)&&p(j):p(j),b(j))return!0}else{const j={time:Wt(),delta:Math.abs(x),direction:Math.sign(x)},E=r&&j.time<r.time+500&&j.delta<=r.delta&&j.direction===r.direction;if(!E){r=void 0;let y=e.getTranslate()+x*P.sensitivity;const F=e.isBeginning,R=e.isEnd;if(y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),e.setTransition(0),e.setTranslate(y),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!R&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,O=u[0];if(u.push(j),B&&(j.delta>B.delta||j.direction!==B.direction))u.splice(0);else if(u.length>=15&&j.time-O.time<500&&O.delta-j.delta>=1&&j.delta<=6){const I=x>0?.8:.2;r=j,u.splice(0),s=ui(()=>{e.slideToClosest(e.params.speed,!0,void 0,I)},0)}s||(s=ui(()=>{r=j,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||a("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(y===e.minTranslate()||y===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function S(h){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[h]("mouseenter",A),w[h]("mouseleave",f),w[h]("wheel",m)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),o("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function yn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(a=>{if(!i[a]&&i.auto===!0){let l=Yt(t.el,`.${o[a]}`)[0];l||(l=vi("div",o[a]),l.className=o[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function wn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function l(b){let m;return b&&typeof b=="string"&&e.isElement&&(m=e.el.querySelector(b),m)?m:(b&&(typeof b=="string"&&(m=[...document.querySelectorAll(b)]),e.params.uniqueNavElements&&typeof b=="string"&&m&&m.length>1&&e.el.querySelectorAll(b).length===1?m=e.el.querySelector(b):m&&m.length===1&&(m=m[0])),b&&!m?b:m)}function s(b,m){const S=e.params.navigation;b=Ye(b),b.forEach(v=>{v&&(v.classList[m?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=m),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function c(){const{nextEl:b,prevEl:m}=e.navigation;if(e.params.loop){s(m,!1),s(b,!1);return}s(m,e.isBeginning&&!e.params.rewind),s(b,e.isEnd&&!e.params.rewind)}function r(b){b.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(b){b.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const b=e.params.navigation;if(e.params.navigation=yn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(b.nextEl||b.prevEl))return;let m=l(b.nextEl),S=l(b.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:S}),m=Ye(m),S=Ye(S);const v=(g,h)=>{g&&g.addEventListener("click",h==="next"?u:r),!e.enabled&&g&&g.classList.add(...b.lockClass.split(" "))};m.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function A(){let{nextEl:b,prevEl:m}=e.navigation;b=Ye(b),m=Ye(m);const S=(v,g)=>{v.removeEventListener("click",g==="next"?u:r),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};b.forEach(v=>S(v,"next")),m.forEach(v=>S(v,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?p():(d(),c())}),o("toEdge fromEdge lock unlock",()=>{c()}),o("destroy",()=>{A()}),o("enable disable",()=>{let{nextEl:b,prevEl:m}=e.navigation;if(b=Ye(b),m=Ye(m),e.enabled){c();return}[...b,...m].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),o("click",(b,m)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Ye(S),v=Ye(v);const g=m.target;let h=v.includes(g)||S.includes(g);if(e.isElement&&!h){const w=m.path||m.composedPath&&m.composedPath();w&&(h=w.find(C=>S.includes(C)||v.includes(C)))}if(e.params.navigation.hideOnClick&&!h){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let w;S.length?w=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(w=v[0].classList.contains(e.params.navigation.hiddenClass)),a(w===!0?"navigationShow":"navigationHide"),[...S,...v].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),A()};Object.assign(e.navigation,{enable:f,disable:p,update:c,init:d,destroy:A})}function Kt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function yi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(v,g){const{bulletActiveClass:h}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${h}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${h}-${g}-${g}`)))}function d(v){const g=v.target.closest(Kt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const h=Ai(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;e.slideToLoop(h)}else e.slideTo(h)}function A(){const v=e.rtl,g=e.params.pagination;if(r())return;let h=e.pagination.el;h=Ye(h);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,D=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const M=e.pagination.bullets;let x,T,V;if(g.dynamicBullets&&(s=sn(M[0],e.isHorizontal()?"width":"height",!0),h.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${s*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(c+=w-(C||0),c>g.dynamicMainBullets-1?c=g.dynamicMainBullets-1:c<0&&(c=0)),x=Math.max(w-c,0),T=x+(Math.min(M.length,g.dynamicMainBullets)-1),V=(T+x)/2),M.forEach(k=>{const j=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();k.classList.remove(...j)}),h.length>1)M.forEach(k=>{const j=Ai(k);j===w?k.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),g.dynamicBullets&&(j>=x&&j<=T&&k.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),j===x&&u(k,"prev"),j===T&&u(k,"next"))});else{const k=M[w];if(k&&k.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&M.forEach((j,E)=>{j.setAttribute("part",E===w?"bullet-active":"bullet")}),g.dynamicBullets){const j=M[x],E=M[T];for(let y=x;y<=T;y+=1)M[y]&&M[y].classList.add(...`${g.bulletActiveClass}-main`.split(" "));u(j,"prev"),u(E,"next")}}if(g.dynamicBullets){const k=Math.min(M.length,g.dynamicMainBullets+4),j=(s*k-s)/2-V*s,E=v?"right":"left";M.forEach(y=>{y.style[e.isHorizontal()?E:"top"]=`${j}px`})}}h.forEach((M,x)=>{if(g.type==="fraction"&&(M.querySelectorAll(Kt(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(w+1)}),M.querySelectorAll(Kt(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(D)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const V=(w+1)/D;let k=1,j=1;T==="horizontal"?k=V:j=V,M.querySelectorAll(Kt(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${j})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(M.innerHTML=g.renderCustom(e,w+1,D),x===0&&a("paginationRender",M)):(x===0&&a("paginationRender",M),a("paginationUpdate",M)),e.params.watchOverflow&&e.enabled&&M.classList[e.isLocked?"add":"remove"](g.lockClass)})}function f(){const v=e.params.pagination;if(r())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let h=e.pagination.el;h=Ye(h);let w="";if(v.type==="bullets"){let C=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>g&&(C=g);for(let P=0;P<C;P+=1)v.renderBullet?w+=v.renderBullet.call(e,P,v.bulletClass):w+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?w=v.renderFraction.call(e,v.currentClass,v.totalClass):w=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?w=v.renderProgressbar.call(e,v.progressbarFillClass):w=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],h.forEach(C=>{v.type!=="custom"&&(C.innerHTML=w||""),v.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(Kt(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",h[0])}function p(){e.params.pagination=yn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.filter(h=>Fi(h,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Ye(g),g.forEach(h=>{v.type==="bullets"&&v.clickable&&h.classList.add(...(v.clickableClass||"").split(" ")),h.classList.add(v.modifierClass+v.type),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(h.classList.add(`${v.modifierClass}${v.type}-dynamic`),c=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&h.classList.add(v.progressbarOppositeClass),v.clickable&&h.addEventListener("click",d),e.enabled||h.classList.add(v.lockClass)}))}function b(){const v=e.params.pagination;if(r())return;let g=e.pagination.el;g&&(g=Ye(g),g.forEach(h=>{h.classList.remove(v.hiddenClass),h.classList.remove(v.modifierClass+v.type),h.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(h.classList.remove(...(v.clickableClass||"").split(" ")),h.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...v.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Ye(g),g.forEach(h=>{h.classList.remove(v.horizontalClass,v.verticalClass),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?S():(p(),f(),A())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&A()}),o("snapIndexChange",()=>{A()}),o("snapGridLengthChange",()=>{f(),A()}),o("destroy",()=>{b()}),o("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{A()}),o("click",(v,g)=>{const h=g.target,w=Ye(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);a(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),A()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:m,disable:S,render:f,update:A,init:p,destroy:b})}function Ha(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Nt();let s=!1,c=null,r=null,u,d,A,f;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k,rtlTranslate:j}=e,{dragEl:E,el:y}=k,F=e.params.scrollbar,R=e.params.loop?e.progressLoop:e.progress;let B=d,O=(A-d)*R;j?(O=-O,O>0?(B=d-O,O=0):-O+d>A&&(B=A+O)):O<0?(B=d+O,O=0):O+d>A&&(B=A-O),e.isHorizontal()?(E.style.transform=`translate3d(${O}px, 0, 0)`,E.style.width=`${B}px`):(E.style.transform=`translate3d(0px, ${O}px, 0)`,E.style.height=`${B}px`),F.hide&&(clearTimeout(c),y.style.opacity=1,c=setTimeout(()=>{y.style.opacity=0,y.style.transitionDuration="400ms"},1e3))}function b(k){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${k}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k}=e,{dragEl:j,el:E}=k;j.style.width="",j.style.height="",A=e.isHorizontal()?E.offsetWidth:E.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=A*f:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${d}px`:j.style.height=`${d}px`,f>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&k.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(k){return e.isHorizontal()?k.clientX:k.clientY}function v(k){const{scrollbar:j,rtlTranslate:E}=e,{el:y}=j;let F;F=(S(k)-eo(y)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(A-d),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const R=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(R),e.setTranslate(R),e.updateActiveIndex(),e.updateSlidesClasses()}function g(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F,dragEl:R}=E;s=!0,u=k.target===R?S(k)-k.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,k.preventDefault(),k.stopPropagation(),y.style.transitionDuration="100ms",R.style.transitionDuration="100ms",v(k),clearTimeout(r),F.style.transitionDuration="0ms",j.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",k)}function h(k){const{scrollbar:j,wrapperEl:E}=e,{el:y,dragEl:F}=j;s&&(k.preventDefault&&k.cancelable?k.preventDefault():k.returnValue=!1,v(k),E.style.transitionDuration="0ms",y.style.transitionDuration="0ms",F.style.transitionDuration="0ms",a("scrollbarDragMove",k))}function w(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F}=E;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),j.hide&&(clearTimeout(r),r=ui(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",k),j.snapOnRelease&&e.slideToClosest())}function C(k){const{scrollbar:j,params:E}=e,y=j.el;if(!y)return;const F=y,R=E.passiveListeners?{passive:!1,capture:!1}:!1,B=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const O=k==="on"?"addEventListener":"removeEventListener";F[O]("pointerdown",g,R),l[O]("pointermove",h,R),l[O]("pointerup",w,B)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function D(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function M(){const{scrollbar:k,el:j}=e;e.params.scrollbar=yn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let y;if(typeof E.el=="string"&&e.isElement&&(y=e.el.querySelector(E.el)),!y&&typeof E.el=="string"){if(y=l.querySelectorAll(E.el),!y.length)return}else y||(y=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&y.length>1&&j.querySelectorAll(E.el).length===1&&(y=j.querySelector(E.el)),y.length>0&&(y=y[0]),y.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;y&&(F=y.querySelector(Kt(e.params.scrollbar.dragClass)),F||(F=vi("div",e.params.scrollbar.dragClass),y.append(F))),Object.assign(k,{el:y,dragEl:F}),E.draggable&&P(),y&&y.classList[e.enabled?"remove":"add"](...ii(e.params.scrollbar.lockClass))}function x(){const k=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...ii(e.isHorizontal()?k.horizontalClass:k.verticalClass)),D()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const k=e.params.scrollbar;let{el:j}=e.scrollbar;j=Ye(j),j.forEach(E=>{E.classList.remove(k.horizontalClass,k.verticalClass),E.classList.add(e.isHorizontal()?k.horizontalClass:k.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?V():(M(),m(),p())}),o("update resize observerUpdate lock unlock changeDirection",()=>{m()}),o("setTranslate",()=>{p()}),o("setTransition",(k,j)=>{b(j)}),o("enable disable",()=>{const{el:k}=e.scrollbar;k&&k.classList[e.enabled?"remove":"add"](...ii(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...ii(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ii(e.params.scrollbar.scrollbarDisabledClass)),M(),m(),p()},V=()=>{e.el.classList.add(...ii(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ii(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:V,updateSize:m,setTranslate:p,init:M,destroy:x})}function Sn(t){let{swiper:e,extendParams:i,on:o}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null,l,s,c=new Date().getTime();function r(R){const B=a;B.length!==0&&(B.innerHTML="",B.innerHTML=R)}function u(R){R===void 0&&(R=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(R).replace(/x/g,B)}function d(R){R=Ye(R),R.forEach(B=>{B.setAttribute("tabIndex","0")})}function A(R){R=Ye(R),R.forEach(B=>{B.setAttribute("tabIndex","-1")})}function f(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("role",B)})}function p(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-roledescription",B)})}function b(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-controls",B)})}function m(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-label",B)})}function S(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("id",B)})}function v(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-live",B)})}function g(R){R=Ye(R),R.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function h(R){R=Ye(R),R.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function w(R){if(R.keyCode!==13&&R.keyCode!==32)return;const B=e.params.a11y,O=R.target;if(!(e.pagination&&e.pagination.el&&(O===e.pagination.el||e.pagination.el.contains(R.target))&&!R.target.matches(Kt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const I=Ye(e.navigation.prevEl);Ye(e.navigation.nextEl).includes(O)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(B.lastSlideMessage):r(B.nextSlideMessage)),I.includes(O)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(B.firstSlideMessage):r(B.prevSlideMessage))}e.pagination&&O.matches(Kt(e.params.pagination.bulletClass))&&O.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:R,prevEl:B}=e.navigation;B&&(e.isBeginning?(g(B),A(B)):(h(B),d(B))),R&&(e.isEnd?(g(R),A(R)):(h(R),d(R)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function D(){return P()&&e.params.pagination.clickable}function M(){const R=e.params.a11y;P()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(d(B),e.params.pagination.renderBullet||(f(B,"button"),m(B,R.paginationBulletMessage.replace(/\{\{index\}\}/,Ai(B)+1)))),B.matches(Kt(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const x=(R,B,O)=>{d(R),R.tagName!=="BUTTON"&&(f(R,"button"),R.addEventListener("keydown",w)),m(R,O),b(R,B)},T=R=>{s&&s!==R.target&&!s.contains(R.target)&&(l=!0),e.a11y.clicked=!0},V=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},k=R=>{c=new Date().getTime()},j=R=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const B=R.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;s=B;const O=e.slides.indexOf(B)===e.activeIndex,I=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);O||I||R.sourceCapabilities&&R.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),l=!1)}))},E=()=>{const R=e.params.a11y;R.itemRoleDescriptionMessage&&p(e.slides,R.itemRoleDescriptionMessage),R.slideRole&&f(e.slides,R.slideRole);const B=e.slides.length;R.slideLabelMessage&&e.slides.forEach((O,I)=>{const N=e.params.loop?parseInt(O.getAttribute("data-swiper-slide-index"),10):I,X=R.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,B);m(O,X)})},y=()=>{const R=e.params.a11y;e.el.append(a);const B=e.el;R.containerRoleDescriptionMessage&&p(B,R.containerRoleDescriptionMessage),R.containerMessage&&m(B,R.containerMessage);const O=e.wrapperEl,I=R.id||O.getAttribute("id")||`swiper-wrapper-${u(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(O,I),v(O,N),E();let{nextEl:X,prevEl:U}=e.navigation?e.navigation:{};X=Ye(X),U=Ye(U),X&&X.forEach(Q=>x(Q,I,R.nextSlideMessage)),U&&U.forEach(Q=>x(Q,I,R.prevSlideMessage)),D()&&Ye(e.pagination.el).forEach(me=>{me.addEventListener("keydown",w)}),Nt().addEventListener("visibilitychange",k),e.el.addEventListener("focus",j,!0),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",V,!0)};function F(){a&&a.remove();let{nextEl:R,prevEl:B}=e.navigation?e.navigation:{};R=Ye(R),B=Ye(B),R&&R.forEach(I=>I.removeEventListener("keydown",w)),B&&B.forEach(I=>I.removeEventListener("keydown",w)),D()&&Ye(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),Nt().removeEventListener("visibilitychange",k),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",V,!0))}o("beforeInit",()=>{a=vi("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&y()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&M()}),o("destroy",()=>{e.params.a11y.enabled&&F()})}function wi(t){let{swiper:e,extendParams:i,on:o,emit:a,params:l}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,c,r=l&&l.autoplay?l.autoplay.delay:3e3,u=l&&l.autoplay?l.autoplay.delay:3e3,d,A=new Date().getTime(),f,p,b,m,S,v,g;function h(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",h),!(g||B.detail&&B.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=d,f=!1);const B=e.autoplay.paused?d:A+u-new Date().getTime();e.autoplay.timeLeft=B,a("autoplayTimeLeft",B,B/r),c=requestAnimationFrame(()=>{w()})},C=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(I=>I.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},P=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),w();let O=typeof B>"u"?e.params.autoplay.delay:B;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const I=C();!Number.isNaN(I)&&I>0&&typeof B>"u"&&(O=I,r=I,u=I),d=O;const N=e.params.speed,X=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),a("autoplay")),e.params.cssMode&&(A=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return O>0?(clearTimeout(s),s=setTimeout(()=>{X()},O)):requestAnimationFrame(()=>{X()}),O},D=()=>{A=new Date().getTime(),e.autoplay.running=!0,P(),a("autoplayStart")},M=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},x=(B,O)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),B||(v=!0);const I=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",h):T()};if(e.autoplay.paused=!0,O){S&&(d=e.params.autoplay.delay),S=!1,I();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-A),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),I())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(A=new Date().getTime(),v?(v=!1,P(d)):P(),e.autoplay.paused=!1,a("autoplayResume"))},V=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Nt();B.visibilityState==="hidden"&&(v=!0,x(!0)),B.visibilityState==="visible"&&T()},k=B=>{B.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=B=>{B.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",j))},y=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",j))},F=()=>{Nt().addEventListener("visibilitychange",V)},R=()=>{Nt().removeEventListener("visibilitychange",V)};o("init",()=>{e.params.autoplay.enabled&&(E(),F(),D())}),o("destroy",()=>{y(),R(),e.autoplay.running&&M()}),o("_freeModeStaticRelease",()=>{(b||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?M():x(!0,!0)}),o("beforeTransitionStart",(B,O,I)=>{e.destroyed||!e.autoplay.running||(I||!e.params.autoplay.disableOnInteraction?x(!0,!0):M())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){M();return}p=!0,b=!1,v=!1,m=setTimeout(()=>{v=!0,b=!0,x(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(s),e.params.autoplay.disableOnInteraction){b=!1,p=!1;return}b&&e.params.cssMode&&T(),b=!1,p=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:D,stop:M,pause:x,resume:T})}function Ua(t){let{swiper:e,extendParams:i,emit:o,once:a}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Wt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:A,rtlTranslate:f,snapGrid:p,touchEventsData:b}=e,S=Wt()-b.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(b.velocities.length>1){const M=b.velocities.pop(),x=b.velocities.pop(),T=M.position-x.position,V=M.time-x.time;e.velocity=T/V,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(V>150||Wt()-M.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,b.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let h=e.translate+g;f&&(h=-h);let w=!1,C;const P=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let D;if(h<e.maxTranslate())d.freeMode.momentumBounce?(h+e.maxTranslate()<-P&&(h=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.maxTranslate(),d.loop&&d.centeredSlides&&(D=!0);else if(h>e.minTranslate())d.freeMode.momentumBounce?(h-e.minTranslate()>P&&(h=e.minTranslate()+P),C=e.minTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.minTranslate(),d.loop&&d.centeredSlides&&(D=!0);else if(d.freeMode.sticky){let M;for(let x=0;x<p.length;x+=1)if(p[x]>-h){M=x;break}Math.abs(p[M]-h)<Math.abs(p[M-1]-h)||e.swipeDirection==="next"?h=p[M]:h=p[M-1],h=-h}if(D&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?v=Math.abs((-h-e.translate)/e.velocity):v=Math.abs((h-e.translate)/e.velocity),d.freeMode.sticky){const M=Math.abs((f?-h:h)-e.translate),x=e.slidesSizesGrid[e.activeIndex];M<x?v=d.speed:M<2*x?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating=!0,an(A,()=>{!e||e.destroyed||!b.allowMomentumBounce||(o("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(C),an(A,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(h),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,an(A,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(h),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&o("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:s,onTouchEnd:c}})}const Xa=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const a=n.useRef(),{popupDetailData:l}=ze();return n.useEffect(()=>{var s,c;o&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=l?.multiCheckIndex)!==null&&c!==void 0?c:0))},[l,o]),n.createElement(Zt,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Ua,Ha,Hi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Si=n.memo(Xa);const qa=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:a,className:l,loading:s,alt:c="image"}=t,[r,u]=n.useState(i),d=n.useRef(null),[A,f]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&u(p)}})),n.useEffect(()=>{i&&u(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!A&&d.current&&(d.current.src="",d.current.src=i)};return xt.on(bt.PAGE_DID_SHOW,p),()=>{xt.off(bt.PAGE_DID_SHOW,p)}},[i,A]),n.createElement(n.Fragment,null,!A&&!r&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:r}),n.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{f(!0),o?.(p.target)},alt:c})):n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{f(!0),o?.(p.target)},alt:c}))});var Pt=n.memo(qa);const Ya=({products:t,data:e,defImg:i,style:o,onCLick:a,popupDetailData:l,check:s})=>{var c;const{productView:r}=Lt(),{popupCurTimeRef:u}=ze(),d=(A,f)=>{if(s===f)return;const p=t?.[s];r(l,p,p?.bindCta,u.current,l?.index),a?.(f)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(Si,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(c=l?t:[0,1,2,3])===null||c===void 0?void 0:c.map((A,f)=>{var p,b,m;return n.createElement(n.Fragment,null,A?.bindCta?n.createElement(Dt,{className:Re.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{d(A,f)},key:f},n.createElement(Pt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(m=(p=A?.cover)!==null&&p!==void 0?p:(b=A?.homePage)===null||b===void 0?void 0:b[0])!==null&&m!==void 0?m:i})):null)})))};var Ao=n.memo(Ya);function bo(){const[t,e]=n.useState(0),[i,o]=n.useState(0),a=()=>{if(typeof window>"u")return 0;let s=window.innerHeight;return window.visualViewport&&(s=window.visualViewport.height),(s<=0||s>window.screen.height)&&(s=window.innerHeight),s<=0&&(s=document.documentElement.clientHeight),s},l=n.useCallback(()=>{var s;const c=a(),r=(s=window.screen)===null||s===void 0?void 0:s.height,u=navigator.userAgent,d=/Instagram/i.test(u),A=/FBAV|FBAN|FBSN/i.test(u);if(!r||c<=0||!d&&!A){e(c);return}const f=c/r,p=.9,b=r>=900?r*.8:r*.79,m=f>=p,S=m?Math.round(b):c,v=r-Math.round(b);if(m){const g=document.querySelector("#onetrust-banner-sdk");g&&(g.style.bottom=`${v}px`);const h=document.createElement("style");h.id="onetrust-pc-sdk",h.setAttribute("type","text/css"),document.head.appendChild(h);const w=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var mt=require("lodash"),Ro=require("uuid"),Do=require("pako"),n=require("react"),On=require("qs"),Vo=require("eventemitter3"),Re=require("@emotion/css"),Ln=require("react-dom");function Bo(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Mn=Bo(Ln);function it(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function rt(t,e,i,o){function a(l){return l instanceof i?l:new i(function(s){s(l)})}return new(i||(i=Promise))(function(l,s){function c(d){try{u(o.next(d))}catch(A){s(A)}}function r(d){try{u(o.throw(d))}catch(A){s(A)}}function u(d){d.done?l(d.value):a(d.value).then(c,r)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Fo=/:\w+/g;var jn=(t,e)=>rt(void 0,void 0,void 0,function*(){const i={},o={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:c,urlParams:r,name:u,queryString:d,headers:A,body:f}=e[a];let p=c;r&&Object.entries(r).forEach(([b,m])=>{p=p.replace(Fo,S=>S===b?m:S)}),d&&(p+=d),o[l]=u;try{const b=yield fetch(p,{method:s,headers:Object.assign({"Content-Type":"application/json"},A),body:JSON.stringify(f)}).then(m=>m.json());i[l]=b}catch(b){console.error("DataSource request error: ",b),i[l]={}}}return{$store:i,idMapName:o}});const Nn="SXP_TOKEN_INFO",Wo=(t,e)=>rt(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(Nn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(Nn,JSON.stringify(c))}}return c});function ji(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)o[a]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(l=0|Math.random()*16,o[a]=i[a===19?l&3|8:l])}return o.join("")}const zo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*o)),a+=1;return e},Ho=()=>{const t=Ro.v4();return t?.replaceAll?t.replaceAll("-",""):zo(32)},Oe=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!o&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${o??"inherit"}`,u=`font-family:${a??"inherit"}`,d=f=>{const p=f.search(s),b=f.search(c);return p!==-1&&b!==-1&&p<b&&(i+=`<span style="${r}">${f.substring(p,b)}</span>`,l=f.substring(b,f?.length)),p!==-1&&b!==-1&&p>b&&(i+=`<span style="${u}">${f.substring(b,p)}</span>`,l=f.substring(p,f?.length)),p===-1?(i+=`<span style="${u}">${f.substring(b,f?.length)}</span>`,l="",!1):b===-1?(i+=`<span style="${r}">${f.substring(p,f?.length)}</span>`,l="",!1):!0};let A=!0;for(;A;)A=d(l);return i};function Ji(t){const i=document.cookie.split(";");let o=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(o=s)}),o??""}function Qi(){const t=self.navigator.userAgent;return t?/TalkBack/i.test(t)||/Funtouch/i.test(t)||/VoiceOver/i.test(t)||/NVDA/i.test(t)||/JAWS/i.test(t)||/ChromeVox/i.test(t):!1}function ai(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const l=t[a],s=t.substring(a+1,t.length);l==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let o=0;return e?.map(a=>{i?.push(t.substring(o,a)),o=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function Uo(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",a=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${a}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Rn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),a=Do.inflate(o,{to:"string"});return JSON.parse(a)}let $i=null;const Xo={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class qo{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,$i)return $i;$i=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Xo[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let It=null;const Yo={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{It||(It=new qo),o&&It.setApiUrl(o),It.setAppId(t),It.setTenantId(e),It.setEnv(i)},getDetail:t=>{if(!It)return;const e=It.getTenantId(),i=It.getAppId(),o=It.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var l,s;const c=yield a.json(),r=Rn((l=c?.data)===null||l===void 0?void 0:l.data);if(r){const{$store:u}=yield jn(o,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>rt(void 0,void 0,void 0,function*(){if(!It)return;const e=It.getTenantId(),i=It.getAppId(),o=It.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>rt(void 0,void 0,void 0,function*(){var l;const s=yield a.json();return s.success?(l=s?.data)===null||l===void 0?void 0:l.map(r=>Object.assign(Object.assign({},r),{data:Rn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>rt(void 0,void 0,void 0,function*(){if(!It)return;const e=yield Wo(It,t),i=ji(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");mt.isEmpty(o)&&(o=ji(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const a=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:o,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return a?.data||null})};function ti(){return n.useContext(Zn)}function Go(){return n.useContext(_n)}const en="feRealSessionIdKey",Dn=()=>{const t=Ho();return`${Date.now()}${t}`},_o=()=>{let t=Zo();return t||(t=Dn(),window.localStorage.setItem(en,t)),t},tn=()=>{const t=Dn();window.localStorage.setItem(en,t)},Zo=()=>window.localStorage.getItem(en),Vn="SXP_FAKE_USER_ID",Bn="FAKE_USER_STATE",Fn="AGREE_POLICY",Wn="SLIDE_SKIP_STATE",zn="CCONTSENT_STATE",Hn="USER_CONSENT_RESULT",Ko=()=>{let t=window.localStorage.getItem(Vn);return mt.isEmpty(t)&&(t=ji(36,62),window.localStorage.setItem(Vn,t)),t},Jo=()=>{const t=window.localStorage.getItem(Bn);return mt.isEmpty(t)&&window.localStorage.setItem(Bn,"true"),mt.isEmpty(t)},Qo=()=>{const t=window.localStorage.getItem(Wn);return mt.isEmpty(t)},$o=()=>{window.localStorage.setItem(Wn,"true")},el=()=>{const t=window.localStorage.getItem(zn);return mt.isEmpty(t)&&window.localStorage.setItem(zn,"true"),mt.isEmpty(t)},Un=()=>window.localStorage.getItem(Hn)==="true",Xn=()=>{window.localStorage.setItem(Hn,"true")};function kt(t,e){const{appDomain:i}=ze();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const xt=new Vo;var bt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(bt||(bt={}));const tl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:c}=ze(),r=n.useMemo(()=>{var A;const f=location.search.slice(1),p={};(A=ai(f.replace(/\+/g,"%2B")))===null||A===void 0||A.map(b=>{const m=b.split("=")[0],S=b.split("=")[1];p[m]=S});for(const b in p)p[b]=p[b].replace(/%2B/g,"+");return p},[]),u=A=>{var f;return(f=r[A])!==null&&f!==void 0?f:null};n.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),s?.(!0),window.localStorage.setItem(Fn,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},l??"More information"))))};var il=n.memo(tl);const qn=n.createContext({rtcList:[],tagList:[]});var nn;(function(t){t[t.BFF=5]="BFF"})(nn||(nn={}));const Ni="FOR U",nl=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:A=!1,enabledMetaConversionApi:f=!1,consentHeight:p,consentWidth:b,isOpenConsent:m=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:h,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:D})=>{var M,x,T,V,k;const[j,E]=n.useState([]),[y,F]=n.useState([]),[R,B]=n.useState(!0),[O,I]=n.useState({rtc:"",requestId:""}),N=n.useRef(null),X=n.useRef(!1),[U,q]=n.useState(()=>!!window.localStorage.getItem(Fn)),[Q,me]=n.useState(),[re,K]=n.useState(),[Te,Pe]=n.useState(A),[Be,ue]=n.useState([]),[de,_e]=n.useState(0),[He,Ue]=n.useState(!1),[Ge,nt]=n.useState(null),Ze=n.useRef(),ke=n.useRef(),Qe=n.useRef(),[Tt,De]=n.useState(Ni),Fe=n.useRef(-1),We=n.useRef(null),[Z,ee]=n.useState(!1),[_,le]=n.useState((x=(M=h?.data)===null||M===void 0?void 0:M.sxpPageConf)===null||x===void 0?void 0:x.globalConfig),[we,ye]=n.useState(),[$,W]=n.useState(!1),[Ne,$e]=n.useState(),[Ke,ot]=n.useState(),[Je,Ve]=n.useState([]),[et,ct]=n.useState(),[At,zt]=n.useState(),Mt=n.useMemo(()=>we??h,[we,h]),yt=n.useRef(!1);n.useEffect(()=>{var z,H;le((H=(z=h?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||H===void 0?void 0:H.globalConfig)},[h]);const wt=n.useMemo(()=>{var z,H,te,he;return(((he=(te=(H=(z=_?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!U&&!S||m)&&$},[U,_,m,S,$]),qt=n.useCallback(z=>{D?.(z),ot(z)},[]),gt=n.useCallback(z=>{var H;const te=z?.recList;return(H=te?.map(ce=>{var ve,Ae,Se,xe,Me,L;if(!((ve=ce?.video)===null||ve===void 0)&&ve.bindProducts&&((Se=(Ae=ce?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0){const Y=(L=(Me=(xe=ce?.video)===null||xe===void 0?void 0:xe.bindProducts)===null||Me===void 0?void 0:Me.filter(G=>!!G?.bindCta))!==null&&L!==void 0?L:[];return Object.assign(Object.assign({},ce),{video:Object.assign(Object.assign({},ce?.video),{bindProducts:Y})})}return ce}))!==null&&H!==void 0?H:[]},[]);n.useEffect(()=>{let z;return Je.length>0&&(z=setInterval(()=>{const te=new Date,he=15*1e3;Ve(ce=>ce.filter(ve=>te-ve.time<=he))},1e3)),()=>{clearInterval(z)}},[Je]),n.useEffect(()=>{const z=H=>{Ze.current=H};return xt.on(bt.CHANGE_THEME_TAG,z),()=>{xt.off(bt.CHANGE_THEME_TAG,z)}},[]),n.useEffect(()=>{Pe(A)},[A]);const Xe=n.useMemo(()=>e?.find(z=>z.type===nn.BFF),[e]),Ee=n.useMemo(()=>{var z;return((z=Xe?.headers)===null||z===void 0?void 0:z["x-app-id"])+Ko()},[Xe]),fe=()=>{var z,H;function te(ve){const Ae=ve.match(/groups=([^&]+)/);if(!Ae||!Ae[1])return!1;const xe=Ae[1].split(",");for(const Me of xe){const[L,Y]=Me.split(":");if(L==="4")return Y==="0"}return!1}function he(ve){var Ae;const xe=`; ${document.cookie}`.split(`; ${ve}=`);return xe.length===2?(Ae=xe.pop())===null||Ae===void 0?void 0:Ae.split(";").shift():""}const ce=decodeURIComponent((z=he("OptanonConsent"))!==null&&z!==void 0?z:"");return!!(window?.OnetrustActiveGroups&&((H=window?.OnetrustActiveGroups)===null||H===void 0?void 0:H.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(ce))},be=n.useCallback((z,H,te=!0)=>{var he;if(!Xe)return;const ce=Xe.url;if(H?.query){const Ae=On.stringify(H.query);z=`${z}?${Ae}`}const ve=location.search.slice(1);return(he=ai(ve))===null||he===void 0||he.forEach(Ae=>{Ae.split("=")[0],Ae.split("=")[1]}),window.fetch(`${ce}/api/${z}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Ee},Xe.headers),method:H.method,body:H.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Xe.headers),{"x-user-id":Ee}))))}):JSON.stringify(H.body)},H.type==="beacon"&&{keepalive:!0})).then(Ae=>Ae.json()).catch(Ae=>Promise.reject(Ae))},[Xe,Ee]),vt=n.useCallback(z=>{var H;if(fe())return Promise.resolve();const te={eventName:z?.eventName,eventSource:z?.eventSource};return be?.(`v1/data/collect/${(H=Xe?.headers)===null||H===void 0?void 0:H["x-app-id"]}/${z?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[be,Xe]);n.useEffect(()=>{const z=window.Image;window.Image=function(){const H=new z,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(H,"src",{set(he){if(!(fe()&&(he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/")||he.includes("https://www.facebook.com/tr")))&&(te.set.call(this,he),he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/"))){const ce=new URL(he),ve=Object.fromEntries(ce.searchParams.entries());vt({eventName:ve?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),H}},[vt]),n.useEffect(()=>{const z=navigator;if(!z.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const H=z.sendBeacon.bind(z);return z.sendBeacon=function(te,he){const ce=te instanceof URL?te.href:te.toString();if(fe()&&(ce.includes("https://tr.snapchat.com/p")||ce.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ve=H(te,he);function Ae(Se){return rt(this,void 0,void 0,function*(){return typeof Se=="string"?JSON.parse(Se):Se instanceof Blob?JSON.parse(yield Se.text()):Se instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(Se)):null})}return ve&&Promise.resolve().then(()=>rt(this,void 0,void 0,function*(){var Se,xe;try{const Me=yield Ae(he);ce.includes("https://tr.snapchat.com/p")?(xe=(Se=Me?.req)===null||Se===void 0?void 0:Se.forEach)===null||xe===void 0||xe.call(Se,L=>{var Y,G;!((Y=L?.t)===null||Y===void 0)&&Y.ev&&vt({eventName:(G=L?.t)===null||G===void 0?void 0:G.ev,eventSource:"Snapchat Pixel"})}):ce.includes("https://analytics.tiktok.com/api/v2/pixel")&&Me?.event&&vt({eventName:Me.event,eventSource:"TikTok Pixel"})}catch(Me){console.error("\u76D1\u63A7\u5931\u8D25:",Me)}})),ve},()=>{z.sendBeacon=H}},[vt]),n.useEffect(()=>{const z=window.fetch;window.fetch=function(H,te){var he=arguments;return rt(this,void 0,void 0,function*(){var ce;let ve;try{ve=typeof H=="string"?H:H instanceof URL?H.href:H.url}catch(Ae){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Ae),z.apply(this,he)}try{if(fe()&&(ve.includes("https://www.google-analytics.com/g/collect")||ve.includes("https://arms-retcode.aliyuncs.com/r.png")))return Promise.resolve(new Response(""));const Ae=z.apply(this,he);if(ve.includes("https://www.google-analytics.com/g/collect")){const Se=new URL(ve),xe=Object.fromEntries(Se.searchParams.entries()),Me=(ce=he[1])===null||ce===void 0?void 0:ce.body;if(xe?.en)vt({eventName:xe?.en,eventSource:"Google Analytics"});else if(Me){const Y=function(G){if(typeof G!="string")return[];const J=[],se=/en=([^&\r\n]*)/g;let ie;for(;(ie=se.exec(G))!==null;)J.push(decodeURIComponent(ie[1]));return J}(Me);Y?.forEach(G=>{vt({eventName:G,eventSource:"Google Analytics"})})}}return Ae}catch(Ae){throw console.error(Ae),Ae}})}},[vt]),n.useEffect(()=>{const z=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,z.apply(this,arguments)},XMLHttpRequest.prototype.send=function(te){var he;if(!(fe()&&this._url&&typeof this._url=="string"&&(this._url.includes("https://rumcollector.uptime.com")||this._url.includes("https://arms-retcode.aliyuncs.com/r.png")||this._url.includes("https://i.giesswein.com/nb-collector")))){if(this._url&&typeof this._url=="string"&&this._url.includes("https://i.giesswein.com/nb-collector")&&te&&typeof te=="string")try{const ce=JSON.parse(te);if(ce&&Array.isArray(ce.data)){const ve=ce.data[((he=ce.data)===null||he===void 0?void 0:he.length)-1];ve&&ve.e&&vt({eventName:ve.e,eventSource:"Northbeam Pixel"})}}catch(ce){console.error("Failed to parse Northbeam event from XHR",ce)}H.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=z,XMLHttpRequest.prototype.send=H}},[vt]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const Ht=n.useCallback((z,H)=>{if(!Xe)return;const te=Xe.url;if(H?.query){const he=On.stringify(H.query);z=`${z}?${he}`}return window.fetch(`${te}/admin/${z}`,{headers:Object.assign({"Content-Type":"application/json"},Xe.headers),method:H.method,body:JSON.stringify(H.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Xe]),Bt=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce,ve,Ae,Se,xe,Me,L,Y,G,J,se;if(z=Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:a,defaultSize:(te=z?.defaultSize)!==null&&te!==void 0?te:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},At&&{chatlabsId:At}),C&&{type:"story"}),Ke)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(Ke)});else if(i){const ne=(ve=(ce=(he=ai(i))===null||he===void 0?void 0:he.filter(ae=>{var pe,je;const ge=ae.split("=")[0];return(je=(pe=v?.channels)!==null&&pe!==void 0?pe:[])===null||je===void 0?void 0:je.includes(ge)}))===null||ce===void 0?void 0:ce.join("&"))!==null&&ve!==void 0?ve:"";ne&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(ne)}))}if(S){let ne=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!z?.channel||X.current)return;X.current=!0;let ae=[],pe=null;const je=ge=>rt(void 0,void 0,void 0,function*(){var Ie,dt,lt,at,st,tt;if(ge.pageNum=ne,pe=yield Ht?.("recommend/direct_page",{method:"POST",body:ge}),!pe?.success)return;B(!1),ae=ae.concat((at=(lt=(dt=(Ie=pe?.data)===null||Ie===void 0?void 0:Ie.recList)===null||dt===void 0?void 0:dt.filter)===null||lt===void 0?void 0:lt.call(dt,qe=>qe?.product||qe?.video))!==null&&at!==void 0?at:[]),j?.length===0&&(E(gt(Object.assign(Object.assign({},pe?.data),{recList:ae}))),ue(gt(Object.assign(Object.assign({},pe?.data),{recList:ae})))),((tt=(st=pe?.data)===null||st===void 0?void 0:st.recList)===null||tt===void 0?void 0:tt.some(qe=>qe?.product||qe?.video))&&(ne=ne+1,yield je(ge))});return yield je(z),!z?.hashTag&&pe&&I({rtc:(Ae=pe?.data)===null||Ae===void 0?void 0:Ae.rtc,requestId:(Se=pe?.data)===null||Se===void 0?void 0:Se.requestId}),Object.assign(Object.assign({},pe?.data),{recList:ae})}_?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(xe=z?.pageNum)!==null&&xe!==void 0?xe:1}));const ie=yield be?.("v1/recommend/list",{method:"POST",body:z});if(!ie?.success)return;z?.hashTag||I({rtc:ie.data.rtc,requestId:ie.data.requestId}),_?.enablePreview&&!S&&(!((L=(Me=ie?.data)===null||Me===void 0?void 0:Me.recList)===null||L===void 0)&&L.some(ae=>ae?.product||ae?.video)||ee(!0));let oe=[];return oe=oe.concat((se=(J=(G=(Y=ie?.data)===null||Y===void 0?void 0:Y.recList)===null||G===void 0?void 0:G.filter)===null||J===void 0?void 0:J.call(G,ne=>ne?.product||ne?.video))!==null&&se!==void 0?se:[]),Object.assign(Object.assign({},ie.data),{recList:oe})}),[be,i,a,l,g,Ke,At,Ht]),Yi=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce;if(j.length<=0)return;const ve=j?.[j?.length-1],Ae=yield Bt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:re?.hashTag},((H=ve?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:[(te=ve?.product)===null||te===void 0?void 0:te.itemId]}),((he=ve?.video)===null||he===void 0?void 0:he.itemId)&&{contentFilter:[(ce=ve?.video)===null||ce===void 0?void 0:ce.itemId]}),{themeTag:Ze.current}),_?.enablePreview&&!S&&{pageNum:z}));return E(j.concat(gt(Ae))),ue(Be.concat(gt(Ae))),Ae}),[Bt,j,re,Be]),ri=n.useCallback((z,H)=>{var te,he,ce,ve,Ae;let Se=!1;const xe=(he=(te=h?.data)===null||te===void 0?void 0:te.sxpPageConf)===null||he===void 0?void 0:he.globalConfig;if(!((ce=xe?.session)===null||ce===void 0)&&ce.enable){const Me=localStorage.getItem("sessionStartTime"),L=Me?JSON.parse(Me):new Date().getTime();Math.floor((new Date().getTime()-L)/1e3/60)>=((Ae=(ve=xe?.session)===null||ve===void 0?void 0:ve.expires)!==null&&Ae!==void 0?Ae:30)&&(H?.("sessionTimeOut"),tn(),ke.current=new Date,Se=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&tn();return Se},[h]),ht=n.useCallback(({userInfo:z,eventInfo:H,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var ce,ve;if(!o||_?.enablePreview||he&&fe())return;z||(z={});const Ae=_o(),Se={},xe=location.search.slice(1);(ce=ai(xe))===null||ce===void 0||ce.forEach(J=>{const se=J.split("=")[0],ie=J.split("=")[1];Se[se]=ie});const Me=Se?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Ae,rtc:O.rtc,requestId:O.requestId},{playbookType:et}),Ne&&te&&{layoutVariantId:Ne}),H),H?.position&&Ke&&{position:Number(H?.position)+1+""}),Me&&{clSource:Me}),Y=Object.entries(z).map(([J,se])=>({name:J,value:se})),G=Object.entries(L).map(([J,se])=>se&&{name:J,value:se}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),be?.(`v2/cld/${(ve=Xe?.headers)===null||ve===void 0?void 0:ve["x-app-id"]}/${H?.eventSubject}${Me?`/${decodeURIComponent(Me)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:G},type:"beacon"})},[be,O,o,_?.enablePreview,Ne,_,et,Xe]),oi=n.useCallback((z,H)=>{var te,he,ce;const ve=mt.cloneDeep(z),Ae=new URLSearchParams(window.location.search),Se=Ae?.get("fbclid"),xe={event_source_url:(te=window?.location)===null||te===void 0?void 0:te.href,external_id:Ee,client_user_agent:(ce=(he=window?.navigator)===null||he===void 0?void 0:he.userAgent)!==null&&ce!==void 0?ce:"",fbc:Se?`fb.2.${new Date().getTime()}.${Se}`:"",fbp:Ji("_fbp")?`${Ji("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},Me=/\{\{(.*?)\}\}/g,L=Y=>{if(Y){if(Y instanceof Array)Y?.map(G=>L(G));else for(const G in Y)if(Object.prototype.hasOwnProperty.call(Y,G)){const J=Y?.[G];if(typeof J=="object")L(J);else if(typeof J=="string"){const se=J?.match(Me);se&&se.forEach(ie=>{var oe;const ne=ie.substring(2,ie.length-2);try{let ae=new Function("fix_par","product",`return ${ne}`)(xe,H);ae?(ne?.indexOf("currency")!==-1&&ae?.indexOf("-")!==-1&&typeof ae=="string"&&(ae=(oe=ae?.split("-"))===null||oe===void 0?void 0:oe[0]),Y[G]=ae):delete Y[G]}catch(ae){delete Y[G],console.error("An error occurred:",ae?.message)}})}}}};return L(ve),ve},[Ee]),Pi=n.useCallback(({eventName:z,product:H})=>{var te,he,ce,ve,Ae,Se,xe,Me,L,Y;if(!o||_?.enablePreview||fe())return;let G=!1;const J=(te=_?.pixel)===null||te===void 0?void 0:te[z];if(J?.event_name&&typeof window?.fbq=="function"){let oe=function(ne,ae,pe){const je=new RegExp("([?&])"+ae+"=.*?(&|$)","i"),ge=ne.indexOf("?")!==-1?"&":"?";return ne.match(je)?ne.replace(je,"$1"+ae+"="+pe+"$2"):ne+ge+ae+"="+pe};if(z==="PageView"&&J?.event_name==="PageView")if(!yt.current)yt.current=!0;else{const ne=window.location.href,ae=oe(ne,"timestamp",Date.now());history.pushState({path:ae},"",ae),G=!0}else window?.fbq("track",J?.event_name,oi(J,H))}if(!G){z==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(he=_?.tiktokPixel)===null||he===void 0?void 0:he[z];oe?.event_name&&typeof window?.ttq=="object"&&typeof((ce=window?.ttq)===null||ce===void 0?void 0:ce.track)=="function"&&((ve=window?.ttq)===null||ve===void 0||ve.track(oe?.event_name,oi(oe,H)))}const se=(Ae=_?.snapchatPixel)===null||Ae===void 0?void 0:Ae[z];se?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",se?.event_name,oi(se,H)),z==="PageView"&&typeof window?.Northbeam=="object"&&typeof((Se=window?.Northbeam)===null||Se===void 0?void 0:Se.trackPageView)=="function"&&((xe=window?.Northbeam)===null||xe===void 0||xe.trackPageView());const ie=(Me=_?.converApi)===null||Me===void 0?void 0:Me[z];if(f&&ie){const oe=oi(ie,H),ne={},ae=location.search.slice(1);(L=ai(ae))===null||L===void 0||L.forEach(je=>{const ge=je.split("=")[0],Ie=je.split("=")[1];ne[ge]=Ie});const pe=ne?.cl_source;be?.(`v2/fb/${(Y=Xe?.headers)===null||Y===void 0?void 0:Y["x-app-id"]}/${z}${pe?`/${decodeURIComponent(pe)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[be,o,f,_,Xe,oi]),$t=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/recommend/like",{method:"POST",body:z});return H?.success}),[be]),di=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/recommend/unlike",{method:"POST",body:z});return H?.success}),[be]),ei=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/customform",{method:"POST",body:z});return H?.success}),[be]),Ft=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){var H,te,he,ce,ve,Ae,Se,xe;const Me=!!(!((he=(te=(H=z?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Me))try{const L=(Ae=(ve=(ce=ai(i))===null||ce===void 0?void 0:ce.filter(G=>{var J,se;const ie=G.split("=")[0];return(se=(J=v?.channels)!==null&&J!==void 0?J:[])===null||se===void 0?void 0:se.includes(ie)}))===null||ve===void 0?void 0:ve.join("&"))!==null&&Ae!==void 0?Ae:"",Y=yield be?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(L)}});F((xe=(Se=Y?.data)===null||Se===void 0?void 0:Se.tags)!==null&&xe!==void 0?xe:[])}catch(L){console.log("e",L)}}),[be,i]),Ut=n.useCallback((z,H,te,he)=>{var ce,ve,Ae,Se,xe,Me,L,Y,G,J,se,ie,oe,ne,ae,pe,je,ge,Ie,dt,lt,at,st,tt,pt,qe,St,Le,Ce,jt,Ot,ci,ut,li,_i,Zi;const _t=te?.bindCta,No=((ce=H?.video)===null||ce===void 0?void 0:ce.bindProduct)||((ve=H?.video)===null||ve===void 0?void 0:ve.bindProducts)&&((Se=(Ae=H?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Se===void 0?void 0:Se.length)>0;let Mi="",Ki=null;He?Mi="hashTagPage":!((xe=H?.video)===null||xe===void 0)&&xe.url?(Mi="videoPage",Ki="video"):!((L=(Me=H?.video)===null||Me===void 0?void 0:Me.imgUrls)===null||L===void 0)&&L.length&&(Mi="imagePage",Ki="image");const Pn=(ne=(ie=(Y=te?.tags)!==null&&Y!==void 0?Y:(se=(J=(G=H?.video)===null||G===void 0?void 0:G.bindProducts)===null||J===void 0?void 0:J[0])===null||se===void 0?void 0:se.tags)!==null&&ie!==void 0?ie:(oe=H?.video)===null||oe===void 0?void 0:oe.tags)!==null&&ne!==void 0?ne:(ae=H?.product)===null||ae===void 0?void 0:ae.tags;ht?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(pe=_t?.itemId)!==null&&pe!==void 0?pe:"",ctaName:(je=_t?.title)!==null&&je!==void 0?je:"",contentTags:Pn?JSON.stringify(Pn):"",position:he+"",contentId:(Ie=(ge=H?.video)===null||ge===void 0?void 0:ge.itemId)!==null&&Ie!==void 0?Ie:"",productId:No?te?.itemId:"",traceInfo:(_i=(ci=(St=(st=(dt=_t?.traceInfo)!==null&&dt!==void 0?dt:(at=(lt=H?.video)===null||lt===void 0?void 0:lt.bindCta)===null||at===void 0?void 0:at.traceInfo)!==null&&st!==void 0?st:(qe=(pt=(tt=H?.video)===null||tt===void 0?void 0:tt.bindProduct)===null||pt===void 0?void 0:pt.bindCta)===null||qe===void 0?void 0:qe.traceInfo)!==null&&St!==void 0?St:(Ot=(jt=(Ce=(Le=H?.video)===null||Le===void 0?void 0:Le.bindProducts)===null||Ce===void 0?void 0:Ce[0])===null||jt===void 0?void 0:jt.bindCta)===null||Ot===void 0?void 0:Ot.traceInfo)!==null&&ci!==void 0?ci:(li=(ut=H?.product)===null||ut===void 0?void 0:ut.bindCta)===null||li===void 0?void 0:li.traceInfo)!==null&&_i!==void 0?_i:"",fromKName:Mi,fromKPage:(Zi=location?.href)!==null&&Zi!==void 0?Zi:"",contentFormat:Ki})})},[ht,He]),Et=n.useCallback(()=>{var z,H,te;const he=location.search.slice(1),ce={};(z=ai(he.replace(/\+/g,"%2B")))===null||z===void 0||z.map(Se=>{const xe=Se.split("=")[0],Me=Se.split("=")[1];ce[xe]=Me});for(const Se in ce)ce[Se]=ce[Se].replace(/%2B/g,"+");const ve=Se=>{var xe;return(xe=ce[Se])!==null&&xe!==void 0?xe:""},Ae=new Date;ke.current=Ae,ht?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:ve("utm_source"),utmMedium:ve("utm_medium"),utmCampaign:ve("utm_campaign"),utmId:ve("utm_id"),utmContent:ve("utm_content"),enterTime:Math.floor(Ae/1e3)+"",requestId:null,enterUrl:(te=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&te!==void 0?te:""},reportLayId:!1})},[ht]),Gi=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){var z,H;const te=yield be?.("v1/account",{method:"GET"});return zt((z=te?.data)===null||z===void 0?void 0:z.chatLabsId),((H=te?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[be]),Oi=n.useCallback(z=>rt(void 0,void 0,void 0,function*(){const H=yield be?.("v1/account/consent",{method:"POST",body:{consentResult:z}});return H?.success}),[be]);n.useEffect(()=>{wt||Et()},[wt]),n.useEffect(()=>{if(wt||s)return;B(!0);let z,H;Bt().then(te=>{var he,ce,ve,Ae,Se,xe,Me,L,Y,G,J;if(te){const se=gt(te);let ie,oe;if(te?.layoutVariantId){z=te?.layoutVariantId,$e(te?.layoutVariantId);const ne=(ce=(he=te?.layoutVariantId)===null||he===void 0?void 0:he.split("-"))===null||ce===void 0?void 0:ce[1];ne&&(ie=w?.find(ae=>ae?.id===ne),ie?(ye(ie),document.title=(ve=ie?.name)!==null&&ve!==void 0?ve:"home",oe=(Se=(Ae=ie?.data)===null||Ae===void 0?void 0:Ae.sxpPageConf)===null||Se===void 0?void 0:Se.globalConfig,le(oe),P?.(ie?.data),!((Y=(L=(Me=(xe=oe?.consent)===null||xe===void 0?void 0:xe[0])===null||Me===void 0?void 0:Me.item)===null||L===void 0?void 0:L.props)===null||Y===void 0)&&Y.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(Ke||(oe?.playbook==="organic menu"||!oe&&_?.playbook==="organic menu"?(ct("organicMenu"),se.unshift("organic menu"),H="organicMenu"):(ct("paidMedia"),H="paidMedia")),E(se),ue(se),Ft(ie??Mt),Ke){const ne=se?.[0],ae=((G=ne?.video)===null||G===void 0?void 0:G.traceInfo)||((J=ne?.product)===null||J===void 0?void 0:J.traceInfo)||"";ht?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ae,branchfeed:Ke},z&&{layoutVariantId:z})}),ht?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ae,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-Qe?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{ht({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),H&&{playbookType:H})}),B(!1)})},[wt,Ke]),n.useEffect(()=>{s&&(B(!0),Ft(h),Bt().then(z=>{if(z){const H=gt(z);_?.playbook==="organic menu"&&!Ke&&H.unshift("organic menu"),E(H),ue(H)}}).finally(()=>{B(!1)}))},[Bt,Ft,Ke]);const Li=kt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return n.createElement(qn.Provider,{value:{rtcList:j,setRtcList:E,mutateLike:$t,mutateUnlike:di,submitForm:ei,popupDetailData:Q,loadVideos:Yi,setPopupDetailData:me,getRecommendVideos:Bt,bffEventReport:ht,isPreview:s,loading:R,sxpParameter:c,waterFallData:re,setWaterFallData:K,ctaEvent:Ut,swiperRef:N,openHashtag:Te,setOpenHashtag:Pe,cacheRtcList:Be,setCacheRtcList:ue,cacheActiveIndex:de,setCacheActiveIndex:_e,isFromHashtag:He,setIsFromHashtag:Ue,appDomain:r,hashTagSize:u,loadingImage:d??Li,isOpenHashTag:A,tagList:y,setLoading:B,videoRef:Ge,setVideoRef:nt,bffFbReport:Pi,isAgreePolicy:U,setIsAgreePolicy:q,curTime:ke,h5EnterLink:Et,themeTag:Ze,isShowConsent:wt,selectTag:Tt,setSelectTag:De,globalConfig:_,popupCurTimeRef:We,checkCommodityIndexRef:Fe,isEditor:S,isNoMoreData:Z,updateChannel:qt,channel:Ke,eventTimeList:Je,setEventTimeList:Ve,multiPostTimeRef:Qe,refreshFeSession:ri,getAccount:Gi,accountSonsent:Oi,isDiyH5:C,pixelPvStatusRef:yt}},wt?n.createElement(il,Object.assign({},(k=(V=(T=_?.consent)===null||T===void 0?void 0:T[0])===null||V===void 0?void 0:V.item)===null||k===void 0?void 0:k.props)):t({rtcList:j,mutateLike:$t,mutateUnlike:di,submitForm:ei,tagList:y,pageData:Mt}))};var Yn=n.memo(nl);function ze(){return n.useContext(qn)}var Gn;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(Gn||(Gn={}));const _n=n.createContext({$store:{},options:[],configs:[]}),ol=({children:t,isSsr:e,enable:i})=>{const[o,a]=n.useState([]),{schema:l}=ti(),[s,c]=n.useState(l.__STORE__||{}),[r,u]=n.useState([]);n.useEffect(()=>{var f;e||mt.isEqual(r,l?.dataSource)||u((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const d=n.useCallback(()=>rt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:p}=yield jn("",r);c(f),A(f,p)}),[r]),A=(f,p)=>{const b=[];Object.entries(f).forEach(([m,S])=>{Object.keys(S).forEach(v=>{const g={label:`${p[m]} - ${v}`,value:`{{ ${m}.${v} }}`};b.push(g)})}),a(b)};return n.useEffect(()=>{e||d()},[d,e,l]),i?n.createElement(_n.Provider,{value:{$store:l.__STORE__||s,options:o,configs:r}},t):t};var ll=n.memo(ol);const Ri={id:ji(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},on={id:"",duration:0,name:"none"},Zn=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Ri],redoStack:[],popup:on,setPopup:()=>{}}),Kn=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:a=!0,utmVal:l},s)=>{const[c,r]=n.useState(null),[u,d]=n.useState(o||{pointData:[Ri],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[A,f]=n.useState([Ri]),[p,b]=n.useState([[Ri]]),[m,S]=n.useState([]),[v,g]=n.useState(on);typeof window<"u"&&(window.sxpPopup=(D,M)=>{g(Object.assign(Object.assign(Object.assign({},on),{id:D}),M))}),typeof window<"u"&&(window.getJointUtmLink=D=>($o(),D?.indexOf("?")!==-1?D+(l?"&"+l:""):D+(l?"?"+l:""))),n.useEffect(()=>{b([u.pointData]),S([])},[u.type]);const h=n.useCallback(D=>{const M=mt.cloneDeep(u);M&&(M.dataSource=D,d?.(M))},[u]),[w,C]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(D){D&&(b([D.pointData]),d(D))},exportSchema(){return mt.cloneDeep(u)},getPageInfoData(){return w},initPageInfoData(D){D&&C(D)}}));const P=n.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return n.createElement(Zn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:h,prePiontData:A,setPrePiontData:f,pageInfoData:w,setPageInfoData:D=>C(Object.assign(Object.assign({},w),D)),undoStack:p,redoStack:m,setRedoStack:S,setUndoStack:b,getCurPageConf:P,popup:v,setPopup:g}},n.createElement(ll,{isSsr:i,enable:a},t))});var al=Object.freeze({__proto__:null,EditorCore:Kn}),sl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],rl=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Lt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:o,setEventTimeList:a}=ze(),l=n.useCallback((r,u,d,A,f,p)=>{var b,m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R,B,O,I,N,X,U,q,Q,me,re,K,Te,Pe,Be,ue,de,_e,He;if(o?.findIndex(ke=>ke.target===r?.target)!==-1)return;r&&a?.(ke=>[...ke,{target:r?.target,time:new Date}]);let Ge="";e&&(!((m=(b=u?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0)&&m.length||!((S=u?.video)===null||S===void 0)&&S.bindProduct)?Ge="pdpPage":i?Ge="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?Ge="videoPage":!((g=u?.video)===null||g===void 0)&&g.imgUrls&&(!((w=(h=u?.video)===null||h===void 0?void 0:h.imgUrls)===null||w===void 0)&&w.length)?Ge="imagePage":u?.product&&(Ge="productPage");const nt=(V=(x=(C=d?.tags)!==null&&C!==void 0?C:(M=(D=(P=u?.video)===null||P===void 0?void 0:P.bindProducts)===null||D===void 0?void 0:D[0])===null||M===void 0?void 0:M.tags)!==null&&x!==void 0?x:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&V!==void 0?V:(k=u?.product)===null||k===void 0?void 0:k.tags;let Ze=null;!((j=u?.video)===null||j===void 0)&&j.url?Ze="video":!((E=u?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(y=u?.video)===null||y===void 0?void 0:y.imgUrls)===null||F===void 0)&&F.length)&&(Ze="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=d?.itemId)!==null&&R!==void 0?R:"",productName:(B=d?.title)!==null&&B!==void 0?B:"",price:d?.price?d?.price+"":"0",productCollection:(O=d?.collection)!==null&&O!==void 0?O:"",fromKName:Ge,fromKPage:location?.href,contentTags:nt?JSON.stringify(nt):"",position:f+"",contentId:(N=(I=u?.video)===null||I===void 0?void 0:I.itemId)!==null&&N!==void 0?N:"",ctatId:(X=A?.itemId)!==null&&X!==void 0?X:"",traceInfo:(He=(ue=(Pe=(me=(U=p??d?.traceInfo)!==null&&U!==void 0?U:(Q=(q=u?.video)===null||q===void 0?void 0:q.bindProduct)===null||Q===void 0?void 0:Q.traceInfo)!==null&&me!==void 0?me:(Te=(K=(re=u?.video)===null||re===void 0?void 0:re.bindProducts)===null||K===void 0?void 0:K[0])===null||Te===void 0?void 0:Te.traceInfo)!==null&&Pe!==void 0?Pe:(Be=u?.product)===null||Be===void 0?void 0:Be.traceInfo)!==null&&ue!==void 0?ue:(_e=(de=u?.video)===null||de===void 0?void 0:de.bindCta)===null||_e===void 0?void 0:_e.traceInfo)!==null&&He!==void 0?He:""},Ze&&{contentFormat:Ze})})},[t,e,i,o]),s=n.useCallback((r,u,d,A,f)=>{var p,b,m,S,v,g,h,w,C,P,D,M,x,T;let V="";e&&(!((b=(p=r?.video)===null||p===void 0?void 0:p.bindProducts)===null||b===void 0)&&b.length||!((m=r?.video)===null||m===void 0)&&m.bindProduct)?V="pdpPage":r?.product&&(V="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:V,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:f+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(M=(w=(v=u?.traceInfo)!==null&&v!==void 0?v:(h=(g=r?.video)===null||g===void 0?void 0:g.bindProduct)===null||h===void 0?void 0:h.traceInfo)!==null&&w!==void 0?w:(D=(P=(C=r?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||D===void 0?void 0:D.traceInfo)!==null&&M!==void 0?M:(x=r?.product)===null||x===void 0?void 0:x.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-A)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=n.useCallback((r,u,d,A)=>{u&&u===Ni&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:A?`['${A}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:c}}const dl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,a)=>n.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var cl=n.memo(dl);const ul=t=>{var e,i,{columns:o,style:a,title:l,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:A,isPopup:f,onClick:p,onClose:b,submitButtonStyle:m}=t,S=it(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=ze(),{jumpToWeb:h}=Lt(),[w,C]=n.useState(!1),[P,D]=n.useState({}),[M,x]=n.useState(0),T=n.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),V=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),k=n.useMemo(()=>mt.cloneDeep(o)||T,[o,T]),j=n.useCallback(y=>{const{name:F,value:R}=y.target;D(Object.assign(Object.assign({},P),{[F]:R}))},[P]),E=mt.debounce(y=>rt(void 0,void 0,void 0,function*(){var F,R,B,O,I;const N=P;if(!N)return;const X=(R=(F=Object.keys(N))===null||F===void 0?void 0:F.map(q=>{var Q;return{name:q,value:(Q=N[q])!==null&&Q!==void 0?Q:""}}))===null||R===void 0?void 0:R.filter(q=>q?.value);if(!X||!X?.length)return;C(!0);const U=yield v?.({attributes:X});if(C(!1),U){if(A){const q=g,Q=(B=q?.video)===null||B===void 0?void 0:B.bindProduct,me=(I=(O=q?.video)===null||O===void 0?void 0:O.bindProduct)===null||I===void 0?void 0:I.bindCta,re=g?.index;h(y,q,Q,me,re)}f||b?.(),p?.()}}),1e3);return n.useEffect(()=>{const y=()=>{var F,R;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((R=document?.body)===null||R===void 0?void 0:R.clientHeight))<V?x(50):x(0)};return window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${Re.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Oe(l,s)}}),n.createElement("div",Object.assign({className:Re.css(Object.assign(Object.assign({},a),{marginTop:M}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(cl,{columns:k,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":u,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},m),dangerouslySetInnerHTML:{__html:Oe(w?"loading...":u,m)}})))};var vl=n.memo(ul);function ft(t,e){return t.extend=e,t}const pl=ft(vl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:rl,bindableProps:[],interactionRender:sl},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var ml=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{label:"\u82F1\u6587\u5927\u5C0F\u5199",type:"Select",name:["props","buttonStyle","textTransform"],options:[{label:"\u9ED8\u8BA4",value:"unset"},{label:"\u5C0F\u5199",value:"lowercase"},{label:"\u5927\u5199",value:"uppercase"}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}],fl=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function Jn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ln(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Jn(e[i])&&Jn(t[i])&&Object.keys(e[i]).length>0&&ln(t[i],e[i])})}const Qn={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Nt(){const t=typeof document<"u"?document:{};return ln(t,Qn),t}const hl={document:Qn,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Ct(){const t=typeof window<"u"?window:{};return ln(t,hl),t}function ii(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Al(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ui(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Wt(){return Date.now()}function bl(t){const e=Ct();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function gl(t,e){e===void 0&&(e="x");const i=Ct();let o,a,l;const s=bl(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(a==="none"?"":a)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function Di(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function yl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Rt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!yl(o)){const a=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const c=a[l],r=Object.getOwnPropertyDescriptor(o,c);r!==void 0&&r.enumerable&&(Di(t[c])&&Di(o[c])?o[c].__swiper__?t[c]=o[c]:Rt(t[c],o[c]):!Di(t[c])&&Di(o[c])?(t[c]={},o[c].__swiper__?t[c]=o[c]:Rt(t[c],o[c])):t[c]=o[c])}}}return t}function Vi(t,e,i){t.style.setProperty(e,i)}function $n(t){let{swiper:e,targetPosition:i,side:o}=t;const a=Ct(),l=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>l?"next":"prev",d=(f,p)=>u==="next"&&f>=p||u==="prev"&&f<=p,A=()=>{c=new Date().getTime(),s===null&&(s=c);const f=Math.max(Math.min((c-s)/r,1),0),p=.5-Math.cos(f*Math.PI)/2;let b=l+p*(i-l);if(d(b,i)&&(b=i),e.wrapperEl.scrollTo({[o]:b}),d(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:b})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(A)};A()}function Yt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Bi(t){try{console.warn(t);return}catch{}}function vi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ii(e)),i}function eo(t){const e=Ct(),i=Nt(),o=t.getBoundingClientRect(),a=i.body,l=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:o.top+c-l,left:o.left+r-s}}function wl(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Sl(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function ni(t,e){return Ct().getComputedStyle(t,null).getPropertyValue(e)}function Ai(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Fi(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function an(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function sn(t,e,i){const o=Ct();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ye(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let rn;function xl(){const t=Ct(),e=Nt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function to(){return rn||(rn=xl()),rn}let dn;function Tl(t){let{userAgent:e}=t===void 0?{}:t;const i=to(),o=Ct(),a=o.navigator.platform,l=e||o.navigator.userAgent,s={ios:!1,android:!1},c=o.screen.width,r=o.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let d=l.match(/(iPad).*OS\s([\d_]+)/);const A=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=a==="Win32";let b=a==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&b&&i.touch&&m.indexOf(`${c}x${r}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),b=!1),u&&!p&&(s.os="android",s.android=!0),(d||f||A)&&(s.os="ios",s.ios=!0),s}function io(t){return t===void 0&&(t={}),dn||(dn=Tl(t)),dn}let cn;function El(){const t=Ct(),e=io();let i=!1;function o(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(o()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function kl(){return cn||(cn=El()),cn}function Il(t){let{swiper:e,on:i,emit:o}=t;const a=Ct();let l=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(A=>{s=a.requestAnimationFrame(()=>{const{width:f,height:p}=e;let b=f,m=p;A.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:h}=S;h&&h!==e.el||(b=g?g.width:(v[0]||v).inlineSize,m=g?g.height:(v[0]||v).blockSize)}),(b!==f||m!==p)&&c()})}),l.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},d=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function Cl(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=[],s=Ct(),c=function(d,A){A===void 0&&(A={});const f=s.MutationObserver||s.WebkitMutationObserver,p=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){a("observerUpdate",b[0]);return}const m=function(){a("observerUpdate",b[0])};s.requestAnimationFrame?s.requestAnimationFrame(m):s.setTimeout(m,0)});p.observe(d,{attributes:typeof A.attributes>"u"?!0:A.attributes,childList:typeof A.childList>"u"?!0:A.childList,characterData:typeof A.characterData>"u"?!0:A.characterData}),l.push(p)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Fi(e.hostEl);for(let A=0;A<d.length;A+=1)c(d[A])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{l.forEach(d=>{d.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",r),o("destroy",u)}var Pl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];e.apply(o,s)}return a.__emitterProxy=e,o.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((a,l)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[o].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),o=t):(e=l[0].events,i=l[0].data,o=l[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(o,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(o,i)})}),t}};function Ol(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ni(o,"padding-left")||0,10)-parseInt(ni(o,"padding-right")||0,10),i=i-parseInt(ni(o,"padding-top")||0,10)-parseInt(ni(o,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Ll(){const t=this;function e(T,V){return parseFloat(T.getPropertyValue(t.getDirectionLabel(V))||0)}const i=t.params,{wrapperEl:o,slidesEl:a,size:l,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=Yt(a,`.${t.params.slideClass}, swiper-slide`),A=r?t.virtual.slides.length:d.length;let f=[];const p=[],b=[];let m=i.slidesOffsetBefore;typeof m=="function"&&(m=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let h=i.spaceBetween,w=-m,C=0,P=0;if(typeof l>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*l:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,d.forEach(T=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Vi(o,"--swiper-centered-offset-before",""),Vi(o,"--swiper-centered-offset-after",""));const D=i.grid&&i.grid.rows>1&&t.grid;D?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let M;const x=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<A;T+=1){M=0;let V;if(d[T]&&(V=d[T]),D&&t.grid.updateSlide(T,V,d),!(d[T]&&ni(V,"display")==="none")){if(i.slidesPerView==="auto"){x&&(d[T].style[t.getDirectionLabel("width")]="");const k=getComputedStyle(V),j=V.style.transform,E=V.style.webkitTransform;if(j&&(V.style.transform="none"),E&&(V.style.webkitTransform="none"),i.roundLengths)M=t.isHorizontal()?sn(V,"width",!0):sn(V,"height",!0);else{const y=e(k,"width"),F=e(k,"padding-left"),R=e(k,"padding-right"),B=e(k,"margin-left"),O=e(k,"margin-right"),I=k.getPropertyValue("box-sizing");if(I&&I==="border-box")M=y+B+O;else{const{clientWidth:N,offsetWidth:X}=V;M=y+F+R+B+O+(X-N)}}j&&(V.style.transform=j),E&&(V.style.webkitTransform=E),i.roundLengths&&(M=Math.floor(M))}else M=(l-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${M}px`);d[T]&&(d[T].swiperSlideSize=M),b.push(M),i.centeredSlides?(w=w+M/2+C/2+h,C===0&&T!==0&&(w=w-l/2-h),T===0&&(w=w-l/2-h),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),p.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),p.push(w),w=w+M+h),t.virtualSize+=M+h,C=M,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+S,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),D&&t.grid.updateWrapperSize(M,f),!i.centeredSlides){const T=[];for(let V=0;V<f.length;V+=1){let k=f[V];i.roundLengths&&(k=Math.floor(k)),f[V]<=t.virtualSize-l&&T.push(k)}f=T,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}if(r&&i.loop){const T=b[0]+h;if(i.slidesPerGroup>1){const V=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),k=T*i.slidesPerGroup;for(let j=0;j<V;j+=1)f.push(f[f.length-1]+k)}for(let V=0;V<t.virtual.slidesBefore+t.virtual.slidesAfter;V+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),p.push(p[p.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),h!==0){const T=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((V,k)=>!i.cssMode||i.loop?!0:k!==d.length-1).forEach(V=>{V.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const V=T-l;f=f.map(k=>k<=0?-m:k>V?V+S:k)}if(i.centerInsufficientSlides){let T=0;b.forEach(k=>{T+=k+(h||0)}),T-=h;const V=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+V<l){const k=(l-T-V)/2;f.forEach((j,E)=>{f[E]=j-k}),p.forEach((j,E)=>{p[E]=j+k})}}if(Object.assign(t,{slides:d,snapGrid:f,slidesGrid:p,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Vi(o,"--swiper-centered-offset-before",`${-f[0]}px`),Vi(o,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],V=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(k=>k+T),t.slidesGrid=t.slidesGrid.map(k=>k+V)}if(A!==u&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,V=t.el.classList.contains(T);A<=i.maxBackfaceHiddenSlides?V||t.el.classList.add(T):V&&t.el.classList.remove(T)}}function Ml(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let a=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>o?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const c=e.activeIndex+l;if(c>e.slides.length&&!o)break;i.push(s(c))}else i.push(s(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const c=i[l].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function jl(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const no=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Nl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:a,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<o.length;r+=1){const u=o[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=o[0].swiperSlideOffset);const A=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),f=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),p=-(s-d),b=p+e.slidesSizesGrid[r],m=p>=0&&p<=e.size-e.slidesSizesGrid[r],S=p>=0&&p<e.size-1||b>1&&b<=e.size||p<=0&&b>=e.size;S&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),no(u,S,i.slideVisibleClass),no(u,m,i.slideFullyVisibleClass),u.progress=a?-A:A,u.originalProgress=a?-f:f}}function Rl(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:l,isEnd:s,progressLoop:c}=e;const r=l,u=s;if(o===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/o;const d=Math.abs(t-e.minTranslate())<1,A=Math.abs(t-e.maxTranslate())<1;l=d||a<=0,s=A||a>=1,d&&(a=0),A&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),A=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[d],p=e.slidesGrid[A],b=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=f?c=(m-f)/b:c=(m+b-p)/b,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:l,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!l||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const un=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Dl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=A=>Yt(o,`.${i.slideClass}${A}, swiper-slide${A}`)[0];let r,u,d;if(l)if(i.loop){let A=a-t.virtual.slidesBefore;A<0&&(A=t.virtual.slides.length+A),A>=t.virtual.slides.length&&(A-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${A}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(A=>A.column===a)[0],d=e.filter(A=>A.column===a+1)[0],u=e.filter(A=>A.column===a-1)[0]):r=e[a];r&&(s||(d=Sl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=wl(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(A=>{un(A,A===r,i.slideActiveClass),un(A,A===d,i.slideNextClass),un(A,A===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Wi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let a=o.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},vn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},pn=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+o+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&vn(t,u)});return}const l=a+o-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=l+e;s+=1){const c=(s%i+i)%i;(c<a||c>l)&&vn(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(l+e,i-1);s+=1)s!==a&&(s>l||s<a)&&vn(t,s)};function Vl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let a;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?o>=e[l]&&o<e[l+1]-(e[l+1]-e[l])/2?a=l:o>=e[l]&&o<e[l+1]&&(a=l+1):o>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Bl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:s,snapIndex:c}=e;let r=t,u;const d=p=>{let b=p-e.virtual.slidesBefore;return b<0&&(b=e.virtual.slides.length+b),b>=e.virtual.slides.length&&(b-=e.virtual.slides.length),b};if(typeof r>"u"&&(r=Vl(e)),o.indexOf(i)>=0)u=o.indexOf(i);else{const p=Math.min(a.slidesPerGroupSkip,r);u=p+Math.floor((r-p)/a.slidesPerGroup)}if(u>=o.length&&(u=o.length-1),r===l&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const A=e.grid&&a.grid&&a.grid.rows>1;let f;if(e.virtual&&a.virtual.enabled&&a.loop)f=d(r);else if(A){const p=e.slides.filter(m=>m.column===r)[0];let b=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(e.slides.indexOf(p),0)),f=Math.floor(b/a.grid.rows)}else if(e.slides[r]){const p=e.slides[r].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=r}else f=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:l,activeIndex:r}),e.initialized&&pn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Fl(t,e){const i=this,o=i.params;let a=t.closest(`.${o.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${o.slideClass}, swiper-slide`)&&(a=c)});let l=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){l=!0,s=c;break}}if(a&&l)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Wl={updateSize:Ol,updateSlides:Ll,updateAutoHeight:Ml,updateSlidesOffset:jl,updateSlidesProgress:Nl,updateProgress:Rl,updateSlidesClasses:Dl,updateActiveIndex:Bl,updateClickedSlide:Fl};function zl(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return o?-a:a;if(i.cssMode)return a;let s=gl(l,t);return s+=e.cssOverflowAdjustment(),o&&(s=-s),s||0}function Hl(t,e){const i=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=o?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const A=i.maxTranslate()-i.minTranslate();A===0?d=0:d=(t-i.minTranslate())/A,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Ul(){return-this.snapGrid[0]}function Xl(){return-this.snapGrid[this.snapGrid.length-1]}function ql(t,e,i,o,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const l=this,{params:s,wrapperEl:c}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const r=l.minTranslate(),u=l.maxTranslate();let d;if(o&&t>r?d=r:o&&t<u?d=u:d=t,l.updateProgress(d),s.cssMode){const A=l.isHorizontal();if(e===0)c[A?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:-d,side:A?"left":"top"}),!0;c.scrollTo({[A?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(f){!l||l.destroyed||f.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var Yl={getTranslate:zl,setTranslate:Hl,minTranslate:Ul,maxTranslate:Xl,translateTo:ql};function Gl(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function oo(t){let{swiper:e,runCallbacks:i,direction:o,step:a}=t;const{activeIndex:l,previousIndex:s}=e;let c=o;if(c||(l>s?c="next":l<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&l!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function _l(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),oo({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Zl(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),oo({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Kl={setTransition:Gl,transitionStart:_l,transitionEnd:Zl};function Jl(t,e,i,o,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:A,rtlTranslate:f,wrapperEl:p,enabled:b}=l;if(!b&&!o&&!a||l.destroyed||l.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const m=Math.min(l.params.slidesPerGroupSkip,s);let S=m+Math.floor((s-m)/l.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const v=-r[S];if(c.normalizeSlideIndex)for(let h=0;h<u.length;h+=1){const w=-Math.floor(v*100),C=Math.floor(u[h]*100),P=Math.floor(u[h+1]*100);typeof u[h+1]<"u"?w>=C&&w<P-(P-C)/2?s=h:w>=C&&w<P&&(s=h+1):w>=C&&(s=h)}if(l.initialized&&s!==A&&(!l.allowSlideNext&&(f?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(A||0)!==s))return!1;s!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let g;if(s>A?g="next":s<A?g="prev":g="reset",f&&-v===l.translate||!f&&v===l.translate)return l.updateActiveIndex(s),c.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),c.effect!=="slide"&&l.setTranslate(v),g!=="reset"&&(l.transitionStart(i,g),l.transitionEnd(i,g)),!1;if(c.cssMode){const h=l.isHorizontal(),w=f?v:-v;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[h?"scrollLeft":"scrollTop"]=w})):p[h?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return $n({swiper:l,targetPosition:w,side:h?"left":"top"}),!0;p.scrollTo({[h?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(s),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,o),l.transitionStart(i,g),e===0?l.transitionEnd(i,g):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,g))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function Ql(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(l){const f=s*a.params.grid.rows;c=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else c=a.getSlideIndexByData(s);const r=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let A=r-c<d;if(u&&(A=A||c<Math.ceil(d/2)),o&&u&&a.params.slidesPerView!=="auto"&&!l&&(A=!1),A){const f=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?c+1:c-r+1,slideRealIndex:f==="next"?a.realIndex:void 0})}if(l){const f=s*a.params.grid.rows;s=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,o)}),a}function $l(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:a,params:l,animating:s}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let c=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(c=Math.max(o.slidesPerViewDynamic("current",!0),1));const r=o.activeIndex<l.slidesPerGroupSkip?1:c,u=o.virtual&&l.virtual.enabled;if(l.loop){if(s&&!u&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+r,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+r,t,e,i)}function ea(t,e,i){e===void 0&&(e=!0);const o=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=o;if(!r||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const d=o.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const A=c?o.translate:-o.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=f(A),b=l.map(v=>f(v));let m=l[b.indexOf(p)-1];if(typeof m>"u"&&a.cssMode){let v;l.forEach((g,h)=>{p>=g&&(v=h)}),typeof v<"u"&&(m=l[v>0?v-1:v])}let S=0;if(typeof m<"u"&&(S=s.indexOf(m),S<0&&(S=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.rewind&&o.isBeginning){const v=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(v,t,e,i)}else if(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function ta(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function ia(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let l=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,l),c=s+Math.floor((l-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*o&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,t,e,i)}function na(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,l;const s=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=t.getSlideIndex(Yt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=t.getSlideIndex(Yt(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),ui(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var oa={slideTo:Jl,slideToLoop:Ql,slideNext:$l,slidePrev:ea,slideReset:ta,slideToClosest:ia,slideToClickedSlide:na};function la(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{Yt(o,`.${i.slideClass}, swiper-slide`).forEach((A,f)=>{A.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(l?i.grid.rows:1),c=e.slides.length%s!==0,r=l&&e.slides.length%i.grid.rows!==0,u=d=>{for(let A=0;A<d;A+=1){const f=e.isElement?vi("swiper-slide",[i.slideBlankClass]):vi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else Bi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else Bi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function aa(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:a,activeSlideIndex:l,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:A,slidesEl:f,params:p}=r,{centeredSlides:b}=p;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):p.centeredSlides&&r.snapIndex<p.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=A,r.emit("loopFix");return}let m=p.slidesPerView;m==="auto"?m=r.slidesPerViewDynamic():(m=Math.ceil(parseFloat(p.slidesPerView,10)),b&&m%2===0&&(m=m+1));const S=p.slidesPerGroupAuto?m:p.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=p.loopAdditionalSlides,r.loopedSlides=v;const g=r.grid&&p.grid&&p.grid.rows>1;u.length<m+v?Bi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):g&&p.grid.fill==="row"&&Bi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],w=[];let C=r.activeIndex;typeof l>"u"?l=r.getSlideIndex(u.filter(j=>j.classList.contains(p.slideActiveClass))[0]):C=l;const P=o==="next"||!o,D=o==="prev"||!o;let M=0,x=0;const T=g?Math.ceil(u.length/p.grid.rows):u.length,k=(g?u[l].column:l)+(b&&typeof a>"u"?-m/2+.5:0);if(k<v){M=Math.max(v-k,S);for(let j=0;j<v-k;j+=1){const E=j-Math.floor(j/T)*T;if(g){const y=T-E-1;for(let F=u.length-1;F>=0;F-=1)u[F].column===y&&h.push(F)}else h.push(T-E-1)}}else if(k+m>T-v){x=Math.max(k-(T-v*2),S);for(let j=0;j<x;j+=1){const E=j-Math.floor(j/T)*T;g?u.forEach((y,F)=>{y.column===E&&w.push(F)}):w.push(E)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),D&&h.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),P&&w.forEach(j=>{u[j].swiperLoopMoveDOM=!0,f.append(u[j]),u[j].swiperLoopMoveDOM=!1}),r.recalcSlides(),p.slidesPerView==="auto"?r.updateSlides():g&&(h.length>0&&D||w.length>0&&P)&&r.slides.forEach((j,E)=>{r.grid.updateSlide(E,j,r.slides)}),p.watchSlidesProgress&&r.updateSlidesOffset(),i){if(h.length>0&&D){if(typeof e>"u"){const j=r.slidesGrid[C],y=r.slidesGrid[C+M]-j;c?r.setTranslate(r.translate-y):(r.slideTo(C+Math.ceil(M),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-y,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-y))}else if(a){const j=g?h.length/p.grid.rows:h.length;r.slideTo(r.activeIndex+j,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(w.length>0&&P)if(typeof e>"u"){const j=r.slidesGrid[C],y=r.slidesGrid[C-x]-j;c?r.setTranslate(r.translate-y):(r.slideTo(C-x,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-y,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-y))}else{const j=g?w.length/p.grid.rows:w.length;r.slideTo(r.activeIndex-j,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=A,r.controller&&r.controller.control&&!s){const j={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...j,slideTo:E.params.slidesPerView===p.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...j,slideTo:r.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}r.emit("loopFix")}function sa(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ra={loopCreate:la,loopFix:aa,loopDestroy:sa};function da(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function ca(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var ua={setGrabCursor:da,unsetGrabCursor:ca};function va(t,e){e===void 0&&(e=this);function i(o){if(!o||o===Nt()||o===Ct())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(t);return!a&&!o.getRootNode?null:a||i(o.getRootNode().host)}return i(e)}function lo(t,e,i){const o=Ct(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=o.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function pa(t){const e=this,i=Nt();let o=t;o.originalEvent&&(o=o.originalEvent);const a=e.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){lo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:c}=e;if(!c||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let r=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(r=d[0]);const A=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(f?va(A,r):r.closest(A))){e.allowClick=!0;return}if(l.swipeHandler&&!r.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const p=s.currentX,b=s.currentY;if(!lo(e,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=b,a.touchStartTime=Wt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let m=!0;r.matches(a.focusableElements)&&(m=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const S=m&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!r.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function ma(t){const e=Nt(),i=this,o=i.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(o.touchId!==null||r.pointerId!==o.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(P=>P.identifier===o.touchId)[0],!u||u.identifier!==o.touchId)return}else u=r;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,A=u.pageY;if(r.preventedByNestedSwiper){l.startX=d,l.startY=A;return}if(!i.allowTouchMove){r.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:d,startY:A,currentX:d,currentY:A}),o.touchStartTime=Wt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(A<l.startY&&i.translate<=i.maxTranslate()||A>l.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(d<l.startX&&i.translate<=i.maxTranslate()||d>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",r),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=A;const f=l.currentX-l.startX,p=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+p**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:f*f+p*p>=25&&(P=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,o.isScrolling=i.isHorizontal()?P>a.touchAngle:90-P>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",r),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||r.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let b=i.isHorizontal()?f:p,m=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(b=Math.abs(b)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),l.diff=b,b*=a.touchRatio,s&&(b=-b,m=-m);const S=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=m>0?"prev":"next";const v=i.params.loop&&!a.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}o.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let h;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(b)>=1){Object.assign(l,{startX:d,startY:A,currentX:d,currentY:A,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",r),o.isMoved=!0,o.currentTranslate=b+o.startTranslate;let w=!0,C=a.resistanceRatio;if(a.touchReleaseOnEdges&&(C=0),b>0?(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+b)**C))):b<0&&(v&&g&&!h&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-b)**C))),w&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(b)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function fa(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].filter(C=>C.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;a=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const A=Wt(),f=A-i.touchStartTime;if(e.allowClick){const C=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(C&&C[0]||o.target,C),e.emit("tap click",o),f<300&&A-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=Wt(),ui(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(s.followFinger?p=r?e.translate:-e.translate:p=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const b=p>=-e.maxTranslate()&&!e.params.loop;let m=0,S=e.slidesSizesGrid[0];for(let C=0;C<u.length;C+=C<s.slidesPerGroupSkip?1:s.slidesPerGroup){const P=C<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[C+P]<"u"?(b||p>=u[C]&&p<u[C+P])&&(m=C,S=u[C+P]-u[C]):(b||p>=u[C])&&(m=C,S=u[u.length-1]-u[u.length-2])}let v=null,g=null;s.rewind&&(e.isBeginning?g=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(p-u[m])/S,w=m<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:m+w):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-s.longSwipesRatio?e.slideTo(m+w):g!==null&&h<0&&Math.abs(h)>s.longSwipesRatio?e.slideTo(g):e.slideTo(m))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(m+w):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:m+w),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:m))}}function ao(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function ha(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Aa(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const l=t.maxTranslate()-t.minTranslate();l===0?a=0:a=(t.translate-t.minTranslate())/l,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ba(t){const e=this;Wi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ga(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const so=(t,e)=>{const i=Nt(),{params:o,el:a,wrapperEl:l,device:s}=t,c=!!o.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[r]("click",t.onClick,!0),o.cssMode&&l[r]("scroll",t.onScroll),o.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",ao,!0):t[u]("observerUpdate",ao,!0),a[r]("load",t.onLoad,{capture:!0}))};function ya(){const t=this,{params:e}=t;t.onTouchStart=pa.bind(t),t.onTouchMove=ma.bind(t),t.onTouchEnd=fa.bind(t),t.onDocumentTouchStart=ga.bind(t),e.cssMode&&(t.onScroll=Aa.bind(t)),t.onClick=ha.bind(t),t.onLoad=ba.bind(t),so(t,"on")}function wa(){so(this,"off")}var Sa={attachEvents:ya,detachEvents:wa};const ro=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function xa(){const t=this,{realIndex:e,initialized:i,params:o,el:a}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const s=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in l?l[s]:void 0)||t.originalParams,u=ro(t,o),d=ro(t,r),A=t.params.grabCursor,f=r.grabCursor,p=o.enabled;u&&!d?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${o.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),A&&!f?t.unsetGrabCursor():!A&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof r[h]>"u")return;const w=o[h]&&o[h].enabled,C=r[h]&&r[h].enabled;w&&!C&&t[h].disable(),!w&&C&&t[h].enable()});const b=r.direction&&r.direction!==o.direction,m=o.loop&&(r.slidesPerView!==o.slidesPerView||b),S=o.loop;b&&i&&t.changeDirection(),Rt(t.params,r);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!v?t.disable():!p&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",r)}function Ta(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const a=Ct(),l=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:l*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=r):u<=i.clientWidth&&(o=r)}return o||"max"}var Ea={setBreakpoint:xa,getBreakpoint:Ta};function ka(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&i.push(e+a)}):typeof o=="string"&&i.push(e+o)}),i}function Ia(){const t=this,{classNames:e,params:i,rtl:o,el:a,device:l}=t,s=ka(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...s),a.classList.add(...e),t.emitContainerClasses()}function Ca(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Pa={addClasses:Ia,removeClasses:Ca};function Oa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+o*2;t.isLocked=t.size>l}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var La={checkOverflow:Oa},mn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ma(t,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){Rt(e,o);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in l)){Rt(e,o);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Rt(e,o)}}const fn={eventsEmitter:Pl,update:Wl,translate:Yl,transition:Kl,slide:oa,loop:ra,grabCursor:ua,events:Sa,breakpoints:Ea,checkOverflow:La,classes:Pa},hn={};let An=class Qt{constructor(){let e,i;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=Rt({},i),e&&!i.el&&(i.el=e);const s=Nt();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(A=>{const f=Rt({},i,{el:A});d.push(new Qt(f))}),d}const c=this;c.__swiper__=!0,c.support=to(),c.device=io({userAgent:i.userAgent}),c.browser=kl(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:Ma(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=Rt({},mn,r);return c.params=Rt({},u,hn,i),c.originalParams=Rt({},c.params),c.passedParams=Rt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:o}=this,a=Yt(i,`.${o.slideClass}, swiper-slide`),l=Ai(a[0]);return Ai(e)-l}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:o}=e;e.slides=Yt(i,`.${o.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const o=this;e=Math.min(Math.max(e,0),1);const a=o.minTranslate(),s=(o.maxTranslate()-a)*e+a;o.translateTo(s,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const a=e.getSlideClasses(o);i.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=o;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let A=l[u]?Math.ceil(l[u].swiperSlideSize):0,f;for(let p=u+1;p<l.length;p+=1)l[p]&&!f&&(A+=Math.ceil(l[p].swiperSlideSize),d+=1,A>r&&(f=!0));for(let p=u-1;p>=0;p-=1)l[p]&&!f&&(A+=l[p].swiperSlideSize,d+=1,A>r&&(f=!0))}else if(e==="current")for(let A=u+1;A<l.length;A+=1)(i?s[A]+c[A]-s[u]<r:s[A]-s[u]<r)&&(d+=1);else for(let A=u-1;A>=0;A-=1)s[u]-s[A]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Wi(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const s=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(s.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||a()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):Yt(o,a())[0];return!s&&i.params.createElements&&(s=vi("div",i.params.wrapperClass),o.append(s),Yt(o,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:o,wrapperEl:s,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:s,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||ni(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||ni(o,"direction")==="rtl"),wrongRTL:ni(s,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?Wi(i,l):l.addEventListener("load",s=>{Wi(i,s.target)})}),pn(i),i.initialized=!0,pn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:a,el:l,wrapperEl:s,slides:c}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(r=>{o.off(r)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Al(o)),o.destroyed=!0),null}static extendDefaults(e){Rt(hn,e)}static get extendedDefaults(){return hn}static get defaults(){return mn}static installModule(e){Qt.prototype.__modules__||(Qt.prototype.__modules__=[]);const i=Qt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Qt.installModule(i)),Qt):(Qt.installModule(e),Qt)}};Object.keys(fn).forEach(t=>{Object.keys(fn[t]).forEach(e=>{An.prototype[e]=fn[t][e]})}),An.use([Il,Cl]);const co=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function si(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function pi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:si(e[o])&&si(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:pi(t[o],e[o]):t[o]=e[o]})}function uo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function vo(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function po(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function mo(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function ja(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Na(t){let{swiper:e,slides:i,passedParams:o,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:d,pagination:A,navigation:f,scrollbar:p,virtual:b,thumbs:m}=e;let S,v,g,h,w,C,P,D;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),a.includes("controller")&&o.controller&&o.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||r)&&(d.pagination||d.pagination===!1)&&A&&!A.el&&(g=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(h=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||s)&&(o.navigation.nextEl||l)&&(d.navigation||d.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const M=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),d[x].prevEl=void 0,d[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),d[x].el=void 0,e[x].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!o.loop?C=!0:!d.loop&&o.loop?P=!0:D=!0),u.forEach(x=>{if(si(d[x])&&si(o[x]))Object.assign(d[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&M(x);else{const T=o[x];(T===!0||T===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?T===!1&&M(x):d[x]=o[x]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&b&&d.virtual.enabled?(b.slides=i,b.update(!0)):a.includes("virtual")&&b&&d.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),a.includes("children")&&i&&d.loop&&(D=!0),S&&m.init()&&m.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),A.init(),A.render(),A.update()),h&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),p.init(),p.updateSize(),p.setTranslate()),w&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),l&&(d.navigation.nextEl=l),s&&(d.navigation.prevEl=s),f.init(),f.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(C||D)&&e.loopDestroy(),(P||D)&&e.loopCreate(),e.update()}function Ra(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},a={};pi(i,mn),i._emitClasses=!0,i.init=!1;const l={},s=co.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?si(t[r])?(i[r]={},a[r]={},pi(i[r],t[r]),pi(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?o[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:l[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:l,events:o}}function Da(t,e){let{el:i,nextEl:o,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:c}=t;uo(e)&&o&&a&&(c.params.navigation.nextEl=o,c.originalParams.navigation.nextEl=o,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),vo(e)&&l&&(c.params.pagination.el=l,c.originalParams.pagination.el=l),po(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Va(t,e,i,o,a){const l=[];if(!e)return l;const s=r=>{l.indexOf(r)<0&&l.push(r)};if(i&&o){const r=o.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),o.length!==i.length&&s("children")}return co.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(si(t[r])&&si(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(A=>{t[r][A]!==e[r][A]&&s(r)}),d.forEach(A=>{t[r][A]!==e[r][A]&&s(r)}))}else t[r]!==e[r]&&s(r)}),l}const Ba=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function zi(){return zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},zi.apply(this,arguments)}function fo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ho(t){const e=[];return n.Children.toArray(t).forEach(i=>{fo(i)?e.push(i):i.props&&i.props.children&&ho(i.props.children).forEach(o=>e.push(o))}),e}function Fa(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(fo(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const a=ho(o.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Wa(t,e,i){if(!i)return null;const o=d=>{let A=d;return d<0?A=e.length+d:A>=e.length&&(A=A-e.length),A},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=l&&d<=s&&u.push(e[o(d)]);return u.map((d,A)=>n.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${A}`}))}function bi(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const bn=n.createContext(null),gi=()=>n.useContext(bn),za=n.createContext(null),Zt=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:a="div",children:l,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=n.useState("swiper"),[A,f]=n.useState(null),[p,b]=n.useState(!1),m=n.useRef(!1),S=n.useRef(null),v=n.useRef(null),g=n.useRef(null),h=n.useRef(null),w=n.useRef(null),C=n.useRef(null),P=n.useRef(null),D=n.useRef(null),{params:M,passedParams:x,rest:T,events:V}=Ra(c),{slides:k,slots:j}=Fa(l),E=()=>{b(!p)};Object.assign(M.on,{_containerClasses(O,I){d(I)}});const y=()=>{Object.assign(M.on,V),r=!0;const O={...M};if(delete O.wrapperClass,v.current=new An(O),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=k;const I={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};pi(v.current.params.virtual,I),pi(v.current.originalParams.virtual,I)}};S.current||y(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{r||!V||!v.current||Object.keys(V).forEach(O=>{v.current.on(O,V[O])})},R=()=>{!V||!v.current||Object.keys(V).forEach(O=>{v.current.off(O,V[O])})};n.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),n.useEffect(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),bi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&y(),Da({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:D.current,swiper:v.current},M),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),bi(()=>{F();const O=Va(x,g.current,k,h.current,I=>I.key);return g.current=x,h.current=k,O.length&&v.current&&!v.current.destroyed&&Na({swiper:v.current,slides:k,passedParams:x,changedParams:O,nextEl:w.current,prevEl:C.current,scrollbarEl:D.current,paginationEl:P.current}),()=>{R()}}),bi(()=>{Ba(v.current)},[A]);function B(){return M.virtual?Wa(v.current,k,A):k.map((O,I)=>n.cloneElement(O,{swiper:v.current,swiperSlideIndex:I}))}return n.createElement(o,zi({ref:S,className:mo(`${u}${i?` ${i}`:""}`)},T),n.createElement(za.Provider,{value:v.current},j["container-start"],n.createElement(a,{className:ja(M.wrapperClass)},j["wrapper-start"],B(),j["wrapper-end"]),uo(M)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:C,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),po(M)&&n.createElement("div",{ref:D,className:"swiper-scrollbar"}),vo(M)&&n.createElement("div",{ref:P,className:"swiper-pagination"}),j["container-end"]))});Zt.displayName="Swiper";const Dt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:a="",swiper:l,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const A=n.useRef(null),[f,p]=n.useState("swiper-slide"),[b,m]=n.useState(!1);function S(w,C,P){C===A.current&&p(P)}bi(()=>{if(typeof u<"u"&&(A.current.swiperSlideIndex=u),e&&(e.current=A.current),!(!A.current||!l)){if(l.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),bi(()=>{l&&A.current&&!l.destroyed&&p(l.getSlideClasses(A.current))},[l]);const v={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},g=()=>typeof o=="function"?o(v):o,h=()=>{m(!0)};return n.createElement(i,zi({ref:A,className:mo(`${f}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:h},d),s&&n.createElement(bn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},g(),c&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(bn.Provider,{value:v},g(),c&&!b&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Dt.displayName="SwiperSlide";function gn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Nt(),s=Ct();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:A}=e;let f=d;f.originalEvent&&(f=f.originalEvent);const p=f.keyCode||f.charCode,b=e.params.keyboard.pageUpDown,m=b&&p===33,S=b&&p===34,v=p===37,g=p===39,h=p===38,w=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&w||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&h||m))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(m||S||v||g||h||w)){let C=!1;if(Fi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Fi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,D=P.clientWidth,M=P.clientHeight,x=s.innerWidth,T=s.innerHeight,V=eo(P);A&&(V.left-=P.scrollLeft);const k=[[V.left,V.top],[V.left+D,V.top],[V.left,V.top+M],[V.left+D,V.top+M]];for(let j=0;j<k.length;j+=1){const E=k[j];if(E[0]>=0&&E[0]<=x&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((m||S||v||g)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((S||g)&&!A||(m||v)&&A)&&e.slideNext(),((m||v)&&!A||(S||g)&&A)&&e.slidePrev()):((m||S||h||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(S||w)&&e.slideNext(),(m||h)&&e.slidePrev()),a("keyPress",p)}}function r(){e.keyboard.enabled||(l.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(l.removeEventListener("keydown",c),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&r()}),o("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Hi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Ct();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,c=Wt(),r;const u=[];function d(h){let D=0,M=0,x=0,T=0;return"detail"in h&&(M=h.detail),"wheelDelta"in h&&(M=-h.wheelDelta/120),"wheelDeltaY"in h&&(M=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(D=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(D=M,M=0),x=D*10,T=M*10,"deltaY"in h&&(T=h.deltaY),"deltaX"in h&&(x=h.deltaX),h.shiftKey&&!x&&(x=T,T=0),(x||T)&&h.deltaMode&&(h.deltaMode===1?(x*=40,T*=40):(x*=800,T*=800)),x&&!D&&(D=x<1?-1:1),T&&!M&&(M=T<1?-1:1),{spinX:D,spinY:M,pixelX:x,pixelY:T}}function A(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function p(h){return e.params.mousewheel.thresholdDelta&&h.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Wt()-c<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&Wt()-c<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",h.raw)),c=new l.Date().getTime(),!1)}function b(h){const w=e.params.mousewheel;if(h.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function m(h){let w=h,C=!0;if(!e.enabled||h.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let D=e.el;e.params.mousewheel.eventsTarget!=="container"&&(D=document.querySelector(e.params.mousewheel.eventsTarget));const M=D&&D.contains(w.target);if(!e.mouseEntered&&!M&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let x=0;const T=e.rtlTranslate?-1:1,V=d(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(V.pixelX)>Math.abs(V.pixelY))x=-V.pixelX*T;else return!0;else if(Math.abs(V.pixelY)>Math.abs(V.pixelX))x=-V.pixelY;else return!0;else x=Math.abs(V.pixelX)>Math.abs(V.pixelY)?-V.pixelX*T:-V.pixelY;if(x===0)return!0;P.invert&&(x=-x);let k=e.getTranslate()+x*P.sensitivity;if(k>=e.minTranslate()&&(k=e.minTranslate()),k<=e.maxTranslate()&&(k=e.maxTranslate()),C=e.params.loop?!0:!(k===e.minTranslate()||k===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const j={time:Wt(),delta:Math.abs(x),direction:Math.sign(x),raw:h};u.length>=2&&u.shift();const E=u.length?u[u.length-1]:void 0;if(u.push(j),E?(j.direction!==E.direction||j.delta>E.delta||j.time>E.time+150)&&p(j):p(j),b(j))return!0}else{const j={time:Wt(),delta:Math.abs(x),direction:Math.sign(x)},E=r&&j.time<r.time+500&&j.delta<=r.delta&&j.direction===r.direction;if(!E){r=void 0;let y=e.getTranslate()+x*P.sensitivity;const F=e.isBeginning,R=e.isEnd;if(y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),e.setTransition(0),e.setTranslate(y),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!R&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,O=u[0];if(u.push(j),B&&(j.delta>B.delta||j.direction!==B.direction))u.splice(0);else if(u.length>=15&&j.time-O.time<500&&O.delta-j.delta>=1&&j.delta<=6){const I=x>0?.8:.2;r=j,u.splice(0),s=ui(()=>{e.slideToClosest(e.params.speed,!0,void 0,I)},0)}s||(s=ui(()=>{r=j,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||a("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(y===e.minTranslate()||y===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function S(h){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[h]("mouseenter",A),w[h]("mouseleave",f),w[h]("wheel",m)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),o("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function yn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(a=>{if(!i[a]&&i.auto===!0){let l=Yt(t.el,`.${o[a]}`)[0];l||(l=vi("div",o[a]),l.className=o[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function wn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function l(b){let m;return b&&typeof b=="string"&&e.isElement&&(m=e.el.querySelector(b),m)?m:(b&&(typeof b=="string"&&(m=[...document.querySelectorAll(b)]),e.params.uniqueNavElements&&typeof b=="string"&&m&&m.length>1&&e.el.querySelectorAll(b).length===1?m=e.el.querySelector(b):m&&m.length===1&&(m=m[0])),b&&!m?b:m)}function s(b,m){const S=e.params.navigation;b=Ye(b),b.forEach(v=>{v&&(v.classList[m?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=m),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function c(){const{nextEl:b,prevEl:m}=e.navigation;if(e.params.loop){s(m,!1),s(b,!1);return}s(m,e.isBeginning&&!e.params.rewind),s(b,e.isEnd&&!e.params.rewind)}function r(b){b.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(b){b.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const b=e.params.navigation;if(e.params.navigation=yn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(b.nextEl||b.prevEl))return;let m=l(b.nextEl),S=l(b.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:S}),m=Ye(m),S=Ye(S);const v=(g,h)=>{g&&g.addEventListener("click",h==="next"?u:r),!e.enabled&&g&&g.classList.add(...b.lockClass.split(" "))};m.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function A(){let{nextEl:b,prevEl:m}=e.navigation;b=Ye(b),m=Ye(m);const S=(v,g)=>{v.removeEventListener("click",g==="next"?u:r),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};b.forEach(v=>S(v,"next")),m.forEach(v=>S(v,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?p():(d(),c())}),o("toEdge fromEdge lock unlock",()=>{c()}),o("destroy",()=>{A()}),o("enable disable",()=>{let{nextEl:b,prevEl:m}=e.navigation;if(b=Ye(b),m=Ye(m),e.enabled){c();return}[...b,...m].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),o("click",(b,m)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Ye(S),v=Ye(v);const g=m.target;let h=v.includes(g)||S.includes(g);if(e.isElement&&!h){const w=m.path||m.composedPath&&m.composedPath();w&&(h=w.find(C=>S.includes(C)||v.includes(C)))}if(e.params.navigation.hideOnClick&&!h){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let w;S.length?w=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(w=v[0].classList.contains(e.params.navigation.hiddenClass)),a(w===!0?"navigationShow":"navigationHide"),[...S,...v].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),A()};Object.assign(e.navigation,{enable:f,disable:p,update:c,init:d,destroy:A})}function Kt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function yi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(v,g){const{bulletActiveClass:h}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${h}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${h}-${g}-${g}`)))}function d(v){const g=v.target.closest(Kt(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const h=Ai(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;e.slideToLoop(h)}else e.slideTo(h)}function A(){const v=e.rtl,g=e.params.pagination;if(r())return;let h=e.pagination.el;h=Ye(h);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,D=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const M=e.pagination.bullets;let x,T,V;if(g.dynamicBullets&&(s=sn(M[0],e.isHorizontal()?"width":"height",!0),h.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${s*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(c+=w-(C||0),c>g.dynamicMainBullets-1?c=g.dynamicMainBullets-1:c<0&&(c=0)),x=Math.max(w-c,0),T=x+(Math.min(M.length,g.dynamicMainBullets)-1),V=(T+x)/2),M.forEach(k=>{const j=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();k.classList.remove(...j)}),h.length>1)M.forEach(k=>{const j=Ai(k);j===w?k.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),g.dynamicBullets&&(j>=x&&j<=T&&k.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),j===x&&u(k,"prev"),j===T&&u(k,"next"))});else{const k=M[w];if(k&&k.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&M.forEach((j,E)=>{j.setAttribute("part",E===w?"bullet-active":"bullet")}),g.dynamicBullets){const j=M[x],E=M[T];for(let y=x;y<=T;y+=1)M[y]&&M[y].classList.add(...`${g.bulletActiveClass}-main`.split(" "));u(j,"prev"),u(E,"next")}}if(g.dynamicBullets){const k=Math.min(M.length,g.dynamicMainBullets+4),j=(s*k-s)/2-V*s,E=v?"right":"left";M.forEach(y=>{y.style[e.isHorizontal()?E:"top"]=`${j}px`})}}h.forEach((M,x)=>{if(g.type==="fraction"&&(M.querySelectorAll(Kt(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(w+1)}),M.querySelectorAll(Kt(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(D)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const V=(w+1)/D;let k=1,j=1;T==="horizontal"?k=V:j=V,M.querySelectorAll(Kt(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${j})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(M.innerHTML=g.renderCustom(e,w+1,D),x===0&&a("paginationRender",M)):(x===0&&a("paginationRender",M),a("paginationUpdate",M)),e.params.watchOverflow&&e.enabled&&M.classList[e.isLocked?"add":"remove"](g.lockClass)})}function f(){const v=e.params.pagination;if(r())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let h=e.pagination.el;h=Ye(h);let w="";if(v.type==="bullets"){let C=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>g&&(C=g);for(let P=0;P<C;P+=1)v.renderBullet?w+=v.renderBullet.call(e,P,v.bulletClass):w+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?w=v.renderFraction.call(e,v.currentClass,v.totalClass):w=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?w=v.renderProgressbar.call(e,v.progressbarFillClass):w=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],h.forEach(C=>{v.type!=="custom"&&(C.innerHTML=w||""),v.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(Kt(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",h[0])}function p(){e.params.pagination=yn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.filter(h=>Fi(h,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Ye(g),g.forEach(h=>{v.type==="bullets"&&v.clickable&&h.classList.add(...(v.clickableClass||"").split(" ")),h.classList.add(v.modifierClass+v.type),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(h.classList.add(`${v.modifierClass}${v.type}-dynamic`),c=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&h.classList.add(v.progressbarOppositeClass),v.clickable&&h.addEventListener("click",d),e.enabled||h.classList.add(v.lockClass)}))}function b(){const v=e.params.pagination;if(r())return;let g=e.pagination.el;g&&(g=Ye(g),g.forEach(h=>{h.classList.remove(v.hiddenClass),h.classList.remove(v.modifierClass+v.type),h.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(h.classList.remove(...(v.clickableClass||"").split(" ")),h.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...v.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Ye(g),g.forEach(h=>{h.classList.remove(v.horizontalClass,v.verticalClass),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?S():(p(),f(),A())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&A()}),o("snapIndexChange",()=>{A()}),o("snapGridLengthChange",()=>{f(),A()}),o("destroy",()=>{b()}),o("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{A()}),o("click",(v,g)=>{const h=g.target,w=Ye(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);a(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),A()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Ye(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:m,disable:S,render:f,update:A,init:p,destroy:b})}function Ha(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Nt();let s=!1,c=null,r=null,u,d,A,f;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k,rtlTranslate:j}=e,{dragEl:E,el:y}=k,F=e.params.scrollbar,R=e.params.loop?e.progressLoop:e.progress;let B=d,O=(A-d)*R;j?(O=-O,O>0?(B=d-O,O=0):-O+d>A&&(B=A+O)):O<0?(B=d+O,O=0):O+d>A&&(B=A-O),e.isHorizontal()?(E.style.transform=`translate3d(${O}px, 0, 0)`,E.style.width=`${B}px`):(E.style.transform=`translate3d(0px, ${O}px, 0)`,E.style.height=`${B}px`),F.hide&&(clearTimeout(c),y.style.opacity=1,c=setTimeout(()=>{y.style.opacity=0,y.style.transitionDuration="400ms"},1e3))}function b(k){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${k}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:k}=e,{dragEl:j,el:E}=k;j.style.width="",j.style.height="",A=e.isHorizontal()?E.offsetWidth:E.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=A*f:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${d}px`:j.style.height=`${d}px`,f>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&k.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(k){return e.isHorizontal()?k.clientX:k.clientY}function v(k){const{scrollbar:j,rtlTranslate:E}=e,{el:y}=j;let F;F=(S(k)-eo(y)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(A-d),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const R=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(R),e.setTranslate(R),e.updateActiveIndex(),e.updateSlidesClasses()}function g(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F,dragEl:R}=E;s=!0,u=k.target===R?S(k)-k.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,k.preventDefault(),k.stopPropagation(),y.style.transitionDuration="100ms",R.style.transitionDuration="100ms",v(k),clearTimeout(r),F.style.transitionDuration="0ms",j.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",k)}function h(k){const{scrollbar:j,wrapperEl:E}=e,{el:y,dragEl:F}=j;s&&(k.preventDefault&&k.cancelable?k.preventDefault():k.returnValue=!1,v(k),E.style.transitionDuration="0ms",y.style.transitionDuration="0ms",F.style.transitionDuration="0ms",a("scrollbarDragMove",k))}function w(k){const j=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F}=E;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),j.hide&&(clearTimeout(r),r=ui(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",k),j.snapOnRelease&&e.slideToClosest())}function C(k){const{scrollbar:j,params:E}=e,y=j.el;if(!y)return;const F=y,R=E.passiveListeners?{passive:!1,capture:!1}:!1,B=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const O=k==="on"?"addEventListener":"removeEventListener";F[O]("pointerdown",g,R),l[O]("pointermove",h,R),l[O]("pointerup",w,B)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function D(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function M(){const{scrollbar:k,el:j}=e;e.params.scrollbar=yn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let y;if(typeof E.el=="string"&&e.isElement&&(y=e.el.querySelector(E.el)),!y&&typeof E.el=="string"){if(y=l.querySelectorAll(E.el),!y.length)return}else y||(y=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&y.length>1&&j.querySelectorAll(E.el).length===1&&(y=j.querySelector(E.el)),y.length>0&&(y=y[0]),y.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;y&&(F=y.querySelector(Kt(e.params.scrollbar.dragClass)),F||(F=vi("div",e.params.scrollbar.dragClass),y.append(F))),Object.assign(k,{el:y,dragEl:F}),E.draggable&&P(),y&&y.classList[e.enabled?"remove":"add"](...ii(e.params.scrollbar.lockClass))}function x(){const k=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...ii(e.isHorizontal()?k.horizontalClass:k.verticalClass)),D()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const k=e.params.scrollbar;let{el:j}=e.scrollbar;j=Ye(j),j.forEach(E=>{E.classList.remove(k.horizontalClass,k.verticalClass),E.classList.add(e.isHorizontal()?k.horizontalClass:k.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?V():(M(),m(),p())}),o("update resize observerUpdate lock unlock changeDirection",()=>{m()}),o("setTranslate",()=>{p()}),o("setTransition",(k,j)=>{b(j)}),o("enable disable",()=>{const{el:k}=e.scrollbar;k&&k.classList[e.enabled?"remove":"add"](...ii(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...ii(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ii(e.params.scrollbar.scrollbarDisabledClass)),M(),m(),p()},V=()=>{e.el.classList.add(...ii(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ii(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:V,updateSize:m,setTranslate:p,init:M,destroy:x})}function Sn(t){let{swiper:e,extendParams:i,on:o}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null,l,s,c=new Date().getTime();function r(R){const B=a;B.length!==0&&(B.innerHTML="",B.innerHTML=R)}function u(R){R===void 0&&(R=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(R).replace(/x/g,B)}function d(R){R=Ye(R),R.forEach(B=>{B.setAttribute("tabIndex","0")})}function A(R){R=Ye(R),R.forEach(B=>{B.setAttribute("tabIndex","-1")})}function f(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("role",B)})}function p(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-roledescription",B)})}function b(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-controls",B)})}function m(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-label",B)})}function S(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("id",B)})}function v(R,B){R=Ye(R),R.forEach(O=>{O.setAttribute("aria-live",B)})}function g(R){R=Ye(R),R.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function h(R){R=Ye(R),R.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function w(R){if(R.keyCode!==13&&R.keyCode!==32)return;const B=e.params.a11y,O=R.target;if(!(e.pagination&&e.pagination.el&&(O===e.pagination.el||e.pagination.el.contains(R.target))&&!R.target.matches(Kt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const I=Ye(e.navigation.prevEl);Ye(e.navigation.nextEl).includes(O)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(B.lastSlideMessage):r(B.nextSlideMessage)),I.includes(O)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(B.firstSlideMessage):r(B.prevSlideMessage))}e.pagination&&O.matches(Kt(e.params.pagination.bulletClass))&&O.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:R,prevEl:B}=e.navigation;B&&(e.isBeginning?(g(B),A(B)):(h(B),d(B))),R&&(e.isEnd?(g(R),A(R)):(h(R),d(R)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function D(){return P()&&e.params.pagination.clickable}function M(){const R=e.params.a11y;P()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(d(B),e.params.pagination.renderBullet||(f(B,"button"),m(B,R.paginationBulletMessage.replace(/\{\{index\}\}/,Ai(B)+1)))),B.matches(Kt(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const x=(R,B,O)=>{d(R),R.tagName!=="BUTTON"&&(f(R,"button"),R.addEventListener("keydown",w)),m(R,O),b(R,B)},T=R=>{s&&s!==R.target&&!s.contains(R.target)&&(l=!0),e.a11y.clicked=!0},V=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},k=R=>{c=new Date().getTime()},j=R=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const B=R.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;s=B;const O=e.slides.indexOf(B)===e.activeIndex,I=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);O||I||R.sourceCapabilities&&R.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),l=!1)}))},E=()=>{const R=e.params.a11y;R.itemRoleDescriptionMessage&&p(e.slides,R.itemRoleDescriptionMessage),R.slideRole&&f(e.slides,R.slideRole);const B=e.slides.length;R.slideLabelMessage&&e.slides.forEach((O,I)=>{const N=e.params.loop?parseInt(O.getAttribute("data-swiper-slide-index"),10):I,X=R.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,B);m(O,X)})},y=()=>{const R=e.params.a11y;e.el.append(a);const B=e.el;R.containerRoleDescriptionMessage&&p(B,R.containerRoleDescriptionMessage),R.containerMessage&&m(B,R.containerMessage);const O=e.wrapperEl,I=R.id||O.getAttribute("id")||`swiper-wrapper-${u(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(O,I),v(O,N),E();let{nextEl:X,prevEl:U}=e.navigation?e.navigation:{};X=Ye(X),U=Ye(U),X&&X.forEach(Q=>x(Q,I,R.nextSlideMessage)),U&&U.forEach(Q=>x(Q,I,R.prevSlideMessage)),D()&&Ye(e.pagination.el).forEach(me=>{me.addEventListener("keydown",w)}),Nt().addEventListener("visibilitychange",k),e.el.addEventListener("focus",j,!0),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",V,!0)};function F(){a&&a.remove();let{nextEl:R,prevEl:B}=e.navigation?e.navigation:{};R=Ye(R),B=Ye(B),R&&R.forEach(I=>I.removeEventListener("keydown",w)),B&&B.forEach(I=>I.removeEventListener("keydown",w)),D()&&Ye(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),Nt().removeEventListener("visibilitychange",k),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",V,!0))}o("beforeInit",()=>{a=vi("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&y()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&M()}),o("destroy",()=>{e.params.a11y.enabled&&F()})}function wi(t){let{swiper:e,extendParams:i,on:o,emit:a,params:l}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,c,r=l&&l.autoplay?l.autoplay.delay:3e3,u=l&&l.autoplay?l.autoplay.delay:3e3,d,A=new Date().getTime(),f,p,b,m,S,v,g;function h(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",h),!(g||B.detail&&B.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=d,f=!1);const B=e.autoplay.paused?d:A+u-new Date().getTime();e.autoplay.timeLeft=B,a("autoplayTimeLeft",B,B/r),c=requestAnimationFrame(()=>{w()})},C=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(I=>I.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},P=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),w();let O=typeof B>"u"?e.params.autoplay.delay:B;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const I=C();!Number.isNaN(I)&&I>0&&typeof B>"u"&&(O=I,r=I,u=I),d=O;const N=e.params.speed,X=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),a("autoplay")),e.params.cssMode&&(A=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return O>0?(clearTimeout(s),s=setTimeout(()=>{X()},O)):requestAnimationFrame(()=>{X()}),O},D=()=>{A=new Date().getTime(),e.autoplay.running=!0,P(),a("autoplayStart")},M=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},x=(B,O)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),B||(v=!0);const I=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",h):T()};if(e.autoplay.paused=!0,O){S&&(d=e.params.autoplay.delay),S=!1,I();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-A),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),I())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(A=new Date().getTime(),v?(v=!1,P(d)):P(),e.autoplay.paused=!1,a("autoplayResume"))},V=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Nt();B.visibilityState==="hidden"&&(v=!0,x(!0)),B.visibilityState==="visible"&&T()},k=B=>{B.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=B=>{B.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",j))},y=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",j))},F=()=>{Nt().addEventListener("visibilitychange",V)},R=()=>{Nt().removeEventListener("visibilitychange",V)};o("init",()=>{e.params.autoplay.enabled&&(E(),F(),D())}),o("destroy",()=>{y(),R(),e.autoplay.running&&M()}),o("_freeModeStaticRelease",()=>{(b||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?M():x(!0,!0)}),o("beforeTransitionStart",(B,O,I)=>{e.destroyed||!e.autoplay.running||(I||!e.params.autoplay.disableOnInteraction?x(!0,!0):M())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){M();return}p=!0,b=!1,v=!1,m=setTimeout(()=>{v=!0,b=!0,x(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(s),e.params.autoplay.disableOnInteraction){b=!1,p=!1;return}b&&e.params.cssMode&&T(),b=!1,p=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:D,stop:M,pause:x,resume:T})}function Ua(t){let{swiper:e,extendParams:i,emit:o,once:a}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Wt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:A,rtlTranslate:f,snapGrid:p,touchEventsData:b}=e,S=Wt()-b.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(b.velocities.length>1){const M=b.velocities.pop(),x=b.velocities.pop(),T=M.position-x.position,V=M.time-x.time;e.velocity=T/V,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(V>150||Wt()-M.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,b.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let h=e.translate+g;f&&(h=-h);let w=!1,C;const P=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let D;if(h<e.maxTranslate())d.freeMode.momentumBounce?(h+e.maxTranslate()<-P&&(h=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.maxTranslate(),d.loop&&d.centeredSlides&&(D=!0);else if(h>e.minTranslate())d.freeMode.momentumBounce?(h-e.minTranslate()>P&&(h=e.minTranslate()+P),C=e.minTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.minTranslate(),d.loop&&d.centeredSlides&&(D=!0);else if(d.freeMode.sticky){let M;for(let x=0;x<p.length;x+=1)if(p[x]>-h){M=x;break}Math.abs(p[M]-h)<Math.abs(p[M-1]-h)||e.swipeDirection==="next"?h=p[M]:h=p[M-1],h=-h}if(D&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?v=Math.abs((-h-e.translate)/e.velocity):v=Math.abs((h-e.translate)/e.velocity),d.freeMode.sticky){const M=Math.abs((f?-h:h)-e.translate),x=e.slidesSizesGrid[e.activeIndex];M<x?v=d.speed:M<2*x?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating=!0,an(A,()=>{!e||e.destroyed||!b.allowMomentumBounce||(o("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(C),an(A,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(h),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,an(A,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(h),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&o("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:s,onTouchEnd:c}})}const Xa=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const a=n.useRef(),{popupDetailData:l}=ze();return n.useEffect(()=>{var s,c;o&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=l?.multiCheckIndex)!==null&&c!==void 0?c:0))},[l,o]),n.createElement(Zt,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Ua,Ha,Hi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Si=n.memo(Xa);const qa=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:a,className:l,loading:s,alt:c="image"}=t,[r,u]=n.useState(i),d=n.useRef(null),[A,f]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&u(p)}})),n.useEffect(()=>{i&&u(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!A&&d.current&&(d.current.src="",d.current.src=i)};return xt.on(bt.PAGE_DID_SHOW,p),()=>{xt.off(bt.PAGE_DID_SHOW,p)}},[i,A]),n.createElement(n.Fragment,null,!A&&!r&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:r}),n.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{f(!0),o?.(p.target)},alt:c})):n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{f(!0),o?.(p.target)},alt:c}))});var Pt=n.memo(qa);const Ya=({products:t,data:e,defImg:i,style:o,onCLick:a,popupDetailData:l,check:s})=>{var c;const{productView:r}=Lt(),{popupCurTimeRef:u}=ze(),d=(A,f)=>{if(s===f)return;const p=t?.[s];r(l,p,p?.bindCta,u.current,l?.index),a?.(f)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(Si,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(c=l?t:[0,1,2,3])===null||c===void 0?void 0:c.map((A,f)=>{var p,b,m;return n.createElement(n.Fragment,null,A?.bindCta?n.createElement(Dt,{className:Re.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{d(A,f)},key:f},n.createElement(Pt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(m=(p=A?.cover)!==null&&p!==void 0?p:(b=A?.homePage)===null||b===void 0?void 0:b[0])!==null&&m!==void 0?m:i})):null)})))};var Ao=n.memo(Ya);function bo(){const[t,e]=n.useState(0),[i,o]=n.useState(0),a=()=>{if(typeof window>"u")return 0;let s=window.innerHeight;return window.visualViewport&&(s=window.visualViewport.height),(s<=0||s>window.screen.height)&&(s=window.innerHeight),s<=0&&(s=document.documentElement.clientHeight),s},l=n.useCallback(()=>{var s;const c=a(),r=(s=window.screen)===null||s===void 0?void 0:s.height,u=navigator.userAgent,d=/Instagram/i.test(u),A=/FBAV|FBAN|FBSN/i.test(u);if(!r||c<=0||!d&&!A){e(c);return}const f=c/r,p=.9,b=r>=900?r*.8:r*.79,m=f>=p&&f!==1,S=m?Math.round(b):c,v=r-Math.round(b);if(m){const g=document.querySelector("#onetrust-banner-sdk");g&&(g.style.bottom=`${v}px`);const h=document.createElement("style");h.id="onetrust-pc-sdk",h.setAttribute("type","text/css"),document.head.appendChild(h);const w=`
|
|
2
2
|
#onetrust-pc-sdk {
|
|
3
3
|
height: ${S}px !important;
|
|
4
4
|
}
|
|
5
5
|
#onetrust-pc-sdk #ot-pc-content{
|
|
6
6
|
bottom: ${v}px !important;
|
|
7
7
|
}
|
|
8
|
-
`;h.textContent=w}if(o(m?v:0),"fundebug"in window){const g={ratio:f,h:b,finalHeight:S,visibleHeight:c,screenHeight:r,isInstagram:d,isFacebook:A,ua:u};window?.fundebug.notify("Collect_Info","resize",{metaData:{systemInfo:g,otherInfo:{}}})}e(S)},[a]);return n.useEffect(()=>{l();const s=["resize","orientationchange","load","DOMContentLoaded"];return s.forEach(c=>{window.addEventListener(c,l)}),window.visualViewport&&(window.visualViewport.addEventListener("resize",l),window.visualViewport.addEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.addEventListener("geometrychange",l),()=>{s.forEach(c=>{window.removeEventListener(c,l)}),window.visualViewport&&(window.visualViewport.removeEventListener("resize",l),window.visualViewport.removeEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.removeEventListener("geometrychange",l)}},[l]),{visibleHeight:t,bottomHeight:i}}const Ga="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",_a=({visible:t,onClose:e,children:i,modalStyle:o,padding:a,popup:l,schema:s,fullHeight:c,isFullScreen:r=!1,openState:u})=>{var d,A,f,p,b,m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R;const{visibleHeight:B,bottomHeight:O}=bo(),I=n.useRef(null),N=n.useRef(null),X=n.useRef(null),U=n.useRef(null),q=n.useRef(null),Q=c||B,me=Q*.2,re=r?Q:Q*.8,[K,Te]=n.useState(me),[Pe,Be]=n.useState(!1),ue=n.useRef(null),{globalConfig:de,popupDetailData:_e}=ze(),{schema:He,popup:Ue}=ti(),[Ge,nt]=n.useState(15);n.useEffect(()=>{const ee=document.getElementById("sxp-render"),_=document.getElementById("pb-modal");_?ue.current=_:(ue.current=document.createElement("div"),ue.current.setAttribute("id","pb-modal"),ee?.appendChild(ue.current))},[]);const Ze=n.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),ke=n.useMemo(()=>{var ee,_,le;const we=s??He;return(le=(_=(ee=we?.sxpPageConf)===null||ee===void 0?void 0:ee.globalConfig)===null||_===void 0?void 0:_.popupList)===null||le===void 0?void 0:le.find($=>$?.id===l?.id)},[l,s,He]),Qe=n.useMemo(()=>{var ee,_;return((_=(ee=ke?.item)===null||ee===void 0?void 0:ee.event)===null||_===void 0?void 0:_.isScrollFullScreen)||!1},[ke]);n.useEffect(()=>{Ze?Be(!0):setTimeout(()=>{Be(!1),Te(me)},l?.duration)},[Ze,l]);const Tt=n.useCallback(()=>i,[Ue,u,de,s]);if(n.useEffect(()=>{const ee=_=>{const le=_?.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),we=le?.[0],ye=le?.[le?.length-1],$=9;_.addEventListener("keydown",function(W){(W.key==="Escape"||W.key==="Esc")&&(De(),W.preventDefault()),(W.key==="Tab"||W.keyCode===$)&&(W.shiftKey?document?.activeElement===we&&(ye?.focus(),W.preventDefault()):document?.activeElement===ye&&(we?.focus(),W.preventDefault()))}),we?.focus()};return q?.current&&ee(q?.current),()=>{var _;(_=q?.current)===null||_===void 0||_.removeEventListener("keydown",ee)}},[q,Pe,Ue]),!ue.current)return null;const De=mt.debounce(()=>{e?.()},300),Fe=ee=>{I.current=ee.touches[0],N.current=ee.touches[0],X.current=!0},We=ee=>{requestAnimationFrame(()=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.scrollTop)===0){const le=ee.touches[0].clientY,we=ee.touches[0].clientX,ye=I.current.clientY-le;I.current=ee.touches[0];const $=le-N.current.clientY,W=we-N.current.clientX;if(Math.abs(W)>Math.abs($))return;const Ne=K-ye;Ne>0&&Te(Ne)}})},Z=ee=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.scrollTop)===0){const le=ee.changedTouches[0].clientY-N.current.clientY,we=ee.changedTouches[0].clientX-N.current.clientX;if(Math.abs(we)>Math.abs(le))return;const ye=N.current.clientY-I.current.clientY;ye>0?Te(0):K<me&&ye<0?Te(me):K>=me&&ye<0&&e?.()}X.current=!1};return Mn.createPortal(n.createElement(n.Fragment,null,Pe&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ze?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)",bottom:O+"px"},o),onClick:De},n.createElement("div",{style:{position:"relative",left:`${(p=(f=(A=(d=ke?.item)===null||d===void 0?void 0:d.props)===null||A===void 0?void 0:A.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&p!==void 0?p:0}px`,right:`${(v=(S=(m=(b=ke?.item)===null||b===void 0?void 0:b.props)===null||m===void 0?void 0:m.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${((C=(w=(h=(g=ke?.item)===null||g===void 0?void 0:g.props)===null||h===void 0?void 0:h.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0)+O}px`,overflow:"hidden",width:`calc(100% - ${((x=(M=(D=(P=ke?.item)===null||P===void 0?void 0:P.props)===null||D===void 0?void 0:D.popupBg)===null||M===void 0?void 0:M.horizontalMargin)!==null&&x!==void 0?x:0)*2}px)`,height:"100%"}},n.createElement("div",Object.assign({ref:q,className:`modal-container ${Ze?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=ke?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:a,animationDuration:((V=l?.duration)!==null&&V!==void 0?V:0)/1e3+"s"},Qe&&{transform:`translateY(${K}px)`}),{overflow:"hidden",borderRadius:`${(y=(E=(j=(k=ke?.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&y!==void 0?y:0}px`,zIndex:9}),onClick:ee=>{ee.stopPropagation(),ee.preventDefault()}},Qe&&{onTouchMove:We,onTouchStart:Fe,onTouchEnd:Z}),n.createElement("div",Object.assign({id:"modal-content",ref:U,style:{height:Qe?Q:re,overflow:Qe&&K<=0||!Qe?"auto":"hidden",zIndex:1}},((R=(F=ke?.item)===null||F===void 0?void 0:F.props)===null||R===void 0?void 0:R.enableFixedCloseButton)&&{onScroll:ee=>{var _;nt(15-((_=ee?.target)===null||_===void 0?void 0:_.scrollTop))}}),Tt()),n.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ge}},n.createElement("img",{src:de?.popupCloseIcon||Ga,alt:"close button",className:"modal-icon"})))))),ue.current)};var mi=n.memo(_a);const Za=({text:t,maxStr:e=108,style:i,className:o,onClick:a,foldText:l,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=n.useState(!1),[A,f]=n.useState(!1),p=i||{},{lineClamp:b}=p,m=it(p,["lineClamp"]),S=Number(b||2),v=n.useRef(null),g=n.useRef(null),h=n.useRef(),w=()=>{d(!u)},C=n.useCallback(()=>{!v.current||!g.current||!c||!t||u||requestAnimationFrame(()=>{if(!v.current)return;v.current.style.position="relative";const P=v.current.getBoundingClientRect().height,D=g.current.getBoundingClientRect().height,M=P>D+1;f(M),v.current.style.position="absolute"})},[c,t,u]);return n.useEffect(()=>{if(v.current)return h.current=new ResizeObserver(C),h.current.observe(v.current),C(),()=>{var P;(P=h.current)===null||P===void 0||P.disconnect()}},[C]),n.createElement("div",{className:o,style:Object.assign(Object.assign({},m),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},n.createElement("div",{ref:g,style:Object.assign(Object.assign({},!u&&c&&{WebkitLineClamp:S,lineClamp:S,textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical"}),{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content"}),dangerouslySetInnerHTML:{__html:Oe(t?.replace(/\n/g,"</br>"),m)}}),c&&n.createElement("div",{ref:v,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:Oe(t?.replace(/\n/g,"</br>"),m)}}),t&&c&&A&&n.createElement("button",{"aria-label":u?s||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??w,dangerouslySetInnerHTML:{__html:Oe(u?s||"show less":l||"show more",m)}}))};var xi=n.memo(Za);const Ka=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:o,file:a,src:l}=t;switch(i){case 2:return o||null;case 3:return l||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Ja=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Ti=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:o,style:a})=>{var l,s,c,r,u,d,A,f;let p="";if((!t?.currency||!t?.price)&&o)return null;let b=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof b!="number")return p;let m=i?.priceSymbol,S=t?.currency?(c=(s=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||s===void 0?void 0:s.toUpperCase())!==null&&c!==void 0?c:"":"$";const v=e===void 0||e;let g=b?.toString();m?.showTwoDecimalPoint&&(g=b?.toFixed(2));let h=(r=g?.indexOf("."))!==null&&r!==void 0?r:-1;if(v){p=(u=b?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let w=0,C=h??p?.length;m?.millesimalSymbol==="."?p=p?.replace(/\,/g,function(P,D){return D>=w&&D<C?".":P}):m?.millesimalSymbol===" "&&(p=p?.replace(","," "))}else p=`${m?.showTwoDecimalPoint?b?.toFixed(2):b}`;return m?.decimalPoint===","&&h>0&&(p=p=p?.replace(/\./g,function(w,C){return C>=h&&C<p?.length?",":w})),S=`<span style="font-family:${(f=(A=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&A!==void 0?A:a?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${S}</span>`,p=Oe(p,a),m?.currencyPosition&&m?.currencyPosition!=="none"?p=m?.currencyPosition==="left"?S+p:p+S:m?.currencyPosition!=="none"&&(p=S+p),p},Qa=t=>{var e,i,o,a,l,s,c,r,u,d,A,f,p,b,m,S,v,g,h,w,C,P,D,M,{content:x,style:T,bgImg:V,onClick:k,schema:j,isDefault:E,bottom_image:y,tipText:F,isPost:R,viewTime:B,rec:O,swiper:I,commodityStyles:N,buttonStyle:X,index:U,commodityGroup:q,popupBg:Q,iframeIcon:me,commodityImgRatio:re,isTel:K,iframeBgColor:Te,isActive:Pe=!0}=t,Be=it(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:ue,popupDetailData:de,isPreview:_e,bffFbReport:He,popupCurTimeRef:Ue,checkCommodityIndexRef:Ge,globalConfig:nt,ctaEvent:Ze}=ze(),{jumpToWeb:ke,productView:Qe}=Lt(),Tt=n.useRef(null),[De,Fe]=n.useState(!1),[We,Z]=n.useState(!1),[ee,_]=n.useState((e=de?.multiCheckIndex)!==null&&e!==void 0?e:0),le=n.useRef(),[we,ye]=n.useState(0),$=R?O:de;let W=R?$?.product:(o=(i=$?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(l=(a=$?.video)===null||a===void 0?void 0:a.bindProducts)===null||l===void 0?void 0:l[0],Ne=R?(s=$?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=$?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(f=(A=(d=$?.video)===null||d===void 0?void 0:d.bindProducts)===null||A===void 0?void 0:A[0])===null||f===void 0?void 0:f.bindCta;const $e=R?U:de?.index;if(!R&&q?.open&&(!((p=$?.video)===null||p===void 0)&&p.bindProducts)&&((m=(b=$?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0?void 0:m.length)>0){Ge.current=ee;const fe=(S=$?.video)===null||S===void 0?void 0:S.bindProducts[ee];W=fe,Ne=fe?.bindCta}const Ke=fe=>{W?.link&&(ke(fe,$,W,Ne,$e),R?Ze?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},$,W,$e):Qe($,W,Ne,B||Tt.current,$e),window.location.href=window.getJointUtmLink(W.link))};n.useEffect(()=>{Pe&&(He?.({eventName:"ProductView",product:W}),He?.({eventName:"PageView",product:W}))},[Pe,He]),n.useEffect(()=>{const fe=()=>{Tt.current=new Date};return fe(),window.addEventListener("pageshow",fe),()=>{window.removeEventListener("pageshow",fe)}},[]);const ot=Ti({product:W,enableFormattedPrice:(v=N?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:nt,style:N?.price}),Je=(_e?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((h=Q?.horizontalMargin)!==null&&h!==void 0?h:0)*2,Ve=re?Je*(re.h/re.w):Je,et=({isPost:fe})=>{var be,vt,Ht,Bt;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:At(N?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Oe((be=W?.collection)!==null&&be!==void 0?be:"Tiffany Lock",N?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:At(N?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Oe((vt=W?.title)!==null&&vt!==void 0?vt:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:At(N?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:ot??""}}),n.createElement("div",{hidden:!!W&&!W?.taxInfo,style:At(N?.taxInfo),dangerouslySetInnerHTML:{__html:Oe((Ht=W?.taxInfo)!==null&&Ht!==void 0?Ht:"\u7A0E\u8D39",N?.taxInfo)}}),n.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},n.createElement(xi,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Fe(!0),isPost:fe,text:(Bt=W?.info)!==null&&Bt!==void 0?Bt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
|
8
|
+
`;h.textContent=w}o(m?v:0),e(S)},[a]);return n.useEffect(()=>{l();const s=["resize","orientationchange","load","DOMContentLoaded"];return s.forEach(c=>{window.addEventListener(c,l)}),window.visualViewport&&(window.visualViewport.addEventListener("resize",l),window.visualViewport.addEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.addEventListener("geometrychange",l),()=>{s.forEach(c=>{window.removeEventListener(c,l)}),window.visualViewport&&(window.visualViewport.removeEventListener("resize",l),window.visualViewport.removeEventListener("scroll",l)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.removeEventListener("geometrychange",l)}},[l]),{visibleHeight:t,bottomHeight:i}}const Ga="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",_a=({visible:t,onClose:e,children:i,modalStyle:o,padding:a,popup:l,schema:s,fullHeight:c,isFullScreen:r=!1,openState:u})=>{var d,A,f,p,b,m,S,v,g,h,w,C,P,D,M,x,T,V,k,j,E,y,F,R;const{visibleHeight:B,bottomHeight:O}=bo(),I=n.useRef(null),N=n.useRef(null),X=n.useRef(null),U=n.useRef(null),q=n.useRef(null),Q=c||B,me=Q*.2,re=r?Q:Q*.8,[K,Te]=n.useState(me),[Pe,Be]=n.useState(!1),ue=n.useRef(null),{globalConfig:de,popupDetailData:_e}=ze(),{schema:He,popup:Ue}=ti(),[Ge,nt]=n.useState(15);n.useEffect(()=>{const ee=document.getElementById("sxp-render"),_=document.getElementById("pb-modal");_?ue.current=_:(ue.current=document.createElement("div"),ue.current.setAttribute("id","pb-modal"),ee?.appendChild(ue.current))},[]);const Ze=n.useMemo(()=>l?.id&&l?.id!==""||t,[t,l]),ke=n.useMemo(()=>{var ee,_,le;const we=s??He;return(le=(_=(ee=we?.sxpPageConf)===null||ee===void 0?void 0:ee.globalConfig)===null||_===void 0?void 0:_.popupList)===null||le===void 0?void 0:le.find($=>$?.id===l?.id)},[l,s,He]),Qe=n.useMemo(()=>{var ee,_;return((_=(ee=ke?.item)===null||ee===void 0?void 0:ee.event)===null||_===void 0?void 0:_.isScrollFullScreen)||!1},[ke]);n.useEffect(()=>{Ze?Be(!0):setTimeout(()=>{Be(!1),Te(me)},l?.duration)},[Ze,l]);const Tt=n.useCallback(()=>i,[Ue,u,de,s]);if(n.useEffect(()=>{const ee=_=>{const le=_?.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),we=le?.[0],ye=le?.[le?.length-1],$=9;_.addEventListener("keydown",function(W){(W.key==="Escape"||W.key==="Esc")&&(De(),W.preventDefault()),(W.key==="Tab"||W.keyCode===$)&&(W.shiftKey?document?.activeElement===we&&(ye?.focus(),W.preventDefault()):document?.activeElement===ye&&(we?.focus(),W.preventDefault()))}),we?.focus()};return q?.current&&ee(q?.current),()=>{var _;(_=q?.current)===null||_===void 0||_.removeEventListener("keydown",ee)}},[q,Pe,Ue]),!ue.current)return null;const De=mt.debounce(()=>{e?.()},300),Fe=ee=>{I.current=ee.touches[0],N.current=ee.touches[0],X.current=!0},We=ee=>{requestAnimationFrame(()=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.scrollTop)===0){const le=ee.touches[0].clientY,we=ee.touches[0].clientX,ye=I.current.clientY-le;I.current=ee.touches[0];const $=le-N.current.clientY,W=we-N.current.clientX;if(Math.abs(W)>Math.abs($))return;const Ne=K-ye;Ne>0&&Te(Ne)}})},Z=ee=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.scrollTop)===0){const le=ee.changedTouches[0].clientY-N.current.clientY,we=ee.changedTouches[0].clientX-N.current.clientX;if(Math.abs(we)>Math.abs(le))return;const ye=N.current.clientY-I.current.clientY;ye>0?Te(0):K<me&&ye<0?Te(me):K>=me&&ye<0&&e?.()}X.current=!1};return Mn.createPortal(n.createElement(n.Fragment,null,Pe&&n.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ze?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)",bottom:O+"px"},o),onClick:De},n.createElement("div",{style:{position:"relative",left:`${(p=(f=(A=(d=ke?.item)===null||d===void 0?void 0:d.props)===null||A===void 0?void 0:A.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&p!==void 0?p:0}px`,right:`${(v=(S=(m=(b=ke?.item)===null||b===void 0?void 0:b.props)===null||m===void 0?void 0:m.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${((C=(w=(h=(g=ke?.item)===null||g===void 0?void 0:g.props)===null||h===void 0?void 0:h.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0)+O}px`,overflow:"hidden",width:`calc(100% - ${((x=(M=(D=(P=ke?.item)===null||P===void 0?void 0:P.props)===null||D===void 0?void 0:D.popupBg)===null||M===void 0?void 0:M.horizontalMargin)!==null&&x!==void 0?x:0)*2}px)`,height:"100%"}},n.createElement("div",Object.assign({ref:q,className:`modal-container ${Ze?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=ke?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:a,animationDuration:((V=l?.duration)!==null&&V!==void 0?V:0)/1e3+"s"},Qe&&{transform:`translateY(${K}px)`}),{overflow:"hidden",borderRadius:`${(y=(E=(j=(k=ke?.item)===null||k===void 0?void 0:k.props)===null||j===void 0?void 0:j.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&y!==void 0?y:0}px`,zIndex:9}),onClick:ee=>{ee.stopPropagation(),ee.preventDefault()}},Qe&&{onTouchMove:We,onTouchStart:Fe,onTouchEnd:Z}),n.createElement("div",Object.assign({id:"modal-content",ref:U,style:{height:Qe?Q:re,overflow:Qe&&K<=0||!Qe?"auto":"hidden",zIndex:1}},((R=(F=ke?.item)===null||F===void 0?void 0:F.props)===null||R===void 0?void 0:R.enableFixedCloseButton)&&{onScroll:ee=>{var _;nt(15-((_=ee?.target)===null||_===void 0?void 0:_.scrollTop))}}),Tt()),n.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ge}},n.createElement("img",{src:de?.popupCloseIcon||Ga,alt:"close button",className:"modal-icon"})))))),ue.current)};var mi=n.memo(_a);const Za=({text:t,maxStr:e=108,style:i,className:o,onClick:a,foldText:l,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=n.useState(!1),[A,f]=n.useState(!1),p=i||{},{lineClamp:b}=p,m=it(p,["lineClamp"]),S=Number(b||2),v=n.useRef(null),g=n.useRef(null),h=n.useRef(),w=()=>{d(!u)},C=n.useCallback(()=>{!v.current||!g.current||!c||!t||u||requestAnimationFrame(()=>{if(!v.current)return;v.current.style.position="relative";const P=v.current.getBoundingClientRect().height,D=g.current.getBoundingClientRect().height,M=P>D+1;f(M),v.current.style.position="absolute"})},[c,t,u]);return n.useEffect(()=>{if(v.current)return h.current=new ResizeObserver(C),h.current.observe(v.current),C(),()=>{var P;(P=h.current)===null||P===void 0||P.disconnect()}},[C]),n.createElement("div",{className:o,style:Object.assign(Object.assign({},m),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},n.createElement("div",{ref:g,style:Object.assign(Object.assign({},!u&&c&&{WebkitLineClamp:S,lineClamp:S,textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical"}),{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content"}),dangerouslySetInnerHTML:{__html:Oe(t?.replace(/\n/g,"</br>"),m)}}),c&&n.createElement("div",{ref:v,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:Oe(t?.replace(/\n/g,"</br>"),m)}}),t&&c&&A&&n.createElement("button",{"aria-label":u?s||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??w,dangerouslySetInnerHTML:{__html:Oe(u?s||"show less":l||"show more",m)}}))};var xi=n.memo(Za);const Ka=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:o,file:a,src:l}=t;switch(i){case 2:return o||null;case 3:return l||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Ja=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Ti=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:o,style:a})=>{var l,s,c,r,u,d,A,f;let p="";if((!t?.currency||!t?.price)&&o)return null;let b=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof b!="number")return p;let m=i?.priceSymbol,S=t?.currency?(c=(s=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||s===void 0?void 0:s.toUpperCase())!==null&&c!==void 0?c:"":"$";const v=e===void 0||e;let g=b?.toString();m?.showTwoDecimalPoint&&(g=b?.toFixed(2));let h=(r=g?.indexOf("."))!==null&&r!==void 0?r:-1;if(v){p=(u=b?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let w=0,C=h??p?.length;m?.millesimalSymbol==="."?p=p?.replace(/\,/g,function(P,D){return D>=w&&D<C?".":P}):m?.millesimalSymbol===" "&&(p=p?.replace(","," "))}else p=`${m?.showTwoDecimalPoint?b?.toFixed(2):b}`;return m?.decimalPoint===","&&h>0&&(p=p=p?.replace(/\./g,function(w,C){return C>=h&&C<p?.length?",":w})),S=`<span style="font-family:${(f=(A=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&A!==void 0?A:a?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${S}</span>`,p=Oe(p,a),m?.currencyPosition&&m?.currencyPosition!=="none"?p=m?.currencyPosition==="left"?S+p:p+S:m?.currencyPosition!=="none"&&(p=S+p),p},Qa=t=>{var e,i,o,a,l,s,c,r,u,d,A,f,p,b,m,S,v,g,h,w,C,P,D,M,{content:x,style:T,bgImg:V,onClick:k,schema:j,isDefault:E,bottom_image:y,tipText:F,isPost:R,viewTime:B,rec:O,swiper:I,commodityStyles:N,buttonStyle:X,index:U,commodityGroup:q,popupBg:Q,iframeIcon:me,commodityImgRatio:re,isTel:K,iframeBgColor:Te,isActive:Pe=!0}=t,Be=it(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:ue,popupDetailData:de,isPreview:_e,bffFbReport:He,popupCurTimeRef:Ue,checkCommodityIndexRef:Ge,globalConfig:nt,ctaEvent:Ze}=ze(),{jumpToWeb:ke,productView:Qe}=Lt(),Tt=n.useRef(null),[De,Fe]=n.useState(!1),[We,Z]=n.useState(!1),[ee,_]=n.useState((e=de?.multiCheckIndex)!==null&&e!==void 0?e:0),le=n.useRef(),[we,ye]=n.useState(0),$=R?O:de;let W=R?$?.product:(o=(i=$?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&o!==void 0?o:(l=(a=$?.video)===null||a===void 0?void 0:a.bindProducts)===null||l===void 0?void 0:l[0],Ne=R?(s=$?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=$?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(f=(A=(d=$?.video)===null||d===void 0?void 0:d.bindProducts)===null||A===void 0?void 0:A[0])===null||f===void 0?void 0:f.bindCta;const $e=R?U:de?.index;if(!R&&q?.open&&(!((p=$?.video)===null||p===void 0)&&p.bindProducts)&&((m=(b=$?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0?void 0:m.length)>0){Ge.current=ee;const fe=(S=$?.video)===null||S===void 0?void 0:S.bindProducts[ee];W=fe,Ne=fe?.bindCta}const Ke=fe=>{W?.link&&(ke(fe,$,W,Ne,$e),R?Ze?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},$,W,$e):Qe($,W,Ne,B||Tt.current,$e),window.location.href=window.getJointUtmLink(W.link))};n.useEffect(()=>{Pe&&(He?.({eventName:"ProductView",product:W}),He?.({eventName:"PageView",product:W}))},[Pe,He]),n.useEffect(()=>{const fe=()=>{Tt.current=new Date};return fe(),window.addEventListener("pageshow",fe),()=>{window.removeEventListener("pageshow",fe)}},[]);const ot=Ti({product:W,enableFormattedPrice:(v=N?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:nt,style:N?.price}),Je=(_e?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((h=Q?.horizontalMargin)!==null&&h!==void 0?h:0)*2,Ve=re?Je*(re.h/re.w):Je,et=({isPost:fe})=>{var be,vt,Ht,Bt;return n.createElement("div",null,n.createElement("div",{className:"pb-commondity-content-collection",style:At(N?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Oe((be=W?.collection)!==null&&be!==void 0?be:"Tiffany Lock",N?.collection)}}),n.createElement("div",{className:"pb-commondity-content-title",style:At(N?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Oe((vt=W?.title)!==null&&vt!==void 0?vt:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),n.createElement("div",{className:"pb-commondity-content-price",style:At(N?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:ot??""}}),n.createElement("div",{hidden:!!W&&!W?.taxInfo,style:At(N?.taxInfo),dangerouslySetInnerHTML:{__html:Oe((Ht=W?.taxInfo)!==null&&Ht!==void 0?Ht:"\u7A0E\u8D39",N?.taxInfo)}}),n.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},n.createElement(xi,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Fe(!0),isPost:fe,text:(Bt=W?.info)!==null&&Bt!==void 0?Bt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
|
9
9
|
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
|
10
10
|
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
|
11
11
|
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|