pb-sxp-ui 1.15.12-alpha.3 → 1.15.12-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +5 -1
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +5 -1
- package/lib/core/context/SxpDataSourceProvider.js +5 -1
- package/package.json +1 -1
package/dist/index.min.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var at=require("lodash"),Cl=require("uuid"),kl=require("pako"),l=require("react"),gn=require("qs"),Il=require("eventemitter3"),Oe=require("@emotion/css"),yn=require("react-dom");function Pl(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var wn=Pl(yn);function et(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(i[n[a]]=t[n[a]]);return i}function nt(t,e,i,n){function a(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function c(d){try{u(n.next(d))}catch(p){s(p)}}function r(d){try{u(n.throw(d))}catch(p){s(p)}}function u(d){d.done?o(d.value):a(d.value).then(c,r)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ol=/:\w+/g;var Sn=(t,e)=>nt(void 0,void 0,void 0,function*(){const i={},n={};for(let a=0;a<e?.length;a++){const{id:o,method:s,url:c,urlParams:r,name:u,queryString:d,headers:p,body:h}=e[a];let f=c;r&&Object.entries(r).forEach(([y,b])=>{f=f.replace(Ol,S=>S===y?b:S)}),d&&(f+=d),n[o]=u;try{const y=yield fetch(f,{method:s,headers:Object.assign({"Content-Type":"application/json"},p),body:JSON.stringify(h)}).then(b=>b.json());i[o]=y}catch(y){console.error("DataSource request error: ",y),i[o]={}}}return{$store:i,idMapName:n}});const xn="SXP_TOKEN_INFO",Ml=(t,e)=>nt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),a=t.getAppId(),o=t.getApiUrl(),s=window.localStorage.getItem(xn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(xn,JSON.stringify(c))}}return c});function yi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)n[a]=i[0|Math.random()*e];else{let o;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",a=0;a<36;a++)n[a]||(o=0|Math.random()*16,n[a]=i[a===19?o&3|8:o])}return n.join("")}const Ll=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*n)),a+=1;return e},jl=()=>{const t=Cl.v4();return t?.replaceAll?t.replaceAll("-",""):Ll(32)},Ie=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!n&&!a)return t;let o=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${n??"inherit"}`,u=`font-family:${a??"inherit"}`,d=h=>{const f=h.search(s),y=h.search(c);return f!==-1&&y!==-1&&f<y&&(i+=`<span style="${r}">${h.substring(f,y)}</span>`,o=h.substring(y,h?.length)),f!==-1&&y!==-1&&f>y&&(i+=`<span style="${u}">${h.substring(y,f)}</span>`,o=h.substring(f,h?.length)),f===-1?(i+=`<span style="${u}">${h.substring(y,h?.length)}</span>`,o="",!1):y===-1?(i+=`<span style="${r}">${h.substring(f,h?.length)}</span>`,o="",!1):!0};let p=!0;for(;p;)p=d(o);return i};function Tn(t){const i=document.cookie.split(";");let n=null;return i.forEach(a=>{const[o,s]=a.trim().split("=");o===t&&(n=s)}),n??""}function Fi(){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 di(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const o=t[a],s=t.substring(a+1,t.length);o==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let n=0;return e?.map(a=>{i?.push(t.substring(n,a)),n=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function En(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),n=new Uint8Array(i),a=kl.inflate(n,{to:"string"});return JSON.parse(a)}let Wi=null;const Nl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Rl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Wi)return Wi;Wi=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Nl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let ht=null;const Dl={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{ht||(ht=new Rl),n&&ht.setApiUrl(n),ht.setAppId(t),ht.setTenantId(e),ht.setEnv(i)},getDetail:t=>{if(!ht)return;const e=ht.getTenantId(),i=ht.getAppId(),n=ht.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>nt(void 0,void 0,void 0,function*(){var o,s;const c=yield a.json(),r=En((o=c?.data)===null||o===void 0?void 0:o.data);if(r){const{$store:u}=yield Sn(n,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>nt(void 0,void 0,void 0,function*(){if(!ht)return;const e=ht.getTenantId(),i=ht.getAppId(),n=ht.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>nt(void 0,void 0,void 0,function*(){var o;const s=yield a.json();return s.success?(o=s?.data)===null||o===void 0?void 0:o.map(r=>Object.assign(Object.assign({},r),{data:En(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>nt(void 0,void 0,void 0,function*(){if(!ht)return;const e=yield Ml(ht,t),i=yi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");at.isEmpty(n)&&(n=yi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const a=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return a?.data||null})};function Yt(){return l.useContext(Fn)}function Vl(){return l.useContext(Bn)}const zi="feRealSessionIdKey",Cn=()=>{const t=jl();return`${Date.now()}${t}`},Bl=()=>{let t=Fl();return t||(t=Cn(),window.localStorage.setItem(zi,t)),t},Hi=()=>{const t=Cn();window.localStorage.setItem(zi,t)},Fl=()=>window.localStorage.getItem(zi),kn="SXP_FAKE_USER_ID",In="FAKE_USER_STATE",Pn="AGREE_POLICY",On="SLIDE_SKIP_STATE",Mn="CCONTSENT_STATE",Ln="USER_CONSENT_RESULT",Wl=()=>{let t=window.localStorage.getItem(kn);return at.isEmpty(t)&&(t=yi(36,62),window.localStorage.setItem(kn,t)),t},zl=()=>{const t=window.localStorage.getItem(In);return at.isEmpty(t)&&window.localStorage.setItem(In,"true"),at.isEmpty(t)},Hl=()=>{const t=window.localStorage.getItem(On);return at.isEmpty(t)},Ul=()=>{window.localStorage.setItem(On,"true")},Xl=()=>{const t=window.localStorage.getItem(Mn);return at.isEmpty(t)&&window.localStorage.setItem(Mn,"true"),at.isEmpty(t)},jn=()=>window.localStorage.getItem(Ln)==="true",Nn=()=>{window.localStorage.setItem(Ln,"true")};function jt(t,e){const{appDomain:i}=Ve();return l.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const ut=new Il;var rt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(rt||(rt={}));const ql=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:a,privacy_policy_title:o})=>{const{setIsAgreePolicy:s,bffEventReport:c}=Ve(),r=l.useMemo(()=>{var p;const h=location.search.slice(1),f={};(p=di(h.replace(/\+/g,"%2B")))===null||p===void 0||p.map(y=>{const b=y.split("=")[0],S=y.split("=")[1];f[b]=S});for(const y in f)f[y]=f[y].replace(/%2B/g,"+");return f},[]),u=p=>{var h;return(h=r[p])!==null&&h!==void 0?h:null};l.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),s?.(!0),window.localStorage.setItem(Pn,"yes")};return l.createElement("div",{className:"consent-bg"},l.createElement("div",{className:"consent"},l.createElement("div",{className:"consent-col"},l.createElement("div",{className:"consent-title"},i??"Privacy Policy"),l.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.")),l.createElement("div",{className:"consent-col"},l.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),l.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},o??"More information"))))};var Yl=l.memo(ql);const Rn=l.createContext({rtcList:[],tagList:[]});var Ui;(function(t){t[t.BFF=5]="BFF"})(Ui||(Ui={}));const wi="FOR U",Gl=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:a,defaultSize:o,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:p=!1,enabledMetaConversionApi:h=!1,consentHeight:f,consentWidth:y,isOpenConsent:b=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:m,dataList:x,onUpdateSchema:I,onUpdateChannel:k})=>{var N,A,w,T,j;const[C,M]=l.useState([]),[E,V]=l.useState([]),[F,O]=l.useState(!0),[D,R]=l.useState({rtc:"",requestId:""}),P=l.useRef(null),B=l.useRef(!1),[U,Z]=l.useState(()=>!!window.localStorage.getItem(Pn)),[Q,te]=l.useState(),[ve,he]=l.useState(),[ie,Me]=l.useState(p),[Re,We]=l.useState([]),[Y,K]=l.useState(0),[Ae,ge]=l.useState(!1),[ye,se]=l.useState(null),je=l.useRef(),He=l.useRef(),Fe=l.useRef(),[Ye,_e]=l.useState(wi),Se=l.useRef(-1),G=l.useRef(null),[X,le]=l.useState(!1),[oe,pe]=l.useState((A=(N=m?.data)===null||N===void 0?void 0:N.sxpPageConf)===null||A===void 0?void 0:A.globalConfig),[Pe,Ge]=l.useState(),[ne,W]=l.useState(!1),[Xe,bt]=l.useState(),[it,pt]=l.useState(),[vt,gt]=l.useState([]),[Dt,kt]=l.useState(),[Ot,zt]=l.useState(),It=l.useMemo(()=>Pe??m,[Pe,m]),yt=l.useMemo(()=>{var H,z,re,Ce;return(((Ce=(re=(z=(H=oe?.consent)===null||H===void 0?void 0:H[0])===null||z===void 0?void 0:z.item)===null||re===void 0?void 0:re.props)===null||Ce===void 0?void 0:Ce.privacy_necessity)&&!U&&!S||b)&&ne},[U,oe,b,S,ne]),_t=l.useCallback(H=>{k?.(H),pt(H)},[]),Mt=l.useCallback(H=>{var z;const re=H?.recList;return(z=re?.map(xe=>{var Te,De,Be,Ne,L,q;if(!((Te=xe?.video)===null||Te===void 0)&&Te.bindProducts&&((Be=(De=xe?.video)===null||De===void 0?void 0:De.bindProducts)===null||Be===void 0?void 0:Be.length)>0){const _=(q=(L=(Ne=xe?.video)===null||Ne===void 0?void 0:Ne.bindProducts)===null||L===void 0?void 0:L.filter(ae=>!!ae?.bindCta))!==null&&q!==void 0?q:[];return Object.assign(Object.assign({},xe),{video:Object.assign(Object.assign({},xe?.video),{bindProducts:_})})}return xe}))!==null&&z!==void 0?z:[]},[]);l.useEffect(()=>{let H;return vt.length>0&&(H=setInterval(()=>{const re=new Date,Ce=15*1e3;gt(xe=>xe.filter(Te=>re-Te.time<=Ce))},1e3)),()=>{clearInterval(H)}},[vt]),l.useEffect(()=>{const H=z=>{je.current=z};return ut.on(rt.CHANGE_THEME_TAG,H),()=>{ut.off(rt.CHANGE_THEME_TAG,H)}},[]),l.useEffect(()=>{Me(p)},[p]);const Ze=l.useMemo(()=>e?.find(H=>H.type===Ui.BFF),[e]),mt=l.useMemo(()=>{var H;return((H=Ze?.headers)===null||H===void 0?void 0:H["x-app-id"])+Wl()},[Ze]),$=l.useCallback((H,z)=>{if(!Ze)return;const re=Ze.url;if(z?.query){const Ce=gn.stringify(z.query);H=`${H}?${Ce}`}return z.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${re}/api/${H}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},z.body),Ze.headers),{"x-user-id":mt}))],{type:"application/json;charset=UTF-8"})):window.fetch(`${re}/api/${H}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":mt},Ze.headers),method:z.method,body:JSON.stringify(z.body)}).then(Ce=>Ce.json()).catch(Ce=>Promise.reject(Ce))},[Ze,mt]),we=l.useCallback((H,z)=>{if(!Ze)return;const re=Ze.url;if(z?.query){const Ce=gn.stringify(z.query);H=`${H}?${Ce}`}return window.fetch(`${re}/admin/${H}`,{headers:Object.assign({"Content-Type":"application/json"},Ze.headers),method:z.method,body:JSON.stringify(z.body)}).then(Ce=>Ce.json()).catch(Ce=>Promise.reject(Ce))},[Ze]),qe=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){var z,re,Ce,xe,Te,De,Be,Ne,L,q,_,ae,ue,de;if(H=Object.assign({maxSize:(z=H?.maxSize)!==null&&z!==void 0?z:a,defaultSize:(re=H?.defaultSize)!==null&&re!==void 0?re:o,hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag,pageNum:H?.pageNum,contentFilter:H?.contentFilter,productFilter:H?.productFilter},Ot&&{chatlabsId:Ot}),it)H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(it)});else if(i){const ce=(Te=(xe=(Ce=di(i))===null||Ce===void 0?void 0:Ce.filter(be=>{var ee,Le;const me=be.split("=")[0];return(Le=(ee=v?.channels)!==null&&ee!==void 0?ee:[])===null||Le===void 0?void 0:Le.includes(me)}))===null||xe===void 0?void 0:xe.join("&"))!==null&&Te!==void 0?Te:"";ce&&(H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(ce)}))}if(S){let ce=1;if(H=Object.assign(Object.assign(Object.assign({},H),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!H?.channel||B.current)return;B.current=!0;let be=[],ee=null;const Le=me=>nt(void 0,void 0,void 0,function*(){var fe,$e,Je,Ke,Qe,ot;if(me.pageNum=ce,ee=yield we?.("recommend/direct_page",{method:"POST",body:me}),!ee?.success)return;O(!1),be=be.concat((Ke=(Je=($e=(fe=ee?.data)===null||fe===void 0?void 0:fe.recList)===null||$e===void 0?void 0:$e.filter)===null||Je===void 0?void 0:Je.call($e,Ue=>Ue?.product||Ue?.video))!==null&&Ke!==void 0?Ke:[]),C?.length===0&&(M(Mt(Object.assign(Object.assign({},ee?.data),{recList:be}))),We(Mt(Object.assign(Object.assign({},ee?.data),{recList:be})))),((ot=(Qe=ee?.data)===null||Qe===void 0?void 0:Qe.recList)===null||ot===void 0?void 0:ot.some(Ue=>Ue?.product||Ue?.video))&&(ce=ce+1,yield Le(me))});return yield Le(H),!H?.hashTag&&ee&&R({rtc:(De=ee?.data)===null||De===void 0?void 0:De.rtc,requestId:(Be=ee?.data)===null||Be===void 0?void 0:Be.requestId}),Object.assign(Object.assign({},ee?.data),{recList:be})}oe?.enablePreview&&(H=Object.assign(Object.assign({},H),{directPage:!0,level:1,pageNum:(Ne=H?.pageNum)!==null&&Ne!==void 0?Ne:1}));const J=yield $?.("v1/recommend/list",{method:"POST",body:H});if(J?.success){if(H?.hashTag||R({rtc:J.data.rtc,requestId:J.data.requestId}),oe?.enablePreview&&!S){let ce=[];return ce=ce.concat((ae=(_=(q=(L=J?.data)===null||L===void 0?void 0:L.recList)===null||q===void 0?void 0:q.filter)===null||_===void 0?void 0:_.call(q,ee=>ee?.product||ee?.video))!==null&&ae!==void 0?ae:[]),((de=(ue=J?.data)===null||ue===void 0?void 0:ue.recList)===null||de===void 0?void 0:de.some(ee=>ee?.product||ee?.video))||le(!0),Object.assign(Object.assign({},J.data),{recList:ce})}return J?.data}}),[$,i,a,o,g,it,Ot,we]),wt=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){var z,re,Ce,xe;if(C.length<=0)return;const Te=C?.[C?.length-1],De=yield qe(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ve?.hashTag},((z=Te?.product)===null||z===void 0?void 0:z.itemId)&&{productFilter:[(re=Te?.product)===null||re===void 0?void 0:re.itemId]}),((Ce=Te?.video)===null||Ce===void 0?void 0:Ce.itemId)&&{contentFilter:[(xe=Te?.video)===null||xe===void 0?void 0:xe.itemId]}),{themeTag:je.current}),oe?.enablePreview&&!S&&{pageNum:H}));return M(C.concat(Mt(De))),We(Re.concat(Mt(De))),De}),[qe,C,ve,Re]),Jt=l.useCallback((H,z)=>{var re,Ce,xe,Te,De;let Be=!1;const Ne=(Ce=(re=m?.data)===null||re===void 0?void 0:re.sxpPageConf)===null||Ce===void 0?void 0:Ce.globalConfig;if(!((xe=Ne?.session)===null||xe===void 0)&&xe.enable){const L=localStorage.getItem("sessionStartTime"),q=L?JSON.parse(L):new Date().getTime();Math.floor((new Date().getTime()-q)/1e3/60)>=((De=(Te=Ne?.session)===null||Te===void 0?void 0:Te.expires)!==null&&De!==void 0?De:30)&&(z?.("sessionTimeOut"),Hi(),He.current=new Date,Be=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else H&&Hi();return Be},[m]),lt=l.useCallback(({userInfo:H,eventInfo:z,reportLayId:re=!0})=>{var Ce,xe;if(!n||oe?.enablePreview)return;H||(H={});const Te=Bl(),De={},Be=location.search.slice(1);(Ce=di(Be))===null||Ce===void 0||Ce.map(ae=>{const ue=ae.split("=")[0],de=ae.split("=")[1];De[ue]=de});const Ne=De?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Te,rtc:D.rtc,requestId:D.requestId},{playbookType:Dt}),Xe&&re&&{layoutVariantId:Xe}),z),z?.position&&it&&{position:Number(z?.position)+1+""}),Ne&&{clSource:Ne}),q=Object.entries(H).map(([ae,ue])=>({name:ae,value:ue})),_=Object.entries(L).map(([ae,ue])=>ue&&{name:ae,value:ue}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),$?.(`v2/cld/${(xe=Ze?.headers)===null||xe===void 0?void 0:xe["x-app-id"]}/${z?.eventSubject}${Ne?`/${decodeURIComponent(Ne)}`:""}`,{method:"POST",body:{userInfo:q,eventInfo:_},type:"beacon"})},[$,D,n,oe?.enablePreview,Xe,oe,Dt,Ze]),Qt=l.useCallback(({eventName:H,product:z})=>{var re,Ce,xe,Te,De,Be;if(!n||!h||oe?.enablePreview||!(!((re=oe?.converApi)===null||re===void 0)&&re[H]))return;const Ne=at.cloneDeep((Ce=oe?.converApi)===null||Ce===void 0?void 0:Ce[H]),L=new URLSearchParams(window.location.search),q=L?.get("fbclid"),_={event_source_url:(xe=window?.location)===null||xe===void 0?void 0:xe.href,external_id:mt,client_user_agent:(De=(Te=window?.navigator)===null||Te===void 0?void 0:Te.userAgent)!==null&&De!==void 0?De:"",fbc:q?`fb.2.${new Date().getTime()}.${q}`:"",fbp:Tn("_fbp")?`fb.2.${new Date().getTime()}.${Tn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},ae=/\{\{(.*?)\}\}/g,ue=de=>{if(de){if(de instanceof Array)de?.map(J=>ue(J));else for(const J in de)if(de.hasOwnProperty(J)){const ce=de?.[J];if(typeof ce=="object")ue(ce);else if(typeof ce=="string"){const be=ce?.match(ae);be&&be.forEach(ee=>{var Le;const me=ee.substring(2,ee.length-2);try{let fe=new Function("fix_par","product",`return ${me}`)(_,z);fe?(me?.indexOf("currency")!==-1&&fe?.indexOf("-")!==-1&&typeof fe=="string"&&(fe=(Le=fe?.split("-"))===null||Le===void 0?void 0:Le[0]),de[J]=fe):delete de[J]}catch(fe){delete de[J],console.error("An error occurred:",fe?.message)}})}}}};return ue(Ne),$?.(`v2/event/report/FB/${(Be=Ze?.headers)===null||Be===void 0?void 0:Be["x-app-id"]}/${H}`,{method:"POST",body:Ne,type:"beacon"})},[$,n,h,oe?.enablePreview,oe,mt,Ze]),ii=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){const z=yield $?.("v1/recommend/like",{method:"POST",body:H});return z?.success}),[$]),qt=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){const z=yield $?.("v1/recommend/unlike",{method:"POST",body:H});return z?.success}),[$]),Vt=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){const z=yield $?.("v1/customform",{method:"POST",body:H});return z?.success}),[$]),Lt=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){var z,re,Ce,xe,Te,De,Be,Ne;const L=!!(!((Ce=(re=(z=H?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||re===void 0?void 0:re.globalConfig)===null||Ce===void 0)&&Ce.isShowTag);if(!(!i||!L))try{const q=(De=(Te=(xe=di(i))===null||xe===void 0?void 0:xe.filter(ae=>{var ue,de;const J=ae.split("=")[0];return(de=(ue=v?.channels)!==null&&ue!==void 0?ue:[])===null||de===void 0?void 0:de.includes(J)}))===null||Te===void 0?void 0:Te.join("&"))!==null&&De!==void 0?De:"",_=yield $?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(q)}});V((Ne=(Be=_?.data)===null||Be===void 0?void 0:Be.tags)!==null&&Ne!==void 0?Ne:[])}catch(q){console.log("e",q)}}),[$,i]),ft=l.useCallback((H,z,re,Ce)=>{var xe,Te,De,Be,Ne,L,q,_,ae,ue,de,J,ce,be,ee,Le,me,fe,$e,Je,Ke,Qe,ot,dt,Ue,ct,ke,Ee,Tt,St,ni,tt,$t,Ri,Di,Vi;const Ht=re?.bindCta,El=((xe=z?.video)===null||xe===void 0?void 0:xe.bindProduct)||((Te=z?.video)===null||Te===void 0?void 0:Te.bindProducts)&&((Be=(De=z?.video)===null||De===void 0?void 0:De.bindProducts)===null||Be===void 0?void 0:Be.length)>0;let gi="",Bi=null;Ae?gi="hashTagPage":!((Ne=z?.video)===null||Ne===void 0)&&Ne.url?(gi="videoPage",Bi="video"):!((q=(L=z?.video)===null||L===void 0?void 0:L.imgUrls)===null||q===void 0)&&q.length&&(gi="imagePage",Bi="image");const bn=(be=(J=(_=re?.tags)!==null&&_!==void 0?_:(de=(ue=(ae=z?.video)===null||ae===void 0?void 0:ae.bindProducts)===null||ue===void 0?void 0:ue[0])===null||de===void 0?void 0:de.tags)!==null&&J!==void 0?J:(ce=z?.video)===null||ce===void 0?void 0:ce.tags)!==null&&be!==void 0?be:(ee=z?.product)===null||ee===void 0?void 0:ee.tags;lt?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(Le=Ht?.itemId)!==null&&Le!==void 0?Le:"",ctaName:(me=Ht?.title)!==null&&me!==void 0?me:"",contentTags:bn?JSON.stringify(bn):"",position:Ce+"",contentId:($e=(fe=z?.video)===null||fe===void 0?void 0:fe.itemId)!==null&&$e!==void 0?$e:"",productId:El?re?.itemId:"",traceInfo:(Di=(tt=(ke=(ot=(Je=Ht?.traceInfo)!==null&&Je!==void 0?Je:(Qe=(Ke=z?.video)===null||Ke===void 0?void 0:Ke.bindCta)===null||Qe===void 0?void 0:Qe.traceInfo)!==null&&ot!==void 0?ot:(ct=(Ue=(dt=z?.video)===null||dt===void 0?void 0:dt.bindProduct)===null||Ue===void 0?void 0:Ue.bindCta)===null||ct===void 0?void 0:ct.traceInfo)!==null&&ke!==void 0?ke:(ni=(St=(Tt=(Ee=z?.video)===null||Ee===void 0?void 0:Ee.bindProducts)===null||Tt===void 0?void 0:Tt[0])===null||St===void 0?void 0:St.bindCta)===null||ni===void 0?void 0:ni.traceInfo)!==null&&tt!==void 0?tt:(Ri=($t=z?.product)===null||$t===void 0?void 0:$t.bindCta)===null||Ri===void 0?void 0:Ri.traceInfo)!==null&&Di!==void 0?Di:"",fromKName:gi,fromKPage:(Vi=location?.href)!==null&&Vi!==void 0?Vi:"",contentFormat:Bi})})},[lt,Ae]),hi=l.useCallback(()=>{var H,z,re;const Ce=location.search.slice(1),xe={};(H=di(Ce.replace(/\+/g,"%2B")))===null||H===void 0||H.map(Be=>{const Ne=Be.split("=")[0],L=Be.split("=")[1];xe[Ne]=L});for(const Be in xe)xe[Be]=xe[Be].replace(/%2B/g,"+");const Te=Be=>{var Ne;return(Ne=xe[Be])!==null&&Ne!==void 0?Ne:""},De=new Date;He.current=De,lt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Te("utm_source"),utmMedium:Te("utm_medium"),utmCampaign:Te("utm_campaign"),utmId:Te("utm_id"),utmContent:Te("utm_content"),enterTime:Math.floor(De/1e3)+"",requestId:null,enterUrl:(re=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&re!==void 0?re:""},reportLayId:!1})},[lt]),Ai=l.useCallback(()=>nt(void 0,void 0,void 0,function*(){var H,z;const re=yield $?.("v1/account",{method:"GET"});return zt((H=re?.data)===null||H===void 0?void 0:H.chatLabsId),((z=re?.data)===null||z===void 0?void 0:z.consentResult)==="true"}),[$]),bi=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){const z=yield $?.("v1/account/consent",{method:"POST",body:{consentResult:H}});return z?.success}),[$]);l.useEffect(()=>{yt||hi()},[yt]),l.useEffect(()=>{if(yt||s)return;O(!0);let H,z;qe().then(re=>{var Ce,xe,Te,De,Be,Ne,L,q,_,ae,ue;if(re){const de=Mt(re);let J,ce;if(re?.layoutVariantId){H=re?.layoutVariantId,bt(re?.layoutVariantId);const be=(xe=(Ce=re?.layoutVariantId)===null||Ce===void 0?void 0:Ce.split("-"))===null||xe===void 0?void 0:xe[1];be&&(J=x?.find(ee=>ee?.id===be),J?(Ge(J),document.title=(Te=J?.name)!==null&&Te!==void 0?Te:"home",ce=(Be=(De=J?.data)===null||De===void 0?void 0:De.sxpPageConf)===null||Be===void 0?void 0:Be.globalConfig,pe(ce),I?.(J?.data),!((_=(q=(L=(Ne=ce?.consent)===null||Ne===void 0?void 0:Ne[0])===null||L===void 0?void 0:L.item)===null||q===void 0?void 0:q.props)===null||_===void 0)&&_.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(it||(ce?.playbook==="organic menu"||!ce&&oe?.playbook==="organic menu"?(kt("organicMenu"),de.unshift("organic menu"),z="organicMenu"):(kt("paidMedia"),z="paidMedia")),M(de),We(de),Lt(J??It),it){const be=de?.[0],ee=((ae=be?.video)===null||ae===void 0?void 0:ae.traceInfo)||((ue=be?.product)===null||ue===void 0?void 0:ue.traceInfo)||"";lt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ee,branchfeed:it},H&&{layoutVariantId:H})}),lt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ee,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-Fe?.current)/1e3)+""},H&&{layoutVariantId:H})})}}}).finally(()=>{lt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},H&&{layoutVariantId:H}),z&&{playbookType:z})}),O(!1)})},[yt,it]),l.useEffect(()=>{s&&(O(!0),Lt(m),qe().then(H=>{if(H){const z=Mt(H);oe?.playbook==="organic menu"&&!it&&z.unshift("organic menu"),M(z),We(z)}}).finally(()=>{O(!1)}))},[qe,Lt,it]);const Ni=jt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return l.createElement(Rn.Provider,{value:{rtcList:C,setRtcList:M,mutateLike:ii,mutateUnlike:qt,submitForm:Vt,popupDetailData:Q,loadVideos:wt,setPopupDetailData:te,getRecommendVideos:qe,bffEventReport:lt,isPreview:s,loading:F,sxpParameter:c,waterFallData:ve,setWaterFallData:he,ctaEvent:ft,swiperRef:P,openHashtag:ie,setOpenHashtag:Me,cacheRtcList:Re,setCacheRtcList:We,cacheActiveIndex:Y,setCacheActiveIndex:K,isFromHashtag:Ae,setIsFromHashtag:ge,appDomain:r,hashTagSize:u,loadingImage:d??Ni,isOpenHashTag:p,tagList:E,setLoading:O,videoRef:ye,setVideoRef:se,bffFbReport:Qt,isAgreePolicy:U,setIsAgreePolicy:Z,curTime:He,h5EnterLink:hi,themeTag:je,isShowConsent:yt,selectTag:Ye,setSelectTag:_e,globalConfig:oe,popupCurTimeRef:G,checkCommodityIndexRef:Se,isEditor:S,isNoMoreData:X,updateChannel:_t,channel:it,eventTimeList:vt,setEventTimeList:gt,multiPostTimeRef:Fe,refreshFeSession:Jt,getAccount:Ai,accountSonsent:bi}},yt?l.createElement(Yl,Object.assign({},(j=(T=(w=oe?.consent)===null||w===void 0?void 0:w[0])===null||T===void 0?void 0:T.item)===null||j===void 0?void 0:j.props)):t({rtcList:C,mutateLike:ii,mutateUnlike:qt,submitForm:Vt,tagList:E,pageData:It}))};var Dn=l.memo(Gl);function Ve(){return l.useContext(Rn)}var Vn;(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"})(Vn||(Vn={}));const Bn=l.createContext({$store:{},options:[],configs:[]}),Zl=({children:t,isSsr:e,enable:i})=>{const[n,a]=l.useState([]),{schema:o}=Yt(),[s,c]=l.useState(o.__STORE__||{}),[r,u]=l.useState([]);l.useEffect(()=>{var h;e||at.isEqual(r,o?.dataSource)||u((h=o?.dataSource)!==null&&h!==void 0?h:[])},[o?.dataSource,e]);const d=l.useCallback(()=>nt(void 0,void 0,void 0,function*(){const{$store:h,idMapName:f}=yield Sn("",r);c(h),p(h,f)}),[r]),p=(h,f)=>{const y=[];Object.entries(h).forEach(([b,S])=>{Object.keys(S).forEach(v=>{const g={label:`${f[b]} - ${v}`,value:`{{ ${b}.${v} }}`};y.push(g)})}),a(y)};return l.useEffect(()=>{e||d()},[d,e,o]),i?l.createElement(Bn.Provider,{value:{$store:o.__STORE__||s,options:n,configs:r}},t):t};var Kl=l.memo(Zl);const Si={id:yi(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},Xi={id:"",duration:0,name:"none"},Fn=l.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Si],redoStack:[],popup:Xi,setPopup:()=>{}}),Wn=l.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:a=!0,utmVal:o},s)=>{const[c,r]=l.useState(null),[u,d]=l.useState(n||{pointData:[Si],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[p,h]=l.useState([Si]),[f,y]=l.useState([[Si]]),[b,S]=l.useState([]),[v,g]=l.useState(Xi);typeof window<"u"&&(window.sxpPopup=(N,A)=>{g(Object.assign(Object.assign(Object.assign({},Xi),{id:N}),A))}),typeof window<"u"&&(window.getJointUtmLink=N=>(Ul(),N?.indexOf("?")!==-1?N+(o?"&"+o:""):N+(o?"?"+o:""))),l.useEffect(()=>{y([u.pointData]),S([])},[u.type]);const m=l.useCallback(N=>{const A=at.cloneDeep(u);A&&(A.dataSource=N,d?.(A))},[u]),[x,I]=l.useState();l.useImperativeHandle(s,()=>({loadSchema(N){N&&(y([N.pointData]),d(N))},exportSchema(){return at.cloneDeep(u)},getPageInfoData(){return x},initPageInfoData(N){N&&I(N)}}));const k=l.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return l.createElement(Fn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:m,prePiontData:p,setPrePiontData:h,pageInfoData:x,setPageInfoData:N=>I(Object.assign(Object.assign({},x),N)),undoStack:f,redoStack:b,setRedoStack:S,setUndoStack:y,getCurPageConf:k,popup:v,setPopup:g}},l.createElement(Kl,{isSsr:i,enable:a},t))});var _l=Object.freeze({__proto__:null,EditorCore:Wn}),Jl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Ql=[{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 xt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:a}=Ve(),o=l.useCallback((r,u,d,p,h,f)=>{var y,b,S,v,g,m,x,I,k,N,A,w,T,j,C,M,E,V,F,O,D,R,P,B,U,Z,Q,te,ve,he,ie,Me,Re,We,Y,K,Ae,ge;if(n?.findIndex(Fe=>Fe.target===r?.target)!==-1)return;r&&a?.(Fe=>[...Fe,{target:r?.target,time:new Date}]);let se="";e&&(!((b=(y=u?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0)&&b.length||!((S=u?.video)===null||S===void 0)&&S.bindProduct)?se="pdpPage":i?se="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?se="videoPage":!((g=u?.video)===null||g===void 0)&&g.imgUrls&&(!((x=(m=u?.video)===null||m===void 0?void 0:m.imgUrls)===null||x===void 0)&&x.length)?se="imagePage":u?.product&&(se="productPage");const je=(j=(w=(I=d?.tags)!==null&&I!==void 0?I:(A=(N=(k=u?.video)===null||k===void 0?void 0:k.bindProducts)===null||N===void 0?void 0:N[0])===null||A===void 0?void 0:A.tags)!==null&&w!==void 0?w:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&j!==void 0?j:(C=u?.product)===null||C===void 0?void 0:C.tags;let He=null;!((M=u?.video)===null||M===void 0)&&M.url?He="video":!((E=u?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(V=u?.video)===null||V===void 0?void 0:V.imgUrls)===null||F===void 0)&&F.length)&&(He="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(O=d?.itemId)!==null&&O!==void 0?O:"",productName:(D=d?.title)!==null&&D!==void 0?D:"",price:d?.price?d?.price+"":"0",productCollection:(R=d?.collection)!==null&&R!==void 0?R:"",fromKName:se,fromKPage:location?.href,contentTags:je?JSON.stringify(je):"",position:h+"",contentId:(B=(P=u?.video)===null||P===void 0?void 0:P.itemId)!==null&&B!==void 0?B:"",ctatId:(U=p?.itemId)!==null&&U!==void 0?U:"",traceInfo:(ge=(Y=(Re=(ve=(Z=f??d?.traceInfo)!==null&&Z!==void 0?Z:(te=(Q=u?.video)===null||Q===void 0?void 0:Q.bindProduct)===null||te===void 0?void 0:te.traceInfo)!==null&&ve!==void 0?ve:(Me=(ie=(he=u?.video)===null||he===void 0?void 0:he.bindProducts)===null||ie===void 0?void 0:ie[0])===null||Me===void 0?void 0:Me.traceInfo)!==null&&Re!==void 0?Re:(We=u?.product)===null||We===void 0?void 0:We.traceInfo)!==null&&Y!==void 0?Y:(Ae=(K=u?.video)===null||K===void 0?void 0:K.bindCta)===null||Ae===void 0?void 0:Ae.traceInfo)!==null&&ge!==void 0?ge:""},He&&{contentFormat:He})})},[t,e,i,n]),s=l.useCallback((r,u,d,p,h)=>{var f,y,b,S,v,g,m,x,I,k,N,A,w,T;let j="";e&&(!((y=(f=r?.video)===null||f===void 0?void 0:f.bindProducts)===null||y===void 0)&&y.length||!((b=r?.video)===null||b===void 0)&&b.bindProduct)?j="pdpPage":r?.product&&(j="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:j,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:h+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(A=(x=(v=u?.traceInfo)!==null&&v!==void 0?v:(m=(g=r?.video)===null||g===void 0?void 0:g.bindProduct)===null||m===void 0?void 0:m.traceInfo)!==null&&x!==void 0?x:(N=(k=(I=r?.video)===null||I===void 0?void 0:I.bindProducts)===null||k===void 0?void 0:k[0])===null||N===void 0?void 0:N.traceInfo)!==null&&A!==void 0?A:(w=r?.product)===null||w===void 0?void 0:w.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-p)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=l.useCallback((r,u,d,p)=>{u&&u===wi&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:p?`['${p}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:s,backMainFeed:c}}const $l=({layout:t,columns:e,onChange:i})=>l.createElement(l.Fragment,null,e?.map((n,a)=>l.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&l.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&l.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 eo=l.memo($l);const to=t=>{var e,i,{columns:n,style:a,title:o,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:p,isPopup:h,onClick:f,onClose:y,submitButtonStyle:b}=t,S=et(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=Ve(),{jumpToWeb:m}=xt(),[x,I]=l.useState(!1),[k,N]=l.useState({}),[A,w]=l.useState(0),T=l.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),j=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=l.useMemo(()=>at.cloneDeep(n)||T,[n,T]),M=l.useCallback(V=>{const{name:F,value:O}=V.target;N(Object.assign(Object.assign({},k),{[F]:O}))},[k]),E=at.debounce(V=>nt(void 0,void 0,void 0,function*(){var F,O,D,R,P;const B=k;if(!B)return;const U=(O=(F=Object.keys(B))===null||F===void 0?void 0:F.map(Q=>{var te;return{name:Q,value:(te=B[Q])!==null&&te!==void 0?te:""}}))===null||O===void 0?void 0:O.filter(Q=>Q?.value);if(!U||!U?.length)return;I(!0);const Z=yield v?.({attributes:U});if(I(!1),Z){if(p){const Q=g,te=(D=Q?.video)===null||D===void 0?void 0:D.bindProduct,ve=(P=(R=Q?.video)===null||R===void 0?void 0:R.bindProduct)===null||P===void 0?void 0:P.bindCta,he=g?.index;m(V,Q,te,ve,he)}h||y?.(),f?.()}}),1e3);return l.useEffect(()=>{const V=()=>{var F,O;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((O=document?.body)===null||O===void 0?void 0:O.clientHeight))<j?w(50):w(0)};return window.addEventListener("resize",V),()=>{window.removeEventListener("resize",V)}},[]),l.createElement("div",{className:"pb-appoint-form"},l.createElement("div",{className:`pb-appoint-form-title ${Oe.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Ie(o,s)}}),l.createElement("div",Object.assign({className:Oe.css(Object.assign(Object.assign({},a),{marginTop:A}))},S),l.createElement("div",{className:"pb-appoint-form-container"},l.createElement(eo,{columns:C,layout:d,onChange:M}))),l.createElement("div",{className:"pb-appoint-form-btn-wrapper"},l.createElement("button",{"aria-label":u,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},b),dangerouslySetInnerHTML:{__html:Ie(x?"loading...":u,b)}})))};var io=l.memo(to);function st(t,e){return t.extend=e,t}const no=st(io,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Ql,bindableProps:[],interactionRender:Jl},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 lo=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function zn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function qi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:zn(e[i])&&zn(t[i])&&Object.keys(e[i]).length>0&&qi(t[i],e[i])})}const Hn={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 Et(){const t=typeof document<"u"?document:{};return qi(t,Hn),t}const oo={document:Hn,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 At(){const t=typeof window<"u"?window:{};return qi(t,oo),t}function Gt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function ao(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function li(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Nt(){return Date.now()}function so(t){const e=At();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function ro(t,e){e===void 0&&(e="x");const i=At();let n,a,o;const s=so(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(a==="none"?"":a)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=o.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?a=o.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0}function xi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function co(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Pt(){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&&!co(n)){const a=Object.keys(Object(n)).filter(o=>e.indexOf(o)<0);for(let o=0,s=a.length;o<s;o+=1){const c=a[o],r=Object.getOwnPropertyDescriptor(n,c);r!==void 0&&r.enumerable&&(xi(t[c])&&xi(n[c])?n[c].__swiper__?t[c]=n[c]:Pt(t[c],n[c]):!xi(t[c])&&xi(n[c])?(t[c]={},n[c].__swiper__?t[c]=n[c]:Pt(t[c],n[c])):t[c]=n[c])}}}return t}function Ti(t,e,i){t.style.setProperty(e,i)}function Un(t){let{swiper:e,targetPosition:i,side:n}=t;const a=At(),o=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>o?"next":"prev",d=(h,f)=>u==="next"&&h>=f||u==="prev"&&h<=f,p=()=>{c=new Date().getTime(),s===null&&(s=c);const h=Math.max(Math.min((c-s)/r,1),0),f=.5-Math.cos(h*Math.PI)/2;let y=o+f*(i-o);if(d(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),d(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(p)};p()}function Ft(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Ei(t){try{console.warn(t);return}catch{}}function oi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Gt(e)),i}function Xn(t){const e=At(),i=Et(),n=t.getBoundingClientRect(),a=i.body,o=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:n.top+c-o,left:n.left+r-s}}function uo(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 vo(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 Zt(t,e){return At().getComputedStyle(t,null).getPropertyValue(e)}function ci(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ci(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 Yi(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Gi(t,e,i){const n=At();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 ze(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Zi(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const o=Et(),s=At();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:p}=e;let h=d;h.originalEvent&&(h=h.originalEvent);const f=h.keyCode||h.charCode,y=e.params.keyboard.pageUpDown,b=y&&f===33,S=y&&f===34,v=f===37,g=f===39,m=f===38,x=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&x||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&m||b))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||S||v||g||m||x)){let I=!1;if(Ci(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ci(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,N=k.clientWidth,A=k.clientHeight,w=s.innerWidth,T=s.innerHeight,j=Xn(k);p&&(j.left-=k.scrollLeft);const C=[[j.left,j.top],[j.left+N,j.top],[j.left,j.top+A],[j.left+N,j.top+A]];for(let M=0;M<C.length;M+=1){const E=C[M];if(E[0]>=0&&E[0]<=w&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;I=!0}}if(!I)return}e.isHorizontal()?((b||S||v||g)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((S||g)&&!p||(b||v)&&p)&&e.slideNext(),((b||v)&&!p||(S||g)&&p)&&e.slidePrev()):((b||S||m||x)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(S||x)&&e.slideNext(),(b||m)&&e.slidePrev()),a("keyPress",f)}}function r(){e.keyboard.enabled||(o.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(o.removeEventListener("keydown",c),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&r()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function ki(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const o=At();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,c=Nt(),r;const u=[];function d(m){let N=0,A=0,w=0,T=0;return"detail"in m&&(A=m.detail),"wheelDelta"in m&&(A=-m.wheelDelta/120),"wheelDeltaY"in m&&(A=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(N=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(N=A,A=0),w=N*10,T=A*10,"deltaY"in m&&(T=m.deltaY),"deltaX"in m&&(w=m.deltaX),m.shiftKey&&!w&&(w=T,T=0),(w||T)&&m.deltaMode&&(m.deltaMode===1?(w*=40,T*=40):(w*=800,T*=800)),w&&!N&&(N=w<1?-1:1),T&&!A&&(A=T<1?-1:1),{spinX:N,spinY:A,pixelX:w,pixelY:T}}function p(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function f(m){return e.params.mousewheel.thresholdDelta&&m.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Nt()-c<e.params.mousewheel.thresholdTime?!1:m.delta>=6&&Nt()-c<60?!0:(m.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",m.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",m.raw)),c=new o.Date().getTime(),!1)}function y(m){const x=e.params.mousewheel;if(m.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function b(m){let x=m,I=!0;if(!e.enabled||m.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let N=e.el;e.params.mousewheel.eventsTarget!=="container"&&(N=document.querySelector(e.params.mousewheel.eventsTarget));const A=N&&N.contains(x.target);if(!e.mouseEntered&&!A&&!k.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let w=0;const T=e.rtlTranslate?-1:1,j=d(x);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(j.pixelX)>Math.abs(j.pixelY))w=-j.pixelX*T;else return!0;else if(Math.abs(j.pixelY)>Math.abs(j.pixelX))w=-j.pixelY;else return!0;else w=Math.abs(j.pixelX)>Math.abs(j.pixelY)?-j.pixelX*T:-j.pixelY;if(w===0)return!0;k.invert&&(w=-w);let C=e.getTranslate()+w*k.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),I=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),I&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:Nt(),delta:Math.abs(w),direction:Math.sign(w),raw:m};u.length>=2&&u.shift();const E=u.length?u[u.length-1]:void 0;if(u.push(M),E?(M.direction!==E.direction||M.delta>E.delta||M.time>E.time+150)&&f(M):f(M),y(M))return!0}else{const M={time:Nt(),delta:Math.abs(w),direction:Math.sign(w)},E=r&&M.time<r.time+500&&M.delta<=r.delta&&M.direction===r.direction;if(!E){r=void 0;let V=e.getTranslate()+w*k.sensitivity;const F=e.isBeginning,O=e.isEnd;if(V>=e.minTranslate()&&(V=e.minTranslate()),V<=e.maxTranslate()&&(V=e.maxTranslate()),e.setTransition(0),e.setTranslate(V),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!O&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const D=u.length?u[u.length-1]:void 0,R=u[0];if(u.push(M),D&&(M.delta>D.delta||M.direction!==D.direction))u.splice(0);else if(u.length>=15&&M.time-R.time<500&&R.delta-M.delta>=1&&M.delta<=6){const P=w>0?.8:.2;r=M,u.splice(0),s=li(()=>{e.slideToClosest(e.params.speed,!0,void 0,P)},0)}s||(s=li(()=>{r=M,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||a("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(V===e.minTranslate()||V===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function S(m){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[m]("mouseenter",p),x[m]("mouseleave",h),x[m]("wheel",b)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!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 Ki(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(a=>{if(!i[a]&&i.auto===!0){let o=Ft(t.el,`.${n[a]}`)[0];o||(o=oi("div",n[a]),o.className=n[a],t.el.append(o)),i[a]=o,e[a]=o}}),i}function _i(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function o(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b&&b.length>1&&e.el.querySelectorAll(y).length===1?b=e.el.querySelector(y):b&&b.length===1&&(b=b[0])),y&&!b?y:b)}function s(y,b){const S=e.params.navigation;y=ze(y),y.forEach(v=>{v&&(v.classList[b?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=b),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function c(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){s(b,!1),s(y,!1);return}s(b,e.isBeginning&&!e.params.rewind),s(y,e.isEnd&&!e.params.rewind)}function r(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const y=e.params.navigation;if(e.params.navigation=Ki(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=o(y.nextEl),S=o(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:S}),b=ze(b),S=ze(S);const v=(g,m)=>{g&&g.addEventListener("click",m==="next"?u:r),!e.enabled&&g&&g.classList.add(...y.lockClass.split(" "))};b.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function p(){let{nextEl:y,prevEl:b}=e.navigation;y=ze(y),b=ze(b);const S=(v,g)=>{v.removeEventListener("click",g==="next"?u:r),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(v=>S(v,"next")),b.forEach(v=>S(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?f():(d(),c())}),n("toEdge fromEdge lock unlock",()=>{c()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=ze(y),b=ze(b),e.enabled){c();return}[...y,...b].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:S,prevEl:v}=e.navigation;S=ze(S),v=ze(v);const g=b.target;let m=v.includes(g)||S.includes(g);if(e.isElement&&!m){const x=b.path||b.composedPath&&b.composedPath();x&&(m=x.find(I=>S.includes(I)||v.includes(I)))}if(e.params.navigation.hideOnClick&&!m){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let x;S.length?x=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(x=v[0].classList.contains(e.params.navigation.hiddenClass)),a(x===!0?"navigationShow":"navigationHide"),[...S,...v].filter(I=>!!I).forEach(I=>I.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:h,disable:f,update:c,init:d,destroy:p})}function Ut(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ii(t){let{swiper:e,extendParams:i,on:n,emit:a}=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 s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(v,g){const{bulletActiveClass:m}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${m}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${m}-${g}-${g}`)))}function d(v){const g=v.target.closest(Ut(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const m=ci(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===m)return;e.slideToLoop(m)}else e.slideTo(m)}function p(){const v=e.rtl,g=e.params.pagination;if(r())return;let m=e.pagination.el;m=ze(m);let x,I;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,N=e.params.loop?Math.ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(I=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,I=e.previousSnapIndex):(I=e.previousIndex||0,x=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let w,T,j;if(g.dynamicBullets&&(s=Gi(A[0],e.isHorizontal()?"width":"height",!0),m.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${s*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&I!==void 0&&(c+=x-(I||0),c>g.dynamicMainBullets-1?c=g.dynamicMainBullets-1:c<0&&(c=0)),w=Math.max(x-c,0),T=w+(Math.min(A.length,g.dynamicMainBullets)-1),j=(T+w)/2),A.forEach(C=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();C.classList.remove(...M)}),m.length>1)A.forEach(C=>{const M=ci(C);M===x?C.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),g.dynamicBullets&&(M>=w&&M<=T&&C.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),M===w&&u(C,"prev"),M===T&&u(C,"next"))});else{const C=A[x];if(C&&C.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&A.forEach((M,E)=>{M.setAttribute("part",E===x?"bullet-active":"bullet")}),g.dynamicBullets){const M=A[w],E=A[T];for(let V=w;V<=T;V+=1)A[V]&&A[V].classList.add(...`${g.bulletActiveClass}-main`.split(" "));u(M,"prev"),u(E,"next")}}if(g.dynamicBullets){const C=Math.min(A.length,g.dynamicMainBullets+4),M=(s*C-s)/2-j*s,E=v?"right":"left";A.forEach(V=>{V.style[e.isHorizontal()?E:"top"]=`${M}px`})}}m.forEach((A,w)=>{if(g.type==="fraction"&&(A.querySelectorAll(Ut(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(x+1)}),A.querySelectorAll(Ut(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(N)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const j=(x+1)/N;let C=1,M=1;T==="horizontal"?C=j:M=j,A.querySelectorAll(Ut(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${M})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(A.innerHTML=g.renderCustom(e,x+1,N),w===0&&a("paginationRender",A)):(w===0&&a("paginationRender",A),a("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](g.lockClass)})}function h(){const v=e.params.pagination;if(r())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let m=e.pagination.el;m=ze(m);let x="";if(v.type==="bullets"){let I=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&I>g&&(I=g);for(let k=0;k<I;k+=1)v.renderBullet?x+=v.renderBullet.call(e,k,v.bulletClass):x+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?x=v.renderFraction.call(e,v.currentClass,v.totalClass):x=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?x=v.renderProgressbar.call(e,v.progressbarFillClass):x=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],m.forEach(I=>{v.type!=="custom"&&(I.innerHTML=x||""),v.type==="bullets"&&e.pagination.bullets.push(...I.querySelectorAll(Ut(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",m[0])}function f(){e.params.pagination=Ki(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(m=>Ci(m,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=ze(g),g.forEach(m=>{v.type==="bullets"&&v.clickable&&m.classList.add(...(v.clickableClass||"").split(" ")),m.classList.add(v.modifierClass+v.type),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(m.classList.add(`${v.modifierClass}${v.type}-dynamic`),c=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&m.classList.add(v.progressbarOppositeClass),v.clickable&&m.addEventListener("click",d),e.enabled||m.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(r())return;let g=e.pagination.el;g&&(g=ze(g),g.forEach(m=>{m.classList.remove(v.hiddenClass),m.classList.remove(v.modifierClass+v.type),m.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(m.classList.remove(...(v.clickableClass||"").split(" ")),m.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(m=>m.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=ze(g),g.forEach(m=>{m.classList.remove(v.horizontalClass,v.verticalClass),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(f(),h(),p())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),n("snapIndexChange",()=>{p()}),n("snapGridLengthChange",()=>{h(),p()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{p()}),n("click",(v,g)=>{const m=g.target,x=ze(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!m.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&m===e.navigation.nextEl||e.navigation.prevEl&&m===e.navigation.prevEl))return;const I=x[0].classList.contains(e.params.pagination.hiddenClass);a(I===!0?"paginationShow":"paginationHide"),x.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),f(),h(),p()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:S,render:h,update:p,init:f,destroy:y})}function po(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const o=Et();let s=!1,c=null,r=null,u,d,p,h;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:M}=e,{dragEl:E,el:V}=C,F=e.params.scrollbar,O=e.params.loop?e.progressLoop:e.progress;let D=d,R=(p-d)*O;M?(R=-R,R>0?(D=d-R,R=0):-R+d>p&&(D=p+R)):R<0?(D=d+R,R=0):R+d>p&&(D=p-R),e.isHorizontal()?(E.style.transform=`translate3d(${R}px, 0, 0)`,E.style.width=`${D}px`):(E.style.transform=`translate3d(0px, ${R}px, 0)`,E.style.height=`${D}px`),F.hide&&(clearTimeout(c),V.style.opacity=1,c=setTimeout(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3))}function y(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:M,el:E}=C;M.style.width="",M.style.height="",p=e.isHorizontal()?E.offsetWidth:E.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=p*h:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${d}px`:M.style.height=`${d}px`,h>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(C){return e.isHorizontal()?C.clientX:C.clientY}function v(C){const{scrollbar:M,rtlTranslate:E}=e,{el:V}=M;let F;F=(S(C)-Xn(V)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(p-d),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const O=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(O),e.setTranslate(O),e.updateActiveIndex(),e.updateSlidesClasses()}function g(C){const M=e.params.scrollbar,{scrollbar:E,wrapperEl:V}=e,{el:F,dragEl:O}=E;s=!0,u=C.target===O?S(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),V.style.transitionDuration="100ms",O.style.transitionDuration="100ms",v(C),clearTimeout(r),F.style.transitionDuration="0ms",M.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",C)}function m(C){const{scrollbar:M,wrapperEl:E}=e,{el:V,dragEl:F}=M;s&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),E.style.transitionDuration="0ms",V.style.transitionDuration="0ms",F.style.transitionDuration="0ms",a("scrollbarDragMove",C))}function x(C){const M=e.params.scrollbar,{scrollbar:E,wrapperEl:V}=e,{el:F}=E;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",V.style.transitionDuration=""),M.hide&&(clearTimeout(r),r=li(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",C),M.snapOnRelease&&e.slideToClosest())}function I(C){const{scrollbar:M,params:E}=e,V=M.el;if(!V)return;const F=V,O=E.passiveListeners?{passive:!1,capture:!1}:!1,D=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const R=C==="on"?"addEventListener":"removeEventListener";F[R]("pointerdown",g,O),o[R]("pointermove",m,O),o[R]("pointerup",x,D)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||I("on")}function N(){!e.params.scrollbar.el||!e.scrollbar.el||I("off")}function A(){const{scrollbar:C,el:M}=e;e.params.scrollbar=Ki(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let V;if(typeof E.el=="string"&&e.isElement&&(V=e.el.querySelector(E.el)),!V&&typeof E.el=="string"){if(V=o.querySelectorAll(E.el),!V.length)return}else V||(V=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&V.length>1&&M.querySelectorAll(E.el).length===1&&(V=M.querySelector(E.el)),V.length>0&&(V=V[0]),V.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;V&&(F=V.querySelector(Ut(e.params.scrollbar.dragClass)),F||(F=oi("div",e.params.scrollbar.dragClass),V.append(F))),Object.assign(C,{el:V,dragEl:F}),E.draggable&&k(),V&&V.classList[e.enabled?"remove":"add"](...Gt(e.params.scrollbar.lockClass))}function w(){const C=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...Gt(e.isHorizontal()?C.horizontalClass:C.verticalClass)),N()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:M}=e.scrollbar;M=ze(M),M.forEach(E=>{E.classList.remove(C.horizontalClass,C.verticalClass),E.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?j():(A(),b(),f())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{f()}),n("setTransition",(C,M)=>{y(M)}),n("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Gt(e.params.scrollbar.lockClass))}),n("destroy",()=>{w()});const T=()=>{e.el.classList.remove(...Gt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Gt(e.params.scrollbar.scrollbarDisabledClass)),A(),b(),f()},j=()=>{e.el.classList.add(...Gt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Gt(e.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(e.scrollbar,{enable:T,disable:j,updateSize:b,setTranslate:f,init:A,destroy:w})}function Ji(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null,o,s,c=new Date().getTime();function r(O){const D=a;D.length!==0&&(D.innerHTML="",D.innerHTML=O)}function u(O){O===void 0&&(O=16);const D=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,D)}function d(O){O=ze(O),O.forEach(D=>{D.setAttribute("tabIndex","0")})}function p(O){O=ze(O),O.forEach(D=>{D.setAttribute("tabIndex","-1")})}function h(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("role",D)})}function f(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("aria-roledescription",D)})}function y(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("aria-controls",D)})}function b(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("aria-label",D)})}function S(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("id",D)})}function v(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("aria-live",D)})}function g(O){O=ze(O),O.forEach(D=>{D.setAttribute("aria-disabled",!0)})}function m(O){O=ze(O),O.forEach(D=>{D.setAttribute("aria-disabled",!1)})}function x(O){if(O.keyCode!==13&&O.keyCode!==32)return;const D=e.params.a11y,R=O.target;if(!(e.pagination&&e.pagination.el&&(R===e.pagination.el||e.pagination.el.contains(O.target))&&!O.target.matches(Ut(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const P=ze(e.navigation.prevEl);ze(e.navigation.nextEl).includes(R)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(D.lastSlideMessage):r(D.nextSlideMessage)),P.includes(R)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(D.firstSlideMessage):r(D.prevSlideMessage))}e.pagination&&R.matches(Ut(e.params.pagination.bulletClass))&&R.click()}}function I(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:O,prevEl:D}=e.navigation;D&&(e.isBeginning?(g(D),p(D)):(m(D),d(D))),O&&(e.isEnd?(g(O),p(O)):(m(O),d(O)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function N(){return k()&&e.params.pagination.clickable}function A(){const O=e.params.a11y;k()&&e.pagination.bullets.forEach(D=>{e.params.pagination.clickable&&(d(D),e.params.pagination.renderBullet||(h(D,"button"),b(D,O.paginationBulletMessage.replace(/\{\{index\}\}/,ci(D)+1)))),D.matches(Ut(e.params.pagination.bulletActiveClass))?D.setAttribute("aria-current","true"):D.removeAttribute("aria-current")})}const w=(O,D,R)=>{d(O),O.tagName!=="BUTTON"&&(h(O,"button"),O.addEventListener("keydown",x)),b(O,R),y(O,D)},T=O=>{s&&s!==O.target&&!s.contains(O.target)&&(o=!0),e.a11y.clicked=!0},j=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=O=>{c=new Date().getTime()},M=O=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const D=O.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!D||!e.slides.includes(D))return;s=D;const R=e.slides.indexOf(D)===e.activeIndex,P=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(D);R||P||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(D.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(D),0),o=!1)}))},E=()=>{const O=e.params.a11y;O.itemRoleDescriptionMessage&&f(e.slides,O.itemRoleDescriptionMessage),O.slideRole&&h(e.slides,O.slideRole);const D=e.slides.length;O.slideLabelMessage&&e.slides.forEach((R,P)=>{const B=e.params.loop?parseInt(R.getAttribute("data-swiper-slide-index"),10):P,U=O.slideLabelMessage.replace(/\{\{index\}\}/,B+1).replace(/\{\{slidesLength\}\}/,D);b(R,U)})},V=()=>{const O=e.params.a11y;e.el.append(a);const D=e.el;O.containerRoleDescriptionMessage&&f(D,O.containerRoleDescriptionMessage),O.containerMessage&&b(D,O.containerMessage);const R=e.wrapperEl,P=O.id||R.getAttribute("id")||`swiper-wrapper-${u(16)}`,B=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(R,P),v(R,B),E();let{nextEl:U,prevEl:Z}=e.navigation?e.navigation:{};U=ze(U),Z=ze(Z),U&&U.forEach(te=>w(te,P,O.nextSlideMessage)),Z&&Z.forEach(te=>w(te,P,O.prevSlideMessage)),N()&&ze(e.pagination.el).forEach(ve=>{ve.addEventListener("keydown",x)}),Et().addEventListener("visibilitychange",C),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",j,!0)};function F(){a&&a.remove();let{nextEl:O,prevEl:D}=e.navigation?e.navigation:{};O=ze(O),D=ze(D),O&&O.forEach(P=>P.removeEventListener("keydown",x)),D&&D.forEach(P=>P.removeEventListener("keydown",x)),N()&&ze(e.pagination.el).forEach(B=>{B.removeEventListener("keydown",x)}),Et().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",j,!0))}n("beforeInit",()=>{a=oi("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&V()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&I()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&A()}),n("destroy",()=>{e.params.a11y.enabled&&F()})}function Pi(t){let{swiper:e,extendParams:i,on:n,emit:a,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 s,c,r=o&&o.autoplay?o.autoplay.delay:3e3,u=o&&o.autoplay?o.autoplay.delay:3e3,d,p=new Date().getTime(),h,f,y,b,S,v,g;function m(D){!e||e.destroyed||!e.wrapperEl||D.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",m),!(g||D.detail&&D.detail.bySwiperTouchMove)&&T())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(u=d,h=!1);const D=e.autoplay.paused?d:p+u-new Date().getTime();e.autoplay.timeLeft=D,a("autoplayTimeLeft",D,D/r),c=requestAnimationFrame(()=>{x()})},I=()=>{let D;return e.virtual&&e.params.virtual.enabled?D=e.slides.filter(P=>P.classList.contains("swiper-slide-active"))[0]:D=e.slides[e.activeIndex],D?parseInt(D.getAttribute("data-swiper-autoplay"),10):void 0},k=D=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),x();let R=typeof D>"u"?e.params.autoplay.delay:D;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const P=I();!Number.isNaN(P)&&P>0&&typeof D>"u"&&(R=P,r=P,u=P),d=R;const B=e.params.speed,U=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(B,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,B,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(B,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,B,!0,!0),a("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return R>0?(clearTimeout(s),s=setTimeout(()=>{U()},R)):requestAnimationFrame(()=>{U()}),R},N=()=>{p=new Date().getTime(),e.autoplay.running=!0,k(),a("autoplayStart")},A=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},w=(D,R)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),D||(v=!0);const P=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",m):T()};if(e.autoplay.paused=!0,R){S&&(d=e.params.autoplay.delay),S=!1,P();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),P())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),v?(v=!1,k(d)):k(),e.autoplay.paused=!1,a("autoplayResume"))},j=()=>{if(e.destroyed||!e.autoplay.running)return;const D=Et();D.visibilityState==="hidden"&&(v=!0,w(!0)),D.visibilityState==="visible"&&T()},C=D=>{D.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&w(!0))},M=D=>{D.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",M))},V=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",M))},F=()=>{Et().addEventListener("visibilitychange",j)},O=()=>{Et().removeEventListener("visibilitychange",j)};n("init",()=>{e.params.autoplay.enabled&&(E(),F(),N())}),n("destroy",()=>{V(),O(),e.autoplay.running&&A()}),n("_freeModeStaticRelease",()=>{(y||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?A():w(!0,!0)}),n("beforeTransitionStart",(D,R,P)=>{e.destroyed||!e.autoplay.running||(P||!e.params.autoplay.disableOnInteraction?w(!0,!0):A())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){A();return}f=!0,y=!1,v=!1,b=setTimeout(()=>{v=!0,y=!0,w(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(b),clearTimeout(s),e.params.autoplay.disableOnInteraction){y=!1,f=!1;return}y&&e.params.cssMode&&T(),y=!1,f=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:N,stop:A,pause:w,resume:T})}function mo(t){let{swiper:e,extendParams:i,emit:n,once:a}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Nt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:p,rtlTranslate:h,snapGrid:f,touchEventsData:y}=e,S=Nt()-y.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<f.length?e.slideTo(f.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(y.velocities.length>1){const A=y.velocities.pop(),w=y.velocities.pop(),T=A.position-w.position,j=A.time-w.time;e.velocity=T/j,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(j>150||Nt()-A.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,y.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let m=e.translate+g;h&&(m=-m);let x=!1,I;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let N;if(m<e.maxTranslate())d.freeMode.momentumBounce?(m+e.maxTranslate()<-k&&(m=e.maxTranslate()-k),I=e.maxTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.maxTranslate(),d.loop&&d.centeredSlides&&(N=!0);else if(m>e.minTranslate())d.freeMode.momentumBounce?(m-e.minTranslate()>k&&(m=e.minTranslate()+k),I=e.minTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.minTranslate(),d.loop&&d.centeredSlides&&(N=!0);else if(d.freeMode.sticky){let A;for(let w=0;w<f.length;w+=1)if(f[w]>-m){A=w;break}Math.abs(f[A]-m)<Math.abs(f[A-1]-m)||e.swipeDirection==="next"?m=f[A]:m=f[A-1],m=-m}if(N&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?v=Math.abs((-m-e.translate)/e.velocity):v=Math.abs((m-e.translate)/e.velocity),d.freeMode.sticky){const A=Math.abs((h?-m:m)-e.translate),w=e.slidesSizesGrid[e.activeIndex];A<w?v=d.speed:A<2*w?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&x?(e.updateProgress(I),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Yi(p,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(I),Yi(p,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(m),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Yi(p,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(m),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&n("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:s,onTouchEnd:c}})}let Qi;function fo(){const t=At(),e=Et();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function qn(){return Qi||(Qi=fo()),Qi}let $i;function ho(t){let{userAgent:e}=t===void 0?{}:t;const i=qn(),n=At(),a=n.navigator.platform,o=e||n.navigator.userAgent,s={ios:!1,android:!1},c=n.screen.width,r=n.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const p=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=a==="Win32";let y=a==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&i.touch&&b.indexOf(`${c}x${r}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),u&&!f&&(s.os="android",s.android=!0),(d||h||p)&&(s.os="ios",s.ios=!0),s}function Yn(t){return t===void 0&&(t={}),$i||($i=ho(t)),$i}let en;function Ao(){const t=At(),e=Yn();let i=!1;function n(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(n()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n(),s=o||a&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function bo(){return en||(en=Ao()),en}function go(t){let{swiper:e,on:i,emit:n}=t;const a=At();let o=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(p=>{s=a.requestAnimationFrame(()=>{const{width:h,height:f}=e;let y=h,b=f;p.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:m}=S;m&&m!==e.el||(y=g?g.width:(v[0]||v).inlineSize,b=g?g.height:(v[0]||v).blockSize)}),(y!==h||b!==f)&&c()})}),o.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},d=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function yo(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const o=[],s=At(),c=function(d,p){p===void 0&&(p={});const h=s.MutationObserver||s.WebkitMutationObserver,f=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){a("observerUpdate",y[0]);return}const b=function(){a("observerUpdate",y[0])};s.requestAnimationFrame?s.requestAnimationFrame(b):s.setTimeout(b,0)});f.observe(d,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),o.push(f)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Ci(e.hostEl);for(let p=0;p<d.length;p+=1)c(d[p])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{o.forEach(d=>{d.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",r),n("destroy",u)}var wo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const a=i?"unshift":"push";return t.split(" ").forEach(o=>{n.eventsListeners[o]||(n.eventsListeners[o]=[]),n.eventsListeners[o][a](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function a(){n.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];e.apply(n,s)}return a.__emitterProxy=e,n.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((a,o)=>{(a===e||a.__emitterProxy&&a.__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 a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];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(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(n,i)})}),t}};function So(){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(Zt(n,"padding-left")||0,10)-parseInt(Zt(n,"padding-right")||0,10),i=i-parseInt(Zt(n,"padding-top")||0,10)-parseInt(Zt(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 xo(){const t=this;function e(T,j){return parseFloat(T.getPropertyValue(t.getDirectionLabel(j))||0)}const i=t.params,{wrapperEl:n,slidesEl:a,size:o,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=Ft(a,`.${t.params.slideClass}, swiper-slide`),p=r?t.virtual.slides.length:d.length;let h=[];const f=[],y=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=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 m=i.spaceBetween,x=-b,I=0,k=0;if(typeof o>"u")return;typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*o:typeof m=="string"&&(m=parseFloat(m)),t.virtualSize=-m,d.forEach(T=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Ti(n,"--swiper-centered-offset-before",""),Ti(n,"--swiper-centered-offset-after",""));const N=i.grid&&i.grid.rows>1&&t.grid;N?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let A;const w=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<p;T+=1){A=0;let j;if(d[T]&&(j=d[T]),N&&t.grid.updateSlide(T,j,d),!(d[T]&&Zt(j,"display")==="none")){if(i.slidesPerView==="auto"){w&&(d[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(j),M=j.style.transform,E=j.style.webkitTransform;if(M&&(j.style.transform="none"),E&&(j.style.webkitTransform="none"),i.roundLengths)A=t.isHorizontal()?Gi(j,"width",!0):Gi(j,"height",!0);else{const V=e(C,"width"),F=e(C,"padding-left"),O=e(C,"padding-right"),D=e(C,"margin-left"),R=e(C,"margin-right"),P=C.getPropertyValue("box-sizing");if(P&&P==="border-box")A=V+D+R;else{const{clientWidth:B,offsetWidth:U}=j;A=V+F+O+D+R+(U-B)}}M&&(j.style.transform=M),E&&(j.style.webkitTransform=E),i.roundLengths&&(A=Math.floor(A))}else A=(o-(i.slidesPerView-1)*m)/i.slidesPerView,i.roundLengths&&(A=Math.floor(A)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${A}px`);d[T]&&(d[T].swiperSlideSize=A),y.push(A),i.centeredSlides?(x=x+A/2+I/2+m,I===0&&T!==0&&(x=x-o/2-m),T===0&&(x=x-o/2-m),Math.abs(x)<1/1e3&&(x=0),i.roundLengths&&(x=Math.floor(x)),k%i.slidesPerGroup===0&&h.push(x),f.push(x)):(i.roundLengths&&(x=Math.floor(x)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&h.push(x),f.push(x),x=x+A+m),t.virtualSize+=A+m,I=A,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+S,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+m}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+m}px`),N&&t.grid.updateWrapperSize(A,h),!i.centeredSlides){const T=[];for(let j=0;j<h.length;j+=1){let C=h[j];i.roundLengths&&(C=Math.floor(C)),h[j]<=t.virtualSize-o&&T.push(C)}h=T,Math.floor(t.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-o)}if(r&&i.loop){const T=y[0]+m;if(i.slidesPerGroup>1){const j=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let M=0;M<j;M+=1)h.push(h[h.length-1]+C)}for(let j=0;j<t.virtual.slidesBefore+t.virtual.slidesAfter;j+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+T),f.push(f[f.length-1]+T),t.virtualSize+=T}if(h.length===0&&(h=[0]),m!==0){const T=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((j,C)=>!i.cssMode||i.loop?!0:C!==d.length-1).forEach(j=>{j.style[T]=`${m}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(C=>{T+=C+(m||0)}),T-=m;const j=T-o;h=h.map(C=>C<=0?-b:C>j?j+S:C)}if(i.centerInsufficientSlides){let T=0;y.forEach(C=>{T+=C+(m||0)}),T-=m;const j=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+j<o){const C=(o-T-j)/2;h.forEach((M,E)=>{h[E]=M-C}),f.forEach((M,E)=>{f[E]=M+C})}}if(Object.assign(t,{slides:d,snapGrid:h,slidesGrid:f,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ti(n,"--swiper-centered-offset-before",`${-h[0]}px`),Ti(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],j=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+j)}if(p!==u&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,j=t.el.classList.contains(T);p<=i.maxBackfaceHiddenSlides?j||t.el.classList.add(T):j&&t.el.classList.remove(T)}}function To(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let a=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>n?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const c=e.activeIndex+o;if(c>e.slides.length&&!n)break;i.push(s(c))}else i.push(s(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const c=i[o].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function Eo(){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 Gn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Co(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:a,snapGrid:o}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<n.length;r+=1){const u=n[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=n[0].swiperSlideOffset);const p=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),h=(s-o[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),f=-(s-d),y=f+e.slidesSizesGrid[r],b=f>=0&&f<=e.size-e.slidesSizesGrid[r],S=f>=0&&f<e.size-1||y>1&&y<=e.size||f<=0&&y>=e.size;S&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),Gn(u,S,i.slideVisibleClass),Gn(u,b,i.slideFullyVisibleClass),u.progress=a?-p:p,u.originalProgress=a?-h:h}}function ko(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:o,isEnd:s,progressLoop:c}=e;const r=o,u=s;if(n===0)a=0,o=!0,s=!0;else{a=(t-e.minTranslate())/n;const d=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;o=d||a<=0,s=p||a>=1,d&&(a=0),p&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[d],f=e.slidesGrid[p],y=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=h?c=(b-h)/y:c=(b+y-f)/y,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:o,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!o||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const tn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Io(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:a}=t,o=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=p=>Ft(n,`.${i.slideClass}${p}, swiper-slide${p}`)[0];let r,u,d;if(o)if(i.loop){let p=a-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${p}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(p=>p.column===a)[0],d=e.filter(p=>p.column===a+1)[0],u=e.filter(p=>p.column===a-1)[0]):r=e[a];r&&(s||(d=vo(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=uo(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(p=>{tn(p,p===r,i.slideActiveClass),tn(p,p===d,i.slideNextClass),tn(p,p===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Oi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let a=n.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(n.shadowRoot?a=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(a=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},nn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},ln=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+n+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&nn(t,u)});return}const o=a+n-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=o+e;s+=1){const c=(s%i+i)%i;(c<a||c>o)&&nn(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(o+e,i-1);s+=1)s!==a&&(s>o||s<a)&&nn(t,s)};function Po(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let a;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?a=o:n>=e[o]&&n<e[o+1]&&(a=o+1):n>=e[o]&&(a=o);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Oo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:a,activeIndex:o,realIndex:s,snapIndex:c}=e;let r=t,u;const d=f=>{let y=f-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof r>"u"&&(r=Po(e)),n.indexOf(i)>=0)u=n.indexOf(i);else{const f=Math.min(a.slidesPerGroupSkip,r);u=f+Math.floor((r-f)/a.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),r===o&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const p=e.grid&&a.grid&&a.grid.rows>1;let h;if(e.virtual&&a.virtual.enabled&&a.loop)h=d(r);else if(p){const f=e.slides.filter(b=>b.column===r)[0];let y=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(f),0)),h=Math.floor(y/a.grid.rows)}else if(e.slides[r]){const f=e.slides[r].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=r}else h=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:h,previousIndex:o,activeIndex:r}),e.initialized&&ln(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function Mo(t,e){const i=this,n=i.params;let a=t.closest(`.${n.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${n.slideClass}, swiper-slide`)&&(a=c)});let o=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){o=!0,s=c;break}}if(a&&o)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Lo={updateSize:So,updateSlides:xo,updateAutoHeight:To,updateSlidesOffset:Eo,updateSlidesProgress:Co,updateProgress:ko,updateSlidesClasses:Io,updateActiveIndex:Oo,updateClickedSlide:Mo};function jo(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:a,wrapperEl:o}=e;if(i.virtualTranslate)return n?-a:a;if(i.cssMode)return a;let s=ro(o,t);return s+=e.cssOverflowAdjustment(),n&&(s=-s),s||0}function No(t,e){const i=this,{rtlTranslate:n,params:a,wrapperEl:o,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=n?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const p=i.maxTranslate()-i.minTranslate();p===0?d=0:d=(t-i.minTranslate())/p,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Ro(){return-this.snapGrid[0]}function Do(){return-this.snapGrid[this.snapGrid.length-1]}function Vo(t,e,i,n,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const o=this,{params:s,wrapperEl:c}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const r=o.minTranslate(),u=o.maxTranslate();let d;if(n&&t>r?d=r:n&&t<u?d=u:d=t,o.updateProgress(d),s.cssMode){const p=o.isHorizontal();if(e===0)c[p?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Un({swiper:o,targetPosition:-d,side:p?"left":"top"}),!0;c.scrollTo({[p?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(h){!o||o.destroyed||h.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 Bo={getTranslate:jo,setTranslate:No,minTranslate:Ro,maxTranslate:Do,translateTo:Vo};function Fo(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 Zn(t){let{swiper:e,runCallbacks:i,direction:n,step:a}=t;const{activeIndex:o,previousIndex:s}=e;let c=n;if(c||(o>s?c="next":o<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&o!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function Wo(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Zn({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function zo(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Zn({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Ho={setTransition:Fo,transitionStart:Wo,transitionEnd:zo};function Uo(t,e,i,n,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:p,rtlTranslate:h,wrapperEl:f,enabled:y}=o;if(!y&&!n&&!a||o.destroyed||o.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const b=Math.min(o.params.slidesPerGroupSkip,s);let S=b+Math.floor((s-b)/o.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const v=-r[S];if(c.normalizeSlideIndex)for(let m=0;m<u.length;m+=1){const x=-Math.floor(v*100),I=Math.floor(u[m]*100),k=Math.floor(u[m+1]*100);typeof u[m+1]<"u"?x>=I&&x<k-(k-I)/2?s=m:x>=I&&x<k&&(s=m+1):x>=I&&(s=m)}if(o.initialized&&s!==p&&(!o.allowSlideNext&&(h?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate())||!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(p||0)!==s))return!1;s!==(d||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(v);let g;if(s>p?g="next":s<p?g="prev":g="reset",h&&-v===o.translate||!h&&v===o.translate)return o.updateActiveIndex(s),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),c.effect!=="slide"&&o.setTranslate(v),g!=="reset"&&(o.transitionStart(i,g),o.transitionEnd(i,g)),!1;if(c.cssMode){const m=o.isHorizontal(),x=h?v:-v;if(e===0){const I=o.virtual&&o.params.virtual.enabled;I&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),I&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[m?"scrollLeft":"scrollTop"]=x})):f[m?"scrollLeft":"scrollTop"]=x,I&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Un({swiper:o,targetPosition:x,side:m?"left":"top"}),!0;f.scrollTo({[m?"left":"top"]:x,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(v),o.updateActiveIndex(s),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(x){!o||o.destroyed||x.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 Xo(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const o=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(o){const h=s*a.params.grid.rows;c=a.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else c=a.getSlideIndexByData(s);const r=o?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let p=r-c<d;if(u&&(p=p||c<Math.ceil(d/2)),n&&u&&a.params.slidesPerView!=="auto"&&!o&&(p=!1),p){const h=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?c+1:c-r+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(o){const h=s*a.params.grid.rows;s=a.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,n)}),a}function qo(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:a,params:o,animating:s}=n;if(!a||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let c=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(c=Math.max(n.slidesPerViewDynamic("current",!0),1));const r=n.activeIndex<o.slidesPerGroupSkip?1:c,u=n.virtual&&o.virtual.enabled;if(o.loop){if(s&&!u&&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+r,t,e,i)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+r,t,e,i)}function Yo(t,e,i){e===void 0&&(e=!0);const n=this,{params:a,snapGrid:o,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=n;if(!r||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const d=n.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const p=c?n.translate:-n.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const f=h(p),y=o.map(v=>h(v));let b=o[y.indexOf(f)-1];if(typeof b>"u"&&a.cssMode){let v;o.forEach((g,m)=>{f>=g&&(v=m)}),typeof v<"u"&&(b=o[v>0?v-1:v])}let S=0;if(typeof b<"u"&&(S=s.indexOf(b),S<0&&(S=n.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(a.loop&&n.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,t,e,i)}),!0;return n.slideTo(S,t,e,i)}function Go(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 Zo(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let o=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,o),c=s+Math.floor((o-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*n&&(o+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*n&&(o-=a.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,a.slidesGrid.length-1),a.slideTo(o,t,e,i)}function Ko(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,o;const s=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?a<t.loopedSlides-n/2||a>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),a=t.getSlideIndex(Ft(i,`${s}[data-swiper-slide-index="${o}"]`)[0]),li(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-n?(t.loopFix(),a=t.getSlideIndex(Ft(i,`${s}[data-swiper-slide-index="${o}"]`)[0]),li(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var _o={slideTo:Uo,slideToLoop:Xo,slideNext:qo,slidePrev:Yo,slideReset:Go,slideToClosest:Zo,slideToClickedSlide:Ko};function Jo(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{Ft(n,`.${i.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},o=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(o?i.grid.rows:1),c=e.slides.length%s!==0,r=o&&e.slides.length%i.grid.rows!==0,u=d=>{for(let p=0;p<d;p+=1){const h=e.isElement?oi("swiper-slide",[i.slideBlankClass]):oi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else Ei("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else Ei("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Qo(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:a,activeSlideIndex:o,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:f}=r,{centeredSlides:y}=f;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&f.virtual.enabled){i&&(!f.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):f.centeredSlides&&r.snapIndex<f.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=p,r.emit("loopFix");return}let b=f.slidesPerView;b==="auto"?b=r.slidesPerViewDynamic():(b=Math.ceil(parseFloat(f.slidesPerView,10)),y&&b%2===0&&(b=b+1));const S=f.slidesPerGroupAuto?b:f.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=f.loopAdditionalSlides,r.loopedSlides=v;const g=r.grid&&f.grid&&f.grid.rows>1;u.length<b+v?Ei("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&&f.grid.fill==="row"&&Ei("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const m=[],x=[];let I=r.activeIndex;typeof o>"u"?o=r.getSlideIndex(u.filter(M=>M.classList.contains(f.slideActiveClass))[0]):I=o;const k=n==="next"||!n,N=n==="prev"||!n;let A=0,w=0;const T=g?Math.ceil(u.length/f.grid.rows):u.length,C=(g?u[o].column:o)+(y&&typeof a>"u"?-b/2+.5:0);if(C<v){A=Math.max(v-C,S);for(let M=0;M<v-C;M+=1){const E=M-Math.floor(M/T)*T;if(g){const V=T-E-1;for(let F=u.length-1;F>=0;F-=1)u[F].column===V&&m.push(F)}else m.push(T-E-1)}}else if(C+b>T-v){w=Math.max(C-(T-v*2),S);for(let M=0;M<w;M+=1){const E=M-Math.floor(M/T)*T;g?u.forEach((V,F)=>{V.column===E&&x.push(F)}):x.push(E)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),N&&m.forEach(M=>{u[M].swiperLoopMoveDOM=!0,h.prepend(u[M]),u[M].swiperLoopMoveDOM=!1}),k&&x.forEach(M=>{u[M].swiperLoopMoveDOM=!0,h.append(u[M]),u[M].swiperLoopMoveDOM=!1}),r.recalcSlides(),f.slidesPerView==="auto"?r.updateSlides():g&&(m.length>0&&N||x.length>0&&k)&&r.slides.forEach((M,E)=>{r.grid.updateSlide(E,M,r.slides)}),f.watchSlidesProgress&&r.updateSlidesOffset(),i){if(m.length>0&&N){if(typeof e>"u"){const M=r.slidesGrid[I],V=r.slidesGrid[I+A]-M;c?r.setTranslate(r.translate-V):(r.slideTo(I+Math.ceil(A),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-V,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-V))}else if(a){const M=g?m.length/f.grid.rows:m.length;r.slideTo(r.activeIndex+M,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(x.length>0&&k)if(typeof e>"u"){const M=r.slidesGrid[I],V=r.slidesGrid[I-w]-M;c?r.setTranslate(r.translate-V):(r.slideTo(I-w,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-V,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-V))}else{const M=g?x.length/f.grid.rows:x.length;r.slideTo(r.activeIndex-M,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=p,r.controller&&r.controller.control&&!s){const M={slideRealIndex:e,direction:n,setTranslate:a,activeSlideIndex:o,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...M,slideTo:E.params.slidesPerView===f.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...M,slideTo:r.controller.control.params.slidesPerView===f.slidesPerView?i:!1})}r.emit("loopFix")}function $o(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(a=>{const o=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;n[o]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),n.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ea={loopCreate:Jo,loopFix:Qo,loopDestroy:$o};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 ia(){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 na={setGrabCursor:ta,unsetGrabCursor:ia};function la(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Et()||n===At())return null;n.assignedSlot&&(n=n.assignedSlot);const a=n.closest(t);return!a&&!n.getRootNode?null:a||i(n.getRootNode().host)}return i(e)}function Kn(t,e,i){const n=At(),{params:a}=t,o=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return o&&(i<=s||i>=n.innerWidth-s)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function oa(t){const e=this,i=Et();let n=t;n.originalEvent&&(n=n.originalEvent);const a=e.touchEventsData;if(n.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==n.pointerId)return;a.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(a.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Kn(e,n,n.targetTouches[0].pageX);return}const{params:o,touches:s,enabled:c}=e;if(!c||!o.simulateTouch&&n.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let r=n.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in n&&n.which===3||"button"in n&&n.button>0||a.isTouched&&a.isMoved)return;const u=!!o.noSwipingClass&&o.noSwipingClass!=="",d=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&d&&(r=d[0]);const p=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(h?la(p,r):r.closest(p))){e.allowClick=!0;return}if(o.swipeHandler&&!r.closest(o.swipeHandler))return;s.currentX=n.pageX,s.currentY=n.pageY;const f=s.currentX,y=s.currentY;if(!Kn(e,n,f))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=f,s.startY=y,a.touchStartTime=Nt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(a.allowThresholdMove=!1);let b=!0;r.matches(a.focusableElements)&&(b=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const S=b&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||S)&&!r.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function aa(t){const e=Et(),i=this,n=i.touchEventsData,{params:a,touches:o,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(n.touchId!==null||r.pointerId!==n.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(k=>k.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=r;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,p=u.pageY;if(r.preventedByNestedSwiper){o.startX=d,o.startY=p;return}if(!i.allowTouchMove){r.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:d,startY:p,currentX:d,currentY:p}),n.touchStartTime=Nt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(p<o.startY&&i.translate<=i.maxTranslate()||p>o.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(d<o.startX&&i.translate<=i.maxTranslate()||d>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",r),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=p;const h=o.currentX-o.startX,f=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let k;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:h*h+f*f>=25&&(k=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?k>a.touchAngle:90-k>a.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",r),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||r.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let y=i.isHorizontal()?h:f,b=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;a.oneWayMovement&&(y=Math.abs(y)*(s?1:-1),b=Math.abs(b)*(s?1:-1)),o.diff=y,y*=a.touchRatio,s&&(y=-y,b=-b);const S=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const v=i.params.loop&&!a.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(k)}n.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let m;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(o,{startX:d,startY:p,currentX:d,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",r),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let x=!0,I=a.resistanceRatio;if(a.touchReleaseOnEdges&&(I=0),y>0?(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(x=!1,a.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**I))):y<0&&(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(x=!1,a.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**I))),x&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(y)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,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}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function sa(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let a;if(n.type==="touchend"||n.type==="touchcancel"){if(a=[...n.changedTouches].filter(I=>I.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;a=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const p=Nt(),h=p-i.touchStartTime;if(e.allowClick){const I=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(I&&I[0]||n.target,I),e.emit("tap click",n),h<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Nt(),li(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let f;if(s.followFinger?f=r?e.translate:-e.translate:f=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const y=f>=-e.maxTranslate()&&!e.params.loop;let b=0,S=e.slidesSizesGrid[0];for(let I=0;I<u.length;I+=I<s.slidesPerGroupSkip?1:s.slidesPerGroup){const k=I<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[I+k]<"u"?(y||f>=u[I]&&f<u[I+k])&&(b=I,S=u[I+k]-u[I]):(y||f>=u[I])&&(b=I,S=u[u.length-1]-u[u.length-2])}let v=null,g=null;s.rewind&&(e.isBeginning?g=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const m=(f-u[b])/S,x=b<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:b+x):e.slideTo(b)),e.swipeDirection==="prev"&&(m>1-s.longSwipesRatio?e.slideTo(b+x):g!==null&&m<0&&Math.abs(m)>s.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+x):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:b+x),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function _n(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:a,snapGrid:o}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function ra(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function da(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const o=t.maxTranslate()-t.minTranslate();o===0?a=0:a=(t.translate-t.minTranslate())/o,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ca(t){const e=this;Oi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ua(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Jn=(t,e)=>{const i=Et(),{params:n,el:a,wrapperEl:o,device:s}=t,c=!!n.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&a[r]("click",t.onClick,!0),n.cssMode&&o[r]("scroll",t.onScroll),n.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",_n,!0):t[u]("observerUpdate",_n,!0),a[r]("load",t.onLoad,{capture:!0}))};function va(){const t=this,{params:e}=t;t.onTouchStart=oa.bind(t),t.onTouchMove=aa.bind(t),t.onTouchEnd=sa.bind(t),t.onDocumentTouchStart=ua.bind(t),e.cssMode&&(t.onScroll=da.bind(t)),t.onClick=ra.bind(t),t.onLoad=ca.bind(t),Jn(t,"on")}function pa(){Jn(this,"off")}var ma={attachEvents:va,detachEvents:pa};const Qn=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function fa(){const t=this,{realIndex:e,initialized:i,params:n,el:a}=t,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in o?o[s]:void 0)||t.originalParams,u=Qn(t,n),d=Qn(t,r),p=t.params.grabCursor,h=r.grabCursor,f=n.enabled;u&&!d?(a.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${n.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&n.grid.fill==="column")&&a.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!h?t.unsetGrabCursor():!p&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof r[m]>"u")return;const x=n[m]&&n[m].enabled,I=r[m]&&r[m].enabled;x&&!I&&t[m].disable(),!x&&I&&t[m].enable()});const y=r.direction&&r.direction!==n.direction,b=n.loop&&(r.slidesPerView!==n.slidesPerView||y),S=n.loop;y&&i&&t.changeDirection(),Pt(t.params,r);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!v?t.disable():!f&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(b?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",r)}function ha(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const a=At(),o=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:o*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(n=r):u<=i.clientWidth&&(n=r)}return n||"max"}var Aa={setBreakpoint:fa,getBreakpoint:ha};function ba(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(a=>{n[a]&&i.push(e+a)}):typeof n=="string"&&i.push(e+n)}),i}function ga(){const t=this,{classNames:e,params:i,rtl:n,el:a,device:o}=t,s=ba(["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(...s),a.classList.add(...e),t.emitContainerClasses()}function ya(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var wa={addClasses:ga,removeClasses:ya};function Sa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const a=t.slides.length-1,o=t.slidesGrid[a]+t.slidesSizesGrid[a]+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 xa={checkOverflow:Sa},on={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 Ta(t,e){return function(n){n===void 0&&(n={});const a=Object.keys(n)[0],o=n[a];if(typeof o!="object"||o===null){Pt(e,n);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in o)){Pt(e,n);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Pt(e,n)}}const an={eventsEmitter:wo,update:Lo,translate:Bo,transition:Ho,slide:_o,loop:ea,grabCursor:na,events:ma,breakpoints:Aa,checkOverflow:xa,classes:wa},sn={};let rn=class Xt{constructor(){let e,i;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=Pt({},i),e&&!i.el&&(i.el=e);const s=Et();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(p=>{const h=Pt({},i,{el:p});d.push(new Xt(h))}),d}const c=this;c.__swiper__=!0,c.support=qn(),c.device=Yn({userAgent:i.userAgent}),c.browser=bo(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:Ta(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=Pt({},on,r);return c.params=Pt({},u,sn,i),c.originalParams=Pt({},c.params),c.passedParams=Pt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,a=Ft(i,`.${n.slideClass}, swiper-slide`),o=ci(a[0]);return ci(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=Ft(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const a=n.minTranslate(),s=(n.maxTranslate()-a)*e+a;n.translateTo(s,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const a=e.getSlideClasses(n);i.push({slideEl:n,classNames:a}),e.emit("_slideClass",n,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:a,slides:o,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=n;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let p=o[u]?Math.ceil(o[u].swiperSlideSize):0,h;for(let f=u+1;f<o.length;f+=1)o[f]&&!h&&(p+=Math.ceil(o[f].swiperSlideSize),d+=1,p>r&&(h=!0));for(let f=u-1;f>=0;f-=1)o[f]&&!h&&(p+=o[f].swiperSlideSize,d+=1,p>r&&(h=!0))}else if(e==="current")for(let p=u+1;p<o.length;p+=1)(i?s[p]+c[p]-s[u]<r:s[p]-s[u]<r)&&(d+=1);else for(let p=u-1;p>=0;p-=1)s[u]-s[p]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Oi(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)a(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const s=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(s.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||a()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,a=n.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${a}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(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 a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(a()):Ft(n,a())[0];return!s&&i.params.createElements&&(s=oi("div",i.params.wrapperClass),n.append(s),Ft(n,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:n,wrapperEl:s,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Zt(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Zt(n,"direction")==="rtl"),wrongRTL:Zt(s,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(o=>{o.complete?Oi(i,o):o.addEventListener("load",s=>{Oi(i,s.target)})}),ln(i),i.initialized=!0,ln(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:a,el:o,wrapperEl:s,slides:c}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),a.loop&&n.loopDestroy(),i&&(n.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(r=>{n.off(r)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),ao(n)),n.destroyed=!0),null}static extendDefaults(e){Pt(sn,e)}static get extendedDefaults(){return sn}static get defaults(){return on}static installModule(e){Xt.prototype.__modules__||(Xt.prototype.__modules__=[]);const i=Xt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Xt.installModule(i)),Xt):(Xt.installModule(e),Xt)}};Object.keys(an).forEach(t=>{Object.keys(an[t]).forEach(e=>{rn.prototype[e]=an[t][e]})}),rn.use([go,yo]);const $n=["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 ei(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ai(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]:ei(e[n])&&ei(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:ai(t[n],e[n]):t[n]=e[n]})}function el(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function tl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function il(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function nl(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 Ea(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ca(t){let{swiper:e,slides:i,passedParams:n,changedParams:a,nextEl:o,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:d,pagination:p,navigation:h,scrollbar:f,virtual:y,thumbs:b}=e;let S,v,g,m,x,I,k,N;a.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),a.includes("controller")&&n.controller&&n.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&n.pagination&&(n.pagination.el||r)&&(d.pagination||d.pagination===!1)&&p&&!p.el&&(g=!0),a.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&f&&!f.el&&(m=!0),a.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||o)&&(d.navigation||d.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(x=!0);const A=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),d[w].prevEl=void 0,d[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),d[w].el=void 0,e[w].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!n.loop?I=!0:!d.loop&&n.loop?k=!0:N=!0),u.forEach(w=>{if(ei(d[w])&&ei(n[w]))Object.assign(d[w],n[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in n[w]&&!n[w].enabled&&A(w);else{const T=n[w];(T===!0||T===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?T===!1&&A(w):d[w]=n[w]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&y&&d.virtual.enabled?(y.slides=i,y.update(!0)):a.includes("virtual")&&y&&d.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),a.includes("children")&&i&&d.loop&&(N=!0),S&&b.init()&&b.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),p.init(),p.render(),p.update()),m&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),f.init(),f.updateSize(),f.setTranslate()),x&&(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)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),o&&(d.navigation.nextEl=o),s&&(d.navigation.prevEl=s),h.init(),h.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),a.includes("direction")&&e.changeDirection(n.direction,!1),(I||N)&&e.loopDestroy(),(k||N)&&e.loopCreate(),e.update()}function ka(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},a={};ai(i,on),i._emitClasses=!0,i.init=!1;const o={},s=$n.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?ei(t[r])?(i[r]={},a[r]={},ai(i[r],t[r]),ai(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?n[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:o[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:o,events:n}}function Ia(t,e){let{el:i,nextEl:n,prevEl:a,paginationEl:o,scrollbarEl:s,swiper:c}=t;el(e)&&n&&a&&(c.params.navigation.nextEl=n,c.originalParams.navigation.nextEl=n,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),tl(e)&&o&&(c.params.pagination.el=o,c.originalParams.pagination.el=o),il(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Pa(t,e,i,n,a){const o=[];if(!e)return o;const s=r=>{o.indexOf(r)<0&&o.push(r)};if(i&&n){const r=n.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),n.length!==i.length&&s("children")}return $n.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(ei(t[r])&&ei(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(p=>{t[r][p]!==e[r][p]&&s(r)}),d.forEach(p=>{t[r][p]!==e[r][p]&&s(r)}))}else t[r]!==e[r]&&s(r)}),o}const Oa=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 Mi(){return Mi=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},Mi.apply(this,arguments)}function ll(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ol(t){const e=[];return l.Children.toArray(t).forEach(i=>{ll(i)?e.push(i):i.props&&i.props.children&&ol(i.props.children).forEach(n=>e.push(n))}),e}function Ma(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return l.Children.toArray(t).forEach(n=>{if(ll(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const a=ol(n.props.children);a.length>0?a.forEach(o=>e.push(o)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function La(t,e,i){if(!i)return null;const n=d=>{let p=d;return d<0?p=e.length+d:p>=e.length&&(p=p-e.length),p},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=o&&d<=s&&u.push(e[n(d)]);return u.map((d,p)=>l.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${p}`}))}function ui(t,e){return typeof window>"u"?l.useEffect(t,e):l.useLayoutEffect(t,e)}const dn=l.createContext(null),cn=()=>l.useContext(dn),ja=l.createContext(null),ti=l.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:a="div",children:o,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=l.useState("swiper"),[p,h]=l.useState(null),[f,y]=l.useState(!1),b=l.useRef(!1),S=l.useRef(null),v=l.useRef(null),g=l.useRef(null),m=l.useRef(null),x=l.useRef(null),I=l.useRef(null),k=l.useRef(null),N=l.useRef(null),{params:A,passedParams:w,rest:T,events:j}=ka(c),{slides:C,slots:M}=Ma(o),E=()=>{y(!f)};Object.assign(A.on,{_containerClasses(R,P){d(P)}});const V=()=>{Object.assign(A.on,j),r=!0;const R={...A};if(delete R.wrapperClass,v.current=new rn(R),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const P={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};ai(v.current.params.virtual,P),ai(v.current.originalParams.virtual,P)}};S.current||V(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{r||!j||!v.current||Object.keys(j).forEach(R=>{v.current.on(R,j[R])})},O=()=>{!j||!v.current||Object.keys(j).forEach(R=>{v.current.off(R,j[R])})};l.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),l.useEffect(()=>{!b.current&&v.current&&(v.current.emitSlidesClasses(),b.current=!0)}),ui(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&V(),Ia({el:S.current,nextEl:x.current,prevEl:I.current,paginationEl:k.current,scrollbarEl:N.current,swiper:v.current},A),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),ui(()=>{F();const R=Pa(w,g.current,C,m.current,P=>P.key);return g.current=w,m.current=C,R.length&&v.current&&!v.current.destroyed&&Ca({swiper:v.current,slides:C,passedParams:w,changedParams:R,nextEl:x.current,prevEl:I.current,scrollbarEl:N.current,paginationEl:k.current}),()=>{O()}}),ui(()=>{Oa(v.current)},[p]);function D(){return A.virtual?La(v.current,C,p):C.map((R,P)=>l.cloneElement(R,{swiper:v.current,swiperSlideIndex:P}))}return l.createElement(n,Mi({ref:S,className:nl(`${u}${i?` ${i}`:""}`)},T),l.createElement(ja.Provider,{value:v.current},M["container-start"],l.createElement(a,{className:Ea(A.wrapperClass)},M["wrapper-start"],D(),M["wrapper-end"]),el(A)&&l.createElement(l.Fragment,null,l.createElement("div",{ref:I,className:"swiper-button-prev"}),l.createElement("div",{ref:x,className:"swiper-button-next"})),il(A)&&l.createElement("div",{ref:N,className:"swiper-scrollbar"}),tl(A)&&l.createElement("div",{ref:k,className:"swiper-pagination"}),M["container-end"]))});ti.displayName="Swiper";const Bt=l.forwardRef(function(t,e){let{tag:i="div",children:n,className:a="",swiper:o,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const p=l.useRef(null),[h,f]=l.useState("swiper-slide"),[y,b]=l.useState(!1);function S(x,I,k){I===p.current&&f(k)}ui(()=>{if(typeof u<"u"&&(p.current.swiperSlideIndex=u),e&&(e.current=p.current),!(!p.current||!o)){if(o.destroyed){h!=="swiper-slide"&&f("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),ui(()=>{o&&p.current&&!o.destroyed&&f(o.getSlideClasses(p.current))},[o]);const v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(v):n,m=()=>{b(!0)};return l.createElement(i,Mi({ref:p,className:nl(`${h}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:m},d),s&&l.createElement(dn.Provider,{value:v},l.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},g(),c&&!y&&l.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&l.createElement(dn.Provider,{value:v},g(),c&&!y&&l.createElement("div",{className:"swiper-lazy-preloader"})))});Bt.displayName="SwiperSlide";const Na="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Ra=({visible:t,onClose:e,children:i,modalStyle:n,padding:a,popup:o,schema:s,fullHeight:c=window.innerHeight,isFullScreen:r=!1,openState:u})=>{var d,p,h,f,y,b,S,v,g,m,x,I,k,N,A,w,T,j,C,M,E,V,F,O;const D=l.useRef(null),R=l.useRef(null),P=l.useRef(null),B=l.useRef(null),U=l.useRef(null),Z=c*.2,Q=r?c:c*.8,[te,ve]=l.useState(Z),[he,ie]=l.useState(!1),Me=l.useRef(null),{globalConfig:Re,popupDetailData:We}=Ve(),{schema:Y,popup:K}=Yt(),[Ae,ge]=l.useState(15);l.useEffect(()=>{const G=document.getElementById("sxp-render"),X=document.getElementById("pb-modal");X?Me.current=X:(Me.current=document.createElement("div"),Me.current.setAttribute("id","pb-modal"),G?.appendChild(Me.current))},[]);const ye=l.useMemo(()=>o?.id&&o?.id!==""||t,[t,o]),se=l.useMemo(()=>{var G,X,le;const oe=s??Y;return(le=(X=(G=oe?.sxpPageConf)===null||G===void 0?void 0:G.globalConfig)===null||X===void 0?void 0:X.popupList)===null||le===void 0?void 0:le.find(Pe=>Pe?.id===o?.id)},[o,s,Y]),je=l.useMemo(()=>{var G,X;return((X=(G=se?.item)===null||G===void 0?void 0:G.event)===null||X===void 0?void 0:X.isScrollFullScreen)||!1},[se]);l.useEffect(()=>{ye?ie(!0):setTimeout(()=>{ie(!1),ve(Z)},o?.duration)},[ye,o]);const He=l.useCallback(()=>i,[K,u,Re,s]);if(l.useEffect(()=>{const G=X=>{var le=X?.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])'),oe=le?.[0],pe=le?.[le?.length-1],Pe=9;X.addEventListener("keydown",function(Ge){(Ge.key==="Escape"||Ge.key==="Esc")&&(Fe(),Ge.preventDefault());var ne=Ge.key==="Tab"||Ge.keyCode===Pe;ne&&(Ge.shiftKey?document?.activeElement===oe&&(pe?.focus(),Ge.preventDefault()):document?.activeElement===pe&&(oe?.focus(),Ge.preventDefault()))}),oe?.focus()};return U?.current&&G(U?.current),()=>{var X;(X=U?.current)===null||X===void 0||X.removeEventListener("keydown",G)}},[U,he,K]),!Me.current)return null;const Fe=at.debounce(()=>{e?.()},300),Ye=G=>{D.current=G.touches[0],R.current=G.touches[0],P.current=!0},_e=G=>{requestAnimationFrame(()=>{var X;if(P.current&&((X=B?.current)===null||X===void 0?void 0:X.scrollTop)===0){const le=G.touches[0].clientY,oe=G.touches[0].clientX,pe=D.current.clientY-le;D.current=G.touches[0];const Pe=le-R.current.clientY,Ge=oe-R.current.clientX;if(Math.abs(Ge)>Math.abs(Pe))return;const ne=te-pe;ne>0&&ve(ne)}})},Se=G=>{var X;if(P.current&&((X=B?.current)===null||X===void 0?void 0:X.scrollTop)===0){const le=G.changedTouches[0].clientY-R.current.clientY,oe=G.changedTouches[0].clientX-R.current.clientX;if(Math.abs(oe)>Math.abs(le))return;const pe=R.current.clientY-D.current.clientY;pe>0?ve(0):te<Z&&pe<0?ve(Z):te>=Z&&pe<0&&e?.()}P.current=!1};return wn.createPortal(l.createElement(l.Fragment,null,he&&l.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:ye?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:Fe},l.createElement("div",{style:{position:"relative",left:`${(f=(h=(p=(d=se?.item)===null||d===void 0?void 0:d.props)===null||p===void 0?void 0:p.popupBg)===null||h===void 0?void 0:h.horizontalMargin)!==null&&f!==void 0?f:0}px`,right:`${(v=(S=(b=(y=se?.item)===null||y===void 0?void 0:y.props)===null||b===void 0?void 0:b.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${(I=(x=(m=(g=se?.item)===null||g===void 0?void 0:g.props)===null||m===void 0?void 0:m.popupBg)===null||x===void 0?void 0:x.bottomMargin)!==null&&I!==void 0?I:0}px`,overflow:"hidden",width:`calc(100% - ${((w=(A=(N=(k=se?.item)===null||k===void 0?void 0:k.props)===null||N===void 0?void 0:N.popupBg)===null||A===void 0?void 0:A.horizontalMargin)!==null&&w!==void 0?w:0)*2}px)`,height:"100%"}},l.createElement("div",Object.assign({ref:U,className:`modal-container ${ye?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=se?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:a,animationDuration:((j=o?.duration)!==null&&j!==void 0?j:0)/1e3+"s"},je&&{transform:`translateY(${te}px)`}),{overflow:"hidden",borderRadius:`${(V=(E=(M=(C=se?.item)===null||C===void 0?void 0:C.props)===null||M===void 0?void 0:M.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&V!==void 0?V:0}px`,zIndex:9}),onClick:G=>{G.stopPropagation(),G.preventDefault()}},je&&{onTouchMove:_e,onTouchStart:Ye,onTouchEnd:Se}),l.createElement("div",Object.assign({id:"modal-content",ref:B,style:{height:je?c:Q,overflow:je&&te<=0||!je?"auto":"hidden",zIndex:1}},((O=(F=se?.item)===null||F===void 0?void 0:F.props)===null||O===void 0?void 0:O.enableFixedCloseButton)&&{onScroll:G=>{var X;ge(15-((X=G?.target)===null||X===void 0?void 0:X.scrollTop))}}),He()),l.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ae}},l.createElement("img",{src:Re?.popupCloseIcon||Na,alt:"close button",className:"modal-icon"})))))),Me.current)};var si=l.memo(Ra);const Da=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),a=[];for(let s=0;s<n.length&&(a.push(n[s]),!(a.join(" ").length>=e));s++);return(a.length>1&&a.length<n.length?a.slice(0,a.length-1):a).join(" ")+" "},Va=({text:t,maxStr:e=108,style:i,className:n,onClick:a,foldText:o,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=l.useState(!1),[p,h]=l.useState(!1),f=Number(i?.lineClamp||2),y=l.useRef(null),b=l.useRef(null),S=l.useCallback(()=>{d(!u)},[u,r]);return l.useMemo(()=>!u&&t.length>e?Da(t,e)+"...":t,[t,e,u]),l.useEffect(()=>{var v,g;b?.current&&(b.current.style.display="block"),((v=b?.current)===null||v===void 0?void 0:v.offsetHeight)>((g=y?.current)===null||g===void 0?void 0:g.offsetHeight)&&c?h(!0):h(!1),b.current.style.display="none"},[c,t]),l.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},l.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!c||u?"":f,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:Ie(t?.replace(/\n/g,"</br>"),i)}}),l.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:Ie(t?.replace(/\n/g,"</br>"),i)}}),t&&c&&p&&l.createElement("button",{"aria-label":u?s||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??S,dangerouslySetInnerHTML:{__html:Ie(u?s||"show less":o||"show more",i)}}))};var Li=l.memo(Va);const Ba=l.forwardRef((t,e)=>{const{src:i,onLoad:n,style:a,className:o,loading:s,alt:c="image"}=t,[r,u]=l.useState(i),d=l.useRef(null),[p,h]=l.useState(!1);return l.useImperativeHandle(e,()=>({setSrc:f=>{f&&u(f)}})),l.useEffect(()=>{i&&u(i)},[i]),l.useEffect(()=>{const f=()=>{i&&!p&&d.current&&(d.current.src="",d.current.src=i)};return ut.on(rt.PAGE_DID_SHOW,f),()=>{ut.off(rt.PAGE_DID_SHOW,f)}},[i,p]),l.createElement(l.Fragment,null,!p&&!r&&l.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?l.createElement("picture",null,l.createElement("source",{type:"image/avif",srcSet:r}),l.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),l.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),l.createElement("img",{ref:d,className:o,src:r,style:Object.assign({},a),loading:s,onLoad:f=>{h(!0),n?.(f.target)},alt:c})):l.createElement("img",{ref:d,className:o,src:r,style:Object.assign({},a),loading:s,onLoad:f=>{h(!0),n?.(f.target)},alt:c}))});var Ct=l.memo(Ba);const Fa=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const a=l.useRef(),{popupDetailData:o}=Ve();return l.useEffect(()=>{var s,c;n&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=o?.multiCheckIndex)!==null&&c!==void 0?c:0))},[o,n]),l.createElement(ti,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[mo,po,ki],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var vi=l.memo(Fa);const Wa=({products:t,data:e,defImg:i,style:n,onCLick:a,popupDetailData:o,check:s})=>{var c;const{productView:r}=xt(),{popupCurTimeRef:u}=Ve(),d=(p,h)=>{if(s===h)return;const f=t?.[s];r(o,f,f?.bindCta,u.current,o?.index),a?.(h)};return l.createElement(l.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&l.createElement(vi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(c=o?t:[0,1,2,3])===null||c===void 0?void 0:c.map((p,h)=>{var f,y,b;return l.createElement(l.Fragment,null,p?.bindCta?l.createElement(Bt,{className:Oe.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{d(p,h)},key:h},l.createElement(Ct,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(b=(f=p?.cover)!==null&&f!==void 0?f:(y=p?.homePage)===null||y===void 0?void 0:y[0])!==null&&b!==void 0?b:i})):null)})))};var al=l.memo(Wa);const za=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:a,src:o}=t;switch(i){case 2:return n||null;case 3:return o||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Ha=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",pi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:a})=>{var o,s,c,r,u,d,p,h;let f="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return f;let b=i?.priceSymbol,S=t?.currency?(c=(s=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||s===void 0?void 0:s.toUpperCase())!==null&&c!==void 0?c:"":"$";const v=e===void 0||e;let g=y?.toString();b?.showTwoDecimalPoint&&(g=y?.toFixed(2));let m=(r=g?.indexOf("."))!==null&&r!==void 0?r:-1;if(v){f=(u=y?.toLocaleString("zh",{minimumFractionDigits:b?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let x=0,I=m??f?.length;b?.millesimalSymbol==="."?f=f?.replace(/\,/g,function(k,N){return N>=x&&N<I?".":k}):b?.millesimalSymbol===" "&&(f=f?.replace(","," "))}else f=`${b?.showTwoDecimalPoint?y?.toFixed(2):y}`;return b?.decimalPoint===","&&m>0&&(f=f=f?.replace(/\./g,function(x,I){return I>=m&&I<f?.length?",":x})),S=`<span style="font-family:${(h=(p=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&p!==void 0?p:a?.["fontFamily-en"])!==null&&h!==void 0?h:"inherit"}">${S}</span>`,f=Ie(f,a),b?.currencyPosition&&b?.currencyPosition!=="none"?f=b?.currencyPosition==="left"?S+f:f+S:b?.currencyPosition!=="none"&&(f=S+f),f},Ua=t=>{var e,i,n,a,o,s,c,r,u,d,p,h,f,y,b,S,v,g,m,x,I,k,N,A,{content:w,style:T,bgImg:j,onClick:C,schema:M,isDefault:E,bottom_image:V,tipText:F,isPost:O,viewTime:D,rec:R,swiper:P,commodityStyles:B,buttonStyle:U,index:Z,commodityGroup:Q,popupBg:te,iframeIcon:ve,commodityImgRatio:he,isTel:ie,iframeBgColor:Me,isActive:Re=!0}=t,We=et(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:Y,popupDetailData:K,isPreview:Ae,bffFbReport:ge,popupCurTimeRef:ye,checkCommodityIndexRef:se,globalConfig:je}=Ve(),{jumpToWeb:He,productView:Fe}=xt(),Ye=l.useRef(null),[_e,Se]=l.useState(!1),[G,X]=l.useState(!1),[le,oe]=l.useState((e=K?.multiCheckIndex)!==null&&e!==void 0?e:0),pe=l.useRef(),[Pe,Ge]=l.useState(0),ne=O?R:K;let W=O?ne?.product:(n=(i=ne?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(o=(a=ne?.video)===null||a===void 0?void 0:a.bindProducts)===null||o===void 0?void 0:o[0],Xe=O?(s=ne?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=ne?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(h=(p=(d=ne?.video)===null||d===void 0?void 0:d.bindProducts)===null||p===void 0?void 0:p[0])===null||h===void 0?void 0:h.bindCta;const bt=O?Z:K?.index;if(!O&&Q?.open&&(!((f=ne?.video)===null||f===void 0)&&f.bindProducts)&&((b=(y=ne?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0?void 0:b.length)>0){se.current=le;const we=(S=ne?.video)===null||S===void 0?void 0:S.bindProducts[le];W=we,Xe=we?.bindCta}const it=we=>{W?.link&&(He(we,ne,W,Xe,bt),O||Fe(ne,W,Xe,D||Ye.current,bt),window.location.href=window.getJointUtmLink(W.link))};l.useEffect(()=>{Re&&(ge?.({eventName:"ProductView",product:W}),ge?.({eventName:"PageView",product:W}))},[Re,ge]),l.useEffect(()=>{const we=()=>{Ye.current=new Date};return we(),window.addEventListener("pageshow",we),()=>{window.removeEventListener("pageshow",we)}},[]);const pt=pi({product:W,enableFormattedPrice:(v=B?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:je,style:B?.price}),vt=(Ae?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((m=te?.horizontalMargin)!==null&&m!==void 0?m:0)*2,gt=he?vt*(he.h/he.w):vt,Dt=({isPost:we})=>{var qe,wt,Jt,lt;return l.createElement("div",null,l.createElement("div",{className:"pb-commondity-content-collection",style:Ot(B?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Ie((qe=W?.collection)!==null&&qe!==void 0?qe:"Tiffany Lock",B?.collection)}}),l.createElement("div",{className:"pb-commondity-content-title",style:Ot(B?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Ie((wt=W?.title)!==null&&wt!==void 0?wt:"Pendant in Yellow Gold with Diamonds, Medium",B?.title)}}),l.createElement("div",{className:"pb-commondity-content-price",style:Ot(B?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:pt??""}}),l.createElement("div",{hidden:!!W&&!W?.taxInfo,style:Ot(B?.taxInfo),dangerouslySetInnerHTML:{__html:Ie((Jt=W?.taxInfo)!==null&&Jt!==void 0?Jt:"\u7A0E\u8D39",B?.taxInfo)}}),l.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},l.createElement(Li,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Se(!0),isPost:we,text:(lt=W?.info)!==null&<!==void 0?lt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var at=require("lodash"),Cl=require("uuid"),kl=require("pako"),l=require("react"),gn=require("qs"),Il=require("eventemitter3"),Oe=require("@emotion/css"),yn=require("react-dom");function Pl(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var wn=Pl(yn);function et(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(i[n[a]]=t[n[a]]);return i}function nt(t,e,i,n){function a(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function c(d){try{u(n.next(d))}catch(p){s(p)}}function r(d){try{u(n.throw(d))}catch(p){s(p)}}function u(d){d.done?o(d.value):a(d.value).then(c,r)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ol=/:\w+/g;var Sn=(t,e)=>nt(void 0,void 0,void 0,function*(){const i={},n={};for(let a=0;a<e?.length;a++){const{id:o,method:s,url:c,urlParams:r,name:u,queryString:d,headers:p,body:h}=e[a];let f=c;r&&Object.entries(r).forEach(([y,b])=>{f=f.replace(Ol,S=>S===y?b:S)}),d&&(f+=d),n[o]=u;try{const y=yield fetch(f,{method:s,headers:Object.assign({"Content-Type":"application/json"},p),body:JSON.stringify(h)}).then(b=>b.json());i[o]=y}catch(y){console.error("DataSource request error: ",y),i[o]={}}}return{$store:i,idMapName:n}});const xn="SXP_TOKEN_INFO",Ml=(t,e)=>nt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),a=t.getAppId(),o=t.getApiUrl(),s=window.localStorage.getItem(xn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(xn,JSON.stringify(c))}}return c});function yi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)n[a]=i[0|Math.random()*e];else{let o;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",a=0;a<36;a++)n[a]||(o=0|Math.random()*16,n[a]=i[a===19?o&3|8:o])}return n.join("")}const Ll=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*n)),a+=1;return e},jl=()=>{const t=Cl.v4();return t?.replaceAll?t.replaceAll("-",""):Ll(32)},Ie=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!n&&!a)return t;let o=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${n??"inherit"}`,u=`font-family:${a??"inherit"}`,d=h=>{const f=h.search(s),y=h.search(c);return f!==-1&&y!==-1&&f<y&&(i+=`<span style="${r}">${h.substring(f,y)}</span>`,o=h.substring(y,h?.length)),f!==-1&&y!==-1&&f>y&&(i+=`<span style="${u}">${h.substring(y,f)}</span>`,o=h.substring(f,h?.length)),f===-1?(i+=`<span style="${u}">${h.substring(y,h?.length)}</span>`,o="",!1):y===-1?(i+=`<span style="${r}">${h.substring(f,h?.length)}</span>`,o="",!1):!0};let p=!0;for(;p;)p=d(o);return i};function Tn(t){const i=document.cookie.split(";");let n=null;return i.forEach(a=>{const[o,s]=a.trim().split("=");o===t&&(n=s)}),n??""}function Fi(){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 di(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const o=t[a],s=t.substring(a+1,t.length);o==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let n=0;return e?.map(a=>{i?.push(t.substring(n,a)),n=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function En(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),n=new Uint8Array(i),a=kl.inflate(n,{to:"string"});return JSON.parse(a)}let Wi=null;const Nl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Rl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Wi)return Wi;Wi=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Nl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let ht=null;const Dl={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{ht||(ht=new Rl),n&&ht.setApiUrl(n),ht.setAppId(t),ht.setTenantId(e),ht.setEnv(i)},getDetail:t=>{if(!ht)return;const e=ht.getTenantId(),i=ht.getAppId(),n=ht.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>nt(void 0,void 0,void 0,function*(){var o,s;const c=yield a.json(),r=En((o=c?.data)===null||o===void 0?void 0:o.data);if(r){const{$store:u}=yield Sn(n,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>nt(void 0,void 0,void 0,function*(){if(!ht)return;const e=ht.getTenantId(),i=ht.getAppId(),n=ht.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>nt(void 0,void 0,void 0,function*(){var o;const s=yield a.json();return s.success?(o=s?.data)===null||o===void 0?void 0:o.map(r=>Object.assign(Object.assign({},r),{data:En(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>nt(void 0,void 0,void 0,function*(){if(!ht)return;const e=yield Ml(ht,t),i=yi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");at.isEmpty(n)&&(n=yi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const a=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return a?.data||null})};function Yt(){return l.useContext(Fn)}function Vl(){return l.useContext(Bn)}const zi="feRealSessionIdKey",Cn=()=>{const t=jl();return`${Date.now()}${t}`},Bl=()=>{let t=Fl();return t||(t=Cn(),window.localStorage.setItem(zi,t)),t},Hi=()=>{const t=Cn();window.localStorage.setItem(zi,t)},Fl=()=>window.localStorage.getItem(zi),kn="SXP_FAKE_USER_ID",In="FAKE_USER_STATE",Pn="AGREE_POLICY",On="SLIDE_SKIP_STATE",Mn="CCONTSENT_STATE",Ln="USER_CONSENT_RESULT",Wl=()=>{let t=window.localStorage.getItem(kn);return at.isEmpty(t)&&(t=yi(36,62),window.localStorage.setItem(kn,t)),t},zl=()=>{const t=window.localStorage.getItem(In);return at.isEmpty(t)&&window.localStorage.setItem(In,"true"),at.isEmpty(t)},Hl=()=>{const t=window.localStorage.getItem(On);return at.isEmpty(t)},Ul=()=>{window.localStorage.setItem(On,"true")},Xl=()=>{const t=window.localStorage.getItem(Mn);return at.isEmpty(t)&&window.localStorage.setItem(Mn,"true"),at.isEmpty(t)},jn=()=>window.localStorage.getItem(Ln)==="true",Nn=()=>{window.localStorage.setItem(Ln,"true")};function jt(t,e){const{appDomain:i}=Ve();return l.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const ut=new Il;var rt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(rt||(rt={}));const ql=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:a,privacy_policy_title:o})=>{const{setIsAgreePolicy:s,bffEventReport:c}=Ve(),r=l.useMemo(()=>{var p;const h=location.search.slice(1),f={};(p=di(h.replace(/\+/g,"%2B")))===null||p===void 0||p.map(y=>{const b=y.split("=")[0],S=y.split("=")[1];f[b]=S});for(const y in f)f[y]=f[y].replace(/%2B/g,"+");return f},[]),u=p=>{var h;return(h=r[p])!==null&&h!==void 0?h:null};l.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),s?.(!0),window.localStorage.setItem(Pn,"yes")};return l.createElement("div",{className:"consent-bg"},l.createElement("div",{className:"consent"},l.createElement("div",{className:"consent-col"},l.createElement("div",{className:"consent-title"},i??"Privacy Policy"),l.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.")),l.createElement("div",{className:"consent-col"},l.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),l.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},o??"More information"))))};var Yl=l.memo(ql);const Rn=l.createContext({rtcList:[],tagList:[]});var Ui;(function(t){t[t.BFF=5]="BFF"})(Ui||(Ui={}));const wi="FOR U",Gl=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:a,defaultSize:o,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:p=!1,enabledMetaConversionApi:h=!1,consentHeight:f,consentWidth:y,isOpenConsent:b=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:m,dataList:x,onUpdateSchema:I,onUpdateChannel:k})=>{var N,A,w,T,j;const[C,M]=l.useState([]),[E,V]=l.useState([]),[F,O]=l.useState(!0),[D,R]=l.useState({rtc:"",requestId:""}),P=l.useRef(null),B=l.useRef(!1),[U,Z]=l.useState(()=>!!window.localStorage.getItem(Pn)),[Q,te]=l.useState(),[ve,he]=l.useState(),[ie,Me]=l.useState(p),[Re,We]=l.useState([]),[Y,K]=l.useState(0),[Ae,ge]=l.useState(!1),[ye,se]=l.useState(null),je=l.useRef(),He=l.useRef(),Fe=l.useRef(),[Ye,_e]=l.useState(wi),Se=l.useRef(-1),G=l.useRef(null),[X,le]=l.useState(!1),[oe,pe]=l.useState((A=(N=m?.data)===null||N===void 0?void 0:N.sxpPageConf)===null||A===void 0?void 0:A.globalConfig),[Pe,Ge]=l.useState(),[ne,W]=l.useState(!1),[Xe,bt]=l.useState(),[it,pt]=l.useState(),[vt,gt]=l.useState([]),[Dt,kt]=l.useState(),[Ot,zt]=l.useState(),It=l.useMemo(()=>Pe??m,[Pe,m]),yt=l.useMemo(()=>{var H,z,re,Ce;return(((Ce=(re=(z=(H=oe?.consent)===null||H===void 0?void 0:H[0])===null||z===void 0?void 0:z.item)===null||re===void 0?void 0:re.props)===null||Ce===void 0?void 0:Ce.privacy_necessity)&&!U&&!S||b)&&ne},[U,oe,b,S,ne]),_t=l.useCallback(H=>{k?.(H),pt(H)},[]),Mt=l.useCallback(H=>{var z;const re=H?.recList;return(z=re?.map(xe=>{var Te,De,Be,Ne,L,q;if(!((Te=xe?.video)===null||Te===void 0)&&Te.bindProducts&&((Be=(De=xe?.video)===null||De===void 0?void 0:De.bindProducts)===null||Be===void 0?void 0:Be.length)>0){const _=(q=(L=(Ne=xe?.video)===null||Ne===void 0?void 0:Ne.bindProducts)===null||L===void 0?void 0:L.filter(ae=>!!ae?.bindCta))!==null&&q!==void 0?q:[];return Object.assign(Object.assign({},xe),{video:Object.assign(Object.assign({},xe?.video),{bindProducts:_})})}return xe}))!==null&&z!==void 0?z:[]},[]);l.useEffect(()=>{let H;return vt.length>0&&(H=setInterval(()=>{const re=new Date,Ce=15*1e3;gt(xe=>xe.filter(Te=>re-Te.time<=Ce))},1e3)),()=>{clearInterval(H)}},[vt]),l.useEffect(()=>{const H=z=>{je.current=z};return ut.on(rt.CHANGE_THEME_TAG,H),()=>{ut.off(rt.CHANGE_THEME_TAG,H)}},[]),l.useEffect(()=>{Me(p)},[p]);const Ze=l.useMemo(()=>e?.find(H=>H.type===Ui.BFF),[e]),mt=l.useMemo(()=>{var H;return((H=Ze?.headers)===null||H===void 0?void 0:H["x-app-id"])+Wl()},[Ze]),$=l.useCallback((H,z)=>{if(!Ze)return;const re=Ze.url;if(z?.query){const Ce=gn.stringify(z.query);H=`${H}?${Ce}`}return z.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${re}/api/${H}`,new Blob([JSON.stringify({body:encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},z.body),Ze.headers),{"x-user-id":mt})))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${re}/api/${H}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":mt},Ze.headers),method:z.method,body:JSON.stringify(z.body)}).then(Ce=>Ce.json()).catch(Ce=>Promise.reject(Ce))},[Ze,mt]),we=l.useCallback((H,z)=>{if(!Ze)return;const re=Ze.url;if(z?.query){const Ce=gn.stringify(z.query);H=`${H}?${Ce}`}return window.fetch(`${re}/admin/${H}`,{headers:Object.assign({"Content-Type":"application/json"},Ze.headers),method:z.method,body:JSON.stringify(z.body)}).then(Ce=>Ce.json()).catch(Ce=>Promise.reject(Ce))},[Ze]),qe=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){var z,re,Ce,xe,Te,De,Be,Ne,L,q,_,ae,ue,de;if(H=Object.assign({maxSize:(z=H?.maxSize)!==null&&z!==void 0?z:a,defaultSize:(re=H?.defaultSize)!==null&&re!==void 0?re:o,hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag,pageNum:H?.pageNum,contentFilter:H?.contentFilter,productFilter:H?.productFilter},Ot&&{chatlabsId:Ot}),it)H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(it)});else if(i){const ce=(Te=(xe=(Ce=di(i))===null||Ce===void 0?void 0:Ce.filter(be=>{var ee,Le;const me=be.split("=")[0];return(Le=(ee=v?.channels)!==null&&ee!==void 0?ee:[])===null||Le===void 0?void 0:Le.includes(me)}))===null||xe===void 0?void 0:xe.join("&"))!==null&&Te!==void 0?Te:"";ce&&(H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(ce)}))}if(S){let ce=1;if(H=Object.assign(Object.assign(Object.assign({},H),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!H?.channel||B.current)return;B.current=!0;let be=[],ee=null;const Le=me=>nt(void 0,void 0,void 0,function*(){var fe,$e,Je,Ke,Qe,ot;if(me.pageNum=ce,ee=yield we?.("recommend/direct_page",{method:"POST",body:me}),!ee?.success)return;O(!1),be=be.concat((Ke=(Je=($e=(fe=ee?.data)===null||fe===void 0?void 0:fe.recList)===null||$e===void 0?void 0:$e.filter)===null||Je===void 0?void 0:Je.call($e,Ue=>Ue?.product||Ue?.video))!==null&&Ke!==void 0?Ke:[]),C?.length===0&&(M(Mt(Object.assign(Object.assign({},ee?.data),{recList:be}))),We(Mt(Object.assign(Object.assign({},ee?.data),{recList:be})))),((ot=(Qe=ee?.data)===null||Qe===void 0?void 0:Qe.recList)===null||ot===void 0?void 0:ot.some(Ue=>Ue?.product||Ue?.video))&&(ce=ce+1,yield Le(me))});return yield Le(H),!H?.hashTag&&ee&&R({rtc:(De=ee?.data)===null||De===void 0?void 0:De.rtc,requestId:(Be=ee?.data)===null||Be===void 0?void 0:Be.requestId}),Object.assign(Object.assign({},ee?.data),{recList:be})}oe?.enablePreview&&(H=Object.assign(Object.assign({},H),{directPage:!0,level:1,pageNum:(Ne=H?.pageNum)!==null&&Ne!==void 0?Ne:1}));const J=yield $?.("v1/recommend/list",{method:"POST",body:H});if(J?.success){if(H?.hashTag||R({rtc:J.data.rtc,requestId:J.data.requestId}),oe?.enablePreview&&!S){let ce=[];return ce=ce.concat((ae=(_=(q=(L=J?.data)===null||L===void 0?void 0:L.recList)===null||q===void 0?void 0:q.filter)===null||_===void 0?void 0:_.call(q,ee=>ee?.product||ee?.video))!==null&&ae!==void 0?ae:[]),((de=(ue=J?.data)===null||ue===void 0?void 0:ue.recList)===null||de===void 0?void 0:de.some(ee=>ee?.product||ee?.video))||le(!0),Object.assign(Object.assign({},J.data),{recList:ce})}return J?.data}}),[$,i,a,o,g,it,Ot,we]),wt=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){var z,re,Ce,xe;if(C.length<=0)return;const Te=C?.[C?.length-1],De=yield qe(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ve?.hashTag},((z=Te?.product)===null||z===void 0?void 0:z.itemId)&&{productFilter:[(re=Te?.product)===null||re===void 0?void 0:re.itemId]}),((Ce=Te?.video)===null||Ce===void 0?void 0:Ce.itemId)&&{contentFilter:[(xe=Te?.video)===null||xe===void 0?void 0:xe.itemId]}),{themeTag:je.current}),oe?.enablePreview&&!S&&{pageNum:H}));return M(C.concat(Mt(De))),We(Re.concat(Mt(De))),De}),[qe,C,ve,Re]),Jt=l.useCallback((H,z)=>{var re,Ce,xe,Te,De;let Be=!1;const Ne=(Ce=(re=m?.data)===null||re===void 0?void 0:re.sxpPageConf)===null||Ce===void 0?void 0:Ce.globalConfig;if(!((xe=Ne?.session)===null||xe===void 0)&&xe.enable){const L=localStorage.getItem("sessionStartTime"),q=L?JSON.parse(L):new Date().getTime();Math.floor((new Date().getTime()-q)/1e3/60)>=((De=(Te=Ne?.session)===null||Te===void 0?void 0:Te.expires)!==null&&De!==void 0?De:30)&&(z?.("sessionTimeOut"),Hi(),He.current=new Date,Be=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else H&&Hi();return Be},[m]),lt=l.useCallback(({userInfo:H,eventInfo:z,reportLayId:re=!0})=>{var Ce,xe;if(!n||oe?.enablePreview)return;H||(H={});const Te=Bl(),De={},Be=location.search.slice(1);(Ce=di(Be))===null||Ce===void 0||Ce.map(ae=>{const ue=ae.split("=")[0],de=ae.split("=")[1];De[ue]=de});const Ne=De?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Te,rtc:D.rtc,requestId:D.requestId},{playbookType:Dt}),Xe&&re&&{layoutVariantId:Xe}),z),z?.position&&it&&{position:Number(z?.position)+1+""}),Ne&&{clSource:Ne}),q=Object.entries(H).map(([ae,ue])=>({name:ae,value:ue})),_=Object.entries(L).map(([ae,ue])=>ue&&{name:ae,value:ue}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),$?.(`v2/cld/${(xe=Ze?.headers)===null||xe===void 0?void 0:xe["x-app-id"]}/${z?.eventSubject}${Ne?`/${decodeURIComponent(Ne)}`:""}`,{method:"POST",body:{userInfo:q,eventInfo:_},type:"beacon"})},[$,D,n,oe?.enablePreview,Xe,oe,Dt,Ze]),Qt=l.useCallback(({eventName:H,product:z})=>{var re,Ce,xe,Te,De,Be;if(!n||!h||oe?.enablePreview||!(!((re=oe?.converApi)===null||re===void 0)&&re[H]))return;const Ne=at.cloneDeep((Ce=oe?.converApi)===null||Ce===void 0?void 0:Ce[H]),L=new URLSearchParams(window.location.search),q=L?.get("fbclid"),_={event_source_url:(xe=window?.location)===null||xe===void 0?void 0:xe.href,external_id:mt,client_user_agent:(De=(Te=window?.navigator)===null||Te===void 0?void 0:Te.userAgent)!==null&&De!==void 0?De:"",fbc:q?`fb.2.${new Date().getTime()}.${q}`:"",fbp:Tn("_fbp")?`fb.2.${new Date().getTime()}.${Tn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},ae=/\{\{(.*?)\}\}/g,ue=de=>{if(de){if(de instanceof Array)de?.map(J=>ue(J));else for(const J in de)if(de.hasOwnProperty(J)){const ce=de?.[J];if(typeof ce=="object")ue(ce);else if(typeof ce=="string"){const be=ce?.match(ae);be&&be.forEach(ee=>{var Le;const me=ee.substring(2,ee.length-2);try{let fe=new Function("fix_par","product",`return ${me}`)(_,z);fe?(me?.indexOf("currency")!==-1&&fe?.indexOf("-")!==-1&&typeof fe=="string"&&(fe=(Le=fe?.split("-"))===null||Le===void 0?void 0:Le[0]),de[J]=fe):delete de[J]}catch(fe){delete de[J],console.error("An error occurred:",fe?.message)}})}}}};return ue(Ne),$?.(`v2/event/report/FB/${(Be=Ze?.headers)===null||Be===void 0?void 0:Be["x-app-id"]}/${H}`,{method:"POST",body:Ne,type:"beacon"})},[$,n,h,oe?.enablePreview,oe,mt,Ze]),ii=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){const z=yield $?.("v1/recommend/like",{method:"POST",body:H});return z?.success}),[$]),qt=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){const z=yield $?.("v1/recommend/unlike",{method:"POST",body:H});return z?.success}),[$]),Vt=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){const z=yield $?.("v1/customform",{method:"POST",body:H});return z?.success}),[$]),Lt=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){var z,re,Ce,xe,Te,De,Be,Ne;const L=!!(!((Ce=(re=(z=H?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||re===void 0?void 0:re.globalConfig)===null||Ce===void 0)&&Ce.isShowTag);if(!(!i||!L))try{const q=(De=(Te=(xe=di(i))===null||xe===void 0?void 0:xe.filter(ae=>{var ue,de;const J=ae.split("=")[0];return(de=(ue=v?.channels)!==null&&ue!==void 0?ue:[])===null||de===void 0?void 0:de.includes(J)}))===null||Te===void 0?void 0:Te.join("&"))!==null&&De!==void 0?De:"",_=yield $?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(q)}});V((Ne=(Be=_?.data)===null||Be===void 0?void 0:Be.tags)!==null&&Ne!==void 0?Ne:[])}catch(q){console.log("e",q)}}),[$,i]),ft=l.useCallback((H,z,re,Ce)=>{var xe,Te,De,Be,Ne,L,q,_,ae,ue,de,J,ce,be,ee,Le,me,fe,$e,Je,Ke,Qe,ot,dt,Ue,ct,ke,Ee,Tt,St,ni,tt,$t,Ri,Di,Vi;const Ht=re?.bindCta,El=((xe=z?.video)===null||xe===void 0?void 0:xe.bindProduct)||((Te=z?.video)===null||Te===void 0?void 0:Te.bindProducts)&&((Be=(De=z?.video)===null||De===void 0?void 0:De.bindProducts)===null||Be===void 0?void 0:Be.length)>0;let gi="",Bi=null;Ae?gi="hashTagPage":!((Ne=z?.video)===null||Ne===void 0)&&Ne.url?(gi="videoPage",Bi="video"):!((q=(L=z?.video)===null||L===void 0?void 0:L.imgUrls)===null||q===void 0)&&q.length&&(gi="imagePage",Bi="image");const bn=(be=(J=(_=re?.tags)!==null&&_!==void 0?_:(de=(ue=(ae=z?.video)===null||ae===void 0?void 0:ae.bindProducts)===null||ue===void 0?void 0:ue[0])===null||de===void 0?void 0:de.tags)!==null&&J!==void 0?J:(ce=z?.video)===null||ce===void 0?void 0:ce.tags)!==null&&be!==void 0?be:(ee=z?.product)===null||ee===void 0?void 0:ee.tags;lt?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(Le=Ht?.itemId)!==null&&Le!==void 0?Le:"",ctaName:(me=Ht?.title)!==null&&me!==void 0?me:"",contentTags:bn?JSON.stringify(bn):"",position:Ce+"",contentId:($e=(fe=z?.video)===null||fe===void 0?void 0:fe.itemId)!==null&&$e!==void 0?$e:"",productId:El?re?.itemId:"",traceInfo:(Di=(tt=(ke=(ot=(Je=Ht?.traceInfo)!==null&&Je!==void 0?Je:(Qe=(Ke=z?.video)===null||Ke===void 0?void 0:Ke.bindCta)===null||Qe===void 0?void 0:Qe.traceInfo)!==null&&ot!==void 0?ot:(ct=(Ue=(dt=z?.video)===null||dt===void 0?void 0:dt.bindProduct)===null||Ue===void 0?void 0:Ue.bindCta)===null||ct===void 0?void 0:ct.traceInfo)!==null&&ke!==void 0?ke:(ni=(St=(Tt=(Ee=z?.video)===null||Ee===void 0?void 0:Ee.bindProducts)===null||Tt===void 0?void 0:Tt[0])===null||St===void 0?void 0:St.bindCta)===null||ni===void 0?void 0:ni.traceInfo)!==null&&tt!==void 0?tt:(Ri=($t=z?.product)===null||$t===void 0?void 0:$t.bindCta)===null||Ri===void 0?void 0:Ri.traceInfo)!==null&&Di!==void 0?Di:"",fromKName:gi,fromKPage:(Vi=location?.href)!==null&&Vi!==void 0?Vi:"",contentFormat:Bi})})},[lt,Ae]),hi=l.useCallback(()=>{var H,z,re;const Ce=location.search.slice(1),xe={};(H=di(Ce.replace(/\+/g,"%2B")))===null||H===void 0||H.map(Be=>{const Ne=Be.split("=")[0],L=Be.split("=")[1];xe[Ne]=L});for(const Be in xe)xe[Be]=xe[Be].replace(/%2B/g,"+");const Te=Be=>{var Ne;return(Ne=xe[Be])!==null&&Ne!==void 0?Ne:""},De=new Date;He.current=De,lt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Te("utm_source"),utmMedium:Te("utm_medium"),utmCampaign:Te("utm_campaign"),utmId:Te("utm_id"),utmContent:Te("utm_content"),enterTime:Math.floor(De/1e3)+"",requestId:null,enterUrl:(re=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&re!==void 0?re:""},reportLayId:!1})},[lt]),Ai=l.useCallback(()=>nt(void 0,void 0,void 0,function*(){var H,z;const re=yield $?.("v1/account",{method:"GET"});return zt((H=re?.data)===null||H===void 0?void 0:H.chatLabsId),((z=re?.data)===null||z===void 0?void 0:z.consentResult)==="true"}),[$]),bi=l.useCallback(H=>nt(void 0,void 0,void 0,function*(){const z=yield $?.("v1/account/consent",{method:"POST",body:{consentResult:H}});return z?.success}),[$]);l.useEffect(()=>{yt||hi()},[yt]),l.useEffect(()=>{if(yt||s)return;O(!0);let H,z;qe().then(re=>{var Ce,xe,Te,De,Be,Ne,L,q,_,ae,ue;if(re){const de=Mt(re);let J,ce;if(re?.layoutVariantId){H=re?.layoutVariantId,bt(re?.layoutVariantId);const be=(xe=(Ce=re?.layoutVariantId)===null||Ce===void 0?void 0:Ce.split("-"))===null||xe===void 0?void 0:xe[1];be&&(J=x?.find(ee=>ee?.id===be),J?(Ge(J),document.title=(Te=J?.name)!==null&&Te!==void 0?Te:"home",ce=(Be=(De=J?.data)===null||De===void 0?void 0:De.sxpPageConf)===null||Be===void 0?void 0:Be.globalConfig,pe(ce),I?.(J?.data),!((_=(q=(L=(Ne=ce?.consent)===null||Ne===void 0?void 0:Ne[0])===null||L===void 0?void 0:L.item)===null||q===void 0?void 0:q.props)===null||_===void 0)&&_.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(it||(ce?.playbook==="organic menu"||!ce&&oe?.playbook==="organic menu"?(kt("organicMenu"),de.unshift("organic menu"),z="organicMenu"):(kt("paidMedia"),z="paidMedia")),M(de),We(de),Lt(J??It),it){const be=de?.[0],ee=((ae=be?.video)===null||ae===void 0?void 0:ae.traceInfo)||((ue=be?.product)===null||ue===void 0?void 0:ue.traceInfo)||"";lt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ee,branchfeed:it},H&&{layoutVariantId:H})}),lt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ee,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-Fe?.current)/1e3)+""},H&&{layoutVariantId:H})})}}}).finally(()=>{lt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},H&&{layoutVariantId:H}),z&&{playbookType:z})}),O(!1)})},[yt,it]),l.useEffect(()=>{s&&(O(!0),Lt(m),qe().then(H=>{if(H){const z=Mt(H);oe?.playbook==="organic menu"&&!it&&z.unshift("organic menu"),M(z),We(z)}}).finally(()=>{O(!1)}))},[qe,Lt,it]);const Ni=jt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return l.createElement(Rn.Provider,{value:{rtcList:C,setRtcList:M,mutateLike:ii,mutateUnlike:qt,submitForm:Vt,popupDetailData:Q,loadVideos:wt,setPopupDetailData:te,getRecommendVideos:qe,bffEventReport:lt,isPreview:s,loading:F,sxpParameter:c,waterFallData:ve,setWaterFallData:he,ctaEvent:ft,swiperRef:P,openHashtag:ie,setOpenHashtag:Me,cacheRtcList:Re,setCacheRtcList:We,cacheActiveIndex:Y,setCacheActiveIndex:K,isFromHashtag:Ae,setIsFromHashtag:ge,appDomain:r,hashTagSize:u,loadingImage:d??Ni,isOpenHashTag:p,tagList:E,setLoading:O,videoRef:ye,setVideoRef:se,bffFbReport:Qt,isAgreePolicy:U,setIsAgreePolicy:Z,curTime:He,h5EnterLink:hi,themeTag:je,isShowConsent:yt,selectTag:Ye,setSelectTag:_e,globalConfig:oe,popupCurTimeRef:G,checkCommodityIndexRef:Se,isEditor:S,isNoMoreData:X,updateChannel:_t,channel:it,eventTimeList:vt,setEventTimeList:gt,multiPostTimeRef:Fe,refreshFeSession:Jt,getAccount:Ai,accountSonsent:bi}},yt?l.createElement(Yl,Object.assign({},(j=(T=(w=oe?.consent)===null||w===void 0?void 0:w[0])===null||T===void 0?void 0:T.item)===null||j===void 0?void 0:j.props)):t({rtcList:C,mutateLike:ii,mutateUnlike:qt,submitForm:Vt,tagList:E,pageData:It}))};var Dn=l.memo(Gl);function Ve(){return l.useContext(Rn)}var Vn;(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"})(Vn||(Vn={}));const Bn=l.createContext({$store:{},options:[],configs:[]}),Zl=({children:t,isSsr:e,enable:i})=>{const[n,a]=l.useState([]),{schema:o}=Yt(),[s,c]=l.useState(o.__STORE__||{}),[r,u]=l.useState([]);l.useEffect(()=>{var h;e||at.isEqual(r,o?.dataSource)||u((h=o?.dataSource)!==null&&h!==void 0?h:[])},[o?.dataSource,e]);const d=l.useCallback(()=>nt(void 0,void 0,void 0,function*(){const{$store:h,idMapName:f}=yield Sn("",r);c(h),p(h,f)}),[r]),p=(h,f)=>{const y=[];Object.entries(h).forEach(([b,S])=>{Object.keys(S).forEach(v=>{const g={label:`${f[b]} - ${v}`,value:`{{ ${b}.${v} }}`};y.push(g)})}),a(y)};return l.useEffect(()=>{e||d()},[d,e,o]),i?l.createElement(Bn.Provider,{value:{$store:o.__STORE__||s,options:n,configs:r}},t):t};var Kl=l.memo(Zl);const Si={id:yi(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},Xi={id:"",duration:0,name:"none"},Fn=l.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Si],redoStack:[],popup:Xi,setPopup:()=>{}}),Wn=l.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:a=!0,utmVal:o},s)=>{const[c,r]=l.useState(null),[u,d]=l.useState(n||{pointData:[Si],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[p,h]=l.useState([Si]),[f,y]=l.useState([[Si]]),[b,S]=l.useState([]),[v,g]=l.useState(Xi);typeof window<"u"&&(window.sxpPopup=(N,A)=>{g(Object.assign(Object.assign(Object.assign({},Xi),{id:N}),A))}),typeof window<"u"&&(window.getJointUtmLink=N=>(Ul(),N?.indexOf("?")!==-1?N+(o?"&"+o:""):N+(o?"?"+o:""))),l.useEffect(()=>{y([u.pointData]),S([])},[u.type]);const m=l.useCallback(N=>{const A=at.cloneDeep(u);A&&(A.dataSource=N,d?.(A))},[u]),[x,I]=l.useState();l.useImperativeHandle(s,()=>({loadSchema(N){N&&(y([N.pointData]),d(N))},exportSchema(){return at.cloneDeep(u)},getPageInfoData(){return x},initPageInfoData(N){N&&I(N)}}));const k=l.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return l.createElement(Fn.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:m,prePiontData:p,setPrePiontData:h,pageInfoData:x,setPageInfoData:N=>I(Object.assign(Object.assign({},x),N)),undoStack:f,redoStack:b,setRedoStack:S,setUndoStack:y,getCurPageConf:k,popup:v,setPopup:g}},l.createElement(Kl,{isSsr:i,enable:a},t))});var _l=Object.freeze({__proto__:null,EditorCore:Wn}),Jl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Ql=[{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 xt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:a}=Ve(),o=l.useCallback((r,u,d,p,h,f)=>{var y,b,S,v,g,m,x,I,k,N,A,w,T,j,C,M,E,V,F,O,D,R,P,B,U,Z,Q,te,ve,he,ie,Me,Re,We,Y,K,Ae,ge;if(n?.findIndex(Fe=>Fe.target===r?.target)!==-1)return;r&&a?.(Fe=>[...Fe,{target:r?.target,time:new Date}]);let se="";e&&(!((b=(y=u?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0)&&b.length||!((S=u?.video)===null||S===void 0)&&S.bindProduct)?se="pdpPage":i?se="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?se="videoPage":!((g=u?.video)===null||g===void 0)&&g.imgUrls&&(!((x=(m=u?.video)===null||m===void 0?void 0:m.imgUrls)===null||x===void 0)&&x.length)?se="imagePage":u?.product&&(se="productPage");const je=(j=(w=(I=d?.tags)!==null&&I!==void 0?I:(A=(N=(k=u?.video)===null||k===void 0?void 0:k.bindProducts)===null||N===void 0?void 0:N[0])===null||A===void 0?void 0:A.tags)!==null&&w!==void 0?w:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&j!==void 0?j:(C=u?.product)===null||C===void 0?void 0:C.tags;let He=null;!((M=u?.video)===null||M===void 0)&&M.url?He="video":!((E=u?.video)===null||E===void 0)&&E.imgUrls&&(!((F=(V=u?.video)===null||V===void 0?void 0:V.imgUrls)===null||F===void 0)&&F.length)&&(He="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(O=d?.itemId)!==null&&O!==void 0?O:"",productName:(D=d?.title)!==null&&D!==void 0?D:"",price:d?.price?d?.price+"":"0",productCollection:(R=d?.collection)!==null&&R!==void 0?R:"",fromKName:se,fromKPage:location?.href,contentTags:je?JSON.stringify(je):"",position:h+"",contentId:(B=(P=u?.video)===null||P===void 0?void 0:P.itemId)!==null&&B!==void 0?B:"",ctatId:(U=p?.itemId)!==null&&U!==void 0?U:"",traceInfo:(ge=(Y=(Re=(ve=(Z=f??d?.traceInfo)!==null&&Z!==void 0?Z:(te=(Q=u?.video)===null||Q===void 0?void 0:Q.bindProduct)===null||te===void 0?void 0:te.traceInfo)!==null&&ve!==void 0?ve:(Me=(ie=(he=u?.video)===null||he===void 0?void 0:he.bindProducts)===null||ie===void 0?void 0:ie[0])===null||Me===void 0?void 0:Me.traceInfo)!==null&&Re!==void 0?Re:(We=u?.product)===null||We===void 0?void 0:We.traceInfo)!==null&&Y!==void 0?Y:(Ae=(K=u?.video)===null||K===void 0?void 0:K.bindCta)===null||Ae===void 0?void 0:Ae.traceInfo)!==null&&ge!==void 0?ge:""},He&&{contentFormat:He})})},[t,e,i,n]),s=l.useCallback((r,u,d,p,h)=>{var f,y,b,S,v,g,m,x,I,k,N,A,w,T;let j="";e&&(!((y=(f=r?.video)===null||f===void 0?void 0:f.bindProducts)===null||y===void 0)&&y.length||!((b=r?.video)===null||b===void 0)&&b.bindProduct)?j="pdpPage":r?.product&&(j="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:j,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:h+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(A=(x=(v=u?.traceInfo)!==null&&v!==void 0?v:(m=(g=r?.video)===null||g===void 0?void 0:g.bindProduct)===null||m===void 0?void 0:m.traceInfo)!==null&&x!==void 0?x:(N=(k=(I=r?.video)===null||I===void 0?void 0:I.bindProducts)===null||k===void 0?void 0:k[0])===null||N===void 0?void 0:N.traceInfo)!==null&&A!==void 0?A:(w=r?.product)===null||w===void 0?void 0:w.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-p)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=l.useCallback((r,u,d,p)=>{u&&u===wi&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:p?`['${p}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:s,backMainFeed:c}}const $l=({layout:t,columns:e,onChange:i})=>l.createElement(l.Fragment,null,e?.map((n,a)=>l.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&l.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&l.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 eo=l.memo($l);const to=t=>{var e,i,{columns:n,style:a,title:o,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:p,isPopup:h,onClick:f,onClose:y,submitButtonStyle:b}=t,S=et(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=Ve(),{jumpToWeb:m}=xt(),[x,I]=l.useState(!1),[k,N]=l.useState({}),[A,w]=l.useState(0),T=l.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),j=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=l.useMemo(()=>at.cloneDeep(n)||T,[n,T]),M=l.useCallback(V=>{const{name:F,value:O}=V.target;N(Object.assign(Object.assign({},k),{[F]:O}))},[k]),E=at.debounce(V=>nt(void 0,void 0,void 0,function*(){var F,O,D,R,P;const B=k;if(!B)return;const U=(O=(F=Object.keys(B))===null||F===void 0?void 0:F.map(Q=>{var te;return{name:Q,value:(te=B[Q])!==null&&te!==void 0?te:""}}))===null||O===void 0?void 0:O.filter(Q=>Q?.value);if(!U||!U?.length)return;I(!0);const Z=yield v?.({attributes:U});if(I(!1),Z){if(p){const Q=g,te=(D=Q?.video)===null||D===void 0?void 0:D.bindProduct,ve=(P=(R=Q?.video)===null||R===void 0?void 0:R.bindProduct)===null||P===void 0?void 0:P.bindCta,he=g?.index;m(V,Q,te,ve,he)}h||y?.(),f?.()}}),1e3);return l.useEffect(()=>{const V=()=>{var F,O;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((F=document?.documentElement)===null||F===void 0?void 0:F.clientHeight)||((O=document?.body)===null||O===void 0?void 0:O.clientHeight))<j?w(50):w(0)};return window.addEventListener("resize",V),()=>{window.removeEventListener("resize",V)}},[]),l.createElement("div",{className:"pb-appoint-form"},l.createElement("div",{className:`pb-appoint-form-title ${Oe.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:Ie(o,s)}}),l.createElement("div",Object.assign({className:Oe.css(Object.assign(Object.assign({},a),{marginTop:A}))},S),l.createElement("div",{className:"pb-appoint-form-container"},l.createElement(eo,{columns:C,layout:d,onChange:M}))),l.createElement("div",{className:"pb-appoint-form-btn-wrapper"},l.createElement("button",{"aria-label":u,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},b),dangerouslySetInnerHTML:{__html:Ie(x?"loading...":u,b)}})))};var io=l.memo(to);function st(t,e){return t.extend=e,t}const no=st(io,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Ql,bindableProps:[],interactionRender:Jl},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 lo=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}];function zn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function qi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:zn(e[i])&&zn(t[i])&&Object.keys(e[i]).length>0&&qi(t[i],e[i])})}const Hn={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 Et(){const t=typeof document<"u"?document:{};return qi(t,Hn),t}const oo={document:Hn,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 At(){const t=typeof window<"u"?window:{};return qi(t,oo),t}function Gt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function ao(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function li(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Nt(){return Date.now()}function so(t){const e=At();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function ro(t,e){e===void 0&&(e="x");const i=At();let n,a,o;const s=so(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(a==="none"?"":a)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=o.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?a=o.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0}function xi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function co(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Pt(){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&&!co(n)){const a=Object.keys(Object(n)).filter(o=>e.indexOf(o)<0);for(let o=0,s=a.length;o<s;o+=1){const c=a[o],r=Object.getOwnPropertyDescriptor(n,c);r!==void 0&&r.enumerable&&(xi(t[c])&&xi(n[c])?n[c].__swiper__?t[c]=n[c]:Pt(t[c],n[c]):!xi(t[c])&&xi(n[c])?(t[c]={},n[c].__swiper__?t[c]=n[c]:Pt(t[c],n[c])):t[c]=n[c])}}}return t}function Ti(t,e,i){t.style.setProperty(e,i)}function Un(t){let{swiper:e,targetPosition:i,side:n}=t;const a=At(),o=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>o?"next":"prev",d=(h,f)=>u==="next"&&h>=f||u==="prev"&&h<=f,p=()=>{c=new Date().getTime(),s===null&&(s=c);const h=Math.max(Math.min((c-s)/r,1),0),f=.5-Math.cos(h*Math.PI)/2;let y=o+f*(i-o);if(d(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),d(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(p)};p()}function Ft(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Ei(t){try{console.warn(t);return}catch{}}function oi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Gt(e)),i}function Xn(t){const e=At(),i=Et(),n=t.getBoundingClientRect(),a=i.body,o=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:n.top+c-o,left:n.left+r-s}}function uo(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 vo(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 Zt(t,e){return At().getComputedStyle(t,null).getPropertyValue(e)}function ci(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ci(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 Yi(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Gi(t,e,i){const n=At();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 ze(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Zi(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const o=Et(),s=At();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:p}=e;let h=d;h.originalEvent&&(h=h.originalEvent);const f=h.keyCode||h.charCode,y=e.params.keyboard.pageUpDown,b=y&&f===33,S=y&&f===34,v=f===37,g=f===39,m=f===38,x=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&x||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&m||b))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||S||v||g||m||x)){let I=!1;if(Ci(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ci(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,N=k.clientWidth,A=k.clientHeight,w=s.innerWidth,T=s.innerHeight,j=Xn(k);p&&(j.left-=k.scrollLeft);const C=[[j.left,j.top],[j.left+N,j.top],[j.left,j.top+A],[j.left+N,j.top+A]];for(let M=0;M<C.length;M+=1){const E=C[M];if(E[0]>=0&&E[0]<=w&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;I=!0}}if(!I)return}e.isHorizontal()?((b||S||v||g)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((S||g)&&!p||(b||v)&&p)&&e.slideNext(),((b||v)&&!p||(S||g)&&p)&&e.slidePrev()):((b||S||m||x)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(S||x)&&e.slideNext(),(b||m)&&e.slidePrev()),a("keyPress",f)}}function r(){e.keyboard.enabled||(o.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(o.removeEventListener("keydown",c),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&r()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function ki(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const o=At();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,c=Nt(),r;const u=[];function d(m){let N=0,A=0,w=0,T=0;return"detail"in m&&(A=m.detail),"wheelDelta"in m&&(A=-m.wheelDelta/120),"wheelDeltaY"in m&&(A=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(N=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(N=A,A=0),w=N*10,T=A*10,"deltaY"in m&&(T=m.deltaY),"deltaX"in m&&(w=m.deltaX),m.shiftKey&&!w&&(w=T,T=0),(w||T)&&m.deltaMode&&(m.deltaMode===1?(w*=40,T*=40):(w*=800,T*=800)),w&&!N&&(N=w<1?-1:1),T&&!A&&(A=T<1?-1:1),{spinX:N,spinY:A,pixelX:w,pixelY:T}}function p(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function f(m){return e.params.mousewheel.thresholdDelta&&m.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Nt()-c<e.params.mousewheel.thresholdTime?!1:m.delta>=6&&Nt()-c<60?!0:(m.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",m.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",m.raw)),c=new o.Date().getTime(),!1)}function y(m){const x=e.params.mousewheel;if(m.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function b(m){let x=m,I=!0;if(!e.enabled||m.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let N=e.el;e.params.mousewheel.eventsTarget!=="container"&&(N=document.querySelector(e.params.mousewheel.eventsTarget));const A=N&&N.contains(x.target);if(!e.mouseEntered&&!A&&!k.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let w=0;const T=e.rtlTranslate?-1:1,j=d(x);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(j.pixelX)>Math.abs(j.pixelY))w=-j.pixelX*T;else return!0;else if(Math.abs(j.pixelY)>Math.abs(j.pixelX))w=-j.pixelY;else return!0;else w=Math.abs(j.pixelX)>Math.abs(j.pixelY)?-j.pixelX*T:-j.pixelY;if(w===0)return!0;k.invert&&(w=-w);let C=e.getTranslate()+w*k.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),I=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),I&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:Nt(),delta:Math.abs(w),direction:Math.sign(w),raw:m};u.length>=2&&u.shift();const E=u.length?u[u.length-1]:void 0;if(u.push(M),E?(M.direction!==E.direction||M.delta>E.delta||M.time>E.time+150)&&f(M):f(M),y(M))return!0}else{const M={time:Nt(),delta:Math.abs(w),direction:Math.sign(w)},E=r&&M.time<r.time+500&&M.delta<=r.delta&&M.direction===r.direction;if(!E){r=void 0;let V=e.getTranslate()+w*k.sensitivity;const F=e.isBeginning,O=e.isEnd;if(V>=e.minTranslate()&&(V=e.minTranslate()),V<=e.maxTranslate()&&(V=e.maxTranslate()),e.setTransition(0),e.setTranslate(V),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!F&&e.isBeginning||!O&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const D=u.length?u[u.length-1]:void 0,R=u[0];if(u.push(M),D&&(M.delta>D.delta||M.direction!==D.direction))u.splice(0);else if(u.length>=15&&M.time-R.time<500&&R.delta-M.delta>=1&&M.delta<=6){const P=w>0?.8:.2;r=M,u.splice(0),s=li(()=>{e.slideToClosest(e.params.speed,!0,void 0,P)},0)}s||(s=li(()=>{r=M,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||a("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(V===e.minTranslate()||V===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function S(m){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[m]("mouseenter",p),x[m]("mouseleave",h),x[m]("wheel",b)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!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 Ki(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(a=>{if(!i[a]&&i.auto===!0){let o=Ft(t.el,`.${n[a]}`)[0];o||(o=oi("div",n[a]),o.className=n[a],t.el.append(o)),i[a]=o,e[a]=o}}),i}function _i(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function o(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b&&b.length>1&&e.el.querySelectorAll(y).length===1?b=e.el.querySelector(y):b&&b.length===1&&(b=b[0])),y&&!b?y:b)}function s(y,b){const S=e.params.navigation;y=ze(y),y.forEach(v=>{v&&(v.classList[b?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=b),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function c(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){s(b,!1),s(y,!1);return}s(b,e.isBeginning&&!e.params.rewind),s(y,e.isEnd&&!e.params.rewind)}function r(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const y=e.params.navigation;if(e.params.navigation=Ki(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=o(y.nextEl),S=o(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:S}),b=ze(b),S=ze(S);const v=(g,m)=>{g&&g.addEventListener("click",m==="next"?u:r),!e.enabled&&g&&g.classList.add(...y.lockClass.split(" "))};b.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function p(){let{nextEl:y,prevEl:b}=e.navigation;y=ze(y),b=ze(b);const S=(v,g)=>{v.removeEventListener("click",g==="next"?u:r),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(v=>S(v,"next")),b.forEach(v=>S(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?f():(d(),c())}),n("toEdge fromEdge lock unlock",()=>{c()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=ze(y),b=ze(b),e.enabled){c();return}[...y,...b].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:S,prevEl:v}=e.navigation;S=ze(S),v=ze(v);const g=b.target;let m=v.includes(g)||S.includes(g);if(e.isElement&&!m){const x=b.path||b.composedPath&&b.composedPath();x&&(m=x.find(I=>S.includes(I)||v.includes(I)))}if(e.params.navigation.hideOnClick&&!m){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let x;S.length?x=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(x=v[0].classList.contains(e.params.navigation.hiddenClass)),a(x===!0?"navigationShow":"navigationHide"),[...S,...v].filter(I=>!!I).forEach(I=>I.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:h,disable:f,update:c,init:d,destroy:p})}function Ut(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ii(t){let{swiper:e,extendParams:i,on:n,emit:a}=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 s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(v,g){const{bulletActiveClass:m}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${m}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${m}-${g}-${g}`)))}function d(v){const g=v.target.closest(Ut(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const m=ci(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===m)return;e.slideToLoop(m)}else e.slideTo(m)}function p(){const v=e.rtl,g=e.params.pagination;if(r())return;let m=e.pagination.el;m=ze(m);let x,I;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,N=e.params.loop?Math.ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(I=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,I=e.previousSnapIndex):(I=e.previousIndex||0,x=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let w,T,j;if(g.dynamicBullets&&(s=Gi(A[0],e.isHorizontal()?"width":"height",!0),m.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${s*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&I!==void 0&&(c+=x-(I||0),c>g.dynamicMainBullets-1?c=g.dynamicMainBullets-1:c<0&&(c=0)),w=Math.max(x-c,0),T=w+(Math.min(A.length,g.dynamicMainBullets)-1),j=(T+w)/2),A.forEach(C=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();C.classList.remove(...M)}),m.length>1)A.forEach(C=>{const M=ci(C);M===x?C.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),g.dynamicBullets&&(M>=w&&M<=T&&C.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),M===w&&u(C,"prev"),M===T&&u(C,"next"))});else{const C=A[x];if(C&&C.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&A.forEach((M,E)=>{M.setAttribute("part",E===x?"bullet-active":"bullet")}),g.dynamicBullets){const M=A[w],E=A[T];for(let V=w;V<=T;V+=1)A[V]&&A[V].classList.add(...`${g.bulletActiveClass}-main`.split(" "));u(M,"prev"),u(E,"next")}}if(g.dynamicBullets){const C=Math.min(A.length,g.dynamicMainBullets+4),M=(s*C-s)/2-j*s,E=v?"right":"left";A.forEach(V=>{V.style[e.isHorizontal()?E:"top"]=`${M}px`})}}m.forEach((A,w)=>{if(g.type==="fraction"&&(A.querySelectorAll(Ut(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(x+1)}),A.querySelectorAll(Ut(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(N)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const j=(x+1)/N;let C=1,M=1;T==="horizontal"?C=j:M=j,A.querySelectorAll(Ut(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${M})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(A.innerHTML=g.renderCustom(e,x+1,N),w===0&&a("paginationRender",A)):(w===0&&a("paginationRender",A),a("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](g.lockClass)})}function h(){const v=e.params.pagination;if(r())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let m=e.pagination.el;m=ze(m);let x="";if(v.type==="bullets"){let I=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&I>g&&(I=g);for(let k=0;k<I;k+=1)v.renderBullet?x+=v.renderBullet.call(e,k,v.bulletClass):x+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?x=v.renderFraction.call(e,v.currentClass,v.totalClass):x=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?x=v.renderProgressbar.call(e,v.progressbarFillClass):x=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],m.forEach(I=>{v.type!=="custom"&&(I.innerHTML=x||""),v.type==="bullets"&&e.pagination.bullets.push(...I.querySelectorAll(Ut(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",m[0])}function f(){e.params.pagination=Ki(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(m=>Ci(m,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=ze(g),g.forEach(m=>{v.type==="bullets"&&v.clickable&&m.classList.add(...(v.clickableClass||"").split(" ")),m.classList.add(v.modifierClass+v.type),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(m.classList.add(`${v.modifierClass}${v.type}-dynamic`),c=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&m.classList.add(v.progressbarOppositeClass),v.clickable&&m.addEventListener("click",d),e.enabled||m.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(r())return;let g=e.pagination.el;g&&(g=ze(g),g.forEach(m=>{m.classList.remove(v.hiddenClass),m.classList.remove(v.modifierClass+v.type),m.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(m.classList.remove(...(v.clickableClass||"").split(" ")),m.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(m=>m.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=ze(g),g.forEach(m=>{m.classList.remove(v.horizontalClass,v.verticalClass),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(f(),h(),p())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),n("snapIndexChange",()=>{p()}),n("snapGridLengthChange",()=>{h(),p()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{p()}),n("click",(v,g)=>{const m=g.target,x=ze(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!m.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&m===e.navigation.nextEl||e.navigation.prevEl&&m===e.navigation.prevEl))return;const I=x[0].classList.contains(e.params.pagination.hiddenClass);a(I===!0?"paginationShow":"paginationHide"),x.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),f(),h(),p()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:S,render:h,update:p,init:f,destroy:y})}function po(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const o=Et();let s=!1,c=null,r=null,u,d,p,h;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:M}=e,{dragEl:E,el:V}=C,F=e.params.scrollbar,O=e.params.loop?e.progressLoop:e.progress;let D=d,R=(p-d)*O;M?(R=-R,R>0?(D=d-R,R=0):-R+d>p&&(D=p+R)):R<0?(D=d+R,R=0):R+d>p&&(D=p-R),e.isHorizontal()?(E.style.transform=`translate3d(${R}px, 0, 0)`,E.style.width=`${D}px`):(E.style.transform=`translate3d(0px, ${R}px, 0)`,E.style.height=`${D}px`),F.hide&&(clearTimeout(c),V.style.opacity=1,c=setTimeout(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3))}function y(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:M,el:E}=C;M.style.width="",M.style.height="",p=e.isHorizontal()?E.offsetWidth:E.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=p*h:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${d}px`:M.style.height=`${d}px`,h>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(C){return e.isHorizontal()?C.clientX:C.clientY}function v(C){const{scrollbar:M,rtlTranslate:E}=e,{el:V}=M;let F;F=(S(C)-Xn(V)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(p-d),F=Math.max(Math.min(F,1),0),E&&(F=1-F);const O=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*F;e.updateProgress(O),e.setTranslate(O),e.updateActiveIndex(),e.updateSlidesClasses()}function g(C){const M=e.params.scrollbar,{scrollbar:E,wrapperEl:V}=e,{el:F,dragEl:O}=E;s=!0,u=C.target===O?S(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),V.style.transitionDuration="100ms",O.style.transitionDuration="100ms",v(C),clearTimeout(r),F.style.transitionDuration="0ms",M.hide&&(F.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",C)}function m(C){const{scrollbar:M,wrapperEl:E}=e,{el:V,dragEl:F}=M;s&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),E.style.transitionDuration="0ms",V.style.transitionDuration="0ms",F.style.transitionDuration="0ms",a("scrollbarDragMove",C))}function x(C){const M=e.params.scrollbar,{scrollbar:E,wrapperEl:V}=e,{el:F}=E;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",V.style.transitionDuration=""),M.hide&&(clearTimeout(r),r=li(()=>{F.style.opacity=0,F.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",C),M.snapOnRelease&&e.slideToClosest())}function I(C){const{scrollbar:M,params:E}=e,V=M.el;if(!V)return;const F=V,O=E.passiveListeners?{passive:!1,capture:!1}:!1,D=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!F)return;const R=C==="on"?"addEventListener":"removeEventListener";F[R]("pointerdown",g,O),o[R]("pointermove",m,O),o[R]("pointerup",x,D)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||I("on")}function N(){!e.params.scrollbar.el||!e.scrollbar.el||I("off")}function A(){const{scrollbar:C,el:M}=e;e.params.scrollbar=Ki(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let V;if(typeof E.el=="string"&&e.isElement&&(V=e.el.querySelector(E.el)),!V&&typeof E.el=="string"){if(V=o.querySelectorAll(E.el),!V.length)return}else V||(V=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&V.length>1&&M.querySelectorAll(E.el).length===1&&(V=M.querySelector(E.el)),V.length>0&&(V=V[0]),V.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let F;V&&(F=V.querySelector(Ut(e.params.scrollbar.dragClass)),F||(F=oi("div",e.params.scrollbar.dragClass),V.append(F))),Object.assign(C,{el:V,dragEl:F}),E.draggable&&k(),V&&V.classList[e.enabled?"remove":"add"](...Gt(e.params.scrollbar.lockClass))}function w(){const C=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...Gt(e.isHorizontal()?C.horizontalClass:C.verticalClass)),N()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:M}=e.scrollbar;M=ze(M),M.forEach(E=>{E.classList.remove(C.horizontalClass,C.verticalClass),E.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?j():(A(),b(),f())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{f()}),n("setTransition",(C,M)=>{y(M)}),n("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Gt(e.params.scrollbar.lockClass))}),n("destroy",()=>{w()});const T=()=>{e.el.classList.remove(...Gt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Gt(e.params.scrollbar.scrollbarDisabledClass)),A(),b(),f()},j=()=>{e.el.classList.add(...Gt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Gt(e.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(e.scrollbar,{enable:T,disable:j,updateSize:b,setTranslate:f,init:A,destroy:w})}function Ji(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null,o,s,c=new Date().getTime();function r(O){const D=a;D.length!==0&&(D.innerHTML="",D.innerHTML=O)}function u(O){O===void 0&&(O=16);const D=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,D)}function d(O){O=ze(O),O.forEach(D=>{D.setAttribute("tabIndex","0")})}function p(O){O=ze(O),O.forEach(D=>{D.setAttribute("tabIndex","-1")})}function h(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("role",D)})}function f(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("aria-roledescription",D)})}function y(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("aria-controls",D)})}function b(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("aria-label",D)})}function S(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("id",D)})}function v(O,D){O=ze(O),O.forEach(R=>{R.setAttribute("aria-live",D)})}function g(O){O=ze(O),O.forEach(D=>{D.setAttribute("aria-disabled",!0)})}function m(O){O=ze(O),O.forEach(D=>{D.setAttribute("aria-disabled",!1)})}function x(O){if(O.keyCode!==13&&O.keyCode!==32)return;const D=e.params.a11y,R=O.target;if(!(e.pagination&&e.pagination.el&&(R===e.pagination.el||e.pagination.el.contains(O.target))&&!O.target.matches(Ut(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const P=ze(e.navigation.prevEl);ze(e.navigation.nextEl).includes(R)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(D.lastSlideMessage):r(D.nextSlideMessage)),P.includes(R)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(D.firstSlideMessage):r(D.prevSlideMessage))}e.pagination&&R.matches(Ut(e.params.pagination.bulletClass))&&R.click()}}function I(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:O,prevEl:D}=e.navigation;D&&(e.isBeginning?(g(D),p(D)):(m(D),d(D))),O&&(e.isEnd?(g(O),p(O)):(m(O),d(O)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function N(){return k()&&e.params.pagination.clickable}function A(){const O=e.params.a11y;k()&&e.pagination.bullets.forEach(D=>{e.params.pagination.clickable&&(d(D),e.params.pagination.renderBullet||(h(D,"button"),b(D,O.paginationBulletMessage.replace(/\{\{index\}\}/,ci(D)+1)))),D.matches(Ut(e.params.pagination.bulletActiveClass))?D.setAttribute("aria-current","true"):D.removeAttribute("aria-current")})}const w=(O,D,R)=>{d(O),O.tagName!=="BUTTON"&&(h(O,"button"),O.addEventListener("keydown",x)),b(O,R),y(O,D)},T=O=>{s&&s!==O.target&&!s.contains(O.target)&&(o=!0),e.a11y.clicked=!0},j=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=O=>{c=new Date().getTime()},M=O=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const D=O.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!D||!e.slides.includes(D))return;s=D;const R=e.slides.indexOf(D)===e.activeIndex,P=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(D);R||P||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(D.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(D),0),o=!1)}))},E=()=>{const O=e.params.a11y;O.itemRoleDescriptionMessage&&f(e.slides,O.itemRoleDescriptionMessage),O.slideRole&&h(e.slides,O.slideRole);const D=e.slides.length;O.slideLabelMessage&&e.slides.forEach((R,P)=>{const B=e.params.loop?parseInt(R.getAttribute("data-swiper-slide-index"),10):P,U=O.slideLabelMessage.replace(/\{\{index\}\}/,B+1).replace(/\{\{slidesLength\}\}/,D);b(R,U)})},V=()=>{const O=e.params.a11y;e.el.append(a);const D=e.el;O.containerRoleDescriptionMessage&&f(D,O.containerRoleDescriptionMessage),O.containerMessage&&b(D,O.containerMessage);const R=e.wrapperEl,P=O.id||R.getAttribute("id")||`swiper-wrapper-${u(16)}`,B=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(R,P),v(R,B),E();let{nextEl:U,prevEl:Z}=e.navigation?e.navigation:{};U=ze(U),Z=ze(Z),U&&U.forEach(te=>w(te,P,O.nextSlideMessage)),Z&&Z.forEach(te=>w(te,P,O.prevSlideMessage)),N()&&ze(e.pagination.el).forEach(ve=>{ve.addEventListener("keydown",x)}),Et().addEventListener("visibilitychange",C),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",j,!0)};function F(){a&&a.remove();let{nextEl:O,prevEl:D}=e.navigation?e.navigation:{};O=ze(O),D=ze(D),O&&O.forEach(P=>P.removeEventListener("keydown",x)),D&&D.forEach(P=>P.removeEventListener("keydown",x)),N()&&ze(e.pagination.el).forEach(B=>{B.removeEventListener("keydown",x)}),Et().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",j,!0))}n("beforeInit",()=>{a=oi("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&V()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&I()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&A()}),n("destroy",()=>{e.params.a11y.enabled&&F()})}function Pi(t){let{swiper:e,extendParams:i,on:n,emit:a,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 s,c,r=o&&o.autoplay?o.autoplay.delay:3e3,u=o&&o.autoplay?o.autoplay.delay:3e3,d,p=new Date().getTime(),h,f,y,b,S,v,g;function m(D){!e||e.destroyed||!e.wrapperEl||D.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",m),!(g||D.detail&&D.detail.bySwiperTouchMove)&&T())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(u=d,h=!1);const D=e.autoplay.paused?d:p+u-new Date().getTime();e.autoplay.timeLeft=D,a("autoplayTimeLeft",D,D/r),c=requestAnimationFrame(()=>{x()})},I=()=>{let D;return e.virtual&&e.params.virtual.enabled?D=e.slides.filter(P=>P.classList.contains("swiper-slide-active"))[0]:D=e.slides[e.activeIndex],D?parseInt(D.getAttribute("data-swiper-autoplay"),10):void 0},k=D=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),x();let R=typeof D>"u"?e.params.autoplay.delay:D;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const P=I();!Number.isNaN(P)&&P>0&&typeof D>"u"&&(R=P,r=P,u=P),d=R;const B=e.params.speed,U=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(B,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,B,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(B,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,B,!0,!0),a("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return R>0?(clearTimeout(s),s=setTimeout(()=>{U()},R)):requestAnimationFrame(()=>{U()}),R},N=()=>{p=new Date().getTime(),e.autoplay.running=!0,k(),a("autoplayStart")},A=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},w=(D,R)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),D||(v=!0);const P=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",m):T()};if(e.autoplay.paused=!0,R){S&&(d=e.params.autoplay.delay),S=!1,P();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),P())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),v?(v=!1,k(d)):k(),e.autoplay.paused=!1,a("autoplayResume"))},j=()=>{if(e.destroyed||!e.autoplay.running)return;const D=Et();D.visibilityState==="hidden"&&(v=!0,w(!0)),D.visibilityState==="visible"&&T()},C=D=>{D.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&w(!0))},M=D=>{D.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",M))},V=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",M))},F=()=>{Et().addEventListener("visibilitychange",j)},O=()=>{Et().removeEventListener("visibilitychange",j)};n("init",()=>{e.params.autoplay.enabled&&(E(),F(),N())}),n("destroy",()=>{V(),O(),e.autoplay.running&&A()}),n("_freeModeStaticRelease",()=>{(y||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?A():w(!0,!0)}),n("beforeTransitionStart",(D,R,P)=>{e.destroyed||!e.autoplay.running||(P||!e.params.autoplay.disableOnInteraction?w(!0,!0):A())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){A();return}f=!0,y=!1,v=!1,b=setTimeout(()=>{v=!0,y=!0,w(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(b),clearTimeout(s),e.params.autoplay.disableOnInteraction){y=!1,f=!1;return}y&&e.params.cssMode&&T(),y=!1,f=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:N,stop:A,pause:w,resume:T})}function mo(t){let{swiper:e,extendParams:i,emit:n,once:a}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Nt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:p,rtlTranslate:h,snapGrid:f,touchEventsData:y}=e,S=Nt()-y.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<f.length?e.slideTo(f.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(y.velocities.length>1){const A=y.velocities.pop(),w=y.velocities.pop(),T=A.position-w.position,j=A.time-w.time;e.velocity=T/j,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(j>150||Nt()-A.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,y.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let m=e.translate+g;h&&(m=-m);let x=!1,I;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let N;if(m<e.maxTranslate())d.freeMode.momentumBounce?(m+e.maxTranslate()<-k&&(m=e.maxTranslate()-k),I=e.maxTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.maxTranslate(),d.loop&&d.centeredSlides&&(N=!0);else if(m>e.minTranslate())d.freeMode.momentumBounce?(m-e.minTranslate()>k&&(m=e.minTranslate()+k),I=e.minTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.minTranslate(),d.loop&&d.centeredSlides&&(N=!0);else if(d.freeMode.sticky){let A;for(let w=0;w<f.length;w+=1)if(f[w]>-m){A=w;break}Math.abs(f[A]-m)<Math.abs(f[A-1]-m)||e.swipeDirection==="next"?m=f[A]:m=f[A-1],m=-m}if(N&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?v=Math.abs((-m-e.translate)/e.velocity):v=Math.abs((m-e.translate)/e.velocity),d.freeMode.sticky){const A=Math.abs((h?-m:m)-e.translate),w=e.slidesSizesGrid[e.activeIndex];A<w?v=d.speed:A<2*w?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&x?(e.updateProgress(I),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Yi(p,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(I),Yi(p,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(m),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Yi(p,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(m),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&n("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:s,onTouchEnd:c}})}let Qi;function fo(){const t=At(),e=Et();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function qn(){return Qi||(Qi=fo()),Qi}let $i;function ho(t){let{userAgent:e}=t===void 0?{}:t;const i=qn(),n=At(),a=n.navigator.platform,o=e||n.navigator.userAgent,s={ios:!1,android:!1},c=n.screen.width,r=n.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const p=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=a==="Win32";let y=a==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&i.touch&&b.indexOf(`${c}x${r}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),u&&!f&&(s.os="android",s.android=!0),(d||h||p)&&(s.os="ios",s.ios=!0),s}function Yn(t){return t===void 0&&(t={}),$i||($i=ho(t)),$i}let en;function Ao(){const t=At(),e=Yn();let i=!1;function n(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(n()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n(),s=o||a&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function bo(){return en||(en=Ao()),en}function go(t){let{swiper:e,on:i,emit:n}=t;const a=At();let o=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(p=>{s=a.requestAnimationFrame(()=>{const{width:h,height:f}=e;let y=h,b=f;p.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:m}=S;m&&m!==e.el||(y=g?g.width:(v[0]||v).inlineSize,b=g?g.height:(v[0]||v).blockSize)}),(y!==h||b!==f)&&c()})}),o.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},d=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function yo(t){let{swiper:e,extendParams:i,on:n,emit:a}=t;const o=[],s=At(),c=function(d,p){p===void 0&&(p={});const h=s.MutationObserver||s.WebkitMutationObserver,f=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){a("observerUpdate",y[0]);return}const b=function(){a("observerUpdate",y[0])};s.requestAnimationFrame?s.requestAnimationFrame(b):s.setTimeout(b,0)});f.observe(d,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),o.push(f)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Ci(e.hostEl);for(let p=0;p<d.length;p+=1)c(d[p])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{o.forEach(d=>{d.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",r),n("destroy",u)}var wo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const a=i?"unshift":"push";return t.split(" ").forEach(o=>{n.eventsListeners[o]||(n.eventsListeners[o]=[]),n.eventsListeners[o][a](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function a(){n.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];e.apply(n,s)}return a.__emitterProxy=e,n.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((a,o)=>{(a===e||a.__emitterProxy&&a.__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 a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];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(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(n,i)})}),t}};function So(){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(Zt(n,"padding-left")||0,10)-parseInt(Zt(n,"padding-right")||0,10),i=i-parseInt(Zt(n,"padding-top")||0,10)-parseInt(Zt(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 xo(){const t=this;function e(T,j){return parseFloat(T.getPropertyValue(t.getDirectionLabel(j))||0)}const i=t.params,{wrapperEl:n,slidesEl:a,size:o,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=Ft(a,`.${t.params.slideClass}, swiper-slide`),p=r?t.virtual.slides.length:d.length;let h=[];const f=[],y=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=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 m=i.spaceBetween,x=-b,I=0,k=0;if(typeof o>"u")return;typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*o:typeof m=="string"&&(m=parseFloat(m)),t.virtualSize=-m,d.forEach(T=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Ti(n,"--swiper-centered-offset-before",""),Ti(n,"--swiper-centered-offset-after",""));const N=i.grid&&i.grid.rows>1&&t.grid;N?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let A;const w=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<p;T+=1){A=0;let j;if(d[T]&&(j=d[T]),N&&t.grid.updateSlide(T,j,d),!(d[T]&&Zt(j,"display")==="none")){if(i.slidesPerView==="auto"){w&&(d[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(j),M=j.style.transform,E=j.style.webkitTransform;if(M&&(j.style.transform="none"),E&&(j.style.webkitTransform="none"),i.roundLengths)A=t.isHorizontal()?Gi(j,"width",!0):Gi(j,"height",!0);else{const V=e(C,"width"),F=e(C,"padding-left"),O=e(C,"padding-right"),D=e(C,"margin-left"),R=e(C,"margin-right"),P=C.getPropertyValue("box-sizing");if(P&&P==="border-box")A=V+D+R;else{const{clientWidth:B,offsetWidth:U}=j;A=V+F+O+D+R+(U-B)}}M&&(j.style.transform=M),E&&(j.style.webkitTransform=E),i.roundLengths&&(A=Math.floor(A))}else A=(o-(i.slidesPerView-1)*m)/i.slidesPerView,i.roundLengths&&(A=Math.floor(A)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${A}px`);d[T]&&(d[T].swiperSlideSize=A),y.push(A),i.centeredSlides?(x=x+A/2+I/2+m,I===0&&T!==0&&(x=x-o/2-m),T===0&&(x=x-o/2-m),Math.abs(x)<1/1e3&&(x=0),i.roundLengths&&(x=Math.floor(x)),k%i.slidesPerGroup===0&&h.push(x),f.push(x)):(i.roundLengths&&(x=Math.floor(x)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&h.push(x),f.push(x),x=x+A+m),t.virtualSize+=A+m,I=A,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+S,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+m}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+m}px`),N&&t.grid.updateWrapperSize(A,h),!i.centeredSlides){const T=[];for(let j=0;j<h.length;j+=1){let C=h[j];i.roundLengths&&(C=Math.floor(C)),h[j]<=t.virtualSize-o&&T.push(C)}h=T,Math.floor(t.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-o)}if(r&&i.loop){const T=y[0]+m;if(i.slidesPerGroup>1){const j=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let M=0;M<j;M+=1)h.push(h[h.length-1]+C)}for(let j=0;j<t.virtual.slidesBefore+t.virtual.slidesAfter;j+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+T),f.push(f[f.length-1]+T),t.virtualSize+=T}if(h.length===0&&(h=[0]),m!==0){const T=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((j,C)=>!i.cssMode||i.loop?!0:C!==d.length-1).forEach(j=>{j.style[T]=`${m}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(C=>{T+=C+(m||0)}),T-=m;const j=T-o;h=h.map(C=>C<=0?-b:C>j?j+S:C)}if(i.centerInsufficientSlides){let T=0;y.forEach(C=>{T+=C+(m||0)}),T-=m;const j=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+j<o){const C=(o-T-j)/2;h.forEach((M,E)=>{h[E]=M-C}),f.forEach((M,E)=>{f[E]=M+C})}}if(Object.assign(t,{slides:d,snapGrid:h,slidesGrid:f,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ti(n,"--swiper-centered-offset-before",`${-h[0]}px`),Ti(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],j=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+j)}if(p!==u&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,j=t.el.classList.contains(T);p<=i.maxBackfaceHiddenSlides?j||t.el.classList.add(T):j&&t.el.classList.remove(T)}}function To(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let a=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>n?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const c=e.activeIndex+o;if(c>e.slides.length&&!n)break;i.push(s(c))}else i.push(s(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const c=i[o].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function Eo(){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 Gn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Co(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:a,snapGrid:o}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<n.length;r+=1){const u=n[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=n[0].swiperSlideOffset);const p=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),h=(s-o[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),f=-(s-d),y=f+e.slidesSizesGrid[r],b=f>=0&&f<=e.size-e.slidesSizesGrid[r],S=f>=0&&f<e.size-1||y>1&&y<=e.size||f<=0&&y>=e.size;S&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),Gn(u,S,i.slideVisibleClass),Gn(u,b,i.slideFullyVisibleClass),u.progress=a?-p:p,u.originalProgress=a?-h:h}}function ko(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:o,isEnd:s,progressLoop:c}=e;const r=o,u=s;if(n===0)a=0,o=!0,s=!0;else{a=(t-e.minTranslate())/n;const d=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;o=d||a<=0,s=p||a>=1,d&&(a=0),p&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[d],f=e.slidesGrid[p],y=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=h?c=(b-h)/y:c=(b+y-f)/y,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:o,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!o||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const tn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Io(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:a}=t,o=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=p=>Ft(n,`.${i.slideClass}${p}, swiper-slide${p}`)[0];let r,u,d;if(o)if(i.loop){let p=a-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${p}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(p=>p.column===a)[0],d=e.filter(p=>p.column===a+1)[0],u=e.filter(p=>p.column===a-1)[0]):r=e[a];r&&(s||(d=vo(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=uo(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(p=>{tn(p,p===r,i.slideActiveClass),tn(p,p===d,i.slideNextClass),tn(p,p===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Oi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let a=n.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(n.shadowRoot?a=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(a=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},nn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},ln=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+n+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&nn(t,u)});return}const o=a+n-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=o+e;s+=1){const c=(s%i+i)%i;(c<a||c>o)&&nn(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(o+e,i-1);s+=1)s!==a&&(s>o||s<a)&&nn(t,s)};function Po(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let a;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?a=o:n>=e[o]&&n<e[o+1]&&(a=o+1):n>=e[o]&&(a=o);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Oo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:a,activeIndex:o,realIndex:s,snapIndex:c}=e;let r=t,u;const d=f=>{let y=f-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof r>"u"&&(r=Po(e)),n.indexOf(i)>=0)u=n.indexOf(i);else{const f=Math.min(a.slidesPerGroupSkip,r);u=f+Math.floor((r-f)/a.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),r===o&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const p=e.grid&&a.grid&&a.grid.rows>1;let h;if(e.virtual&&a.virtual.enabled&&a.loop)h=d(r);else if(p){const f=e.slides.filter(b=>b.column===r)[0];let y=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(f),0)),h=Math.floor(y/a.grid.rows)}else if(e.slides[r]){const f=e.slides[r].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=r}else h=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:h,previousIndex:o,activeIndex:r}),e.initialized&&ln(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function Mo(t,e){const i=this,n=i.params;let a=t.closest(`.${n.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${n.slideClass}, swiper-slide`)&&(a=c)});let o=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){o=!0,s=c;break}}if(a&&o)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Lo={updateSize:So,updateSlides:xo,updateAutoHeight:To,updateSlidesOffset:Eo,updateSlidesProgress:Co,updateProgress:ko,updateSlidesClasses:Io,updateActiveIndex:Oo,updateClickedSlide:Mo};function jo(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:a,wrapperEl:o}=e;if(i.virtualTranslate)return n?-a:a;if(i.cssMode)return a;let s=ro(o,t);return s+=e.cssOverflowAdjustment(),n&&(s=-s),s||0}function No(t,e){const i=this,{rtlTranslate:n,params:a,wrapperEl:o,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=n?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const p=i.maxTranslate()-i.minTranslate();p===0?d=0:d=(t-i.minTranslate())/p,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Ro(){return-this.snapGrid[0]}function Do(){return-this.snapGrid[this.snapGrid.length-1]}function Vo(t,e,i,n,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const o=this,{params:s,wrapperEl:c}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const r=o.minTranslate(),u=o.maxTranslate();let d;if(n&&t>r?d=r:n&&t<u?d=u:d=t,o.updateProgress(d),s.cssMode){const p=o.isHorizontal();if(e===0)c[p?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Un({swiper:o,targetPosition:-d,side:p?"left":"top"}),!0;c.scrollTo({[p?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(h){!o||o.destroyed||h.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 Bo={getTranslate:jo,setTranslate:No,minTranslate:Ro,maxTranslate:Do,translateTo:Vo};function Fo(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 Zn(t){let{swiper:e,runCallbacks:i,direction:n,step:a}=t;const{activeIndex:o,previousIndex:s}=e;let c=n;if(c||(o>s?c="next":o<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&o!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function Wo(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Zn({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function zo(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Zn({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Ho={setTransition:Fo,transitionStart:Wo,transitionEnd:zo};function Uo(t,e,i,n,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:p,rtlTranslate:h,wrapperEl:f,enabled:y}=o;if(!y&&!n&&!a||o.destroyed||o.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const b=Math.min(o.params.slidesPerGroupSkip,s);let S=b+Math.floor((s-b)/o.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const v=-r[S];if(c.normalizeSlideIndex)for(let m=0;m<u.length;m+=1){const x=-Math.floor(v*100),I=Math.floor(u[m]*100),k=Math.floor(u[m+1]*100);typeof u[m+1]<"u"?x>=I&&x<k-(k-I)/2?s=m:x>=I&&x<k&&(s=m+1):x>=I&&(s=m)}if(o.initialized&&s!==p&&(!o.allowSlideNext&&(h?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate())||!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(p||0)!==s))return!1;s!==(d||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(v);let g;if(s>p?g="next":s<p?g="prev":g="reset",h&&-v===o.translate||!h&&v===o.translate)return o.updateActiveIndex(s),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),c.effect!=="slide"&&o.setTranslate(v),g!=="reset"&&(o.transitionStart(i,g),o.transitionEnd(i,g)),!1;if(c.cssMode){const m=o.isHorizontal(),x=h?v:-v;if(e===0){const I=o.virtual&&o.params.virtual.enabled;I&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),I&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[m?"scrollLeft":"scrollTop"]=x})):f[m?"scrollLeft":"scrollTop"]=x,I&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Un({swiper:o,targetPosition:x,side:m?"left":"top"}),!0;f.scrollTo({[m?"left":"top"]:x,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(v),o.updateActiveIndex(s),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(x){!o||o.destroyed||x.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 Xo(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const o=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(o){const h=s*a.params.grid.rows;c=a.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else c=a.getSlideIndexByData(s);const r=o?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let p=r-c<d;if(u&&(p=p||c<Math.ceil(d/2)),n&&u&&a.params.slidesPerView!=="auto"&&!o&&(p=!1),p){const h=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?c+1:c-r+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(o){const h=s*a.params.grid.rows;s=a.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,n)}),a}function qo(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:a,params:o,animating:s}=n;if(!a||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let c=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(c=Math.max(n.slidesPerViewDynamic("current",!0),1));const r=n.activeIndex<o.slidesPerGroupSkip?1:c,u=n.virtual&&o.virtual.enabled;if(o.loop){if(s&&!u&&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+r,t,e,i)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+r,t,e,i)}function Yo(t,e,i){e===void 0&&(e=!0);const n=this,{params:a,snapGrid:o,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=n;if(!r||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const d=n.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const p=c?n.translate:-n.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const f=h(p),y=o.map(v=>h(v));let b=o[y.indexOf(f)-1];if(typeof b>"u"&&a.cssMode){let v;o.forEach((g,m)=>{f>=g&&(v=m)}),typeof v<"u"&&(b=o[v>0?v-1:v])}let S=0;if(typeof b<"u"&&(S=s.indexOf(b),S<0&&(S=n.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(a.loop&&n.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,t,e,i)}),!0;return n.slideTo(S,t,e,i)}function Go(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 Zo(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let o=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,o),c=s+Math.floor((o-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*n&&(o+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*n&&(o-=a.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,a.slidesGrid.length-1),a.slideTo(o,t,e,i)}function Ko(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,o;const s=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?a<t.loopedSlides-n/2||a>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),a=t.getSlideIndex(Ft(i,`${s}[data-swiper-slide-index="${o}"]`)[0]),li(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-n?(t.loopFix(),a=t.getSlideIndex(Ft(i,`${s}[data-swiper-slide-index="${o}"]`)[0]),li(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var _o={slideTo:Uo,slideToLoop:Xo,slideNext:qo,slidePrev:Yo,slideReset:Go,slideToClosest:Zo,slideToClickedSlide:Ko};function Jo(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{Ft(n,`.${i.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},o=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(o?i.grid.rows:1),c=e.slides.length%s!==0,r=o&&e.slides.length%i.grid.rows!==0,u=d=>{for(let p=0;p<d;p+=1){const h=e.isElement?oi("swiper-slide",[i.slideBlankClass]):oi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else Ei("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else Ei("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Qo(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:a,activeSlideIndex:o,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:f}=r,{centeredSlides:y}=f;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&f.virtual.enabled){i&&(!f.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):f.centeredSlides&&r.snapIndex<f.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=p,r.emit("loopFix");return}let b=f.slidesPerView;b==="auto"?b=r.slidesPerViewDynamic():(b=Math.ceil(parseFloat(f.slidesPerView,10)),y&&b%2===0&&(b=b+1));const S=f.slidesPerGroupAuto?b:f.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=f.loopAdditionalSlides,r.loopedSlides=v;const g=r.grid&&f.grid&&f.grid.rows>1;u.length<b+v?Ei("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&&f.grid.fill==="row"&&Ei("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const m=[],x=[];let I=r.activeIndex;typeof o>"u"?o=r.getSlideIndex(u.filter(M=>M.classList.contains(f.slideActiveClass))[0]):I=o;const k=n==="next"||!n,N=n==="prev"||!n;let A=0,w=0;const T=g?Math.ceil(u.length/f.grid.rows):u.length,C=(g?u[o].column:o)+(y&&typeof a>"u"?-b/2+.5:0);if(C<v){A=Math.max(v-C,S);for(let M=0;M<v-C;M+=1){const E=M-Math.floor(M/T)*T;if(g){const V=T-E-1;for(let F=u.length-1;F>=0;F-=1)u[F].column===V&&m.push(F)}else m.push(T-E-1)}}else if(C+b>T-v){w=Math.max(C-(T-v*2),S);for(let M=0;M<w;M+=1){const E=M-Math.floor(M/T)*T;g?u.forEach((V,F)=>{V.column===E&&x.push(F)}):x.push(E)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),N&&m.forEach(M=>{u[M].swiperLoopMoveDOM=!0,h.prepend(u[M]),u[M].swiperLoopMoveDOM=!1}),k&&x.forEach(M=>{u[M].swiperLoopMoveDOM=!0,h.append(u[M]),u[M].swiperLoopMoveDOM=!1}),r.recalcSlides(),f.slidesPerView==="auto"?r.updateSlides():g&&(m.length>0&&N||x.length>0&&k)&&r.slides.forEach((M,E)=>{r.grid.updateSlide(E,M,r.slides)}),f.watchSlidesProgress&&r.updateSlidesOffset(),i){if(m.length>0&&N){if(typeof e>"u"){const M=r.slidesGrid[I],V=r.slidesGrid[I+A]-M;c?r.setTranslate(r.translate-V):(r.slideTo(I+Math.ceil(A),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-V,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-V))}else if(a){const M=g?m.length/f.grid.rows:m.length;r.slideTo(r.activeIndex+M,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(x.length>0&&k)if(typeof e>"u"){const M=r.slidesGrid[I],V=r.slidesGrid[I-w]-M;c?r.setTranslate(r.translate-V):(r.slideTo(I-w,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-V,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-V))}else{const M=g?x.length/f.grid.rows:x.length;r.slideTo(r.activeIndex-M,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=p,r.controller&&r.controller.control&&!s){const M={slideRealIndex:e,direction:n,setTranslate:a,activeSlideIndex:o,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...M,slideTo:E.params.slidesPerView===f.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...M,slideTo:r.controller.control.params.slidesPerView===f.slidesPerView?i:!1})}r.emit("loopFix")}function $o(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(a=>{const o=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;n[o]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),n.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ea={loopCreate:Jo,loopFix:Qo,loopDestroy:$o};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 ia(){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 na={setGrabCursor:ta,unsetGrabCursor:ia};function la(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Et()||n===At())return null;n.assignedSlot&&(n=n.assignedSlot);const a=n.closest(t);return!a&&!n.getRootNode?null:a||i(n.getRootNode().host)}return i(e)}function Kn(t,e,i){const n=At(),{params:a}=t,o=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return o&&(i<=s||i>=n.innerWidth-s)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function oa(t){const e=this,i=Et();let n=t;n.originalEvent&&(n=n.originalEvent);const a=e.touchEventsData;if(n.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==n.pointerId)return;a.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(a.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Kn(e,n,n.targetTouches[0].pageX);return}const{params:o,touches:s,enabled:c}=e;if(!c||!o.simulateTouch&&n.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let r=n.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in n&&n.which===3||"button"in n&&n.button>0||a.isTouched&&a.isMoved)return;const u=!!o.noSwipingClass&&o.noSwipingClass!=="",d=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&d&&(r=d[0]);const p=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(h?la(p,r):r.closest(p))){e.allowClick=!0;return}if(o.swipeHandler&&!r.closest(o.swipeHandler))return;s.currentX=n.pageX,s.currentY=n.pageY;const f=s.currentX,y=s.currentY;if(!Kn(e,n,f))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=f,s.startY=y,a.touchStartTime=Nt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(a.allowThresholdMove=!1);let b=!0;r.matches(a.focusableElements)&&(b=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const S=b&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||S)&&!r.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function aa(t){const e=Et(),i=this,n=i.touchEventsData,{params:a,touches:o,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(n.touchId!==null||r.pointerId!==n.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(k=>k.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=r;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,p=u.pageY;if(r.preventedByNestedSwiper){o.startX=d,o.startY=p;return}if(!i.allowTouchMove){r.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:d,startY:p,currentX:d,currentY:p}),n.touchStartTime=Nt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(p<o.startY&&i.translate<=i.maxTranslate()||p>o.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(d<o.startX&&i.translate<=i.maxTranslate()||d>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",r),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=p;const h=o.currentX-o.startX,f=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let k;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:h*h+f*f>=25&&(k=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?k>a.touchAngle:90-k>a.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",r),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||r.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let y=i.isHorizontal()?h:f,b=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;a.oneWayMovement&&(y=Math.abs(y)*(s?1:-1),b=Math.abs(b)*(s?1:-1)),o.diff=y,y*=a.touchRatio,s&&(y=-y,b=-b);const S=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const v=i.params.loop&&!a.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(k)}n.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let m;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(o,{startX:d,startY:p,currentX:d,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",r),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let x=!0,I=a.resistanceRatio;if(a.touchReleaseOnEdges&&(I=0),y>0?(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(x=!1,a.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**I))):y<0&&(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(x=!1,a.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**I))),x&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(y)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,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}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function sa(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let a;if(n.type==="touchend"||n.type==="touchcancel"){if(a=[...n.changedTouches].filter(I=>I.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;a=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const p=Nt(),h=p-i.touchStartTime;if(e.allowClick){const I=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(I&&I[0]||n.target,I),e.emit("tap click",n),h<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Nt(),li(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let f;if(s.followFinger?f=r?e.translate:-e.translate:f=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const y=f>=-e.maxTranslate()&&!e.params.loop;let b=0,S=e.slidesSizesGrid[0];for(let I=0;I<u.length;I+=I<s.slidesPerGroupSkip?1:s.slidesPerGroup){const k=I<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[I+k]<"u"?(y||f>=u[I]&&f<u[I+k])&&(b=I,S=u[I+k]-u[I]):(y||f>=u[I])&&(b=I,S=u[u.length-1]-u[u.length-2])}let v=null,g=null;s.rewind&&(e.isBeginning?g=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const m=(f-u[b])/S,x=b<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:b+x):e.slideTo(b)),e.swipeDirection==="prev"&&(m>1-s.longSwipesRatio?e.slideTo(b+x):g!==null&&m<0&&Math.abs(m)>s.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+x):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:b+x),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function _n(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:a,snapGrid:o}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function ra(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function da(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const o=t.maxTranslate()-t.minTranslate();o===0?a=0:a=(t.translate-t.minTranslate())/o,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ca(t){const e=this;Oi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ua(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Jn=(t,e)=>{const i=Et(),{params:n,el:a,wrapperEl:o,device:s}=t,c=!!n.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&a[r]("click",t.onClick,!0),n.cssMode&&o[r]("scroll",t.onScroll),n.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",_n,!0):t[u]("observerUpdate",_n,!0),a[r]("load",t.onLoad,{capture:!0}))};function va(){const t=this,{params:e}=t;t.onTouchStart=oa.bind(t),t.onTouchMove=aa.bind(t),t.onTouchEnd=sa.bind(t),t.onDocumentTouchStart=ua.bind(t),e.cssMode&&(t.onScroll=da.bind(t)),t.onClick=ra.bind(t),t.onLoad=ca.bind(t),Jn(t,"on")}function pa(){Jn(this,"off")}var ma={attachEvents:va,detachEvents:pa};const Qn=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function fa(){const t=this,{realIndex:e,initialized:i,params:n,el:a}=t,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in o?o[s]:void 0)||t.originalParams,u=Qn(t,n),d=Qn(t,r),p=t.params.grabCursor,h=r.grabCursor,f=n.enabled;u&&!d?(a.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${n.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&n.grid.fill==="column")&&a.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!h?t.unsetGrabCursor():!p&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof r[m]>"u")return;const x=n[m]&&n[m].enabled,I=r[m]&&r[m].enabled;x&&!I&&t[m].disable(),!x&&I&&t[m].enable()});const y=r.direction&&r.direction!==n.direction,b=n.loop&&(r.slidesPerView!==n.slidesPerView||y),S=n.loop;y&&i&&t.changeDirection(),Pt(t.params,r);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!v?t.disable():!f&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(b?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",r)}function ha(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const a=At(),o=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:o*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(n=r):u<=i.clientWidth&&(n=r)}return n||"max"}var Aa={setBreakpoint:fa,getBreakpoint:ha};function ba(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(a=>{n[a]&&i.push(e+a)}):typeof n=="string"&&i.push(e+n)}),i}function ga(){const t=this,{classNames:e,params:i,rtl:n,el:a,device:o}=t,s=ba(["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(...s),a.classList.add(...e),t.emitContainerClasses()}function ya(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var wa={addClasses:ga,removeClasses:ya};function Sa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const a=t.slides.length-1,o=t.slidesGrid[a]+t.slidesSizesGrid[a]+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 xa={checkOverflow:Sa},on={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 Ta(t,e){return function(n){n===void 0&&(n={});const a=Object.keys(n)[0],o=n[a];if(typeof o!="object"||o===null){Pt(e,n);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in o)){Pt(e,n);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Pt(e,n)}}const an={eventsEmitter:wo,update:Lo,translate:Bo,transition:Ho,slide:_o,loop:ea,grabCursor:na,events:ma,breakpoints:Aa,checkOverflow:xa,classes:wa},sn={};let rn=class Xt{constructor(){let e,i;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=Pt({},i),e&&!i.el&&(i.el=e);const s=Et();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(p=>{const h=Pt({},i,{el:p});d.push(new Xt(h))}),d}const c=this;c.__swiper__=!0,c.support=qn(),c.device=Yn({userAgent:i.userAgent}),c.browser=bo(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:Ta(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=Pt({},on,r);return c.params=Pt({},u,sn,i),c.originalParams=Pt({},c.params),c.passedParams=Pt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,a=Ft(i,`.${n.slideClass}, swiper-slide`),o=ci(a[0]);return ci(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=Ft(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const a=n.minTranslate(),s=(n.maxTranslate()-a)*e+a;n.translateTo(s,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const a=e.getSlideClasses(n);i.push({slideEl:n,classNames:a}),e.emit("_slideClass",n,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:a,slides:o,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=n;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let p=o[u]?Math.ceil(o[u].swiperSlideSize):0,h;for(let f=u+1;f<o.length;f+=1)o[f]&&!h&&(p+=Math.ceil(o[f].swiperSlideSize),d+=1,p>r&&(h=!0));for(let f=u-1;f>=0;f-=1)o[f]&&!h&&(p+=o[f].swiperSlideSize,d+=1,p>r&&(h=!0))}else if(e==="current")for(let p=u+1;p<o.length;p+=1)(i?s[p]+c[p]-s[u]<r:s[p]-s[u]<r)&&(d+=1);else for(let p=u-1;p>=0;p-=1)s[u]-s[p]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Oi(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)a(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const s=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(s.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||a()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,a=n.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${a}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(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 a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(a()):Ft(n,a())[0];return!s&&i.params.createElements&&(s=oi("div",i.params.wrapperClass),n.append(s),Ft(n,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:n,wrapperEl:s,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Zt(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Zt(n,"direction")==="rtl"),wrongRTL:Zt(s,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(o=>{o.complete?Oi(i,o):o.addEventListener("load",s=>{Oi(i,s.target)})}),ln(i),i.initialized=!0,ln(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:a,el:o,wrapperEl:s,slides:c}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),a.loop&&n.loopDestroy(),i&&(n.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(r=>{n.off(r)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),ao(n)),n.destroyed=!0),null}static extendDefaults(e){Pt(sn,e)}static get extendedDefaults(){return sn}static get defaults(){return on}static installModule(e){Xt.prototype.__modules__||(Xt.prototype.__modules__=[]);const i=Xt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Xt.installModule(i)),Xt):(Xt.installModule(e),Xt)}};Object.keys(an).forEach(t=>{Object.keys(an[t]).forEach(e=>{rn.prototype[e]=an[t][e]})}),rn.use([go,yo]);const $n=["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 ei(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ai(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]:ei(e[n])&&ei(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:ai(t[n],e[n]):t[n]=e[n]})}function el(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function tl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function il(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function nl(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 Ea(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ca(t){let{swiper:e,slides:i,passedParams:n,changedParams:a,nextEl:o,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:d,pagination:p,navigation:h,scrollbar:f,virtual:y,thumbs:b}=e;let S,v,g,m,x,I,k,N;a.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),a.includes("controller")&&n.controller&&n.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&n.pagination&&(n.pagination.el||r)&&(d.pagination||d.pagination===!1)&&p&&!p.el&&(g=!0),a.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&f&&!f.el&&(m=!0),a.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||o)&&(d.navigation||d.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(x=!0);const A=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),d[w].prevEl=void 0,d[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),d[w].el=void 0,e[w].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!n.loop?I=!0:!d.loop&&n.loop?k=!0:N=!0),u.forEach(w=>{if(ei(d[w])&&ei(n[w]))Object.assign(d[w],n[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in n[w]&&!n[w].enabled&&A(w);else{const T=n[w];(T===!0||T===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?T===!1&&A(w):d[w]=n[w]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&y&&d.virtual.enabled?(y.slides=i,y.update(!0)):a.includes("virtual")&&y&&d.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),a.includes("children")&&i&&d.loop&&(N=!0),S&&b.init()&&b.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),p.init(),p.render(),p.update()),m&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),f.init(),f.updateSize(),f.setTranslate()),x&&(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)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),o&&(d.navigation.nextEl=o),s&&(d.navigation.prevEl=s),h.init(),h.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),a.includes("direction")&&e.changeDirection(n.direction,!1),(I||N)&&e.loopDestroy(),(k||N)&&e.loopCreate(),e.update()}function ka(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},a={};ai(i,on),i._emitClasses=!0,i.init=!1;const o={},s=$n.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?ei(t[r])?(i[r]={},a[r]={},ai(i[r],t[r]),ai(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?n[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:o[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:o,events:n}}function Ia(t,e){let{el:i,nextEl:n,prevEl:a,paginationEl:o,scrollbarEl:s,swiper:c}=t;el(e)&&n&&a&&(c.params.navigation.nextEl=n,c.originalParams.navigation.nextEl=n,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),tl(e)&&o&&(c.params.pagination.el=o,c.originalParams.pagination.el=o),il(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Pa(t,e,i,n,a){const o=[];if(!e)return o;const s=r=>{o.indexOf(r)<0&&o.push(r)};if(i&&n){const r=n.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),n.length!==i.length&&s("children")}return $n.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(ei(t[r])&&ei(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(p=>{t[r][p]!==e[r][p]&&s(r)}),d.forEach(p=>{t[r][p]!==e[r][p]&&s(r)}))}else t[r]!==e[r]&&s(r)}),o}const Oa=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 Mi(){return Mi=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},Mi.apply(this,arguments)}function ll(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ol(t){const e=[];return l.Children.toArray(t).forEach(i=>{ll(i)?e.push(i):i.props&&i.props.children&&ol(i.props.children).forEach(n=>e.push(n))}),e}function Ma(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return l.Children.toArray(t).forEach(n=>{if(ll(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const a=ol(n.props.children);a.length>0?a.forEach(o=>e.push(o)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function La(t,e,i){if(!i)return null;const n=d=>{let p=d;return d<0?p=e.length+d:p>=e.length&&(p=p-e.length),p},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=o&&d<=s&&u.push(e[n(d)]);return u.map((d,p)=>l.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${p}`}))}function ui(t,e){return typeof window>"u"?l.useEffect(t,e):l.useLayoutEffect(t,e)}const dn=l.createContext(null),cn=()=>l.useContext(dn),ja=l.createContext(null),ti=l.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:a="div",children:o,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=l.useState("swiper"),[p,h]=l.useState(null),[f,y]=l.useState(!1),b=l.useRef(!1),S=l.useRef(null),v=l.useRef(null),g=l.useRef(null),m=l.useRef(null),x=l.useRef(null),I=l.useRef(null),k=l.useRef(null),N=l.useRef(null),{params:A,passedParams:w,rest:T,events:j}=ka(c),{slides:C,slots:M}=Ma(o),E=()=>{y(!f)};Object.assign(A.on,{_containerClasses(R,P){d(P)}});const V=()=>{Object.assign(A.on,j),r=!0;const R={...A};if(delete R.wrapperClass,v.current=new rn(R),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const P={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};ai(v.current.params.virtual,P),ai(v.current.originalParams.virtual,P)}};S.current||V(),v.current&&v.current.on("_beforeBreakpoint",E);const F=()=>{r||!j||!v.current||Object.keys(j).forEach(R=>{v.current.on(R,j[R])})},O=()=>{!j||!v.current||Object.keys(j).forEach(R=>{v.current.off(R,j[R])})};l.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),l.useEffect(()=>{!b.current&&v.current&&(v.current.emitSlidesClasses(),b.current=!0)}),ui(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&V(),Ia({el:S.current,nextEl:x.current,prevEl:I.current,paginationEl:k.current,scrollbarEl:N.current,swiper:v.current},A),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),ui(()=>{F();const R=Pa(w,g.current,C,m.current,P=>P.key);return g.current=w,m.current=C,R.length&&v.current&&!v.current.destroyed&&Ca({swiper:v.current,slides:C,passedParams:w,changedParams:R,nextEl:x.current,prevEl:I.current,scrollbarEl:N.current,paginationEl:k.current}),()=>{O()}}),ui(()=>{Oa(v.current)},[p]);function D(){return A.virtual?La(v.current,C,p):C.map((R,P)=>l.cloneElement(R,{swiper:v.current,swiperSlideIndex:P}))}return l.createElement(n,Mi({ref:S,className:nl(`${u}${i?` ${i}`:""}`)},T),l.createElement(ja.Provider,{value:v.current},M["container-start"],l.createElement(a,{className:Ea(A.wrapperClass)},M["wrapper-start"],D(),M["wrapper-end"]),el(A)&&l.createElement(l.Fragment,null,l.createElement("div",{ref:I,className:"swiper-button-prev"}),l.createElement("div",{ref:x,className:"swiper-button-next"})),il(A)&&l.createElement("div",{ref:N,className:"swiper-scrollbar"}),tl(A)&&l.createElement("div",{ref:k,className:"swiper-pagination"}),M["container-end"]))});ti.displayName="Swiper";const Bt=l.forwardRef(function(t,e){let{tag:i="div",children:n,className:a="",swiper:o,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const p=l.useRef(null),[h,f]=l.useState("swiper-slide"),[y,b]=l.useState(!1);function S(x,I,k){I===p.current&&f(k)}ui(()=>{if(typeof u<"u"&&(p.current.swiperSlideIndex=u),e&&(e.current=p.current),!(!p.current||!o)){if(o.destroyed){h!=="swiper-slide"&&f("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),ui(()=>{o&&p.current&&!o.destroyed&&f(o.getSlideClasses(p.current))},[o]);const v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(v):n,m=()=>{b(!0)};return l.createElement(i,Mi({ref:p,className:nl(`${h}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:m},d),s&&l.createElement(dn.Provider,{value:v},l.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},g(),c&&!y&&l.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&l.createElement(dn.Provider,{value:v},g(),c&&!y&&l.createElement("div",{className:"swiper-lazy-preloader"})))});Bt.displayName="SwiperSlide";const Na="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Ra=({visible:t,onClose:e,children:i,modalStyle:n,padding:a,popup:o,schema:s,fullHeight:c=window.innerHeight,isFullScreen:r=!1,openState:u})=>{var d,p,h,f,y,b,S,v,g,m,x,I,k,N,A,w,T,j,C,M,E,V,F,O;const D=l.useRef(null),R=l.useRef(null),P=l.useRef(null),B=l.useRef(null),U=l.useRef(null),Z=c*.2,Q=r?c:c*.8,[te,ve]=l.useState(Z),[he,ie]=l.useState(!1),Me=l.useRef(null),{globalConfig:Re,popupDetailData:We}=Ve(),{schema:Y,popup:K}=Yt(),[Ae,ge]=l.useState(15);l.useEffect(()=>{const G=document.getElementById("sxp-render"),X=document.getElementById("pb-modal");X?Me.current=X:(Me.current=document.createElement("div"),Me.current.setAttribute("id","pb-modal"),G?.appendChild(Me.current))},[]);const ye=l.useMemo(()=>o?.id&&o?.id!==""||t,[t,o]),se=l.useMemo(()=>{var G,X,le;const oe=s??Y;return(le=(X=(G=oe?.sxpPageConf)===null||G===void 0?void 0:G.globalConfig)===null||X===void 0?void 0:X.popupList)===null||le===void 0?void 0:le.find(Pe=>Pe?.id===o?.id)},[o,s,Y]),je=l.useMemo(()=>{var G,X;return((X=(G=se?.item)===null||G===void 0?void 0:G.event)===null||X===void 0?void 0:X.isScrollFullScreen)||!1},[se]);l.useEffect(()=>{ye?ie(!0):setTimeout(()=>{ie(!1),ve(Z)},o?.duration)},[ye,o]);const He=l.useCallback(()=>i,[K,u,Re,s]);if(l.useEffect(()=>{const G=X=>{var le=X?.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])'),oe=le?.[0],pe=le?.[le?.length-1],Pe=9;X.addEventListener("keydown",function(Ge){(Ge.key==="Escape"||Ge.key==="Esc")&&(Fe(),Ge.preventDefault());var ne=Ge.key==="Tab"||Ge.keyCode===Pe;ne&&(Ge.shiftKey?document?.activeElement===oe&&(pe?.focus(),Ge.preventDefault()):document?.activeElement===pe&&(oe?.focus(),Ge.preventDefault()))}),oe?.focus()};return U?.current&&G(U?.current),()=>{var X;(X=U?.current)===null||X===void 0||X.removeEventListener("keydown",G)}},[U,he,K]),!Me.current)return null;const Fe=at.debounce(()=>{e?.()},300),Ye=G=>{D.current=G.touches[0],R.current=G.touches[0],P.current=!0},_e=G=>{requestAnimationFrame(()=>{var X;if(P.current&&((X=B?.current)===null||X===void 0?void 0:X.scrollTop)===0){const le=G.touches[0].clientY,oe=G.touches[0].clientX,pe=D.current.clientY-le;D.current=G.touches[0];const Pe=le-R.current.clientY,Ge=oe-R.current.clientX;if(Math.abs(Ge)>Math.abs(Pe))return;const ne=te-pe;ne>0&&ve(ne)}})},Se=G=>{var X;if(P.current&&((X=B?.current)===null||X===void 0?void 0:X.scrollTop)===0){const le=G.changedTouches[0].clientY-R.current.clientY,oe=G.changedTouches[0].clientX-R.current.clientX;if(Math.abs(oe)>Math.abs(le))return;const pe=R.current.clientY-D.current.clientY;pe>0?ve(0):te<Z&&pe<0?ve(Z):te>=Z&&pe<0&&e?.()}P.current=!1};return wn.createPortal(l.createElement(l.Fragment,null,he&&l.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:ye?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:Fe},l.createElement("div",{style:{position:"relative",left:`${(f=(h=(p=(d=se?.item)===null||d===void 0?void 0:d.props)===null||p===void 0?void 0:p.popupBg)===null||h===void 0?void 0:h.horizontalMargin)!==null&&f!==void 0?f:0}px`,right:`${(v=(S=(b=(y=se?.item)===null||y===void 0?void 0:y.props)===null||b===void 0?void 0:b.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${(I=(x=(m=(g=se?.item)===null||g===void 0?void 0:g.props)===null||m===void 0?void 0:m.popupBg)===null||x===void 0?void 0:x.bottomMargin)!==null&&I!==void 0?I:0}px`,overflow:"hidden",width:`calc(100% - ${((w=(A=(N=(k=se?.item)===null||k===void 0?void 0:k.props)===null||N===void 0?void 0:N.popupBg)===null||A===void 0?void 0:A.horizontalMargin)!==null&&w!==void 0?w:0)*2}px)`,height:"100%"}},l.createElement("div",Object.assign({ref:U,className:`modal-container ${ye?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=se?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:a,animationDuration:((j=o?.duration)!==null&&j!==void 0?j:0)/1e3+"s"},je&&{transform:`translateY(${te}px)`}),{overflow:"hidden",borderRadius:`${(V=(E=(M=(C=se?.item)===null||C===void 0?void 0:C.props)===null||M===void 0?void 0:M.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&V!==void 0?V:0}px`,zIndex:9}),onClick:G=>{G.stopPropagation(),G.preventDefault()}},je&&{onTouchMove:_e,onTouchStart:Ye,onTouchEnd:Se}),l.createElement("div",Object.assign({id:"modal-content",ref:B,style:{height:je?c:Q,overflow:je&&te<=0||!je?"auto":"hidden",zIndex:1}},((O=(F=se?.item)===null||F===void 0?void 0:F.props)===null||O===void 0?void 0:O.enableFixedCloseButton)&&{onScroll:G=>{var X;ge(15-((X=G?.target)===null||X===void 0?void 0:X.scrollTop))}}),He()),l.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ae}},l.createElement("img",{src:Re?.popupCloseIcon||Na,alt:"close button",className:"modal-icon"})))))),Me.current)};var si=l.memo(Ra);const Da=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),a=[];for(let s=0;s<n.length&&(a.push(n[s]),!(a.join(" ").length>=e));s++);return(a.length>1&&a.length<n.length?a.slice(0,a.length-1):a).join(" ")+" "},Va=({text:t,maxStr:e=108,style:i,className:n,onClick:a,foldText:o,unfoldText:s,isPost:c,onChange:r})=>{const[u,d]=l.useState(!1),[p,h]=l.useState(!1),f=Number(i?.lineClamp||2),y=l.useRef(null),b=l.useRef(null),S=l.useCallback(()=>{d(!u)},[u,r]);return l.useMemo(()=>!u&&t.length>e?Da(t,e)+"...":t,[t,e,u]),l.useEffect(()=>{var v,g;b?.current&&(b.current.style.display="block"),((v=b?.current)===null||v===void 0?void 0:v.offsetHeight)>((g=y?.current)===null||g===void 0?void 0:g.offsetHeight)&&c?h(!0):h(!1),b.current.style.display="none"},[c,t]),l.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},l.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!c||u?"":f,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:Ie(t?.replace(/\n/g,"</br>"),i)}}),l.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:Ie(t?.replace(/\n/g,"</br>"),i)}}),t&&c&&p&&l.createElement("button",{"aria-label":u?s||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:a??S,dangerouslySetInnerHTML:{__html:Ie(u?s||"show less":o||"show more",i)}}))};var Li=l.memo(Va);const Ba=l.forwardRef((t,e)=>{const{src:i,onLoad:n,style:a,className:o,loading:s,alt:c="image"}=t,[r,u]=l.useState(i),d=l.useRef(null),[p,h]=l.useState(!1);return l.useImperativeHandle(e,()=>({setSrc:f=>{f&&u(f)}})),l.useEffect(()=>{i&&u(i)},[i]),l.useEffect(()=>{const f=()=>{i&&!p&&d.current&&(d.current.src="",d.current.src=i)};return ut.on(rt.PAGE_DID_SHOW,f),()=>{ut.off(rt.PAGE_DID_SHOW,f)}},[i,p]),l.createElement(l.Fragment,null,!p&&!r&&l.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?l.createElement("picture",null,l.createElement("source",{type:"image/avif",srcSet:r}),l.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),l.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),l.createElement("img",{ref:d,className:o,src:r,style:Object.assign({},a),loading:s,onLoad:f=>{h(!0),n?.(f.target)},alt:c})):l.createElement("img",{ref:d,className:o,src:r,style:Object.assign({},a),loading:s,onLoad:f=>{h(!0),n?.(f.target)},alt:c}))});var Ct=l.memo(Ba);const Fa=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const a=l.useRef(),{popupDetailData:o}=Ve();return l.useEffect(()=>{var s,c;n&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=o?.multiCheckIndex)!==null&&c!==void 0?c:0))},[o,n]),l.createElement(ti,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[mo,po,ki],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var vi=l.memo(Fa);const Wa=({products:t,data:e,defImg:i,style:n,onCLick:a,popupDetailData:o,check:s})=>{var c;const{productView:r}=xt(),{popupCurTimeRef:u}=Ve(),d=(p,h)=>{if(s===h)return;const f=t?.[s];r(o,f,f?.bindCta,u.current,o?.index),a?.(h)};return l.createElement(l.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&l.createElement(vi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(c=o?t:[0,1,2,3])===null||c===void 0?void 0:c.map((p,h)=>{var f,y,b;return l.createElement(l.Fragment,null,p?.bindCta?l.createElement(Bt,{className:Oe.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{d(p,h)},key:h},l.createElement(Ct,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(b=(f=p?.cover)!==null&&f!==void 0?f:(y=p?.homePage)===null||y===void 0?void 0:y[0])!==null&&b!==void 0?b:i})):null)})))};var al=l.memo(Wa);const za=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:a,src:o}=t;switch(i){case 2:return n||null;case 3:return o||null;default:return a&&a.length>0?(e=a[0])===null||e===void 0?void 0:e.url:null}},Ha=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",pi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:a})=>{var o,s,c,r,u,d,p,h;let f="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return f;let b=i?.priceSymbol,S=t?.currency?(c=(s=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||s===void 0?void 0:s.toUpperCase())!==null&&c!==void 0?c:"":"$";const v=e===void 0||e;let g=y?.toString();b?.showTwoDecimalPoint&&(g=y?.toFixed(2));let m=(r=g?.indexOf("."))!==null&&r!==void 0?r:-1;if(v){f=(u=y?.toLocaleString("zh",{minimumFractionDigits:b?.showTwoDecimalPoint?2:0}))!==null&&u!==void 0?u:"";let x=0,I=m??f?.length;b?.millesimalSymbol==="."?f=f?.replace(/\,/g,function(k,N){return N>=x&&N<I?".":k}):b?.millesimalSymbol===" "&&(f=f?.replace(","," "))}else f=`${b?.showTwoDecimalPoint?y?.toFixed(2):y}`;return b?.decimalPoint===","&&m>0&&(f=f=f?.replace(/\./g,function(x,I){return I>=m&&I<f?.length?",":x})),S=`<span style="font-family:${(h=(p=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&p!==void 0?p:a?.["fontFamily-en"])!==null&&h!==void 0?h:"inherit"}">${S}</span>`,f=Ie(f,a),b?.currencyPosition&&b?.currencyPosition!=="none"?f=b?.currencyPosition==="left"?S+f:f+S:b?.currencyPosition!=="none"&&(f=S+f),f},Ua=t=>{var e,i,n,a,o,s,c,r,u,d,p,h,f,y,b,S,v,g,m,x,I,k,N,A,{content:w,style:T,bgImg:j,onClick:C,schema:M,isDefault:E,bottom_image:V,tipText:F,isPost:O,viewTime:D,rec:R,swiper:P,commodityStyles:B,buttonStyle:U,index:Z,commodityGroup:Q,popupBg:te,iframeIcon:ve,commodityImgRatio:he,isTel:ie,iframeBgColor:Me,isActive:Re=!0}=t,We=et(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:Y,popupDetailData:K,isPreview:Ae,bffFbReport:ge,popupCurTimeRef:ye,checkCommodityIndexRef:se,globalConfig:je}=Ve(),{jumpToWeb:He,productView:Fe}=xt(),Ye=l.useRef(null),[_e,Se]=l.useState(!1),[G,X]=l.useState(!1),[le,oe]=l.useState((e=K?.multiCheckIndex)!==null&&e!==void 0?e:0),pe=l.useRef(),[Pe,Ge]=l.useState(0),ne=O?R:K;let W=O?ne?.product:(n=(i=ne?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(o=(a=ne?.video)===null||a===void 0?void 0:a.bindProducts)===null||o===void 0?void 0:o[0],Xe=O?(s=ne?.product)===null||s===void 0?void 0:s.bindCta:(u=(r=(c=ne?.video)===null||c===void 0?void 0:c.bindProduct)===null||r===void 0?void 0:r.bindCta)!==null&&u!==void 0?u:(h=(p=(d=ne?.video)===null||d===void 0?void 0:d.bindProducts)===null||p===void 0?void 0:p[0])===null||h===void 0?void 0:h.bindCta;const bt=O?Z:K?.index;if(!O&&Q?.open&&(!((f=ne?.video)===null||f===void 0)&&f.bindProducts)&&((b=(y=ne?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0?void 0:b.length)>0){se.current=le;const we=(S=ne?.video)===null||S===void 0?void 0:S.bindProducts[le];W=we,Xe=we?.bindCta}const it=we=>{W?.link&&(He(we,ne,W,Xe,bt),O||Fe(ne,W,Xe,D||Ye.current,bt),window.location.href=window.getJointUtmLink(W.link))};l.useEffect(()=>{Re&&(ge?.({eventName:"ProductView",product:W}),ge?.({eventName:"PageView",product:W}))},[Re,ge]),l.useEffect(()=>{const we=()=>{Ye.current=new Date};return we(),window.addEventListener("pageshow",we),()=>{window.removeEventListener("pageshow",we)}},[]);const pt=pi({product:W,enableFormattedPrice:(v=B?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:je,style:B?.price}),vt=(Ae?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((m=te?.horizontalMargin)!==null&&m!==void 0?m:0)*2,gt=he?vt*(he.h/he.w):vt,Dt=({isPost:we})=>{var qe,wt,Jt,lt;return l.createElement("div",null,l.createElement("div",{className:"pb-commondity-content-collection",style:Ot(B?.collection),hidden:!!W&&(!W?.collection||W?.collection===""),dangerouslySetInnerHTML:{__html:Ie((qe=W?.collection)!==null&&qe!==void 0?qe:"Tiffany Lock",B?.collection)}}),l.createElement("div",{className:"pb-commondity-content-title",style:Ot(B?.title),hidden:!!W&&!W?.title,dangerouslySetInnerHTML:{__html:Ie((wt=W?.title)!==null&&wt!==void 0?wt:"Pendant in Yellow Gold with Diamonds, Medium",B?.title)}}),l.createElement("div",{className:"pb-commondity-content-price",style:Ot(B?.price),hidden:!!W&&!W?.price,dangerouslySetInnerHTML:{__html:pt??""}}),l.createElement("div",{hidden:!!W&&!W?.taxInfo,style:Ot(B?.taxInfo),dangerouslySetInnerHTML:{__html:Ie((Jt=W?.taxInfo)!==null&&Jt!==void 0?Jt:"\u7A0E\u8D39",B?.taxInfo)}}),l.createElement("div",{hidden:!!W&&(!W?.info||W?.info==="")},l.createElement(Li,{foldText:F?.foldText,unfoldText:F?.unfoldText,onClick:()=>Se(!0),isPost:we,text:(lt=W?.info)!==null&<!==void 0?lt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
2
2
|
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
3
3
|
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
4
4
|
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|