Galaxy Ring

Galaxy Ring

Galaxy AI is here

Slip on a new, easier way to help keep your health on track. Convenient, comfortable and packed with the latest innovations.

Save up to $100 with instant trade-in credit.θ

HSA and FSA Eligible

The style you want.
The insights you need.

Introducing a Galaxy Ring for all-day wear with an elegant, lightweight design. Crafted from Titanium in your 
choice of three scratch-resistant finishes, Galaxy Ring combines timeless style with powerful wellness tracking 
enhanced with Galaxy AI.

A Galaxy Ring appears and is in the background. Three rings appear in the front. The top one on the right shows the side of the ring. The middle one is tilted to show the inner part of the ring. The last one on the left is slightly tilted than the middle one.

Three sensors.
Deeper understanding.

Galaxy Ring packs the latest health tracking innovations into a compact design that fits comfortably 
around your finger.

A Galaxy Ring appears, facing the front. It twists and turns to reveal the three sensors.

  • Accelerometer

    Track walking and running
    without pressing a button.

  • Optical Bio-signal Sensor

    Monitor your heart health with
    improved Heart Rate Tracking.

  • Skin Temperature Sensor

    Get regular readings on skin temperature changes while you sleep.

  • Optical Bio-signal Sensor

    Monitor your heart health with
    improved Heart Rate Tracking.

  • Accelerometer

    Track walking and running
    without pressing a button.

  • Skin Temperature Sensor

    Get regular readings on skin temperature changes while you sleep.

Tracking on your finger. 
Insights on your phone.

Get the ultimate view into a better you. Galaxy Ring tracks your body to deliver a holistic view of your health on your phone.

A Galaxy Ring twists and arranges itself into a slightly tilted side-view position. Smartphones also appear, with GUI of different Samsung Health features onscreen.

Your very own health dashboard

See all your insights at a glance with the Samsung Health app. Think of it as a convenient hub for all your wellness info from sleeping to fitness.

At the top, the Samsung Health app icon and the text Samsung Health can be seen. A Galaxy Ring can be seen with a dotted Samsung Health icon in the middle, like it is going through the ring. The ring turns and the icon changes to a dotted heart icon to indicate the heart monitoring feature of Samsung Health. Above the ring, the Samsung Health app icon and the text Samsung Health changes to the text Galaxy AI is here.

Get your score. 
Own the day.

Learn how ready you are to take on the day using Energy Score with Galaxy AI. It calculates your physical readiness based on yesterday's sleep, heart rate and activities. Wake up to your score each morning and challenge yourself to improve it a little bit each day.

At the top, the sensors of Galaxy Ring light up and then the ring moves along to illustrate the Energy Score going up each day. Energy Score 92 can be seen with the text Excellent below.

Samsung Galaxy smartphone can be seen with the Energy Score feature onscreen. GUI of Sleep, Active, Heart Rate sections of the Energy Score feature can also be seen.

Turn insights
 into action

Learn how to feel great every day using Wellness Tips. Your Galaxy Ring gathers the insights and your phone analyzes them. Then you receive personalized suggestions you can use to improve each day.

The text What do you want to focus on, Sam? can be seen. Below are four icons: Overall Health, Sleep, Exercise and Healthy Weight. The Sleep icon is highlighted to indicate it was selected. The Wellness Tips feature appears and the text You practiced better sleep habits last week than the week before, averaging a 85% sleep habit achievement rate. Continue with your sleep coaching to make healthy sleep habits a part of your routine. can be seen. Below is the related bar chart. On the left is Week 2 with the text 52%. On the right is Last week with the text 85%.

Rest easy with our most comfortable sleep tracker ever. You won’t even notice while it collects insights on the quality of your sleep. Then get personalized tips and suggestions for how to improve. Plus, snore detection.

Sleeping better and dreaming more

See how sleep impacts the creative process as fashion designer LaQuan Smith creates his first-ever sleepwear collection, Lucid Dreams, in partnership with Galaxy Ring.

See how sleep impacts the creative process as fashion designer LaQuan Smith creates his first-ever sleepwear collection, Lucid Dreams, in partnership with Galaxy Ring.

Let Galaxy Ring simplify your workouts. Just hop on the treadmill and start exercising — your Galaxy Ring intuitively starts tracking without you having to lift a finger.,

Today

GUI of inactive alert and auto-tracking running and walking can be seen.

Two circles are showing the Galaxy Ring being used in different situations. The circle on the left shows hands with Galaxy Ring on one finger that are tying a shoe lace. The circle on the right shows a woman in sportswear on a run.
People running in a marathon can be seen to illustrate the Auto Detect feature of Galaxy Ring.

Less charging, 
more tracking

Slip it on and forget it with a seven-day charge that won’t slow you down. Combined with a full cradle charge, you 
can use Galaxy Ring for up to 14 days without plugging into an outlet.

Three circles can be seen. The one in the middle is placed inside a Galaxy Ring. Each circle shows different hands wearing the ring in different situations. The scenes change as the text below the Galaxy Ring changes from Up to 1 Days to Up to 7 Days. A fully charged battery icon is next to the text to indicate the battery can last up to 7 days.

Modern design
that shines

With its clear cover, the charging cradle is the place to get your Galaxy Ring ready to take on your week. LED lights help you know how far along Galaxy Ring is in its charging cycle.

The lid of Galaxy Ring Charging Case lifts open. A Galaxy Ring is in its place, around the Multi-purpose button. The circular indicator light lights up in a counter-clockwise direction until fully illuminated in a circle.

Finding your fit is a breeze with our convenient sizing kit. Select your best fit from a variety of sizing options. You can even save a trip to the store by ordering the kit directly to your house.

Galaxy Ring Sizing Kit is open and 9 sample rings can be seen.
A person is taking a break from an exercise with Galaxy Ring on a finger.
A person is taking a walk along the beach with Galaxy Ring on a finger.

Feels like nothing.
Goes with everything.

From workouts to nights out, sport the Galaxy Ring for any occasion. Whether it's the subtle sophistication of the matted Titanium Black and Titanium Silver, or the brilliant glow of the Titanium Gold, Galaxy Ring blends seamlessly with your look.

Titanium Black
A slightly tilted Galaxy Ring in Titanium Black can be seen. A closed Charging Case with Galaxy Ring in Titanium Black in place can be seen.

Not afraid to
take a splash

This remarkable design is built for your everyday with water resistance and a concave design that minimizes scratches.

A hand wearing a Galaxy Ring can be seen. A stream of water falls onto the hand to illustrate the water-resistance of the ring.

Seamless connection with your Galaxy devices

  1. Select Galaxy AI features require compatible Samsung Galaxy phone.
  2. The heart rate software functions are not intended for use in the diagnosis of disease or other conditions, or in the cure, mitigation, treatment or prevention of disease.
  3. Requires compatible smartphone.
  4. Energy Score insights track data and require compatible Samsung Galaxy AI phone, Samsung Health app and Samsung account.
  5. Wellness Tips track data and require compatible Samsung Galaxy AI phone, Samsung Health app and Samsung account.
  6. Must wear device for 7 nights during a 30 night period. Requires compatible smartphone and Samsung Health app.
  7. Phone must be within 2 feet of user with snore detection enabled through Samsung Health app version 6.22 or later.
  8. Cycle Tracking is available for tracking a user's menstruation cycle. NOT INTENDED FOR CONTRACEPTION. If you are currently taking hormonal birth control or undergoing hormonal treatment that inhibits ovulation, this service will not be useful for tracking ovulation. Cycle Tracking results may be impacted by Ring usage (recommendation: 4 hours during sleep, 5 times a week), input data and environmental conditions (such as illness, medications, traveling and disruptions to users' daily routine). If you are taking medication, consult your doctor to learn how it may impact your body temperature. Do not interpret or take clinical action based on the predictions made without consultation of a qualified healthcare professional. This feature is not intended for users under 18 years of age.
  9. Auto Workout Detection must be turned on in Settings. Available only with walking and running.
  10. For sizes 12 and 13; up to 6 days for smaller sizes. Results may vary.
  11. Sample rings included in the Galaxy Ring Sizing Kit are for measuring Galaxy Ring size only.
  12. Consistent with 10ATM water-resistance classification (up to 100m of water for up to 10 minutes) and IP68 rating (up to 6 feet of water for up to 30 minutes). Rinse residue / dry after wet.
  13. Requires a smartphone with the SmartThings app and a Wi-Fi or Bluetooth connection. Compatible smart devices must be initially set up in the SmartThings app.
  14. Require compatible Samsung phone, Samsung Health app and Samsung account.

  15. 0% APR for 12, 18, or 24 Months with Equal Payments: Available on purchases of select products charged to a Samsung Financing account. Minimum purchase: $50. 0% APR from date of eligible purchase until paid in full. Estimated monthly payment equals the eligible purchase amount multiplied by a repayment factor and rounded up to the nearest penny (repayment factors: .08333 for 12 month, .05556 for 18 month, .04167 for 24 month). Last payment may vary due to rounding. Total amount of payments will not exceed eligible purchase amount. Other transactions and fees affect overall minimum payment amount. Advertised payment amount, if any, is an estimate and may change once taxes, delivery or other charges are added. Limited time offer. Regular account terms apply to non-promo purchases. Standard Purchase APR: 29.99%. Minimum interest charge: $1. Prior purchases excluded. Account must be in good standing. Subject to credit approval. Samsung Financing account issued by TD Bank, N.A.
