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.min.js CHANGED
@@ -1,11 +1,11 @@
1
- import{isEmpty as ui,cloneDeep as bi,isEqual as Hn,debounce as Ei,throttle as Un,get as Xn}from"lodash";import{v4 as Zo}from"uuid";import Ko from"pako";import u,{useContext as Ii,useMemo as we,memo as je,useEffect as ce,createContext as ki,useState as Z,useRef as fe,useCallback as de,forwardRef as vi,useImperativeHandle as Ci,useLayoutEffect as Jo}from"react";import qn from"qs";import Qo from"eventemitter3";import{css as ze}from"@emotion/css";import*as Yn from"react-dom";import $o from"react-dom";function rt(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l<n.length;l++)e.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(t,n[l])&&(i[n[l]]=t[n[l]]);return i}function mt(t,e,i,n){function l(o){return o instanceof i?o:new i(function(a){a(o)})}return new(i||(i=Promise))(function(o,a){function d(r){try{c(n.next(r))}catch(A){a(A)}}function s(r){try{c(n.throw(r))}catch(A){a(A)}}function c(r){r.done?o(r.value):l(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const el=/:\w+/g;var Gn=(t,e)=>mt(void 0,void 0,void 0,function*(){const i={},n={};for(let l=0;l<e?.length;l++){const{id:o,method:a,url:d,urlParams:s,name:c,queryString:r,headers:A,body:f}=e[l];let p=d;s&&Object.entries(s).forEach(([b,m])=>{p=p.replace(el,S=>S===b?m:S)}),r&&(p+=r),n[o]=c;try{const b=yield fetch(p,{method:a,headers:Object.assign({"Content-Type":"application/json"},A),body:JSON.stringify(f)}).then(m=>m.json());i[o]=b}catch(b){console.error("DataSource request error: ",b),i[o]={}}}return{$store:i,idMapName:n}});const _n="SXP_TOKEN_INFO",tl=(t,e)=>mt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),l=t.getAppId(),o=t.getApiUrl(),a=window.localStorage.getItem(_n);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":l||""}}).then(r=>r.json());if(c.success){const r=c.data;d=Object.assign(Object.assign({},r),{expireTime:Date.now()+r.expire*1e3}),window.localStorage.setItem(_n,JSON.stringify(d))}}return d});function qi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let l;if(e=e||i.length,t)for(l=0;l<t;l++)n[l]=i[0|Math.random()*e];else{let o;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",l=0;l<36;l++)n[l]||(o=0|Math.random()*16,n[l]=i[l===19?o&3|8:o])}return n.join("")}const il=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let l=0;for(;l<t;)e+=i.charAt(Math.floor(Math.random()*n)),l+=1;return e},nl=()=>{const t=Zo();return t?.replaceAll?t.replaceAll("-",""):il(32)},Ve=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],l=e?.["fontFamily-en"];if(!n&&!l)return t;let o=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${l??"inherit"}`,r=f=>{const p=f.search(a),b=f.search(d);return p!==-1&&b!==-1&&p<b&&(i+=`<span style="${s}">${f.substring(p,b)}</span>`,o=f.substring(b,f?.length)),p!==-1&&b!==-1&&p>b&&(i+=`<span style="${c}">${f.substring(b,p)}</span>`,o=f.substring(p,f?.length)),p===-1?(i+=`<span style="${c}">${f.substring(b,f?.length)}</span>`,o="",!1):b===-1?(i+=`<span style="${s}">${f.substring(p,f?.length)}</span>`,o="",!1):!0};let A=!0;for(;A;)A=r(o);return i};function cn(t){const i=document.cookie.split(";");let n=null;return i.forEach(l=>{const[o,a]=l.trim().split("=");o===t&&(n=a)}),n??""}function un(){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 pi(t){if(!t)return;const e=[];for(let l=0;l<t.length;l++){const o=t[l],a=t.substring(l+1,t.length);o==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(l)}const i=e.length>0?[]:[t];let n=0;return e?.map(l=>{i?.push(t.substring(n,l)),n=l+1,l===e[e.length-1]&&l<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function ol(t,e="/",i=""){const n="expires=Thu, 01 Jan 1970 00:00:00 GMT",l=e?`; path=${e}`:"",o=i?`; domain=${i}`:"";document.cookie=`${t}=; ${n}${l}${o}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Zn(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),n=new Uint8Array(i),l=Ko.inflate(n,{to:"string"});return JSON.parse(l)}let vn=null;const ll={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class al{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,vn)return vn;vn=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?ll[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let jt=null;const sl={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{jt||(jt=new al),n&&jt.setApiUrl(n),jt.setAppId(t),jt.setTenantId(e),jt.setEnv(i)},getDetail:t=>{if(!jt)return;const e=jt.getTenantId(),i=jt.getAppId(),n=jt.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>mt(void 0,void 0,void 0,function*(){var o,a;const d=yield l.json(),s=Zn((o=d?.data)===null||o===void 0?void 0:o.data);if(s){const{$store:c}=yield Gn(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=s,Object.assign(d.data.data,{__STORE__:c})}return d}))},getSxpDetailByPageId:t=>mt(void 0,void 0,void 0,function*(){if(!jt)return;const e=jt.getTenantId(),i=jt.getAppId(),n=jt.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>mt(void 0,void 0,void 0,function*(){var o;const a=yield l.json();return a.success?(o=a?.data)===null||o===void 0?void 0:o.map(s=>Object.assign(Object.assign({},s),{data:Zn(s?.data)})):void 0}))}),getSxpRecommendVideoData:t=>mt(void 0,void 0,void 0,function*(){if(!jt)return;const e=yield tl(jt,t),i=qi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");ui(n)&&(n=qi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const l=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return l?.data||null})};function ai(){return Ii(co)}function rl(){return Ii(ro)}const pn="feRealSessionIdKey",Kn=()=>{const t=nl();return`${Date.now()}${t}`},dl=()=>{let t=cl();return t||(t=Kn(),window.localStorage.setItem(pn,t)),t},mn=()=>{const t=Kn();window.localStorage.setItem(pn,t)},cl=()=>window.localStorage.getItem(pn),Jn="SXP_FAKE_USER_ID",Qn="FAKE_USER_STATE",$n="AGREE_POLICY",eo="SLIDE_SKIP_STATE",to="CCONTSENT_STATE",io="USER_CONSENT_RESULT",ul=()=>{let t=window.localStorage.getItem(Jn);return ui(t)&&(t=qi(36,62),window.localStorage.setItem(Jn,t)),t},vl=()=>{const t=window.localStorage.getItem(Qn);return ui(t)&&window.localStorage.setItem(Qn,"true"),ui(t)},pl=()=>{const t=window.localStorage.getItem(eo);return ui(t)},ml=()=>{window.localStorage.setItem(eo,"true")},fl=()=>{const t=window.localStorage.getItem(to);return ui(t)&&window.localStorage.setItem(to,"true"),ui(t)},no=()=>window.localStorage.getItem(io)==="true",oo=()=>{window.localStorage.setItem(io,"true")};function Lt(t,e){const{appDomain:i}=Ge();return we(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const Ct=new Qo;var xt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(xt||(xt={}));const hl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:l,privacy_policy_title:o})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Ge(),s=we(()=>{var A;const f=location.search.slice(1),p={};(A=pi(f.replace(/\+/g,"%2B")))===null||A===void 0||A.map(b=>{const m=b.split("=")[0],S=b.split("=")[1];p[m]=S});for(const b in p)p[b]=p[b].replace(/%2B/g,"+");return p},[]),c=A=>{var f;return(f=s[A])!==null&&f!==void 0?f:null};ce(()=>{d?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const r=()=>{d?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),a?.(!0),window.localStorage.setItem($n,"yes")};return u.createElement("div",{className:"consent-bg"},u.createElement("div",{className:"consent"},u.createElement("div",{className:"consent-col"},u.createElement("div",{className:"consent-title"},i??"Privacy Policy"),u.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),u.createElement("div",{className:"consent-col"},u.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:r},"Agree"),u.createElement("a",{className:"consent-policy",target:"_blank",href:l?`https://${l}`:void 0},o??"More information"))))};var Al=je(hl);const lo=ki({rtcList:[],tagList:[]});var fn;(function(t){t[t.BFF=5]="BFF"})(fn||(fn={}));const Yi="FOR U",bl=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:l,defaultSize:o,isPreview:a=!1,sxpParameter:d,appDomain:s,hashTagSize:c,loadingImage:r,isOpenHashTag:A=!1,enabledMetaConversionApi:f=!1,consentHeight:p,consentWidth:b,isOpenConsent:m=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:h,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:V})=>{var j,x,T,R,I;const[N,E]=Z([]),[y,F]=Z([]),[D,B]=Z(!0),[O,k]=Z({rtc:"",requestId:""}),M=fe(null),X=fe(!1),[U,q]=Z(()=>!!window.localStorage.getItem($n)),[$,be]=Z(),[ue,J]=Z(),[Pe,De]=Z(A),[Xe,me]=Z([]),[ve,et]=Z(0),[_e,Ze]=Z(!1),[$e,dt]=Z(null),tt=fe(),Le=fe(),ot=fe(),[Pt,He]=Z(Yi),qe=fe(-1),Ye=fe(null),[K,te]=Z(!1),[_,ae]=Z((x=(j=h?.data)===null||j===void 0?void 0:j.sxpPageConf)===null||x===void 0?void 0:x.globalConfig),[Ie,Ee]=Z(),[ee,W]=Z(!1),[We,lt]=Z(),[it,ct]=Z(),[nt,Ue]=Z([]),[at,ht]=Z(),[St,Yt]=Z(),Rt=we(()=>Ie??h,[Ie,h]),Et=fe(!1);ce(()=>{var z,H;ae((H=(z=h?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||H===void 0?void 0:H.globalConfig)},[h]);const It=we(()=>{var z,H,ie,ye;return(((ye=(ie=(H=(z=_?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||ie===void 0?void 0:ie.props)===null||ye===void 0?void 0:ye.privacy_necessity)&&!U&&!S||m)&&ee},[U,_,m,S,ee]),Kt=de(z=>{V?.(z),ct(z)},[]),Tt=de(z=>{var H;const ie=z?.recList;return(H=ie?.map(pe=>{var he,Se,ke,Ce,Be,L;if(!((he=pe?.video)===null||he===void 0)&&he.bindProducts&&((ke=(Se=pe?.video)===null||Se===void 0?void 0:Se.bindProducts)===null||ke===void 0?void 0:ke.length)>0){const Y=(L=(Be=(Ce=pe?.video)===null||Ce===void 0?void 0:Ce.bindProducts)===null||Be===void 0?void 0:Be.filter(G=>!!G?.bindCta))!==null&&L!==void 0?L:[];return Object.assign(Object.assign({},pe),{video:Object.assign(Object.assign({},pe?.video),{bindProducts:Y})})}return pe}))!==null&&H!==void 0?H:[]},[]);ce(()=>{let z;return nt.length>0&&(z=setInterval(()=>{const ie=new Date,ye=15*1e3;Ue(pe=>pe.filter(he=>ie-he.time<=ye))},1e3)),()=>{clearInterval(z)}},[nt]),ce(()=>{const z=H=>{tt.current=H};return Ct.on(xt.CHANGE_THEME_TAG,z),()=>{Ct.off(xt.CHANGE_THEME_TAG,z)}},[]),ce(()=>{De(A)},[A]);const Ke=we(()=>e?.find(z=>z.type===fn.BFF),[e]),Oe=we(()=>{var z;return((z=Ke?.headers)===null||z===void 0?void 0:z["x-app-id"])+ul()},[Ke]),ge=()=>{var z,H;function ie(he){const Se=he.match(/groups=([^&]+)/);if(!Se||!Se[1])return!1;const Ce=Se[1].split(",");for(const Be of Ce){const[L,Y]=Be.split(":");if(L==="4")return Y==="0"}return!1}function ye(he){var Se;const Ce=`; ${document.cookie}`.split(`; ${he}=`);return Ce.length===2?(Se=Ce.pop())===null||Se===void 0?void 0:Se.split(";").shift():""}const pe=decodeURIComponent((z=ye("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")&&ie(pe))},xe=de((z,H,ie=!0)=>{var ye;if(!Ke)return;const pe=Ke.url;if(H?.query){const Se=qn.stringify(H.query);z=`${z}?${Se}`}const he=location.search.slice(1);return(ye=pi(he))===null||ye===void 0||ye.forEach(Se=>{Se.split("=")[0],Se.split("=")[1]}),window.fetch(`${pe}/api/${z}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Oe},Ke.headers),method:H.method,body:H.type==="beacon"&&ie?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Ke.headers),{"x-user-id":Oe}))))}):JSON.stringify(H.body)},H.type==="beacon"&&{keepalive:!0})).then(Se=>Se.json()).catch(Se=>Promise.reject(Se))},[Ke,Oe]),bt=de(z=>{var H;if(ge())return Promise.resolve();const ie={eventName:z?.eventName,eventSource:z?.eventSource};return xe?.(`v1/data/collect/${(H=Ke?.headers)===null||H===void 0?void 0:H["x-app-id"]}/${z?.eventName}`,{method:"POST",body:ie,type:"beacon"},!1)},[xe,Ke]);ce(()=>{const z=window.Image;window.Image=function(){const H=new z,ie=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(H,"src",{set(ye){if(!(ge()&&(ye.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/")||ye.includes("https://www.facebook.com/tr")))&&(ie.set.call(this,ye),ye.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/"))){const pe=new URL(ye),he=Object.fromEntries(pe.searchParams.entries());bt({eventName:he?.ev,eventSource:"Meta Pixel"})}},get(){return ie.get.call(this)}}),H}},[bt]),ce(()=>{const z=navigator;if(!z.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const H=z.sendBeacon.bind(z);return z.sendBeacon=function(ie,ye){const pe=ie instanceof URL?ie.href:ie.toString();if(ge()&&(pe.includes("https://tr.snapchat.com/p")||pe.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const he=H(ie,ye);function Se(ke){return mt(this,void 0,void 0,function*(){return typeof ke=="string"?JSON.parse(ke):ke instanceof Blob?JSON.parse(yield ke.text()):ke instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(ke)):null})}return he&&Promise.resolve().then(()=>mt(this,void 0,void 0,function*(){var ke,Ce;try{const Be=yield Se(ye);pe.includes("https://tr.snapchat.com/p")?(Ce=(ke=Be?.req)===null||ke===void 0?void 0:ke.forEach)===null||Ce===void 0||Ce.call(ke,L=>{var Y,G;!((Y=L?.t)===null||Y===void 0)&&Y.ev&&bt({eventName:(G=L?.t)===null||G===void 0?void 0:G.ev,eventSource:"Snapchat Pixel"})}):pe.includes("https://analytics.tiktok.com/api/v2/pixel")&&Be?.event&&bt({eventName:Be.event,eventSource:"TikTok Pixel"})}catch(Be){console.error("\u76D1\u63A7\u5931\u8D25:",Be)}})),he},()=>{z.sendBeacon=H}},[bt]),ce(()=>{const z=window.fetch;window.fetch=function(H,ie){var ye=arguments;return mt(this,void 0,void 0,function*(){var pe;let he;try{he=typeof H=="string"?H:H instanceof URL?H.href:H.url}catch(Se){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Se),z.apply(this,ye)}try{if(ge()&&(he.includes("https://www.google-analytics.com/g/collect")||he.includes("https://arms-retcode.aliyuncs.com/r.png")))return Promise.resolve(new Response(""));const Se=z.apply(this,ye);if(he.includes("https://www.google-analytics.com/g/collect")){const ke=new URL(he),Ce=Object.fromEntries(ke.searchParams.entries()),Be=(pe=ye[1])===null||pe===void 0?void 0:pe.body;if(Ce?.en)bt({eventName:Ce?.en,eventSource:"Google Analytics"});else if(Be){const Y=function(G){if(typeof G!="string")return[];const Q=[],re=/en=([^&\r\n]*)/g;let ne;for(;(ne=re.exec(G))!==null;)Q.push(decodeURIComponent(ne[1]));return Q}(Be);Y?.forEach(G=>{bt({eventName:G,eventSource:"Google Analytics"})})}}return Se}catch(Se){throw console.error(Se),Se}})}},[bt]),ce(()=>{const z=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(ie,ye){this._url=ye,z.apply(this,arguments)},XMLHttpRequest.prototype.send=function(ie){var ye;if(!(ge()&&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")&&ie&&typeof ie=="string")try{const pe=JSON.parse(ie);if(pe&&Array.isArray(pe.data)){const he=pe.data[((ye=pe.data)===null||ye===void 0?void 0:ye.length)-1];he&&he.e&&bt({eventName:he.e,eventSource:"Northbeam Pixel"})}}catch(pe){console.error("Failed to parse Northbeam event from XHR",pe)}H.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=z,XMLHttpRequest.prototype.send=H}},[bt]),ce(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const Gt=de((z,H)=>{if(!Ke)return;const ie=Ke.url;if(H?.query){const ye=qn.stringify(H.query);z=`${z}?${ye}`}return window.fetch(`${ie}/admin/${z}`,{headers:Object.assign({"Content-Type":"application/json"},Ke.headers),method:H.method,body:JSON.stringify(H.body)}).then(ye=>ye.json()).catch(ye=>Promise.reject(ye))},[Ke]),Ut=de(z=>mt(void 0,void 0,void 0,function*(){var H,ie,ye,pe,he,Se,ke,Ce,Be,L,Y,G,Q,re;if(z=Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:l,defaultSize:(ie=z?.defaultSize)!==null&&ie!==void 0?ie:o,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},St&&{chatlabsId:St}),C&&{type:"story"}),it)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(it)});else if(i){const oe=(he=(pe=(ye=pi(i))===null||ye===void 0?void 0:ye.filter(se=>{var Ae,Fe;const Te=se.split("=")[0];return(Fe=(Ae=v?.channels)!==null&&Ae!==void 0?Ae:[])===null||Fe===void 0?void 0:Fe.includes(Te)}))===null||pe===void 0?void 0:pe.join("&"))!==null&&he!==void 0?he:"";oe&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(oe)}))}if(S){let oe=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 se=[],Ae=null;const Fe=Te=>mt(void 0,void 0,void 0,function*(){var Ne,ft,ut,vt,pt,st;if(Te.pageNum=oe,Ae=yield Gt?.("recommend/direct_page",{method:"POST",body:Te}),!Ae?.success)return;B(!1),se=se.concat((vt=(ut=(ft=(Ne=Ae?.data)===null||Ne===void 0?void 0:Ne.recList)===null||ft===void 0?void 0:ft.filter)===null||ut===void 0?void 0:ut.call(ft,Je=>Je?.product||Je?.video))!==null&&vt!==void 0?vt:[]),N?.length===0&&(E(Tt(Object.assign(Object.assign({},Ae?.data),{recList:se}))),me(Tt(Object.assign(Object.assign({},Ae?.data),{recList:se})))),((st=(pt=Ae?.data)===null||pt===void 0?void 0:pt.recList)===null||st===void 0?void 0:st.some(Je=>Je?.product||Je?.video))&&(oe=oe+1,yield Fe(Te))});return yield Fe(z),!z?.hashTag&&Ae&&k({rtc:(Se=Ae?.data)===null||Se===void 0?void 0:Se.rtc,requestId:(ke=Ae?.data)===null||ke===void 0?void 0:ke.requestId}),Object.assign(Object.assign({},Ae?.data),{recList:se})}_?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(Ce=z?.pageNum)!==null&&Ce!==void 0?Ce:1}));const ne=yield xe?.("v1/recommend/list",{method:"POST",body:z});if(!ne?.success)return;z?.hashTag||k({rtc:ne.data.rtc,requestId:ne.data.requestId}),_?.enablePreview&&!S&&(!((L=(Be=ne?.data)===null||Be===void 0?void 0:Be.recList)===null||L===void 0)&&L.some(se=>se?.product||se?.video)||te(!0));let le=[];return le=le.concat((re=(Q=(G=(Y=ne?.data)===null||Y===void 0?void 0:Y.recList)===null||G===void 0?void 0:G.filter)===null||Q===void 0?void 0:Q.call(G,oe=>oe?.product||oe?.video))!==null&&re!==void 0?re:[]),Object.assign(Object.assign({},ne.data),{recList:le})}),[xe,i,l,o,g,it,St,Gt]),ln=de(z=>mt(void 0,void 0,void 0,function*(){var H,ie,ye,pe;if(N.length<=0)return;const he=N?.[N?.length-1],Se=yield Ut(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ue?.hashTag},((H=he?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:[(ie=he?.product)===null||ie===void 0?void 0:ie.itemId]}),((ye=he?.video)===null||ye===void 0?void 0:ye.itemId)&&{contentFilter:[(pe=he?.video)===null||pe===void 0?void 0:pe.itemId]}),{themeTag:tt.current}),_?.enablePreview&&!S&&{pageNum:z}));return E(N.concat(Tt(Se))),me(Xe.concat(Tt(Se))),Se}),[Ut,N,ue,Xe]),fi=de((z,H)=>{var ie,ye,pe,he,Se;let ke=!1;const Ce=(ye=(ie=h?.data)===null||ie===void 0?void 0:ie.sxpPageConf)===null||ye===void 0?void 0:ye.globalConfig;if(!((pe=Ce?.session)===null||pe===void 0)&&pe.enable){const Be=localStorage.getItem("sessionStartTime"),L=Be?JSON.parse(Be):new Date().getTime();Math.floor((new Date().getTime()-L)/1e3/60)>=((Se=(he=Ce?.session)===null||he===void 0?void 0:he.expires)!==null&&Se!==void 0?Se:30)&&(H?.("sessionTimeOut"),mn(),Le.current=new Date,ke=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&mn();return ke},[h]),wt=de(({userInfo:z,eventInfo:H,reportLayId:ie=!0,isActiveTargetingCookie:ye=!0})=>{var pe,he;if(!n||_?.enablePreview||ye&&ge())return;z||(z={});const Se=dl(),ke={},Ce=location.search.slice(1);(pe=pi(Ce))===null||pe===void 0||pe.forEach(Q=>{const re=Q.split("=")[0],ne=Q.split("=")[1];ke[re]=ne});const Be=ke?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Se,rtc:O.rtc,requestId:O.requestId},{playbookType:at}),We&&ie&&{layoutVariantId:We}),H),H?.position&&it&&{position:Number(H?.position)+1+""}),Be&&{clSource:Be}),Y=Object.entries(z).map(([Q,re])=>({name:Q,value:re})),G=Object.entries(L).map(([Q,re])=>re&&{name:Q,value:re}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),xe?.(`v2/cld/${(he=Ke?.headers)===null||he===void 0?void 0:he["x-app-id"]}/${H?.eventSubject}${Be?`/${decodeURIComponent(Be)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:G},type:"beacon"})},[xe,O,n,_?.enablePreview,We,_,at,Ke]),di=de((z,H)=>{var ie,ye,pe;const he=bi(z),Se=new URLSearchParams(window.location.search),ke=Se?.get("fbclid"),Ce={event_source_url:(ie=window?.location)===null||ie===void 0?void 0:ie.href,external_id:Oe,client_user_agent:(pe=(ye=window?.navigator)===null||ye===void 0?void 0:ye.userAgent)!==null&&pe!==void 0?pe:"",fbc:ke?`fb.2.${new Date().getTime()}.${ke}`:"",fbp:cn("_fbp")?`${cn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},Be=/\{\{(.*?)\}\}/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 Q=Y?.[G];if(typeof Q=="object")L(Q);else if(typeof Q=="string"){const re=Q?.match(Be);re&&re.forEach(ne=>{var le;const oe=ne.substring(2,ne.length-2);try{let se=new Function("fix_par","product",`return ${oe}`)(Ce,H);se?(oe?.indexOf("currency")!==-1&&se?.indexOf("-")!==-1&&typeof se=="string"&&(se=(le=se?.split("-"))===null||le===void 0?void 0:le[0]),Y[G]=se):delete Y[G]}catch(se){delete Y[G],console.error("An error occurred:",se?.message)}})}}}};return L(he),he},[Oe]),zi=de(({eventName:z,product:H})=>{var ie,ye,pe,he,Se,ke,Ce,Be,L,Y;if(!n||_?.enablePreview||ge())return;let G=!1;const Q=(ie=_?.pixel)===null||ie===void 0?void 0:ie[z];if(Q?.event_name&&typeof window?.fbq=="function"){let le=function(oe,se,Ae){const Fe=new RegExp("([?&])"+se+"=.*?(&|$)","i"),Te=oe.indexOf("?")!==-1?"&":"?";return oe.match(Fe)?oe.replace(Fe,"$1"+se+"="+Ae+"$2"):oe+Te+se+"="+Ae};if(z==="PageView"&&Q?.event_name==="PageView")if(!Et.current)Et.current=!0;else{const oe=window.location.href,se=le(oe,"timestamp",Date.now());history.pushState({path:se},"",se),G=!0}else window?.fbq("track",Q?.event_name,di(Q,H))}if(!G){z==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const le=(ye=_?.tiktokPixel)===null||ye===void 0?void 0:ye[z];le?.event_name&&typeof window?.ttq=="object"&&typeof((pe=window?.ttq)===null||pe===void 0?void 0:pe.track)=="function"&&((he=window?.ttq)===null||he===void 0||he.track(le?.event_name,di(le,H)))}const re=(Se=_?.snapchatPixel)===null||Se===void 0?void 0:Se[z];re?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",re?.event_name,di(re,H)),z==="PageView"&&typeof window?.Northbeam=="object"&&typeof((ke=window?.Northbeam)===null||ke===void 0?void 0:ke.trackPageView)=="function"&&((Ce=window?.Northbeam)===null||Ce===void 0||Ce.trackPageView());const ne=(Be=_?.converApi)===null||Be===void 0?void 0:Be[z];if(f&&ne){const le=di(ne,H),oe={},se=location.search.slice(1);(L=pi(se))===null||L===void 0||L.forEach(Fe=>{const Te=Fe.split("=")[0],Ne=Fe.split("=")[1];oe[Te]=Ne});const Ae=oe?.cl_source;xe?.(`v2/fb/${(Y=Ke?.headers)===null||Y===void 0?void 0:Y["x-app-id"]}/${z}${Ae?`/${decodeURIComponent(Ae)}`:""}`,{method:"POST",body:le,type:"beacon"})}},[xe,n,f,_,Ke,di]),oi=de(z=>mt(void 0,void 0,void 0,function*(){const H=yield xe?.("v1/recommend/like",{method:"POST",body:z});return H?.success}),[xe]),hi=de(z=>mt(void 0,void 0,void 0,function*(){const H=yield xe?.("v1/recommend/unlike",{method:"POST",body:z});return H?.success}),[xe]),li=de(z=>mt(void 0,void 0,void 0,function*(){const H=yield xe?.("v1/customform",{method:"POST",body:z});return H?.success}),[xe]),Xt=de(z=>mt(void 0,void 0,void 0,function*(){var H,ie,ye,pe,he,Se,ke,Ce;const Be=!!(!((ye=(ie=(H=z?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||ie===void 0?void 0:ie.globalConfig)===null||ye===void 0)&&ye.isShowTag);if(!(!i||!Be))try{const L=(Se=(he=(pe=pi(i))===null||pe===void 0?void 0:pe.filter(G=>{var Q,re;const ne=G.split("=")[0];return(re=(Q=v?.channels)!==null&&Q!==void 0?Q:[])===null||re===void 0?void 0:re.includes(ne)}))===null||he===void 0?void 0:he.join("&"))!==null&&Se!==void 0?Se:"",Y=yield xe?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(L)}});F((Ce=(ke=Y?.data)===null||ke===void 0?void 0:ke.tags)!==null&&Ce!==void 0?Ce:[])}catch(L){console.log("e",L)}}),[xe,i]),_t=de((z,H,ie,ye)=>{var pe,he,Se,ke,Ce,Be,L,Y,G,Q,re,ne,le,oe,se,Ae,Fe,Te,Ne,ft,ut,vt,pt,st,gt,Je,kt,Re,Me,Bt,Dt,Ai,At,ci,sn,rn;const $t=ie?.bindCta,_o=((pe=H?.video)===null||pe===void 0?void 0:pe.bindProduct)||((he=H?.video)===null||he===void 0?void 0:he.bindProducts)&&((ke=(Se=H?.video)===null||Se===void 0?void 0:Se.bindProducts)===null||ke===void 0?void 0:ke.length)>0;let Xi="",dn=null;_e?Xi="hashTagPage":!((Ce=H?.video)===null||Ce===void 0)&&Ce.url?(Xi="videoPage",dn="video"):!((L=(Be=H?.video)===null||Be===void 0?void 0:Be.imgUrls)===null||L===void 0)&&L.length&&(Xi="imagePage",dn="image");const zn=(oe=(ne=(Y=ie?.tags)!==null&&Y!==void 0?Y:(re=(Q=(G=H?.video)===null||G===void 0?void 0:G.bindProducts)===null||Q===void 0?void 0:Q[0])===null||re===void 0?void 0:re.tags)!==null&&ne!==void 0?ne:(le=H?.video)===null||le===void 0?void 0:le.tags)!==null&&oe!==void 0?oe:(se=H?.product)===null||se===void 0?void 0:se.tags;wt?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(Ae=$t?.itemId)!==null&&Ae!==void 0?Ae:"",ctaName:(Fe=$t?.title)!==null&&Fe!==void 0?Fe:"",contentTags:zn?JSON.stringify(zn):"",position:ye+"",contentId:(Ne=(Te=H?.video)===null||Te===void 0?void 0:Te.itemId)!==null&&Ne!==void 0?Ne:"",productId:_o?ie?.itemId:"",traceInfo:(sn=(Ai=(kt=(pt=(ft=$t?.traceInfo)!==null&&ft!==void 0?ft:(vt=(ut=H?.video)===null||ut===void 0?void 0:ut.bindCta)===null||vt===void 0?void 0:vt.traceInfo)!==null&&pt!==void 0?pt:(Je=(gt=(st=H?.video)===null||st===void 0?void 0:st.bindProduct)===null||gt===void 0?void 0:gt.bindCta)===null||Je===void 0?void 0:Je.traceInfo)!==null&&kt!==void 0?kt:(Dt=(Bt=(Me=(Re=H?.video)===null||Re===void 0?void 0:Re.bindProducts)===null||Me===void 0?void 0:Me[0])===null||Bt===void 0?void 0:Bt.bindCta)===null||Dt===void 0?void 0:Dt.traceInfo)!==null&&Ai!==void 0?Ai:(ci=(At=H?.product)===null||At===void 0?void 0:At.bindCta)===null||ci===void 0?void 0:ci.traceInfo)!==null&&sn!==void 0?sn:"",fromKName:Xi,fromKPage:(rn=location?.href)!==null&&rn!==void 0?rn:"",contentFormat:dn})})},[wt,_e]),Ot=de(()=>{var z,H,ie;const ye=location.search.slice(1),pe={};(z=pi(ye.replace(/\+/g,"%2B")))===null||z===void 0||z.map(ke=>{const Ce=ke.split("=")[0],Be=ke.split("=")[1];pe[Ce]=Be});for(const ke in pe)pe[ke]=pe[ke].replace(/%2B/g,"+");const he=ke=>{var Ce;return(Ce=pe[ke])!==null&&Ce!==void 0?Ce:""},Se=new Date;Le.current=Se,wt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:he("utm_source"),utmMedium:he("utm_medium"),utmCampaign:he("utm_campaign"),utmId:he("utm_id"),utmContent:he("utm_content"),enterTime:Math.floor(Se/1e3)+"",requestId:null,enterUrl:(ie=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&ie!==void 0?ie:""},reportLayId:!1})},[wt]),an=de(()=>mt(void 0,void 0,void 0,function*(){var z,H;const ie=yield xe?.("v1/account",{method:"GET"});return Yt((z=ie?.data)===null||z===void 0?void 0:z.chatLabsId),((H=ie?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[xe]),Hi=de(z=>mt(void 0,void 0,void 0,function*(){const H=yield xe?.("v1/account/consent",{method:"POST",body:{consentResult:z}});return H?.success}),[xe]);ce(()=>{It||Ot()},[It]),ce(()=>{if(It||a)return;B(!0);let z,H;Ut().then(ie=>{var ye,pe,he,Se,ke,Ce,Be,L,Y,G,Q;if(ie){const re=Tt(ie);let ne,le;if(ie?.layoutVariantId){z=ie?.layoutVariantId,lt(ie?.layoutVariantId);const oe=(pe=(ye=ie?.layoutVariantId)===null||ye===void 0?void 0:ye.split("-"))===null||pe===void 0?void 0:pe[1];oe&&(ne=w?.find(se=>se?.id===oe),ne?(Ee(ne),document.title=(he=ne?.name)!==null&&he!==void 0?he:"home",le=(ke=(Se=ne?.data)===null||Se===void 0?void 0:Se.sxpPageConf)===null||ke===void 0?void 0:ke.globalConfig,ae(le),P?.(ne?.data),!((Y=(L=(Be=(Ce=le?.consent)===null||Ce===void 0?void 0:Ce[0])===null||Be===void 0?void 0:Be.item)===null||L===void 0?void 0:L.props)===null||Y===void 0)&&Y.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(it||(le?.playbook==="organic menu"||!le&&_?.playbook==="organic menu"?(ht("organicMenu"),re.unshift("organic menu"),H="organicMenu"):(ht("paidMedia"),H="paidMedia")),E(re),me(re),Xt(ne??Rt),it){const oe=re?.[0],se=((G=oe?.video)===null||G===void 0?void 0:G.traceInfo)||((Q=oe?.product)===null||Q===void 0?void 0:Q.traceInfo)||"";wt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:se,branchfeed:it},z&&{layoutVariantId:z})}),wt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:se,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-ot?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{wt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),H&&{playbookType:H})}),B(!1)})},[It,it]),ce(()=>{a&&(B(!0),Xt(h),Ut().then(z=>{if(z){const H=Tt(z);_?.playbook==="organic menu"&&!it&&H.unshift("organic menu"),E(H),me(H)}}).finally(()=>{B(!1)}))},[Ut,Xt,it]);const Ui=Lt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return u.createElement(lo.Provider,{value:{rtcList:N,setRtcList:E,mutateLike:oi,mutateUnlike:hi,submitForm:li,popupDetailData:$,loadVideos:ln,setPopupDetailData:be,getRecommendVideos:Ut,bffEventReport:wt,isPreview:a,loading:D,sxpParameter:d,waterFallData:ue,setWaterFallData:J,ctaEvent:_t,swiperRef:M,openHashtag:Pe,setOpenHashtag:De,cacheRtcList:Xe,setCacheRtcList:me,cacheActiveIndex:ve,setCacheActiveIndex:et,isFromHashtag:_e,setIsFromHashtag:Ze,appDomain:s,hashTagSize:c,loadingImage:r??Ui,isOpenHashTag:A,tagList:y,setLoading:B,videoRef:$e,setVideoRef:dt,bffFbReport:zi,isAgreePolicy:U,setIsAgreePolicy:q,curTime:Le,h5EnterLink:Ot,themeTag:tt,isShowConsent:It,selectTag:Pt,setSelectTag:He,globalConfig:_,popupCurTimeRef:Ye,checkCommodityIndexRef:qe,isEditor:S,isNoMoreData:K,updateChannel:Kt,channel:it,eventTimeList:nt,setEventTimeList:Ue,multiPostTimeRef:ot,refreshFeSession:fi,getAccount:an,accountSonsent:Hi,isDiyH5:C,pixelPvStatusRef:Et}},It?u.createElement(Al,Object.assign({},(I=(R=(T=_?.consent)===null||T===void 0?void 0:T[0])===null||R===void 0?void 0:R.item)===null||I===void 0?void 0:I.props)):t({rtcList:N,mutateLike:oi,mutateUnlike:hi,submitForm:li,tagList:y,pageData:Rt}))};var ao=je(bl);function Ge(){return Ii(lo)}var so;(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"})(so||(so={}));const ro=ki({$store:{},options:[],configs:[]}),gl=({children:t,isSsr:e,enable:i})=>{const[n,l]=Z([]),{schema:o}=ai(),[a,d]=Z(o.__STORE__||{}),[s,c]=Z([]);ce(()=>{var f;e||Hn(s,o?.dataSource)||c((f=o?.dataSource)!==null&&f!==void 0?f:[])},[o?.dataSource,e]);const r=de(()=>mt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:p}=yield Gn("",s);d(f),A(f,p)}),[s]),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)})}),l(b)};return ce(()=>{e||r()},[r,e,o]),i?u.createElement(ro.Provider,{value:{$store:o.__STORE__||a,options:n,configs:s}},t):t};var yl=je(gl);const Gi={id:qi(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},hn={id:"",duration:0,name:"none"},co=u.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Gi],redoStack:[],popup:hn,setPopup:()=>{}}),uo=vi(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:l=!0,utmVal:o},a)=>{const[d,s]=Z(null),[c,r]=Z(n||{pointData:[Gi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[A,f]=Z([Gi]),[p,b]=Z([[Gi]]),[m,S]=Z([]),[v,g]=Z(hn);typeof window<"u"&&(window.sxpPopup=(V,j)=>{g(Object.assign(Object.assign(Object.assign({},hn),{id:V}),j))}),typeof window<"u"&&(window.getJointUtmLink=V=>(ml(),V?.indexOf("?")!==-1?V+(o?"&"+o:""):V+(o?"?"+o:""))),ce(()=>{b([c.pointData]),S([])},[c.type]);const h=de(V=>{const j=bi(c);j&&(j.dataSource=V,r?.(j))},[c]),[w,C]=Z();Ci(a,()=>({loadSchema(V){V&&(b([V.pointData]),r(V))},exportSchema(){return bi(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=we(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return u.createElement(co.Provider,{value:{resolver:e,currentNode:d,schema:c,setCurrentNode:s,setSchema:r,saveDataSource:h,prePiontData:A,setPrePiontData:f,pageInfoData:w,setPageInfoData:V=>C(Object.assign(Object.assign({},w),V)),undoStack:p,redoStack:m,setRedoStack:S,setUndoStack:b,getCurPageConf:P,popup:v,setPopup:g}},u.createElement(yl,{isSsr:i,enable:l},t))});var wl=Object.freeze({__proto__:null,EditorCore:uo}),Sl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],xl=[{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 Vt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:l}=Ge(),o=de((s,c,r,A,f,p)=>{var b,m,S,v,g,h,w,C,P,V,j,x,T,R,I,N,E,y,F,D,B,O,k,M,X,U,q,$,be,ue,J,Pe,De,Xe,me,ve,et,_e;if(n?.findIndex(Le=>Le.target===s?.target)!==-1)return;s&&l?.(Le=>[...Le,{target:s?.target,time:new Date}]);let $e="";e&&(!((m=(b=c?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0)&&m.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?$e="pdpPage":i?$e="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?$e="videoPage":!((g=c?.video)===null||g===void 0)&&g.imgUrls&&(!((w=(h=c?.video)===null||h===void 0?void 0:h.imgUrls)===null||w===void 0)&&w.length)?$e="imagePage":c?.product&&($e="productPage");const dt=(R=(x=(C=r?.tags)!==null&&C!==void 0?C:(j=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||j===void 0?void 0:j.tags)!==null&&x!==void 0?x:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&R!==void 0?R:(I=c?.product)===null||I===void 0?void 0:I.tags;let tt=null;!((N=c?.video)===null||N===void 0)&&N.url?tt="video":!((E=c?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(y=c?.video)===null||y===void 0?void 0:y.imgUrls)===null||F===void 0)&&F.length)&&(tt="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(D=r?.itemId)!==null&&D!==void 0?D:"",productName:(B=r?.title)!==null&&B!==void 0?B:"",price:r?.price?r?.price+"":"0",productCollection:(O=r?.collection)!==null&&O!==void 0?O:"",fromKName:$e,fromKPage:location?.href,contentTags:dt?JSON.stringify(dt):"",position:f+"",contentId:(M=(k=c?.video)===null||k===void 0?void 0:k.itemId)!==null&&M!==void 0?M:"",ctatId:(X=A?.itemId)!==null&&X!==void 0?X:"",traceInfo:(_e=(me=(De=(be=(U=p??r?.traceInfo)!==null&&U!==void 0?U:($=(q=c?.video)===null||q===void 0?void 0:q.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&be!==void 0?be:(Pe=(J=(ue=c?.video)===null||ue===void 0?void 0:ue.bindProducts)===null||J===void 0?void 0:J[0])===null||Pe===void 0?void 0:Pe.traceInfo)!==null&&De!==void 0?De:(Xe=c?.product)===null||Xe===void 0?void 0:Xe.traceInfo)!==null&&me!==void 0?me:(et=(ve=c?.video)===null||ve===void 0?void 0:ve.bindCta)===null||et===void 0?void 0:et.traceInfo)!==null&&_e!==void 0?_e:""},tt&&{contentFormat:tt})})},[t,e,i,n]),a=de((s,c,r,A,f)=>{var p,b,m,S,v,g,h,w,C,P,V,j,x,T;let R="";e&&(!((b=(p=s?.video)===null||p===void 0?void 0:p.bindProducts)===null||b===void 0)&&b.length||!((m=s?.video)===null||m===void 0)&&m.bindProduct)?R="pdpPage":s?.product&&(R="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:R,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:f+"",contentId:(S=s?.video)===null||S===void 0?void 0:S.itemId,ctatId:r?.itemId,traceInfo:(T=(j=(w=(v=c?.traceInfo)!==null&&v!==void 0?v:(h=(g=s?.video)===null||g===void 0?void 0:g.bindProduct)===null||h===void 0?void 0:h.traceInfo)!==null&&w!==void 0?w:(V=(P=(C=s?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||V===void 0?void 0:V.traceInfo)!==null&&j!==void 0?j:(x=s?.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]),d=de((s,c,r,A)=>{c&&c===Yi&&t?.({eventInfo:{lastFeed:s,themeTags:r?`['${r}']`:"",hashTags:A?`['${A}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:a,backMainFeed:d}}const Tl=({layout:t,columns:e,onChange:i})=>u.createElement(u.Fragment,null,e?.map((n,l)=>u.createElement("div",{key:l,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&u.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&u.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var El=je(Tl);const Il=t=>{var e,i,{columns:n,style:l,title:o,textStyle:a,submitBgColor:d,submitColor:s,submitText:c,layoutType:r="inline",isExternalLink:A,isPopup:f,onClick:p,onClose:b,submitButtonStyle:m}=t,S=rt(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=Ge(),{jumpToWeb:h}=Vt(),[w,C]=Z(!1),[P,V]=Z({}),[j,x]=Z(0),T=we(()=>[{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"}],[]),R=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),I=we(()=>bi(n)||T,[n,T]),N=de(y=>{const{name:F,value:D}=y.target;V(Object.assign(Object.assign({},P),{[F]:D}))},[P]),E=Ei(y=>mt(void 0,void 0,void 0,function*(){var F,D,B,O,k;const M=P;if(!M)return;const X=(D=(F=Object.keys(M))===null||F===void 0?void 0:F.map(q=>{var $;return{name:q,value:($=M[q])!==null&&$!==void 0?$:""}}))===null||D===void 0?void 0:D.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,$=(B=q?.video)===null||B===void 0?void 0:B.bindProduct,be=(k=(O=q?.video)===null||O===void 0?void 0:O.bindProduct)===null||k===void 0?void 0:k.bindCta,ue=g?.index;h(y,q,$,be,ue)}f||b?.(),p?.()}}),1e3);return ce(()=>{const y=()=>{var F,D;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((D=document?.body)===null||D===void 0?void 0:D.clientHeight))<R?x(50):x(0)};return window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}},[]),u.createElement("div",{className:"pb-appoint-form"},u.createElement("div",{className:`pb-appoint-form-title ${ze(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:Ve(o,a)}}),u.createElement("div",Object.assign({className:ze(Object.assign(Object.assign({},l),{marginTop:j}))},S),u.createElement("div",{className:"pb-appoint-form-container"},u.createElement(El,{columns:I,layout:r,onChange:N}))),u.createElement("div",{className:"pb-appoint-form-btn-wrapper"},u.createElement("button",{"aria-label":c,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:s,background:d},m),dangerouslySetInnerHTML:{__html:Ve(w?"loading...":c,m)}})))};var kl=je(Il);function yt(t,e){return t.extend=e,t}const Cl=yt(kl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:xl,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 Pl=[{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"]}]}],Ol=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function vo(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function An(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:vo(e[i])&&vo(t[i])&&Object.keys(e[i]).length>0&&An(t[i],e[i])})}const po={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 Ft(){const t=typeof document<"u"?document:{};return An(t,po),t}const Ll={document:po,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 Nt(){const t=typeof window<"u"?window:{};return An(t,Ll),t}function si(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function jl(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function gi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function qt(){return Date.now()}function Nl(t){const e=Nt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Ml(t,e){e===void 0&&(e="x");const i=Nt();let n,l,o;const a=Nl(t);return i.WebKitCSSMatrix?(l=a.transform||a.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(d=>d.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(l==="none"?"":l)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?l=o.m41:n.length===16?l=parseFloat(n[12]):l=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?l=o.m42:n.length===16?l=parseFloat(n[13]):l=parseFloat(n[5])),l||0}function _i(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Dl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Wt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Dl(n)){const l=Object.keys(Object(n)).filter(o=>e.indexOf(o)<0);for(let o=0,a=l.length;o<a;o+=1){const d=l[o],s=Object.getOwnPropertyDescriptor(n,d);s!==void 0&&s.enumerable&&(_i(t[d])&&_i(n[d])?n[d].__swiper__?t[d]=n[d]:Wt(t[d],n[d]):!_i(t[d])&&_i(n[d])?(t[d]={},n[d].__swiper__?t[d]=n[d]:Wt(t[d],n[d])):t[d]=n[d])}}}return t}function Zi(t,e,i){t.style.setProperty(e,i)}function mo(t){let{swiper:e,targetPosition:i,side:n}=t;const l=Nt(),o=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const c=i>o?"next":"prev",r=(f,p)=>c==="next"&&f>=p||c==="prev"&&f<=p,A=()=>{d=new Date().getTime(),a===null&&(a=d);const f=Math.max(Math.min((d-a)/s,1),0),p=.5-Math.cos(f*Math.PI)/2;let b=o+p*(i-o);if(r(b,i)&&(b=i),e.wrapperEl.scrollTo({[n]:b}),r(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:b})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(A)};A()}function Jt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Ki(t){try{console.warn(t);return}catch{}}function yi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:si(e)),i}function fo(t){const e=Nt(),i=Ft(),n=t.getBoundingClientRect(),l=i.body,o=t.clientTop||l.clientTop||0,a=t.clientLeft||l.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-o,left:n.left+s-a}}function Vl(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Rl(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ri(t,e){return Nt().getComputedStyle(t,null).getPropertyValue(e)}function Pi(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ji(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function bn(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function gn(t,e,i){const n=Nt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Qe(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let yn;function Bl(){const t=Nt(),e=Ft();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function ho(){return yn||(yn=Bl()),yn}let wn;function Fl(t){let{userAgent:e}=t===void 0?{}:t;const i=ho(),n=Nt(),l=n.navigator.platform,o=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let r=o.match(/(iPad).*OS\s([\d_]+)/);const A=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!r&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=l==="Win32";let b=l==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!r&&b&&i.touch&&m.indexOf(`${d}x${s}`)>=0&&(r=o.match(/(Version)\/([\d.]+)/),r||(r=[0,1,"13_0_0"]),b=!1),c&&!p&&(a.os="android",a.android=!0),(r||f||A)&&(a.os="ios",a.ios=!0),a}function Ao(t){return t===void 0&&(t={}),wn||(wn=Fl(t)),wn}let Sn;function Wl(){const t=Nt(),e=Ao();let i=!1;function n(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(n()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[s,c]=d.split("Version/")[1].split(" ")[0].split(".").map(r=>Number(r));i=s<16||s===16&&c<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n(),a=o||l&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:a,isWebView:l}}function zl(){return Sn||(Sn=Wl()),Sn}function Hl(t){let{swiper:e,on:i,emit:n}=t;const l=Nt();let o=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(A=>{a=l.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)&&d()})}),o.observe(e.el))},c=()=>{a&&l.cancelAnimationFrame(a),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){s();return}l.addEventListener("resize",d),l.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),l.removeEventListener("resize",d),l.removeEventListener("orientationchange",r)})}function Ul(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=[],a=Nt(),d=function(r,A){A===void 0&&(A={});const f=a.MutationObserver||a.WebkitMutationObserver,p=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){l("observerUpdate",b[0]);return}const m=function(){l("observerUpdate",b[0])};a.requestAnimationFrame?a.requestAnimationFrame(m):a.setTimeout(m,0)});p.observe(r,{attributes:typeof A.attributes>"u"?!0:A.attributes,childList:typeof A.childList>"u"?!0:A.childList,characterData:typeof A.characterData>"u"?!0:A.characterData}),o.push(p)},s=()=>{if(e.params.observer){if(e.params.observeParents){const r=Ji(e.hostEl);for(let A=0;A<r.length;A+=1)d(r[A])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},c=()=>{o.forEach(r=>{r.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Xl={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const l=i?"unshift":"push";return t.split(" ").forEach(o=>{n.eventsListeners[o]||(n.eventsListeners[o]=[]),n.eventsListeners[o][l](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function l(){n.off(t,l),l.__emitterProxy&&delete l.__emitterProxy;for(var o=arguments.length,a=new Array(o),d=0;d<o;d++)a[d]=arguments[d];e.apply(n,a)}return l.__emitterProxy=e,n.on(t,l,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((l,o)=>{(l===e||l.__emitterProxy&&l.__emitterProxy===e)&&i.eventsListeners[n].splice(o,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var l=arguments.length,o=new Array(l),a=0;a<l;a++)o[a]=arguments[a];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),n=t):(e=o[0].events,i=o[0].data,n=o[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(n,i)})}),t}};function ql(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ri(n,"padding-left")||0,10)-parseInt(ri(n,"padding-right")||0,10),i=i-parseInt(ri(n,"padding-top")||0,10)-parseInt(ri(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Yl(){const t=this;function e(T,R){return parseFloat(T.getPropertyValue(t.getDirectionLabel(R))||0)}const i=t.params,{wrapperEl:n,slidesEl:l,size:o,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Jt(l,`.${t.params.slideClass}, swiper-slide`),A=s?t.virtual.slides.length:r.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 o>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*o:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,r.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Zi(n,"--swiper-centered-offset-before",""),Zi(n,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(r):t.grid&&t.grid.unsetSlides();let j;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){j=0;let R;if(r[T]&&(R=r[T]),V&&t.grid.updateSlide(T,R,r),!(r[T]&&ri(R,"display")==="none")){if(i.slidesPerView==="auto"){x&&(r[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(R),N=R.style.transform,E=R.style.webkitTransform;if(N&&(R.style.transform="none"),E&&(R.style.webkitTransform="none"),i.roundLengths)j=t.isHorizontal()?gn(R,"width",!0):gn(R,"height",!0);else{const y=e(I,"width"),F=e(I,"padding-left"),D=e(I,"padding-right"),B=e(I,"margin-left"),O=e(I,"margin-right"),k=I.getPropertyValue("box-sizing");if(k&&k==="border-box")j=y+B+O;else{const{clientWidth:M,offsetWidth:X}=R;j=y+F+D+B+O+(X-M)}}N&&(R.style.transform=N),E&&(R.style.webkitTransform=E),i.roundLengths&&(j=Math.floor(j))}else j=(o-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(j=Math.floor(j)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${j}px`);r[T]&&(r[T].swiperSlideSize=j),b.push(j),i.centeredSlides?(w=w+j/2+C/2+h,C===0&&T!==0&&(w=w-o/2-h),T===0&&(w=w-o/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+j+h),t.virtualSize+=j+h,C=j,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+S,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),V&&t.grid.updateWrapperSize(j,f),!i.centeredSlides){const T=[];for(let R=0;R<f.length;R+=1){let I=f[R];i.roundLengths&&(I=Math.floor(I)),f[R]<=t.virtualSize-o&&T.push(I)}f=T,Math.floor(t.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-o)}if(s&&i.loop){const T=b[0]+h;if(i.slidesPerGroup>1){const R=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let N=0;N<R;N+=1)f.push(f[f.length-1]+I)}for(let R=0;R<t.virtual.slidesBefore+t.virtual.slidesAfter;R+=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()&&a?"marginLeft":t.getDirectionLabel("marginRight");r.filter((R,I)=>!i.cssMode||i.loop?!0:I!==r.length-1).forEach(R=>{R.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(I=>{T+=I+(h||0)}),T-=h;const R=T-o;f=f.map(I=>I<=0?-m:I>R?R+S:I)}if(i.centerInsufficientSlides){let T=0;b.forEach(I=>{T+=I+(h||0)}),T-=h;const R=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+R<o){const I=(o-T-R)/2;f.forEach((N,E)=>{f[E]=N-I}),p.forEach((N,E)=>{p[E]=N+I})}}if(Object.assign(t,{slides:r,snapGrid:f,slidesGrid:p,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Zi(n,"--swiper-centered-offset-before",`${-f[0]}px`),Zi(n,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],R=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+R)}if(A!==c&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,R=t.el.classList.contains(T);A<=i.maxBackfaceHiddenSlides?R||t.el.classList.add(T):R&&t.el.classList.remove(T)}}function Gl(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let l=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>n?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const d=e.activeIndex+o;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const d=i[o].offsetHeight;l=d>l?d:l}(l||l===0)&&(e.wrapperEl.style.height=`${l}px`)}function _l(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const bo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Zl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:l,snapGrid:o}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;l&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let s=0;s<n.length;s+=1){const c=n[s];let r=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(r-=n[0].swiperSlideOffset);const A=(a+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),f=(a-o[0]+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),p=-(a-r),b=p+e.slidesSizesGrid[s],m=p>=0&&p<=e.size-e.slidesSizesGrid[s],S=p>=0&&p<e.size-1||b>1&&b<=e.size||p<=0&&b>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s)),bo(c,S,i.slideVisibleClass),bo(c,m,i.slideFullyVisibleClass),c.progress=l?-A:A,c.originalProgress=l?-f:f}}function Kl(t){const e=this;if(typeof t>"u"){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:l,isBeginning:o,isEnd:a,progressLoop:d}=e;const s=o,c=a;if(n===0)l=0,o=!0,a=!0;else{l=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,A=Math.abs(t-e.maxTranslate())<1;o=r||l<=0,a=A||l>=1,r&&(l=0),A&&(l=1)}if(i.loop){const r=e.getSlideIndexByData(0),A=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[r],p=e.slidesGrid[A],b=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=f?d=(m-f)/b:d=(m+b-p)/b,d>1&&(d-=1)}Object.assign(e,{progress:l,progressLoop:d,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!o||c&&!a)&&e.emit("fromEdge"),e.emit("progress",l)}const xn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Jl(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:l}=t,o=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=A=>Jt(n,`.${i.slideClass}${A}, swiper-slide${A}`)[0];let s,c,r;if(o)if(i.loop){let A=l-t.virtual.slidesBefore;A<0&&(A=t.virtual.slides.length+A),A>=t.virtual.slides.length&&(A-=t.virtual.slides.length),s=d(`[data-swiper-slide-index="${A}"]`)}else s=d(`[data-swiper-slide-index="${l}"]`);else a?(s=e.filter(A=>A.column===l)[0],r=e.filter(A=>A.column===l+1)[0],c=e.filter(A=>A.column===l-1)[0]):s=e[l];s&&(a||(r=Rl(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Vl(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(A=>{xn(A,A===s,i.slideActiveClass),xn(A,A===r,i.slideNextClass),xn(A,A===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Qi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let l=n.querySelector(`.${t.params.lazyPreloaderClass}`);!l&&t.isElement&&(n.shadowRoot?l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),l&&l.remove())})),l&&l.remove()}},Tn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},En=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),l=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=l,d=[a-e];d.push(...Array.from({length:e}).map((s,c)=>a+n+c)),t.slides.forEach((s,c)=>{d.includes(s.column)&&Tn(t,c)});return}const o=l+n-1;if(t.params.rewind||t.params.loop)for(let a=l-e;a<=o+e;a+=1){const d=(a%i+i)%i;(d<l||d>o)&&Tn(t,d)}else for(let a=Math.max(l-e,0);a<=Math.min(o+e,i-1);a+=1)a!==l&&(a>o||a<l)&&Tn(t,a)};function Ql(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let l;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?n>=e[o]&&n<e[o+1]-(e[o+1]-e[o])/2?l=o:n>=e[o]&&n<e[o+1]&&(l=o+1):n>=e[o]&&(l=o);return i.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function $l(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:l,activeIndex:o,realIndex:a,snapIndex:d}=e;let s=t,c;const r=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 s>"u"&&(s=Ql(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const p=Math.min(l.slidesPerGroupSkip,s);c=p+Math.floor((s-p)/l.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===o&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const A=e.grid&&l.grid&&l.grid.rows>1;let f;if(e.virtual&&l.virtual.enabled&&l.loop)f=r(s);else if(A){const p=e.slides.filter(m=>m.column===s)[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/l.grid.rows)}else if(e.slides[s]){const p=e.slides[s].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=s}else f=s;Object.assign(e,{previousSnapIndex:d,snapIndex:c,previousRealIndex:a,realIndex:f,previousIndex:o,activeIndex:s}),e.initialized&&En(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function ea(t,e){const i=this,n=i.params;let l=t.closest(`.${n.slideClass}, swiper-slide`);!l&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!l&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(l=d)});let o=!1,a;if(l){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===l){o=!0,a=d;break}}if(l&&o)i.clickedSlide=l,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var ta={updateSize:ql,updateSlides:Yl,updateAutoHeight:Gl,updateSlidesOffset:_l,updateSlidesProgress:Zl,updateProgress:Kl,updateSlidesClasses:Jl,updateActiveIndex:$l,updateClickedSlide:ea};function ia(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:l,wrapperEl:o}=e;if(i.virtualTranslate)return n?-l:l;if(i.cssMode)return l;let a=Ml(o,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function na(t,e){const i=this,{rtlTranslate:n,params:l,wrapperEl:o,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,l.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,l.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:l.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${d}px, ${s}px, ${c}px)`);let r;const A=i.maxTranslate()-i.minTranslate();A===0?r=0:r=(t-i.minTranslate())/A,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function oa(){return-this.snapGrid[0]}function la(){return-this.snapGrid[this.snapGrid.length-1]}function aa(t,e,i,n,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const o=this,{params:a,wrapperEl:d}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const s=o.minTranslate(),c=o.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,o.updateProgress(r),a.cssMode){const A=o.isHorizontal();if(e===0)d[A?"scrollLeft":"scrollTop"]=-r;else{if(!o.support.smoothScroll)return mo({swiper:o,targetPosition:-r,side:A?"left":"top"}),!0;d.scrollTo({[A?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,l),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,l),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var sa={getTranslate:ia,setTranslate:na,minTranslate:oa,maxTranslate:la,translateTo:aa};function ra(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 go(t){let{swiper:e,runCallbacks:i,direction:n,step:l}=t;const{activeIndex:o,previousIndex:a}=e;let d=n;if(d||(o>a?d="next":o<a?d="prev":d="reset"),e.emit(`transition${l}`),i&&o!==a){if(d==="reset"){e.emit(`slideResetTransition${l}`);return}e.emit(`slideChangeTransition${l}`),d==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`)}}function da(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),go({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function ca(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),go({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var ua={setTransition:ra,transitionStart:da,transitionEnd:ca};function va(t,e,i,n,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:s,slidesGrid:c,previousIndex:r,activeIndex:A,rtlTranslate:f,wrapperEl:p,enabled:b}=o;if(!b&&!n&&!l||o.destroyed||o.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,a);let S=m+Math.floor((a-m)/o.params.slidesPerGroup);S>=s.length&&(S=s.length-1);const v=-s[S];if(d.normalizeSlideIndex)for(let h=0;h<c.length;h+=1){const w=-Math.floor(v*100),C=Math.floor(c[h]*100),P=Math.floor(c[h+1]*100);typeof c[h+1]<"u"?w>=C&&w<P-(P-C)/2?a=h:w>=C&&w<P&&(a=h+1):w>=C&&(a=h)}if(o.initialized&&a!==A&&(!o.allowSlideNext&&(f?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate())||!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(A||0)!==a))return!1;a!==(r||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(v);let g;if(a>A?g="next":a<A?g="prev":g="reset",f&&-v===o.translate||!f&&v===o.translate)return o.updateActiveIndex(a),d.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),d.effect!=="slide"&&o.setTranslate(v),g!=="reset"&&(o.transitionStart(i,g),o.transitionEnd(i,g)),!1;if(d.cssMode){const h=o.isHorizontal(),w=f?v:-v;if(e===0){const C=o.virtual&&o.params.virtual.enabled;C&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),C&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[h?"scrollLeft":"scrollTop"]=w})):p[h?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return mo({swiper:o,targetPosition:w,side:h?"left":"top"}),!0;p.scrollTo({[h?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,g),e===0?o.transitionEnd(i,g):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,g))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function pa(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;if(l.destroyed)return;typeof e>"u"&&(e=l.params.speed);const o=l.grid&&l.params.grid&&l.params.grid.rows>1;let a=t;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)a=a+l.virtual.slidesBefore;else{let d;if(o){const f=a*l.params.grid.rows;d=l.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else d=l.getSlideIndexByData(a);const s=o?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:c}=l.params;let r=l.params.slidesPerView;r==="auto"?r=l.slidesPerViewDynamic():(r=Math.ceil(parseFloat(l.params.slidesPerView,10)),c&&r%2===0&&(r=r+1));let A=s-d<r;if(c&&(A=A||d<Math.ceil(r/2)),n&&c&&l.params.slidesPerView!=="auto"&&!o&&(A=!1),A){const f=c?d<l.activeIndex?"prev":"next":d-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?d+1:d-s+1,slideRealIndex:f==="next"?l.realIndex:void 0})}if(o){const f=a*l.params.grid.rows;a=l.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=l.getSlideIndexByData(a)}return requestAnimationFrame(()=>{l.slideTo(a,e,i,n)}),l}function ma(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:l,params:o,animating:a}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<o.slidesPerGroupSkip?1:d,c=n.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function fa(t,e,i){e===void 0&&(e=!0);const n=this,{params:l,snapGrid:o,slidesGrid:a,rtlTranslate:d,enabled:s,animating:c}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const r=n.virtual&&l.virtual.enabled;if(l.loop){if(c&&!r&&l.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const A=d?n.translate:-n.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=f(A),b=o.map(v=>f(v));let m=o[b.indexOf(p)-1];if(typeof m>"u"&&l.cssMode){let v;o.forEach((g,h)=>{p>=g&&(v=h)}),typeof v<"u"&&(m=o[v>0?v-1:v])}let S=0;if(typeof m<"u"&&(S=a.indexOf(m),S<0&&(S=n.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),l.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(l.loop&&n.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,t,e,i)}),!0;return n.slideTo(S,t,e,i)}function ha(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function Aa(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const l=this;if(l.destroyed)return;typeof t>"u"&&(t=l.params.speed);let o=l.activeIndex;const a=Math.min(l.params.slidesPerGroupSkip,o),d=a+Math.floor((o-a)/l.params.slidesPerGroup),s=l.rtlTranslate?l.translate:-l.translate;if(s>=l.snapGrid[d]){const c=l.snapGrid[d],r=l.snapGrid[d+1];s-c>(r-c)*n&&(o+=l.params.slidesPerGroup)}else{const c=l.snapGrid[d-1],r=l.snapGrid[d];s-c<=(r-c)*n&&(o-=l.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,l.slidesGrid.length-1),l.slideTo(o,t,e,i)}function ba(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let l=t.clickedIndex,o;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?l<t.loopedSlides-n/2||l>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),l=t.getSlideIndex(Jt(i,`${a}[data-swiper-slide-index="${o}"]`)[0]),gi(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-n?(t.loopFix(),l=t.getSlideIndex(Jt(i,`${a}[data-swiper-slide-index="${o}"]`)[0]),gi(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}var ga={slideTo:va,slideToLoop:pa,slideNext:ma,slidePrev:fa,slideReset:ha,slideToClosest:Aa,slideToClickedSlide:ba};function ya(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const l=()=>{Jt(n,`.${i.slideClass}, swiper-slide`).forEach((A,f)=>{A.setAttribute("data-swiper-slide-index",f)})},o=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(o?i.grid.rows:1),d=e.slides.length%a!==0,s=o&&e.slides.length%i.grid.rows!==0,c=r=>{for(let A=0;A<r;A+=1){const f=e.isElement?yi("swiper-slide",[i.slideBlankClass]):yi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(d){if(i.loopAddBlankSlides){const r=a-e.slides.length%a;c(r),e.recalcSlides(),e.updateSlides()}else Ki("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)");l()}else if(s){if(i.loopAddBlankSlides){const r=i.grid.rows-e.slides.length%i.grid.rows;c(r),e.recalcSlides(),e.updateSlides()}else Ki("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)");l()}else l();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function wa(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:l,activeSlideIndex:o,byController:a,byMousewheel:d}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:c,allowSlidePrev:r,allowSlideNext:A,slidesEl:f,params:p}=s,{centeredSlides:b}=p;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):p.centeredSlides&&s.snapIndex<p.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=r,s.allowSlideNext=A,s.emit("loopFix");return}let m=p.slidesPerView;m==="auto"?m=s.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,s.loopedSlides=v;const g=s.grid&&p.grid&&p.grid.rows>1;c.length<m+v?Ki("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"&&Ki("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],w=[];let C=s.activeIndex;typeof o>"u"?o=s.getSlideIndex(c.filter(N=>N.classList.contains(p.slideActiveClass))[0]):C=o;const P=n==="next"||!n,V=n==="prev"||!n;let j=0,x=0;const T=g?Math.ceil(c.length/p.grid.rows):c.length,I=(g?c[o].column:o)+(b&&typeof l>"u"?-m/2+.5:0);if(I<v){j=Math.max(v-I,S);for(let N=0;N<v-I;N+=1){const E=N-Math.floor(N/T)*T;if(g){const y=T-E-1;for(let F=c.length-1;F>=0;F-=1)c[F].column===y&&h.push(F)}else h.push(T-E-1)}}else if(I+m>T-v){x=Math.max(I-(T-v*2),S);for(let N=0;N<x;N+=1){const E=N-Math.floor(N/T)*T;g?c.forEach((y,F)=>{y.column===E&&w.push(F)}):w.push(E)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),V&&h.forEach(N=>{c[N].swiperLoopMoveDOM=!0,f.prepend(c[N]),c[N].swiperLoopMoveDOM=!1}),P&&w.forEach(N=>{c[N].swiperLoopMoveDOM=!0,f.append(c[N]),c[N].swiperLoopMoveDOM=!1}),s.recalcSlides(),p.slidesPerView==="auto"?s.updateSlides():g&&(h.length>0&&V||w.length>0&&P)&&s.slides.forEach((N,E)=>{s.grid.updateSlide(E,N,s.slides)}),p.watchSlidesProgress&&s.updateSlidesOffset(),i){if(h.length>0&&V){if(typeof e>"u"){const N=s.slidesGrid[C],y=s.slidesGrid[C+j]-N;d?s.setTranslate(s.translate-y):(s.slideTo(C+Math.ceil(j),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-y,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-y))}else if(l){const N=g?h.length/p.grid.rows:h.length;s.slideTo(s.activeIndex+N,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&P)if(typeof e>"u"){const N=s.slidesGrid[C],y=s.slidesGrid[C-x]-N;d?s.setTranslate(s.translate-y):(s.slideTo(C-x,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-y,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-y))}else{const N=g?w.length/p.grid.rows:w.length;s.slideTo(s.activeIndex-N,0,!1,!0)}}if(s.allowSlidePrev=r,s.allowSlideNext=A,s.controller&&s.controller.control&&!a){const N={slideRealIndex:e,direction:n,setTranslate:l,activeSlideIndex:o,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...N,slideTo:E.params.slidesPerView===p.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...N,slideTo:s.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}s.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 n=[];t.slides.forEach(l=>{const o=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;n[o]=l}),t.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),n.forEach(l=>{i.append(l)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var xa={loopCreate:ya,loopFix:wa,loopDestroy:Sa};function Ta(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 Ea(){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 Ia={setGrabCursor:Ta,unsetGrabCursor:Ea};function ka(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Ft()||n===Nt())return null;n.assignedSlot&&(n=n.assignedSlot);const l=n.closest(t);return!l&&!n.getRootNode?null:l||i(n.getRootNode().host)}return i(e)}function yo(t,e,i){const n=Nt(),{params:l}=t,o=l.edgeSwipeDetection,a=l.edgeSwipeThreshold;return o&&(i<=a||i>=n.innerWidth-a)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function Ca(t){const e=this,i=Ft();let n=t;n.originalEvent&&(n=n.originalEvent);const l=e.touchEventsData;if(n.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==n.pointerId)return;l.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(l.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){yo(e,n,n.targetTouches[0].pageX);return}const{params:o,touches:a,enabled:d}=e;if(!d||!o.simulateTouch&&n.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let s=n.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||l.isTouched&&l.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const A=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(f?ka(A,s):s.closest(A))){e.allowClick=!0;return}if(o.swipeHandler&&!s.closest(o.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const p=a.currentX,b=a.currentY;if(!yo(e,n,p))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=b,l.touchStartTime=qt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(l.allowThresholdMove=!1);let m=!0;s.matches(l.focusableElements)&&(m=!1,s.nodeName==="SELECT"&&(l.isTouched=!1)),i.activeElement&&i.activeElement.matches(l.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const S=m&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||S)&&!s.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Pa(t){const e=Ft(),i=this,n=i.touchEventsData,{params:l,touches:o,rtlTranslate:a,enabled:d}=i;if(!d||!l.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let c;if(s.type==="touchmove"){if(c=[...s.changedTouches].filter(P=>P.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const r=c.pageX,A=c.pageY;if(s.preventedByNestedSwiper){o.startX=r,o.startY=A;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:r,startY:A,currentX:r,currentY:A}),n.touchStartTime=qt());return}if(l.touchReleaseOnEdges&&!l.loop){if(i.isVertical()){if(A<o.startY&&i.translate<=i.maxTranslate()||A>o.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<o.startX&&i.translate<=i.maxTranslate()||r>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=r,o.currentY=A;const f=o.currentX-o.startX,p=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+p**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:f*f+p*p>=25&&(P=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,n.isScrolling=i.isHorizontal()?P>l.touchAngle:90-P>l.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!l.cssMode&&s.cancelable&&s.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&s.stopPropagation();let b=i.isHorizontal()?f:p,m=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;l.oneWayMovement&&(b=Math.abs(b)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=b,b*=l.touchRatio,a&&(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&&!l.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}n.allowMomentumBounce=!1,l.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let h;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(b)>=1){Object.assign(o,{startX:r,startY:A,currentX:r,currentY:A,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=b+n.startTranslate;let w=!0,C=l.resistanceRatio;if(l.touchReleaseOnEdges&&(C=0),b>0?(v&&g&&!h&&n.allowThresholdMove&&n.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,l.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+b)**C))):b<0&&(v&&g&&!h&&n.allowThresholdMove&&n.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(l.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,l.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-b)**C))),w&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),l.threshold>0)if(Math.abs(b)>l.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{n.currentTranslate=n.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Oa(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let l;if(n.type==="touchend"||n.type==="touchcancel"){if(l=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!l||l.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;l=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:s,slidesGrid:c,enabled:r}=e;if(!r||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const A=qt(),f=A-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),f<300&&A-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=qt(),gi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(a.followFinger?p=s?e.translate:-e.translate:p=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const b=p>=-e.maxTranslate()&&!e.params.loop;let m=0,S=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const P=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[C+P]<"u"?(b||p>=c[C]&&p<c[C+P])&&(m=C,S=c[C+P]-c[C]):(b||p>=c[C])&&(m=C,S=c[c.length-1]-c[c.length-2])}let v=null,g=null;a.rewind&&(e.isBeginning?g=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(p-c[m])/S,w=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?v:m+w):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-a.longSwipesRatio?e.slideTo(m+w):g!==null&&h<0&&Math.abs(h)>a.longSwipesRatio?e.slideTo(g):e.slideTo(m))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(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 wo(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:l,snapGrid:o}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=l,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function La(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function ja(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let l;const o=t.maxTranslate()-t.minTranslate();o===0?l=0:l=(t.translate-t.minTranslate())/o,l!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Na(t){const e=this;Qi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Ma(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const So=(t,e)=>{const i=Ft(),{params:n,el:l,wrapperEl:o,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!l||typeof l=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),l[s]("touchstart",t.onTouchStart,{passive:!1}),l[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:d}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&l[s]("click",t.onClick,!0),n.cssMode&&o[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",wo,!0):t[c]("observerUpdate",wo,!0),l[s]("load",t.onLoad,{capture:!0}))};function Da(){const t=this,{params:e}=t;t.onTouchStart=Ca.bind(t),t.onTouchMove=Pa.bind(t),t.onTouchEnd=Oa.bind(t),t.onDocumentTouchStart=Ma.bind(t),e.cssMode&&(t.onScroll=ja.bind(t)),t.onClick=La.bind(t),t.onLoad=Na.bind(t),So(t,"on")}function Va(){So(this,"off")}var Ra={attachEvents:Da,detachEvents:Va};const xo=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Ba(){const t=this,{realIndex:e,initialized:i,params:n,el:l}=t,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in o?o[a]:void 0)||t.originalParams,c=xo(t,n),r=xo(t,s),A=t.params.grabCursor,f=s.grabCursor,p=n.enabled;c&&!r?(l.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(l.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&l.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),A&&!f?t.unsetGrabCursor():!A&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof s[h]>"u")return;const w=n[h]&&n[h].enabled,C=s[h]&&s[h].enabled;w&&!C&&t[h].disable(),!w&&C&&t[h].enable()});const b=s.direction&&s.direction!==n.direction,m=n.loop&&(s.slidesPerView!==n.slidesPerView||b),S=n.loop;b&&i&&t.changeDirection(),Wt(t.params,s);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=a,t.emit("_beforeBreakpoint",s),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",s)}function Fa(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const l=Nt(),o=e==="window"?l.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:o*s,point:d}}return{value:d,point:d}});a.sort((d,s)=>parseInt(d.value,10)-parseInt(s.value,10));for(let d=0;d<a.length;d+=1){const{point:s,value:c}=a[d];e==="window"?l.matchMedia(`(min-width: ${c}px)`).matches&&(n=s):c<=i.clientWidth&&(n=s)}return n||"max"}var Wa={setBreakpoint:Ba,getBreakpoint:Fa};function za(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(l=>{n[l]&&i.push(e+l)}):typeof n=="string"&&i.push(e+n)}),i}function Ha(){const t=this,{classNames:e,params:i,rtl:n,el:l,device:o}=t,a=za(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),l.classList.add(...e),t.emitContainerClasses()}function Ua(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Xa={addClasses:Ha,removeClasses:Ua};function qa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const l=t.slides.length-1,o=t.slidesGrid[l]+t.slidesSizesGrid[l]+n*2;t.isLocked=t.size>o}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 Ya={checkOverflow:qa},In={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 Ga(t,e){return function(n){n===void 0&&(n={});const l=Object.keys(n)[0],o=n[l];if(typeof o!="object"||o===null){Wt(e,n);return}if(t[l]===!0&&(t[l]={enabled:!0}),l==="navigation"&&t[l]&&t[l].enabled&&!t[l].prevEl&&!t[l].nextEl&&(t[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&t[l]&&t[l].enabled&&!t[l].el&&(t[l].auto=!0),!(l in t&&"enabled"in o)){Wt(e,n);return}typeof t[l]=="object"&&!("enabled"in t[l])&&(t[l].enabled=!0),t[l]||(t[l]={enabled:!1}),Wt(e,n)}}const kn={eventsEmitter:Xl,update:ta,translate:sa,transition:ua,slide:ga,loop:xa,grabCursor:Ia,events:Ra,breakpoints:Wa,checkOverflow:Ya,classes:Xa},Cn={};let Pn=class ni{constructor(){let e,i;for(var n=arguments.length,l=new Array(n),o=0;o<n;o++)l[o]=arguments[o];l.length===1&&l[0].constructor&&Object.prototype.toString.call(l[0]).slice(8,-1)==="Object"?i=l[0]:[e,i]=l,i||(i={}),i=Wt({},i),e&&!i.el&&(i.el=e);const a=Ft();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const r=[];return a.querySelectorAll(i.el).forEach(A=>{const f=Wt({},i,{el:A});r.push(new ni(f))}),r}const d=this;d.__swiper__=!0,d.support=ho(),d.device=Ao({userAgent:i.userAgent}),d.browser=zl(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const s={};d.modules.forEach(r=>{r({params:i,swiper:d,extendParams:Ga(i,s),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const c=Wt({},In,s);return d.params=Wt({},c,Cn,i),d.originalParams=Wt({},d.params),d.passedParams=Wt({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(r=>{d.on(r,d.params.on[r])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,l=Jt(i,`.${n.slideClass}, swiper-slide`),o=Pi(l[0]);return Pi(e)-o}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Jt(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const l=n.minTranslate(),a=(n.maxTranslate()-l)*e+l;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const l=e.getSlideClasses(n);i.push({slideEl:n,classNames:l}),e.emit("_slideClass",n,l)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:l,slides:o,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let A=o[c]?Math.ceil(o[c].swiperSlideSize):0,f;for(let p=c+1;p<o.length;p+=1)o[p]&&!f&&(A+=Math.ceil(o[p].swiperSlideSize),r+=1,A>s&&(f=!0));for(let p=c-1;p>=0;p-=1)o[p]&&!f&&(A+=o[p].swiperSlideSize,r+=1,A>s&&(f=!0))}else if(e==="current")for(let A=c+1;A<o.length;A+=1)(i?a[A]+d[A]-a[c]<s:a[A]-a[c]<s)&&(r+=1);else for(let A=c-1;A>=0;A-=1)a[c]-a[A]<s&&(r+=1);return r}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Qi(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function l(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)l(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(a.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||l()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,l=n.params.direction;return e||(e=l==="horizontal"?"vertical":"horizontal"),e===l||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${l}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(o=>{e==="vertical"?o.style.width="":o.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const l=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(l()):Jt(n,l())[0];return!a&&i.params.createElements&&(a=yi("div",i.params.wrapperClass),n.append(a),Jt(n,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||ri(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ri(n,"direction")==="rtl"),wrongRTL:ri(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const l=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&l.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(o=>{o.complete?Qi(i,o):o.addEventListener("load",a=>{Qi(i,a.target)})}),En(i),i.initialized=!0,En(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:l,el:o,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),l.loop&&n.loopDestroy(),i&&(n.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),jl(n)),n.destroyed=!0),null}static extendDefaults(e){Wt(Cn,e)}static get extendedDefaults(){return Cn}static get defaults(){return In}static installModule(e){ni.prototype.__modules__||(ni.prototype.__modules__=[]);const i=ni.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>ni.installModule(i)),ni):(ni.installModule(e),ni)}};Object.keys(kn).forEach(t=>{Object.keys(kn[t]).forEach(e=>{Pn.prototype[e]=kn[t][e]})}),Pn.use([Hl,Ul]);const To=["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 mi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function wi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:mi(e[n])&&mi(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:wi(t[n],e[n]):t[n]=e[n]})}function Eo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Io(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function ko(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Co(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function _a(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Za(t){let{swiper:e,slides:i,passedParams:n,changedParams:l,nextEl:o,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=l.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:r,pagination:A,navigation:f,scrollbar:p,virtual:b,thumbs:m}=e;let S,v,g,h,w,C,P,V;l.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(S=!0),l.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(v=!0),l.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&A&&!A.el&&(g=!0),l.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&p&&!p.el&&(h=!0),l.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||o)&&(r.navigation||r.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const j=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),r[x].prevEl=void 0,r[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),r[x].el=void 0,e[x].el=void 0))};l.includes("loop")&&e.isElement&&(r.loop&&!n.loop?C=!0:!r.loop&&n.loop?P=!0:V=!0),c.forEach(x=>{if(mi(r[x])&&mi(n[x]))Object.assign(r[x],n[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in n[x]&&!n[x].enabled&&j(x);else{const T=n[x];(T===!0||T===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?T===!1&&j(x):r[x]=n[x]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&r.controller&&r.controller.control&&(e.controller.control=r.controller.control),l.includes("children")&&i&&b&&r.virtual.enabled?(b.slides=i,b.update(!0)):l.includes("virtual")&&b&&r.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),l.includes("children")&&i&&r.loop&&(V=!0),S&&m.init()&&m.update(!0),v&&(e.controller.control=r.controller.control),g&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(r.pagination.el=s),A.init(),A.render(),A.update()),h&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(r.scrollbar.el=d),p.init(),p.updateSize(),p.setTranslate()),w&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=e.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),e.el.appendChild(o)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),o&&(r.navigation.nextEl=o),a&&(r.navigation.prevEl=a),f.init(),f.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),l.includes("direction")&&e.changeDirection(n.direction,!1),(C||V)&&e.loopDestroy(),(P||V)&&e.loopCreate(),e.update()}function Ka(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},l={};wi(i,In),i._emitClasses=!0,i.init=!1;const o={},a=To.map(s=>s.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?mi(t[s])?(i[s]={},l[s]={},wi(i[s],t[s]),wi(l[s],t[s])):(i[s]=t[s],l[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:o[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:l,rest:o,events:n}}function Ja(t,e){let{el:i,nextEl:n,prevEl:l,paginationEl:o,scrollbarEl:a,swiper:d}=t;Eo(e)&&n&&l&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=l,d.originalParams.navigation.prevEl=l),Io(e)&&o&&(d.params.pagination.el=o,d.originalParams.pagination.el=o),ko(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function Qa(t,e,i,n,l){const o=[];if(!e)return o;const a=s=>{o.indexOf(s)<0&&o.push(s)};if(i&&n){const s=n.map(l),c=i.map(l);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return To.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(mi(t[s])&&mi(e[s])){const c=Object.keys(t[s]),r=Object.keys(e[s]);c.length!==r.length?a(s):(c.forEach(A=>{t[s][A]!==e[s][A]&&a(s)}),r.forEach(A=>{t[s][A]!==e[s][A]&&a(s)}))}else t[s]!==e[s]&&a(s)}),o}const $a=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 $i(){return $i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},$i.apply(this,arguments)}function Po(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Oo(t){const e=[];return u.Children.toArray(t).forEach(i=>{Po(i)?e.push(i):i.props&&i.props.children&&Oo(i.props.children).forEach(n=>e.push(n))}),e}function es(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return u.Children.toArray(t).forEach(n=>{if(Po(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const l=Oo(n.props.children);l.length>0?l.forEach(o=>e.push(o)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function ts(t,e,i){if(!i)return null;const n=r=>{let A=r;return r<0?A=e.length+r:A>=e.length&&(A=A-e.length),A},l=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:a}=i,d=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,c=[];for(let r=d;r<s;r+=1)r>=o&&r<=a&&c.push(e[n(r)]);return c.map((r,A)=>u.cloneElement(r,{swiper:t,style:l,key:r.props.virtualIndex||r.key||`slide-${A}`}))}function Oi(t,e){return typeof window>"u"?ce(t,e):Jo(t,e)}const On=ki(null),Li=()=>Ii(On),is=ki(null),ei=vi(function(t,e){let{className:i,tag:n="div",wrapperTag:l="div",children:o,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=Z("swiper"),[A,f]=Z(null),[p,b]=Z(!1),m=fe(!1),S=fe(null),v=fe(null),g=fe(null),h=fe(null),w=fe(null),C=fe(null),P=fe(null),V=fe(null),{params:j,passedParams:x,rest:T,events:R}=Ka(d),{slides:I,slots:N}=es(o),E=()=>{b(!p)};Object.assign(j.on,{_containerClasses(O,k){r(k)}});const y=()=>{Object.assign(j.on,R),s=!0;const O={...j};if(delete O.wrapperClass,v.current=new Pn(O),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=I;const k={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};wi(v.current.params.virtual,k),wi(v.current.originalParams.virtual,k)}};S.current||y(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{s||!R||!v.current||Object.keys(R).forEach(O=>{v.current.on(O,R[O])})},D=()=>{!R||!v.current||Object.keys(R).forEach(O=>{v.current.off(O,R[O])})};ce(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),ce(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),Oi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&y(),Ja({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:V.current,swiper:v.current},j),a&&!v.current.destroyed&&a(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Oi(()=>{F();const O=Qa(x,g.current,I,h.current,k=>k.key);return g.current=x,h.current=I,O.length&&v.current&&!v.current.destroyed&&Za({swiper:v.current,slides:I,passedParams:x,changedParams:O,nextEl:w.current,prevEl:C.current,scrollbarEl:V.current,paginationEl:P.current}),()=>{D()}}),Oi(()=>{$a(v.current)},[A]);function B(){return j.virtual?ts(v.current,I,A):I.map((O,k)=>u.cloneElement(O,{swiper:v.current,swiperSlideIndex:k}))}return u.createElement(n,$i({ref:S,className:Co(`${c}${i?` ${i}`:""}`)},T),u.createElement(is.Provider,{value:v.current},N["container-start"],u.createElement(l,{className:_a(j.wrapperClass)},N["wrapper-start"],B(),N["wrapper-end"]),Eo(j)&&u.createElement(u.Fragment,null,u.createElement("div",{ref:C,className:"swiper-button-prev"}),u.createElement("div",{ref:w,className:"swiper-button-next"})),ko(j)&&u.createElement("div",{ref:V,className:"swiper-scrollbar"}),Io(j)&&u.createElement("div",{ref:P,className:"swiper-pagination"}),N["container-end"]))});ei.displayName="Swiper";const zt=vi(function(t,e){let{tag:i="div",children:n,className:l="",swiper:o,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const A=fe(null),[f,p]=Z("swiper-slide"),[b,m]=Z(!1);function S(w,C,P){C===A.current&&p(P)}Oi(()=>{if(typeof c<"u"&&(A.current.swiperSlideIndex=c),e&&(e.current=A.current),!(!A.current||!o)){if(o.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),Oi(()=>{o&&A.current&&!o.destroyed&&p(o.getSlideClasses(A.current))},[o]);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 n=="function"?n(v):n,h=()=>{m(!0)};return u.createElement(i,$i({ref:A,className:Co(`${f}${l?` ${l}`:""}`),"data-swiper-slide-index":s,onLoad:h},r),a&&u.createElement(On.Provider,{value:v},u.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},g(),d&&!b&&u.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&u.createElement(On.Provider,{value:v},g(),d&&!b&&u.createElement("div",{className:"swiper-lazy-preloader"})))});zt.displayName="SwiperSlide";function Ln(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Ft(),a=Nt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function d(r){if(!e.enabled)return;const{rtlTranslate:A}=e;let f=r;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)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(m||S||v||g||h||w)){let C=!1;if(Ji(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ji(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,V=P.clientWidth,j=P.clientHeight,x=a.innerWidth,T=a.innerHeight,R=fo(P);A&&(R.left-=P.scrollLeft);const I=[[R.left,R.top],[R.left+V,R.top],[R.left,R.top+j],[R.left+V,R.top+j]];for(let N=0;N<I.length;N+=1){const E=I[N];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()),l("keyPress",p)}}function s(){e.keyboard.enabled||(o.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(o.removeEventListener("keydown",d),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function en(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Nt();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,d=qt(),s;const c=[];function r(h){let V=0,j=0,x=0,T=0;return"detail"in h&&(j=h.detail),"wheelDelta"in h&&(j=-h.wheelDelta/120),"wheelDeltaY"in h&&(j=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(V=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(V=j,j=0),x=V*10,T=j*10,"deltaY"in h&&(T=h.deltaY),"deltaX"in h&&(x=h.deltaX),h.shiftKey&&!x&&(x=T,T=0),(x||T)&&h.deltaMode&&(h.deltaMode===1?(x*=40,T*=40):(x*=800,T*=800)),x&&!V&&(V=x<1?-1:1),T&&!j&&(j=T<1?-1:1),{spinX:V,spinY:j,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&&qt()-d<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&qt()-d<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),l("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),l("scroll",h.raw)),d=new o.Date().getTime(),!1)}function b(h){const w=e.params.mousewheel;if(h.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function m(h){let w=h,C=!0;if(!e.enabled||h.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let V=e.el;e.params.mousewheel.eventsTarget!=="container"&&(V=document.querySelector(e.params.mousewheel.eventsTarget));const j=V&&V.contains(w.target);if(!e.mouseEntered&&!j&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let x=0;const T=e.rtlTranslate?-1:1,R=r(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(R.pixelX)>Math.abs(R.pixelY))x=-R.pixelX*T;else return!0;else if(Math.abs(R.pixelY)>Math.abs(R.pixelX))x=-R.pixelY;else return!0;else x=Math.abs(R.pixelX)>Math.abs(R.pixelY)?-R.pixelX*T:-R.pixelY;if(x===0)return!0;P.invert&&(x=-x);let I=e.getTranslate()+x*P.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),C=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const N={time:qt(),delta:Math.abs(x),direction:Math.sign(x),raw:h};c.length>=2&&c.shift();const E=c.length?c[c.length-1]:void 0;if(c.push(N),E?(N.direction!==E.direction||N.delta>E.delta||N.time>E.time+150)&&p(N):p(N),b(N))return!0}else{const N={time:qt(),delta:Math.abs(x),direction:Math.sign(x)},E=s&&N.time<s.time+500&&N.delta<=s.delta&&N.direction===s.direction;if(!E){s=void 0;let y=e.getTranslate()+x*P.sensitivity;const F=e.isBeginning,D=e.isEnd;if(y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),e.setTransition(0),e.setTranslate(y),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!D&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:N.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const B=c.length?c[c.length-1]:void 0,O=c[0];if(c.push(N),B&&(N.delta>B.delta||N.direction!==B.direction))c.splice(0);else if(c.length>=15&&N.time-O.time<500&&O.delta-N.delta>=1&&N.delta<=6){const k=x>0?.8:.2;s=N,c.splice(0),a=gi(()=>{e.slideToClosest(e.params.speed,!0,void 0,k)},0)}a||(a=gi(()=>{s=N,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||l("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}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function jn(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(l=>{if(!i[l]&&i.auto===!0){let o=Jt(t.el,`.${n[l]}`)[0];o||(o=yi("div",n[l]),o.className=n[l],t.el.append(o)),i[l]=o,e[l]=o}}),i}function Nn(t){let{swiper:e,extendParams:i,on:n,emit:l}=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 o(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 a(b,m){const S=e.params.navigation;b=Qe(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 d(){const{nextEl:b,prevEl:m}=e.navigation;if(e.params.loop){a(m,!1),a(b,!1);return}a(m,e.isBeginning&&!e.params.rewind),a(b,e.isEnd&&!e.params.rewind)}function s(b){b.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function c(b){b.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function r(){const b=e.params.navigation;if(e.params.navigation=jn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(b.nextEl||b.prevEl))return;let m=o(b.nextEl),S=o(b.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:S}),m=Qe(m),S=Qe(S);const v=(g,h)=>{g&&g.addEventListener("click",h==="next"?c:s),!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=Qe(b),m=Qe(m);const S=(v,g)=>{v.removeEventListener("click",g==="next"?c:s),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};b.forEach(v=>S(v,"next")),m.forEach(v=>S(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(r(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{A()}),n("enable disable",()=>{let{nextEl:b,prevEl:m}=e.navigation;if(b=Qe(b),m=Qe(m),e.enabled){d();return}[...b,...m].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),n("click",(b,m)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Qe(S),v=Qe(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)),l(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(" ")),r(),d()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),A()};Object.assign(e.navigation,{enable:f,disable:p,update:d,init:r,destroy:A})}function ti(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ji(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o="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:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let a,d=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(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 r(v){const g=v.target.closest(ti(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const h=Pi(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(s())return;let h=e.pagination.el;h=Qe(h);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,V=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const j=e.pagination.bullets;let x,T,R;if(g.dynamicBullets&&(a=gn(j[0],e.isHorizontal()?"width":"height",!0),h.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(d+=w-(C||0),d>g.dynamicMainBullets-1?d=g.dynamicMainBullets-1:d<0&&(d=0)),x=Math.max(w-d,0),T=x+(Math.min(j.length,g.dynamicMainBullets)-1),R=(T+x)/2),j.forEach(I=>{const N=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();I.classList.remove(...N)}),h.length>1)j.forEach(I=>{const N=Pi(I);N===w?I.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),g.dynamicBullets&&(N>=x&&N<=T&&I.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),N===x&&c(I,"prev"),N===T&&c(I,"next"))});else{const I=j[w];if(I&&I.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&j.forEach((N,E)=>{N.setAttribute("part",E===w?"bullet-active":"bullet")}),g.dynamicBullets){const N=j[x],E=j[T];for(let y=x;y<=T;y+=1)j[y]&&j[y].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(N,"prev"),c(E,"next")}}if(g.dynamicBullets){const I=Math.min(j.length,g.dynamicMainBullets+4),N=(a*I-a)/2-R*a,E=v?"right":"left";j.forEach(y=>{y.style[e.isHorizontal()?E:"top"]=`${N}px`})}}h.forEach((j,x)=>{if(g.type==="fraction"&&(j.querySelectorAll(ti(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(w+1)}),j.querySelectorAll(ti(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(V)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const R=(w+1)/V;let I=1,N=1;T==="horizontal"?I=R:N=R,j.querySelectorAll(ti(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${N})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(j.innerHTML=g.renderCustom(e,w+1,V),x===0&&l("paginationRender",j)):(x===0&&l("paginationRender",j),l("paginationUpdate",j)),e.params.watchOverflow&&e.enabled&&j.classList[e.isLocked?"add":"remove"](g.lockClass)})}function f(){const v=e.params.pagination;if(s())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=Qe(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(ti(v.bulletClass)))}),v.type!=="custom"&&l("paginationRender",h[0])}function p(){e.params.pagination=jn(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=>Ji(h,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Qe(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`),d=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&h.classList.add(v.progressbarOppositeClass),v.clickable&&h.addEventListener("click",r),e.enabled||h.classList.add(v.lockClass)}))}function b(){const v=e.params.pagination;if(s())return;let g=e.pagination.el;g&&(g=Qe(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",r))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Qe(g),g.forEach(h=>{h.classList.remove(v.horizontalClass,v.verticalClass),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(p(),f(),A())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&A()}),n("snapIndexChange",()=>{A()}),n("snapGridLengthChange",()=>{f(),A()}),n("destroy",()=>{b()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Qe(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{A()}),n("click",(v,g)=>{const h=g.target,w=Qe(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);l(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=Qe(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=Qe(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 ns(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Ft();let a=!1,d=null,s=null,c,r,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:I,rtlTranslate:N}=e,{dragEl:E,el:y}=I,F=e.params.scrollbar,D=e.params.loop?e.progressLoop:e.progress;let B=r,O=(A-r)*D;N?(O=-O,O>0?(B=r-O,O=0):-O+r>A&&(B=A+O)):O<0?(B=r+O,O=0):O+r>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(d),y.style.opacity=1,d=setTimeout(()=>{y.style.opacity=0,y.style.transitionDuration="400ms"},1e3))}function b(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:N,el:E}=I;N.style.width="",N.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"?r=A*f:r=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?N.style.width=`${r}px`:N.style.height=`${r}px`,f>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(I){return e.isHorizontal()?I.clientX:I.clientY}function v(I){const{scrollbar:N,rtlTranslate:E}=e,{el:y}=N;let F;F=(S(I)-fo(y)[e.isHorizontal()?"left":"top"]-(c!==null?c:r/2))/(A-r),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const D=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(D),e.setTranslate(D),e.updateActiveIndex(),e.updateSlidesClasses()}function g(I){const N=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F,dragEl:D}=E;a=!0,c=I.target===D?S(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),y.style.transitionDuration="100ms",D.style.transitionDuration="100ms",v(I),clearTimeout(s),F.style.transitionDuration="0ms",N.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),l("scrollbarDragStart",I)}function h(I){const{scrollbar:N,wrapperEl:E}=e,{el:y,dragEl:F}=N;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,v(I),E.style.transitionDuration="0ms",y.style.transitionDuration="0ms",F.style.transitionDuration="0ms",l("scrollbarDragMove",I))}function w(I){const N=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F}=E;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),N.hide&&(clearTimeout(s),s=gi(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),l("scrollbarDragEnd",I),N.snapOnRelease&&e.slideToClosest())}function C(I){const{scrollbar:N,params:E}=e,y=N.el;if(!y)return;const F=y,D=E.passiveListeners?{passive:!1,capture:!1}:!1,B=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const O=I==="on"?"addEventListener":"removeEventListener";F[O]("pointerdown",g,D),o[O]("pointermove",h,D),o[O]("pointerup",w,B)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function j(){const{scrollbar:I,el:N}=e;e.params.scrollbar=jn(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=o.querySelectorAll(E.el),!y.length)return}else y||(y=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&y.length>1&&N.querySelectorAll(E.el).length===1&&(y=N.querySelector(E.el)),y.length>0&&(y=y[0]),y.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;y&&(F=y.querySelector(ti(e.params.scrollbar.dragClass)),F||(F=yi("div",e.params.scrollbar.dragClass),y.append(F))),Object.assign(I,{el:y,dragEl:F}),E.draggable&&P(),y&&y.classList[e.enabled?"remove":"add"](...si(e.params.scrollbar.lockClass))}function x(){const I=e.params.scrollbar,N=e.scrollbar.el;N&&N.classList.remove(...si(e.isHorizontal()?I.horizontalClass:I.verticalClass)),V()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:N}=e.scrollbar;N=Qe(N),N.forEach(E=>{E.classList.remove(I.horizontalClass,I.verticalClass),E.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?R():(j(),m(),p())}),n("update resize observerUpdate lock unlock changeDirection",()=>{m()}),n("setTranslate",()=>{p()}),n("setTransition",(I,N)=>{b(N)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...si(e.params.scrollbar.lockClass))}),n("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...si(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...si(e.params.scrollbar.scrollbarDisabledClass)),j(),m(),p()},R=()=>{e.el.classList.add(...si(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...si(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:R,updateSize:m,setTranslate:p,init:j,destroy:x})}function Mn(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let l=null,o,a,d=new Date().getTime();function s(D){const B=l;B.length!==0&&(B.innerHTML="",B.innerHTML=D)}function c(D){D===void 0&&(D=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(D).replace(/x/g,B)}function r(D){D=Qe(D),D.forEach(B=>{B.setAttribute("tabIndex","0")})}function A(D){D=Qe(D),D.forEach(B=>{B.setAttribute("tabIndex","-1")})}function f(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("role",B)})}function p(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("aria-roledescription",B)})}function b(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("aria-controls",B)})}function m(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("aria-label",B)})}function S(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("id",B)})}function v(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("aria-live",B)})}function g(D){D=Qe(D),D.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function h(D){D=Qe(D),D.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function w(D){if(D.keyCode!==13&&D.keyCode!==32)return;const B=e.params.a11y,O=D.target;if(!(e.pagination&&e.pagination.el&&(O===e.pagination.el||e.pagination.el.contains(D.target))&&!D.target.matches(ti(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const k=Qe(e.navigation.prevEl);Qe(e.navigation.nextEl).includes(O)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(B.lastSlideMessage):s(B.nextSlideMessage)),k.includes(O)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(B.firstSlideMessage):s(B.prevSlideMessage))}e.pagination&&O.matches(ti(e.params.pagination.bulletClass))&&O.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:D,prevEl:B}=e.navigation;B&&(e.isBeginning?(g(B),A(B)):(h(B),r(B))),D&&(e.isEnd?(g(D),A(D)):(h(D),r(D)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return P()&&e.params.pagination.clickable}function j(){const D=e.params.a11y;P()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(r(B),e.params.pagination.renderBullet||(f(B,"button"),m(B,D.paginationBulletMessage.replace(/\{\{index\}\}/,Pi(B)+1)))),B.matches(ti(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const x=(D,B,O)=>{r(D),D.tagName!=="BUTTON"&&(f(D,"button"),D.addEventListener("keydown",w)),m(D,O),b(D,B)},T=D=>{a&&a!==D.target&&!a.contains(D.target)&&(o=!0),e.a11y.clicked=!0},R=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=D=>{d=new Date().getTime()},N=D=>{if(e.a11y.clicked||new Date().getTime()-d<100)return;const B=D.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;a=B;const O=e.slides.indexOf(B)===e.activeIndex,k=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);O||k||D.sourceCapabilities&&D.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),o=!1)}))},E=()=>{const D=e.params.a11y;D.itemRoleDescriptionMessage&&p(e.slides,D.itemRoleDescriptionMessage),D.slideRole&&f(e.slides,D.slideRole);const B=e.slides.length;D.slideLabelMessage&&e.slides.forEach((O,k)=>{const M=e.params.loop?parseInt(O.getAttribute("data-swiper-slide-index"),10):k,X=D.slideLabelMessage.replace(/\{\{index\}\}/,M+1).replace(/\{\{slidesLength\}\}/,B);m(O,X)})},y=()=>{const D=e.params.a11y;e.el.append(l);const B=e.el;D.containerRoleDescriptionMessage&&p(B,D.containerRoleDescriptionMessage),D.containerMessage&&m(B,D.containerMessage);const O=e.wrapperEl,k=D.id||O.getAttribute("id")||`swiper-wrapper-${c(16)}`,M=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(O,k),v(O,M),E();let{nextEl:X,prevEl:U}=e.navigation?e.navigation:{};X=Qe(X),U=Qe(U),X&&X.forEach($=>x($,k,D.nextSlideMessage)),U&&U.forEach($=>x($,k,D.prevSlideMessage)),V()&&Qe(e.pagination.el).forEach(be=>{be.addEventListener("keydown",w)}),Ft().addEventListener("visibilitychange",I),e.el.addEventListener("focus",N,!0),e.el.addEventListener("focus",N,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",R,!0)};function F(){l&&l.remove();let{nextEl:D,prevEl:B}=e.navigation?e.navigation:{};D=Qe(D),B=Qe(B),D&&D.forEach(k=>k.removeEventListener("keydown",w)),B&&B.forEach(k=>k.removeEventListener("keydown",w)),V()&&Qe(e.pagination.el).forEach(M=>{M.removeEventListener("keydown",w)}),Ft().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",N,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",R,!0))}n("beforeInit",()=>{l=yi("span",e.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&y()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&j()}),n("destroy",()=>{e.params.a11y.enabled&&F()})}function Ni(t){let{swiper:e,extendParams:i,on:n,emit:l,params:o}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,d,s=o&&o.autoplay?o.autoplay.delay:3e3,c=o&&o.autoplay?o.autoplay.delay:3e3,r,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&&(c=r,f=!1);const B=e.autoplay.paused?r:A+c-new Date().getTime();e.autoplay.timeLeft=B,l("autoplayTimeLeft",B,B/s),d=requestAnimationFrame(()=>{w()})},C=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(k=>k.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(d),w();let O=typeof B>"u"?e.params.autoplay.delay:B;s=e.params.autoplay.delay,c=e.params.autoplay.delay;const k=C();!Number.isNaN(k)&&k>0&&typeof B>"u"&&(O=k,s=k,c=k),r=O;const M=e.params.speed,X=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(M,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,M,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(M,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,M,!0,!0),l("autoplay")),e.params.cssMode&&(A=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return O>0?(clearTimeout(a),a=setTimeout(()=>{X()},O)):requestAnimationFrame(()=>{X()}),O},V=()=>{A=new Date().getTime(),e.autoplay.running=!0,P(),l("autoplayStart")},j=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),l("autoplayStop")},x=(B,O)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),B||(v=!0);const k=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",h):T()};if(e.autoplay.paused=!0,O){S&&(r=e.params.autoplay.delay),S=!1,k();return}r=(r||e.params.autoplay.delay)-(new Date().getTime()-A),!(e.isEnd&&r<0&&!e.params.loop)&&(r<0&&(r=0),k())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(A=new Date().getTime(),v?(v=!1,P(r)):P(),e.autoplay.paused=!1,l("autoplayResume"))},R=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Ft();B.visibilityState==="hidden"&&(v=!0,x(!0)),B.visibilityState==="visible"&&T()},I=B=>{B.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&x(!0))},N=B=>{B.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",N))},y=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",N))},F=()=>{Ft().addEventListener("visibilitychange",R)},D=()=>{Ft().removeEventListener("visibilitychange",R)};n("init",()=>{e.params.autoplay.enabled&&(E(),F(),V())}),n("destroy",()=>{y(),D(),e.autoplay.running&&j()}),n("_freeModeStaticRelease",()=>{(b||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?j():x(!0,!0)}),n("beforeTransitionStart",(B,O,k)=>{e.destroyed||!e.autoplay.running||(k||!e.params.autoplay.disableOnInteraction?x(!0,!0):j())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){j();return}p=!0,b=!1,v=!1,m=setTimeout(()=>{v=!0,b=!0,x(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(a),e.params.autoplay.disableOnInteraction){b=!1,p=!1;return}b&&e.params.cssMode&&T(),b=!1,p=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:V,stop:j,pause:x,resume:T})}function os(t){let{swiper:e,extendParams:i,emit:n,once:l}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:c}=e;s.velocities.length===0&&s.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:qt()})}function d(s){let{currentPos:c}=s;if(e.params.cssMode)return;const{params:r,wrapperEl:A,rtlTranslate:f,snapGrid:p,touchEventsData:b}=e,S=qt()-b.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(r.freeMode.momentum){if(b.velocities.length>1){const j=b.velocities.pop(),x=b.velocities.pop(),T=j.position-x.position,R=j.time-x.time;e.velocity=T/R,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(R>150||qt()-j.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,b.velocities.length=0;let v=1e3*r.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*r.freeMode.momentumBounceRatio;let V;if(h<e.maxTranslate())r.freeMode.momentumBounce?(h+e.maxTranslate()<-P&&(h=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.maxTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(h>e.minTranslate())r.freeMode.momentumBounce?(h-e.minTranslate()>P&&(h=e.minTranslate()+P),C=e.minTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.minTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(r.freeMode.sticky){let j;for(let x=0;x<p.length;x+=1)if(p[x]>-h){j=x;break}Math.abs(p[j]-h)<Math.abs(p[j-1]-h)||e.swipeDirection==="next"?h=p[j]:h=p[j-1],h=-h}if(V&&l("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?v=Math.abs((-h-e.translate)/e.velocity):v=Math.abs((h-e.translate)/e.velocity),r.freeMode.sticky){const j=Math.abs((f?-h:h)-e.translate),x=e.slidesSizesGrid[e.activeIndex];j<x?v=r.speed:j<2*x?v=r.speed*1.5:v=r.speed*2.5}}else if(r.freeMode.sticky){e.slideToClosest();return}r.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating=!0,bn(A,()=>{!e||e.destroyed||!b.allowMomentumBounce||(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(C),bn(A,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(h),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,bn(A,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(h),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeMode.sticky){e.slideToClosest();return}else r.freeMode&&n("_freeModeNoMomentumRelease");(!r.freeMode.momentum||S>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:a,onTouchEnd:d}})}const ls=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const l=fe(),{popupDetailData:o}=Ge();return ce(()=>{var a,d;n&&((a=l?.current)===null||a===void 0||a.swiper.slideTo((d=o?.multiCheckIndex)!==null&&d!==void 0?d:0))},[o,n]),u.createElement(ei,{role:"list",tag:"ul",ref:l,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[os,ns,en],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Mi=je(ls);const as=vi((t,e)=>{const{src:i,onLoad:n,style:l,className:o,loading:a,alt:d="image"}=t,[s,c]=Z(i),r=fe(null),[A,f]=Z(!1);return Ci(e,()=>({setSrc:p=>{p&&c(p)}})),ce(()=>{i&&c(i)},[i]),ce(()=>{const p=()=>{i&&!A&&r.current&&(r.current.src="",r.current.src=i)};return Ct.on(xt.PAGE_DID_SHOW,p),()=>{Ct.off(xt.PAGE_DID_SHOW,p)}},[i,A]),u.createElement(u.Fragment,null,!A&&!s&&u.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),s?.includes(".avif")?u.createElement("picture",null,u.createElement("source",{type:"image/avif",srcSet:s}),u.createElement("source",{type:"image/webp",srcSet:`${s}?imageMogr2/format/webp`}),u.createElement("source",{type:"image/jpeg",srcSet:`${s}?imageMogr2/format/jpg`}),u.createElement("img",{ref:r,className:o,src:s,style:Object.assign({},l),loading:a,onLoad:p=>{f(!0),n?.(p.target)},alt:d})):u.createElement("img",{ref:r,className:o,src:s,style:Object.assign({},l),loading:a,onLoad:p=>{f(!0),n?.(p.target)},alt:d}))});var Mt=je(as);const ss=({products:t,data:e,defImg:i,style:n,onCLick:l,popupDetailData:o,check:a})=>{var d;const{productView:s}=Vt(),{popupCurTimeRef:c}=Ge(),r=(A,f)=>{if(a===f)return;const p=t?.[a];s(o,p,p?.bindCta,c.current,o?.index),l?.(f)};return u.createElement(u.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&u.createElement(Mi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=o?t:[0,1,2,3])===null||d===void 0?void 0:d.map((A,f)=>{var p,b,m;return u.createElement(u.Fragment,null,A?.bindCta?u.createElement(zt,{className:ze({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{r(A,f)},key:f},u.createElement(Mt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(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 Lo=je(ss);function jo(){const[t,e]=Z(0),[i,n]=Z(0),l=()=>{if(typeof window>"u")return 0;let a=window.innerHeight;return window.visualViewport&&(a=window.visualViewport.height),(a<=0||a>window.screen.height)&&(a=window.innerHeight),a<=0&&(a=document.documentElement.clientHeight),a},o=de(()=>{var a;const d=l(),s=(a=window.screen)===null||a===void 0?void 0:a.height,c=navigator.userAgent,r=/Instagram/i.test(c),A=/FBAV|FBAN|FBSN/i.test(c);if(!s||d<=0||!r&&!A){e(d);return}const f=d/s,p=.9,b=s>=900?s*.8:s*.79,m=f>=p,S=m?Math.round(b):d,v=s-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
+ import{isEmpty as ui,cloneDeep as bi,isEqual as Hn,debounce as Ei,throttle as Un,get as Xn}from"lodash";import{v4 as Zo}from"uuid";import Ko from"pako";import u,{useContext as Ii,useMemo as we,memo as je,useEffect as ce,createContext as ki,useState as Z,useRef as fe,useCallback as de,forwardRef as vi,useImperativeHandle as Ci,useLayoutEffect as Jo}from"react";import qn from"qs";import Qo from"eventemitter3";import{css as ze}from"@emotion/css";import*as Yn from"react-dom";import $o from"react-dom";function rt(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l<n.length;l++)e.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(t,n[l])&&(i[n[l]]=t[n[l]]);return i}function mt(t,e,i,n){function l(o){return o instanceof i?o:new i(function(a){a(o)})}return new(i||(i=Promise))(function(o,a){function d(r){try{c(n.next(r))}catch(A){a(A)}}function s(r){try{c(n.throw(r))}catch(A){a(A)}}function c(r){r.done?o(r.value):l(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const el=/:\w+/g;var Gn=(t,e)=>mt(void 0,void 0,void 0,function*(){const i={},n={};for(let l=0;l<e?.length;l++){const{id:o,method:a,url:d,urlParams:s,name:c,queryString:r,headers:A,body:f}=e[l];let p=d;s&&Object.entries(s).forEach(([b,m])=>{p=p.replace(el,S=>S===b?m:S)}),r&&(p+=r),n[o]=c;try{const b=yield fetch(p,{method:a,headers:Object.assign({"Content-Type":"application/json"},A),body:JSON.stringify(f)}).then(m=>m.json());i[o]=b}catch(b){console.error("DataSource request error: ",b),i[o]={}}}return{$store:i,idMapName:n}});const _n="SXP_TOKEN_INFO",tl=(t,e)=>mt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),l=t.getAppId(),o=t.getApiUrl(),a=window.localStorage.getItem(_n);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":l||""}}).then(r=>r.json());if(c.success){const r=c.data;d=Object.assign(Object.assign({},r),{expireTime:Date.now()+r.expire*1e3}),window.localStorage.setItem(_n,JSON.stringify(d))}}return d});function qi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let l;if(e=e||i.length,t)for(l=0;l<t;l++)n[l]=i[0|Math.random()*e];else{let o;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",l=0;l<36;l++)n[l]||(o=0|Math.random()*16,n[l]=i[l===19?o&3|8:o])}return n.join("")}const il=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let l=0;for(;l<t;)e+=i.charAt(Math.floor(Math.random()*n)),l+=1;return e},nl=()=>{const t=Zo();return t?.replaceAll?t.replaceAll("-",""):il(32)},Ve=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],l=e?.["fontFamily-en"];if(!n&&!l)return t;let o=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${l??"inherit"}`,r=f=>{const p=f.search(a),b=f.search(d);return p!==-1&&b!==-1&&p<b&&(i+=`<span style="${s}">${f.substring(p,b)}</span>`,o=f.substring(b,f?.length)),p!==-1&&b!==-1&&p>b&&(i+=`<span style="${c}">${f.substring(b,p)}</span>`,o=f.substring(p,f?.length)),p===-1?(i+=`<span style="${c}">${f.substring(b,f?.length)}</span>`,o="",!1):b===-1?(i+=`<span style="${s}">${f.substring(p,f?.length)}</span>`,o="",!1):!0};let A=!0;for(;A;)A=r(o);return i};function cn(t){const i=document.cookie.split(";");let n=null;return i.forEach(l=>{const[o,a]=l.trim().split("=");o===t&&(n=a)}),n??""}function un(){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 pi(t){if(!t)return;const e=[];for(let l=0;l<t.length;l++){const o=t[l],a=t.substring(l+1,t.length);o==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(l)}const i=e.length>0?[]:[t];let n=0;return e?.map(l=>{i?.push(t.substring(n,l)),n=l+1,l===e[e.length-1]&&l<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function ol(t,e="/",i=""){const n="expires=Thu, 01 Jan 1970 00:00:00 GMT",l=e?`; path=${e}`:"",o=i?`; domain=${i}`:"";document.cookie=`${t}=; ${n}${l}${o}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Zn(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),n=new Uint8Array(i),l=Ko.inflate(n,{to:"string"});return JSON.parse(l)}let vn=null;const ll={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class al{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,vn)return vn;vn=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?ll[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let jt=null;const sl={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{jt||(jt=new al),n&&jt.setApiUrl(n),jt.setAppId(t),jt.setTenantId(e),jt.setEnv(i)},getDetail:t=>{if(!jt)return;const e=jt.getTenantId(),i=jt.getAppId(),n=jt.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>mt(void 0,void 0,void 0,function*(){var o,a;const d=yield l.json(),s=Zn((o=d?.data)===null||o===void 0?void 0:o.data);if(s){const{$store:c}=yield Gn(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=s,Object.assign(d.data.data,{__STORE__:c})}return d}))},getSxpDetailByPageId:t=>mt(void 0,void 0,void 0,function*(){if(!jt)return;const e=jt.getTenantId(),i=jt.getAppId(),n=jt.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>mt(void 0,void 0,void 0,function*(){var o;const a=yield l.json();return a.success?(o=a?.data)===null||o===void 0?void 0:o.map(s=>Object.assign(Object.assign({},s),{data:Zn(s?.data)})):void 0}))}),getSxpRecommendVideoData:t=>mt(void 0,void 0,void 0,function*(){if(!jt)return;const e=yield tl(jt,t),i=qi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");ui(n)&&(n=qi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const l=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return l?.data||null})};function ai(){return Ii(co)}function rl(){return Ii(ro)}const pn="feRealSessionIdKey",Kn=()=>{const t=nl();return`${Date.now()}${t}`},dl=()=>{let t=cl();return t||(t=Kn(),window.localStorage.setItem(pn,t)),t},mn=()=>{const t=Kn();window.localStorage.setItem(pn,t)},cl=()=>window.localStorage.getItem(pn),Jn="SXP_FAKE_USER_ID",Qn="FAKE_USER_STATE",$n="AGREE_POLICY",eo="SLIDE_SKIP_STATE",to="CCONTSENT_STATE",io="USER_CONSENT_RESULT",ul=()=>{let t=window.localStorage.getItem(Jn);return ui(t)&&(t=qi(36,62),window.localStorage.setItem(Jn,t)),t},vl=()=>{const t=window.localStorage.getItem(Qn);return ui(t)&&window.localStorage.setItem(Qn,"true"),ui(t)},pl=()=>{const t=window.localStorage.getItem(eo);return ui(t)},ml=()=>{window.localStorage.setItem(eo,"true")},fl=()=>{const t=window.localStorage.getItem(to);return ui(t)&&window.localStorage.setItem(to,"true"),ui(t)},no=()=>window.localStorage.getItem(io)==="true",oo=()=>{window.localStorage.setItem(io,"true")};function Lt(t,e){const{appDomain:i}=Ge();return we(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const Ct=new Qo;var xt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(xt||(xt={}));const hl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:l,privacy_policy_title:o})=>{const{setIsAgreePolicy:a,bffEventReport:d}=Ge(),s=we(()=>{var A;const f=location.search.slice(1),p={};(A=pi(f.replace(/\+/g,"%2B")))===null||A===void 0||A.map(b=>{const m=b.split("=")[0],S=b.split("=")[1];p[m]=S});for(const b in p)p[b]=p[b].replace(/%2B/g,"+");return p},[]),c=A=>{var f;return(f=s[A])!==null&&f!==void 0?f:null};ce(()=>{d?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const r=()=>{d?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),a?.(!0),window.localStorage.setItem($n,"yes")};return u.createElement("div",{className:"consent-bg"},u.createElement("div",{className:"consent"},u.createElement("div",{className:"consent-col"},u.createElement("div",{className:"consent-title"},i??"Privacy Policy"),u.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),u.createElement("div",{className:"consent-col"},u.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:r},"Agree"),u.createElement("a",{className:"consent-policy",target:"_blank",href:l?`https://${l}`:void 0},o??"More information"))))};var Al=je(hl);const lo=ki({rtcList:[],tagList:[]});var fn;(function(t){t[t.BFF=5]="BFF"})(fn||(fn={}));const Yi="FOR U",bl=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:l,defaultSize:o,isPreview:a=!1,sxpParameter:d,appDomain:s,hashTagSize:c,loadingImage:r,isOpenHashTag:A=!1,enabledMetaConversionApi:f=!1,consentHeight:p,consentWidth:b,isOpenConsent:m=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:h,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:V})=>{var j,x,T,R,I;const[N,E]=Z([]),[y,F]=Z([]),[D,B]=Z(!0),[O,k]=Z({rtc:"",requestId:""}),M=fe(null),X=fe(!1),[U,q]=Z(()=>!!window.localStorage.getItem($n)),[$,be]=Z(),[ue,J]=Z(),[Pe,De]=Z(A),[Xe,me]=Z([]),[ve,et]=Z(0),[_e,Ze]=Z(!1),[$e,dt]=Z(null),tt=fe(),Le=fe(),ot=fe(),[Pt,He]=Z(Yi),qe=fe(-1),Ye=fe(null),[K,te]=Z(!1),[_,ae]=Z((x=(j=h?.data)===null||j===void 0?void 0:j.sxpPageConf)===null||x===void 0?void 0:x.globalConfig),[Ie,Ee]=Z(),[ee,W]=Z(!1),[We,lt]=Z(),[it,ct]=Z(),[nt,Ue]=Z([]),[at,ht]=Z(),[St,Yt]=Z(),Rt=we(()=>Ie??h,[Ie,h]),Et=fe(!1);ce(()=>{var z,H;ae((H=(z=h?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||H===void 0?void 0:H.globalConfig)},[h]);const It=we(()=>{var z,H,ie,ye;return(((ye=(ie=(H=(z=_?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||ie===void 0?void 0:ie.props)===null||ye===void 0?void 0:ye.privacy_necessity)&&!U&&!S||m)&&ee},[U,_,m,S,ee]),Kt=de(z=>{V?.(z),ct(z)},[]),Tt=de(z=>{var H;const ie=z?.recList;return(H=ie?.map(pe=>{var he,Se,ke,Ce,Be,L;if(!((he=pe?.video)===null||he===void 0)&&he.bindProducts&&((ke=(Se=pe?.video)===null||Se===void 0?void 0:Se.bindProducts)===null||ke===void 0?void 0:ke.length)>0){const Y=(L=(Be=(Ce=pe?.video)===null||Ce===void 0?void 0:Ce.bindProducts)===null||Be===void 0?void 0:Be.filter(G=>!!G?.bindCta))!==null&&L!==void 0?L:[];return Object.assign(Object.assign({},pe),{video:Object.assign(Object.assign({},pe?.video),{bindProducts:Y})})}return pe}))!==null&&H!==void 0?H:[]},[]);ce(()=>{let z;return nt.length>0&&(z=setInterval(()=>{const ie=new Date,ye=15*1e3;Ue(pe=>pe.filter(he=>ie-he.time<=ye))},1e3)),()=>{clearInterval(z)}},[nt]),ce(()=>{const z=H=>{tt.current=H};return Ct.on(xt.CHANGE_THEME_TAG,z),()=>{Ct.off(xt.CHANGE_THEME_TAG,z)}},[]),ce(()=>{De(A)},[A]);const Ke=we(()=>e?.find(z=>z.type===fn.BFF),[e]),Oe=we(()=>{var z;return((z=Ke?.headers)===null||z===void 0?void 0:z["x-app-id"])+ul()},[Ke]),ge=()=>{var z,H;function ie(he){const Se=he.match(/groups=([^&]+)/);if(!Se||!Se[1])return!1;const Ce=Se[1].split(",");for(const Be of Ce){const[L,Y]=Be.split(":");if(L==="4")return Y==="0"}return!1}function ye(he){var Se;const Ce=`; ${document.cookie}`.split(`; ${he}=`);return Ce.length===2?(Se=Ce.pop())===null||Se===void 0?void 0:Se.split(";").shift():""}const pe=decodeURIComponent((z=ye("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")&&ie(pe))},xe=de((z,H,ie=!0)=>{var ye;if(!Ke)return;const pe=Ke.url;if(H?.query){const Se=qn.stringify(H.query);z=`${z}?${Se}`}const he=location.search.slice(1);return(ye=pi(he))===null||ye===void 0||ye.forEach(Se=>{Se.split("=")[0],Se.split("=")[1]}),window.fetch(`${pe}/api/${z}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Oe},Ke.headers),method:H.method,body:H.type==="beacon"&&ie?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Ke.headers),{"x-user-id":Oe}))))}):JSON.stringify(H.body)},H.type==="beacon"&&{keepalive:!0})).then(Se=>Se.json()).catch(Se=>Promise.reject(Se))},[Ke,Oe]),bt=de(z=>{var H;if(ge())return Promise.resolve();const ie={eventName:z?.eventName,eventSource:z?.eventSource};return xe?.(`v1/data/collect/${(H=Ke?.headers)===null||H===void 0?void 0:H["x-app-id"]}/${z?.eventName}`,{method:"POST",body:ie,type:"beacon"},!1)},[xe,Ke]);ce(()=>{const z=window.Image;window.Image=function(){const H=new z,ie=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(H,"src",{set(ye){if(!(ge()&&(ye.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/")||ye.includes("https://www.facebook.com/tr")))&&(ie.set.call(this,ye),ye.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/"))){const pe=new URL(ye),he=Object.fromEntries(pe.searchParams.entries());bt({eventName:he?.ev,eventSource:"Meta Pixel"})}},get(){return ie.get.call(this)}}),H}},[bt]),ce(()=>{const z=navigator;if(!z.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const H=z.sendBeacon.bind(z);return z.sendBeacon=function(ie,ye){const pe=ie instanceof URL?ie.href:ie.toString();if(ge()&&(pe.includes("https://tr.snapchat.com/p")||pe.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const he=H(ie,ye);function Se(ke){return mt(this,void 0,void 0,function*(){return typeof ke=="string"?JSON.parse(ke):ke instanceof Blob?JSON.parse(yield ke.text()):ke instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(ke)):null})}return he&&Promise.resolve().then(()=>mt(this,void 0,void 0,function*(){var ke,Ce;try{const Be=yield Se(ye);pe.includes("https://tr.snapchat.com/p")?(Ce=(ke=Be?.req)===null||ke===void 0?void 0:ke.forEach)===null||Ce===void 0||Ce.call(ke,L=>{var Y,G;!((Y=L?.t)===null||Y===void 0)&&Y.ev&&bt({eventName:(G=L?.t)===null||G===void 0?void 0:G.ev,eventSource:"Snapchat Pixel"})}):pe.includes("https://analytics.tiktok.com/api/v2/pixel")&&Be?.event&&bt({eventName:Be.event,eventSource:"TikTok Pixel"})}catch(Be){console.error("\u76D1\u63A7\u5931\u8D25:",Be)}})),he},()=>{z.sendBeacon=H}},[bt]),ce(()=>{const z=window.fetch;window.fetch=function(H,ie){var ye=arguments;return mt(this,void 0,void 0,function*(){var pe;let he;try{he=typeof H=="string"?H:H instanceof URL?H.href:H.url}catch(Se){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Se),z.apply(this,ye)}try{if(ge()&&(he.includes("https://www.google-analytics.com/g/collect")||he.includes("https://arms-retcode.aliyuncs.com/r.png")))return Promise.resolve(new Response(""));const Se=z.apply(this,ye);if(he.includes("https://www.google-analytics.com/g/collect")){const ke=new URL(he),Ce=Object.fromEntries(ke.searchParams.entries()),Be=(pe=ye[1])===null||pe===void 0?void 0:pe.body;if(Ce?.en)bt({eventName:Ce?.en,eventSource:"Google Analytics"});else if(Be){const Y=function(G){if(typeof G!="string")return[];const Q=[],re=/en=([^&\r\n]*)/g;let ne;for(;(ne=re.exec(G))!==null;)Q.push(decodeURIComponent(ne[1]));return Q}(Be);Y?.forEach(G=>{bt({eventName:G,eventSource:"Google Analytics"})})}}return Se}catch(Se){throw console.error(Se),Se}})}},[bt]),ce(()=>{const z=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(ie,ye){this._url=ye,z.apply(this,arguments)},XMLHttpRequest.prototype.send=function(ie){var ye;if(!(ge()&&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")&&ie&&typeof ie=="string")try{const pe=JSON.parse(ie);if(pe&&Array.isArray(pe.data)){const he=pe.data[((ye=pe.data)===null||ye===void 0?void 0:ye.length)-1];he&&he.e&&bt({eventName:he.e,eventSource:"Northbeam Pixel"})}}catch(pe){console.error("Failed to parse Northbeam event from XHR",pe)}H.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=z,XMLHttpRequest.prototype.send=H}},[bt]),ce(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const Gt=de((z,H)=>{if(!Ke)return;const ie=Ke.url;if(H?.query){const ye=qn.stringify(H.query);z=`${z}?${ye}`}return window.fetch(`${ie}/admin/${z}`,{headers:Object.assign({"Content-Type":"application/json"},Ke.headers),method:H.method,body:JSON.stringify(H.body)}).then(ye=>ye.json()).catch(ye=>Promise.reject(ye))},[Ke]),Ut=de(z=>mt(void 0,void 0,void 0,function*(){var H,ie,ye,pe,he,Se,ke,Ce,Be,L,Y,G,Q,re;if(z=Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:l,defaultSize:(ie=z?.defaultSize)!==null&&ie!==void 0?ie:o,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},St&&{chatlabsId:St}),C&&{type:"story"}),it)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(it)});else if(i){const oe=(he=(pe=(ye=pi(i))===null||ye===void 0?void 0:ye.filter(se=>{var Ae,Fe;const Te=se.split("=")[0];return(Fe=(Ae=v?.channels)!==null&&Ae!==void 0?Ae:[])===null||Fe===void 0?void 0:Fe.includes(Te)}))===null||pe===void 0?void 0:pe.join("&"))!==null&&he!==void 0?he:"";oe&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(oe)}))}if(S){let oe=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 se=[],Ae=null;const Fe=Te=>mt(void 0,void 0,void 0,function*(){var Ne,ft,ut,vt,pt,st;if(Te.pageNum=oe,Ae=yield Gt?.("recommend/direct_page",{method:"POST",body:Te}),!Ae?.success)return;B(!1),se=se.concat((vt=(ut=(ft=(Ne=Ae?.data)===null||Ne===void 0?void 0:Ne.recList)===null||ft===void 0?void 0:ft.filter)===null||ut===void 0?void 0:ut.call(ft,Je=>Je?.product||Je?.video))!==null&&vt!==void 0?vt:[]),N?.length===0&&(E(Tt(Object.assign(Object.assign({},Ae?.data),{recList:se}))),me(Tt(Object.assign(Object.assign({},Ae?.data),{recList:se})))),((st=(pt=Ae?.data)===null||pt===void 0?void 0:pt.recList)===null||st===void 0?void 0:st.some(Je=>Je?.product||Je?.video))&&(oe=oe+1,yield Fe(Te))});return yield Fe(z),!z?.hashTag&&Ae&&k({rtc:(Se=Ae?.data)===null||Se===void 0?void 0:Se.rtc,requestId:(ke=Ae?.data)===null||ke===void 0?void 0:ke.requestId}),Object.assign(Object.assign({},Ae?.data),{recList:se})}_?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(Ce=z?.pageNum)!==null&&Ce!==void 0?Ce:1}));const ne=yield xe?.("v1/recommend/list",{method:"POST",body:z});if(!ne?.success)return;z?.hashTag||k({rtc:ne.data.rtc,requestId:ne.data.requestId}),_?.enablePreview&&!S&&(!((L=(Be=ne?.data)===null||Be===void 0?void 0:Be.recList)===null||L===void 0)&&L.some(se=>se?.product||se?.video)||te(!0));let le=[];return le=le.concat((re=(Q=(G=(Y=ne?.data)===null||Y===void 0?void 0:Y.recList)===null||G===void 0?void 0:G.filter)===null||Q===void 0?void 0:Q.call(G,oe=>oe?.product||oe?.video))!==null&&re!==void 0?re:[]),Object.assign(Object.assign({},ne.data),{recList:le})}),[xe,i,l,o,g,it,St,Gt]),ln=de(z=>mt(void 0,void 0,void 0,function*(){var H,ie,ye,pe;if(N.length<=0)return;const he=N?.[N?.length-1],Se=yield Ut(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ue?.hashTag},((H=he?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:[(ie=he?.product)===null||ie===void 0?void 0:ie.itemId]}),((ye=he?.video)===null||ye===void 0?void 0:ye.itemId)&&{contentFilter:[(pe=he?.video)===null||pe===void 0?void 0:pe.itemId]}),{themeTag:tt.current}),_?.enablePreview&&!S&&{pageNum:z}));return E(N.concat(Tt(Se))),me(Xe.concat(Tt(Se))),Se}),[Ut,N,ue,Xe]),fi=de((z,H)=>{var ie,ye,pe,he,Se;let ke=!1;const Ce=(ye=(ie=h?.data)===null||ie===void 0?void 0:ie.sxpPageConf)===null||ye===void 0?void 0:ye.globalConfig;if(!((pe=Ce?.session)===null||pe===void 0)&&pe.enable){const Be=localStorage.getItem("sessionStartTime"),L=Be?JSON.parse(Be):new Date().getTime();Math.floor((new Date().getTime()-L)/1e3/60)>=((Se=(he=Ce?.session)===null||he===void 0?void 0:he.expires)!==null&&Se!==void 0?Se:30)&&(H?.("sessionTimeOut"),mn(),Le.current=new Date,ke=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&mn();return ke},[h]),wt=de(({userInfo:z,eventInfo:H,reportLayId:ie=!0,isActiveTargetingCookie:ye=!0})=>{var pe,he;if(!n||_?.enablePreview||ye&&ge())return;z||(z={});const Se=dl(),ke={},Ce=location.search.slice(1);(pe=pi(Ce))===null||pe===void 0||pe.forEach(Q=>{const re=Q.split("=")[0],ne=Q.split("=")[1];ke[re]=ne});const Be=ke?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Se,rtc:O.rtc,requestId:O.requestId},{playbookType:at}),We&&ie&&{layoutVariantId:We}),H),H?.position&&it&&{position:Number(H?.position)+1+""}),Be&&{clSource:Be}),Y=Object.entries(z).map(([Q,re])=>({name:Q,value:re})),G=Object.entries(L).map(([Q,re])=>re&&{name:Q,value:re}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),xe?.(`v2/cld/${(he=Ke?.headers)===null||he===void 0?void 0:he["x-app-id"]}/${H?.eventSubject}${Be?`/${decodeURIComponent(Be)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:G},type:"beacon"})},[xe,O,n,_?.enablePreview,We,_,at,Ke]),di=de((z,H)=>{var ie,ye,pe;const he=bi(z),Se=new URLSearchParams(window.location.search),ke=Se?.get("fbclid"),Ce={event_source_url:(ie=window?.location)===null||ie===void 0?void 0:ie.href,external_id:Oe,client_user_agent:(pe=(ye=window?.navigator)===null||ye===void 0?void 0:ye.userAgent)!==null&&pe!==void 0?pe:"",fbc:ke?`fb.2.${new Date().getTime()}.${ke}`:"",fbp:cn("_fbp")?`${cn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},Be=/\{\{(.*?)\}\}/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 Q=Y?.[G];if(typeof Q=="object")L(Q);else if(typeof Q=="string"){const re=Q?.match(Be);re&&re.forEach(ne=>{var le;const oe=ne.substring(2,ne.length-2);try{let se=new Function("fix_par","product",`return ${oe}`)(Ce,H);se?(oe?.indexOf("currency")!==-1&&se?.indexOf("-")!==-1&&typeof se=="string"&&(se=(le=se?.split("-"))===null||le===void 0?void 0:le[0]),Y[G]=se):delete Y[G]}catch(se){delete Y[G],console.error("An error occurred:",se?.message)}})}}}};return L(he),he},[Oe]),zi=de(({eventName:z,product:H})=>{var ie,ye,pe,he,Se,ke,Ce,Be,L,Y;if(!n||_?.enablePreview||ge())return;let G=!1;const Q=(ie=_?.pixel)===null||ie===void 0?void 0:ie[z];if(Q?.event_name&&typeof window?.fbq=="function"){let le=function(oe,se,Ae){const Fe=new RegExp("([?&])"+se+"=.*?(&|$)","i"),Te=oe.indexOf("?")!==-1?"&":"?";return oe.match(Fe)?oe.replace(Fe,"$1"+se+"="+Ae+"$2"):oe+Te+se+"="+Ae};if(z==="PageView"&&Q?.event_name==="PageView")if(!Et.current)Et.current=!0;else{const oe=window.location.href,se=le(oe,"timestamp",Date.now());history.pushState({path:se},"",se),G=!0}else window?.fbq("track",Q?.event_name,di(Q,H))}if(!G){z==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const le=(ye=_?.tiktokPixel)===null||ye===void 0?void 0:ye[z];le?.event_name&&typeof window?.ttq=="object"&&typeof((pe=window?.ttq)===null||pe===void 0?void 0:pe.track)=="function"&&((he=window?.ttq)===null||he===void 0||he.track(le?.event_name,di(le,H)))}const re=(Se=_?.snapchatPixel)===null||Se===void 0?void 0:Se[z];re?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",re?.event_name,di(re,H)),z==="PageView"&&typeof window?.Northbeam=="object"&&typeof((ke=window?.Northbeam)===null||ke===void 0?void 0:ke.trackPageView)=="function"&&((Ce=window?.Northbeam)===null||Ce===void 0||Ce.trackPageView());const ne=(Be=_?.converApi)===null||Be===void 0?void 0:Be[z];if(f&&ne){const le=di(ne,H),oe={},se=location.search.slice(1);(L=pi(se))===null||L===void 0||L.forEach(Fe=>{const Te=Fe.split("=")[0],Ne=Fe.split("=")[1];oe[Te]=Ne});const Ae=oe?.cl_source;xe?.(`v2/fb/${(Y=Ke?.headers)===null||Y===void 0?void 0:Y["x-app-id"]}/${z}${Ae?`/${decodeURIComponent(Ae)}`:""}`,{method:"POST",body:le,type:"beacon"})}},[xe,n,f,_,Ke,di]),oi=de(z=>mt(void 0,void 0,void 0,function*(){const H=yield xe?.("v1/recommend/like",{method:"POST",body:z});return H?.success}),[xe]),hi=de(z=>mt(void 0,void 0,void 0,function*(){const H=yield xe?.("v1/recommend/unlike",{method:"POST",body:z});return H?.success}),[xe]),li=de(z=>mt(void 0,void 0,void 0,function*(){const H=yield xe?.("v1/customform",{method:"POST",body:z});return H?.success}),[xe]),Xt=de(z=>mt(void 0,void 0,void 0,function*(){var H,ie,ye,pe,he,Se,ke,Ce;const Be=!!(!((ye=(ie=(H=z?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||ie===void 0?void 0:ie.globalConfig)===null||ye===void 0)&&ye.isShowTag);if(!(!i||!Be))try{const L=(Se=(he=(pe=pi(i))===null||pe===void 0?void 0:pe.filter(G=>{var Q,re;const ne=G.split("=")[0];return(re=(Q=v?.channels)!==null&&Q!==void 0?Q:[])===null||re===void 0?void 0:re.includes(ne)}))===null||he===void 0?void 0:he.join("&"))!==null&&Se!==void 0?Se:"",Y=yield xe?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(L)}});F((Ce=(ke=Y?.data)===null||ke===void 0?void 0:ke.tags)!==null&&Ce!==void 0?Ce:[])}catch(L){console.log("e",L)}}),[xe,i]),_t=de((z,H,ie,ye)=>{var pe,he,Se,ke,Ce,Be,L,Y,G,Q,re,ne,le,oe,se,Ae,Fe,Te,Ne,ft,ut,vt,pt,st,gt,Je,kt,Re,Me,Bt,Dt,Ai,At,ci,sn,rn;const $t=ie?.bindCta,_o=((pe=H?.video)===null||pe===void 0?void 0:pe.bindProduct)||((he=H?.video)===null||he===void 0?void 0:he.bindProducts)&&((ke=(Se=H?.video)===null||Se===void 0?void 0:Se.bindProducts)===null||ke===void 0?void 0:ke.length)>0;let Xi="",dn=null;_e?Xi="hashTagPage":!((Ce=H?.video)===null||Ce===void 0)&&Ce.url?(Xi="videoPage",dn="video"):!((L=(Be=H?.video)===null||Be===void 0?void 0:Be.imgUrls)===null||L===void 0)&&L.length&&(Xi="imagePage",dn="image");const zn=(oe=(ne=(Y=ie?.tags)!==null&&Y!==void 0?Y:(re=(Q=(G=H?.video)===null||G===void 0?void 0:G.bindProducts)===null||Q===void 0?void 0:Q[0])===null||re===void 0?void 0:re.tags)!==null&&ne!==void 0?ne:(le=H?.video)===null||le===void 0?void 0:le.tags)!==null&&oe!==void 0?oe:(se=H?.product)===null||se===void 0?void 0:se.tags;wt?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(Ae=$t?.itemId)!==null&&Ae!==void 0?Ae:"",ctaName:(Fe=$t?.title)!==null&&Fe!==void 0?Fe:"",contentTags:zn?JSON.stringify(zn):"",position:ye+"",contentId:(Ne=(Te=H?.video)===null||Te===void 0?void 0:Te.itemId)!==null&&Ne!==void 0?Ne:"",productId:_o?ie?.itemId:"",traceInfo:(sn=(Ai=(kt=(pt=(ft=$t?.traceInfo)!==null&&ft!==void 0?ft:(vt=(ut=H?.video)===null||ut===void 0?void 0:ut.bindCta)===null||vt===void 0?void 0:vt.traceInfo)!==null&&pt!==void 0?pt:(Je=(gt=(st=H?.video)===null||st===void 0?void 0:st.bindProduct)===null||gt===void 0?void 0:gt.bindCta)===null||Je===void 0?void 0:Je.traceInfo)!==null&&kt!==void 0?kt:(Dt=(Bt=(Me=(Re=H?.video)===null||Re===void 0?void 0:Re.bindProducts)===null||Me===void 0?void 0:Me[0])===null||Bt===void 0?void 0:Bt.bindCta)===null||Dt===void 0?void 0:Dt.traceInfo)!==null&&Ai!==void 0?Ai:(ci=(At=H?.product)===null||At===void 0?void 0:At.bindCta)===null||ci===void 0?void 0:ci.traceInfo)!==null&&sn!==void 0?sn:"",fromKName:Xi,fromKPage:(rn=location?.href)!==null&&rn!==void 0?rn:"",contentFormat:dn})})},[wt,_e]),Ot=de(()=>{var z,H,ie;const ye=location.search.slice(1),pe={};(z=pi(ye.replace(/\+/g,"%2B")))===null||z===void 0||z.map(ke=>{const Ce=ke.split("=")[0],Be=ke.split("=")[1];pe[Ce]=Be});for(const ke in pe)pe[ke]=pe[ke].replace(/%2B/g,"+");const he=ke=>{var Ce;return(Ce=pe[ke])!==null&&Ce!==void 0?Ce:""},Se=new Date;Le.current=Se,wt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:he("utm_source"),utmMedium:he("utm_medium"),utmCampaign:he("utm_campaign"),utmId:he("utm_id"),utmContent:he("utm_content"),enterTime:Math.floor(Se/1e3)+"",requestId:null,enterUrl:(ie=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&ie!==void 0?ie:""},reportLayId:!1})},[wt]),an=de(()=>mt(void 0,void 0,void 0,function*(){var z,H;const ie=yield xe?.("v1/account",{method:"GET"});return Yt((z=ie?.data)===null||z===void 0?void 0:z.chatLabsId),((H=ie?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[xe]),Hi=de(z=>mt(void 0,void 0,void 0,function*(){const H=yield xe?.("v1/account/consent",{method:"POST",body:{consentResult:z}});return H?.success}),[xe]);ce(()=>{It||Ot()},[It]),ce(()=>{if(It||a)return;B(!0);let z,H;Ut().then(ie=>{var ye,pe,he,Se,ke,Ce,Be,L,Y,G,Q;if(ie){const re=Tt(ie);let ne,le;if(ie?.layoutVariantId){z=ie?.layoutVariantId,lt(ie?.layoutVariantId);const oe=(pe=(ye=ie?.layoutVariantId)===null||ye===void 0?void 0:ye.split("-"))===null||pe===void 0?void 0:pe[1];oe&&(ne=w?.find(se=>se?.id===oe),ne?(Ee(ne),document.title=(he=ne?.name)!==null&&he!==void 0?he:"home",le=(ke=(Se=ne?.data)===null||Se===void 0?void 0:Se.sxpPageConf)===null||ke===void 0?void 0:ke.globalConfig,ae(le),P?.(ne?.data),!((Y=(L=(Be=(Ce=le?.consent)===null||Ce===void 0?void 0:Ce[0])===null||Be===void 0?void 0:Be.item)===null||L===void 0?void 0:L.props)===null||Y===void 0)&&Y.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(it||(le?.playbook==="organic menu"||!le&&_?.playbook==="organic menu"?(ht("organicMenu"),re.unshift("organic menu"),H="organicMenu"):(ht("paidMedia"),H="paidMedia")),E(re),me(re),Xt(ne??Rt),it){const oe=re?.[0],se=((G=oe?.video)===null||G===void 0?void 0:G.traceInfo)||((Q=oe?.product)===null||Q===void 0?void 0:Q.traceInfo)||"";wt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:se,branchfeed:it},z&&{layoutVariantId:z})}),wt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:se,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-ot?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{wt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),H&&{playbookType:H})}),B(!1)})},[It,it]),ce(()=>{a&&(B(!0),Xt(h),Ut().then(z=>{if(z){const H=Tt(z);_?.playbook==="organic menu"&&!it&&H.unshift("organic menu"),E(H),me(H)}}).finally(()=>{B(!1)}))},[Ut,Xt,it]);const Ui=Lt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return u.createElement(lo.Provider,{value:{rtcList:N,setRtcList:E,mutateLike:oi,mutateUnlike:hi,submitForm:li,popupDetailData:$,loadVideos:ln,setPopupDetailData:be,getRecommendVideos:Ut,bffEventReport:wt,isPreview:a,loading:D,sxpParameter:d,waterFallData:ue,setWaterFallData:J,ctaEvent:_t,swiperRef:M,openHashtag:Pe,setOpenHashtag:De,cacheRtcList:Xe,setCacheRtcList:me,cacheActiveIndex:ve,setCacheActiveIndex:et,isFromHashtag:_e,setIsFromHashtag:Ze,appDomain:s,hashTagSize:c,loadingImage:r??Ui,isOpenHashTag:A,tagList:y,setLoading:B,videoRef:$e,setVideoRef:dt,bffFbReport:zi,isAgreePolicy:U,setIsAgreePolicy:q,curTime:Le,h5EnterLink:Ot,themeTag:tt,isShowConsent:It,selectTag:Pt,setSelectTag:He,globalConfig:_,popupCurTimeRef:Ye,checkCommodityIndexRef:qe,isEditor:S,isNoMoreData:K,updateChannel:Kt,channel:it,eventTimeList:nt,setEventTimeList:Ue,multiPostTimeRef:ot,refreshFeSession:fi,getAccount:an,accountSonsent:Hi,isDiyH5:C,pixelPvStatusRef:Et}},It?u.createElement(Al,Object.assign({},(I=(R=(T=_?.consent)===null||T===void 0?void 0:T[0])===null||R===void 0?void 0:R.item)===null||I===void 0?void 0:I.props)):t({rtcList:N,mutateLike:oi,mutateUnlike:hi,submitForm:li,tagList:y,pageData:Rt}))};var ao=je(bl);function Ge(){return Ii(lo)}var so;(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"})(so||(so={}));const ro=ki({$store:{},options:[],configs:[]}),gl=({children:t,isSsr:e,enable:i})=>{const[n,l]=Z([]),{schema:o}=ai(),[a,d]=Z(o.__STORE__||{}),[s,c]=Z([]);ce(()=>{var f;e||Hn(s,o?.dataSource)||c((f=o?.dataSource)!==null&&f!==void 0?f:[])},[o?.dataSource,e]);const r=de(()=>mt(void 0,void 0,void 0,function*(){const{$store:f,idMapName:p}=yield Gn("",s);d(f),A(f,p)}),[s]),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)})}),l(b)};return ce(()=>{e||r()},[r,e,o]),i?u.createElement(ro.Provider,{value:{$store:o.__STORE__||a,options:n,configs:s}},t):t};var yl=je(gl);const Gi={id:qi(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},hn={id:"",duration:0,name:"none"},co=u.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Gi],redoStack:[],popup:hn,setPopup:()=>{}}),uo=vi(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:l=!0,utmVal:o},a)=>{const[d,s]=Z(null),[c,r]=Z(n||{pointData:[Gi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[A,f]=Z([Gi]),[p,b]=Z([[Gi]]),[m,S]=Z([]),[v,g]=Z(hn);typeof window<"u"&&(window.sxpPopup=(V,j)=>{g(Object.assign(Object.assign(Object.assign({},hn),{id:V}),j))}),typeof window<"u"&&(window.getJointUtmLink=V=>(ml(),V?.indexOf("?")!==-1?V+(o?"&"+o:""):V+(o?"?"+o:""))),ce(()=>{b([c.pointData]),S([])},[c.type]);const h=de(V=>{const j=bi(c);j&&(j.dataSource=V,r?.(j))},[c]),[w,C]=Z();Ci(a,()=>({loadSchema(V){V&&(b([V.pointData]),r(V))},exportSchema(){return bi(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=we(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return u.createElement(co.Provider,{value:{resolver:e,currentNode:d,schema:c,setCurrentNode:s,setSchema:r,saveDataSource:h,prePiontData:A,setPrePiontData:f,pageInfoData:w,setPageInfoData:V=>C(Object.assign(Object.assign({},w),V)),undoStack:p,redoStack:m,setRedoStack:S,setUndoStack:b,getCurPageConf:P,popup:v,setPopup:g}},u.createElement(yl,{isSsr:i,enable:l},t))});var wl=Object.freeze({__proto__:null,EditorCore:uo}),Sl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],xl=[{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 Vt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:l}=Ge(),o=de((s,c,r,A,f,p)=>{var b,m,S,v,g,h,w,C,P,V,j,x,T,R,I,N,E,y,F,D,B,O,k,M,X,U,q,$,be,ue,J,Pe,De,Xe,me,ve,et,_e;if(n?.findIndex(Le=>Le.target===s?.target)!==-1)return;s&&l?.(Le=>[...Le,{target:s?.target,time:new Date}]);let $e="";e&&(!((m=(b=c?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0)&&m.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?$e="pdpPage":i?$e="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?$e="videoPage":!((g=c?.video)===null||g===void 0)&&g.imgUrls&&(!((w=(h=c?.video)===null||h===void 0?void 0:h.imgUrls)===null||w===void 0)&&w.length)?$e="imagePage":c?.product&&($e="productPage");const dt=(R=(x=(C=r?.tags)!==null&&C!==void 0?C:(j=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||j===void 0?void 0:j.tags)!==null&&x!==void 0?x:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&R!==void 0?R:(I=c?.product)===null||I===void 0?void 0:I.tags;let tt=null;!((N=c?.video)===null||N===void 0)&&N.url?tt="video":!((E=c?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(y=c?.video)===null||y===void 0?void 0:y.imgUrls)===null||F===void 0)&&F.length)&&(tt="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(D=r?.itemId)!==null&&D!==void 0?D:"",productName:(B=r?.title)!==null&&B!==void 0?B:"",price:r?.price?r?.price+"":"0",productCollection:(O=r?.collection)!==null&&O!==void 0?O:"",fromKName:$e,fromKPage:location?.href,contentTags:dt?JSON.stringify(dt):"",position:f+"",contentId:(M=(k=c?.video)===null||k===void 0?void 0:k.itemId)!==null&&M!==void 0?M:"",ctatId:(X=A?.itemId)!==null&&X!==void 0?X:"",traceInfo:(_e=(me=(De=(be=(U=p??r?.traceInfo)!==null&&U!==void 0?U:($=(q=c?.video)===null||q===void 0?void 0:q.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&be!==void 0?be:(Pe=(J=(ue=c?.video)===null||ue===void 0?void 0:ue.bindProducts)===null||J===void 0?void 0:J[0])===null||Pe===void 0?void 0:Pe.traceInfo)!==null&&De!==void 0?De:(Xe=c?.product)===null||Xe===void 0?void 0:Xe.traceInfo)!==null&&me!==void 0?me:(et=(ve=c?.video)===null||ve===void 0?void 0:ve.bindCta)===null||et===void 0?void 0:et.traceInfo)!==null&&_e!==void 0?_e:""},tt&&{contentFormat:tt})})},[t,e,i,n]),a=de((s,c,r,A,f)=>{var p,b,m,S,v,g,h,w,C,P,V,j,x,T;let R="";e&&(!((b=(p=s?.video)===null||p===void 0?void 0:p.bindProducts)===null||b===void 0)&&b.length||!((m=s?.video)===null||m===void 0)&&m.bindProduct)?R="pdpPage":s?.product&&(R="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:R,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:f+"",contentId:(S=s?.video)===null||S===void 0?void 0:S.itemId,ctatId:r?.itemId,traceInfo:(T=(j=(w=(v=c?.traceInfo)!==null&&v!==void 0?v:(h=(g=s?.video)===null||g===void 0?void 0:g.bindProduct)===null||h===void 0?void 0:h.traceInfo)!==null&&w!==void 0?w:(V=(P=(C=s?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||V===void 0?void 0:V.traceInfo)!==null&&j!==void 0?j:(x=s?.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]),d=de((s,c,r,A)=>{c&&c===Yi&&t?.({eventInfo:{lastFeed:s,themeTags:r?`['${r}']`:"",hashTags:A?`['${A}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:a,backMainFeed:d}}const Tl=({layout:t,columns:e,onChange:i})=>u.createElement(u.Fragment,null,e?.map((n,l)=>u.createElement("div",{key:l,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&u.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&u.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var El=je(Tl);const Il=t=>{var e,i,{columns:n,style:l,title:o,textStyle:a,submitBgColor:d,submitColor:s,submitText:c,layoutType:r="inline",isExternalLink:A,isPopup:f,onClick:p,onClose:b,submitButtonStyle:m}=t,S=rt(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=Ge(),{jumpToWeb:h}=Vt(),[w,C]=Z(!1),[P,V]=Z({}),[j,x]=Z(0),T=we(()=>[{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"}],[]),R=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),I=we(()=>bi(n)||T,[n,T]),N=de(y=>{const{name:F,value:D}=y.target;V(Object.assign(Object.assign({},P),{[F]:D}))},[P]),E=Ei(y=>mt(void 0,void 0,void 0,function*(){var F,D,B,O,k;const M=P;if(!M)return;const X=(D=(F=Object.keys(M))===null||F===void 0?void 0:F.map(q=>{var $;return{name:q,value:($=M[q])!==null&&$!==void 0?$:""}}))===null||D===void 0?void 0:D.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,$=(B=q?.video)===null||B===void 0?void 0:B.bindProduct,be=(k=(O=q?.video)===null||O===void 0?void 0:O.bindProduct)===null||k===void 0?void 0:k.bindCta,ue=g?.index;h(y,q,$,be,ue)}f||b?.(),p?.()}}),1e3);return ce(()=>{const y=()=>{var F,D;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((D=document?.body)===null||D===void 0?void 0:D.clientHeight))<R?x(50):x(0)};return window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}},[]),u.createElement("div",{className:"pb-appoint-form"},u.createElement("div",{className:`pb-appoint-form-title ${ze(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:Ve(o,a)}}),u.createElement("div",Object.assign({className:ze(Object.assign(Object.assign({},l),{marginTop:j}))},S),u.createElement("div",{className:"pb-appoint-form-container"},u.createElement(El,{columns:I,layout:r,onChange:N}))),u.createElement("div",{className:"pb-appoint-form-btn-wrapper"},u.createElement("button",{"aria-label":c,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:s,background:d},m),dangerouslySetInnerHTML:{__html:Ve(w?"loading...":c,m)}})))};var kl=je(Il);function yt(t,e){return t.extend=e,t}const Cl=yt(kl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:xl,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 Pl=[{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"]}]}],Ol=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function vo(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function An(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:vo(e[i])&&vo(t[i])&&Object.keys(e[i]).length>0&&An(t[i],e[i])})}const po={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 Ft(){const t=typeof document<"u"?document:{};return An(t,po),t}const Ll={document:po,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 Nt(){const t=typeof window<"u"?window:{};return An(t,Ll),t}function si(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function jl(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function gi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function qt(){return Date.now()}function Nl(t){const e=Nt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Ml(t,e){e===void 0&&(e="x");const i=Nt();let n,l,o;const a=Nl(t);return i.WebKitCSSMatrix?(l=a.transform||a.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(d=>d.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(l==="none"?"":l)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?l=o.m41:n.length===16?l=parseFloat(n[12]):l=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?l=o.m42:n.length===16?l=parseFloat(n[13]):l=parseFloat(n[5])),l||0}function _i(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Dl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Wt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Dl(n)){const l=Object.keys(Object(n)).filter(o=>e.indexOf(o)<0);for(let o=0,a=l.length;o<a;o+=1){const d=l[o],s=Object.getOwnPropertyDescriptor(n,d);s!==void 0&&s.enumerable&&(_i(t[d])&&_i(n[d])?n[d].__swiper__?t[d]=n[d]:Wt(t[d],n[d]):!_i(t[d])&&_i(n[d])?(t[d]={},n[d].__swiper__?t[d]=n[d]:Wt(t[d],n[d])):t[d]=n[d])}}}return t}function Zi(t,e,i){t.style.setProperty(e,i)}function mo(t){let{swiper:e,targetPosition:i,side:n}=t;const l=Nt(),o=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const c=i>o?"next":"prev",r=(f,p)=>c==="next"&&f>=p||c==="prev"&&f<=p,A=()=>{d=new Date().getTime(),a===null&&(a=d);const f=Math.max(Math.min((d-a)/s,1),0),p=.5-Math.cos(f*Math.PI)/2;let b=o+p*(i-o);if(r(b,i)&&(b=i),e.wrapperEl.scrollTo({[n]:b}),r(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:b})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(A)};A()}function Jt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Ki(t){try{console.warn(t);return}catch{}}function yi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:si(e)),i}function fo(t){const e=Nt(),i=Ft(),n=t.getBoundingClientRect(),l=i.body,o=t.clientTop||l.clientTop||0,a=t.clientLeft||l.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-o,left:n.left+s-a}}function Vl(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Rl(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ri(t,e){return Nt().getComputedStyle(t,null).getPropertyValue(e)}function Pi(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ji(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function bn(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function gn(t,e,i){const n=Nt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Qe(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let yn;function Bl(){const t=Nt(),e=Ft();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function ho(){return yn||(yn=Bl()),yn}let wn;function Fl(t){let{userAgent:e}=t===void 0?{}:t;const i=ho(),n=Nt(),l=n.navigator.platform,o=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let r=o.match(/(iPad).*OS\s([\d_]+)/);const A=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!r&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=l==="Win32";let b=l==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!r&&b&&i.touch&&m.indexOf(`${d}x${s}`)>=0&&(r=o.match(/(Version)\/([\d.]+)/),r||(r=[0,1,"13_0_0"]),b=!1),c&&!p&&(a.os="android",a.android=!0),(r||f||A)&&(a.os="ios",a.ios=!0),a}function Ao(t){return t===void 0&&(t={}),wn||(wn=Fl(t)),wn}let Sn;function Wl(){const t=Nt(),e=Ao();let i=!1;function n(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(n()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[s,c]=d.split("Version/")[1].split(" ")[0].split(".").map(r=>Number(r));i=s<16||s===16&&c<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n(),a=o||l&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:a,isWebView:l}}function zl(){return Sn||(Sn=Wl()),Sn}function Hl(t){let{swiper:e,on:i,emit:n}=t;const l=Nt();let o=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(A=>{a=l.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)&&d()})}),o.observe(e.el))},c=()=>{a&&l.cancelAnimationFrame(a),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){s();return}l.addEventListener("resize",d),l.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),l.removeEventListener("resize",d),l.removeEventListener("orientationchange",r)})}function Ul(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=[],a=Nt(),d=function(r,A){A===void 0&&(A={});const f=a.MutationObserver||a.WebkitMutationObserver,p=new f(b=>{if(e.__preventObserver__)return;if(b.length===1){l("observerUpdate",b[0]);return}const m=function(){l("observerUpdate",b[0])};a.requestAnimationFrame?a.requestAnimationFrame(m):a.setTimeout(m,0)});p.observe(r,{attributes:typeof A.attributes>"u"?!0:A.attributes,childList:typeof A.childList>"u"?!0:A.childList,characterData:typeof A.characterData>"u"?!0:A.characterData}),o.push(p)},s=()=>{if(e.params.observer){if(e.params.observeParents){const r=Ji(e.hostEl);for(let A=0;A<r.length;A+=1)d(r[A])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},c=()=>{o.forEach(r=>{r.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Xl={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const l=i?"unshift":"push";return t.split(" ").forEach(o=>{n.eventsListeners[o]||(n.eventsListeners[o]=[]),n.eventsListeners[o][l](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function l(){n.off(t,l),l.__emitterProxy&&delete l.__emitterProxy;for(var o=arguments.length,a=new Array(o),d=0;d<o;d++)a[d]=arguments[d];e.apply(n,a)}return l.__emitterProxy=e,n.on(t,l,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((l,o)=>{(l===e||l.__emitterProxy&&l.__emitterProxy===e)&&i.eventsListeners[n].splice(o,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var l=arguments.length,o=new Array(l),a=0;a<l;a++)o[a]=arguments[a];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),n=t):(e=o[0].events,i=o[0].data,n=o[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(n,i)})}),t}};function ql(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ri(n,"padding-left")||0,10)-parseInt(ri(n,"padding-right")||0,10),i=i-parseInt(ri(n,"padding-top")||0,10)-parseInt(ri(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Yl(){const t=this;function e(T,R){return parseFloat(T.getPropertyValue(t.getDirectionLabel(R))||0)}const i=t.params,{wrapperEl:n,slidesEl:l,size:o,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Jt(l,`.${t.params.slideClass}, swiper-slide`),A=s?t.virtual.slides.length:r.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 o>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*o:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,r.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Zi(n,"--swiper-centered-offset-before",""),Zi(n,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(r):t.grid&&t.grid.unsetSlides();let j;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){j=0;let R;if(r[T]&&(R=r[T]),V&&t.grid.updateSlide(T,R,r),!(r[T]&&ri(R,"display")==="none")){if(i.slidesPerView==="auto"){x&&(r[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(R),N=R.style.transform,E=R.style.webkitTransform;if(N&&(R.style.transform="none"),E&&(R.style.webkitTransform="none"),i.roundLengths)j=t.isHorizontal()?gn(R,"width",!0):gn(R,"height",!0);else{const y=e(I,"width"),F=e(I,"padding-left"),D=e(I,"padding-right"),B=e(I,"margin-left"),O=e(I,"margin-right"),k=I.getPropertyValue("box-sizing");if(k&&k==="border-box")j=y+B+O;else{const{clientWidth:M,offsetWidth:X}=R;j=y+F+D+B+O+(X-M)}}N&&(R.style.transform=N),E&&(R.style.webkitTransform=E),i.roundLengths&&(j=Math.floor(j))}else j=(o-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(j=Math.floor(j)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${j}px`);r[T]&&(r[T].swiperSlideSize=j),b.push(j),i.centeredSlides?(w=w+j/2+C/2+h,C===0&&T!==0&&(w=w-o/2-h),T===0&&(w=w-o/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+j+h),t.virtualSize+=j+h,C=j,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+S,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+h}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+h}px`),V&&t.grid.updateWrapperSize(j,f),!i.centeredSlides){const T=[];for(let R=0;R<f.length;R+=1){let I=f[R];i.roundLengths&&(I=Math.floor(I)),f[R]<=t.virtualSize-o&&T.push(I)}f=T,Math.floor(t.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-o)}if(s&&i.loop){const T=b[0]+h;if(i.slidesPerGroup>1){const R=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let N=0;N<R;N+=1)f.push(f[f.length-1]+I)}for(let R=0;R<t.virtual.slidesBefore+t.virtual.slidesAfter;R+=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()&&a?"marginLeft":t.getDirectionLabel("marginRight");r.filter((R,I)=>!i.cssMode||i.loop?!0:I!==r.length-1).forEach(R=>{R.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(I=>{T+=I+(h||0)}),T-=h;const R=T-o;f=f.map(I=>I<=0?-m:I>R?R+S:I)}if(i.centerInsufficientSlides){let T=0;b.forEach(I=>{T+=I+(h||0)}),T-=h;const R=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+R<o){const I=(o-T-R)/2;f.forEach((N,E)=>{f[E]=N-I}),p.forEach((N,E)=>{p[E]=N+I})}}if(Object.assign(t,{slides:r,snapGrid:f,slidesGrid:p,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Zi(n,"--swiper-centered-offset-before",`${-f[0]}px`),Zi(n,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],R=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+R)}if(A!==c&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,R=t.el.classList.contains(T);A<=i.maxBackfaceHiddenSlides?R||t.el.classList.add(T):R&&t.el.classList.remove(T)}}function Gl(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let l=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>n?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const d=e.activeIndex+o;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const d=i[o].offsetHeight;l=d>l?d:l}(l||l===0)&&(e.wrapperEl.style.height=`${l}px`)}function _l(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const bo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Zl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:l,snapGrid:o}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;l&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let s=0;s<n.length;s+=1){const c=n[s];let r=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(r-=n[0].swiperSlideOffset);const A=(a+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),f=(a-o[0]+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),p=-(a-r),b=p+e.slidesSizesGrid[s],m=p>=0&&p<=e.size-e.slidesSizesGrid[s],S=p>=0&&p<e.size-1||b>1&&b<=e.size||p<=0&&b>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s)),bo(c,S,i.slideVisibleClass),bo(c,m,i.slideFullyVisibleClass),c.progress=l?-A:A,c.originalProgress=l?-f:f}}function Kl(t){const e=this;if(typeof t>"u"){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:l,isBeginning:o,isEnd:a,progressLoop:d}=e;const s=o,c=a;if(n===0)l=0,o=!0,a=!0;else{l=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,A=Math.abs(t-e.maxTranslate())<1;o=r||l<=0,a=A||l>=1,r&&(l=0),A&&(l=1)}if(i.loop){const r=e.getSlideIndexByData(0),A=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[r],p=e.slidesGrid[A],b=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=f?d=(m-f)/b:d=(m+b-p)/b,d>1&&(d-=1)}Object.assign(e,{progress:l,progressLoop:d,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!o||c&&!a)&&e.emit("fromEdge"),e.emit("progress",l)}const xn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Jl(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:l}=t,o=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=A=>Jt(n,`.${i.slideClass}${A}, swiper-slide${A}`)[0];let s,c,r;if(o)if(i.loop){let A=l-t.virtual.slidesBefore;A<0&&(A=t.virtual.slides.length+A),A>=t.virtual.slides.length&&(A-=t.virtual.slides.length),s=d(`[data-swiper-slide-index="${A}"]`)}else s=d(`[data-swiper-slide-index="${l}"]`);else a?(s=e.filter(A=>A.column===l)[0],r=e.filter(A=>A.column===l+1)[0],c=e.filter(A=>A.column===l-1)[0]):s=e[l];s&&(a||(r=Rl(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Vl(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(A=>{xn(A,A===s,i.slideActiveClass),xn(A,A===r,i.slideNextClass),xn(A,A===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Qi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let l=n.querySelector(`.${t.params.lazyPreloaderClass}`);!l&&t.isElement&&(n.shadowRoot?l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),l&&l.remove())})),l&&l.remove()}},Tn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},En=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),l=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=l,d=[a-e];d.push(...Array.from({length:e}).map((s,c)=>a+n+c)),t.slides.forEach((s,c)=>{d.includes(s.column)&&Tn(t,c)});return}const o=l+n-1;if(t.params.rewind||t.params.loop)for(let a=l-e;a<=o+e;a+=1){const d=(a%i+i)%i;(d<l||d>o)&&Tn(t,d)}else for(let a=Math.max(l-e,0);a<=Math.min(o+e,i-1);a+=1)a!==l&&(a>o||a<l)&&Tn(t,a)};function Ql(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let l;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?n>=e[o]&&n<e[o+1]-(e[o+1]-e[o])/2?l=o:n>=e[o]&&n<e[o+1]&&(l=o+1):n>=e[o]&&(l=o);return i.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function $l(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:l,activeIndex:o,realIndex:a,snapIndex:d}=e;let s=t,c;const r=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 s>"u"&&(s=Ql(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const p=Math.min(l.slidesPerGroupSkip,s);c=p+Math.floor((s-p)/l.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===o&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const A=e.grid&&l.grid&&l.grid.rows>1;let f;if(e.virtual&&l.virtual.enabled&&l.loop)f=r(s);else if(A){const p=e.slides.filter(m=>m.column===s)[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/l.grid.rows)}else if(e.slides[s]){const p=e.slides[s].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=s}else f=s;Object.assign(e,{previousSnapIndex:d,snapIndex:c,previousRealIndex:a,realIndex:f,previousIndex:o,activeIndex:s}),e.initialized&&En(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function ea(t,e){const i=this,n=i.params;let l=t.closest(`.${n.slideClass}, swiper-slide`);!l&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!l&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(l=d)});let o=!1,a;if(l){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===l){o=!0,a=d;break}}if(l&&o)i.clickedSlide=l,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var ta={updateSize:ql,updateSlides:Yl,updateAutoHeight:Gl,updateSlidesOffset:_l,updateSlidesProgress:Zl,updateProgress:Kl,updateSlidesClasses:Jl,updateActiveIndex:$l,updateClickedSlide:ea};function ia(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:l,wrapperEl:o}=e;if(i.virtualTranslate)return n?-l:l;if(i.cssMode)return l;let a=Ml(o,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function na(t,e){const i=this,{rtlTranslate:n,params:l,wrapperEl:o,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,l.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,l.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:l.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${d}px, ${s}px, ${c}px)`);let r;const A=i.maxTranslate()-i.minTranslate();A===0?r=0:r=(t-i.minTranslate())/A,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function oa(){return-this.snapGrid[0]}function la(){return-this.snapGrid[this.snapGrid.length-1]}function aa(t,e,i,n,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const o=this,{params:a,wrapperEl:d}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const s=o.minTranslate(),c=o.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,o.updateProgress(r),a.cssMode){const A=o.isHorizontal();if(e===0)d[A?"scrollLeft":"scrollTop"]=-r;else{if(!o.support.smoothScroll)return mo({swiper:o,targetPosition:-r,side:A?"left":"top"}),!0;d.scrollTo({[A?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,l),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,l),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var sa={getTranslate:ia,setTranslate:na,minTranslate:oa,maxTranslate:la,translateTo:aa};function ra(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 go(t){let{swiper:e,runCallbacks:i,direction:n,step:l}=t;const{activeIndex:o,previousIndex:a}=e;let d=n;if(d||(o>a?d="next":o<a?d="prev":d="reset"),e.emit(`transition${l}`),i&&o!==a){if(d==="reset"){e.emit(`slideResetTransition${l}`);return}e.emit(`slideChangeTransition${l}`),d==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`)}}function da(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),go({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function ca(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),go({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var ua={setTransition:ra,transitionStart:da,transitionEnd:ca};function va(t,e,i,n,l){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:s,slidesGrid:c,previousIndex:r,activeIndex:A,rtlTranslate:f,wrapperEl:p,enabled:b}=o;if(!b&&!n&&!l||o.destroyed||o.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,a);let S=m+Math.floor((a-m)/o.params.slidesPerGroup);S>=s.length&&(S=s.length-1);const v=-s[S];if(d.normalizeSlideIndex)for(let h=0;h<c.length;h+=1){const w=-Math.floor(v*100),C=Math.floor(c[h]*100),P=Math.floor(c[h+1]*100);typeof c[h+1]<"u"?w>=C&&w<P-(P-C)/2?a=h:w>=C&&w<P&&(a=h+1):w>=C&&(a=h)}if(o.initialized&&a!==A&&(!o.allowSlideNext&&(f?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate())||!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(A||0)!==a))return!1;a!==(r||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(v);let g;if(a>A?g="next":a<A?g="prev":g="reset",f&&-v===o.translate||!f&&v===o.translate)return o.updateActiveIndex(a),d.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),d.effect!=="slide"&&o.setTranslate(v),g!=="reset"&&(o.transitionStart(i,g),o.transitionEnd(i,g)),!1;if(d.cssMode){const h=o.isHorizontal(),w=f?v:-v;if(e===0){const C=o.virtual&&o.params.virtual.enabled;C&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),C&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[h?"scrollLeft":"scrollTop"]=w})):p[h?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return mo({swiper:o,targetPosition:w,side:h?"left":"top"}),!0;p.scrollTo({[h?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,g),e===0?o.transitionEnd(i,g):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,g))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function pa(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;if(l.destroyed)return;typeof e>"u"&&(e=l.params.speed);const o=l.grid&&l.params.grid&&l.params.grid.rows>1;let a=t;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)a=a+l.virtual.slidesBefore;else{let d;if(o){const f=a*l.params.grid.rows;d=l.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else d=l.getSlideIndexByData(a);const s=o?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:c}=l.params;let r=l.params.slidesPerView;r==="auto"?r=l.slidesPerViewDynamic():(r=Math.ceil(parseFloat(l.params.slidesPerView,10)),c&&r%2===0&&(r=r+1));let A=s-d<r;if(c&&(A=A||d<Math.ceil(r/2)),n&&c&&l.params.slidesPerView!=="auto"&&!o&&(A=!1),A){const f=c?d<l.activeIndex?"prev":"next":d-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?d+1:d-s+1,slideRealIndex:f==="next"?l.realIndex:void 0})}if(o){const f=a*l.params.grid.rows;a=l.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=l.getSlideIndexByData(a)}return requestAnimationFrame(()=>{l.slideTo(a,e,i,n)}),l}function ma(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:l,params:o,animating:a}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<o.slidesPerGroupSkip?1:d,c=n.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function fa(t,e,i){e===void 0&&(e=!0);const n=this,{params:l,snapGrid:o,slidesGrid:a,rtlTranslate:d,enabled:s,animating:c}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const r=n.virtual&&l.virtual.enabled;if(l.loop){if(c&&!r&&l.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const A=d?n.translate:-n.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=f(A),b=o.map(v=>f(v));let m=o[b.indexOf(p)-1];if(typeof m>"u"&&l.cssMode){let v;o.forEach((g,h)=>{p>=g&&(v=h)}),typeof v<"u"&&(m=o[v>0?v-1:v])}let S=0;if(typeof m<"u"&&(S=a.indexOf(m),S<0&&(S=n.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),l.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(l.loop&&n.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,t,e,i)}),!0;return n.slideTo(S,t,e,i)}function ha(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function Aa(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const l=this;if(l.destroyed)return;typeof t>"u"&&(t=l.params.speed);let o=l.activeIndex;const a=Math.min(l.params.slidesPerGroupSkip,o),d=a+Math.floor((o-a)/l.params.slidesPerGroup),s=l.rtlTranslate?l.translate:-l.translate;if(s>=l.snapGrid[d]){const c=l.snapGrid[d],r=l.snapGrid[d+1];s-c>(r-c)*n&&(o+=l.params.slidesPerGroup)}else{const c=l.snapGrid[d-1],r=l.snapGrid[d];s-c<=(r-c)*n&&(o-=l.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,l.slidesGrid.length-1),l.slideTo(o,t,e,i)}function ba(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let l=t.clickedIndex,o;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?l<t.loopedSlides-n/2||l>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),l=t.getSlideIndex(Jt(i,`${a}[data-swiper-slide-index="${o}"]`)[0]),gi(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-n?(t.loopFix(),l=t.getSlideIndex(Jt(i,`${a}[data-swiper-slide-index="${o}"]`)[0]),gi(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}var ga={slideTo:va,slideToLoop:pa,slideNext:ma,slidePrev:fa,slideReset:ha,slideToClosest:Aa,slideToClickedSlide:ba};function ya(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const l=()=>{Jt(n,`.${i.slideClass}, swiper-slide`).forEach((A,f)=>{A.setAttribute("data-swiper-slide-index",f)})},o=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(o?i.grid.rows:1),d=e.slides.length%a!==0,s=o&&e.slides.length%i.grid.rows!==0,c=r=>{for(let A=0;A<r;A+=1){const f=e.isElement?yi("swiper-slide",[i.slideBlankClass]):yi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(d){if(i.loopAddBlankSlides){const r=a-e.slides.length%a;c(r),e.recalcSlides(),e.updateSlides()}else Ki("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)");l()}else if(s){if(i.loopAddBlankSlides){const r=i.grid.rows-e.slides.length%i.grid.rows;c(r),e.recalcSlides(),e.updateSlides()}else Ki("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)");l()}else l();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function wa(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:l,activeSlideIndex:o,byController:a,byMousewheel:d}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:c,allowSlidePrev:r,allowSlideNext:A,slidesEl:f,params:p}=s,{centeredSlides:b}=p;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):p.centeredSlides&&s.snapIndex<p.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=r,s.allowSlideNext=A,s.emit("loopFix");return}let m=p.slidesPerView;m==="auto"?m=s.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,s.loopedSlides=v;const g=s.grid&&p.grid&&p.grid.rows>1;c.length<m+v?Ki("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"&&Ki("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],w=[];let C=s.activeIndex;typeof o>"u"?o=s.getSlideIndex(c.filter(N=>N.classList.contains(p.slideActiveClass))[0]):C=o;const P=n==="next"||!n,V=n==="prev"||!n;let j=0,x=0;const T=g?Math.ceil(c.length/p.grid.rows):c.length,I=(g?c[o].column:o)+(b&&typeof l>"u"?-m/2+.5:0);if(I<v){j=Math.max(v-I,S);for(let N=0;N<v-I;N+=1){const E=N-Math.floor(N/T)*T;if(g){const y=T-E-1;for(let F=c.length-1;F>=0;F-=1)c[F].column===y&&h.push(F)}else h.push(T-E-1)}}else if(I+m>T-v){x=Math.max(I-(T-v*2),S);for(let N=0;N<x;N+=1){const E=N-Math.floor(N/T)*T;g?c.forEach((y,F)=>{y.column===E&&w.push(F)}):w.push(E)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),V&&h.forEach(N=>{c[N].swiperLoopMoveDOM=!0,f.prepend(c[N]),c[N].swiperLoopMoveDOM=!1}),P&&w.forEach(N=>{c[N].swiperLoopMoveDOM=!0,f.append(c[N]),c[N].swiperLoopMoveDOM=!1}),s.recalcSlides(),p.slidesPerView==="auto"?s.updateSlides():g&&(h.length>0&&V||w.length>0&&P)&&s.slides.forEach((N,E)=>{s.grid.updateSlide(E,N,s.slides)}),p.watchSlidesProgress&&s.updateSlidesOffset(),i){if(h.length>0&&V){if(typeof e>"u"){const N=s.slidesGrid[C],y=s.slidesGrid[C+j]-N;d?s.setTranslate(s.translate-y):(s.slideTo(C+Math.ceil(j),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-y,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-y))}else if(l){const N=g?h.length/p.grid.rows:h.length;s.slideTo(s.activeIndex+N,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&P)if(typeof e>"u"){const N=s.slidesGrid[C],y=s.slidesGrid[C-x]-N;d?s.setTranslate(s.translate-y):(s.slideTo(C-x,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-y,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-y))}else{const N=g?w.length/p.grid.rows:w.length;s.slideTo(s.activeIndex-N,0,!1,!0)}}if(s.allowSlidePrev=r,s.allowSlideNext=A,s.controller&&s.controller.control&&!a){const N={slideRealIndex:e,direction:n,setTranslate:l,activeSlideIndex:o,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...N,slideTo:E.params.slidesPerView===p.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...N,slideTo:s.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}s.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 n=[];t.slides.forEach(l=>{const o=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;n[o]=l}),t.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),n.forEach(l=>{i.append(l)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var xa={loopCreate:ya,loopFix:wa,loopDestroy:Sa};function Ta(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 Ea(){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 Ia={setGrabCursor:Ta,unsetGrabCursor:Ea};function ka(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Ft()||n===Nt())return null;n.assignedSlot&&(n=n.assignedSlot);const l=n.closest(t);return!l&&!n.getRootNode?null:l||i(n.getRootNode().host)}return i(e)}function yo(t,e,i){const n=Nt(),{params:l}=t,o=l.edgeSwipeDetection,a=l.edgeSwipeThreshold;return o&&(i<=a||i>=n.innerWidth-a)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function Ca(t){const e=this,i=Ft();let n=t;n.originalEvent&&(n=n.originalEvent);const l=e.touchEventsData;if(n.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==n.pointerId)return;l.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(l.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){yo(e,n,n.targetTouches[0].pageX);return}const{params:o,touches:a,enabled:d}=e;if(!d||!o.simulateTouch&&n.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let s=n.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||l.isTouched&&l.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const A=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(f?ka(A,s):s.closest(A))){e.allowClick=!0;return}if(o.swipeHandler&&!s.closest(o.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const p=a.currentX,b=a.currentY;if(!yo(e,n,p))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=b,l.touchStartTime=qt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(l.allowThresholdMove=!1);let m=!0;s.matches(l.focusableElements)&&(m=!1,s.nodeName==="SELECT"&&(l.isTouched=!1)),i.activeElement&&i.activeElement.matches(l.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const S=m&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||S)&&!s.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Pa(t){const e=Ft(),i=this,n=i.touchEventsData,{params:l,touches:o,rtlTranslate:a,enabled:d}=i;if(!d||!l.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let c;if(s.type==="touchmove"){if(c=[...s.changedTouches].filter(P=>P.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const r=c.pageX,A=c.pageY;if(s.preventedByNestedSwiper){o.startX=r,o.startY=A;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:r,startY:A,currentX:r,currentY:A}),n.touchStartTime=qt());return}if(l.touchReleaseOnEdges&&!l.loop){if(i.isVertical()){if(A<o.startY&&i.translate<=i.maxTranslate()||A>o.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<o.startX&&i.translate<=i.maxTranslate()||r>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=r,o.currentY=A;const f=o.currentX-o.startX,p=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+p**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:f*f+p*p>=25&&(P=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,n.isScrolling=i.isHorizontal()?P>l.touchAngle:90-P>l.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!l.cssMode&&s.cancelable&&s.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&s.stopPropagation();let b=i.isHorizontal()?f:p,m=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;l.oneWayMovement&&(b=Math.abs(b)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=b,b*=l.touchRatio,a&&(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&&!l.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}n.allowMomentumBounce=!1,l.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let h;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(b)>=1){Object.assign(o,{startX:r,startY:A,currentX:r,currentY:A,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=b+n.startTranslate;let w=!0,C=l.resistanceRatio;if(l.touchReleaseOnEdges&&(C=0),b>0?(v&&g&&!h&&n.allowThresholdMove&&n.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,l.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+b)**C))):b<0&&(v&&g&&!h&&n.allowThresholdMove&&n.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(l.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,l.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-b)**C))),w&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),l.threshold>0)if(Math.abs(b)>l.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{n.currentTranslate=n.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Oa(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let l;if(n.type==="touchend"||n.type==="touchcancel"){if(l=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!l||l.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;l=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:s,slidesGrid:c,enabled:r}=e;if(!r||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const A=qt(),f=A-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),f<300&&A-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=qt(),gi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(a.followFinger?p=s?e.translate:-e.translate:p=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const b=p>=-e.maxTranslate()&&!e.params.loop;let m=0,S=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const P=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[C+P]<"u"?(b||p>=c[C]&&p<c[C+P])&&(m=C,S=c[C+P]-c[C]):(b||p>=c[C])&&(m=C,S=c[c.length-1]-c[c.length-2])}let v=null,g=null;a.rewind&&(e.isBeginning?g=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(p-c[m])/S,w=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?v:m+w):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-a.longSwipesRatio?e.slideTo(m+w):g!==null&&h<0&&Math.abs(h)>a.longSwipesRatio?e.slideTo(g):e.slideTo(m))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(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 wo(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:l,snapGrid:o}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=l,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function La(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function ja(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let l;const o=t.maxTranslate()-t.minTranslate();o===0?l=0:l=(t.translate-t.minTranslate())/o,l!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Na(t){const e=this;Qi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Ma(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const So=(t,e)=>{const i=Ft(),{params:n,el:l,wrapperEl:o,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!l||typeof l=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),l[s]("touchstart",t.onTouchStart,{passive:!1}),l[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:d}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&l[s]("click",t.onClick,!0),n.cssMode&&o[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",wo,!0):t[c]("observerUpdate",wo,!0),l[s]("load",t.onLoad,{capture:!0}))};function Da(){const t=this,{params:e}=t;t.onTouchStart=Ca.bind(t),t.onTouchMove=Pa.bind(t),t.onTouchEnd=Oa.bind(t),t.onDocumentTouchStart=Ma.bind(t),e.cssMode&&(t.onScroll=ja.bind(t)),t.onClick=La.bind(t),t.onLoad=Na.bind(t),So(t,"on")}function Va(){So(this,"off")}var Ra={attachEvents:Da,detachEvents:Va};const xo=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Ba(){const t=this,{realIndex:e,initialized:i,params:n,el:l}=t,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in o?o[a]:void 0)||t.originalParams,c=xo(t,n),r=xo(t,s),A=t.params.grabCursor,f=s.grabCursor,p=n.enabled;c&&!r?(l.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(l.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&l.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),A&&!f?t.unsetGrabCursor():!A&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof s[h]>"u")return;const w=n[h]&&n[h].enabled,C=s[h]&&s[h].enabled;w&&!C&&t[h].disable(),!w&&C&&t[h].enable()});const b=s.direction&&s.direction!==n.direction,m=n.loop&&(s.slidesPerView!==n.slidesPerView||b),S=n.loop;b&&i&&t.changeDirection(),Wt(t.params,s);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=a,t.emit("_beforeBreakpoint",s),i&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",s)}function Fa(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const l=Nt(),o=e==="window"?l.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:o*s,point:d}}return{value:d,point:d}});a.sort((d,s)=>parseInt(d.value,10)-parseInt(s.value,10));for(let d=0;d<a.length;d+=1){const{point:s,value:c}=a[d];e==="window"?l.matchMedia(`(min-width: ${c}px)`).matches&&(n=s):c<=i.clientWidth&&(n=s)}return n||"max"}var Wa={setBreakpoint:Ba,getBreakpoint:Fa};function za(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(l=>{n[l]&&i.push(e+l)}):typeof n=="string"&&i.push(e+n)}),i}function Ha(){const t=this,{classNames:e,params:i,rtl:n,el:l,device:o}=t,a=za(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),l.classList.add(...e),t.emitContainerClasses()}function Ua(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Xa={addClasses:Ha,removeClasses:Ua};function qa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const l=t.slides.length-1,o=t.slidesGrid[l]+t.slidesSizesGrid[l]+n*2;t.isLocked=t.size>o}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 Ya={checkOverflow:qa},In={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 Ga(t,e){return function(n){n===void 0&&(n={});const l=Object.keys(n)[0],o=n[l];if(typeof o!="object"||o===null){Wt(e,n);return}if(t[l]===!0&&(t[l]={enabled:!0}),l==="navigation"&&t[l]&&t[l].enabled&&!t[l].prevEl&&!t[l].nextEl&&(t[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&t[l]&&t[l].enabled&&!t[l].el&&(t[l].auto=!0),!(l in t&&"enabled"in o)){Wt(e,n);return}typeof t[l]=="object"&&!("enabled"in t[l])&&(t[l].enabled=!0),t[l]||(t[l]={enabled:!1}),Wt(e,n)}}const kn={eventsEmitter:Xl,update:ta,translate:sa,transition:ua,slide:ga,loop:xa,grabCursor:Ia,events:Ra,breakpoints:Wa,checkOverflow:Ya,classes:Xa},Cn={};let Pn=class ni{constructor(){let e,i;for(var n=arguments.length,l=new Array(n),o=0;o<n;o++)l[o]=arguments[o];l.length===1&&l[0].constructor&&Object.prototype.toString.call(l[0]).slice(8,-1)==="Object"?i=l[0]:[e,i]=l,i||(i={}),i=Wt({},i),e&&!i.el&&(i.el=e);const a=Ft();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const r=[];return a.querySelectorAll(i.el).forEach(A=>{const f=Wt({},i,{el:A});r.push(new ni(f))}),r}const d=this;d.__swiper__=!0,d.support=ho(),d.device=Ao({userAgent:i.userAgent}),d.browser=zl(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const s={};d.modules.forEach(r=>{r({params:i,swiper:d,extendParams:Ga(i,s),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const c=Wt({},In,s);return d.params=Wt({},c,Cn,i),d.originalParams=Wt({},d.params),d.passedParams=Wt({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(r=>{d.on(r,d.params.on[r])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,l=Jt(i,`.${n.slideClass}, swiper-slide`),o=Pi(l[0]);return Pi(e)-o}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Jt(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const l=n.minTranslate(),a=(n.maxTranslate()-l)*e+l;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const l=e.getSlideClasses(n);i.push({slideEl:n,classNames:l}),e.emit("_slideClass",n,l)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:l,slides:o,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let A=o[c]?Math.ceil(o[c].swiperSlideSize):0,f;for(let p=c+1;p<o.length;p+=1)o[p]&&!f&&(A+=Math.ceil(o[p].swiperSlideSize),r+=1,A>s&&(f=!0));for(let p=c-1;p>=0;p-=1)o[p]&&!f&&(A+=o[p].swiperSlideSize,r+=1,A>s&&(f=!0))}else if(e==="current")for(let A=c+1;A<o.length;A+=1)(i?a[A]+d[A]-a[c]<s:a[A]-a[c]<s)&&(r+=1);else for(let A=c-1;A>=0;A-=1)a[c]-a[A]<s&&(r+=1);return r}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Qi(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function l(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)l(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(a.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||l()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,l=n.params.direction;return e||(e=l==="horizontal"?"vertical":"horizontal"),e===l||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${l}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(o=>{e==="vertical"?o.style.width="":o.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const l=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(l()):Jt(n,l())[0];return!a&&i.params.createElements&&(a=yi("div",i.params.wrapperClass),n.append(a),Jt(n,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||ri(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ri(n,"direction")==="rtl"),wrongRTL:ri(a,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const l=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&l.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(o=>{o.complete?Qi(i,o):o.addEventListener("load",a=>{Qi(i,a.target)})}),En(i),i.initialized=!0,En(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:l,el:o,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),l.loop&&n.loopDestroy(),i&&(n.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),jl(n)),n.destroyed=!0),null}static extendDefaults(e){Wt(Cn,e)}static get extendedDefaults(){return Cn}static get defaults(){return In}static installModule(e){ni.prototype.__modules__||(ni.prototype.__modules__=[]);const i=ni.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>ni.installModule(i)),ni):(ni.installModule(e),ni)}};Object.keys(kn).forEach(t=>{Object.keys(kn[t]).forEach(e=>{Pn.prototype[e]=kn[t][e]})}),Pn.use([Hl,Ul]);const To=["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 mi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function wi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:mi(e[n])&&mi(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:wi(t[n],e[n]):t[n]=e[n]})}function Eo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Io(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function ko(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Co(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function _a(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Za(t){let{swiper:e,slides:i,passedParams:n,changedParams:l,nextEl:o,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=l.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:r,pagination:A,navigation:f,scrollbar:p,virtual:b,thumbs:m}=e;let S,v,g,h,w,C,P,V;l.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(S=!0),l.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(v=!0),l.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&A&&!A.el&&(g=!0),l.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&p&&!p.el&&(h=!0),l.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||o)&&(r.navigation||r.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const j=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),r[x].prevEl=void 0,r[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),r[x].el=void 0,e[x].el=void 0))};l.includes("loop")&&e.isElement&&(r.loop&&!n.loop?C=!0:!r.loop&&n.loop?P=!0:V=!0),c.forEach(x=>{if(mi(r[x])&&mi(n[x]))Object.assign(r[x],n[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in n[x]&&!n[x].enabled&&j(x);else{const T=n[x];(T===!0||T===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?T===!1&&j(x):r[x]=n[x]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&r.controller&&r.controller.control&&(e.controller.control=r.controller.control),l.includes("children")&&i&&b&&r.virtual.enabled?(b.slides=i,b.update(!0)):l.includes("virtual")&&b&&r.virtual.enabled&&(i&&(b.slides=i),b.update(!0)),l.includes("children")&&i&&r.loop&&(V=!0),S&&m.init()&&m.update(!0),v&&(e.controller.control=r.controller.control),g&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(r.pagination.el=s),A.init(),A.render(),A.update()),h&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(r.scrollbar.el=d),p.init(),p.updateSize(),p.setTranslate()),w&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=e.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),e.el.appendChild(o)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),o&&(r.navigation.nextEl=o),a&&(r.navigation.prevEl=a),f.init(),f.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),l.includes("direction")&&e.changeDirection(n.direction,!1),(C||V)&&e.loopDestroy(),(P||V)&&e.loopCreate(),e.update()}function Ka(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},l={};wi(i,In),i._emitClasses=!0,i.init=!1;const o={},a=To.map(s=>s.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?mi(t[s])?(i[s]={},l[s]={},wi(i[s],t[s]),wi(l[s],t[s])):(i[s]=t[s],l[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:o[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:l,rest:o,events:n}}function Ja(t,e){let{el:i,nextEl:n,prevEl:l,paginationEl:o,scrollbarEl:a,swiper:d}=t;Eo(e)&&n&&l&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=l,d.originalParams.navigation.prevEl=l),Io(e)&&o&&(d.params.pagination.el=o,d.originalParams.pagination.el=o),ko(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function Qa(t,e,i,n,l){const o=[];if(!e)return o;const a=s=>{o.indexOf(s)<0&&o.push(s)};if(i&&n){const s=n.map(l),c=i.map(l);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return To.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(mi(t[s])&&mi(e[s])){const c=Object.keys(t[s]),r=Object.keys(e[s]);c.length!==r.length?a(s):(c.forEach(A=>{t[s][A]!==e[s][A]&&a(s)}),r.forEach(A=>{t[s][A]!==e[s][A]&&a(s)}))}else t[s]!==e[s]&&a(s)}),o}const $a=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 $i(){return $i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},$i.apply(this,arguments)}function Po(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Oo(t){const e=[];return u.Children.toArray(t).forEach(i=>{Po(i)?e.push(i):i.props&&i.props.children&&Oo(i.props.children).forEach(n=>e.push(n))}),e}function es(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return u.Children.toArray(t).forEach(n=>{if(Po(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const l=Oo(n.props.children);l.length>0?l.forEach(o=>e.push(o)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function ts(t,e,i){if(!i)return null;const n=r=>{let A=r;return r<0?A=e.length+r:A>=e.length&&(A=A-e.length),A},l=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:a}=i,d=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,c=[];for(let r=d;r<s;r+=1)r>=o&&r<=a&&c.push(e[n(r)]);return c.map((r,A)=>u.cloneElement(r,{swiper:t,style:l,key:r.props.virtualIndex||r.key||`slide-${A}`}))}function Oi(t,e){return typeof window>"u"?ce(t,e):Jo(t,e)}const On=ki(null),Li=()=>Ii(On),is=ki(null),ei=vi(function(t,e){let{className:i,tag:n="div",wrapperTag:l="div",children:o,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=Z("swiper"),[A,f]=Z(null),[p,b]=Z(!1),m=fe(!1),S=fe(null),v=fe(null),g=fe(null),h=fe(null),w=fe(null),C=fe(null),P=fe(null),V=fe(null),{params:j,passedParams:x,rest:T,events:R}=Ka(d),{slides:I,slots:N}=es(o),E=()=>{b(!p)};Object.assign(j.on,{_containerClasses(O,k){r(k)}});const y=()=>{Object.assign(j.on,R),s=!0;const O={...j};if(delete O.wrapperClass,v.current=new Pn(O),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=I;const k={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};wi(v.current.params.virtual,k),wi(v.current.originalParams.virtual,k)}};S.current||y(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{s||!R||!v.current||Object.keys(R).forEach(O=>{v.current.on(O,R[O])})},D=()=>{!R||!v.current||Object.keys(R).forEach(O=>{v.current.off(O,R[O])})};ce(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),ce(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),Oi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&y(),Ja({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:V.current,swiper:v.current},j),a&&!v.current.destroyed&&a(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Oi(()=>{F();const O=Qa(x,g.current,I,h.current,k=>k.key);return g.current=x,h.current=I,O.length&&v.current&&!v.current.destroyed&&Za({swiper:v.current,slides:I,passedParams:x,changedParams:O,nextEl:w.current,prevEl:C.current,scrollbarEl:V.current,paginationEl:P.current}),()=>{D()}}),Oi(()=>{$a(v.current)},[A]);function B(){return j.virtual?ts(v.current,I,A):I.map((O,k)=>u.cloneElement(O,{swiper:v.current,swiperSlideIndex:k}))}return u.createElement(n,$i({ref:S,className:Co(`${c}${i?` ${i}`:""}`)},T),u.createElement(is.Provider,{value:v.current},N["container-start"],u.createElement(l,{className:_a(j.wrapperClass)},N["wrapper-start"],B(),N["wrapper-end"]),Eo(j)&&u.createElement(u.Fragment,null,u.createElement("div",{ref:C,className:"swiper-button-prev"}),u.createElement("div",{ref:w,className:"swiper-button-next"})),ko(j)&&u.createElement("div",{ref:V,className:"swiper-scrollbar"}),Io(j)&&u.createElement("div",{ref:P,className:"swiper-pagination"}),N["container-end"]))});ei.displayName="Swiper";const zt=vi(function(t,e){let{tag:i="div",children:n,className:l="",swiper:o,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const A=fe(null),[f,p]=Z("swiper-slide"),[b,m]=Z(!1);function S(w,C,P){C===A.current&&p(P)}Oi(()=>{if(typeof c<"u"&&(A.current.swiperSlideIndex=c),e&&(e.current=A.current),!(!A.current||!o)){if(o.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),Oi(()=>{o&&A.current&&!o.destroyed&&p(o.getSlideClasses(A.current))},[o]);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 n=="function"?n(v):n,h=()=>{m(!0)};return u.createElement(i,$i({ref:A,className:Co(`${f}${l?` ${l}`:""}`),"data-swiper-slide-index":s,onLoad:h},r),a&&u.createElement(On.Provider,{value:v},u.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},g(),d&&!b&&u.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&u.createElement(On.Provider,{value:v},g(),d&&!b&&u.createElement("div",{className:"swiper-lazy-preloader"})))});zt.displayName="SwiperSlide";function Ln(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Ft(),a=Nt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function d(r){if(!e.enabled)return;const{rtlTranslate:A}=e;let f=r;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)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(m||S||v||g||h||w)){let C=!1;if(Ji(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ji(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,V=P.clientWidth,j=P.clientHeight,x=a.innerWidth,T=a.innerHeight,R=fo(P);A&&(R.left-=P.scrollLeft);const I=[[R.left,R.top],[R.left+V,R.top],[R.left,R.top+j],[R.left+V,R.top+j]];for(let N=0;N<I.length;N+=1){const E=I[N];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()),l("keyPress",p)}}function s(){e.keyboard.enabled||(o.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(o.removeEventListener("keydown",d),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function en(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Nt();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,d=qt(),s;const c=[];function r(h){let V=0,j=0,x=0,T=0;return"detail"in h&&(j=h.detail),"wheelDelta"in h&&(j=-h.wheelDelta/120),"wheelDeltaY"in h&&(j=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(V=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(V=j,j=0),x=V*10,T=j*10,"deltaY"in h&&(T=h.deltaY),"deltaX"in h&&(x=h.deltaX),h.shiftKey&&!x&&(x=T,T=0),(x||T)&&h.deltaMode&&(h.deltaMode===1?(x*=40,T*=40):(x*=800,T*=800)),x&&!V&&(V=x<1?-1:1),T&&!j&&(j=T<1?-1:1),{spinX:V,spinY:j,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&&qt()-d<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&qt()-d<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),l("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),l("scroll",h.raw)),d=new o.Date().getTime(),!1)}function b(h){const w=e.params.mousewheel;if(h.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function m(h){let w=h,C=!0;if(!e.enabled||h.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let V=e.el;e.params.mousewheel.eventsTarget!=="container"&&(V=document.querySelector(e.params.mousewheel.eventsTarget));const j=V&&V.contains(w.target);if(!e.mouseEntered&&!j&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let x=0;const T=e.rtlTranslate?-1:1,R=r(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(R.pixelX)>Math.abs(R.pixelY))x=-R.pixelX*T;else return!0;else if(Math.abs(R.pixelY)>Math.abs(R.pixelX))x=-R.pixelY;else return!0;else x=Math.abs(R.pixelX)>Math.abs(R.pixelY)?-R.pixelX*T:-R.pixelY;if(x===0)return!0;P.invert&&(x=-x);let I=e.getTranslate()+x*P.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),C=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const N={time:qt(),delta:Math.abs(x),direction:Math.sign(x),raw:h};c.length>=2&&c.shift();const E=c.length?c[c.length-1]:void 0;if(c.push(N),E?(N.direction!==E.direction||N.delta>E.delta||N.time>E.time+150)&&p(N):p(N),b(N))return!0}else{const N={time:qt(),delta:Math.abs(x),direction:Math.sign(x)},E=s&&N.time<s.time+500&&N.delta<=s.delta&&N.direction===s.direction;if(!E){s=void 0;let y=e.getTranslate()+x*P.sensitivity;const F=e.isBeginning,D=e.isEnd;if(y>=e.minTranslate()&&(y=e.minTranslate()),y<=e.maxTranslate()&&(y=e.maxTranslate()),e.setTransition(0),e.setTranslate(y),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!D&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:N.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const B=c.length?c[c.length-1]:void 0,O=c[0];if(c.push(N),B&&(N.delta>B.delta||N.direction!==B.direction))c.splice(0);else if(c.length>=15&&N.time-O.time<500&&O.delta-N.delta>=1&&N.delta<=6){const k=x>0?.8:.2;s=N,c.splice(0),a=gi(()=>{e.slideToClosest(e.params.speed,!0,void 0,k)},0)}a||(a=gi(()=>{s=N,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||l("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}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function jn(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(l=>{if(!i[l]&&i.auto===!0){let o=Jt(t.el,`.${n[l]}`)[0];o||(o=yi("div",n[l]),o.className=n[l],t.el.append(o)),i[l]=o,e[l]=o}}),i}function Nn(t){let{swiper:e,extendParams:i,on:n,emit:l}=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 o(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 a(b,m){const S=e.params.navigation;b=Qe(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 d(){const{nextEl:b,prevEl:m}=e.navigation;if(e.params.loop){a(m,!1),a(b,!1);return}a(m,e.isBeginning&&!e.params.rewind),a(b,e.isEnd&&!e.params.rewind)}function s(b){b.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function c(b){b.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function r(){const b=e.params.navigation;if(e.params.navigation=jn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(b.nextEl||b.prevEl))return;let m=o(b.nextEl),S=o(b.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:S}),m=Qe(m),S=Qe(S);const v=(g,h)=>{g&&g.addEventListener("click",h==="next"?c:s),!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=Qe(b),m=Qe(m);const S=(v,g)=>{v.removeEventListener("click",g==="next"?c:s),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};b.forEach(v=>S(v,"next")),m.forEach(v=>S(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(r(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{A()}),n("enable disable",()=>{let{nextEl:b,prevEl:m}=e.navigation;if(b=Qe(b),m=Qe(m),e.enabled){d();return}[...b,...m].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),n("click",(b,m)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Qe(S),v=Qe(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)),l(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(" ")),r(),d()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),A()};Object.assign(e.navigation,{enable:f,disable:p,update:d,init:r,destroy:A})}function ti(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ji(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o="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:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let a,d=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(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 r(v){const g=v.target.closest(ti(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const h=Pi(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(s())return;let h=e.pagination.el;h=Qe(h);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,V=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const j=e.pagination.bullets;let x,T,R;if(g.dynamicBullets&&(a=gn(j[0],e.isHorizontal()?"width":"height",!0),h.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&C!==void 0&&(d+=w-(C||0),d>g.dynamicMainBullets-1?d=g.dynamicMainBullets-1:d<0&&(d=0)),x=Math.max(w-d,0),T=x+(Math.min(j.length,g.dynamicMainBullets)-1),R=(T+x)/2),j.forEach(I=>{const N=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();I.classList.remove(...N)}),h.length>1)j.forEach(I=>{const N=Pi(I);N===w?I.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),g.dynamicBullets&&(N>=x&&N<=T&&I.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),N===x&&c(I,"prev"),N===T&&c(I,"next"))});else{const I=j[w];if(I&&I.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&j.forEach((N,E)=>{N.setAttribute("part",E===w?"bullet-active":"bullet")}),g.dynamicBullets){const N=j[x],E=j[T];for(let y=x;y<=T;y+=1)j[y]&&j[y].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(N,"prev"),c(E,"next")}}if(g.dynamicBullets){const I=Math.min(j.length,g.dynamicMainBullets+4),N=(a*I-a)/2-R*a,E=v?"right":"left";j.forEach(y=>{y.style[e.isHorizontal()?E:"top"]=`${N}px`})}}h.forEach((j,x)=>{if(g.type==="fraction"&&(j.querySelectorAll(ti(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(w+1)}),j.querySelectorAll(ti(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(V)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const R=(w+1)/V;let I=1,N=1;T==="horizontal"?I=R:N=R,j.querySelectorAll(ti(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${N})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(j.innerHTML=g.renderCustom(e,w+1,V),x===0&&l("paginationRender",j)):(x===0&&l("paginationRender",j),l("paginationUpdate",j)),e.params.watchOverflow&&e.enabled&&j.classList[e.isLocked?"add":"remove"](g.lockClass)})}function f(){const v=e.params.pagination;if(s())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=Qe(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(ti(v.bulletClass)))}),v.type!=="custom"&&l("paginationRender",h[0])}function p(){e.params.pagination=jn(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=>Ji(h,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Qe(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`),d=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&h.classList.add(v.progressbarOppositeClass),v.clickable&&h.addEventListener("click",r),e.enabled||h.classList.add(v.lockClass)}))}function b(){const v=e.params.pagination;if(s())return;let g=e.pagination.el;g&&(g=Qe(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",r))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Qe(g),g.forEach(h=>{h.classList.remove(v.horizontalClass,v.verticalClass),h.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(p(),f(),A())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&A()}),n("snapIndexChange",()=>{A()}),n("snapGridLengthChange",()=>{f(),A()}),n("destroy",()=>{b()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Qe(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{A()}),n("click",(v,g)=>{const h=g.target,w=Qe(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);l(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=Qe(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=Qe(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 ns(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const o=Ft();let a=!1,d=null,s=null,c,r,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:I,rtlTranslate:N}=e,{dragEl:E,el:y}=I,F=e.params.scrollbar,D=e.params.loop?e.progressLoop:e.progress;let B=r,O=(A-r)*D;N?(O=-O,O>0?(B=r-O,O=0):-O+r>A&&(B=A+O)):O<0?(B=r+O,O=0):O+r>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(d),y.style.opacity=1,d=setTimeout(()=>{y.style.opacity=0,y.style.transitionDuration="400ms"},1e3))}function b(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:N,el:E}=I;N.style.width="",N.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"?r=A*f:r=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?N.style.width=`${r}px`:N.style.height=`${r}px`,f>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(I){return e.isHorizontal()?I.clientX:I.clientY}function v(I){const{scrollbar:N,rtlTranslate:E}=e,{el:y}=N;let F;F=(S(I)-fo(y)[e.isHorizontal()?"left":"top"]-(c!==null?c:r/2))/(A-r),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const D=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(D),e.setTranslate(D),e.updateActiveIndex(),e.updateSlidesClasses()}function g(I){const N=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F,dragEl:D}=E;a=!0,c=I.target===D?S(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),y.style.transitionDuration="100ms",D.style.transitionDuration="100ms",v(I),clearTimeout(s),F.style.transitionDuration="0ms",N.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),l("scrollbarDragStart",I)}function h(I){const{scrollbar:N,wrapperEl:E}=e,{el:y,dragEl:F}=N;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,v(I),E.style.transitionDuration="0ms",y.style.transitionDuration="0ms",F.style.transitionDuration="0ms",l("scrollbarDragMove",I))}function w(I){const N=e.params.scrollbar,{scrollbar:E,wrapperEl:y}=e,{el:F}=E;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",y.style.transitionDuration=""),N.hide&&(clearTimeout(s),s=gi(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),l("scrollbarDragEnd",I),N.snapOnRelease&&e.slideToClosest())}function C(I){const{scrollbar:N,params:E}=e,y=N.el;if(!y)return;const F=y,D=E.passiveListeners?{passive:!1,capture:!1}:!1,B=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const O=I==="on"?"addEventListener":"removeEventListener";F[O]("pointerdown",g,D),o[O]("pointermove",h,D),o[O]("pointerup",w,B)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function j(){const{scrollbar:I,el:N}=e;e.params.scrollbar=jn(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=o.querySelectorAll(E.el),!y.length)return}else y||(y=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&y.length>1&&N.querySelectorAll(E.el).length===1&&(y=N.querySelector(E.el)),y.length>0&&(y=y[0]),y.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;y&&(F=y.querySelector(ti(e.params.scrollbar.dragClass)),F||(F=yi("div",e.params.scrollbar.dragClass),y.append(F))),Object.assign(I,{el:y,dragEl:F}),E.draggable&&P(),y&&y.classList[e.enabled?"remove":"add"](...si(e.params.scrollbar.lockClass))}function x(){const I=e.params.scrollbar,N=e.scrollbar.el;N&&N.classList.remove(...si(e.isHorizontal()?I.horizontalClass:I.verticalClass)),V()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:N}=e.scrollbar;N=Qe(N),N.forEach(E=>{E.classList.remove(I.horizontalClass,I.verticalClass),E.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?R():(j(),m(),p())}),n("update resize observerUpdate lock unlock changeDirection",()=>{m()}),n("setTranslate",()=>{p()}),n("setTransition",(I,N)=>{b(N)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...si(e.params.scrollbar.lockClass))}),n("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...si(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...si(e.params.scrollbar.scrollbarDisabledClass)),j(),m(),p()},R=()=>{e.el.classList.add(...si(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...si(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:R,updateSize:m,setTranslate:p,init:j,destroy:x})}function Mn(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let l=null,o,a,d=new Date().getTime();function s(D){const B=l;B.length!==0&&(B.innerHTML="",B.innerHTML=D)}function c(D){D===void 0&&(D=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(D).replace(/x/g,B)}function r(D){D=Qe(D),D.forEach(B=>{B.setAttribute("tabIndex","0")})}function A(D){D=Qe(D),D.forEach(B=>{B.setAttribute("tabIndex","-1")})}function f(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("role",B)})}function p(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("aria-roledescription",B)})}function b(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("aria-controls",B)})}function m(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("aria-label",B)})}function S(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("id",B)})}function v(D,B){D=Qe(D),D.forEach(O=>{O.setAttribute("aria-live",B)})}function g(D){D=Qe(D),D.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function h(D){D=Qe(D),D.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function w(D){if(D.keyCode!==13&&D.keyCode!==32)return;const B=e.params.a11y,O=D.target;if(!(e.pagination&&e.pagination.el&&(O===e.pagination.el||e.pagination.el.contains(D.target))&&!D.target.matches(ti(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const k=Qe(e.navigation.prevEl);Qe(e.navigation.nextEl).includes(O)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(B.lastSlideMessage):s(B.nextSlideMessage)),k.includes(O)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(B.firstSlideMessage):s(B.prevSlideMessage))}e.pagination&&O.matches(ti(e.params.pagination.bulletClass))&&O.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:D,prevEl:B}=e.navigation;B&&(e.isBeginning?(g(B),A(B)):(h(B),r(B))),D&&(e.isEnd?(g(D),A(D)):(h(D),r(D)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return P()&&e.params.pagination.clickable}function j(){const D=e.params.a11y;P()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(r(B),e.params.pagination.renderBullet||(f(B,"button"),m(B,D.paginationBulletMessage.replace(/\{\{index\}\}/,Pi(B)+1)))),B.matches(ti(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const x=(D,B,O)=>{r(D),D.tagName!=="BUTTON"&&(f(D,"button"),D.addEventListener("keydown",w)),m(D,O),b(D,B)},T=D=>{a&&a!==D.target&&!a.contains(D.target)&&(o=!0),e.a11y.clicked=!0},R=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=D=>{d=new Date().getTime()},N=D=>{if(e.a11y.clicked||new Date().getTime()-d<100)return;const B=D.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;a=B;const O=e.slides.indexOf(B)===e.activeIndex,k=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);O||k||D.sourceCapabilities&&D.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),o=!1)}))},E=()=>{const D=e.params.a11y;D.itemRoleDescriptionMessage&&p(e.slides,D.itemRoleDescriptionMessage),D.slideRole&&f(e.slides,D.slideRole);const B=e.slides.length;D.slideLabelMessage&&e.slides.forEach((O,k)=>{const M=e.params.loop?parseInt(O.getAttribute("data-swiper-slide-index"),10):k,X=D.slideLabelMessage.replace(/\{\{index\}\}/,M+1).replace(/\{\{slidesLength\}\}/,B);m(O,X)})},y=()=>{const D=e.params.a11y;e.el.append(l);const B=e.el;D.containerRoleDescriptionMessage&&p(B,D.containerRoleDescriptionMessage),D.containerMessage&&m(B,D.containerMessage);const O=e.wrapperEl,k=D.id||O.getAttribute("id")||`swiper-wrapper-${c(16)}`,M=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(O,k),v(O,M),E();let{nextEl:X,prevEl:U}=e.navigation?e.navigation:{};X=Qe(X),U=Qe(U),X&&X.forEach($=>x($,k,D.nextSlideMessage)),U&&U.forEach($=>x($,k,D.prevSlideMessage)),V()&&Qe(e.pagination.el).forEach(be=>{be.addEventListener("keydown",w)}),Ft().addEventListener("visibilitychange",I),e.el.addEventListener("focus",N,!0),e.el.addEventListener("focus",N,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",R,!0)};function F(){l&&l.remove();let{nextEl:D,prevEl:B}=e.navigation?e.navigation:{};D=Qe(D),B=Qe(B),D&&D.forEach(k=>k.removeEventListener("keydown",w)),B&&B.forEach(k=>k.removeEventListener("keydown",w)),V()&&Qe(e.pagination.el).forEach(M=>{M.removeEventListener("keydown",w)}),Ft().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",N,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",R,!0))}n("beforeInit",()=>{l=yi("span",e.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&y()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&j()}),n("destroy",()=>{e.params.a11y.enabled&&F()})}function Ni(t){let{swiper:e,extendParams:i,on:n,emit:l,params:o}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,d,s=o&&o.autoplay?o.autoplay.delay:3e3,c=o&&o.autoplay?o.autoplay.delay:3e3,r,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&&(c=r,f=!1);const B=e.autoplay.paused?r:A+c-new Date().getTime();e.autoplay.timeLeft=B,l("autoplayTimeLeft",B,B/s),d=requestAnimationFrame(()=>{w()})},C=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(k=>k.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(d),w();let O=typeof B>"u"?e.params.autoplay.delay:B;s=e.params.autoplay.delay,c=e.params.autoplay.delay;const k=C();!Number.isNaN(k)&&k>0&&typeof B>"u"&&(O=k,s=k,c=k),r=O;const M=e.params.speed,X=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(M,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,M,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(M,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,M,!0,!0),l("autoplay")),e.params.cssMode&&(A=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return O>0?(clearTimeout(a),a=setTimeout(()=>{X()},O)):requestAnimationFrame(()=>{X()}),O},V=()=>{A=new Date().getTime(),e.autoplay.running=!0,P(),l("autoplayStart")},j=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),l("autoplayStop")},x=(B,O)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),B||(v=!0);const k=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",h):T()};if(e.autoplay.paused=!0,O){S&&(r=e.params.autoplay.delay),S=!1,k();return}r=(r||e.params.autoplay.delay)-(new Date().getTime()-A),!(e.isEnd&&r<0&&!e.params.loop)&&(r<0&&(r=0),k())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(A=new Date().getTime(),v?(v=!1,P(r)):P(),e.autoplay.paused=!1,l("autoplayResume"))},R=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Ft();B.visibilityState==="hidden"&&(v=!0,x(!0)),B.visibilityState==="visible"&&T()},I=B=>{B.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&x(!0))},N=B=>{B.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",N))},y=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",N))},F=()=>{Ft().addEventListener("visibilitychange",R)},D=()=>{Ft().removeEventListener("visibilitychange",R)};n("init",()=>{e.params.autoplay.enabled&&(E(),F(),V())}),n("destroy",()=>{y(),D(),e.autoplay.running&&j()}),n("_freeModeStaticRelease",()=>{(b||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?j():x(!0,!0)}),n("beforeTransitionStart",(B,O,k)=>{e.destroyed||!e.autoplay.running||(k||!e.params.autoplay.disableOnInteraction?x(!0,!0):j())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){j();return}p=!0,b=!1,v=!1,m=setTimeout(()=>{v=!0,b=!0,x(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(a),e.params.autoplay.disableOnInteraction){b=!1,p=!1;return}b&&e.params.cssMode&&T(),b=!1,p=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:V,stop:j,pause:x,resume:T})}function os(t){let{swiper:e,extendParams:i,emit:n,once:l}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:c}=e;s.velocities.length===0&&s.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:qt()})}function d(s){let{currentPos:c}=s;if(e.params.cssMode)return;const{params:r,wrapperEl:A,rtlTranslate:f,snapGrid:p,touchEventsData:b}=e,S=qt()-b.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(r.freeMode.momentum){if(b.velocities.length>1){const j=b.velocities.pop(),x=b.velocities.pop(),T=j.position-x.position,R=j.time-x.time;e.velocity=T/R,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(R>150||qt()-j.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,b.velocities.length=0;let v=1e3*r.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*r.freeMode.momentumBounceRatio;let V;if(h<e.maxTranslate())r.freeMode.momentumBounce?(h+e.maxTranslate()<-P&&(h=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.maxTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(h>e.minTranslate())r.freeMode.momentumBounce?(h-e.minTranslate()>P&&(h=e.minTranslate()+P),C=e.minTranslate(),w=!0,b.allowMomentumBounce=!0):h=e.minTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(r.freeMode.sticky){let j;for(let x=0;x<p.length;x+=1)if(p[x]>-h){j=x;break}Math.abs(p[j]-h)<Math.abs(p[j-1]-h)||e.swipeDirection==="next"?h=p[j]:h=p[j-1],h=-h}if(V&&l("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?v=Math.abs((-h-e.translate)/e.velocity):v=Math.abs((h-e.translate)/e.velocity),r.freeMode.sticky){const j=Math.abs((f?-h:h)-e.translate),x=e.slidesSizesGrid[e.activeIndex];j<x?v=r.speed:j<2*x?v=r.speed*1.5:v=r.speed*2.5}}else if(r.freeMode.sticky){e.slideToClosest();return}r.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating=!0,bn(A,()=>{!e||e.destroyed||!b.allowMomentumBounce||(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(C),bn(A,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(h),e.setTransition(v),e.setTranslate(h),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,bn(A,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(h),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeMode.sticky){e.slideToClosest();return}else r.freeMode&&n("_freeModeNoMomentumRelease");(!r.freeMode.momentum||S>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:a,onTouchEnd:d}})}const ls=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const l=fe(),{popupDetailData:o}=Ge();return ce(()=>{var a,d;n&&((a=l?.current)===null||a===void 0||a.swiper.slideTo((d=o?.multiCheckIndex)!==null&&d!==void 0?d:0))},[o,n]),u.createElement(ei,{role:"list",tag:"ul",ref:l,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[os,ns,en],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Mi=je(ls);const as=vi((t,e)=>{const{src:i,onLoad:n,style:l,className:o,loading:a,alt:d="image"}=t,[s,c]=Z(i),r=fe(null),[A,f]=Z(!1);return Ci(e,()=>({setSrc:p=>{p&&c(p)}})),ce(()=>{i&&c(i)},[i]),ce(()=>{const p=()=>{i&&!A&&r.current&&(r.current.src="",r.current.src=i)};return Ct.on(xt.PAGE_DID_SHOW,p),()=>{Ct.off(xt.PAGE_DID_SHOW,p)}},[i,A]),u.createElement(u.Fragment,null,!A&&!s&&u.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),s?.includes(".avif")?u.createElement("picture",null,u.createElement("source",{type:"image/avif",srcSet:s}),u.createElement("source",{type:"image/webp",srcSet:`${s}?imageMogr2/format/webp`}),u.createElement("source",{type:"image/jpeg",srcSet:`${s}?imageMogr2/format/jpg`}),u.createElement("img",{ref:r,className:o,src:s,style:Object.assign({},l),loading:a,onLoad:p=>{f(!0),n?.(p.target)},alt:d})):u.createElement("img",{ref:r,className:o,src:s,style:Object.assign({},l),loading:a,onLoad:p=>{f(!0),n?.(p.target)},alt:d}))});var Mt=je(as);const ss=({products:t,data:e,defImg:i,style:n,onCLick:l,popupDetailData:o,check:a})=>{var d;const{productView:s}=Vt(),{popupCurTimeRef:c}=Ge(),r=(A,f)=>{if(a===f)return;const p=t?.[a];s(o,p,p?.bindCta,c.current,o?.index),l?.(f)};return u.createElement(u.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&u.createElement(Mi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=o?t:[0,1,2,3])===null||d===void 0?void 0:d.map((A,f)=>{var p,b,m;return u.createElement(u.Fragment,null,A?.bindCta?u.createElement(zt,{className:ze({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{r(A,f)},key:f},u.createElement(Mt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(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 Lo=je(ss);function jo(){const[t,e]=Z(0),[i,n]=Z(0),l=()=>{if(typeof window>"u")return 0;let a=window.innerHeight;return window.visualViewport&&(a=window.visualViewport.height),(a<=0||a>window.screen.height)&&(a=window.innerHeight),a<=0&&(a=document.documentElement.clientHeight),a},o=de(()=>{var a;const d=l(),s=(a=window.screen)===null||a===void 0?void 0:a.height,c=navigator.userAgent,r=/Instagram/i.test(c),A=/FBAV|FBAN|FBSN/i.test(c);if(!s||d<=0||!r&&!A){e(d);return}const f=d/s,p=.9,b=s>=900?s*.8:s*.79,m=f>=p&&f!==1,S=m?Math.round(b):d,v=s-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(n(m?v:0),"fundebug"in window){const g={ratio:f,h:b,finalHeight:S,visibleHeight:d,screenHeight:s,isInstagram:r,isFacebook:A,ua:c};window?.fundebug.notify("Collect_Info","resize",{metaData:{systemInfo:g,otherInfo:{}}})}e(S)},[l]);return ce(()=>{o();const a=["resize","orientationchange","load","DOMContentLoaded"];return a.forEach(d=>{window.addEventListener(d,o)}),window.visualViewport&&(window.visualViewport.addEventListener("resize",o),window.visualViewport.addEventListener("scroll",o)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.addEventListener("geometrychange",o),()=>{a.forEach(d=>{window.removeEventListener(d,o)}),window.visualViewport&&(window.visualViewport.removeEventListener("resize",o),window.visualViewport.removeEventListener("scroll",o)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.removeEventListener("geometrychange",o)}},[o]),{visibleHeight:t,bottomHeight:i}}const rs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",ds=({visible:t,onClose:e,children:i,modalStyle:n,padding:l,popup:o,schema:a,fullHeight:d,isFullScreen:s=!1,openState:c})=>{var r,A,f,p,b,m,S,v,g,h,w,C,P,V,j,x,T,R,I,N,E,y,F,D;const{visibleHeight:B,bottomHeight:O}=jo(),k=fe(null),M=fe(null),X=fe(null),U=fe(null),q=fe(null),$=d||B,be=$*.2,ue=s?$:$*.8,[J,Pe]=Z(be),[De,Xe]=Z(!1),me=fe(null),{globalConfig:ve,popupDetailData:et}=Ge(),{schema:_e,popup:Ze}=ai(),[$e,dt]=Z(15);ce(()=>{const te=document.getElementById("sxp-render"),_=document.getElementById("pb-modal");_?me.current=_:(me.current=document.createElement("div"),me.current.setAttribute("id","pb-modal"),te?.appendChild(me.current))},[]);const tt=we(()=>o?.id&&o?.id!==""||t,[t,o]),Le=we(()=>{var te,_,ae;const Ie=a??_e;return(ae=(_=(te=Ie?.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||_===void 0?void 0:_.popupList)===null||ae===void 0?void 0:ae.find(ee=>ee?.id===o?.id)},[o,a,_e]),ot=we(()=>{var te,_;return((_=(te=Le?.item)===null||te===void 0?void 0:te.event)===null||_===void 0?void 0:_.isScrollFullScreen)||!1},[Le]);ce(()=>{tt?Xe(!0):setTimeout(()=>{Xe(!1),Pe(be)},o?.duration)},[tt,o]);const Pt=de(()=>i,[Ze,c,ve,a]);if(ce(()=>{const te=_=>{const ae=_?.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])'),Ie=ae?.[0],Ee=ae?.[ae?.length-1],ee=9;_.addEventListener("keydown",function(W){(W.key==="Escape"||W.key==="Esc")&&(He(),W.preventDefault()),(W.key==="Tab"||W.keyCode===ee)&&(W.shiftKey?document?.activeElement===Ie&&(Ee?.focus(),W.preventDefault()):document?.activeElement===Ee&&(Ie?.focus(),W.preventDefault()))}),Ie?.focus()};return q?.current&&te(q?.current),()=>{var _;(_=q?.current)===null||_===void 0||_.removeEventListener("keydown",te)}},[q,De,Ze]),!me.current)return null;const He=Ei(()=>{e?.()},300),qe=te=>{k.current=te.touches[0],M.current=te.touches[0],X.current=!0},Ye=te=>{requestAnimationFrame(()=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.scrollTop)===0){const ae=te.touches[0].clientY,Ie=te.touches[0].clientX,Ee=k.current.clientY-ae;k.current=te.touches[0];const ee=ae-M.current.clientY,W=Ie-M.current.clientX;if(Math.abs(W)>Math.abs(ee))return;const We=J-Ee;We>0&&Pe(We)}})},K=te=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.scrollTop)===0){const ae=te.changedTouches[0].clientY-M.current.clientY,Ie=te.changedTouches[0].clientX-M.current.clientX;if(Math.abs(Ie)>Math.abs(ae))return;const Ee=M.current.clientY-k.current.clientY;Ee>0?Pe(0):J<be&&Ee<0?Pe(be):J>=be&&Ee<0&&e?.()}X.current=!1};return Yn.createPortal(u.createElement(u.Fragment,null,De&&u.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:tt?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)",bottom:O+"px"},n),onClick:He},u.createElement("div",{style:{position:"relative",left:`${(p=(f=(A=(r=Le?.item)===null||r===void 0?void 0:r.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=Le?.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=Le?.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=(j=(V=(P=Le?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||j===void 0?void 0:j.horizontalMargin)!==null&&x!==void 0?x:0)*2}px)`,height:"100%"}},u.createElement("div",Object.assign({ref:q,className:`modal-container ${tt?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=Le?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:l,animationDuration:((R=o?.duration)!==null&&R!==void 0?R:0)/1e3+"s"},ot&&{transform:`translateY(${J}px)`}),{overflow:"hidden",borderRadius:`${(y=(E=(N=(I=Le?.item)===null||I===void 0?void 0:I.props)===null||N===void 0?void 0:N.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&y!==void 0?y:0}px`,zIndex:9}),onClick:te=>{te.stopPropagation(),te.preventDefault()}},ot&&{onTouchMove:Ye,onTouchStart:qe,onTouchEnd:K}),u.createElement("div",Object.assign({id:"modal-content",ref:U,style:{height:ot?$:ue,overflow:ot&&J<=0||!ot?"auto":"hidden",zIndex:1}},((D=(F=Le?.item)===null||F===void 0?void 0:F.props)===null||D===void 0?void 0:D.enableFixedCloseButton)&&{onScroll:te=>{var _;dt(15-((_=te?.target)===null||_===void 0?void 0:_.scrollTop))}}),Pt()),u.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:$e}},u.createElement("img",{src:ve?.popupCloseIcon||rs,alt:"close button",className:"modal-icon"})))))),me.current)};var Si=je(ds);const cs=({text:t,maxStr:e=108,style:i,className:n,onClick:l,foldText:o,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=Z(!1),[A,f]=Z(!1),p=i||{},{lineClamp:b}=p,m=rt(p,["lineClamp"]),S=Number(b||2),v=fe(null),g=fe(null),h=fe(),w=()=>{r(!c)},C=de(()=>{!v.current||!g.current||!d||!t||c||requestAnimationFrame(()=>{if(!v.current)return;v.current.style.position="relative";const P=v.current.getBoundingClientRect().height,V=g.current.getBoundingClientRect().height,j=P>V+1;f(j),v.current.style.position="absolute"})},[d,t,c]);return ce(()=>{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]),u.createElement("div",{className:n,style:Object.assign(Object.assign({},m),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},u.createElement("div",{ref:g,style:Object.assign(Object.assign({},!c&&d&&{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:Ve(t?.replace(/\n/g,"</br>"),m)}}),d&&u.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:Ve(t?.replace(/\n/g,"</br>"),m)}}),t&&d&&A&&u.createElement("button",{"aria-label":c?a||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:l??w,dangerouslySetInnerHTML:{__html:Ve(c?a||"show less":o||"show more",m)}}))};var Di=je(cs);const us=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:l,src:o}=t;switch(i){case 2:return n||null;case 3:return o||null;default:return l&&l.length>0?(e=l[0])===null||e===void 0?void 0:e.url:null}},vs=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Vi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:l})=>{var o,a,d,s,c,r,A,f;let p="";if((!t?.currency||!t?.price)&&n)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?(d=(a=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||a===void 0?void 0:a.toUpperCase())!==null&&d!==void 0?d:"":"$";const v=e===void 0||e;let g=b?.toString();m?.showTwoDecimalPoint&&(g=b?.toFixed(2));let h=(s=g?.indexOf("."))!==null&&s!==void 0?s:-1;if(v){p=(c=b?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let w=0,C=h??p?.length;m?.millesimalSymbol==="."?p=p?.replace(/\,/g,function(P,V){return V>=w&&V<C?".":P}):m?.millesimalSymbol===" "&&(p=p?.replace(","," "))}else p=`${m?.showTwoDecimalPoint?b?.toFixed(2):b}`;return m?.decimalPoint===","&&h>0&&(p=p=p?.replace(/\./g,function(w,C){return C>=h&&C<p?.length?",":w})),S=`<span style="font-family:${(f=(A=(r=i?.priceSymbol)===null||r===void 0?void 0:r.fontFamily)!==null&&A!==void 0?A:l?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${S}</span>`,p=Ve(p,l),m?.currencyPosition&&m?.currencyPosition!=="none"?p=m?.currencyPosition==="left"?S+p:p+S:m?.currencyPosition!=="none"&&(p=S+p),p},ps=t=>{var e,i,n,l,o,a,d,s,c,r,A,f,p,b,m,S,v,g,h,w,C,P,V,j,{content:x,style:T,bgImg:R,onClick:I,schema:N,isDefault:E,bottom_image:y,tipText:F,isPost:D,viewTime:B,rec:O,swiper:k,commodityStyles:M,buttonStyle:X,index:U,commodityGroup:q,popupBg:$,iframeIcon:be,commodityImgRatio:ue,isTel:J,iframeBgColor:Pe,isActive:De=!0}=t,Xe=rt(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:me,popupDetailData:ve,isPreview:et,bffFbReport:_e,popupCurTimeRef:Ze,checkCommodityIndexRef:$e,globalConfig:dt,ctaEvent:tt}=Ge(),{jumpToWeb:Le,productView:ot}=Vt(),Pt=fe(null),[He,qe]=Z(!1),[Ye,K]=Z(!1),[te,_]=Z((e=ve?.multiCheckIndex)!==null&&e!==void 0?e:0),ae=fe(),[Ie,Ee]=Z(0),ee=D?O:ve;let W=D?ee?.product:(n=(i=ee?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(o=(l=ee?.video)===null||l===void 0?void 0:l.bindProducts)===null||o===void 0?void 0:o[0],We=D?(a=ee?.product)===null||a===void 0?void 0:a.bindCta:(c=(s=(d=ee?.video)===null||d===void 0?void 0:d.bindProduct)===null||s===void 0?void 0:s.bindCta)!==null&&c!==void 0?c:(f=(A=(r=ee?.video)===null||r===void 0?void 0:r.bindProducts)===null||A===void 0?void 0:A[0])===null||f===void 0?void 0:f.bindCta;const lt=D?U:ve?.index;if(!D&&q?.open&&(!((p=ee?.video)===null||p===void 0)&&p.bindProducts)&&((m=(b=ee?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0?void 0:m.length)>0){$e.current=te;const ge=(S=ee?.video)===null||S===void 0?void 0:S.bindProducts[te];W=ge,We=ge?.bindCta}const it=ge=>{W?.link&&(Le(ge,ee,W,We,lt),D?tt?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},ee,W,lt):ot(ee,W,We,B||Pt.current,lt),window.location.href=window.getJointUtmLink(W.link))};ce(()=>{De&&(_e?.({eventName:"ProductView",product:W}),_e?.({eventName:"PageView",product:W}))},[De,_e]),ce(()=>{const ge=()=>{Pt.current=new Date};return ge(),window.addEventListener("pageshow",ge),()=>{window.removeEventListener("pageshow",ge)}},[]);const ct=Vi({product:W,enableFormattedPrice:(v=M?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:dt,style:M?.price}),nt=(et?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((h=$?.horizontalMargin)!==null&&h!==void 0?h:0)*2,Ue=ue?nt*(ue.h/ue.w):nt,at=({isPost:ge})=>{var xe,bt,Gt,Ut;return u.createElement("div",null,u.createElement("div",{className:"pb-commondity-content-collection",style:St(M?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Ve((xe=W?.collection)!==null&&xe!==void 0?xe:"Tiffany Lock",M?.collection)}}),u.createElement("div",{className:"pb-commondity-content-title",style:St(M?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Ve((bt=W?.title)!==null&&bt!==void 0?bt:"Pendant in Yellow Gold with Diamonds, Medium",M?.title)}}),u.createElement("div",{className:"pb-commondity-content-price",style:St(M?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:ct??""}}),u.createElement("div",{hidden:!!W&&!W?.taxInfo,style:St(M?.taxInfo),dangerouslySetInnerHTML:{__html:Ve((Gt=W?.taxInfo)!==null&&Gt!==void 0?Gt:"\u7A0E\u8D39",M?.taxInfo)}}),u.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},u.createElement(Di,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>qe(!0),isPost:ge,text:(Ut=W?.info)!==null&&Ut!==void 0?Ut:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
8
+ `;h.textContent=w}n(m?v:0),e(S)},[l]);return ce(()=>{o();const a=["resize","orientationchange","load","DOMContentLoaded"];return a.forEach(d=>{window.addEventListener(d,o)}),window.visualViewport&&(window.visualViewport.addEventListener("resize",o),window.visualViewport.addEventListener("scroll",o)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.addEventListener("geometrychange",o),()=>{a.forEach(d=>{window.removeEventListener(d,o)}),window.visualViewport&&(window.visualViewport.removeEventListener("resize",o),window.visualViewport.removeEventListener("scroll",o)),"virtualKeyboard"in navigator&&navigator.virtualKeyboard.removeEventListener("geometrychange",o)}},[o]),{visibleHeight:t,bottomHeight:i}}const rs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",ds=({visible:t,onClose:e,children:i,modalStyle:n,padding:l,popup:o,schema:a,fullHeight:d,isFullScreen:s=!1,openState:c})=>{var r,A,f,p,b,m,S,v,g,h,w,C,P,V,j,x,T,R,I,N,E,y,F,D;const{visibleHeight:B,bottomHeight:O}=jo(),k=fe(null),M=fe(null),X=fe(null),U=fe(null),q=fe(null),$=d||B,be=$*.2,ue=s?$:$*.8,[J,Pe]=Z(be),[De,Xe]=Z(!1),me=fe(null),{globalConfig:ve,popupDetailData:et}=Ge(),{schema:_e,popup:Ze}=ai(),[$e,dt]=Z(15);ce(()=>{const te=document.getElementById("sxp-render"),_=document.getElementById("pb-modal");_?me.current=_:(me.current=document.createElement("div"),me.current.setAttribute("id","pb-modal"),te?.appendChild(me.current))},[]);const tt=we(()=>o?.id&&o?.id!==""||t,[t,o]),Le=we(()=>{var te,_,ae;const Ie=a??_e;return(ae=(_=(te=Ie?.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||_===void 0?void 0:_.popupList)===null||ae===void 0?void 0:ae.find(ee=>ee?.id===o?.id)},[o,a,_e]),ot=we(()=>{var te,_;return((_=(te=Le?.item)===null||te===void 0?void 0:te.event)===null||_===void 0?void 0:_.isScrollFullScreen)||!1},[Le]);ce(()=>{tt?Xe(!0):setTimeout(()=>{Xe(!1),Pe(be)},o?.duration)},[tt,o]);const Pt=de(()=>i,[Ze,c,ve,a]);if(ce(()=>{const te=_=>{const ae=_?.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])'),Ie=ae?.[0],Ee=ae?.[ae?.length-1],ee=9;_.addEventListener("keydown",function(W){(W.key==="Escape"||W.key==="Esc")&&(He(),W.preventDefault()),(W.key==="Tab"||W.keyCode===ee)&&(W.shiftKey?document?.activeElement===Ie&&(Ee?.focus(),W.preventDefault()):document?.activeElement===Ee&&(Ie?.focus(),W.preventDefault()))}),Ie?.focus()};return q?.current&&te(q?.current),()=>{var _;(_=q?.current)===null||_===void 0||_.removeEventListener("keydown",te)}},[q,De,Ze]),!me.current)return null;const He=Ei(()=>{e?.()},300),qe=te=>{k.current=te.touches[0],M.current=te.touches[0],X.current=!0},Ye=te=>{requestAnimationFrame(()=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.scrollTop)===0){const ae=te.touches[0].clientY,Ie=te.touches[0].clientX,Ee=k.current.clientY-ae;k.current=te.touches[0];const ee=ae-M.current.clientY,W=Ie-M.current.clientX;if(Math.abs(W)>Math.abs(ee))return;const We=J-Ee;We>0&&Pe(We)}})},K=te=>{var _;if(X.current&&((_=U?.current)===null||_===void 0?void 0:_.scrollTop)===0){const ae=te.changedTouches[0].clientY-M.current.clientY,Ie=te.changedTouches[0].clientX-M.current.clientX;if(Math.abs(Ie)>Math.abs(ae))return;const Ee=M.current.clientY-k.current.clientY;Ee>0?Pe(0):J<be&&Ee<0?Pe(be):J>=be&&Ee<0&&e?.()}X.current=!1};return Yn.createPortal(u.createElement(u.Fragment,null,De&&u.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:tt?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)",bottom:O+"px"},n),onClick:He},u.createElement("div",{style:{position:"relative",left:`${(p=(f=(A=(r=Le?.item)===null||r===void 0?void 0:r.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=Le?.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=Le?.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=(j=(V=(P=Le?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||j===void 0?void 0:j.horizontalMargin)!==null&&x!==void 0?x:0)*2}px)`,height:"100%"}},u.createElement("div",Object.assign({ref:q,className:`modal-container ${tt?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=Le?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:l,animationDuration:((R=o?.duration)!==null&&R!==void 0?R:0)/1e3+"s"},ot&&{transform:`translateY(${J}px)`}),{overflow:"hidden",borderRadius:`${(y=(E=(N=(I=Le?.item)===null||I===void 0?void 0:I.props)===null||N===void 0?void 0:N.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&y!==void 0?y:0}px`,zIndex:9}),onClick:te=>{te.stopPropagation(),te.preventDefault()}},ot&&{onTouchMove:Ye,onTouchStart:qe,onTouchEnd:K}),u.createElement("div",Object.assign({id:"modal-content",ref:U,style:{height:ot?$:ue,overflow:ot&&J<=0||!ot?"auto":"hidden",zIndex:1}},((D=(F=Le?.item)===null||F===void 0?void 0:F.props)===null||D===void 0?void 0:D.enableFixedCloseButton)&&{onScroll:te=>{var _;dt(15-((_=te?.target)===null||_===void 0?void 0:_.scrollTop))}}),Pt()),u.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:$e}},u.createElement("img",{src:ve?.popupCloseIcon||rs,alt:"close button",className:"modal-icon"})))))),me.current)};var Si=je(ds);const cs=({text:t,maxStr:e=108,style:i,className:n,onClick:l,foldText:o,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=Z(!1),[A,f]=Z(!1),p=i||{},{lineClamp:b}=p,m=rt(p,["lineClamp"]),S=Number(b||2),v=fe(null),g=fe(null),h=fe(),w=()=>{r(!c)},C=de(()=>{!v.current||!g.current||!d||!t||c||requestAnimationFrame(()=>{if(!v.current)return;v.current.style.position="relative";const P=v.current.getBoundingClientRect().height,V=g.current.getBoundingClientRect().height,j=P>V+1;f(j),v.current.style.position="absolute"})},[d,t,c]);return ce(()=>{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]),u.createElement("div",{className:n,style:Object.assign(Object.assign({},m),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},u.createElement("div",{ref:g,style:Object.assign(Object.assign({},!c&&d&&{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:Ve(t?.replace(/\n/g,"</br>"),m)}}),d&&u.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:Ve(t?.replace(/\n/g,"</br>"),m)}}),t&&d&&A&&u.createElement("button",{"aria-label":c?a||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:l??w,dangerouslySetInnerHTML:{__html:Ve(c?a||"show less":o||"show more",m)}}))};var Di=je(cs);const us=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:l,src:o}=t;switch(i){case 2:return n||null;case 3:return o||null;default:return l&&l.length>0?(e=l[0])===null||e===void 0?void 0:e.url:null}},vs=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",Vi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:l})=>{var o,a,d,s,c,r,A,f;let p="";if((!t?.currency||!t?.price)&&n)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?(d=(a=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||a===void 0?void 0:a.toUpperCase())!==null&&d!==void 0?d:"":"$";const v=e===void 0||e;let g=b?.toString();m?.showTwoDecimalPoint&&(g=b?.toFixed(2));let h=(s=g?.indexOf("."))!==null&&s!==void 0?s:-1;if(v){p=(c=b?.toLocaleString("zh",{minimumFractionDigits:m?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let w=0,C=h??p?.length;m?.millesimalSymbol==="."?p=p?.replace(/\,/g,function(P,V){return V>=w&&V<C?".":P}):m?.millesimalSymbol===" "&&(p=p?.replace(","," "))}else p=`${m?.showTwoDecimalPoint?b?.toFixed(2):b}`;return m?.decimalPoint===","&&h>0&&(p=p=p?.replace(/\./g,function(w,C){return C>=h&&C<p?.length?",":w})),S=`<span style="font-family:${(f=(A=(r=i?.priceSymbol)===null||r===void 0?void 0:r.fontFamily)!==null&&A!==void 0?A:l?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${S}</span>`,p=Ve(p,l),m?.currencyPosition&&m?.currencyPosition!=="none"?p=m?.currencyPosition==="left"?S+p:p+S:m?.currencyPosition!=="none"&&(p=S+p),p},ps=t=>{var e,i,n,l,o,a,d,s,c,r,A,f,p,b,m,S,v,g,h,w,C,P,V,j,{content:x,style:T,bgImg:R,onClick:I,schema:N,isDefault:E,bottom_image:y,tipText:F,isPost:D,viewTime:B,rec:O,swiper:k,commodityStyles:M,buttonStyle:X,index:U,commodityGroup:q,popupBg:$,iframeIcon:be,commodityImgRatio:ue,isTel:J,iframeBgColor:Pe,isActive:De=!0}=t,Xe=rt(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:me,popupDetailData:ve,isPreview:et,bffFbReport:_e,popupCurTimeRef:Ze,checkCommodityIndexRef:$e,globalConfig:dt,ctaEvent:tt}=Ge(),{jumpToWeb:Le,productView:ot}=Vt(),Pt=fe(null),[He,qe]=Z(!1),[Ye,K]=Z(!1),[te,_]=Z((e=ve?.multiCheckIndex)!==null&&e!==void 0?e:0),ae=fe(),[Ie,Ee]=Z(0),ee=D?O:ve;let W=D?ee?.product:(n=(i=ee?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(o=(l=ee?.video)===null||l===void 0?void 0:l.bindProducts)===null||o===void 0?void 0:o[0],We=D?(a=ee?.product)===null||a===void 0?void 0:a.bindCta:(c=(s=(d=ee?.video)===null||d===void 0?void 0:d.bindProduct)===null||s===void 0?void 0:s.bindCta)!==null&&c!==void 0?c:(f=(A=(r=ee?.video)===null||r===void 0?void 0:r.bindProducts)===null||A===void 0?void 0:A[0])===null||f===void 0?void 0:f.bindCta;const lt=D?U:ve?.index;if(!D&&q?.open&&(!((p=ee?.video)===null||p===void 0)&&p.bindProducts)&&((m=(b=ee?.video)===null||b===void 0?void 0:b.bindProducts)===null||m===void 0?void 0:m.length)>0){$e.current=te;const ge=(S=ee?.video)===null||S===void 0?void 0:S.bindProducts[te];W=ge,We=ge?.bindCta}const it=ge=>{W?.link&&(Le(ge,ee,W,We,lt),D?tt?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},ee,W,lt):ot(ee,W,We,B||Pt.current,lt),window.location.href=window.getJointUtmLink(W.link))};ce(()=>{De&&(_e?.({eventName:"ProductView",product:W}),_e?.({eventName:"PageView",product:W}))},[De,_e]),ce(()=>{const ge=()=>{Pt.current=new Date};return ge(),window.addEventListener("pageshow",ge),()=>{window.removeEventListener("pageshow",ge)}},[]);const ct=Vi({product:W,enableFormattedPrice:(v=M?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:dt,style:M?.price}),nt=(et?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((h=$?.horizontalMargin)!==null&&h!==void 0?h:0)*2,Ue=ue?nt*(ue.h/ue.w):nt,at=({isPost:ge})=>{var xe,bt,Gt,Ut;return u.createElement("div",null,u.createElement("div",{className:"pb-commondity-content-collection",style:St(M?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Ve((xe=W?.collection)!==null&&xe!==void 0?xe:"Tiffany Lock",M?.collection)}}),u.createElement("div",{className:"pb-commondity-content-title",style:St(M?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Ve((bt=W?.title)!==null&&bt!==void 0?bt:"Pendant in Yellow Gold with Diamonds, Medium",M?.title)}}),u.createElement("div",{className:"pb-commondity-content-price",style:St(M?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:ct??""}}),u.createElement("div",{hidden:!!W&&!W?.taxInfo,style:St(M?.taxInfo),dangerouslySetInnerHTML:{__html:Ve((Gt=W?.taxInfo)!==null&&Gt!==void 0?Gt:"\u7A0E\u8D39",M?.taxInfo)}}),u.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},u.createElement(Di,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>qe(!0),isPost:ge,text:(Ut=W?.info)!==null&&Ut!==void 0?Ut:`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