1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="bb2806e1-8a11-1d0f-5ac3-ab9e38b9f20c")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,248231,e=>{"use strict";var t=e.i(996458);e.s(["UpdateIcon",()=>t.default])},752610,e=>{"use strict";var t=e.i(548872);e.s(["ShinyButtonCMS",()=>t.default])},204238,e=>{"use strict";var t=e.i(328591),l=e.i(314425);e.i(480234);var i=e.i(416876);e.s(["default",0,function({content:e,position:a="bottom",rounded:s=!0}){let n=(0,l.useTranslations)("HomePage"),o=(0,l.useTranslations)("Common"),r=(e.videoSrc??"").trim(),c=(e.videoMobileSrc??"").trim(),d=(e.backgroundSrc??"").trim(),u=(e.backgroundMobileSrc??"").trim(),m=!!(r||c),p=!!(d||u);return(0,t.jsxs)("div",{className:`relative w-full h-full overflow-hidden bg-black/30 ${s?"rounded-2xl":""}`,children:[m?(0,t.jsxs)("video",{className:"absolute inset-0 w-full h-full object-cover",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[r&&(0,t.jsx)("source",{src:r,media:"(min-width: 768px)"}),c&&(0,t.jsx)("source",{src:c,media:"(max-width: 767px)"}),(0,t.jsx)("source",{src:c||r})]}):p&&(0,t.jsxs)("picture",{className:"absolute inset-0",children:[d&&(0,t.jsx)("source",{srcSet:d,media:"(min-width: 768px)"}),(0,t.jsx)("img",{src:u||d,alt:"hero background",className:"w-full h-full object-cover",loading:"eager",fetchPriority:"high"})]}),(0,t.jsxs)("div",{className:`absolute left-1/2 transform -translate-x-1/2 text-center text-white w-full max-w-2xl p-[40px] md:p-[60px] ${"bottom"===a?"bottom-0":"top-0"}`,children:[e.desc&&(0,t.jsx)("p",{className:"text-sm mb-[8px] md:mb-[10px] opacity-60 leading-[1.2]",children:n(e.desc)}),(0,t.jsx)("h2",{className:"text-[32px] md:text-[36px] lg:text-[40px] font-medium mb-[6px] md:mb-[8px] leading-[1.2]",children:e.title}),e.subtitle&&(0,t.jsx)("p",{className:"text-lg leading-[1.2]",children:n(e.subtitle)}),e.buttons?.length?(0,t.jsx)("div",{className:"flex justify-center gap-4 mt-[30px]",children:e.buttons.map(e=>(0,t.jsx)(i.ShinyButton,{link:e.link,text:e.text?o(e.text):"",goShop:e.goShop,shopType:e.shopType,type:e.type},e.text))}):null]})]})}])},979706,e=>{"use strict";var t=e.i(328591),l=e.i(866093),i=e.i(314425),a=e.i(35259),s=e.i(335798);e.i(480234);var n=e.i(416876),o=e.i(726467);a.default.registerPlugin(s.ScrollTrigger),e.s(["default",0,({videoPoster:e,videoMobilePoster:s,videoSrc:r,videoMobileSrc:c,button:d,lazy:u=!1,rootMargin:m})=>{let p=(0,l.useRef)(null),x=(0,l.useRef)(null),h=(0,l.useRef)(null),f=(0,l.useRef)(!1),v=(e??"").trim()||void 0,b=(s??"").trim()||v,g=(0,i.useTranslations)("Common"),w=(0,l.useMemo)(()=>[{src:r,type:"video/mp4",media:"(min-width: 768px)"},{src:c,type:"video/mp4",media:"(max-width: 767px)"}],[r,c]),j=()=>{let e=h.current;if(e&&!f.current){try{e.currentTime=0}catch{}f.current=!0,e.play().catch(()=>{f.current=!1})}};(0,l.useEffect)(()=>{let e=y();if(requestAnimationFrame(()=>j()),p.current&&x.current)return a.default.to(x.current,{yPercent:40,ease:"none",scrollTrigger:{trigger:p.current,start:"top top",end:"bottom top",scrub:!0}}),e},[]);let y=()=>{let e=e=>{e.persisted&&(f.current=!1,j())};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)};return(0,t.jsxs)("div",{ref:p,className:"relative h-full w-full overflow-hidden rounded-2xl bg-black/30",children:[(0,t.jsx)("div",{ref:x,className:"absolute top-0 left-0 w-full h-full will-change-transform",children:u?(0,t.jsx)(o.DeferredVideo,{ref:h,poster:b,rootMargin:m,muted:!0,loop:!0,playsInline:!0,onLoadedMetadata:j,onCanPlay:j,onLoadedData:j,className:"w-full h-full object-cover [transform:translateZ(0)]",sources:w}):(0,t.jsxs)("video",{ref:h,poster:b,preload:"auto",muted:!0,loop:!0,playsInline:!0,onLoadedMetadata:j,onCanPlay:j,onLoadedData:j,className:"w-full h-full object-cover",children:[(0,t.jsx)("source",{src:r,media:"(min-width: 768px)"}),(0,t.jsx)("source",{src:c,media:"(max-width: 767px)"})]})}),(0,t.jsx)("div",{className:"absolute z-10 bottom-[40px] md:right-[40px] flex items-center justify-center w-full md:w-auto",children:(0,t.jsx)(n.ShinyButton,{text:g(d.text),link:d.link,goShop:d.goShop??!1,type:d.type??"solid"})})]})}])},335857,e=>{"use strict";var t=e.i(328591),l=e.i(314425),i=e.i(520133);e.i(480234);var a=e.i(70744);e.i(330977);var s=e.i(575376),n=e.i(755045),n=n,o=e.i(248231),r=e.i(39624),r=r,c=e.i(935490),d=e.i(742119);e.s(["default",0,function(){let e=(0,d.useRegion)(),u=(0,l.useTranslations)("Common"),m=(0,l.useTranslations)("Footer"),p=[{icon:(0,t.jsx)(o.UpdateIcon,{className:"w-12 h-12 md:w-24 md:h-24"}),title:m("homenew_support2_title"),link:"https://www.xreal.com/ota/"},{icon:(0,t.jsx)(n.default,{className:"w-12 h-12 md:w-24 md:h-24"}),title:"Reddit",link:c.reddit_url}],x=[...p.slice(0,2),{icon:(0,t.jsx)(r.default,{className:"w-12 h-12 md:w-24 md:h-24"}),title:"å°çº¢ä¹¦",link:c.social_link.cn.xiaohongshu}],h="cn"==e?x:p;return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"hidden md:grid grid-cols-2 gap-8 text-center pb-[120px] pt-[100px]",children:h.map(e=>(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"mb-[20px]",children:e.icon}),(0,t.jsx)("span",{className:"mb-[40px] text-2xl font-medium tracking-tight text-black",children:e.title}),(0,t.jsx)(a.LearnBuyBtn,{link:e.link,btnText:u("learn_more")})]},e.title))}),(0,t.jsx)("div",{className:"md:hidden flex flex-col gap-10 px-5 pt-10 pb-15",children:h.map(e=>(0,t.jsxs)(i.Link,{href:e.link,className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{children:e.icon}),(0,t.jsx)("span",{className:"font-medium text-lg text-black",children:e.title})]}),(0,t.jsx)(s.ArrowRight,{className:"mr-5 w-4 h-4"})]},e.title))})]})}],335857)},260046,e=>{"use strict";var t=e.i(328591),l=e.i(866093),i=e.i(268289),a=e.i(34089),s=e.i(109625);e.s(["default",0,function({content:e,rounded:n=!0}){let{buildShopifyUrl:o}=(0,a.useUtm)(),r=e.link??"",c=(0,l.useCallback)(e=>{if(r&&(0,s.isShopifyUrl)(r)){e.preventDefault();let t=o(r);window.open(t,"_blank","noopener,noreferrer")}},[r,o]);return(0,t.jsxs)("a",{href:r||void 0,target:"_blank",rel:"noopener noreferrer",onClick:c,className:`block relative w-full h-full overflow-hidden bg-black/30 cursor-pointer ${n?"rounded-2xl":""}`,children:[e.videoSrc?(0,t.jsx)("video",{className:"hidden md:block w-full h-full object-cover",src:e.videoSrc,autoPlay:!0,loop:!0,muted:!0,playsInl
2ine:!0,poster:e.coverDesktopSrc}):e.backgroundSrc&&(0,t.jsx)(i.default,{src:e.backgroundSrc,alt:"promo background",fill:!0,className:"object-cover hidden md:block",priority:!0,sizes:"(max-width: 768px) 0px, 100vw",unoptimized:!0}),e.videoMobileSrc?(0,t.jsx)("video",{className:"block md:hidden w-full h-full object-cover",src:e.videoMobileSrc,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,poster:e.coverMobileSrc}):e.backgroundMobileSrc&&(0,t.jsx)(i.default,{src:e.backgroundMobileSrc,alt:"promo background mobile",fill:!0,className:"object-cover block md:hidden",priority:!0,sizes:"(max-width: 768px) 100vw, 0px",unoptimized:!0})]})}])},166493,e=>{"use strict";var t=e.i(328591);e.i(480234);var l=e.i(752610);e.s(["default",0,function({content:e,position:i="bottom",rounded:a=!0}){let s=(e.videoSrc??"").trim(),n=(e.videoMobileSrc??"").trim(),o=(e.backgroundSrc??"").trim(),r=(e.backgroundMobileSrc??"").trim(),c=!!(s||n),d=!!(o||r),u={event_name:"PageClick",custom:{page_id:1e4,elements:"button"}};return(0,t.jsxs)("div",{className:`relative w-full h-full overflow-hidden bg-black/30 ${a?"rounded-2xl":""}`,children:[c?(0,t.jsxs)("video",{className:"absolute inset-0 w-full h-full object-cover",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,t.jsx)("source",{src:s,media:"(min-width: 768px)"}),(0,t.jsx)("source",{src:n,media:"(max-width: 767px)"})]}):d&&(0,t.jsxs)("picture",{className:"absolute inset-0",children:[o&&(0,t.jsx)("source",{srcSet:o,media:"(min-width: 768px)"}),(0,t.jsx)("img",{src:r,alt:"hero background",className:"w-full h-full object-cover",loading:"eager",fetchPriority:"high"})]}),(0,t.jsxs)("div",{className:`absolute left-1/2 transform -translate-x-1/2 text-center text-white w-full max-w-2xl p-[40px] md:p-[60px] ${"bottom"===i?"bottom-0":"top-0"}`,children:[e.desc&&(0,t.jsx)("p",{className:"text-sm mb-[8px] md:mb-[10px] opacity-60 leading-[1.2]",children:e.desc}),(0,t.jsx)("h2",{className:"text-[32px] md:text-[36px] lg:text-[40px] font-medium mb-[6px] md:mb-[8px] leading-[1.2]",children:e.title}),e.subtitle&&(0,t.jsx)("p",{className:"text-lg leading-[1.2]",children:e.subt
2itle}),e.buttons?.length?(0,t.jsx)("div",{className:"flex justify-center gap-4 mt-[30px]",children:e.buttons.map(e=>(0,t.jsx)(l.ShinyButtonCMS,{content:u,ifOpenEventTrack:e.ifOpenEventTrack,moduleId:e.moduleId,moduleName:e.moduleName,toPageId:e.toPageId,link:e.link,text:e.text?e.text:"",buttonType:e.buttonType,buttonIcon:e.buttonIcon},e.text))}):null]})]})}])},490452,e=>{"use strict";e.s(["default",()=>c],490452);var t=e.i(328591),l=e.i(866093),i=e.i(690072),a=e.i(986608),s=e.i(708692);e.i(739395);var n=e.i(166493),n=n;e.i(330977);var o=e.i(882068),r=e.i(471835);function c({slides:e}){let[d,u]=(0,l.useState)(!1),[m,p]=(0,l.useState)(0),x=(0,l.useRef)(null),h=e.length>1;(0,l.useEffect)(()=>u(!0),[]);let f=e.length<=3?[...e,...e]:e;if(!e.length)return null;let v=e[0];return(0,t.jsx)("div",{className:"relative w-full group",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Swiper,{modules:[a.Navigation,s.Autoplay],navigation:{nextEl:".banner-next",prevEl:".banner-prev"},loop:h,autoplay:{delay:7e3,disableOnInteraction:!1},centeredSlides:!0,breakpoints:{0:{slidesPerView:1,spaceBetween:0},768:{slidesPerView:"auto",spaceBetween:20}},onSwiper:e=>{x.current=e},onSlideChange:t=>{0!==e.length&&p(t.realIndex%e.length)},children:f.map((e,l)=>(0,t.jsxs)(i.SwiperSlide,{className:"w-full md:w-[80%] max-w-7xl 2xl:max-w-[1440px] px-0 md:px-5 xl:px-0",children:[(0,t.jsx)("div",{className:"w-full hidden md:block aspect-[16/9]",children:(0,t.jsx)(n.default,{content:e,position:"bottom"})}),(0,t.jsx)("div",{className:"w-full block md:hidden aspect-[2/3]",children:(0,t.jsx)(n.default,{content:e,position:"bottom",rounded:!1})})]},`${e.title}${l}`))}),(0,t.jsxs)("div",{className:" absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-20 opacity-0 group-hover:opacity-100 transition-opacity w-full max-w-7xl 2xl:max-w-[1440px] p-10 flex items-center justify-between ",children:[(0,t.jsx)("button",{className:"banner-prev",children:(0,t.jsx)(o.BannerLeft,{})}),(0,t.jsx)("button",{className:"banner-next",children:(0,t.jsx)(r.BannerRight,{})})]}),(0,t.jsx)("div",{className:"absolute bottom-5 left-1/2 -translate-x-1/2 flex gap-2 z-20",children:e.map((e,l)=>(0,t.jsx)("button",{onClick:()=>h?x.current?.slideToLoop(l):x.current?.slideTo(l),className:`w-[20px] h-[2px] bg-white rounded-full transition ${l===m?"opacity-100":"opacity-20"}`,"aria-label":`Go to slide ${l+1}`},`${e.title}${l}`))})]}):(0,t.jsxs)("div",{className:"w-full max-w-7xl 2xl:max-w-360 px-0 md:px-5 xl:px-0 mx-auto",children:[(0,t.jsx)("div",{className:"w-full hidden md:block aspect-[16/9]",children:(0,t.jsx)(n.default,{content:v,position:"bottom"})}),(0,t.jsx)("div",{className:"w-full block md:hidden aspect-[2/3]",children:(0,t.jsx)(n.default,{content:v,position:"bottom",rounded:!1})})]})})}},739395,e=>{"use strict";e.s([],739395),e.i(204238),e.i(979706),e.i(335857),e.i(524100),e.i(260046),e.i(490452),e.i(166493),e.i(328591),e.i(268289),e.i(520133),e.i(687823),e.i(480234),e.i(70744),e.i(251263),e.i(395883),e.i(314425)},524100,986608,882068,471835,e=>{"use strict";e.s(["default",()=>m],524100);var t=e.i(328591),l=e.i(866093),i=e.i(690072),a=e.i(246725),s=e.i(990989);let n='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function o({swiper:e,extendParams:t,on:l,emit:i}){function r(t){let l;return t&&"string"==typeof t&&e.isElement&&(l=e.el.querySelector(t)||e.hostEl.querySelector(t))?l:(t&&("string"==typeof t&&(l=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&l&&l.length>1&&1===e.el.querySelectorAll(t).length?l=e.el.querySelector(t):l&&1===l.length&&(l=l[0])),t&&!l)?t:l}function c(t,l){let i=e.params.navigation;
2(t=(0,s.m)(t)).forEach(t=>{t&&(t.classList[l?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=l),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass))})}function d(){let{nextEl:t,prevEl:l}=e.navigation;if(e.params.loop){c(l,!1),c(t,!1);return}c(l,e.isBeginning&&!e.params.rewind),c(t,e.isEnd&&!e.params.rewind)}function u(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function m(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function p(){let t=e.params.navigation;if(e.params.navigation=(0,a.c)(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let l=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:l,prevEl:i}),l=(0,s.m)(l),i=(0,s.m)(i);let o=(l,i)=>{if(l){if(t.addIcons&&l.matches(".swiper-button-next,.swiper-button-prev")&&!l.querySelector("svg")){let e=document.createElement("div");(0,s.s)(e,n),l.appendChild(e.querySelector("svg")),e.remove()}l.addEventListener("click","next"===i?m:u)}!e.enabled&&l&&l.classList.add(...t.lockClass.split(" "))};l.forEach(e=>o(e,"next")),i.forEach(e=>o(e,"prev"))}function x(){let{nextEl:t,prevEl:l}=e.navigation;t=(0,s.m)(t),l=(0,s.m)(l);let i=(t,l)=>{t.removeEventListener("click","next"===l?m:u),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>i(e,"next")),l.forEach(e=>i(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:n},l("init",()=>{!1===e.params.navigation.enabled?h():(p(),d())}),l("toEdge fromEdge lock unlock",()=>{d()}),l("destroy",()=>{x()}),l("enable disable",()=>{let{nextEl:t,prevEl:l}=e.navigation;(t=(0,s.m)(t),l=(0,s.m)(l),e.enabled)?d():[...t,...l].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),l("click",(t,l)=>{let{nextEl:a,prevEl:n}=e.navigation;a=(0,s.m)(a),n=(0,s.m)(n);let o=l.target,r=n.includes(o)||a.includes(o);if(e.isElement&&!r){let e=l.path||l.composedPath&&l.composedPath();e&&(r=e.find(e=>a.includes(e)||n.includes(e)))}if(e.params.navigation.hideOnClick&&!r){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;a.length?t=a[0].classList.contains(e.params.navigation.hiddenClass):n.length&&(t=n[0].classList.contains(e.params.navigation.hiddenClass)),!0===t?i("navigationShow"):i("navigationHide"),[...a,...n].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),x()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),p(),d()},disable:h,update:d,init:p,destroy:x})}e.s(["Navigation",0,o],986608);var r=e.i(708692);e.i(739395);var c=e.i(204238),c=c;e.i(330977);var d=e.i(706172);e.s(["BannerLeft",()=>d.default],882068);var d=d,u=e.i(189059);e.s(["BannerRight",()=>u.default],471835);var u=u;function m({slides:e}){let[a,s]=(0,l.useState)(!1),[n,p]=(0,l.useState)(0),x=(0,l.useRef)(null),h=e.length>1;(0,l.useEffect)(()=>s(!0),[]);let f=e.length<=3?[...e,...e]:e;return a?(0,t.jsxs)("div",{className:"relative w-full group",children:[(0,t.jsx)(i.Swiper,{modules:[o,r.Autoplay],navigation:{nextEl:".banner-next",prevEl:".banner-prev"},loop:h,autoplay:{delay:7e3,disableOnInteraction:!1},centeredSlides:!0,breakpoints:{0:{slidesPerView:1,spaceBetween:0},768:{slidesPerView:"auto",spaceBetween:20}},onSwiper:e=>{x.current=e},onSlideChange:t=>{0!==e.length&&p(t.realIndex%e.length)},children:f.map((e,l)=>(0,t.jsxs)(i.SwiperSlide,{className:"w-full md:w-[80%] max-w-7xl 2xl:max-w-[1440px] px-0 md:px-5 xl:px-0",children:[(0,t.jsx)("div",{className:"w-full hidden md:block aspect-[16/9]",children:(0,t.jsx)(c.default,{content:e,position:"bottom"})}),(0,t.jsx)("div",{className:"w-full block md:hidden aspect-[2/3]",children:(0,t.jsx)(c.default,{content:e,position:"bottom",rounded:!1})})]},`${e.title}${l}`))}),(0,t.jsxs)("div",{className:" absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-20 opacity-0 group-hover:opacity-100 transition-opacity w-full max-w-7xl 2xl:max-w-[1440px] p-10 flex items-center justify-between ",children:[(0,t.jsx)("button",{className:"banner-prev",children:(0,t.jsx)(d.default,{})}),(0,t.jsx)("button",{className:"banner-next",children:(0,t.jsx)(u.default,{})})]}),(0,t.jsx)("div",{className:"absolute bottom-5 left-1/2 -translate-x-1/2 flex gap-2 z-20",children:e.map((e,l)=>(0,t.jsx)("button",{onClick:()=>h?x.current?.slideToLoop(l):x.current?.slideTo(l),className:`w-[20px] h-[2px] bg-white rounded-full transition ${l===n?"opacity-100":"opacity-20"}`,"aria-label":`Go to slide ${l+1}`},`${e.title}${l}`))})]}):(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)("div",{className:"max-w-7xl 2xl:max-w-[1440px] mx-auto aspect-[2/3] md:aspect-[16/9] bg-black/10 rounded-2xl"})})}}]); 3 4//# debugId=bb2806e1-8a11-1d0f-5ac3-ab9e38b9f20c
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.