");return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=n),n},appendSlide:function(t){if("object"==typeof t&&"length"in t)for(var e=0;e=0;i-=1)this.virtual.slides.splice(t[i],1),this.params.virtual.cache&&delete this.virtual.cache[t[i]],t[i]0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var o=e.innerWidth,l=e.innerHeight,h=this.$el.offset();s&&(h.left-=this.$el[0].scrollLeft);for(var d=[[h.left,h.top],[h.left+this.width,h.top],[h.left,h.top+this.height],[h.left+this.width,h.top+this.height]],c=0;c=0&&u[0]<=o&&u[1]>=0&&u[1]<=l&&(r=!0)}if(!r)return}this.isHorizontal()?(33!==a&&34!==a&&37!==a&&39!==a||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==a&&39!==a||s)&&(33!==a&&37!==a||!s)||this.slideNext(),(33!==a&&37!==a||s)&&(34!==a&&39!==a||!s)||this.slidePrev()):(33!==a&&34!==a&&38!==a&&40!==a||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==a&&40!==a||this.slideNext(),33!==a&&38!==a||this.slidePrev()),this.emit("keyPress",a)}},enable:function(){this.keyboard.enabled||(s(t).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(s(t).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},tt={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){r.extend(this,{keyboard:{enabled:!1,enable:J.enable.bind(this),disable:J.disable.bind(this),handle:J.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},et={lastScrollTime:r.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return e.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in t;if(!e){var i=t.createElement("div");i.setAttribute("onwheel","return;"),e="function"==typeof i.onwheel}return!e&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(e=t.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(t){var e=0,i=0,s=0,n=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),s=10*e,n=10*i,"deltaY"in t&&(n=t.deltaY),"deltaX"in t&&(s=t.deltaX),t.shiftKey&&!s&&(s=n,n=0),(s||n)&&t.deltaMode&&(1===t.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!e&&(e=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:e,spinY:i,pixelX:s,pixelY:n}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var e=t,i=this,s=i.params.mousewheel;if(i.params.cssMode&&e.preventDefault(),!i.mouseEntered&&!s.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var n=0,a=i.rtlTranslate?-1:1,o=et.normalize(e);if(s.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;n=o.pixelX*a}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;n=o.pixelY}else n=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*a:-o.pixelY;if(0===n)return!0;if(s.invert&&(n=-n),i.params.freeMode){var l={time:r.now(),delta:Math.abs(n),direction:Math.sign(n)},h=i.mousewheel.lastEventBeforeSnap,d=h&&l.time=i.minTranslate()&&(c=i.minTranslate()),c<=i.maxTranslate()&&(c=i.maxTranslate()),i.setTransition(0),i.setTranslate(c),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!u&&i.isBeginning||!p&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var f=i.mousewheel.recentWheelEvents;f.length>=15&&f.shift();var m=f.length?f[f.length-1]:void 0,v=f[0];if(f.push(l),m&&(l.delta>m.delta||l.direction!==m.direction))f.splice(0);else if(f.length>=15&&l.time-v.time<500&&v.delta-l.delta>=1&&l.delta<=6){var g=n>0?.8:.2;i.mousewheel.lastEventBeforeSnap=l,f.splice(0),i.mousewheel.timeout=r.nextTick((function(){i.slideToClosest(i.params.speed,!0,void 0,g)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=r.nextTick((function(){i.mousewheel.lastEventBeforeSnap=l,f.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)}),500))}if(d||i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),c===i.minTranslate()||c===i.maxTranslate())return!0}}else{var y={time:r.now(),delta:Math.abs(n),direction:Math.sign(n),raw:t},w=i.mousewheel.recentWheelEvents;w.length>=2&&w.shift();var b=w.length?w[w.length-1]:void 0;if(w.push(y),b?(y.direction!==b.direction||y.delta>b.delta)&&i.mousewheel.animateSlider(y):i.mousewheel.animateSlider(y),i.mousewheel.releaseScroll(y))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider:function(t){return t.delta>=6&&r.now()-this.mousewheel.lastScrollTime<60||(t.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",t.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",t.raw)),this.mousewheel.lastScrollTime=(new e.Date).getTime(),!1)},releaseScroll:function(t){var e=this.params.mousewheel;if(t.direction<0){if(this.isEnd&&!this.params.loop&&e.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&e.releaseOnEdges)return!0;return!1},enable:function(){var t=et.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(t,this.mousewheel.handle),!0;if(!t)return!1;if(this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=s(this.params.mousewheel.eventsTarged)),e.on("mouseenter",this.mousewheel.handleMouseEnter),e.on("mouseleave",this.mousewheel.handleMouseLeave),e.on(t,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var t=et.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(t,this.mousewheel.handle),!0;if(!t)return!1;if(!this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=s(this.params.mousewheel.eventsTarged)),e.off(t,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},it={update:function(){var t=this.params.navigation;if(!this.params.loop){var e=this.navigation,i=e.$nextEl,s=e.$prevEl;s&&s.length>0&&(this.isBeginning?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var t,e,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(t=s(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&t.length>1&&1===this.$el.find(i.nextEl).length&&(t=this.$el.find(i.nextEl))),i.prevEl&&(e=s(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&e.length>1&&1===this.$el.find(i.prevEl).length&&(e=this.$el.find(i.prevEl))),t&&t.length>0&&t.on("click",this.navigation.onNextClick),e&&e.length>0&&e.on("click",this.navigation.onPrevClick),r.extend(this.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;e&&e.length&&(e.off("click",this.navigation.onNextClick),e.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},st={update:function(){var t=this.rtl,e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,n=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,a=this.pagination.$el,r=this.params.loop?Math.ceil((n-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>n-1-2*this.loopedSlides&&(i-=n-2*this.loopedSlides),i>r-1&&(i-=r),i<0&&"bullets"!==this.params.paginationType&&(i=r+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===e.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,h,d=this.pagination.bullets;if(e.dynamicBullets&&(this.pagination.bulletSize=d.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(e.dynamicMainBullets+4)+"px"),e.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>e.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=e.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,h=((l=o+(Math.min(d.length,e.dynamicMainBullets)-1))+o)/2),d.removeClass(e.bulletActiveClass+" "+e.bulletActiveClass+"-next "+e.bulletActiveClass+"-next-next "+e.bulletActiveClass+"-prev "+e.bulletActiveClass+"-prev-prev "+e.bulletActiveClass+"-main"),a.length>1)d.each((function(t,n){var a=s(n),r=a.index();r===i&&a.addClass(e.bulletActiveClass),e.dynamicBullets&&(r>=o&&r<=l&&a.addClass(e.bulletActiveClass+"-main"),r===o&&a.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),r===l&&a.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next"))}));else{var c=d.eq(i),u=c.index();if(c.addClass(e.bulletActiveClass),e.dynamicBullets){for(var p=d.eq(o),f=d.eq(l),m=o;m<=l;m+=1)d.eq(m).addClass(e.bulletActiveClass+"-main");if(this.params.loop)if(u>=d.length-e.dynamicMainBullets){for(var v=e.dynamicMainBullets;v>=0;v-=1)d.eq(d.length-v).addClass(e.bulletActiveClass+"-main");d.eq(d.length-e.dynamicMainBullets-1).addClass(e.bulletActiveClass+"-prev")}else p.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),f.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next");else p.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),f.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next")}}if(e.dynamicBullets){var g=Math.min(d.length,e.dynamicMainBullets+4),y=(this.pagination.bulletSize*g-this.pagination.bulletSize)/2-h*this.pagination.bulletSize,w=t?"right":"left";d.css(this.isHorizontal()?w:"top",y+"px")}}if("fraction"===e.type&&(a.find("."+e.currentClass).text(e.formatFractionCurrent(i+1)),a.find("."+e.totalClass).text(e.formatFractionTotal(r))),"progressbar"===e.type){var b;b=e.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var _=(i+1)/r,x=1,T=1;"horizontal"===b?x=_:T=_,a.find("."+e.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+x+") scaleY("+T+")").transition(this.params.speed)}"custom"===e.type&&e.renderCustom?(a.html(e.renderCustom(this,i+1,r)),this.emit("paginationRender",this,a[0])):this.emit("paginationUpdate",this,a[0]),a[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)}},render:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===t.type){for(var n=this.params.loop?Math.ceil((e-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,a=0;a'+t.bulletElement+">";i.html(s),this.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(this,t.currentClass,t.totalClass):' / ',i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(this,t.progressbarFillClass):'',i.html(s)),"custom"!==t.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var i=s(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&1===t.$el.find(e.el).length&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click","."+e.bulletClass,(function(e){e.preventDefault();var i=s(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),r.extend(t.pagination,{$el:i,el:i[0]}))}},destroy:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click","."+t.bulletClass)}}},nt={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=this.rtlTranslate,i=this.progress,s=t.dragSize,n=t.trackSize,a=t.$dragEl,r=t.$el,o=this.params.scrollbar,l=s,h=(n-s)*i;e?(h=-h)>0?(l=s-h,h=0):-h+s>n&&(l=n+h):h<0?(l=s+h,h=0):h+s>n&&(l=n-h),this.isHorizontal()?(a.transform("translate3d("+h+"px, 0, 0)"),a[0].style.width=l+"px"):(a.transform("translate3d(0px, "+h+"px, 0)"),a[0].style.height=l+"px"),o.hide&&(clearTimeout(this.scrollbar.timeout),r[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){r[0].style.opacity=0,r.transition(400)}),1e3))}},setTransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=t.$dragEl,i=t.$el;e[0].style.width="",e[0].style.height="";var s,n=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,a=this.size/(this.size*this.snapGrid.length),o=a*(n/this.size);s="auto"===this.params.scrollbar.dragSize?n*a:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?e[0].style.width=s+"px":e[0].style.height=s+"px",i[0].style.display=a>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),r.extend(t,{trackSize:n,divider:a,moveDivider:o,dragSize:s}),t.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition:function(t){var e,i=this.scrollbar,s=this.rtlTranslate,n=i.$el,a=i.dragSize,r=i.trackSize,o=i.dragStartPos;e=(i.getPointerPosition(t)-n.offset()[this.isHorizontal()?"left":"top"]-(null!==o?o:a/2))/(r-a),e=Math.max(Math.min(e,1),0),s&&(e=1-e);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*e;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(t){var e=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,n=i.$el,a=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=t.target===a[0]||t.target===a?i.getPointerPosition(t)-t.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),s.transition(100),a.transition(100),i.setDragPosition(t),clearTimeout(this.scrollbar.dragTimeout),n.transition(0),e.hide&&n.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this.scrollbar,i=this.$wrapperEl,s=e.$el,n=e.$dragEl;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),i.transition(0),s.transition(0),n.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,n=i.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),s.transition("")),e.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=r.nextTick((function(){n.css("opacity",0),n.transition(400)}),1e3)),this.emit("scrollbarDragEnd",t),e.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,n=this.params,a=e.$el[0],r=!(!o.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.touch?(a.addEventListener(i.start,this.scrollbar.onDragStart,r),a.addEventListener(i.move,this.scrollbar.onDragMove,r),a.addEventListener(i.end,this.scrollbar.onDragEnd,l)):(a.addEventListener(s.start,this.scrollbar.onDragStart,r),t.addEventListener(s.move,this.scrollbar.onDragMove,r),t.addEventListener(s.end,this.scrollbar.onDragEnd,l))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,n=this.params,a=e.$el[0],r=!(!o.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.touch?(a.removeEventListener(i.start,this.scrollbar.onDragStart,r),a.removeEventListener(i.move,this.scrollbar.onDragMove,r),a.removeEventListener(i.end,this.scrollbar.onDragEnd,l)):(a.removeEventListener(s.start,this.scrollbar.onDragStart,r),t.removeEventListener(s.move,this.scrollbar.onDragMove,r),t.removeEventListener(s.end,this.scrollbar.onDragEnd,l))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,i=this.params.scrollbar,n=s(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&n.length>1&&1===e.find(i.el).length&&(n=e.find(i.el));var a=n.find("."+this.params.scrollbar.dragClass);0===a.length&&(a=s('
'),n.append(a)),r.extend(t,{$el:n,el:n[0],$dragEl:a,dragEl:a[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},at={setTransform:function(t,e){var i=this.rtl,n=s(t),a=i?-1:1,r=n.attr("data-swiper-parallax")||"0",o=n.attr("data-swiper-parallax-x"),l=n.attr("data-swiper-parallax-y"),h=n.attr("data-swiper-parallax-scale"),d=n.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=r,l="0"):(l=r,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*e*a+"%":o*e*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*e+"%":l*e+"px",null!=d){var c=d-(d-1)*(1-Math.abs(e));n[0].style.opacity=c}if(null==h)n.transform("translate3d("+o+", "+l+", 0px)");else{var u=h-(h-1)*(1-Math.abs(e));n.transform("translate3d("+o+", "+l+", 0px) scale("+u+")")}},setTranslate:function(){var t=this,e=t.$el,i=t.slides,n=t.progress,a=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.setTransform(i,n)})),i.each((function(e,i){var r=i.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(r+=Math.ceil(e/2)-n*(a.length-1)),r=Math.min(Math.max(r,-1),1),s(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.setTransform(i,r)}))}))},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){var n=s(i),a=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),n.transition(a)}))}},rt={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,s=t.targetTouches[1].pageX,n=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(s-e,2)+Math.pow(n-i,2))},onGestureStart:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!o.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;i.fakeGestureTouched=!0,n.scaleStart=rt.getDistanceBetweenTouches(t)}n.$slideEl&&n.$slideEl.length||(n.$slideEl=s(t.target).closest(".swiper-slide"),0===n.$slideEl.length&&(n.$slideEl=this.slides.eq(this.activeIndex)),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+e.containerClass),n.maxRatio=n.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,0!==n.$imageWrapEl.length)?(n.$imageEl.transition(0),this.zoom.isScaling=!0):n.$imageEl=void 0},onGestureChange:function(t){var e=this.params.zoom,i=this.zoom,s=i.gesture;if(!o.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;i.fakeGestureMoved=!0,s.scaleMove=rt.getDistanceBetweenTouches(t)}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=o.gestures?t.scale*i.currentScale:s.scaleMove/s.scaleStart*i.currentScale,i.scale>s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scales.touchesStart.x))return void(s.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.ys.touchesStart.y))return void(s.isTouched=!1)}t.preventDefault(),t.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentXs.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentYs.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),n.prevPositionX||(n.prevPositionX=s.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=s.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(s.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(s.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(s.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(s.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=s.touchesCurrent.x,n.prevPositionY=s.touchesCurrent.y,n.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,i=t.image,s=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var n=300,a=300,r=s.x*n,o=i.currentX+r,l=s.y*a,h=i.currentY+l;0!==s.x&&(n=Math.abs((o-i.currentX)/s.x)),0!==s.y&&(a=Math.abs((h-i.currentY)/s.y));var d=Math.max(n,a);i.currentX=o,i.currentY=h;var c=i.width*t.scale,u=i.height*t.scale;i.minX=Math.min(e.slideWidth/2-c/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-u/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),e.$imageWrapEl.transition(d).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var t=this.zoom,e=t.gesture;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,i,n,a,r,o,l,h,d,c,u,p,f,m,v,g,y=this.zoom,w=this.params.zoom,b=y.gesture,_=y.image;b.$slideEl||(b.$slideEl=this.clickedSlide?s(this.clickedSlide):this.slides.eq(this.activeIndex),b.$imageEl=b.$slideEl.find("img, svg, canvas"),b.$imageWrapEl=b.$imageEl.parent("."+w.containerClass)),b.$imageEl&&0!==b.$imageEl.length&&(b.$slideEl.addClass(""+w.zoomedSlideClass),void 0===_.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,i="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=_.touchesStart.x,i=_.touchesStart.y),y.scale=b.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,y.currentScale=b.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,t?(v=b.$slideEl[0].offsetWidth,g=b.$slideEl[0].offsetHeight,n=b.$slideEl.offset().left+v/2-e,a=b.$slideEl.offset().top+g/2-i,l=b.$imageEl[0].offsetWidth,h=b.$imageEl[0].offsetHeight,d=l*y.scale,c=h*y.scale,f=-(u=Math.min(v/2-d/2,0)),m=-(p=Math.min(g/2-c/2,0)),(r=n*y.scale)f&&(r=f),(o=a*y.scale)

m&&(o=m)):(r=0,o=0),b.$imageWrapEl.transition(300).transform("translate3d("+r+"px, "+o+"px,0)"),b.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=this.clickedSlide?s(this.clickedSlide):this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+e.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+e.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0};o.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",t.onGestureChange,i),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove,i)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0};o.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",t.onGestureChange,i),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove,i)}}},ot={loadInSlide:function(t,e){void 0===e&&(e=!0);var i=this,n=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var a=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),r=a.find("."+n.elementClass+":not(."+n.loadedClass+"):not(."+n.loadingClass+")");!a.hasClass(n.elementClass)||a.hasClass(n.loadedClass)||a.hasClass(n.loadingClass)||(r=r.add(a[0])),0!==r.length&&r.each((function(t,r){var o=s(r);o.addClass(n.loadingClass);var l=o.attr("data-background"),h=o.attr("data-src"),d=o.attr("data-srcset"),c=o.attr("data-sizes");i.loadImage(o[0],h||l,d,c,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(d&&(o.attr("srcset",d),o.removeAttr("data-srcset")),c&&(o.attr("sizes",c),o.removeAttr("data-sizes")),h&&(o.attr("src",h),o.removeAttr("data-src"))),o.addClass(n.loadedClass).removeClass(n.loadingClass),a.find("."+n.preloaderClass).remove(),i.params.loop&&e){var t=a.attr("data-swiper-slide-index");if(a.hasClass(i.params.slideDuplicateClass)){var s=i.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(s.index(),!1)}else{var r=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');i.lazy.loadInSlide(r.index(),!1)}}i.emit("lazyImageReady",a[0],o[0])}})),i.emit("lazyImageLoad",a[0],o[0])}))}},load:function(){var t=this,e=t.$wrapperEl,i=t.params,n=t.slides,a=t.activeIndex,r=t.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesPerView;function h(t){if(r){if(e.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(n[t])return!0;return!1}function d(t){return r?s(t).attr("data-swiper-slide-index"):s(t).index()}if("auto"===l&&(l=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+i.slideVisibleClass).each((function(e,i){var n=r?s(i).attr("data-swiper-slide-index"):s(i).index();t.lazy.loadInSlide(n)}));else if(l>1)for(var c=a;c1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var u=o.loadPrevNextAmount,p=l,f=Math.min(a+p+Math.max(u,p),n.length),m=Math.max(a-Math.max(p,u),0),v=a+l;v0&&t.lazy.loadInSlide(d(y));var w=e.children("."+i.slidePrevClass);w.length>0&&t.lazy.loadInSlide(d(w))}}},lt={LinearSpline:function(t,e){var i,s,n,a,r;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(r=function(t,e){for(s=-1,i=t.length;i-s>1;)t[n=i+s>>1]<=e?s=n:i=n;return i}(this.x,t),a=r-1,(t-this.x[a])*(this.y[r]-this.y[a])/(this.x[r]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new lt.LinearSpline(this.slidesGrid,t.slidesGrid):new lt.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i,s,n=this,a=n.controller.control;function r(t){var e=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(t),s=-n.controller.spline.interpolate(-e)),s&&"container"!==n.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(n.maxTranslate()-n.minTranslate()),s=(e-n.minTranslate())*i+t.minTranslate()),n.params.controller.inverse&&(s=t.maxTranslate()-s),t.updateProgress(s),t.setTranslate(s,n),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(a))for(var o=0;o0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),e&&e.length>0&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(i,n){var a=s(n);t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,e.paginationBulletMessage.replace(/{{index}}/,a.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var t,e,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",this.a11y.onEnterKey)),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.prevSlideMessage),e.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var t,e;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&t.off("keydown",this.a11y.onEnterKey),e&&e.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},dt={init:function(){if(this.params.history){if(!e.history||!e.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=dt.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||e.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||e.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=dt.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var t=e.location.pathname.slice(1).split("/").filter((function(t){return""!==t})),i=t.length;return{key:t[i-2],value:t[i-1]}},setHistory:function(t,i){if(this.history.initialized&&this.params.history.enabled){var s=this.slides.eq(i),n=dt.slugify(s.attr("data-history"));e.location.pathname.includes(t)||(n=t+"/"+n);var a=e.history.state;a&&a.value===n||(this.params.history.replaceState?e.history.replaceState({value:n},null,n):e.history.pushState({value:n},null,n))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){if(e)for(var s=0,n=this.slides.length;s

'),i.append(t)),t.css({height:a+"px"})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=s('
'),e.append(t)));for(var p=0;p-1&&(u=90*m+90*y,o&&(u=90*-m-90*y)),f.transform(x),h.slideShadows){var T=d?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),S=d?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===T.length&&(T=s('
'),f.append(T)),0===S.length&&(S=s('
'),f.append(S)),T.length&&(T[0].style.opacity=Math.max(-y,0)),S.length&&(S[0].style.opacity=Math.max(y,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),h.shadow)if(d)t.transform("translate3d(0px, "+(a/2+h.shadowOffset)+"px, "+-a/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")");else{var E=Math.abs(u)-90*Math.floor(Math.abs(u)/90),C=1.5-(Math.sin(2*E*Math.PI/360)/2+Math.cos(2*E*Math.PI/360)/2),A=h.shadowScale,P=h.shadowScale/C,L=h.shadowOffset;t.transform("scale3d("+A+", 1, "+P+") translate3d(0px, "+(r/2+L)+"px, "+-r/2/P+"px) rotateX(-90deg)")}var k=W.isSafari||W.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+k+"px) rotateX("+(this.isHorizontal()?0:u)+"deg) rotateY("+(this.isHorizontal()?-u:0)+"deg)")},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},mt={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i
'),n.append(d)),0===c.length&&(c=s('
'),n.append(c)),d.length&&(d[0].style.opacity=Math.max(-a,0)),c.length&&(c[0].style.opacity=Math.max(a,0))}n.transform("translate3d("+l+"px, "+h+"px, 0px) rotateX("+o+"deg) rotateY("+r+"deg)")}},setTransition:function(t){var e=this,i=e.slides,s=e.activeIndex,n=e.$wrapperEl;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var a=!1;i.eq(s).transitionEnd((function(){if(!a&&e&&!e.destroyed){a=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i
'),m.append(S)),0===E.length&&(E=s('
'),m.append(E)),S.length&&(S[0].style.opacity=g>0?g:0),E.length&&(E[0].style.opacity=-g>0?-g:0)}}(o.pointerEvents||o.prefixedPointerEvents)&&(n[0].style.perspectiveOrigin=d+"px 50%")},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},gt={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,r.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),r.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):r.isObject(t.swiper)&&(this.thumbs.swiper=new e(r.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var t=this.thumbs.swiper;if(t){var e=t.clickedIndex,i=t.clickedSlide;if(!(i&&s(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==e)){var n;if(n=t.params.loop?parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"),10):e,this.params.loop){var a=this.activeIndex;this.slides.eq(a).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,a=this.activeIndex);var r=this.slides.eq(a).prevAll('[data-swiper-slide-index="'+n+'"]').eq(0).index(),o=this.slides.eq(a).nextAll('[data-swiper-slide-index="'+n+'"]').eq(0).index();n=void 0===r?o:void 0===o?r:o-an?s-Math.floor(i/2)+1:s+Math.floor(i/2)-1:s>n&&(s=s-i+1),e.slideTo(s,t?0:void 0))}var o=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(o=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(o=1),o=Math.floor(o),e.slides.removeClass(l),e.params.loop||e.params.virtual&&e.params.virtual.enabled)for(var h=0;h0&&!s(t.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){r.extend(this,{scrollbar:{init:nt.init.bind(this),destroy:nt.destroy.bind(this),updateSize:nt.updateSize.bind(this),setTranslate:nt.setTranslate.bind(this),setTransition:nt.setTransition.bind(this),enableDraggable:nt.enableDraggable.bind(this),disableDraggable:nt.disableDraggable.bind(this),setDragPosition:nt.setDragPosition.bind(this),getPointerPosition:nt.getPointerPosition.bind(this),onDragStart:nt.onDragStart.bind(this),onDragMove:nt.onDragMove.bind(this),onDragEnd:nt.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){r.extend(this,{parallax:{setTransform:at.setTransform.bind(this),setTranslate:at.setTranslate.bind(this),setTransition:at.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){e[i]=rt[i].bind(t)})),r.extend(t,{zoom:e});var i=1;Object.defineProperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var s=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,n=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,s,n)}i=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd:function(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){r.extend(this,{lazy:{initialImageLoaded:!1,load:ot.load.bind(this),loadInSlide:ot.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){r.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:lt.getInterpolateFunction.bind(this),setTranslate:lt.setTranslate.bind(this),setTransition:lt.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition:function(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{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}}"}},create:function(){var t=this;r.extend(t,{a11y:{liveRegion:s('')}}),Object.keys(ht).forEach((function(e){t.a11y[e]=ht[e].bind(t)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){r.extend(this,{history:{init:dt.init.bind(this),setHistory:dt.setHistory.bind(this),setHistoryPopState:dt.setHistoryPopState.bind(this),scrollToSlide:dt.scrollToSlide.bind(this),destroy:dt.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)},slideChange:function(){this.history.initialized&&this.params.cssMode&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){r.extend(this,{hashNavigation:{initialized:!1,init:ct.init.bind(this),destroy:ct.destroy.bind(this),setHash:ct.setHash.bind(this),onHashCange:ct.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()},slideChange:function(){this.hashNavigation.initialized&&this.params.cssMode&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;r.extend(t,{autoplay:{running:!1,paused:!1,run:ut.run.bind(t),start:ut.start.bind(t),stop:ut.stop.bind(t),pause:ut.pause.bind(t),onVisibilityChange:function(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){r.extend(this,{fadeEffect:{setTranslate:pt.setTranslate.bind(this),setTransition:pt.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};r.extend(this.params,t),r.extend(this.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){r.extend(this,{cubeEffect:{setTranslate:ft.setTranslate.bind(this),setTransition:ft.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};r.extend(this.params,t),r.extend(this.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){r.extend(this,{flipEffect:{setTranslate:mt.setTranslate.bind(this),setTransition:mt.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};r.extend(this.params,t),r.extend(this.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){r.extend(this,{coverflowEffect:{setTranslate:vt.setTranslate.bind(this),setTransition:vt.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){r.extend(this,{thumbs:{swiper:null,init:gt.init.bind(this),update:gt.update.bind(this),onThumbClick:gt.onThumbClick.bind(this)}})},on:{beforeInit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];return void 0===V.use&&(V.use=V.Class.use,V.installModule=V.Class.installModule),V.use(yt),V},"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(i=i||self).Swiper=s(); /*! * ANI-Util JavaScript Library v1.0 * * Copyright 2021. Yoon jae-ho * Released under the MIT license * * Date: 2021-02-09 */ const n={scrollController:function(){let t,e,i,s,n={},a=navigator.userAgent.toLowerCase(),r=a.indexOf("mac os")>-1,o=document.scrollingElement||document.documentElement||document.body.parentNode||document.body,l=r?60:120,h=o===document.body&&document.documentElement?document.documentElement:o,d=!1,c=null;const u=function(s){t=s.speed?r?s.speed/2:s.speed:l,e=s.duration?s.duration:.6,i=o.scrollTop},p={wheel:function(){"Netscape"==navigator.appName&&-1!=navigator.userAgent.search("Trident")||-1!=a.indexOf("msie")?document.documentElement.addEventListener("mousewheel",f.scrollEvent,{passive:!1}):document.documentElement.addEventListener("wheel",f.scrollEvent,{passive:!1})},scroll:function(){window.addEventListener("scroll",(function(){"hidden"!=document.documentElement.style.overflow&&"hidden"!=document.body.style.overflow&&(d||(i=o.scrollTop))}))}},f={scrollEvent:function(e){if("hidden"==document.documentElement.style.overflow||"hidden"==document.body.style.overflow)return;e.preventDefault();const a=document.body.getAttribute("data-scroll-speed"),r=f.normalizeWheelDelta(e),l=n.currDelta&&a?a:a||t?t:120;i+=-r*l,s=Math.max(0,Math.min(i,o.scrollHeight-h.clientHeight)),f.update()},normalizeWheelDelta:function(t){return t.detail?t.wheelDelta?t.wheelDelta/t.detail/40*(t.detail>0?1:-1):-t.detail/3:t.wheelDelta/120},update:function(){let t=s-o.scrollTop,n=0>=Math.ceil(o.scrollTop+t)?0:i>s?s:Math.ceil(o.scrollTop+t);d=!0,TweenMax.to(o,e,{ease:"circ.out",scrollTop:n,onComplete:function(){clearTimeout(c),c=null,c=setTimeout((function(){d=!1,i=o.scrollTop}),500)}}),i<=0?i=0:i>=s&&(i=s)}};return{init:function(t){return u(t),p.wheel(),p.scroll(),this.opt=t},destroy:function(t){document.documentElement.removeEventListener("mousewheel",f.scrollEvent),document.documentElement.removeEventListener("wheel",f.scrollEvent),t&&(n={})}}}};window.RING=window.RING||{};const a={isIosDevice:function(){const t=/iPad|iPhone|iPod/.test(navigator.userAgent);return t?document.documentElement.classList.add("isIosDevice"):document.documentElement.classList.add("isNotIosDevice"),t}(),checkGlobal:void(0===location.pathname.indexOf("/global/galaxy")||!0===window.IS_CAMPAIGN?document.documentElement.classList.add("global"):document.documentElement.classList.add("dotcom")),checkOS:function(){let t=navigator.appVersion.match(/(mac|win|linux)/i);t=t?t[1].toLowerCase():"",document.documentElement.classList.add(t)}(),isFireFox:void(/firefox/i.test(navigator.userAgent)&&document.documentElement.classList.add("firefox")),isWebkit:void(/applewebkit/i.test(navigator.userAgent)&&document.documentElement.classList.add("webkit")),isChrome:void(/chrome/i.test(navigator.userAgent)&&document.documentElement.classList.add("chrome")),isOpera:void(/opera/i.test(navigator.userAgent)&&document.documentElement.classList.add("opera")),isIos:void(/ip(ad|hone|od)/i.test(navigator.userAgent)&&document.documentElement.classList.add("ios")),isCrIos:void(/crios/i.test(navigator.userAgent)&&document.documentElement.classList.add("crios")),isAndroid:void(/android/i.test(navigator.userAgent)&&document.documentElement.classList.add("android")),isSafari:function(){const t=/applewebkit/i.test(navigator.userAgent),e=/chrome/i.test(navigator.userAgent);t&&!e&&document.documentElement.classList.add("safari")}(),isHuawei:void(/HUAWEICLT/i.test(navigator.userAgent)&&document.documentElement.classList.add("huawei")),isUCBrowser:void(/UCBrowser/i.test(navigator.userAgent)&&document.documentElement.classList.add("ucbrowser")),winSize:function(){let t="Netscape"===navigator.appName,e=-1!==navigator.appVersion.indexOf("Mac"),i=-1!==navigator.userAgent.indexOf("Safari"),s=-1!==navigator.userAgent.indexOf("Chrome");return t&&!e&&i&&!s}()?function(){return{w:e(t).width(),h:e(t).height()}}:function(){return{w:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}},requestAFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},cancelAFrame:window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){window.clearTimeout(t)},isObject:function(t){return"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object},def:function(){let t=[],e=arguments.length;for(;e--;)t[e]=arguments[e];let i=Object(t[0]);for(let e=1;e-1?"global":"jp"},isLowNetwork:function(){var t=a.getCookie("___GALAXY_SPEED")||a.getCookie("__COM_SPEED");return null!=t&&null!=t&&("L"==t||"H"!=t&&void 0)},getNavHeight:function(){let t=0;const e=document.querySelector(".pd-g-header-navigation")||document.querySelector("#subnav")||document.querySelector(".sticky-menu")||document.querySelector(".pd-g-floating-nav");if(e)if(e.classList.contains("pd-g-header-navigation")){const i=e.querySelector(".pd-header-navigation"),s=i.querySelector(".pd-header-navigation__menu-wrap");t=i.clientHeight+s.clientHeight}else t=e.clientHeight;return t},isBrokenFixed:function(){const t=window.innerWidth,e=window.innerHeight;let i=!1;return document.documentElement.classList.remove("is-broken-fixed"),t>=1440&&e<=540||t<=810&&e/t<.5277||e-1)t="trident/.*rv:";else{if(!(e.search("edge/")>-1))return-1;t="edge/"}return null!=new RegExp(t+"([0-9]{1,})(\\.{0,}[0-9]{0,1})").exec(e)?(document.documentElement.classList.add("isIEorEdge"),parseFloat(RegExp.$1+RegExp.$2)):-1}(),page:{scrollLock:{className:"is-no-scroll",barWidth:function(){return window.innerWidth-document.documentElement.clientWidth},el:e("html"),run:function(t){document.documentElement.style.paddingRight=t+"px"},off:function(){this.barWidth(),this.el.removeClass(this.className),this.el.removeClass("hive-layer-scroll-lock"),this.run(0)},on:function(){var t=this.barWidth();this.el.addClass(this.className),this.run(t)}}},MIN_VIEW_HEIGHT:400,RESPONSIVE:{PC:{NAME:"pc",WIDTH:1440},TABLET:{NAME:"tablet",WIDTH:1024},MOBILE:{NAME:"mobile",WIDTH:767}}};RING.UTILS=a,function(){"use strict";window.RING=window.RING||{};const t=RING.UTILS;RING.ImageLoader=class{constructor(t=container,e){const i={el:t,lazyClass:".js-img-src",lazyCompleteClass:"load-complete",responsiveClass:e.responsiveClass||".js-res-img",loadOption:e.loadOption,visiblePoint:e.visiblePoint?e.visiblePoint:0,useDefaultImg:e.useDefaultImg,resizeStart:null};this.opts=i,this.classes=i.classes,this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this),scroll:this.lazyEvent.bind(this)},this.el=document.querySelector(t),this.init()}init(){this.initOpts(),this.getLazyImage(),this.getResponsiveImage(),this.bindEvents()}initOpts(){this.targetAttr=this.opts.loadOption[0].attribute,this.responsiveCheck=this.opts.loadOption,this.dynamicCallCount=0,this.dynamicLoadedComplate=!1,this.opts.useDefaultImg&&this.setDefaultImage()}getLazyImage(){let t=[];const e=this.el.children;Array.from(e).forEach((e=>{if(!e.classList.contains("is-feature-hide")){const i=e.querySelectorAll(this.opts.lazyClass);t.push(...i)}})),this.lazyImages=t,this.lazyLength=t.length}getResponsiveImage(){const t=this.el.querySelectorAll(this.opts.responsiveClass);this.responsiveImages=t,this.responsiveLength=t.length}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll),this.responsiveCheck&&window.addEventListener("resize",this.events.resize)}onLoadHandler(){this.events.resize(),this.events.scroll(),setTimeout((()=>{this.responsiveHandler(),this.lazyEvent()}),300),window.removeEventListener("load",this.events.load)}onResizeHandler(){clearTimeout(this.opts.resizeStart),this.opts.resizeStart=setTimeout((()=>{this.responsiveHandler(),this.lazyEvent()}),150)}lazyEvent(){this.setLazyImage(),this.lazyLength===this.lazyCompleteLength&&window.removeEventListener("scroll",this.events.scroll)}responsiveHandler(){this.windowWidth=window.innerWidth;let t=this.opts.loadOption.length;for(let e=0;es,n&&this.opts.loadOption[e].attribute!==this.oldAttr&&(this.targetAttr=this.opts.loadOption[e].attribute,this.oldAttr=this.targetAttr,this.attrIndex=e,this.dynamicCallCount=0,this.setResponsiveImage())}}setResponsiveImage(t){if(t)for(let e=0;e-1||s.indexOf(".png")>-1)&&(s=`${s}?imbypass=true`),t[e].classList.contains(this.opts.lazyCompleteClass)||(t[e].setAttribute("src",s),t[e].classList.add(this.opts.lazyCompleteClass))}else for(let t=0;t-1||i.indexOf(".png")>-1)&&(i=`${i}?imbypass=true`),e.classList.contains(this.opts.lazyCompleteClass)&&e.setAttribute("src",i)}}checkCompleteImage(){let t=this.el.querySelectorAll("."+this.opts.lazyCompleteClass);this.lazyCompleteLength=t.length}setDefaultImage(){for(var t=0;tl&&r<=l||rh||rh||r>l&&o-1||t.indexOf(".png")>-1)&&(t=`${t}?imbypass=true`),!n.classList.contains(this.opts.lazyCompleteClass)){n.setAttribute("src",t);var e=()=>{1==this.opts.lazyClass.split(" ").length&&n.classList.remove(c),this.checkCompleteImage(),n.removeEventListener("load",e)};n.addEventListener("load",e),n.classList.add(this.opts.lazyCompleteClass)}}}}findRemainingImageAttr(t){for(var e=this.opts.loadOption.length,i=0;i=0;e--){let i=t.getAttribute(this.opts.loadOption[e].attribute);if(i)return i;if(0==e&&null==i)return this.findRemainingImageAttr(t)}}findImageHandler(t){return 0!==this.attrIndex?this.findNextImageAttr(t):this.findRemainingImageAttr(t)}}}(),function(){"use strict";window.RING=window.RING||{};const t=RING.UTILS,e=t.RESPONSIVE;RING.VideoLoader=class{constructor(t=container,e){const i={el:t,lazyClass:e.lazyClass||".js-video-src",responsiveClass:e.responsiveClass||".js-res-video",imageLazyCompleteClass:"load-complete",notLoadElement:e.notLoadElement||[],loadOption:e.loadOption,visiblePoint:e.visiblePoint?e.visiblePoint:0,resizeStart:null,classes:{loaded:"loaded",ended:"ended"}};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){this.initOpts(),this.getLazyVideo(),this.getResponsiveVideo(),this.bindEvents()}initOpts(){this.getCurrentDevice();const t="mobile"!==this.currentDevice?0:1;this.prevSrcArray=[],this.targetAttr=this.opts.loadOption[t].attribute,this.responsiveCheck=this.opts.loadOption,this.videoCallStack=[]}getLazyVideo(){let t=Array.from(this.el.querySelectorAll(this.opts.lazyClass)).filter((t=>{t.isVideoInit=!1;for(let e=0;e{if(t.querySelector("video")&&!t.closest(".is-feature-hide"))return t})),this.lazyVideos=t,this.lazyLength=t.length}getResponsiveVideo(){let t=Array.from(this.el.querySelectorAll(this.opts.responsiveClass)).filter((t=>{for(let e=0;e=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{this.getCurrentDevice(),this.responsiveHandler(),this.lazyEvent()}),80)}lazyEvent(){this.setLazyVideo(),this.lazyLength===this.lazyCompleteLength&&window.removeEventListener("scroll",this.lazyEvent.bind(this))}responsiveHandler(){this.windowWidth=window.innerWidth;let t=this.opts.loadOption.length;for(let e=0;es,n&&this.opts.loadOption[e].attribute!==this.oldAttr&&(this.targetAttr=this.opts.loadOption[e].attribute,this.oldAttr=this.targetAttr,this.attrIndex=e,this.setResponsiveVideo())}}setResponsiveVideo(t){const e=t=>{const e=t.querySelector("video"),i=t.getAttribute(this.targetAttr);e.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=i+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true")),e.indexOf("mp4")>-1&&(t.src=i+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"))})),e.isCanplayThrough=!1,e.load(),e.addEventListener("canplaythrough",(()=>{window.setTimeout((()=>{e.isCanplayThrough=!0,t.classList.add(this.classes.loaded)}),500),this.checkCompleteVideo()}),{once:!0})};if(t)for(let i=0;ia-window.innerHeight*(0!=window.pageYOffset?this.opts.visiblePoint:0)&&e{this.checkCompleteVideo(),this.videoCallStack.splice(0,1),this.videoCallStack.length>0&&this.setVideoSrc()},l=()=>{window.fetch(s+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"),{mode:"no-cors"}).then((t=>{if(404===t.status)return fetch(s+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"),{mode:"no-cors"})})).then((t=>{404===t.status&&o()})).catch((()=>{o()}))},h=()=>{window.setTimeout((()=>{i.isCanplayThrough=!0,e.classList.add(this.classes.loaded)}),500),1==this.opts.lazyClass.split(" ").length&&e.classList.remove(a),o()};this.prevSrcArray[t]!==r&&(i.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=s+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true")),e.indexOf("mp4")>-1&&(t.src=s+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"))})),i.isCanplayThrough=!1,i.load(),i.addEventListener("canplaythrough",h,{once:!0}),i.addEventListener("error",l,!0),e.isVideoInit=!0,this.prevSrcArray[t]=r)}checkCompleteVideo(){let t=Array.from(this.el.querySelectorAll("."+this.classes.loaded)).filter((t=>{for(let e=0;e=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=i+".webm"),e.indexOf("mp4")>-1&&(t.src=i+".mp4"),this.video.load()})),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.video.addEventListener("canplaythrough",(()=>{t.isLowNetwork()||this.onPlay()}),{once:!0})),this.prevVideoSrc=s}}onLoad(e){if(e===this.videoElement){const e="mobile"!==this.currentDevice?"data-media-pc":"data-media-mo",i=this.videoElement.getAttribute(e);this.videoElement.playState=!1,this.video.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=i+".webm"),e.indexOf("mp4")>-1&&(t.src=i+".mp4"),this.video.load()})),this.video.isCanplayThrough=!1,this.video.addEventListener("canplaythrough",(()=>{this.video.isCanplayThrough=!0,t.isLowNetwork()||this.onPlay()}),{once:!0})}}onPlay(t){const e=()=>{if(!this.videoElement.playState){this.video.currentTime===this.video.duration&&(this.video.currentTime=0),this.autoPlay&&(this.videoElement.autoPlayState=!0),this.videoElement.playState=!0,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.paused);const t=()=>{this.video.isCanplayThrough&&this.video.readyState>3?(cancelAnimationFrame(this.opts.videoFrame),clearTimeout(this.opts.videoPlayTimeout),this.opts.videoPlayTimeout=setTimeout((()=>{this.video.play(),this.updateController(),this.outCallback("updatePlayState",!0),this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.paused),this.videoElement.classList.add(this.classes.playing)}),250)):this.opts.videoFrame=requestAnimationFrame(t)};this.opts.videoFrame=requestAnimationFrame(t),this.video.addEventListener("ended",this.updatePlayEnded.bind(this),{once:!0})}};t?t===this.videoElement&&e():e()}onPause(){this.video.paused||this.video.pause(),this.videoElement.playState=!1,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.add(this.classes.paused),this.updateController()}onEnded(){this.video.readyState>3&&(this.video.ended||this.video.pause(),this.video.currentTime=this.video.duration,this.videoElement.playState=!1,this.videoElement.classList.add(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController())}onReset(t){this.videoElement.playState||(cancelAnimationFrame(this.opts.videoFrame),clearTimeout(this.opts.videoPlayTimeout));const e=()=>{this.video.pause(),this.video.currentTime=0,this.videoElement.playState=!1,this.autoPlay&&(this.videoElement.autoPlayState=!1),this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController()};t?t===this.videoElement&&e():e()}onCanplayThrough(){const t=this.opts.videoLazyClass.split("."),e=t[t.length-1];this.useController&&window.setTimeout((()=>{this.videoController.style.display="block"}),500),this.videoElement.classList.add(this.classes.loaded),1==this.opts.videoLazyClass.split(" ").length&&this.videoElement.classList.remove(e),this.isCanplay=!0,this.onScrollHandler(),this.isCanplay=!1}onTimeUpdate(){const t={el:this.videoElement,duration:this.video.duration,currentTime:this.video.currentTime,playState:this.videoElement.playState,controller:this.videoController};this.outCallback("updateTime",t)}onClickController(t){t.preventDefault(),this.videoElement.playState?this.onPause():this.onPlay()}onVideoPlay(){this.videoElement.playState=!0,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.add(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!0)}onVideoPause(){this.videoElement.playState=!1,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.add(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!1)}onVideoEnded(){this.videoElement.playState=!1,this.videoElement.classList.add(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!1)}updatePlayEnded(){this.onPause()}updateController(){if(!this.useController)return;this.videoElement.playState?this.videoController.classList.add(this.classes.isPaused):this.videoController.classList.remove(this.classes.isPaused);const t={el:this.videoController,playState:this.videoElement.playState};this.outCallback("updateController",t),this.outCallback("updatePlayState",this.videoElement.playState)}onScrollHandler(){if(this.videoElement.closest(".cm-layer"))return;const e=scrollY>this.lastScrollY?"down":"up",i=t.getHeight(this.videoElement)*this.opts.playOffset,s=t.getScroll().top,n=t.getScroll().bottom,a=t.getOffset(this.videoElement).top,r=t.getOffset(this.videoElement).bottom,o=this.videoElement.classList.contains(this.classes.playing)&&this.videoElement.playState,l=this.videoElement.classList.contains(this.classes.paused)&&!this.videoElement.playState,h=this.videoElement.classList.contains(this.classes.ended)&&!this.videoElement.playState;if("oneWay"===this.opts.playType)if(n>=a+i&&s<=r){(this.isCanplay||"down"===e)&&(!this.autoPlay||this.videoElement.playState||this.videoElement.autoPlayState||t.isLowNetwork()||this.onPlay())}else nr&&this.autoPlay&&(this.videoElement.autoPlayState?(o||l)&&this.onEnded():this.videoElement.classList.add(this.classes.ended));else"reverse"===this.opts.playType&&(n>=a+i&&s<=r-i?!this.autoPlay||this.videoElement.playState||this.videoElement.autoPlayState||t.isLowNetwork()||this.onPlay():(s>r||n{this.isCanplay=!0,this.onReset(),this.onScrollHandler(),this.isCanplay=!1}),100)}onResizeHandler(){t.winSize().w!==this.winWidth&&(this.winWidth=t.winSize().w,null==this.opts.resizeStart&&(this.opts.resizeStart=this.winWidth,this.resizeAnimateFunc()),window.clearTimeout(this.resizeEndTime),this.resizeEndTime=window.setTimeout(this.resizeEndFunc.bind(this),150))}resizeAnimateFunc(){this.setLayout(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,t.cancelAFrame.call(window,this.resizeRequestFrame)}setLayout(){this.onScrollHandler(),this.winWidth>=e.MOBILE.WIDTH?this.currentDevice="desktop":this.currentDevice="mobile",this.currentDevice!==this.prevDevice&&this.onResponsiveChange(),this.prevDevice=this.currentDevice}outCallback(t,e){var i=this.opts.on[t];null!=i&&i(e)}}}(),function(){"use strict";window.RING=window.RING||{};const t=function(){const t={};let i=!1,s=null,r=null;const o=function(){t.resizeTimeout=null,t.supClicker=document.querySelectorAll("a.click_sup"),t.supTopBtn=document.querySelectorAll("button.click_disclaimer"),t.contents=document.getElementById("contents")||document.getElementById("content"),t.allClickable=t.contents.querySelectorAll("a, button, input, select")},l=function(){let e=0;for(window.addEventListener("load",h),window.addEventListener("resize",c),window.addEventListener("scroll",u),e=0;e{const t=document.querySelectorAll(".click_sup"),e=document.querySelectorAll("li.common-bottom-disclaimer__list-item"),i=Array.from(e).map((t=>t.getAttribute("data-sup")));Array.from(t).map((t=>{const e=t.getAttribute("data-sup-tag");if(i.indexOf(e)>-1&&(t.innerText=i.indexOf(e)+1),-1===i.indexOf(e)){const e=t.parentElement,i=t.parentElement?.children.length??0;1===i&&e.remove(),i>1&&(e.removeChild(t.nextSibling),t.remove(),3===e.childNodes.length&&e.removeChild(e.childNodes[2]))}}))},c=function(){i=window.innerWidth>=1024?"desktop":window.innerWidth>=768&&window.innerWidth<1024?"tablet":"mobile",clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout((function(){a.isBrokenFixed()}),100),i!=s&&(document.documentElement.classList.add(i),document.documentElement.classList.remove(s),s=i)},u=function(){const e=window.pageYOffset,i=e+window.innerHeight;for(let s=0;s=o&&r<=i?n.isVisible=!0:(ri)&&(n.isVisible=!1)}},p=function(t){t.preventDefault(),t.stopPropagation();const i=this,s=parseFloat(this.innerText);let n=document.querySelectorAll("#desc-section ol");n.forEach((t=>{"block"===window.getComputedStyle(t).display&&(n=t)}));const a=n.querySelectorAll("li"),o=n.querySelectorAll("li")[s-1],l=o.querySelector("span"),h=l.innerHTML,d=`${h}`;l.innerHTML=d,r=t.currentTarget;const c=function(){m.call(i),l.removeEventListener("focusin",c)},u=function(){l.innerHTML=h,l.removeAttribute("tabindex"),l.removeEventListener("focusout",u)};if(t.currentTarget.closest(".cm-layer")){const i=t.currentTarget.closest(".cm-layer");e(i).trigger("closeLayer",!1)}l.addEventListener("focusin",c),l.addEventListener("focusout",u),setTimeout((()=>{o.querySelector("a").focus()}),0),a.forEach((t=>t.classList.remove("is-active"))),o.classList.add("is-active")},f=function(t){const e=t.target.closest("li"),i=e.getAttribute("data-sup"),s=document.querySelectorAll(".click_sup");for(let t=0;t0?`, ${this.opts.ariaNotHidden.join(",")}`:"";a.def(this,{aria:{notHidden:Array(n+r),focusType:["A","BUTTON","INPUT","SELECT","TEXTAREA"],dataAttr:{ariaHidden:"trapfocusariahidden",ariaDisabled:"trapfocusariadisabled",tabIndex:"trapfocustabindex",role:"trapfocusrole"},destroy:s.proxy((function(){for(var s,n,a,r,o=this.aria.dataAttr,l=this.aria.hiddenEls,h=this.aria.focusEls,d=this.aria.tabindexEls,c=0,u=l.length;c"),v=s(""),g=0,y=p.length;g{n.attr(i.tabIndex,-1)}))}(_);for(var T=0,S=(v=v.add(f.find("["+i.tabIndex+"]"))).length;T=0;e--){var i=t.childNodes[e];if(this.attemptFocus(i)||this.focusLastDescendant(i))return!0}return!1},isFocusable:function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!=t.rel;case"INPUT":return"hidden"!=t.type&&"file"!=t.type;case"BUTTON":case"SELECT":case"TEXTAREA":case"VIDEO":case"SOURCE":case"IFRAME":return!0;default:return!1}},attemptFocus:function(t){if(!this.opts.isDestroy){if(!this.isFocusable(t))return!1;this.opts.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return this.opts.IgnoreUtilFocusChanges=!1,document.activeElement===t}},trapFocus:function(t){if(!this.opts.isDestroy&&!this.opts.IgnoreUtilFocusChanges){document;this.dynamicComponentFocus()}},loadComponent:function(){this.dynamicComponentFocus(),setTimeout((()=>{this.dynamicComponentFocus()}),3e3),this.focusFirstDescendant(this.obj[0]),this.lastFocus=document.activeElement,this.aria.build()},dynamicComponentFocus:function(){const t=this.opts.ariaAttr,e=this.opts.elAttr;setTimeout((()=>{var i=document.getElementById("QSIFeedbackButton-btn"),s=(document.getElementById("QSIFeedbackButton-close-btn"),document.getElementById("nebula_div_btn")),n=document.getElementById("spr-live-chat-app"),a=document.getElementById("teconsent");if(i){var r=i.parentElement;i.setAttribute(t.disabled,"true"),i.setAttribute(e.tabIndex,"-1"),r.setAttribute(t.disabled,"true"),r.setAttribute(t.hidden,"true"),r.setAttribute(e.tabIndex,"-1"),r.setAttribute(e.role,"none presentation")}if(s){var o=s.parentElement;s.setAttribute(t.disabled,"true"),s.setAttribute(e.tabIndex,"0"),o.setAttribute(t.disabled,"true"),o.setAttribute(t.hidden,"true"),o.setAttribute(e.tabIndex,"-1"),o.setAttribute(e.role,"none presentation")}n&&(n.setAttribute(t.disabled,"true"),n.setAttribute(t.hidden,"true"),n.setAttribute(e.tabIndex,"-1"),n.setAttribute(e.role,"none presentation")),a&&a.hasAttribute("aria-label")&&setTimeout((()=>{var i=a.querySelector("a");i.setAttribute(e.tabIndex,"-1"),i.setAttribute(t.disabled,"true"),i.setAttribute(t.hidden,"true")}))}))},destroy:function(){n=null,this.opts.isDestroy=!0;var t=this.opts.ariaAttr;this.opts.elAttr;this.bindEvents(!1),this.aria.destroy(),this.obj.removeAttr(t.modal)}},r}();return t}()}(window),function(t,e){t.HiveLayer=function(){"use strict";var t=function(){var t=window,e=t.jQuery,i=t.document,s=t.RING.UTILS,n=[];function a(t,i){if(!(this instanceof a))return new a(t,i);var n={effect:"fade",layerWrapElements:t,layerBody:".cm-layer__body",layerElements:".cm-layer__wrapper",openerElements:".js-layer-opener",closerElements:".js-layer-closer",dimmedElements:".cm-layer__dimmed",classAttr:{htmlToggle:"is-layer-open",isAsync:"is-async"},focusOutObj:{CSS:{overflow:"hidden",position:"absolute",left:0,top:0,"z-index":-1,width:1,height:1,"font-size":"1px","line-height":0}},customEvent:".HiveLayer"+(new Date).getTime()+Math.random(),openerTarget:null,useOutside:!1,useEscape:!0,useCloseFocus:!0,useScrollLock:!0,useTrapFocus:!0,flip:{CLASS:"hive-layer-flip",direction:"horizontal",rotateStart:90,rotateEnd:0},customToggle:!1,dimmedDuration:250,fps:120,easing:"swing",duration:250,on:{buildTools:null,layerMove:null,layerOpenBefore:null,layerOpenAfter:null,layerCloseBefore:null,layerCloseAfter:null},ariaNotHidden:[]};(this.layerWrap=n.layerWrapElements).length&&(this.layerWrap=e(n.layerWrapElements),this.opts=s.def(n,i||{}),this.init())}return a.prototype={init:function(){this.initOpts(),this.setElements(),this.initLayout(),this.buildTween(),this.buildTrapFocus(),this.bindEvents(!0),this.layerWrap.data("HiveLayer",this)},initOpts:function(){this.layerWrapInstance="#"+this.layerWrap.attr("id"),this.opts.isSupportTransition||"flip"!==this.opts.effect||(this.opts.effect="default"),"custom"==this.opts.effect&&(this.opts.effect="default",this.opts.customToggle=!0)},setElements:function(){this.layerBody=this.layerWrap.find(this.opts.layerBody),this.layerObj=this.layerWrap.find(this.opts.layerElements),this.closerObj=this.layerWrap.find(this.opts.closerElements),this.dimmedObj=this.layerWrap.find(this.opts.dimmedElements)},initLayout:function(){if("slide"===this.opts.effect)this.dimmedObj.hide(),this.layerObj.hide();else if("flip"===this.opts.effect){var t=this.opts.flip.direction;this.opts.flip.cssD="vertical"!==t?"rotateY":"rotateX",this.dimmedObj.hide(),this.layerObj.hide(),this.layerWrap.addClass(this.opts.flip.CLASS)}},buildTween:function(){s.def(this,{tweens:{instance:[],kill:e.proxy((function(){for(var t=0,e=this.tweens.instance.length;t{this.dimmedObj.on("mousedown click clickCustom",e.proxy(this.onLayerClose,this))}),500),"click"!==i.type&&"clickCustom"!==i.type||(this.opts.openerTarget=e(i.currentTarget)),"click"!==i.type||!this.opts.openerTarget.hasClass(this.opts.classAttr.isAsync))if(this.layerViewType="open",n.push({POPUPWRAP:this.layerWrap}),document.querySelector("html.load div#header")&&(document.querySelector("html.load div#header").style.opacity=0,document.querySelector("html.load div#header").style.pointerEvents="none"),this.setScrollLock(!0),this.bindCloseEvents(!0),"default"===this.opts.effect)this.opts.customToggle?this.outCallback("layerOpenBefore"):(this.layerWrap.css({opacity:0,display:"block"}),this.outCallback("layerOpenBefore"),this.outCallback("buildTools"),this.layerWrap.css("opacity",""),this.openAfterBugFunc());else if("fade"===this.opts.effect){this.layerWrap.css({opacity:0,display:"block"}),this.outCallback("layerOpenBefore"),TweenLite.set(this.layerBody,{opacity:0,scale:1,overflow:"hidden"}),this.outCallback("buildTools");var a=TweenLite.to(this.layerWrap,this.opts.duration/1e3,{opacity:1,onComplete:e.proxy((function(){var t=TweenLite.to(this.layerBody,.25,{ease:Expo.easeOut,opacity:1,scale:1,onComplete:e.proxy((function(){this.layerBody.css({overflow:"",transform:""}),this.openAfterBugFunc()}),this)});this.tweens.instance.push(t)}),this)});this.tweens.instance.push(a)}else if("slide"===this.opts.effect){var r=1;TweenLite.set(this.dimmedObj,{display:"block",opacity:0}),TweenLite.set(this.layerWrap,{display:"block"}),TweenLite.set(this.layerBody,{overflow:"hidden"}),TweenLite.set(this.layerObj,{display:"",y:-s.winSize().h}),TweenLite.set(this.layerObj,{display:""}),this.outCallback("layerOpenBefore");a=TweenLite.to(this.dimmedObj,r,{opacity:.9});var o=TweenLite.to(this.layerObj,r,{y:0,onComplete:e.proxy((function(){this.outCallback("buildTools"),this.layerBody.css({overflow:""}),this.layerObj.css({transform:""}),this.openAfterBugFunc()}),this)});this.tweens.instance.push(a),this.tweens.instance.push(o)}else if("slide2"===this.opts.effect){r=.6;TweenLite.set(this.dimmedObj,{display:"block",opacity:0}),TweenLite.set(this.layerWrap,{display:"block"}),TweenLite.set(this.layerObj,{display:"",y:s.winSize().h}),TweenLite.set(this.layerObj,{display:""}),this.outCallback("layerOpenBefore");a=TweenLite.to(this.dimmedObj,r,{opacity:.9}),o=TweenLite.to(this.layerObj,r,{y:0,onComplete:e.proxy((function(){this.outCallback("buildTools"),this.layerBody.css({overflow:""}),this.layerObj.css({transform:""}),this.openAfterBugFunc()}),this)});this.tweens.instance.push(a),this.tweens.instance.push(o)}else if("flip"===this.opts.effect){var l=this.opts.flip.rotateEnd-this.opts.flip.rotateStart,h=l/this.opts.duration*(1e3/this.opts.fps),d=0;this.opts.flip.moveData={startDistance:this.opts.flip.rotateStart,endDistance:this.opts.flip.rotateEnd,moveDistance:l,moveOneStep:h,currentStep:d},this.layerWrap.show(),this.dimmedObj.fadeIn(this.opts.dimmedDuration,e.proxy((function(){this.outCallback("layerOpenBefore"),this.outCallback("buildTools"),this.layerObj.show(),this.initStep(this.opts.flip.moveData),this.flipFunc()}),this)),t.setTimeout(e.proxy((function(){this.outCallback("buildTools")}),this),30)}},initStep:function(t){this.opts.stepTimeOld=new Date,this.direction=t.startDistance>t.moveDistance?"toNext":"toPrev",this.condition="toNext"===this.direction?t.currentStep>t.moveDistance:t.currentStepi.moveDistance:i.currentStepa",navDests:'[class*="js-nav-"]',visSections:".js-visible",resizeStart:null,classes:{isOn:"on"}};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){null!==this.el&&(this.setElements(),this.initOpts(),this.bindEvents())}setElements(){this.navItems=t.convertArray(this.el.querySelectorAll(this.opts.navItems)),this.navDests=document.querySelectorAll(this.opts.navDests),this.visSections=t.convertArray(document.querySelectorAll(this.opts.visSections))}initOpts(){this.visCount=-1,this.visSections.forEach((t=>{t.dataset.visIndex=t.classList.contains("js-count")?++this.visCount:this.visCount})),this.winOffsetTop=window.pageYOffset}bindEvents(){this.onScrollHandler(),window.addEventListener("resize",this.onResizeHandler.bind(this)),window.addEventListener("scroll",this.onScrollHandler.bind(this));const t=window.location.hash;this.navItems.forEach(((e,i)=>{e.getAttribute("href").indexOf("#")>-1&&(e.dataset.navIndex=i,e.addEventListener("click",this.onNavItemClickEvent.bind(this))),t&&e.getAttribute("href").indexOf(t)>-1&&(e.parentNode.classList.remove(this.classes.isOn),e.click())}))}onNavItemClickEvent(e){e.preventDefault();const i=e.target,s=i.parentNode;if(!this.el.classList.contains("hold")&&!s.classList.contains(this.classes.isOn)){this.navItems.forEach((t=>{t.parentNode.classList.remove(this.classes.isOn)})),s.classList.contains(this.classes.isOn)||s.classList.add(this.classes.isOn);const e=i.dataset.navIndex,n=this.navDests[e],a=n.getBoundingClientRect(),r=parseInt(window.getComputedStyle(n).paddingTop),o=(window.innerHeight-(a.height-r)+t.getNavHeight())/2;let l=0;if(n.classList.contains("js-nav-center")){l=this.winOffsetTop+a.top+r-o}else{l=this.winOffsetTop+a.top-t.getNavHeight()}l<150&&(l=0),this.el.classList.add("hold"),GALAXY.setSmoothScrollTop(l,1500,(()=>{this.el.classList.contains("hold")&&this.el.classList.remove("hold"),GALAXY.header&&GALAXY.header.resetSubNav()}))}}onScrollHandler(){this.winOffsetTop=window.pageYOffset;var e=(window.innerHeight+t.getNavHeight())/2;this.visSections.forEach((t=>{var i=t.getBoundingClientRect(),s=this.winOffsetTop+i.top,n=this.winOffsetTop+i.bottom;if(this.winOffsetTop+e>=s&&this.winOffsetTop+e<=n){var a=t.dataset.visIndex;this.navItems.forEach(((t,e)=>{e!=a&&t.parentNode.classList.contains(this.classes.isOn)&&t.parentNode.classList.remove(this.classes.isOn)}));var r=this.navItems[a].parentNode;r.classList.contains(this.classes.isOn)||(r.classList.add(this.classes.isOn),!this.el.classList.contains("hold")&&r.classList.contains(this.classes.isOn)&&GALAXY.header&&GALAXY.header.resetSubNav())}}))}onResizeHandler(){t.winSize().w!==this.winWidth&&(this.winWidth=t.winSize().w,null==this.opts.resizeStart&&(this.opts.resizeStart=this.winWidth,this.resizeAnimateFunc()),window.clearTimeout(this.resizeEndTime),this.resizeEndTime=window.setTimeout(this.resizeEndFunc.bind(this),150))}resizeAnimateFunc(){this.onScrollHandler(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,t.cancelAFrame.call(window,this.resizeRequestFrame)}}}(),function(){"use strict";window.RING=window.RING||{};RING.CardCarousel=class{constructor(t,e={}){this.swiper=null,this.opts={pagination:{tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"galaxy-ring:carousel:index:","an-tr":"galaxy-ring:carousel:index:","an-ca":"indication","an-ac":"carousel","an-la":"galaxy-ring:carousel:index:"}},resizeTimeout:null,currentDevice:null,prevDevice:null,currentIndex:0,clickTimeout:null,centeredSlides:!1,useNavigation:!1,...e},this.selector={section:t,swiper:".common__carousel",swiperSlide:".swiper-slide",swiperTitle:".common__blind-carousel",swiperPagination:".swiper-pagination",swiperNavigation:".swiper-arrow-wrap",prevArrow:".swiper-button-prev",nextArrow:".swiper-button-next"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,swiper:null,swiperSlide:null,swiperTitle:null,swiperPagination:null,swiperNavigation:null,prevArrow:null,nextArrow:null},this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this),prevArrow:this.onClickPrevArrow.bind(this),nextArrow:this.onClickNextArrow.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.swiper=this.el.section.querySelector(this.selector.swiper),this.el.swiperSlides=this.el.section.querySelectorAll(this.selector.swiperSlide),this.el.swiperPagination=this.el.section.querySelector(this.selector.swiperPagination),this.el.swiperTitle=this.el.section.querySelector(this.selector.swiperTitle)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("resize",this.events.resize)}onLoadHandler(){this.events.resize(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currentDevice=innerWidth>767?"desktop":"mobile",this.opts.currentDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currentDevice)}onResponsiveChange(){this.destroySwiper(),"mobile"===this.opts.currentDevice&&this.setSwiper()}updateA11ySwiper(){null!==this.swiper&&(Array.from(this.swiper.slides).forEach((t=>{t.setAttribute("aria-hidden",!0)})),"mobile"===this.opts.currentDevice&&this.swiper.slides[this.opts.currentIndex].setAttribute("aria-hidden",!1))}destroyA11ySwiper(){"desktop"===this.opts.currentDevice&&Array.from(this.el.swiperSlides).forEach((t=>{t.removeAttribute("aria-hidden")}))}onTransitionStart(){this.opts.currentIndex=this.swiper.snapIndex,this.updateA11ySwiper()}onInitSwiper(){this.opts.currentIndex=0,this.onTransitionStart(),this.updateA11ySwiper(),this.setPaginationLabel();const t=this.swiper.pagination.bullets,e=this;void 0!==t&&t.length>0&&Array.from(t).forEach(((t,i)=>{t.addEventListener("click",(function(t){t.preventDefault(),t.stopImmediatePropagation(),e.swiper.slideTo(i)}))}))}onSlideChange(){this.setPaginationLabel(),this.opts.useNavigation&&(this.setNavigation(),this.setNavigationClass())}destroySwiper(){null!==this.swiper&&(this.destroyA11ySwiper(),this.swiper.destroy(!0,!0),this.swiper=null)}setSwiper(){if(null!==this.swiper)return;const t=this,e={init:!1,a11y:!1,slidesPerView:"auto",centeredSlides:this.opts.centeredSlides,pagination:{el:t.el.swiperPagination,renderBullet:function(e){const i=t.opts.pagination.tagging;return`\n
  • \n\n
  • \n`}}};this.swiper=new Swiper(this.el.swiper,e),this.swiper.on("transitionStart",this.onTransitionStart.bind(this)),this.swiper.on("snapIndexChange",this.onSlideChange.bind(this)),this.swiper.on("init",this.onInitSwiper.bind(this)),this.swiper.init()}setPaginationLabel(){if(null===this.swiper)return;const t=this.swiper.pagination.bullets;void 0!==t&&t.length>0&&Array.from(t).forEach(((t,e)=>{const i=t.classList.contains("swiper-pagination-bullet-active"),s=this.el.swiperTitle?.innerText??"";if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const n=void 0!==LOCAL_VARI.slide&&LOCAL_VARI.slide?LOCAL_VARI.slide:"Slide",a=void 0!==LOCAL_VARI.selected&&LOCAL_VARI.selected?LOCAL_VARI.selected:"selected";i?t.setAttribute("aria-label",`${n}${e+1}: ${s} ${a}`):t.setAttribute("aria-label",`${n}${e+1}: ${s}`)}else i?t.setAttribute("aria-label",`Slide${e+1}: ${s} selected`):t.setAttribute("aria-label",`Slide${e+1}: ${s}`)}))}setNavigation(){const t=this.el.section.querySelector(this.selector.swiperNavigation);this.el.prevArrow=t.querySelector(this.selector.prevArrow),this.el.nextArrow=t.querySelector(this.selector.nextArrow),this.el.prevArrow.addEventListener("click",this.events.prevArrow),this.el.nextArrow.addEventListener("click",this.events.nextArrow)}setNavigationClass(){if(null===this.swiper)return;this.el.nextArrow.classList.remove("swiper-button-disabled"),this.el.prevArrow.classList.remove("swiper-button-disabled");const t=this.swiper.snapIndex;0===t&&this.el.prevArrow.classList.add("swiper-button-disabled"),t===this.swiper.snapGrid.length-1&&this.el.nextArrow.classList.add("swiper-button-disabled")}onClickPrevArrow(){if(null===this.swiper)return;const t=this.swiper.snapIndex-1;0===t&&setTimeout((()=>{this.el.nextArrow.focus()}),100),this.swiper.slideTo(t)}onClickNextArrow(){if(null===this.swiper)return;const t=this.swiper.snapIndex+1;t===this.swiper.snapGrid.length-1&&setTimeout((()=>{this.el.prevArrow.focus()}),100),this.swiper.slideTo(t)}}}(),function(){"use strict";window.RING=window.RING||{};const t=function(){let t={},e={},i={prevIndex:0,isAuto:!0};const s=function(){t.section=document.querySelector(".highlights-ai"),t.section&&(n(),a())},n=function(){t.swiperContainer=t.section.querySelector(".swiper-container"),t.nextArrow=t.section.querySelector(".swiper-button-next"),t.prevArrow=t.section.querySelector(".swiper-button-prev"),t.pagination=t.section.querySelector(".swiper-pagination")},a=function(){r.load(),r.click()},r={load:function(){window.addEventListener("DOMContentLoaded",o.onLoad,{once:!0})},scroll:function(){window.addEventListener("scroll",o.scroll)},click:function(){t.nextArrow.addEventListener("click",o.setArrowFocus),t.nextArrow.addEventListener("keydown",o.setArrowFocus),t.prevArrow.addEventListener("click",o.setArrowFocus),t.prevArrow.addEventListener("keydown",o.setArrowFocus)}},o={swiper:{set:function(){null==e.swiper&&(e.swiper=new Swiper(t.swiperContainer,{init:!1,speed:500,navigation:{nextEl:t.nextArrow,prevEl:t.prevArrow},pagination:{el:t.pagination,type:"bullets",renderBullet:function(){return'
  • '}}}))},init:function(){let i=this.el.querySelector(".swiper-notification");this.el.removeChild(i),t.nextArrow.removeAttribute("aria-label"),t.nextArrow.removeAttribute("role"),t.prevArrow.removeAttribute("aria-label"),t.prevArrow.removeAttribute("role"),e.swiper.on("slideChange",o.swiper.slideChange),e.swiper.on("transitionEnd",o.swiper.transitionEnd),e.swiper.on("touchMove",o.swiper.touchMove),e.swiper.on("touchEnd",o.swiper.touchEnd),t.bullets=e.swiper.pagination.bullets;for(let i=0;i{e.swiper.isBeginning&&!e.swiper.isEnd?t.nextArrow.focus():!e.swiper.isBeginning&&e.swiper.isEnd&&t.prevArrow.focus()}),300))}},l={pagination:{label:function(){for(let i=0;i{null===this.el.videoPlayer.instance&&(this.el.videoPlayer.instance=new RING.VideoPlayer(this.el.videoContainer,{sectionElement:this.selector.section,playType:this.opts.playType,playOffset:this.opts.playOffset,on:{updateController:t=>{let e=t.playState?"pause":"play";const i=t.el,s=this.opts.controlTagging;if(i){i.setAttribute("data-omni",`${s[e]}:#`),i.setAttribute("an-tr",`${s[e]}:#`),i.setAttribute("an-la",`${s[e]}:#`);const t=i.querySelector(".blind");t&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[e]&&LOCAL_VARI[e]?t.innerText=LOCAL_VARI[e]:t.innerText=e)}}}}))}},this.el.videoPlayer.build()}}}(),function(){"use strict";window.RING=window.RING||{};const t=RING.UTILS;RING.HighlightCarousel=class{constructor(t,e={}){this.opts={currDevice:null,prevDevice:null,resizeTimeout:null,clickTimeout:null,focusMoveTimeout:null,tagging:{pagination:{"data-omni-type":"microsite_pcontentinter","data-omni":"gring:highlights:catch-the-highlights^titanium:sldr-dots","an-tr":"gring:highlights:catch-the-highlights^titanium:sldr-dots","an-ca":"indication","an-ac":"carousel","an-la":"gring:highlights:catch-the-highlights^titanium:sldr-dots"},navigation:{"data-omni-type":"microsite_pcontentinter","data-omni":"gring:highlights:catch-the-highlights:sldr-arrow:","an-tr":"gring:highlights:catch-the-highlights:sldr-arrow:","an-ca":"indication","an-ac":"carousel","an-la":"gring:highlights:catch-the-highlights:sldr-arrow:"}},taggingIdList:["titanium","galaxy-ai","sensor","slim-and-light"],prevIndex:-1,activeIndex:0,videoCanPlay:!0,videoAnimationFrame:null,videoCircleSize:266,isFocusPrevArrow:!1,isFocusNextArrow:!1,isCarouselAutoPlay:!0,isVideoAutoPlay:!0,isBlindAutoPlay:!1,prevState:!0,startX:0,startY:0,endX:0,endY:0,isPointerMoving:!1,...e},this.selector={section:t,frontSlider:".front-slider",backSlider:".background-slider",swiper:".swiper",swiperSlide:".swiper-slide",swiperSlideTitle:".wearable-common__carousel-tit",swiperPrevArrow:".wearable-common__carousel-prev",swiperNextArrow:".wearable-common__carousel-next",swiperPagination:".wearable-common__carousel-pagination",swiperScrollbar:".swiper-scrollbar",videoContainer:".video__container",videoController:".video__controller",blindController:".js-blind-controller"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,frontSlider:null,frontSwiper:null,frontSwiperEl:null,frontSwiperSlides:null,backSlider:null,backSwiper:null,backSwiperEl:null,swiperPrevArrow:null,swiperNextArrow:null,swiperPagination:null,swiperScrollbar:null,videoContainers:null,videoControllers:null,blindController:null},this.events={load:this.onLoadHandler.bind(this),scroll:this.onScrollHandler.bind(this),resize:this.onResizeHandler.bind(this),prevArrow:{click:this.onClickPrevArrow.bind(this),keyDown:this.onKeyDownPrevArrow.bind(this),focusin:this.onFocusinPrevArrow.bind(this),focusout:this.onFocusoutPrevArrow.bind(this)},nextArrow:{click:this.onClickNextArrow.bind(this),keyDown:this.onKeyDownNextArrow.bind(this),focusin:this.onFocusinNextArrow.bind(this),focusout:this.onFocusoutNextArrow.bind(this)},controller:{click:this.onClickControllButton.bind(this)},blindController:{click:this.onClickBlindController.bind(this)},click:{down:this.onClickDownHandler.bind(this),up:this.onClickUpHandler.bind(this)}},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.setVideoPlayer(),this.setSwiper(),this.bindEvents())}setElements(){this.el.frontSlider=this.el.section.querySelector(this.selector.frontSlider),this.el.frontSwiperEl=this.el.frontSlider.querySelector(this.selector.swiper),this.el.frontSwiperSlides=this.el.frontSlider.querySelectorAll(this.selector.swiperSlide),this.el.swiperPrevArrow=this.el.frontSlider.querySelector(this.selector.swiperPrevArrow),this.el.swiperNextArrow=this.el.frontSlider.querySelector(this.selector.swiperNextArrow),this.el.swiperPagination=this.el.frontSlider.querySelector(this.selector.swiperPagination),this.el.swiperScrollbar=this.el.frontSlider.querySelector(this.selector.swiperScrollbar),this.el.blindController=this.el.frontSlider.querySelector(this.selector.blindController),this.el.backSlider=this.el.section.querySelector(this.selector.backSlider),this.el.backSwiperEl=this.el.backSlider.querySelector(this.selector.swiper),this.el.videoContainers=this.el.section.querySelectorAll(this.selector.videoContainer),this.el.videoControllers=this.el.section.querySelectorAll(this.selector.videoController)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll),window.addEventListener("resize",this.events.resize),this.el.frontSwiperEl.addEventListener("mousedown",this.events.click.down),this.el.frontSwiperEl.addEventListener("mouseup",this.events.click.up),this.el.frontSwiperEl.addEventListener("touchstart",this.events.click.down),this.el.frontSwiperEl.addEventListener("touchend",this.events.click.up),Array.from(this.el.videoControllers).forEach((t=>{t.addEventListener("click",this.events.controller.click)})),this.el.blindController.addEventListener("click",this.events.blindController.click)}onLoadHandler(){this.events.resize(),this.events.scroll(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",this.opts.currDevice!==this.opts.prevDevice&&(this.opts.activeIndex=0,this.opts.videoCanPlay=!0,clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.opts.videoCanPlay=!0,this.events.scroll(),this.onResponsiveChange()}),150),this.opts.prevDevice=this.opts.currDevice)}onResponsiveChange(){this.resetVideo(),this.setSwiper()}onScrollHandler(){const e=this.el.frontSwiperEl.getBoundingClientRect(),i=e.height,s=.15*e.height,n=scrollY,a=n+innerHeight,r=n+e.top,o=n+e.bottom;if(a>=r+i&&n+t.getNavHeight()<=o-s){if(!this.opts.videoCanPlay)return;this.opts.videoCanPlay=!1;const t=this.el.frontSwiperSlides[this.opts.activeIndex].querySelector(this.selector.videoContainer);t&&this.playVideo(t)}else if(ao-s){if(this.opts.videoCanPlay)return;this.onFocusoutNextArrow(),this.onFocusoutPrevArrow(),this.opts.videoCanPlay=!0,this.resetVideo(!0)}}setSwiper(){this.destroyFrontSwiper(),this.setFrontSwiper(),this.destroyBackSwiper(),this.setBackSwiper()}setFrontSwiper(){if(null!==this.el.frontSwiper)return;const t=this;this.el.frontSwiper=new Swiper(this.el.frontSwiperEl,{init:!1,a11y:!1,speed:400,allowTouchMove:!0,centeredSlides:!0,centeresSlidesBounds:!0,slidesPerView:"auto",navigation:{nextEl:t.el.swiperNextArrow,prevEl:t.el.swiperPrevArrow},scrollbar:{el:t.el.swiperScrollbar,draggable:!0},pagination:{el:t.el.swiperPagination,bulletActiveClass:"is-active",renderBullet:function(e){const i=t.opts.tagging.pagination,s=t.opts.taggingIdList[e];return`\n\n`}}}),this.el.frontSwiper.on("transitionEnd",(function(){if(this.slides[this.activeIndex].classList.contains("js-active-slide"))return;if(t.opts.activeIndex=this.activeIndex,t.resetVideo(),t.opts.videoCanPlay)return;const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer);e&&t.playVideo(e),t.setSwiperActiveClass.call(this)})),this.el.frontSwiper.on("scrollbarDragEnd",(function(){if(t.opts.isCarouselAutoPlay=!1,this.slides[this.activeIndex].classList.contains("js-active-slide"))return;if(t.opts.activeIndex=this.activeIndex,t.resetVideo(),t.opts.videoCanPlay)return;const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer);e&&t.playVideo(e),t.setSwiperActiveClass.call(this)})),this.el.frontSwiper.on("snapIndexChange",(function(){t.setNavigationDisabled()})),this.el.frontSwiper.on("slideChange",(function(){t.opts.activeIndex=this.activeIndex,t.setSlideA11y(),t.setNavigationDisabled(),t.setPaginationLabel();const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer).querySelector(t.selector.videoController);t.opts.isCarouselAutoPlay&&(clearTimeout(t.opts.focusMoveTimeout),t.opts.focusMoveTimeout=setTimeout((()=>{e&&e.focus()}),300)),t.opts.activeIndex===this.slides.length-1&&(t.opts.isCarouselAutoPlay=!1),null!==t.el.backSwiper&&t.el.backSwiper.slideTo(this.realIndex)})),this.el.frontSwiper.on("init",(function(){t.opts.activeIndex=this.activeIndex,t.setSlideA11y(),t.setNavigationLabel(),t.setPaginationLabel(),t.setNavigationDisabled(),t.el.swiperPrevArrow.addEventListener("click",t.events.prevArrow.click),t.el.swiperNextArrow.addEventListener("click",t.events.nextArrow.click),t.el.swiperPrevArrow.addEventListener("keydown",t.events.prevArrow.keyDown),t.el.swiperNextArrow.addEventListener("keydown",t.events.nextArrow.keyDown),t.el.swiperPrevArrow.addEventListener("focusin",t.events.prevArrow.focusin),t.el.swiperNextArrow.addEventListener("focusin",t.events.nextArrow.focusin),t.el.swiperPrevArrow.addEventListener("focusout",t.events.prevArrow.focusout),t.el.swiperNextArrow.addEventListener("focusout",t.events.nextArrow.focusout);const e=this,i=e.pagination.bullets;Array.from(i).forEach(((t,i)=>{t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.slideTo(i)}))}))})),this.el.frontSwiper.init()}destroyFrontSwiper(){null!==this.el.frontSwiper&&(this.el.swiperPrevArrow.removeEventListener("click",this.events.prevArrow.click),this.el.swiperNextArrow.removeEventListener("click",this.events.nextArrow.click),this.el.swiperPrevArrow.removeEventListener("keydown",this.events.prevArrow.keyDown),this.el.swiperNextArrow.removeEventListener("keydown",this.events.nextArrow.keyDown),this.el.frontSwiper.destroy(!0,!0),this.el.frontSwiper=null)}setBackSwiper(){null===this.el.backSwiper&&(this.el.backSwiper=new Swiper(this.el.backSwiperEl,{init:!1,a11y:!1,speed:600,allowTouchMove:!1,centeredSlides:!0,centeresSlidesBounds:!0,slidesPerView:"auto"}),this.el.backSwiper.on("init",(function(){Array.from(this.slides).forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}))})),this.el.backSwiper.init())}destroyBackSwiper(){null!==this.el.backSwiper&&(this.el.backSwiper.destroy(!0,!0),this.el.backSwiper=null)}slideTo(t=300){null!==this.el.frontSwiper&&this.el.frontSwiper.slideTo(this.opts.activeIndex,t)}setSwiperActiveClass(){Array.from(this.slides).forEach(((t,e)=>{this.activeIndex!==e?t.classList.remove("js-active-slide"):t.classList.add("js-active-slide")}))}setSlideA11y(){if(null===this.el.frontSwiper)return;const t=this.el.frontSwiper,e=t.slides,i=t.activeIndex;Array.from(e).forEach(((t,e)=>{const s=t.querySelectorAll("a, button, input, select, iframe");i===e?(t.setAttribute("aria-hidden",!1),s.length>0&&s.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))):(t.setAttribute("aria-hidden",!0),s.length>0&&s.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})))}))}setNavigationLabel(){const t=this.opts.tagging.navigation;if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const t=void 0!==LOCAL_VARI.previous&&LOCAL_VARI.previous?LOCAL_VARI.previous:"Previous",e=void 0!==LOCAL_VARI.next&&LOCAL_VARI.next?LOCAL_VARI.next:"Next";this.el.swiperPrevArrow.querySelector(".blind").innerText=t,this.el.swiperNextArrow.querySelector(".blind").innerText=e}else this.el.swiperPrevArrow.querySelector(".blind").innerText="Previous",this.el.swiperNextArrow.querySelector(".blind").innerText="Next";Object.keys(t).forEach((e=>{"data-omni"===e||"an-la"===e||"an-tr"==e?this.el.swiperPrevArrow.setAttribute(e,`${t[e]}left`):this.el.swiperPrevArrow.setAttribute(e,t[e])})),Object.keys(t).forEach((e=>{"data-omni"===e||"an-la"===e||"an-tr"==e?this.el.swiperNextArrow.setAttribute(e,`${t[e]}right`):this.el.swiperNextArrow.setAttribute(e,t[e])}))}setNavigationDisabled(){if(null===this.el.frontSwiper)return;const t=this.el.frontSwiper;0===t.activeIndex&&t.activeIndex0&&t.activeIndex===t.slides.length-1?(this.el.swiperPrevArrow.disabled=!1,this.el.swiperNextArrow.disabled=!0,this.offA11y(this.el.swiperPrevArrow),this.onA11y(this.el.swiperNextArrow)):t.activeIndex>0&&t.activeIndex{const n=e[i].querySelector(this.selector.swiperSlideTitle)?.innerText??"";if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const e=void 0!==LOCAL_VARI.slide&&LOCAL_VARI.slide?LOCAL_VARI.slide:"Slide",a=void 0!==LOCAL_VARI.selected&&LOCAL_VARI.selected?LOCAL_VARI.selected:"selected";s===i?t.setAttribute("aria-label",`${e}${i+1}: ${n} ${a}`):t.setAttribute("aria-label",`${e}${i+1}: ${n}`)}else s===i?t.setAttribute("aria-label",`Slide${i+1}: ${n} selected`):t.setAttribute("aria-label",`Slide${i+1}: ${n}`)}))}onA11y(t){const e=t.querySelectorAll("a, button, input, select, iframe");t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1");for(var i=0;i{this.el.frontSwiper.isBeginning&&this.el.swiperNextArrow.focus()}),100),this.opts.isCarouselAutoPlay=!1)}onClickNextArrow(){clearTimeout(this.opts.clickTimeout),this.opts.clickTimeout=setTimeout((()=>{this.el.frontSwiper.isEnd&&this.el.swiperPrevArrow.focus()}),100),this.opts.isCarouselAutoPlay=!1}onKeyDownPrevArrow(t){"enter"===t.key.toLowerCase()&&this.onClickPrevArrow()}onKeyDownNextArrow(t){"enter"===t.key.toLowerCase()&&this.onClickNextArrow()}onFocusinPrevArrow(){this.opts.isFocusPrevArrow=!0}onFocusinNextArrow(){this.opts.isFocusNextArrow=!0}onFocusoutPrevArrow(){this.el.frontSwiper.isBeginning&&this.opts.isFocusPrevArrow&&this.onClickPrevArrow(),this.opts.isFocusPrevArrow=!1}onFocusoutNextArrow(){this.el.frontSwiper.isEnd&&this.opts.isFocusNextArrow&&this.onClickNextArrow(),this.opts.isFocusNextArrow=!1}onClickControllButton(){this.opts.isCarouselAutoPlay&&(this.opts.isCarouselAutoPlay=!1),this.opts.isVideoAutoPlay=!this.opts.isVideoAutoPlay}onClickBlindController(){const t=this.el.frontSwiperSlides[this.opts.activeIndex].querySelector(this.selector.videoContainer);this.opts.isVideoAutoPlay=!t.playState,this.opts.isVideoAutoPlay?this.el.videoPlayer.play(t):this.el.videoPlayer.pause(t),this.opts.isBlindAutoPlay=!0,this.opts.isCarouselAutoPlay=!1}onClickDownHandler(t){this.opts.isPointerMoving||(this.opts.isPointerMoving=!0,this.opts.startX=0,this.opts.endX=0,this.opts.startX=this.getMovePointerX(t))}onClickUpHandler(t){if(!this.opts.isPointerMoving)return;this.opts.isPointerMoving=!1,this.opts.endX=this.getMovePointerX(t);const e="mobile"!==this.opts.currDevice?80:50;this.el.frontSwiper&&Math.abs(this.opts.startX-this.opts.endX)>e&&(this.opts.isCarouselAutoPlay=!1)}getMovePointerX(t){return t.touches&&t.touches.length>0?t.touches[0].clientX:t.changedTouches&&t.changedTouches.length>0?t.changedTouches[0].clientX:t.clientX}setVideoPlayer(){this.el.videoPlayer={instance:[],load:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onLoad(t)}))},reset:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onReset(t)}))},play:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onPlay(t)}))},pause:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onPause(t)}))},ended:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onEnded(t)}))},init:()=>{this.el.videoPlayer.instance.length||0===this.el.videoContainers.length||this.el.videoContainers.forEach(((t,e)=>{this.el.videoPlayer.instance.push(new RING.VideoPlayer(t,{sectionElement:this.selector.section,playType:"others",on:{updateController:i=>{let s=i.playState?"pause":"play";const n=i.el,a=this.opts.taggingIdList[e];n.setAttribute("data-omni",`gring:highlights:catch-the-highlights^${a}:movi-${s}:#`),n.setAttribute("an-tr",`gring:highlights:catch-the-highlights^${a}:movi-${s}:#`),n.setAttribute("an-la",`gring:highlights:catch-the-highlights^${a}:movi-${s}:#`);const r=n.querySelector(".blind");r&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[s]&&LOCAL_VARI[s]?(r.innerText=LOCAL_VARI[s],s!==this.opts.prevState&&(this.el.blindController.innerText=LOCAL_VARI[s],this.opts.prevState=s)):(r.innerText=s,s!==this.opts.prevState&&(this.el.blindController.innerText=s,this.opts.prevState=s))),i.playState&&this.playProgress(t)}}}))}))}},this.el.videoPlayer.init()}playVideo(e){const i=()=>{e.classList.contains("loaded")?(cancelAnimationFrame(this.opts.videoAnimationFrame),t.isLowNetwork()||!this.opts.isBlindAutoPlay&&this.opts.isVideoAutoPlay&&this.el.videoPlayer.play(e)):this.opts.videoAnimationFrame=requestAnimationFrame(i)};this.opts.videoAnimationFrame=requestAnimationFrame(i)}resetVideo(t=!1){if(null===this.el.frontSwiper)return;const e=this.el.frontSwiper,i=e.slides;t?Array.from(i).forEach((t=>{const e=t.querySelector(this.selector.videoContainer);this.el.videoPlayer.reset(e),this.resetProgress(e)})):Array.from(i).forEach(((t,i)=>{const s=t.querySelector(this.selector.videoContainer);i!==e.activeIndex&&s&&(this.el.videoPlayer.reset(s),this.resetProgress(s))}))}playProgress(e){let i=this.opts.videoCircleSize;const s=e.querySelector("video"),n=s.duration,a=e.querySelector(".video__controller").querySelector(".progress-icon"),r=a.querySelector(".draw-line"),o=()=>{if(a&&n){if(!s.paused&&!s.ended){const t=s.currentTime/n*100;let e=this.opts.videoCircleSize*(100-t)/100;e=e<8?0:e,e767?"desktop":"mobile",this.opts.isBrokenSticky=!1,document.documentElement.classList.remove(this.class.brokenSticky),this.opts.isBrokenSticky&&(this.el.stickyElement.style.top="",this.el.stickyElement.style.height="",this.el.contentWrapElement.style.justifyContent=""),clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.el.contentElement.clientHeight>this.el.stickyElement.scrollHeight&&(this.opts.isBrokenSticky=!0,document.documentElement.classList.add(this.class.brokenSticky)),this.opts.isBrokenSticky||(this.opts.navHeight=t.getNavHeight(),this.el.stickyElement.style.top=`${this.opts.navHeight}px`,this.el.stickyElement.style.height=`calc(100vh - ${this.opts.navHeight}px)`,this.el.contentWrapElement.style.justifyContent="",this.el.contentWrapElement.scrollHeight<=this.el.contentWrapElement.clientHeight&&(this.el.contentWrapElement.style.justifyContent="center"),this.events.scroll.play(),this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice))}),150)}onResponsiveChange(){this.events.scroll.load(),this.events.scroll.play()}onScrollLoadHandler(){if(this.opts.isBrokenSticky)return;const t=scrollY,e=t+window.innerHeight,i=window.innerHeight*this.opts.loadOffset,s=t+this.el.targetElement.getBoundingClientRect().top,n=s+this.el.targetElement.clientHeight;e>s-i&&t{this.opts.canvasWidth=t.naturalWidth,this.opts.canvasHeight=t.naturalHeight,this.el.canvasElement.width=t.naturalWidth,this.el.canvasElement.height=t.naturalHeight,this.el.contextElement.drawImage(t,0,0,this.opts.canvasWidth,this.opts.canvasHeight)}))}getSequenceSrc(){const t=this.el.imageElement;this.opts.imageFormat=t.getAttribute("data-seq-format")??this.opts.imageFormat,this.opts.imageSrc=t.getAttribute("data-seq-img");for(let t=this.opts.startCount;t<=this.opts.endCount;t++)this.opts.sequenceSrc.push(`${this.opts.imageSrc}-${t}.${this.opts.imageFormat}`)}loadSequenceImages(){if(this.opts.sequenceImages.length>0)return;let t=0;const e=i=>{const s=i.currentTarget;t=n&&e<=a){this.opts.percent=-i.top/s;const t=this.opts.percent*(1/this.opts.imageSequenceEndPercent)*(this.opts.sequenceImages.length-1);this.opts.imgProgress=this.opts.useInterger?Math.round(t):t,this.opts.isInSectionAfter=!1,this.opts.isInSectionBefore=!1,this.setMotions(),this.opts.percent1?this.opts.imgProgress%this.opts.divide==0&&this.playSequenceImage():this.playSequenceImage():(this.opts.imgProgress=this.opts.sequenceImages.length-1,this.playSequenceImage())}else if(ta){if(this.opts.imgProgress=this.opts.sequenceImages.length-1,this.playSequenceImage(),this.opts.isInSectionAfter)return;this.opts.isInSectionAfter=!0,this.setMotionsAfter()}}playSequenceImage(){if(this.opts.imageLoaded){if(null!==this.opts.loadFrame&&(cancelAnimationFrame(this.opts.loadFrame),this.opts.loadFrame=null),this.opts.imgProgress===this.opts.prevress){if(this.opts.isUpdateSameImage)return;this.el.contextElement.drawImage(this.opts.sequenceImages[this.opts.imgProgress],0,0,this.opts.canvasWidth,this.opts.canvasHeight),this.opts.isUpdateSameImage=!0}if(this.opts.imgProgress!==this.opts.prevress){if(this.opts.imgProgress-this.opts.prevress>this.opts.divide)for(let t=this.opts.prevress+this.opts.divide;tthis.opts.divide)for(let t=this.opts.prevress-this.opts.divide;t>this.opts.imgProgress;)this.el.contextElement.drawImage(this.opts.sequenceImages[t],0,0,this.opts.canvasWidth,this.opts.canvasHeight),t-=this.opts.divide;this.el.contextElement.drawImage(this.opts.sequenceImages[this.opts.imgProgress],0,0,this.opts.canvasWidth,this.opts.canvasHeight),this.opts.prevress=this.opts.imgProgress,this.opts.isUpdateSameImage=!1}}else this.opts.loadFrame=requestAnimationFrame(this.playSequenceImage.bind(this))}setMotions(){const t=this.opts.anim,e=this.opts.imgProgress;e<=t.step1.startPoint?this.removeClasses(["step01","step02","step03"]):e>=t.step1.startPoint&&e<=t.step1.endPoint?(this.removeClasses(["step02","step03"]),this.addClasses(["step01"])):e>=t.step2.startPoint&&e<=t.step2.endPoint?(this.removeClasses(["step01","step03"]),this.addClasses(["step02"])):e>=t.step3.startPoint&&e<=t.step3.endPoint?(this.removeClasses(["step01","step02"]),this.addClasses(["step03"])):e>t.step3.endPoint?this.addClasses(["step03"]):this.removeClasses(["step01","step02","step03"])}setMotionsBefore(){this.removeClasses(["step01","step02","step03"])}setMotionsAfter(){this.addClasses(["step03"])}addClasses(t){t.forEach((t=>{this.el.section.classList.contains(t)||this.el.section.classList.add(t)}))}removeClasses(t){t.forEach((t=>{this.el.section.classList.contains(t)&&this.el.section.classList.remove(t)}))}}}(),function(){"use strict";window.RING=window.RING||{};const t=RING.UTILS;RING.ChargingCase=class{constructor(t,e={}){this.opts={currDevice:"desktop",prevDevice:null,prevIndex:null,currentIndex:0,isPlaying:!1},this.selector={section:t,tabList:".common__tab-list",tab:".common__tab-cta",tabPanels:".common__tab-panels",tabPanel:".common__tab-panel",videoContainer:".video__container",videoController:".video__controller",play:".play",pause:".pause",...e.selector},this.class={featureHide:"is-feature-hide",isActive:"is-active",tabPanel:"common__tab-panel",loaded:"loaded",ended:"ended",paused:"paused",playing:"playing",isPaused:"is-paused",videoController:"video__controller",...e.class},this.el={section:document.querySelector(this.selector.section)||null},this.tagging={welcoming:{play:"gring:highlights:welcoming:movi-play",pause:"gring:highlights:welcoming:movi-pause"},charging:{play:"gring:highlights:charging:movi-play",pause:"gring:highlights:charging:movi-pause"},connecting:{play:"gring:highlights:connecting:movi-play",pause:"gring:highlights:connecting:movi-pause"}},this.events={load:this.onLoadHandler.bind(this),canplaythrough:this.onCanplaythrough.bind(this),click:this.onClickHandler.bind(this),scroll:this.onScrollHandler.bind(this),resize:this.onResizeHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.initVideoPlayer(),this.bindEvents())}setElements(){this.el.tabs=this.el.section.querySelectorAll(this.selector.tab),this.el.tabPanelWrapper=this.el.section.querySelector(this.selector.tabPanels),this.el.tabPanels=this.el.section.querySelectorAll(this.selector.tabPanel),this.el.videoContainers=this.el.section.querySelectorAll(this.selector.videoContainer),this.el.videoControllers=this.el.section.querySelectorAll(this.selector.videoController),this.el.videos=this.el.section.querySelectorAll("video")}bindEvents(){window.addEventListener("load",this.events.load),Array.from(this.el.tabs).forEach(((t,e)=>{t.addEventListener("click",(t=>this.events.click(t,e)))})),window.addEventListener("resize",this.events.resize)}onLoadHandler(){this.el.videoContainers[this.opts.currentIndex].querySelector("video").addEventListener("canplaythrough",this.events.canplaythrough,{once:!0}),window.removeEventListener("load",this.events.load)}onCanplaythrough(e){t.isLowNetwork()||(this.events.scroll(),window.addEventListener("scroll",this.events.scroll))}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice)}onResponsiveChange(){t.isLowNetwork()||this.events.scroll()}onClickHandler(t,e){this.opts.prevIndex=this.opts.currentIndex,this.opts.currentIndex=e,this.opts.prevIndex!==this.opts.currentIndex&&Array.from(this.el.tabs).forEach(((t,i)=>{e===i&&this.setActive(t,i),e!==i&&this.setInactive(t,i)}))}onScrollHandler(){const t=window.scrollY,e=this.el.videoContainers[this.opts.currentIndex],i=.5*e.getBoundingClientRect().height,s=t,n=t+window.innerHeight,a=s+e.getBoundingClientRect().top,r=s+e.getBoundingClientRect().bottom;if(n>a+i&&s{e.classList.contains(this.class.playing)?(cancelAnimationFrame(this.opts.videoPlayTime),this.videoPlayer.play(e),this.opts.isPlaying=!0):(this.opts.videoPlayTime=requestAnimationFrame(t),this.videoPlayer.play(e),this.opts.isPlaying=!0)};this.opts.videoPlayTime=requestAnimationFrame(t)}else if(nr){if(0==this.opts.isPlaying)return;this.videoPlayer.reset(e),this.opts.isPlaying=!1}}setActive(e,i){this.addClass(e),e.setAttribute("aria-selected",!0),this.addClass(this.el.tabPanels[i]),this.el.tabPanels[i].setAttribute("aria-hidden",!1),this.el.tabPanels[i].style.zIndex=5,this.el.videoControllers.length>0&&this.el.videoControllers[i].removeAttribute("tabindex"),t.isLowNetwork()||(this.videoPlayer.play(this.el.videoContainers[i]),this.opts.isPlaying=!0)}setInactive(t,e){this.el.tabPanels[e].classList.contains(this.class.isActive)&&(this.removeClass(t),t.setAttribute("aria-selected",!1),this.el.tabPanels[e].setAttribute("aria-hidden",!0),this.el.tabPanels[e].style.zIndex="",this.el.videoControllers.length>0&&this.el.videoControllers[e].setAttribute("tabindex",-1),setTimeout((()=>{this.opts.currentIndex!==e&&(this.removeClass(this.el.tabPanels[e]),this.videoPlayer.reset(this.el.videoContainers[e]))}),300))}addClass(t){t.classList.add(this.class.isActive)}removeClass(t){t.classList.remove(this.class.isActive)}initVideoPlayer(){this.videoPlayer={instance:[],load:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance.forEach((e=>{e.onLoad(t)}))},reset:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance.forEach((e=>{e.onReset(t)}))},play:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance[this.opts.currentIndex].onPlay(t)},pause:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance[this.opts.currentIndex].onPause(t)},ended:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance[this.opts.currentIndex].onEnded(t)},init:()=>{this.videoPlayer.instance.length||this.el.videoContainers.forEach((t=>{const e=t.closest(this.class.tabPanel),i=t.querySelector(this.selector.videoController);this.videoPlayer.instance.push(new RING.VideoPlayer(t,{sectionElement:this.selector.section,videoParentElement:e,on:{updateController:t=>{if(i){t.el}}}}))}))}},this.videoPlayer.init()}}}(),function(){"use strict";window.RING=window.RING||{};RING.ColorTab=class{constructor(t,e={}){this.opts={currentIndex:0},this.selector={section:t,tabList:".common__tab-list",tab:".common__tab-cta",tabPanel:".common__tab-panel",tabCTAText:".tab-cta__text",...e.selector},this.class={isActive:"is-active",featureHide:"is-feature-hide",...e.class},this.el={section:document.querySelector(this.selector.section)||null},this.events={click:this.onClickHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.tabs=this.el.section.querySelectorAll(this.selector.tab),this.el.tabPanels=this.el.section.querySelectorAll(this.selector.tabPanel),this.el.tabCTATexts=this.el.section.querySelectorAll(this.selector.tabCTAText)}bindEvents(){Array.from(this.el.tabs).forEach(((t,e)=>{t.addEventListener("click",(t=>this.events.click(t,e)))}))}onClickHandler(t,e){this.opts.currentIndex=e,Array.from(this.el.tabs).forEach(((t,e)=>{this.opts.currentIndex===e&&this.setActive(t,e),this.opts.currentIndex!==e&&this.setInactive(t,e)}))}setActive(t,e){this.addClass(this.el.tabCTATexts[e]),this.addClass(t),t.setAttribute("aria-selected",!0),this.addClass(this.el.tabPanels[e]),this.el.tabPanels[e].setAttribute("aria-hidden",!1),this.el.tabPanels[e].style.zIndex=5}setInactive(t,e){this.el.tabPanels[e].classList.contains(this.class.isActive)&&(this.removeClass(this.el.tabCTATexts[e]),this.removeClass(t),t.setAttribute("aria-selected",!1),this.el.tabPanels[e].setAttribute("aria-hidden",!0),this.el.tabPanels[e].style.zIndex="",setTimeout((()=>{this.opts.currentIndex!==e&&this.removeClass(this.el.tabPanels[e])}),300))}addClass(t){t.classList.add(this.class.isActive)}removeClass(t){t.classList.remove(this.class.isActive)}}}(),function(){"use strict";window.RING=window.RING||{};RING.Waterproof=class{constructor(t,e){this.opts={controlTagging:{play:"movi-play",pause:"movi-pause"},playType:"reverse",...e},this.selector={section:t,videoContainer:".video__container",videoController:".video__controller",play:".play",pause:".pause"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,videoContainer:null},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.buildVideoPlayer())}setElements(){this.el.videoContainer=this.el.section.querySelector(this.selector.videoContainer)}buildVideoPlayer(){const t=this;this.el.videoPlayer={instance:null,play:t=>{null!==this.el.videoPlayer.instance&&this.el.videoPlayer.instance.onPlay(t)},ended:()=>{null!==this.el.videoPlayer.instance&&this.el.videoPlayer.instance.onEnded()},reset:t=>{null!==this.el.videoPlayer.instance&&this.el.videoPlayer.instance.onReset(t)},build:()=>{if(null!==this.el.videoPlayer.instance)return;this.el.videoContainer.querySelector(this.selector.videoController);this.el.videoPlayer.instance=new RING.VideoPlayer(this.el.videoContainer,{sectionElement:this.selector.section,videoParentElement:this.selector.section,playType:this.opts.playType,on:{updateTime:e=>{e.duration&&e.playState&&e.currentTime>=e.duration&&(t.el.videoPlayer.reset(this.el.videoContainer),setTimeout((()=>{t.el.videoPlayer.play(this.el.videoContainer)}),0))},updateController:t=>{let e=t.playState?"pause":"play";const i=t.el,s=this.opts.controlTagging;if(i){i.setAttribute("data-omni",`${s[e]}:#`),i.setAttribute("an-tr",`${s[e]}:#`),i.setAttribute("an-la",`${s[e]}:#`);const t=i.querySelector(".blind");t&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[e]&&LOCAL_VARI[e]?t.innerText=LOCAL_VARI[e]:t.innerText=e)}}}})}},this.el.videoPlayer.build()}}}(),function(){"use strict";window.RING=window.RING||{};RING.WalkRun=class{constructor(t,e){this.opts={...e},this.selector={section:t,motionTarget:".walk-run__motion-wrap",wrap:"#wrap"},this.class={featureHide:"is-feature-hide",isActive:"is-active"},this.el={wrap:document.querySelector(this.selector.wrap)||null,section:document.querySelector(this.selector.section)||null,videoContainer:null,videoPlayer:null},this.events={load:this.onLoadHandler.bind(this),scroll:this.onScrollHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents(),new RING.CardCarousel(".gesture-control",{centeredSlides:!0,useNavigation:!0}),new RING.CardCarousel(".walk-run",{centeredSlides:!0,useNavigation:!0,pagination:{tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gring:highlights:exercise-tracking:index:","an-tr":"gring:highlights:exercise-tracking:index:","an-ca":"indication","an-ac":"carousel","an-la":"gring:highlights:exercise-tracking:index:"}}}))}setElements(){this.el.target=this.el.section.querySelector(this.selector.target),this.el.motionTarget=this.el.section.querySelector(this.selector.motionTarget)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll)}onLoadHandler(){this.events.scroll(),window.removeEventListener("load",this.events.load)}onScrollHandler(){const t=scrollY,e=window.innerHeight,i=scrollY+.8*e,s=this.el.motionTarget,n=0*s.getBoundingClientRect().height,a=t+this.el.section.getBoundingClientRect().top,r=t+s.getBoundingClientRect().top,o=t+s.getBoundingClientRect().bottom;if(i>=r+n&&t<=o-n){if(s.classList.contains(this.class.isActive))return;s.classList.add(this.class.isActive)}if(scrollY+e iframe",swiper:".common__carousel",swiperSlide:".swiper-slide",swiperHeadline:".common__headline",swiperSubHeadline:".common__sub-headline",swiperPagination:".swiper-pagination",swiperPaginationBlind:".common__blind",buttonDisabled:".swiper-button-disabled",blind:".blind"},this.class={featureHide:"is-feature-hide",isActive:"is-active"},this.el={section:document.querySelector(this.selector.section)||null,popupLayer:null,popupLayerEl:null,popupLayerContent:null,popupButton:null,youtubeIframe:null,swiper:null,swiperHeadline:null,swiperSlides:null,swiperPagination:null,swiperPaginationBlind:null},this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this),popup:{click:this.onClickPopupButton.bind(this)}},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.setPopupLayer(),this.bindEvents())}setElements(){this.el.popupLayerEl=this.el.section.querySelector(this.selector.popupLayer),this.el.popupLayerContent=this.el.popupLayerEl.querySelector(this.selector.popupLayerContent),this.el.popupButton=this.el.section.querySelector(this.selector.popupButton),this.el.youtubeIframe=this.el.popupLayerEl.querySelector(this.selector.youtubeIframe),this.el.swiper=this.el.section.querySelector(this.selector.swiper),this.el.swiperHeadline=this.el.section.querySelector(this.selector.swiperHeadline),this.el.swiperSlides=this.el.section.querySelectorAll(this.selector.swiperSlide),this.el.swiperPagination=this.el.section.querySelector(this.selector.swiperPagination),this.el.swiperPaginationBlind=this.el.section.querySelector(this.selector.swiperPaginationBlind)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("resize",this.events.resize),this.el.popupButton.addEventListener("click",this.events.popup.click)}onLoadHandler(){this.events.resize(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currentDevice=innerWidth>767?"desktop":"mobile",this.opts.currentDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currentDevice)}onResponsiveChange(){this.destroySwiper(),"mobile"===this.opts.currentDevice&&this.setSwiper()}updateA11ySwiper(){null!==this.swiper&&(Array.from(this.swiper.slides).forEach((t=>{t.setAttribute("aria-hidden",!0)})),"mobile"===this.opts.currentDevice&&this.swiper.slides[this.opts.currentIndex].setAttribute("aria-hidden",!1))}destroyA11ySwiper(){"desktop"===this.opts.currentDevice&&Array.from(this.el.swiperSlides).forEach((t=>{t.removeAttribute("aria-hidden")}))}onTransitionStart(){this.opts.currentIndex=this.swiper.snapIndex,this.updateA11ySwiper()}onInitSwiper(){this.opts.currentIndex=0,this.onTransitionStart(),this.updateA11ySwiper(),this.setPaginationLabel();const t=this.swiper.pagination.bullets,e=this;void 0!==t&&t.length>0&&Array.from(t).forEach(((t,i)=>{t.addEventListener("click",(function(t){t.preventDefault(),t.stopImmediatePropagation(),e.swiper.slideTo(i)}))}))}onSlideChange(){this.setPaginationLabel()}destroySwiper(){null!==this.swiper&&(this.destroyA11ySwiper(),this.swiper.destroy(!0,!0),this.swiper=null)}setSwiper(){if(null!==this.swiper)return;const t=this,e={init:!1,a11y:!1,slidesPerView:"auto",pagination:{el:t.el.swiperPagination,renderBullet:function(e){const i=t.opts.pagination.tagging;return`\n
  • \n\n
  • \n`}}};this.swiper=new Swiper(this.el.swiper,e),this.swiper.on("transitionStart",this.onTransitionStart.bind(this)),this.swiper.on("snapIndexChange",this.onSlideChange.bind(this)),this.swiper.on("init",this.onInitSwiper.bind(this)),this.swiper.init()}setPaginationLabel(){if(null===this.swiper)return;const t=this.swiper.slides,e=this.swiper.pagination.bullets;void 0!==e&&e.length>0&&Array.from(e).forEach(((e,i)=>{const s=e.classList.contains("swiper-pagination-bullet-active"),n=t[i].querySelector(".choose-size__step-num")?.innerText??"",a=t[i].querySelector(".choose-size__step-tit")?.innerText??"";if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const t=void 0!==LOCAL_VARI.slide&&LOCAL_VARI.slide?LOCAL_VARI.slide:"Slide",r=void 0!==LOCAL_VARI.selected&&LOCAL_VARI.selected?LOCAL_VARI.selected:"selected";s?e.setAttribute("aria-label",`${t}${i+1}: ${n} ${a} ${r}`):e.setAttribute("aria-label",`${t}${i+1}: ${n} ${a}`)}else s?e.setAttribute("aria-label",`Slide${i+1}: ${n} ${a} selected`):e.setAttribute("aria-label",`Slide${i+1}: ${n} ${a}`)}))}setPopupLayer(){const t=()=>{let t=this.el.popupButton,e="https://www.youtube.com/embed/"+t.getAttribute("data-youtube-id")+"?wmode=opaque&rel=0&enablejsapi=1&version=3&autoplay=1",i=t.getAttribute("data-youtube-title");this.el.youtubeIframe.setAttribute("src",e),this.el.youtubeIframe.setAttribute("title",i),this.el.OpenerTarget=t},e=()=>{this.el.youtubeIframe.removeAttribute("src")};this.el.popupLayer={instance:null,setup:()=>{null===this.el.popupLayer.instance&&(this.el.popupLayer.instance=new HiveLayer(`${this.selector.section} ${this.selector.popupLayer}`,{effect:"default",on:{layerOpenBefore:()=>{const t=this.el.popupLayerEl.querySelectorAll("img.js-res-img:not(.load-complete)");t.length>0&&this.opts.updateImageLoader(t)},layerOpenAfter:()=>{t()},layerCloseBefore:()=>{},layerCloseAfter:()=>{e()}}}))}},this.el.popupLayer.setup()}onClickPopupButton(t){const e=t.currentTarget;this.opts.targetPopupId=e.getAttribute("data-content-target"),this.setPopupContentA11y()}setPopupContentA11y(){const t=this.el.popupLayerContent,e=t.getAttribute("id"),i=t.querySelectorAll("a, button, input, select, iframe");this.opts.targetPopupId===e?(t.style.display="block",t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex"),i.length>0&&i.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))):(console.log(this.opts.targetPopupId===e),t.style.display="",t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),i.length>0&&i.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})))}}}(),function(){"use strict";window.RING=window.RING||{};const t=RING.UTILS;RING.Contrast=class{constructor(t=container,e){const i={el:t,defaultBtn:".type-default",contrastBtn:".type-contrast",cookieName:"highContrastMode",featureHide:"is-feature-hide"};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){null===this.el||this.el.classList.contains(this.opts.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.defaultBtn=this.el.querySelector(this.opts.defaultBtn),this.defaultBtnTitle=this.defaultBtn.getAttribute("title").trim(),this.contrastBtn=this.el.querySelector(this.opts.contrastBtn),this.contrastBtnTitle=this.contrastBtn.getAttribute("title").trim(),this.cookieName=this.opts.cookieName}bindEvents(){window.addEventListener("load",this.onLoadHandler.bind(this)),this.defaultBtn&&this.defaultBtn.addEventListener("click",this.onClickDefaultBtn.bind(this)),this.contrastBtn&&this.contrastBtn.addEventListener("click",this.onClickContrastBtn.bind(this))}onLoadHandler(){this.activeContrast()}onClickDefaultBtn(e){e.preventDefault(),t.setCookie(this.cookieName,"0",1),this.activeContrast()}onClickContrastBtn(e){e.preventDefault(),t.setCookie(this.cookieName,"1",1),this.activeContrast()}activeContrast(){var e=t.getCookie(this.cookieName);null!=e&&e.length&&"1"==e?(document.documentElement.classList.add("color_yb"),this.contrastBtn.setAttribute("title",this.contrastBtnTitle+" selected"),this.defaultBtn.setAttribute("title",this.defaultBtnTitle)):(document.documentElement.classList.remove("color_yb"),this.contrastBtn.setAttribute("title",this.contrastBtnTitle),this.defaultBtn.setAttribute("title",this.defaultBtnTitle+" selected"))}}}(),window.flagship=window.flagship||{},window.flagship.features=window.flagship.features||{},window.flagship.features.fashionWeek=function(){window.RING=window.RING||{},RING.UTILS.isLowNetwork();let t={};const e=function(){t.container=document.querySelector(".features-fashion-week"),t.popUpEl=document.querySelector(".features-fashion-week-popup"),t.iframe=t.popUpEl&&t.popUpEl.querySelector("iframe"),t.containerPlay=t.container.querySelector(".features-fashion-week-play"),t.popupClose=t.popUpEl.querySelector(".js-howto-popup-close-cta")},i=function(){s.play(),s.close()},s={play:function(){t.containerPlay&&t.containerPlay.addEventListener("click",n.play)},close:function(){t.popupClose&&t.popupClose.addEventListener("click",n.closePopup)}},n={play:function(){t.popUpEl&&t.popUpEl.classList.add("is-init"),t.popUpEl&&t.popUpEl.classList.add("is-open"),t.iframe&&(t.iframe.src="https://www.youtube.com/embed/LEOI84NtS_s?si=0kgjm67LUQTFVeri&wmode=opaque&rel=0&enablejsapi=1&version=3&autoplay=1"),document.body.classList.add("overflow-hidden")},closePopup:function(){t.popUpEl&&t.popUpEl.classList.remove("is-init"),t.popUpEl&&t.popUpEl.classList.remove("is-open"),t.iframe&&(t.iframe.src=""),document.body.classList.remove("overflow-hidden")}};return{init:function(){e(),i()}}}(),function(){"use strict";new class{constructor(t){this.container=t,this.containerEl=document.querySelector(this.container),this.init()}init(){null!==this.containerEl&&this.buildComponents()}buildComponents(){this.imageLoader=new RING.ImageLoader(this.container,{visiblePoint:.5,loadOption:[{resolution:1920,attribute:"data-src-pc"},{resolution:767,attribute:"data-src-mobile"}]}),this.videoLoader=new RING.VideoLoader(this.container,{visiblePoint:1.5,videoLazyClass:".js-video-src",responsiveClass:".js-res-video",imageEndLazyClass:".js-end-img-src",notLoadElement:[".cm-layer"],loadOption:[{resolution:1920,attribute:"data-media-pc"},{resolution:767,attribute:"data-media-mo"}]});new RING.HighlightCarousel(".highlight-carousel"),new RING.RingVideoPlayer(".concave-design",{playOffset:0,controlTagging:{play:"gring:highlights:design:movi-play",pause:"gring:highlights:design:movi-pause"}}),new RING.Sensor(".sensor",{startCount:0,endCount:92,loadOffset:1.5}),new RING.RingVideoPlayer(".battery",{controlTagging:{play:"gring:highlights:battery:movi-play",pause:"gring:highlights:battery:movi-pause"}}),new RING.RingVideoPlayer(".health-fitness-tracker",{controlTagging:{play:"gring:highlights:track-with-galaxy-ring:movi-play",pause:"gring:highlights:track-with-galaxy-ring:movi-pause"}}),new RING.ChargingCase(".charging-case__video-type"),new RING.ColorTab(".color-option"),new RING.Waterproof(".waterproof",{controlTagging:{play:"gring:highlights:waterproof:movi-play",pause:"gring:highlights:waterproof:movi-pause"}}),new RING.RingVideoPlayer(".ai-samsung-health",{controlTagging:{play:"gring:highlights:samsung-health:movi-play",pause:"gring:highlights:samsung-health:movi-pause"}}),new RING.RingVideoPlayer(".energy-score",{controlTagging:{play:"gring:highlights:energy-score:movi-play",pause:"gring:highlights:energy-score:movi-pause"}}),new RING.RingVideoPlayer(".wellness-tips",{controlTagging:{play:"gring:highlights:wellness-tips:movi-play",pause:"gring:highlights:wellness-tips:movi-pause"}}),new RING.CardCarousel(".sleep",{pagination:{tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gring:highlights:sleep:index:","an-tr":"gring:highlights:sleep:index:","an-ca":"indication","an-ac":"carousel","an-la":"gring:highlights:sleep:index:"}}}),new RING.WalkRun(".walk-run"),new RING.RingVideoPlayer(".track-wide-range",{controlTagging:{play:"gring:highlights:exercise-tracking:movi-play",pause:"gring:highlights:exercise-tracking:movi-pause"}}),new RING.ChooseSize(".choose-size",{updateImageLoader:t=>{this.imageLoader.setResponsiveImage(t)},pagination:{tagging:{"data-omni-type":"microsite_pcontentinter","data-omni":"gring:highlights:sizing-kit:index:","an-tr":"gring:highlights:sizing-kit:index:","an-ca":"indication","an-ac":"carousel","an-la":"gring:highlights:sizing-kit:index:"}}}),new RING.Contrast(".cp-high-contrast"),RING.Disclaimer.init(),RING.trackCarousel.init(),window.flagship.features.fashionWeek.init(),window.addEventListener("load",(()=>{setTimeout((()=>{window.GALAXY&&window.GALAXY.isGalaxy&&(this.subNav=new RING.SubNav("#subnav"))}),5)}))}}(".wearable-ring")}()}))