Choose your location and language.
Welcome to the
!
Please enjoy our special offers for you
Samsung

Galaxy
Tab S9 Series

with Galaxy AI

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

Galaxy Tab S9, S9+ and S9 Ultra are lined up next to each other in Portrait mode with a colorful wave wallpaper on all screens. Splashes of water are surrounding the three devices and an S Pen is pointed at the screen of Galaxy Tab S9.
"It does more than everything." TechRadar, 08/2023
  • Ultimate Galaxy AI experience1
  • Our most powerful tablet processor yet
  • Dynamic AMOLED 2X displays with vibrant colors
  • New IP68 water and dust resistance2

Create and connect, just like that

FEATURES

Tab into your full potential

Unleash greatness with new IP68 water resistance,2 expansive screens and our most powerful tablet processor yet.

Front view of a Galaxy Tab S9 Series device in Landscape mode with GoodNotes app onscreen and S Pen touching the device's screen.
PERFORMANCE
Our mightiest tablet processors yet Go to Performance

A Galaxy Tab S9 Series device in Graphite appear from left and S Pen from the top. Water and dust splash on them to highlight their resistance.

durability
Stands up to water and dust1 Go to Durability
Front view of a Galaxy Tab S9 Series device in Landscape mode with GoodNotes app onscreen and S Pen touching the device's screen.
Creativity
Unleash unparalleled creativity with S Pen Go to Creativity
Front view of a Galaxy Tab S9 Series device in Landscape mode with a sci-fi action game onscreen.
Display
Get lost in your favorite shows and games19 Go to Display
Front view of a Galaxy Tab S9 Series device in Landscape mode with a sci-fi action game onscreen.
Connected Experience
Seamlessly sync devices with the Galaxy Connected Experience Go to Connected Experience
Close Popup

Intensely brilliant screens

A Galaxy Tab S9 Series device with its screen facing down rising up to stand upright in Landscape mode with a blue wallpaper onscreen highlighting its large display.

Galaxy Tab S9, S9+ and S9 Ultra in Graphite are placed next to each other in Landscape mode with their front facing forward and a blue wallpaper shown on all screens.

Dynamic AMOLED 2X for all

All Galaxy Tab S9 Series devices now feature Dynamic AMOLED 2X screens, plus Dolby Atmos surround sound from quad speakers tuned by AKG.

DESIGN

Three sizes. One Series.

Find the perfect Galaxy Tab S9 Series device to unleash greatness with everything you do. S Pen comes included.

Compare Tab S9 series
Tab S9 UltraTab S9 UltraTab S9+Tab S9 +Tab S9Tab S9
Display1014.6"12.4"11"

DISPLAY

Big screens.
Big experiences.

Galaxy Tab S9 series device in Landscape mode with a sci-fi action game onscreen.

All Galaxy Tab S9 Series devices now feature Dynamic AMOLED 2X screens. Get lost in games and shows with intense colors, contrast and supersmooth refresh rates up to 120Hz. Plus, Dolby Atmos surround sound from quad speakers tuned by AKG.

Outdoor viewing with Vision Booster

Get an ultra-amazing viewing experience from anywhere. Vision Booster automatically adjusts brightness and contrast so you see every vibrant detail — even in sunlight.

PRODUCTIVITY

Bring your ideas to life

Tab S9 Series teams up with S Pen and the rest of your Galaxy ecosystem to reach even greater heights.

Galaxy Tab S9 series device with Book Cover Keyboard on is facing slightly right with an edited picture of a man open in the Clip Studio Paint app onscreen. S Pen is placed in front of the keyboard. The original picture is shown on a Galaxy Z Filp5 device, placed next to the tablet, to highlight drawing and painting functions between Samsung Galaxy devices.

Galaxy Connected
Experience

Use your Tab to click, type, copy and paste on your smartphone or PC.11 You can also answer phone calls and texts directly on your tablet,12 or connect your PC as a second screen.13


Galaxy Tab S9 series device lying horizontally with the side and back visible and S Pen pointed …

A pen for your thoughts

S Pen comes included with enhanced sensitivity, new IP68 durability rating and an optimized experience for Goodnotes.14 Write, draw and capture ideas with a pen-to-paper feel.


PRODUCTIVITY

Bring your
ideas to life

Tab S9 Series teams up with S Pen and the rest of your Galaxy ecosystem to reach even greater heights.

Galaxy Tab S9 series device lying horizontally with the side and back visible and S Pen pointed …

A pen for your thoughts

S Pen comes included with enhanced sensitivity, new IP68 durability rating and an optimized experience for Goodnotes.14 Write, draw and capture ideas with a pen-to-paper feel.


PERFORMANCE

Packed with gaming and
 creating power

Galaxy Tab S9 series device in Landscape mode with a sci-fi action game onscreen.
This long-lasting battery
                                                                                            has plenty of power to share with your other compatible Galaxy
                                                                                            devices. And when you do finally need to recharge your Tablet, do it
                                                                                            quickly and keep going with Super Fast Charging.

A battery with boosts to share

This long-lasting battery has plenty of power to share with your other compatible Galaxy devices. And when you do finally need to recharge your Tablet, do it quickly and keep going with Super Fast Charging.15

Whether you're working with
                                                                                            videos, photos or large creative projects, let your creativity
                                                                                            stretch with up to 1TB of internal storage.Add up to 1TB of
                                                                                            external
                                                                                            storage with a slot for a microSD card.

Store what you love

Whether you're working with videos, photos or large creative projects, let your creativity stretch with up to 1TB of internal storage.16 Add up to 1TB of external storage with a slot for a microSD card.17

Whether you're working with
                                                                                                    videos, photos or large creative projects, let your creativity
                                                                                                    stretch with up to 1TB of internal storage.Add up to 1TB of
                                                                                                    external
                                                                                                    storage with a slot for a microSD card.

Store what you love

Whether you're working with videos, photos or large creative projects, let your creativity stretch with up to 1TB of internal storage.16 Add up to 1TB of external storage with a slot for a microSD card.17

COMPARE

Compare side-by-side

REVIEWS

See what fans of
Galaxy Tab S9 are saying

"You won't find anything better..."

"If you need a big tablet, you won’t find anything better than the Galaxy Tab S9 Ultra, and that’s by design."

"Perfectly encapsulates the tablet"

"I use it for absolutely everything. Streaming, gaming, movies, school, it's the perfect tablet for everyday use, especially when I'm depolyed."§

"Amazing tablet!"

"If your wanting the best of the best, look no further! Super thin and sturdy. Huge screen that is crystal clear and moves like butter. Media consumption is fantastic with this thing."§

REVIEWS

See what fans of Galaxy Tab S9 are saying

"Perfectly encapsulates the tablet"


"I use it for absolutely everything. Streaming, gaming, movies, school, it's the perfect tablet for everyday use, especially when I'm depolyed."§

Accessories

Galaxy S24 Ultra

Galaxy Tab S9 for business


Tab into your workday's potential and bring balance to your business

θFor a limited time only, on Samsung.com/Shop Samsung App, or purchase a new qualifying Galaxy device (“Qualifying Purchase”), send in your qualifying trade-in device to Samsung through the Samsung Trade-In Program, and if Samsung determines your trade-in device meets all eligibility requirements, you will receive a trade-in credit specific to your qualifying trade-in device to apply toward your Qualifying Purchase. Device models that currently qualify for trade-in and trade-in credit amounts associated with those models are available on Samsung.com and the Shop Samsung App; eligible models and amounts may change at Samsung’s sole discretion. To be eligible for trade-in, your qualifying device must meet all Trade-In Program eligibility requirements, which include, but are not limited to, that the device powers on, holds a charge, and does not power off unexpectedly; has a functioning display; has no breaks or cracks in the screen (unless a cracked screen offer applies); has no breaks or cracks in the case; has no liquid damage (whether visible or not); has no other defects that go beyond normal wear and tear; is not on a black list; has a verified FCC ID; has been reset to factory settings; has all personal information removed; has all software locks disabled; and is owned by you (leased devices are not eligible). Anticipated trade-in value will be applied as a credit at time of purchase, but, if you do not send in your trade-in device within 15 days of receipt of your Qualifying Purchase, you will be charged back for the trade-in credit applied to your purchase, or if you send in your trade-in device within 15 days of receipt of your Qualifying Purchase but Samsung determines your device does not meet all eligibility requirements, you will be charged back for the trade-in credit applied to your purchase minus $25. Participation in this program does not excuse you from contracts with your carrier or retailer (or any related payments or fees) for the device that was traded in. Limit 1 trade-in per Qualifying Purchase. Samsung reserves the right to modify or discontinue this offer at any time. The Trade-In Program cannot be combined with any other Samsung, carrier or retailer promotions, discounts, or offers unless specifically provided for in the terms and conditions of such offers. Additional terms, including terms that govern the resolution of disputes, apply. Click here - For terms and conditions to learn more.

§This is an incentivized review.

M6/10/24 - 6/16/24, while supplies last, on samsung.com or in the Samsung Shop App. Must order and purchase a Galaxy TabS9+ or Galaxy Tab S9 Ultra ("Qualifying Purchase") and Galaxy Tab A9+ ("Promotional Product") in the same transaction through the Qualifying Purchase buy page or add-on page. Discount varies by watch model and size and will be reflected in cart. If you return or cancel your Qualifying Purchase, you must return the Promotional Product with your Qualifying Purchase or pay for the Promotional Product in full. This offer is non-transferable and limited to 1 per Qualifying Purchase. Void where prohibited or restricted by law.

  1. Galaxy AI features by Samsung will be provided for free until the end of 2025 on supported Samsung Galaxy devices.
  2. Consistent with IP68 rating, water resistant in up to 5 feet of water for up to 30 minutes. Rinse residue / dry after wet.
  3. Requires internet connection; results may vary by uniqueness, clarity and framing of circled image and related factors.
  4. Requires Samsung account login and internet connection.
  5. Transcript Assist available only with audio files under 3 hours and recorded using the Samsung Voice Recorder app. Summarizing feature available for text in Samsung Notes only (200-4,000 characters). Translation feature requires language preset (English and Spanish pre-installed; other languages require free download). Samsung account login and internet connection are required.
  6. For text in Samsung Notes only (200 — 4,000 characters); requires Samsung account login and internet connection.
  7. Quick Share between Galaxy devices available with the following OS: smartphones and tablets with Android OS version 10.0 (Q) and One UI 2.1 or above, PCs running Windows 10 or later. Requires Samsung account and Wi-Fi and Bluetooth connection. Quick Share to iOS and Android devices available by sending shared link: individual files shared cannot exceed 3GB (for a total of 5GB per day) and link will expire after two days; requires a Samsung account and internet connection.
  8. LumaFusion app requires separate purchase and download. Click here for terms and conditions (https://luma-touch.com/terms-of-use/).
  9. Armor Aluminum is cased on all metal components, excluding the display, side keys, and the SIM tray.
  10. Measured diagonally, Galaxy Tab S9 Ultra's screen size is 14.6" in the full rectangle and 14.5" accounting for the rounded corners. Galaxy Tab S9+'s screen size is 12.4" in the full rectangle and 12.4" accounting for the rounded corners. Galaxy Tab S9's screen size is 11" in the full rectangle and 10.9" accounting for the rounded corners. Actual viewable area is less due to the rounded corners and the camera hole.
  11. Multi Control available between Galaxy PCs with Windows 10 or later (2021 or later) and either a compatible Galaxy Tablet (Android 12, One UI 4.1 or later) or a compatible smartphone (Android 13, One UI 5.1 or later). Devices must have Bluetooth and be signed in to same Samsung account and Wi-Fi network.
  12. Both the Galaxy Tab S9 and a Galaxy mobile phone are required to have One UI 3.1 or later. Devices must be logged in to the same Samsung account and be on the same Wi-Fi network.
  13. Compatible with smartphones with Android OS version 11.0 or later and One UI 3.1 or above, and PCs running Windows 10 or later.
  14. GoodNotes app requires separate download from Galaxy Store and comes with a 1-year free full version. Once the free full version period ends, an additional purchase is required for continuous use. App availability and the terms of service may vary by country and region.
  15. Requires 45W wall charger (sold separately). Use only Samsung-approved charger and USB-C cable. To avoid injury or damage to your device, do not use incompatible, worn or damaged batteries, chargers or cables.
  16. 1TB storage option only available on Galaxy Tab S9 Ultra. Portion of storage / memory occupied by existing content.
  17. MicroSD card sold separately
  18. Qualcomm is a product of Qualcomm Technologies, Inc. and/or its subsidiaries. Qualcomm is a trademark of Qualcomm Incorporated, registered in the United States and other countries.
  19. Average expected performance based on typical use. Results may vary.
  20. Requires a Wi-Fi 6E router. Wi-Fi network availability may vary by network provider and user environment. Requires optimal connection.
");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),i.cache&&(this.virtual.cache[t]=a),a},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t=0;i-=1)this.virtual.slides.splice(e[i],1),this.params.virtual.cache&&delete this.virtual.cache[e[i]],e[i]0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var o=t.innerWidth,l=t.innerHeight,d=this.$el.offset();s&&(d.left-=this.$el[0].scrollLeft);for(var h=[[d.left,d.top],[d.left+this.width,d.top],[d.left,d.top+this.height],[d.left+this.width,d.top+this.height]],p=0;p=0&&c[0]<=o&&c[1]>=0&&c[1]<=l&&(n=!0)}if(!n)return}this.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(a.preventDefault?a.preventDefault():a.returnValue=!1),(34!==r&&39!==r||s)&&(33!==r&&37!==r||!s)||this.slideNext(),(33!==r&&37!==r||s)&&(34!==r&&39!==r||!s)||this.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(a.preventDefault?a.preventDefault():a.returnValue=!1),34!==r&&40!==r||this.slideNext(),33!==r&&38!==r||this.slidePrev()),this.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(s(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(s(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},ee={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){n.extend(this,{keyboard:{enabled:!1,enable:_.enable.bind(this),disable:_.disable.bind(this),handle:_.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},te={lastScrollTime:n.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in e;if(!t){var i=e.createElement("div");i.setAttribute("onwheel","return;"),t="function"==typeof i.onwheel}return!t&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(t=e.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel"},normalize:function(e){var t=0,i=0,s=0,a=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,a=10*i,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=a,a=0),(s||a)&&e.deltaMode&&(1===e.deltaMode?(s*=40,a*=40):(s*=800,a*=800)),s&&!t&&(t=s<1?-1:1),a&&!i&&(i=a<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:a}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var i=e,s=this,a=s.params.mousewheel;if(s.params.cssMode&&i.preventDefault(),!s.mouseEntered&&!a.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);var r=0,o=s.rtlTranslate?-1:1,l=te.normalize(i);if(a.forceToAxis)if(s.isHorizontal()){if(!(Math.abs(l.pixelX)>Math.abs(l.pixelY)))return!0;r=l.pixelX*o}else{if(!(Math.abs(l.pixelY)>Math.abs(l.pixelX)))return!0;r=l.pixelY}else r=Math.abs(l.pixelX)>Math.abs(l.pixelY)?-l.pixelX*o:-l.pixelY;if(0===r)return!0;if(a.invert&&(r=-r),s.params.freeMode){var d={time:n.now(),delta:Math.abs(r),direction:Math.sign(r)},h=s.mousewheel.lastEventBeforeSnap,p=h&&d.time=s.minTranslate()&&(c=s.minTranslate()),c<=s.maxTranslate()&&(c=s.maxTranslate()),s.setTransition(0),s.setTranslate(c),s.updateProgress(),s.updateActiveIndex(),s.updateSlidesClasses(),(!u&&s.isBeginning||!f&&s.isEnd)&&s.updateSlidesClasses(),s.params.freeModeSticky){clearTimeout(s.mousewheel.timeout),s.mousewheel.timeout=void 0;var v=s.mousewheel.recentWheelEvents;v.length>=15&&v.shift();var m=v.length?v[v.length-1]:void 0,g=v[0];if(v.push(d),m&&(d.delta>m.delta||d.direction!==m.direction))v.splice(0);else if(v.length>=15&&d.time-g.time<500&&g.delta-d.delta>=1&&d.delta<=6){var w=r>0?.8:.2;s.mousewheel.lastEventBeforeSnap=d,v.splice(0),s.mousewheel.timeout=n.nextTick((function(){s.slideToClosest(s.params.speed,!0,void 0,w)}),0)}s.mousewheel.timeout||(s.mousewheel.timeout=n.nextTick((function(){s.mousewheel.lastEventBeforeSnap=d,v.splice(0),s.slideToClosest(s.params.speed,!0,void 0,.5)}),500))}if(p||s.emit("scroll",i),s.params.autoplay&&s.params.autoplayDisableOnInteraction&&s.autoplay.stop(),c===s.minTranslate()||c===s.maxTranslate())return!0}}else{if(n.now()-s.mousewheel.lastScrollTime>60)if(r<0)if(s.isEnd&&!s.params.loop||s.animating){if(a.releaseOnEdges)return!0}else s.slideNext(),s.emit("scroll",i);else if(s.isBeginning&&!s.params.loop||s.animating){if(a.releaseOnEdges)return!0}else s.slidePrev(),s.emit("scroll",i);s.mousewheel.lastScrollTime=(new t.Date).getTime()}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1},enable:function(){var e=te.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=s(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=te.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=s(this.params.mousewheel.eventsTarged)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},ie={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,i=t.$nextEl,s=t.$prevEl;s&&s.length>0&&(this.isBeginning?s.addClass(e.disabledClass):s.removeClass(e.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=s(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&e.length>1&&1===this.$el.find(i.nextEl).length&&(e=this.$el.find(i.nextEl))),i.prevEl&&(t=s(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&t.length>1&&1===this.$el.find(i.prevEl).length&&(t=this.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),n.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},se={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,a=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,r=this.pagination.$el,n=this.params.loop?Math.ceil((a-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>a-1-2*this.loopedSlides&&(i-=a-2*this.loopedSlides),i>n-1&&(i-=n),i<0&&"bullets"!==this.params.paginationType&&(i=n+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,d,h=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=h.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,d=((l=o+(Math.min(h.length,t.dynamicMainBullets)-1))+o)/2),h.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),r.length>1)h.each((function(e,a){var r=s(a),n=r.index();n===i&&r.addClass(t.bulletActiveClass),t.dynamicBullets&&(n>=o&&n<=l&&r.addClass(t.bulletActiveClass+"-main"),n===o&&r.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),n===l&&r.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))}));else{var p=h.eq(i),c=p.index();if(p.addClass(t.bulletActiveClass),t.dynamicBullets){for(var u=h.eq(o),f=h.eq(l),v=o;v<=l;v+=1)h.eq(v).addClass(t.bulletActiveClass+"-main");if(this.params.loop)if(c>=h.length-t.dynamicMainBullets){for(var m=t.dynamicMainBullets;m>=0;m-=1)h.eq(h.length-m).addClass(t.bulletActiveClass+"-main");h.eq(h.length-t.dynamicMainBullets-1).addClass(t.bulletActiveClass+"-prev")}else u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),f.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next");else u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),f.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}}if(t.dynamicBullets){var g=Math.min(h.length,t.dynamicMainBullets+4),w=(this.pagination.bulletSize*g-this.pagination.bulletSize)/2-d*this.pagination.bulletSize,b=e?"right":"left";h.css(this.isHorizontal()?b:"top",w+"px")}}if("fraction"===t.type&&(r.find("."+t.currentClass).text(t.formatFractionCurrent(i+1)),r.find("."+t.totalClass).text(t.formatFractionTotal(n))),"progressbar"===t.type){var y;y=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var x=(i+1)/n,E=1,T=1;"horizontal"===y?E=x:T=x,r.find("."+t.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+E+") scaleY("+T+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(r.html(t.renderCustom(this,i+1,n)),this.emit("paginationRender",this,r[0])):this.emit("paginationUpdate",this,r[0]),r[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===e.type){for(var a=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,r=0;r'+e.bulletElement+">";i.html(s),this.pagination.bullets=i.find("."+e.bulletClass)}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):' / ',i.html(s)),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'',i.html(s)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=s(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&1===e.$el.find(t.el).length&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,(function(t){t.preventDefault();var i=s(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),n.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}},ae={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,i=this.progress,s=e.dragSize,a=e.trackSize,r=e.$dragEl,n=e.$el,o=this.params.scrollbar,l=s,d=(a-s)*i;t?(d=-d)>0?(l=s-d,d=0):-d+s>a&&(l=a+d):d<0?(l=s+d,d=0):d+s>a&&(l=a-d),this.isHorizontal()?(r.transform("translate3d("+d+"px, 0, 0)"),r[0].style.width=l+"px"):(r.transform("translate3d(0px, "+d+"px, 0)"),r[0].style.height=l+"px"),o.hide&&(clearTimeout(this.scrollbar.timeout),n[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){n[0].style.opacity=0,n.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,i=e.$el;t[0].style.width="",t[0].style.height="";var s,a=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,r=this.size/this.virtualSize,o=r*(a/this.size);s="auto"===this.params.scrollbar.dragSize?a*r:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width=s+"px":t[0].style.height=s+"px",i[0].style.display=r>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),n.extend(e,{trackSize:a,divider:r,moveDivider:o,dragSize:s}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,i=this.scrollbar,s=this.rtlTranslate,a=i.$el,r=i.dragSize,n=i.trackSize,o=i.dragStartPos;t=(i.getPointerPosition(e)-a.offset()[this.isHorizontal()?"left":"top"]-(null!==o?o:r/2))/(n-r),t=Math.max(Math.min(t,1),0),s&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,a=i.$el,r=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===r[0]||e.target===r?i.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),r.transition(100),i.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),a.transition(0),t.hide&&a.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,i=this.$wrapperEl,s=t.$el,a=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),i.transition(0),s.transition(0),a.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,a=i.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),s.transition("")),t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=n.nextTick((function(){a.css("opacity",0),a.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,a=this.params,r=t.$el[0],n=!(!o.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};o.touch?(r.addEventListener(i.start,this.scrollbar.onDragStart,n),r.addEventListener(i.move,this.scrollbar.onDragMove,n),r.addEventListener(i.end,this.scrollbar.onDragEnd,l)):(r.addEventListener(s.start,this.scrollbar.onDragStart,n),e.addEventListener(s.move,this.scrollbar.onDragMove,n),e.addEventListener(s.end,this.scrollbar.onDragEnd,l))}},disableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,a=this.params,r=t.$el[0],n=!(!o.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};o.touch?(r.removeEventListener(i.start,this.scrollbar.onDragStart,n),r.removeEventListener(i.move,this.scrollbar.onDragMove,n),r.removeEventListener(i.end,this.scrollbar.onDragEnd,l)):(r.removeEventListener(s.start,this.scrollbar.onDragStart,n),e.removeEventListener(s.move,this.scrollbar.onDragMove,n),e.removeEventListener(s.end,this.scrollbar.onDragEnd,l))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,i=this.params.scrollbar,a=s(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&a.length>1&&1===t.find(i.el).length&&(a=t.find(i.el));var r=a.find("."+this.params.scrollbar.dragClass);0===r.length&&(r=s('
'),a.append(r)),n.extend(e,{$el:a,el:a[0],$dragEl:r,dragEl:r[0]}),i.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},re={setTransform:function(e,t){var i=this.rtl,a=s(e),r=i?-1:1,n=a.attr("data-swiper-parallax")||"0",o=a.attr("data-swiper-parallax-x"),l=a.attr("data-swiper-parallax-y"),d=a.attr("data-swiper-parallax-scale"),h=a.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=n,l="0"):(l=n,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*t*r+"%":o*t*r+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=h){var p=h-(h-1)*(1-Math.abs(t));a[0].style.opacity=p}if(null==d)a.transform("translate3d("+o+", "+l+", 0px)");else{var c=d-(d-1)*(1-Math.abs(t));a.transform("translate3d("+o+", "+l+", 0px) scale("+c+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,a=e.progress,r=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,a)})),i.each((function(t,i){var n=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(t/2)-a*(r.length-1)),n=Math.min(Math.max(n,-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(t,i){e.parallax.setTransform(i,n)}))}))},setTransition:function(e){void 0===e&&(e=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(t,i){var a=s(i),r=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),a.transition(r)}))}},ne={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,a=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(s-t,2)+Math.pow(a-i,2))},onGestureStart:function(e){var t=this.params.zoom,i=this.zoom,a=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!o.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,a.scaleStart=ne.getDistanceBetweenTouches(e)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=s(e.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=this.slides.eq(this.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+t.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),this.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(!o.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;i.fakeGestureMoved=!0,s.scaleMove=ne.getDistanceBetweenTouches(e)}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=o.gestures?e.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)}e.preventDefault(),e.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)),a.prevPositionX||(a.prevPositionX=s.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=s.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(s.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(s.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(s.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(s.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=s.touchesCurrent.x,a.prevPositionY=s.touchesCurrent.y,a.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,s=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var a=300,r=300,n=s.x*a,o=i.currentX+n,l=s.y*r,d=i.currentY+l;0!==s.x&&(a=Math.abs((o-i.currentX)/s.x)),0!==s.y&&(r=Math.abs((d-i.currentY)/s.y));var h=Math.max(a,r);i.currentX=o,i.currentY=d;var p=i.width*e.scale,c=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-p/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-c/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),t.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,a,r,n,o,l,d,h,p,c,u,f,v,m,g,w=this.zoom,b=this.params.zoom,y=w.gesture,x=w.image;y.$slideEl||(y.$slideEl=this.clickedSlide?s(this.clickedSlide):this.slides.eq(this.activeIndex),y.$imageEl=y.$slideEl.find("img, svg, canvas"),y.$imageWrapEl=y.$imageEl.parent("."+b.containerClass)),y.$imageEl&&0!==y.$imageEl.length&&(y.$slideEl.addClass(""+b.zoomedSlideClass),void 0===x.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=x.touchesStart.x,i=x.touchesStart.y),w.scale=y.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,w.currentScale=y.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,e?(m=y.$slideEl[0].offsetWidth,g=y.$slideEl[0].offsetHeight,a=y.$slideEl.offset().left+m/2-t,r=y.$slideEl.offset().top+g/2-i,l=y.$imageEl[0].offsetWidth,d=y.$imageEl[0].offsetHeight,h=l*w.scale,p=d*w.scale,f=-(c=Math.min(m/2-h/2,0)),v=-(u=Math.min(g/2-p/2,0)),(n=a*w.scale)f&&(n=f),(o=r*w.scale)v&&(o=v)):(n=0,o=0),y.$imageWrapEl.transition(300).transform("translate3d("+n+"px, "+o+"px,0)"),y.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+w.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,i=e.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("."+t.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(e.scale=1,e.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(""+t.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("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",e.onGestureStart,t),this.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",e.onGestureChange,i),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,i)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("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",e.onGestureStart,t),this.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",e.onGestureChange,i),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,i)}}},oe={loadInSlide:function(e,t){void 0===t&&(t=!0);var i=this,a=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),n=r.find("."+a.elementClass+":not(."+a.loadedClass+"):not(."+a.loadingClass+")");!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||(n=n.add(r[0])),0!==n.length&&n.each((function(e,n){var o=s(n);o.addClass(a.loadingClass);var l=o.attr("data-background"),d=o.attr("data-src"),h=o.attr("data-srcset"),p=o.attr("data-sizes");i.loadImage(o[0],d||l,h,p,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(h&&(o.attr("srcset",h),o.removeAttr("data-srcset")),p&&(o.attr("sizes",p),o.removeAttr("data-sizes")),d&&(o.attr("src",d),o.removeAttr("data-src"))),o.addClass(a.loadedClass).removeClass(a.loadingClass),r.find("."+a.preloaderClass).remove(),i.params.loop&&t){var e=r.attr("data-swiper-slide-index");if(r.hasClass(i.params.slideDuplicateClass)){var s=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(s.index(),!1)}else{var n=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(n.index(),!1)}}i.emit("lazyImageReady",r[0],o[0])}})),i.emit("lazyImageLoad",r[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperEl,i=e.params,a=e.slides,r=e.activeIndex,n=e.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesPerView;function d(e){if(n){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(a[e])return!0;return!1}function h(e){return n?s(e).attr("data-swiper-slide-index"):s(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each((function(t,i){var a=n?s(i).attr("data-swiper-slide-index"):s(i).index();e.lazy.loadInSlide(a)}));else if(l>1)for(var p=r;p1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var c=o.loadPrevNextAmount,u=l,f=Math.min(r+u+Math.max(c,u),a.length),v=Math.max(r-Math.max(u,c),0),m=r+l;m0&&e.lazy.loadInSlide(h(w));var b=t.children("."+i.slidePrevClass);b.length>0&&e.lazy.loadInSlide(h(b))}}},le={LinearSpline:function(e,t){var i,s,a,r,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=function(e,t){for(s=-1,i=e.length;i-s>1;)e[a=i+s>>1]<=t?s=a:i=a;return i}(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new le.LinearSpline(this.slidesGrid,e.slidesGrid):new le.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,s,a=this,r=a.controller.control;function n(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),s=-a.controller.spline.interpolate(-t)),s&&"container"!==a.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),s=(t-a.minTranslate())*i+e.minTranslate()),a.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,a),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(var o=0;o0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(i,a){var r=s(a);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/{{index}}/,r.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.prevSlideMessage),t.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 e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.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)}},he={init:function(){if(this.params.history){if(!t.history||!t.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=he.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||t.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=he.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),i=e.length;return{key:e[i-2],value:e[i-1]}},setHistory:function(e,i){if(this.history.initialized&&this.params.history.enabled){var s=this.slides.eq(i),a=he.slugify(s.attr("data-history"));t.location.pathname.includes(e)||(a=e+"/"+a);var r=t.history.state;r&&r.value===a||(this.params.history.replaceState?t.history.replaceState({value:a},null,a):t.history.pushState({value:a},null,a))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){if(t)for(var s=0,a=this.slides.length;s
'),i.append(e)),e.css({height:r+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=s('
'),t.append(e)));for(var u=0;u-1&&(c=90*v+90*w,o&&(c=90*-v-90*w)),f.transform(E),d.slideShadows){var T=h?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),C=h?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===T.length&&(T=s('
'),f.append(T)),0===C.length&&(C=s('
'),f.append(C)),T.length&&(T[0].style.opacity=Math.max(-w,0)),C.length&&(C[0].style.opacity=Math.max(w,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"}),d.shadow)if(h)e.transform("translate3d(0px, "+(r/2+d.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var S=Math.abs(c)-90*Math.floor(Math.abs(c)/90),A=1.5-(Math.sin(2*S*Math.PI/360)/2+Math.cos(2*S*Math.PI/360)/2),M=d.shadowScale,z=d.shadowScale/A,k=d.shadowOffset;e.transform("scale3d("+M+", 1, "+z+") translate3d(0px, "+(n/2+k)+"px, "+-n/2/z+"px) rotateX(-90deg)")}var P=q.isSafari||q.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+P+"px) rotateX("+(this.isHorizontal()?0:c)+"deg) rotateY("+(this.isHorizontal()?-c:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},ve={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,i=0;i
'),a.append(h)),0===p.length&&(p=s('
'),a.append(p)),h.length&&(h[0].style.opacity=Math.max(-r,0)),p.length&&(p[0].style.opacity=Math.max(r,0))}a.transform("translate3d("+l+"px, "+d+"px, 0px) rotateX("+o+"deg) rotateY("+n+"deg)")}},setTransition:function(e){var t=this,i=t.slides,s=t.activeIndex,a=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.eq(s).transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i
'),v.append(C)),0===S.length&&(S=s('
'),v.append(S)),C.length&&(C[0].style.opacity=g>0?g:0),S.length&&(S[0].style.opacity=-g>0?-g:0)}}(o.pointerEvents||o.prefixedPointerEvents)&&(a[0].style.perspectiveOrigin=h+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ge={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,n.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),n.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):n.isObject(e.swiper)&&(this.thumbs.swiper=new t(n.extend({},e.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 e=this.thumbs.swiper;if(e){var t=e.clickedIndex,i=e.clickedSlide;if(!(i&&s(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var a;if(a=e.params.loop?parseInt(s(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var r=this.activeIndex;this.slides.eq(r).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,r=this.activeIndex);var n=this.slides.eq(r).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),o=this.slides.eq(r).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===n?o:void 0===o?n:o-ra?s-Math.floor(i/2)+1:s+Math.floor(i/2)-1:s>a&&(s=s-i+1),t.slideTo(s,e?0:void 0))}var o=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(o=this.params.slidesPerView),t.slides.removeClass(l),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var d=0;d0&&!s(e.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(){n.extend(this,{scrollbar:{init:ae.init.bind(this),destroy:ae.destroy.bind(this),updateSize:ae.updateSize.bind(this),setTranslate:ae.setTranslate.bind(this),setTransition:ae.setTransition.bind(this),enableDraggable:ae.enableDraggable.bind(this),disableDraggable:ae.disableDraggable.bind(this),setDragPosition:ae.setDragPosition.bind(this),getPointerPosition:ae.getPointerPosition.bind(this),onDragStart:ae.onDragStart.bind(this),onDragMove:ae.onDragMove.bind(this),onDragEnd:ae.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(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){n.extend(this,{parallax:{setTransform:re.setTransform.bind(this),setTranslate:re.setTranslate.bind(this),setTransition:re.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(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={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){t[i]=ne[i].bind(e)})),n.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,a=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,a)}i=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},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(){n.extend(this,{lazy:{initialImageLoaded:!1,load:oe.load.bind(this),loadInSlide:oe.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(){n.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:le.getInterpolateFunction.bind(this),setTranslate:le.setTranslate.bind(this),setTransition:le.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(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{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 e=this;n.extend(e,{a11y:{liveRegion:s('')}}),Object.keys(de).forEach((function(t){e.a11y[t]=de[t].bind(e)}))},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(){n.extend(this,{history:{init:he.init.bind(this),setHistory:he.setHistory.bind(this),setHistoryPopState:he.setHistoryPopState.bind(this),scrollToSlide:he.scrollToSlide.bind(this),destroy:he.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(){n.extend(this,{hashNavigation:{initialized:!1,init:pe.init.bind(this),destroy:pe.destroy.bind(this),setHash:pe.setHash.bind(this),onHashCange:pe.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 e=this;n.extend(e,{autoplay:{running:!1,paused:!1,run:ce.run.bind(e),start:ce.start.bind(e),stop:ce.stop.bind(e),pause:ce.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):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(){n.extend(this,{fadeEffect:{setTranslate:ue.setTranslate.bind(this),setTransition:ue.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){n.extend(this,{cubeEffect:{setTranslate:fe.setTranslate.bind(this),setTransition:fe.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 e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){n.extend(this,{flipEffect:{setTranslate:ve.setTranslate.bind(this),setTransition:ve.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 e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){n.extend(this,{coverflowEffect:{setTranslate:me.setTranslate.bind(this),setTransition:me.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(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){n.extend(this,{thumbs:{swiper:null,init:ge.init.bind(this),update:ge.update.bind(this),onThumbClick:ge.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.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(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===F.use&&(F.use=F.Class.use,F.installModule=F.Class.installModule),F.use(we),F},"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t=t||self).Swiper=i();let s=document.createElement("style");s.setAttribute("type","text/css"),s.innerHTML="/**\n * Swiper 5.2.0\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * http://swiperjs.com\n *\n * Copyright 2014-2019 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: October 26, 2019\n */\n \n @font-face{font-family:swiper-icons;src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-container-multirow>.swiper-wrapper{flex-wrap:wrap}.swiper-container-multirow-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-container-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-container-3d{perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-container-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-container-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-container-horizontal.swiper-container-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-container-vertical.swiper-container-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(-1 * var(--swiper-navigation-size)/ 2);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;text-transform:none;font-variant:initial}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-container-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-container-rtl .swiper-button-prev:after{content:'next'}.swiper-button-next.swiper-button-white,.swiper-button-prev.swiper-button-white{--swiper-navigation-color:#ffffff}.swiper-button-next.swiper-button-black,.swiper-button-prev.swiper-button-black{--swiper-navigation-color:#000000}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-white{--swiper-pagination-color:#ffffff}.swiper-pagination-black{--swiper-pagination-color:#000000}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;animation:swiper-preloader-spin 1s infinite linear;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{100%{transform:rotate(360deg)}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}",document.head.append(s),document.documentElement.dispatchEvent(e)}var t,i}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e()}()
")).attr("data-swiper-slide-index")||t.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=t),t)},appendSlide:function(t){if("object"==typeof t&&"length"in t)for(var e=0;eMath.abs(r.pixelY)))return!0;a=r.pixelX*n}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;a=r.pixelY}else a=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*n:-r.pixelY;if(0===a)return!0;if(s.invert&&(a=-a),i.params.freeMode){var o={time:c.now(),delta:Math.abs(a),direction:Math.sign(a)};if(!(r=(n=i.mousewheel.lastEventBeforeSnap)&&o.time=i.minTranslate()?i.minTranslate():n)<=i.maxTranslate()&&(n=i.maxTranslate()),i.setTransition(0),i.setTranslate(n),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!s&&i.isBeginning||!d&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0,15<=(l=i.mousewheel.recentWheelEvents).length&&l.shift(),s=l.length?l[l.length-1]:void 0,d=l[0],l.push(o),s&&(o.delta>s.delta||o.direction!==s.direction)?l.splice(0):15<=l.length&&o.time-d.time<500&&1<=d.delta-o.delta&&o.delta<=6&&(h=0r.delta)&&i.mousewheel.animateSlider(s),i.mousewheel.releaseScroll(s))return!0;return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider:function(t){return 6<=t.delta&&c.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 i.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=W.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(e="container"!==this.params.mousewheel.eventsTarged?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},disable:function(){var t=W.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(e="container"!==this.params.mousewheel.eventsTarged?s(this.params.mousewheel.eventsTarged):e).off(t,this.mousewheel.handle),!(this.mousewheel.enabled=!1)}},V={update:function(){var t,e,i=this.params.navigation;this.params.loop||(t=(e=this.navigation).$nextEl,(e=e.$prevEl)&&0a-1-2*this.loopedSlides&&(i-=a-2*this.loopedSlides),r-1e.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"),1=d.length-e.dynamicMainBullets){for(var m=e.dynamicMainBullets;0<=m;--m)d.eq(d.length-m).addClass(e.bulletActiveClass+"-main");d.eq(d.length-e.dynamicMainBullets-1).addClass(e.bulletActiveClass+"-prev")}else a.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),u.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next");else a.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),u.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next")}}e.dynamicBullets&&(c=Math.min(d.length,e.dynamicMainBullets+4),a=(this.pagination.bulletSize*c-this.pagination.bulletSize)/2-h*this.pagination.bulletSize,u=t?"right":"left",d.css(this.isHorizontal()?u:"top",a+"px"))}"fraction"===e.type&&(n.find("."+e.currentClass).text(e.formatFractionCurrent(i+1)),n.find("."+e.totalClass).text(e.formatFractionTotal(r))),"progressbar"===e.type&&(c=e.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical",h=(i+1)/r,u=t=1,"horizontal"==c?t=h:u=h,n.find("."+e.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+t+") scaleY("+u+")").transition(this.params.speed)),"custom"===e.type&&e.renderCustom?(n.html(e.renderCustom(this,i+1,r)),this.emit("paginationRender",this,n[0])):this.emit("paginationUpdate",this,n[0]),n[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:this).slides.length,i=this.pagination.$el,s="";if("bullets"===t.type){for(var a=this.params.loop?Math.ceil((e-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,n=0;n'+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,e=this,i=e.params.pagination;i.el&&0!==(t=s(i.el)).length&&(e.params.uniqueNavElements&&"string"==typeof i.el&&1
'),i.append(a)),c.extend(t,{$el:i,el:i[0],$dragEl:a,dragEl:a[0]}),e.draggable&&t.enableDraggable())},destroy:function(){this.scrollbar.disableDraggable()}},Y={setTransform:function(t,e){var i=(i=this.rtl)?-1:1,a=(t=s(t)).attr("data-swiper-parallax")||"0",n=t.attr("data-swiper-parallax-x"),r=t.attr("data-swiper-parallax-y"),o=t.attr("data-swiper-parallax-scale"),l=t.attr("data-swiper-parallax-opacity");n||r?(n=n||"0",r=r||"0"):this.isHorizontal()?(n=a,r="0"):(r=a,n="0"),n=0<=n.indexOf("%")?parseInt(n,10)*e*i+"%":n*e*i+"px",r=0<=r.indexOf("%")?parseInt(r,10)*e+"%":r*e+"px",null!=l&&(a=l-(l-1)*(1-Math.abs(e)),t[0].style.opacity=a),null==o?t.transform("translate3d("+n+", "+r+", 0px)"):(i=o-(o-1)*(1-Math.abs(e)),t.transform("translate3d("+n+", "+r+", 0px) scale("+i+")"))},setTranslate:function(){var t=this,e=t.$el,i=t.slides,a=t.progress,n=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,a)})),i.each((function(e,i){var r=i.progress;1s.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)),a.prevPositionX||(a.prevPositionX=s.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=s.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(s.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(s.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(s.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(s.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=s.touchesCurrent.x,a.prevPositionY=s.touchesCurrent.y,a.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 a=300,n=300,r=s.x*a,o=(r=i.currentX+r,s.y*n);o=i.currentY+o,0!==s.x&&(a=Math.abs((r-i.currentX)/s.x)),0!==s.y&&(n=Math.abs((o-i.currentY)/s.y)),s=Math.max(a,n),i.currentX=r,i.currentY=o,a=i.width*t.scale,n=i.height*t.scale,i.minX=Math.min(e.slideWidth/2-a/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-n/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(s).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,a,n,r=this.zoom,o=this.params.zoom,l=r.gesture,h=r.image;l.$slideEl||(l.$slideEl=this.clickedSlide?s(this.clickedSlide):this.slides.eq(this.activeIndex),l.$imageEl=l.$slideEl.find("img, svg, canvas"),l.$imageWrapEl=l.$imageEl.parent("."+o.containerClass)),l.$imageEl&&0!==l.$imageEl.length&&(l.$slideEl.addClass(""+o.zoomedSlideClass),h=void 0===h.touchesStart.x&&t?(e=("touchend"===t.type?t.changedTouches[0]:t).pageX,("touchend"===t.type?t.changedTouches[0]:t).pageY):(e=h.touchesStart.x,h.touchesStart.y),r.scale=l.$imageWrapEl.attr("data-swiper-zoom")||o.maxRatio,r.currentScale=l.$imageWrapEl.attr("data-swiper-zoom")||o.maxRatio,t?(o=l.$slideEl[0].offsetWidth,t=l.$slideEl[0].offsetHeight,e=l.$slideEl.offset().left+o/2-e,h=l.$slideEl.offset().top+t/2-h,a=l.$imageEl[0].offsetWidth,n=l.$imageEl[0].offsetHeight,a*=r.scale,n*=r.scale,a=-(o=Math.min(o/2-a/2,0)),n=-(t=Math.min(t/2-n/2,0)),a<(i=(i=e*r.scale)>1]<=e?s=a:i=a;return i}(this.x,t),n=r-1,(t-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new U.LinearSpline(this.slidesGrid,t.slidesGrid):new U.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i,s,a=this,n=a.controller.control;function r(t){var e=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(t),s=-a.controller.spline.interpolate(-e)),s&&"container"!==a.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(a.maxTranslate()-a.minTranslate()),s=(e-a.minTranslate())*i+t.minTranslate()),a.params.controller.inverse&&(s=t.maxTranslate()-s),t.updateProgress(s),t.setTranslate(s,a),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(var o=0;o
'),i.append(t)),t.css({height:n+"px"})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=s('
'),e.append(t)));for(var p,m=0;m
'),f.append(g)),0===w.length&&(w=s('
'),f.append(w)),g.length&&(g[0].style.opacity=Math.max(-b,0)),w.length&&(w[0].style.opacity=Math.max(b,0)))}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&&(d?t.transform("translate3d(0px, "+(n/2+h.shadowOffset)+"px, "+-n/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")"):(e=Math.abs(u)-90*Math.floor(Math.abs(u)/90),n=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),e=h.shadowScale,n=h.shadowScale/n,p=h.shadowOffset,t.transform("scale3d("+e+", 1, "+n+") translate3d(0px, "+(r/2+p)+"px, "+-r/2/n+"px) rotateX(-90deg)"))),i.transform("translate3d(0px,0,"+(I.isSafari||I.isUiWebView?-l/2:0)+"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)}},it={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i
'),r.append(a)),0===n.length&&(n=s('
'),r.append(n)),a.length&&(a[0].style.opacity=Math.max(-o,0)),n.length&&(n[0].style.opacity=Math.max(o,0))),r.transform("translate3d("+d+"px, "+c+"px, 0px) rotateX("+h+"deg) rotateY("+l+"deg)")}},setTransition:function(t){var e,i=this,s=i.slides,a=i.activeIndex,n=i.$wrapperEl;s.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),i.params.virtualTranslate&&0!==t&&(e=!1,s.eq(a).transitionEnd((function(){if(!e&&i&&!i.destroyed){e=!0,i.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],s=0;s
'),f.append(w)),0===b.length&&(b=s('
'),f.append(b)),w.length&&(w[0].style.opacity=0')}}),Object.keys(K).forEach((function(e){t.a11y[e]=K[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(){c.extend(this,{history:{init:Q.init.bind(this),setHistory:Q.setHistory.bind(this),setHistoryPopState:Q.setHistoryPopState.bind(this),scrollToSlide:Q.scrollToSlide.bind(this),destroy:Q.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(){c.extend(this,{hashNavigation:{initialized:!1,init:Z.init.bind(this),destroy:Z.destroy.bind(this),setHash:Z.setHash.bind(this),onHashCange:Z.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;c.extend(t,{autoplay:{running:!1,paused:!1,run:J.run.bind(t),start:J.start.bind(t),stop:J.stop.bind(t),pause:J.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(){c.extend(this,{fadeEffect:{setTranslate:tt.setTranslate.bind(this),setTransition:tt.setTransition.bind(this)}})},on:{beforeInit:function(){var t;"fade"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"fade"),c.extend(this.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}),c.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(){c.extend(this,{cubeEffect:{setTranslate:et.setTranslate.bind(this),setTransition:et.setTransition.bind(this)}})},on:{beforeInit:function(){var t;"cube"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d"),c.extend(this.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0}),c.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(){c.extend(this,{flipEffect:{setTranslate:it.setTranslate.bind(this),setTransition:it.setTransition.bind(this)}})},on:{beforeInit:function(){var t;"flip"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d"),c.extend(this.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}),c.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(){c.extend(this,{coverflowEffect:{setTranslate:st.setTranslate.bind(this),setTransition:st.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(){c.extend(this,{thumbs:{swiper:null,init:at.init.bind(this),update:at.update.bind(this),onThumbClick:at.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===P.use&&(P.use=P.Class.use,P.installModule=P.Class.installModule),P.use(nt),P},"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(i=i||self).Swiper=s();var a=function(){function t(t){var e,i,s=null,a=null,n=t?t+200:200;window.addEventListener("resize",(function(){null==s?(i=document.scrollingElement||document.documentElement||document.body.parentNode||document.body,e=document.body.clientHeight,i=window.pageYOffset+i.clientHeight,s=i/e):e=document.body.clientHeight,clearTimeout(a),a=setTimeout((function(){window.scrollTo(0,e*s-window.innerHeight),s=null}),n)}))}function e(){return!(-1t.targetValue?t.targetValue:e)<0?0:e;var e},videoObjectFit:function(t){!function(t){function e(t){this.opts=t,this.resizeTiming=t.resizeTiming||100,this.setElement(),this.setVideoStyle(),this.bindEvent()}var i=e.prototype;i.setElement=function(){void 0!==this.opts.wrapElement&&(this.wrapElement=this.opts.wrapElement.jquery?this.opts.wrapElement[0]:this.opts.wrapElement),void 0!==this.opts.targetVideo&&(this.targetVideo=this.opts.targetVideo.jquery?this.opts.targetVideo[0]:this.opts.targetVideo)},i.setVideoStyle=function(){this.wrapElement.style.overflow="hidden",this.targetVideo.style.position="absolute",this.targetVideo.style.top="50%",this.targetVideo.style.left="50%",this.targetVideo.style.transform="translate(-50%, -50%)"},i.bindEvent=function(){var t=this;window.addEventListener("load",(function(){t.setVideoSize()})),window.addEventListener("resize",(function(){t.setVideoSize()}))},i.getVideoInfo=function(){this.wrapWidth=this.wrapElement.clientWidth,this.wrapHeight=this.wrapElement.clientHeight,this.videoWidth=this.targetVideo.clientWidth,this.videoHeight=this.targetVideo.clientHeight,this.wrapRatio=this.wrapHeight/this.wrapWidth,this.videoRatio=this.videoHeight/this.videoWidth},i.setVideoSize=function(){var t=this;clearTimeout(null),setTimeout((function(){t.getVideoInfo(),t.wrapRatio=t.resolution[0]&&e!=t.statusName[0]||a>=t.resolution[0]&&!s)&&(document.documentElement.classList.remove(e),e=t.statusName[0]||i,s=i,document.documentElement.classList.add(e))}});return function(){return window.addEventListener("DOMContentLoaded",(function(){r(),i=s})),window.addEventListener("resize",(function(){r(),clearTimeout(n),console.log(t.activeTiming),i!=s&&t.callback[s]&&(n=setTimeout((function(){t.callback[s](),n=null,i=s}),t.activeTiming))})),this}()}}}();window.TAB_S9=window.TAB_S9||{};const n=function(){return{isIosDevice:((r=/iPad|iPhone|iPod/.test(navigator.userAgent))?document.documentElement.classList.add("isIosDevice"):document.documentElement.classList.add("isNotIosDevice"),r),checkGlobal:void(0===location.pathname.indexOf("/global/galaxy")||!0===window.IS_CAMPAIGN?document.documentElement.classList.add("global"):document.documentElement.classList.add("dotcom")),checkOS:(r=(r=navigator.appVersion.match(/(mac|win|linux)/i))?r[1].toLowerCase():"",void document.documentElement.classList.add(r)),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:(r=/applewebkit/i.test(navigator.userAgent),a=/chrome/i.test(navigator.userAgent),void(r&&!a&&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:(r="Netscape"===navigator.appName,a=-1!==navigator.appVersion.indexOf("Mac"),i=-1!==navigator.userAgent.indexOf("Safari"),s=-1!==navigator.userAgent.indexOf("Chrome"),r&&!a&&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(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=Object(t[0]),s=1;s{var t=window.innerWidth,e=window.innerHeight,i=!!n.isTouchDevice&&window.matchMedia("(orientation: landscape)").matches;let s=!1;return n.isTouchDevice&&!window.matchMedia("(orientation: landscape)").matches&&e/t<1.5||i||e<700?(document.documentElement.classList.add("is-animation-broken-fixed"),s=!0):document.documentElement.classList.remove("is-animation-broken-fixed"),s},isTouchDevice:((r="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)?document.documentElement.classList.add("isTouchDevice"):document.documentElement.classList.add("isNotTouchDevice"),r),isIEorEdge:function(){var t,e=navigator.userAgent.toLowerCase();if("Microsoft Internet Explorer"==navigator.appName)t="msie ";else if(-1=this.trackBottomOffset?(this.fixedElement.style.position="absolute",this.fixedElement.style.top=this.trackElement.clientHeight-this.fixedElement.clientHeight+"px"):this.isFixedArea||(this.fixedElement.style.position="fixed",this.fixedElement.style.top="0")}},e.getWheelDirection=function(){this.winScrollTop>=this.oldWinScrollTop?this.wheelDirection="down":this.wheelDirection="up",this.oldWinScrollTop=this.winScrollTop},e.getProgress=function(){var t=this.utilList.getOffset.call(this,this.trackElement).top-this.windowHeight*this.correction,e=this.useFixed||this.useSticky?Math.abs(this.trackElement.clientHeight-this.windowHeight):this.useViewportOver?this.trackElement.clientHeight+this.windowHeight:this.trackElement.clientHeight,i=this.winScrollTop-t;t=this.winScrollBottom-t,i=this.useFixed||this.useSticky?i/e*100:t/e*100;return this.useStrictMode?this.progress=Math.floor(i)<0?0:100=this.elementOffsetTop&&this.downScrollTop<=this.elementOffsetTop||"up"==this.wheelDirection&&this.upScrollTop<=this.elementOffsetBottom&&this.upScrollBottom>=this.elementOffsetBottom||"oneWay"==this.activeType&&this.downScrollBottom>=this.elementOffsetTop)&&(t(),this.activeStatus=!0);break;case"visible":("down"==this.wheelDirection&&this.downScrollBottom>=this.elementOffsetTop+n&&this.downScrollTop<=this.elementOffsetTop||"up"==this.wheelDirection&&this.upScrollTop<=this.elementOffsetBottom-n&&this.upScrollBottom>=this.elementOffsetBottom||"oneWay"==this.activeType&&this.downScrollBottom>=this.elementOffsetTop+n)&&(t(),this.activeStatus=!0)}switch(a){case"reverse":"visible"==s?(this.activeStatus&&"down"==this.wheelDirection&&this.winScrollTop>this.elementOffsetBottom||this.activeStatus&&"up"==this.wheelDirection&&this.winScrollBottomthis.elementOffsetBottom&&this.winScrollBottom>this.elementOffsetBottom)&&(e(),this.activeStatus=!1);break;case"oneWay":"visible"==s?this.activeStatus&&this.winScrollBottom{this.responsiveHandler(),this.lazyEvent()}),80)}lazyEvent(){this.setLazyImage(),this.lazyLength===this.lazyCompleteLength&&window.removeEventListener("scroll",this.lazyEvent.bind(this))}responsiveHandler(){this.windowWidth=window.innerWidth;var t=this.opts.loadOption.length;for(let e=0;es)&&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 i=0;i{1==this.opts.startLazyClass.split(" ").length&&s.classList.remove(u),1==this.opts.lazyClass.split(" ").length&&s.classList.remove(d),this.checkCompleteImage(),s.removeEventListener("load",e)},s.addEventListener("load",e),s.classList.add(this.opts.lazyCompleteClass))}}}findRemainingImageAttr(t){for(var e=this.opts.loadOption.length,i=0;i{t.isVideoInit=!1;{let e=0;if(e{if(t.querySelector("video"))return t})),this.lazyVideos=t,this.lazyLength=t.length}getResponsiveVideo(){var t=Array.from(this.el.querySelectorAll(this.opts.responsiveClass)).filter((t=>{{let e=0;if(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;var t=this.opts.loadOption.length;for(let e=0;es)&&this.opts.loadOption[e].attribute!==this.oldAttr&&(this.targetAttr=this.opts.loadOption[e].attribute,this.oldAttr=this.targetAttr,this.attrIndex=e,this.setResponsiveVideo())}}setResponsiveVideo(){for(let t=0;t{const a=t.getAttribute("type");-1{window.setTimeout((()=>{e.classList.add(this.classes.loaded)}),500),this.checkCompleteVideo(),this.getEndImage(e)}),{once:!0})}))}}setLazyVideo(){for(let a=0;ai-window.innerHeight*(0!=window.pageYOffset?this.opts.visiblePoint:0)&&t{const e=t.getAttribute("type");-1{window.setTimeout((()=>{e.classList.add(this.classes.loaded)}),500),1==this.opts.lazyClass.split(" ").length&&e.classList.remove(a),this.checkCompleteVideo(),this.getEndImage(e),this.videoCallStack.splice(0,1),0{1==this.opts.imageEndLazyClass.split(" ").length&&i.classList.remove(s),i.classList.add(this.opts.imageLazyCompleteClass)}),{once:!0}))}checkCompleteVideo(){var t=Array.from(this.el.querySelectorAll("."+this.classes.loaded)).filter((t=>{{let e=0;if(e=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{1==this.opts.imageEndLazyClass.split(" ").length&&e.classList.remove(s),e.classList.add(this.opts.lazyCompleteClass)}),{once:!0}))}bindEvents(){window.addEventListener("resize",this.onResizeHandler.bind(this)),window.addEventListener("scroll",this.onScrollHandler.bind(this)),this.video.addEventListener("canplaythrough",this.onCanplayThrough.bind(this),{once:!0}),this.useController&&this.videoController.addEventListener("click",this.onClickController.bind(this))}onChange(e){if(e===this.videoElement){e="mobile"!==this.currentDevice?"data-media-pc":"data-media-mo";const i=this.videoElement.getAttribute(e);e=i,this.prevVideoSrc!==e&&(this.videoElement.playState=!1,this.video.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");-1{t.isLowNetwork()||this.onPlay(),this.getEndImage()}),{once:!0})),this.prevVideoSrc=e}}onLoad(e){if(e===this.videoElement){e="mobile"!==this.currentDevice?"data-media-pc":"data-media-mo";const i=this.videoElement.getAttribute(e);this.videoElement.playState=!1,this.video.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");-1{t.isLowNetwork()||this.onPlay(),this.getEndImage()}),{once:!0})}}onPlay(t){const e=this.videoElement.parentElement.hasAttribute("aria-hidden");t&&t!==this.videoElement||(()=>{e&&JSON.parse(this.videoElement.parentElement.getAttribute("aria-hidden"))||0{this.videoElement.classList.add(this.classes.playing)}),350),this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.paused),window.setTimeout((()=>{this.video.play(),this.updateController()}),350),this.video.addEventListener("ended",this.updatePlayEnded.bind(this),{once:!0}))})()}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(){3{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()})()}onCanplayThrough(){var t=(t=this.opts.videoLazyClass.split("."))[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(t),this.isCanplay=!0,this.onScrollHandler(),this.isCanplay=!1}onClickController(t){t.preventDefault(),this.videoElement.playState?this.onPause():this.onPlay()}updatePlayEnded(){this.onPause()}updateController(){var t;this.useController&&(this.videoElement.playState?this.videoController.classList.add(this.classes.isPaused):this.videoController.classList.remove(this.classes.isPaused),t={el:this.videoController,playState:this.videoElement.playState},this.outCallback("updateController",t))}onScrollHandler(){if(!this.videoElement.closest(".cm-layer")){var e=window.scrollY,i=e>this.lastScrollY?"down":"up",s=t.getHeight(this.videoElement),a=(s=(t.winSize().h,.5*s),t.getScroll().top),n=t.getScroll().bottom,r=t.getOffset(this.videoElement).top,o=t.getOffset(this.videoElement).bottom-s;const d=this.videoElement.classList.contains(this.classes.playing)&&this.videoElement.playState;var l=this.videoElement.classList.contains(this.classes.paused)&&!this.videoElement.playState,h=this.videoElement.classList.contains(this.classes.ended)&&!this.videoElement.playState;if(o+s{this.isCanplay=!0,this.onReset(),this.onScrollHandler(),this.isCanplay=!1}),20)}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.winWidth>=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth'+o+"",r=t.currentTarget,function(){u.call(i),n.removeEventListener("focusin",l)}),h=function(){n.innerHTML=o,n.removeAttribute("tabindex"),n.removeEventListener("focusout",h)};t.currentTarget.closest(".cm-layer")&&(t=t.currentTarget.closest(".cm-layer"),e(t).trigger("closeLayer",!1)),n.addEventListener("focusin",l),n.addEventListener("focusout",h),s.querySelector("a").focus(),a.forEach((t=>t.classList.remove("is-active"))),s.classList.add("is-active")},c=function(t){var e=(t=t.target.closest("li")).getAttribute("data-sup"),i=document.querySelectorAll(".click_sup");for(let t=0;t0?`, ${this.opts.ariaNotHidden.join(",")}`:"";n.def(this,{aria:{notHidden:Array("head, script, noscript, link, style, meta"+a),focusType:["A","BUTTON","INPUT","SELECT","TEXTAREA"],dataAttr:{ariaHidden:"trapfocusariahidden",ariaDisabled:"trapfocusariadisabled",tabIndex:"trapfocustabindex",role:"trapfocusrole"},destroy:s.proxy((function(){for(var s=this.aria.dataAttr,a=this.aria.hiddenEls,n=this.aria.focusEls,r=this.aria.tabindexEls,o=0,l=a.length;o"),d=s(""),c=0,u=o.length;c{a.attr(i.tabIndex,-1)}))}(f);for(var g=0,y=(d=d.add(l.find("["+i.tabIndex+"]"))).length;g=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){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")),a=document.getElementById("spr-live-chat-app"),n=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")}a&&(a.setAttribute(t.disabled,"true"),a.setAttribute(t.hidden,"true"),a.setAttribute(e.tabIndex,"-1"),a.setAttribute(e.role,"none presentation")),n&&n.hasAttribute("aria-label")&&setTimeout((()=>{var i=n.querySelector("a");i.setAttribute(e.tabIndex,"-1"),i.setAttribute(t.disabled,"true"),i.setAttribute(t.hidden,"true")}))}))},destroy:function(){a=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}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{};const t=TAB_S9.UTILS,i=t.RESPONSIVE;TAB_S9.HeightMatch=class{constructor(i=container,s){var a={container:i||".heightmatch-wrap",childElement:">li",notCompareElement:null,pushElement:null,matchElement:".heightmatch-cont",column:3,pushObjs:null,useDestroyHeight:!0,destroyType:!1,resizeStart:null,breakpoints:{},matchBefore:null,matchAfter:null,loadAfter:null};this.opts=t.def(a,s||{}),this.classes=a.classes,this.obj=e(document.querySelector(i)),this.init()}init(){null!==this.obj&&(this.setElements(),this.setOpts(),this.setRows(),this.buildHeightControl(),this.outCallback("loadAfter"),this.bindEvents())}setElements(){this.objChild=this.obj.find(this.opts.childElement),(this.opts.pushObjs=null)==this.opts.pushElement?this.opts.pushObjs=this.objChild.not(this.opts.notCompareElement):this.opts.pushObjs=this.objChild.not(this.opts.notCompareElement).find(this.opts.pushElement)}setOpts(){this.currentDevice=!1,this.prevDevice=null;var e,i,s=t.winSize().w,a=this.opts.breakpoints,n=[];for(i in a)e=s<=i?(n.push(i),Math.min.apply(null,n)):null;this.breakOpts=t.def({},this.opts),null!=e&&(this.breakOpts=t.def(this.breakOpts,a[e]))}bindEvents(){window.addEventListener("resize",this.onResizeHandler.bind(this))}onResizeHandler(){t.winSize().w!==this.winWidth&&(this.winWidth=t.winSize().w,null==this.opts.resizeStart&&(this.opts.resizeStart=this.winWidth,this.outCallback("matchBefore"),this.resizeAnimateFunc()),window.clearTimeout(this.resizeEndTime),this.resizeEndTime=window.setTimeout(this.resizeEndFunc.bind(this),150))}resizeAnimateFunc(){this.setLayout(),this.setOpts(),this.setRows(),this.buildHeightControl(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,this.setOpts(),this.setRows(),this.buildHeightControl(),this.outCallback("matchAfter"),t.cancelAFrame.call(window,this.resizeRequestFrame)}setLayout(){this.winWidth>=i.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>i.MOBILE.WIDTH&&this.winWidth{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",a.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 n=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(n)}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"),n=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(n),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"),n=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(n),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);this.opts.flip.moveData={startDistance:this.opts.flip.rotateStart,endDistance:this.opts.flip.rotateEnd,moveDistance:l,moveOneStep:h,currentStep:0},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)}this.ariaAccessbility(!0,this.layerWrap)}},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)=>{-1{t.parentNode.classList.remove(this.classes.isOn)})),i.classList.contains(this.classes.isOn)||i.classList.add(this.classes.isOn),e=e.dataset.navIndex;const n=this.navDests[e];e=n.getBoundingClientRect();var s=parseInt(window.getComputedStyle(n).paddingTop),a=(window.innerHeight-(e.height-s)+t.getNavHeight())/2;let r=0;(r=n.classList.contains("js-nav-center")?this.winOffsetTop+e.top+s-a:this.winOffsetTop+e.top-t.getNavHeight())<150&&(r=0),this.el.classList.add("hold"),GALAXY.setSmoothScrollTop(r,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,s=t.getBoundingClientRect(),a=this.winOffsetTop+s.top;s=this.winOffsetTop+s.bottom;this.winOffsetTop+e>=a&&this.winOffsetTop+e<=s&&(i=t.dataset.visIndex,this.navItems.forEach(((t,e)=>{e!=i&&t.parentNode.classList.contains(this.classes.isOn)&&t.parentNode.classList.remove(this.classes.isOn)})),(a=this.navItems[i].parentNode).classList.contains(this.classes.isOn)||(a.classList.add(this.classes.isOn),!this.el.classList.contains("hold")&&a.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.TAB_S9=window.TAB_S9||{},TAB_S9.UTILS.RESPONSIVE,TAB_S9.Booster=class{constructor(t=container,e){this.opts={el:t,videoElement:".video__container",videoControllerTagging:{booster:{play:"gtabs9:highlights:outdoor-viewing:movi-play:outdoor-viewing-video",pause:"gtabs9:highlights:outdoor-viewing:movi-pause:outdoor-viewing-video"}},featureHide:"is-feature-hide"},this.el=document.querySelector(t),this.init()}init(){null===this.el||this.el.classList.contains(this.opts.featureHide)||(this.setElements(),this.buildVideoPlayer())}setElements(){this.videoElement=this.el.querySelector(this.opts.videoElement)}buildVideoPlayer(){this.videoPlayer={instance:null,build:()=>{null===this.videoPlayer.instance&&(this.videoPlayer.instance=new TAB_S9.VideoPlayer(this.videoElement,{sectionElement:this.opts.el,on:{updateController:t=>{const e=t.el;var i=e.dataset.tagging,s=(t=t.playState?"pause":"play",this.opts.videoControllerTagging);e.setAttribute("data-omni",s[i][t]),e.setAttribute("an-la",s[i][t])}}}))}},this.videoPlayer.build()}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{};const t=TAB_S9.UTILS,e=t.RESPONSIVE;TAB_S9.Compare=class{constructor(e=container,i){var s={el:e,compareWrapEl:".wearable-tab-compare__list-wrap",compareInnerEl:".wearable-tab-compare__list-inner",compareItemEl:".wearable-tab-compare__list-item",compareNameEl:".wearable-tab-compare__name",compareSelectEl:".wearable-tab-compare__select",compareSelectElText:".wearable-tab-compare__select-txt",selectOptionList:".wearable-tab-compare__dropdown",selectOptionItem:".wearable-tab-compare__dropdown-item",selectOptionLink:".wearable-tab-compare__dropdown-device",compareImgEl:".wearable-tab-compare__product-img",compareInfo:".wearable-tab-compare__info",compareInfoItem:".wearable-tab-compare__info-item",navigationEl:".wearable-tab-compare__navigation",colorChipEl:".wearable-tab-compare__color-chip",colorList:".wearable-tab-compare__color",visibleTargetEl:".wearable-tab-compare__info-item--network",viewMoreCta:".view-more__cta",viewmore:".viewmore",collapse:".collapse",matchElements:[".wearable-tab-compare__info-item--display",".wearable-tab-compare__info-item--durability",".wearable-tab-compare__info-item--processor",".wearable-tab-compare__info-item--battery",".wearable-tab-compare__info-item--storage",".wearable-tab-compare__info-item--pen",".wearable-tab-compare__info-item--network",".wearable-tab-compare__info-item--camera",".wearable-tab-compare__info-item--weight",".wearable-tab-compare__info-item--thickness",".wearable-tab-compare__cta",".wearable-tab-compare__name-selector"],matchCommonOpts:{childElement:".wearable-tab-compare__list-item",useDestroyHeight:!1,breakpoints:{}},classes:{isCollapse:"is-collapse",isActive:"is-active",isSelected:"is-selected",isExpanded:"is-expanded"},resizeStart:null,on:{updateImageLoader:null}};this.opts=t.def(s,i||{}),this.classes=s.classes,this.el=document.querySelector(e),this.init()}init(){null!==this.el&&(this.setElements(),this.initOpts(),this.initLayout(),this.buildHeightMatch(),this.buildCompareItem(),this.onResizeHandler(),this.bindEvents())}initOpts(){this.currentDevice=!1,this.expanded=!1,this.viewMoreCtaTagging=this.viewMoreCta.getAttribute("data-omni"),this.viewMoreTagging=this.viewMoreCta.querySelector(this.opts.viewmore).getAttribute("data-tagging"),this.collapseTagging=this.viewMoreCta.querySelector(this.opts.collapse).getAttribute("data-tagging")}initLayout(){this.updateViewMoreHeight()}setElements(){this.compareWrapEl=this.el.querySelector(this.opts.compareWrapEl),this.compareInnerEl=this.compareWrapEl.querySelector(this.opts.compareInnerEl),this.contentsEl=this.el.querySelectorAll(this.opts.colorChipEl),this.compareItemEl=this.compareWrapEl.querySelectorAll(this.opts.compareItemEl),this.compareNameEl=this.compareWrapEl.querySelectorAll(this.opts.compareNameEl),this.compareSelectEl=this.compareWrapEl.querySelectorAll(this.opts.compareSelectEl),this.selectOptionList=this.compareWrapEl.querySelectorAll(this.opts.selectOptionList),this.selectOptionLink=this.compareWrapEl.querySelectorAll(this.opts.selectOptionLink),this.visibleTargetEl=this.el.querySelectorAll(this.opts.visibleTargetEl),this.viewMoreCta=this.el.querySelector(this.opts.viewMoreCta),this.navigationEl=this.el.querySelector(this.opts.navigationEl)}bindEvents(){window.addEventListener("resize",this.onResizeHandler.bind(this)),this.viewMoreCta.addEventListener("click",this.onClickViewMoreCta.bind(this))}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.updateViewMoreHeight(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,this.updateViewMoreHeight(),t.cancelAFrame.call(window,this.resizeRequestFrame)}setLayout(){this.winWidth>=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{this.heightMatch.instance.length&&this.heightMatch.instance.forEach((t=>{t.reInit()}))},initLayout:()=>{for(let e=0,i=this.opts.matchElements.length;e{this.heightMatch.initLayout();var e={column:this.compareItemEl.length};t.def(this.opts.matchCommonOpts,e);for(let e=0,a=this.opts.matchElements.length;e{this.compareItem.instance.length||this.compareItemEl.forEach((t=>{this.compareItem.instance.push(new TAB_S9.CompareItem(t,{el:this.opts.compareItemEl,on:{updateHeightMatch:()=>{this.heightMatch.reInit(),this.updateViewMoreHeight()},updateImageLoader:t=>{this.outCallback("updateImageLoader",t)}}}))}))}},this.compareItem.build()}outCallback(t,e){null!=(t=this.opts.on[t])&&t(e)}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{};const t=TAB_S9.UTILS;t.RESPONSIVE,TAB_S9.CompareItem=class{constructor(e=container,i){var s={el:e,sectionEl:".wearable-tab-compare",compareItemEl:".wearable-tab-compare__list-item",compareListEl:".wearable-tab-compare__list",compareNameEl:".wearable-tab-compare__name",nameSelector:".wearable-tab-compare__name-selector",nameSelectorText:".wearable-tab-compare__name-selector-txt",selectOptionList:".wearable-tab-compare__dropdown",selectOptionItem:".wearable-tab-compare__dropdown-item",selectOptionLink:".wearable-tab-compare__dropdown-device",compareImgEl:".wearable-tab-compare__image",compareInfo:".wearable-tab-compare__info",compareInfoItem:".wearable-tab-compare__info-item",colorChipEl:".wearable-tab-compare__color-chip",colorList:".wearable-tab-compare__color",tabPanels:".wearable-tab-compare__product",tabPanel:".wearable-tab-compare__product-image",ctaItem:".wearable-tab-compare__cta-item",buynowCta:".buy__cta",learnmoreCta:".learn-more__cta",titleEl:".s-title",valueEl:".s-value",initIndex:0,classes:{isCollapse:"is-collapse",isActive:"is-active",isSelected:"is-selected"},on:{updateHeightMatch:null,updateImageLoader:null}};this.opts=t.def(s,i||{}),this.classes=s.classes,this.el=e,this.init()}init(){null!==this.el&&(this.setElements(),this.initOpts(),this.initLayout(),this.buildColorChange(),this.bindEvents(),this.updateComparelayout())}initOpts(){this.currentDevice=!1,this.targetIndex=this.opts.initIndex,this.baseImageSrc=this.sectionEl.dataset.imageSrc}initLayout(){this.selectOptionItem.forEach((t=>{t.classList.contains(this.classes.isSelected)?(this.currentProduct=t.dataset.modelName,t.querySelector(this.opts.selectOptionLink).setAttribute("title","selected"),this.nameSelectorText.innerText=t.querySelector(this.opts.selectOptionLink).innerText):t.querySelector(this.opts.selectOptionLink).removeAttribute("title")})),this.DATA=LOCAL_DATA[this.currentProduct]}updateComparelayout(){this.targetIndex=this.opts.initIndex,this.setColorLayout(),this.setProductImageLayout(),this.setCtaLayout(),this.setInfoLayout(),this.colorChange.reInit(),this.outCallback("updateImageLoader",this.responseveImages),this.outCallback("updateHeightMatch")}setElements(){this.sectionEl=document.querySelector(this.opts.sectionEl),this.compareListEl=document.querySelector(this.opts.compareListEl),this.compareNameEl=this.el.querySelector(this.opts.compareNameEl),this.allCompareNameEl=this.compareListEl.querySelectorAll(this.opts.compareNameEl),this.nameSelector=this.el.querySelector(this.opts.nameSelector),this.nameSelectorText=this.nameSelector.querySelector(this.opts.nameSelectorText),this.selectOptionList=this.el.querySelector(this.opts.selectOptionList),this.selectOptionItem=this.selectOptionList.querySelectorAll(this.opts.selectOptionItem),this.selectOptionLink=this.selectOptionList.querySelectorAll(this.opts.selectOptionLink),this.compareInfo=this.el.querySelector(this.opts.compareInfo),this.compareInfoItem=this.compareInfo.querySelectorAll(this.opts.compareInfoItem),this.compareProductName=this.el.querySelector(this.opts.compareProductName),this.colorList=this.el.querySelector(this.opts.colorList),this.tabPanels=this.el.querySelector(this.opts.tabPanels),this.tabPanel=this.tabPanels.querySelectorAll(this.opts.tabPanel),this.buynowCta=this.el.querySelector(this.opts.buynowCta),this.learnmoreCta=this.el.querySelector(this.opts.learnmoreCta)}bindEvents(){this.nameSelector.addEventListener("click",this.handleClickOption.bind(this)),this.selectOptionItem.forEach((t=>t.addEventListener("click",this.handleClickOptionItem.bind(this))))}setCtaLayout(){this.DATA.colors.forEach(((t,e)=>{if(this.targetIndex===e){t=(e=t.cta).buynow,e=e.learnmore;const i=this.buynowCta.closest(this.opts.ctaItem),s=this.learnmoreCta.closest(this.opts.ctaItem);t?(i.style.display="block",this.buynowCta.setAttribute("aria-label",t.aria),this.buynowCta.setAttribute("href",t.url),this.buynowCta.setAttribute("data-omni",t.tagging+t.sku),this.buynowCta.setAttribute("an-la",t.tagging)):i.style.display="none",e?(s.style.display="block",this.learnmoreCta.setAttribute("aria-label",e.aria),this.learnmoreCta.setAttribute("href",e.url),this.learnmoreCta.setAttribute("data-omni",e.tagging),this.learnmoreCta.setAttribute("an-la",e.tagging)):s.style.display="none"}}))}setColorLayout(){const t=[];this.DATA.colors.forEach(((e,i)=>{i=this.targetIndex===i?this.classes.isActive:"",t.push('")}));var e=t.join("");this.colorList.innerHTML=e}setProductImageLayout(){const t=[];this.DATA.colors.forEach(((e,i)=>{i=this.targetIndex===i?this.classes.isActive:"";var s=this.baseImageSrc+"/"+e.thumnailSrc;t.push('
'),t.push(''+e.alt+''),t.push("
")}));var e=t.join("");this.tabPanels.innerHTML=e,this.responseveImages=this.tabPanels.querySelectorAll(".js-start-img-src")}setInfoLayout(){for(const t in this.DATA)"colors"!==t&&this.compareInfoItem.forEach((e=>{if(t===e.dataset.infoTitle){const i=e.querySelector(this.opts.titleEl),s=e.querySelector(this.opts.valueEl);this.DATA[t].length?(i.style.display="block",s.innerHTML=this.DATA[t]):(i.style.display="none",s.innerHTML="")}}))}handleClickOption(t){t.preventDefault();t.currentTarget.closest(this.opts.compareNameEl).classList.contains(this.classes.isActive)?this.compareNameEl.classList.remove(this.classes.isActive):(this.allCompareNameEl.forEach((t=>t.classList.remove(this.classes.isActive))),this.compareNameEl.classList.add(this.classes.isActive)),document.body.addEventListener("click",this.outsideClickFunc.bind(this))}handleClickOptionItem(t){t.preventDefault();const e=t.currentTarget,i=e.querySelector(this.opts.selectOptionLink).innerText;this.selectOptionItem.forEach((t=>{t.classList.remove(this.classes.isSelected),t.querySelector(this.opts.selectOptionLink).removeAttribute("title")})),e.classList.add(this.classes.isSelected),e.querySelector(this.opts.selectOptionLink).setAttribute("title","selected"),this.nameSelectorText.innerText=i,setTimeout((()=>{this.nameSelector.focus()}),30),this.currentProduct=e.dataset.modelName,console.log("handleClickOptionItem",this.currentProduct),["galaxy-tab-s8-ultra","galaxy-tab-s8-plus","galaxy-tab-s8"].includes(this.currentProduct)?e.closest(".wearable-tab-compare__list-item").querySelector(".wearable-tab-compare__cta-item .buy__cta").style.display="none":e.closest(".wearable-tab-compare__list-item").querySelector(".wearable-tab-compare__cta-item .buy__cta").style.display="inline-flex",this.DATA=LOCAL_DATA[this.currentProduct],this.closeNameSelectorFunc(),this.updateComparelayout()}closeNameSelectorFunc(){this.compareNameEl.classList.remove(this.classes.isActive),this.setAriaFunc()}outsideClickFunc(t){t.target.closest(this.opts.compareNameEl)||this.compareNameEl.classList.remove(this.classes.isActive),this.setAriaFunc()}setAriaFunc(){this.compareNameEl.classList.contains(this.classes.isActive)?this.compareNameEl.querySelector(this.opts.nameSelector).setAttribute("title","expanded"):this.compareNameEl.querySelector(this.opts.nameSelector).setAttribute("title","collapse")}buildColorChange(){this.colorChange={instance:null,reInit:()=>{null!==this.colorChange.instance&&this.colorChange.instance.reInit()},build:()=>{null===this.colorChange.instance&&(this.colorChange.instance=new TAB_S9.Tab(this.el,{initIndex:this.opts.initIndex,tabEl:this.opts.compareItemEl,tabList:this.opts.colorList,tabPanels:this.opts.tabPanel,tabPanel:this.opts.tabPanels,tabButtons:this.opts.colorChipEl,a11y:!1,on:{updateIndex:t=>{this.targetIndex=t,this.setCtaLayout()}}}))}},this.colorChange.build()}outCallback(t,e){null!=(t=this.opts.on[t])&&t(e)}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{};const t=TAB_S9.UTILS;t.RESPONSIVE,TAB_S9.Contrast=class{constructor(t=container,e){var i={el:t,defaultBtn:".type-default",contrastBtn:".type-contrast",cookieName:"highContrastMode"};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){null!==this.el&&(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"))}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{};const t=TAB_S9.UTILS,e=t.RESPONSIVE;TAB_S9.Detail=class{constructor(t=container,e){var i={el:t,tabEl:".wearable-tab-detail__tab",tabList:".wearable-tab-detail__tab-list",tabButtons:".wearable-tab-detail__tab-cta",tabPanel:".wearable-tab-detail__tab-panels",tabPanels:".wearable-tab-detail__tab-panel",classes:{isActive:"is-active"},featureHide:"is-feature-hide",resizeStart:null};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.initOpts(),this.bindEvents())}setElements(){this.tabEl=this.el.querySelector(this.opts.tabEl),this.tabList=this.tabEl.querySelector(this.opts.tabList),this.tabButtons=t.convertArray(this.tabList.querySelectorAll(this.opts.tabButtons)),this.tabPanel=this.el.querySelector(this.opts.tabPanel),this.tabPanels=t.convertArray(this.tabPanel.querySelectorAll(this.opts.tabPanels))}initOpts(){this.currentIndex=0,this.currentDevice=!1,this.prevDevice=null}initLayout(){this.tabButtons.forEach((function(e,i){const s=this.tabPanels[i];this.currentIndex==i?(e.classList.contains(this.classes.isActive)||e.classList.add(this.classes.isActive),s.classList.contains(this.classes.isActive)||s.classList.add(this.classes.isActive),e.setAttribute("aria-selected",!0),t.offAccessibility(s)):(e.classList.contains(this.classes.isActive)&&e.classList.remove(this.classes.isActive),s.classList.contains(this.classes.isActive)&&s.classList.remove(this.classes.isActive),e.setAttribute("aria-selected",!1),t.onAccessibility(s))}))}bindEvents(){window.addEventListener("resize",this.onResizeHandler.bind(this)),this.tabButtons.forEach((t=>{t.addEventListener("click",this.onClickTabButton.bind(this))}))}unBindEvents(){}onClickTabButton(e){e=e.currentTarget;const i=this.tabButtons.indexOf(e);i!=this.currentIndex&&(this.tabButtons.forEach(((e,s)=>{const a=this.tabPanels[s];i==s?(e.classList.contains(this.classes.isActive)||e.classList.add(this.classes.isActive),a.classList.contains(this.classes.isActive)||a.classList.add(this.classes.isActive),e.setAttribute("aria-selected",!0),t.offAccessibility(a)):(e.classList.contains(this.classes.isActive)&&e.classList.remove(this.classes.isActive),a.classList.contains(this.classes.isActive)&&a.classList.remove(this.classes.isActive),e.setAttribute("aria-selected",!1),t.onAccessibility(a))})),this.currentIndex=i)}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)}onResponsiveChange(){}setLayout(){this.winWidth>=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidths&&(a.isFade=!1,a.beforeImage.style.opacity=1)}))}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)}onResponsiveChange(){this.setScroller()}setLayout(){this.winWidth>=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{null===this.videoPlayer.instance&&(this.videoPlayer.instance=new TAB_S9.VideoPlayer(this.videoElement,{sectionElement:this.opts.el,videoParentElement:this.opts.el,on:{updateController:t=>{const e=t.el;var i=e.dataset.tagging,s=(t=t.playState?"pause":"play",this.opts.videoControllerTagging);e.setAttribute("data-omni",s[i][t]),e.setAttribute("an-la",s[i][t])}}}))}},this.videoPlayer.build()}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{},TAB_S9.KeyVisual=class{constructor(t=container,e){var i={el:t,classes:{isUseBuy:"is-use-buy",isUseRegist:"is-use-regist",isUseOrder:"is-use-order",isUseWhere:"is-use-where",isUseOff:"is-use-off"},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.initLayout()}initLayout(){this.el.classList.remove(this.classes.isUseBuy),this.el.classList.remove(this.classes.isUseRegist),this.el.classList.remove(this.classes.isUseOrder),this.el.classList.remove(this.classes.isUseWhere),this.el.classList.remove(this.classes.isUseOff),"undefined"==typeof __TAB_USE_KV_CTA||null==__TAB_USE_KV_CTA||null==__TAB_USE_KV_CTA||""==__TAB_USE_KV_CTA||"buy-now"==__TAB_USE_KV_CTA?this.el.classList.add(this.classes.isUseBuy):"pre-order"==__TAB_USE_KV_CTA?this.el.classList.add(this.classes.isUseOrder):"pre-registration"==__TAB_USE_KV_CTA?this.el.classList.add(this.classes.isUseRegist):"where-to-buy"==__TAB_USE_KV_CTA?this.el.classList.add(this.classes.isUseWhere):"where-to-buy"==__TAB_USE_KV_CTA&&this.el.classList.add(this.classes.isUseOff)}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{},TAB_S9.UTILS.RESPONSIVE,TAB_S9.Meet=class{constructor(t=container,e){this.opts={el:t,videoElement:".video__container",videoControllerTagging:{design:{play:"gtabs9:highlights:design:movi-play:design-video",pause:"gtabs9:highlights:design:movi-pause:design-video"}},featureHide:"is-feature-hide"},this.el=document.querySelector(t),this.init()}init(){null===this.el||this.el.classList.contains(this.opts.featureHide)||(this.setElements(),this.buildVideoPlayer())}setElements(){this.videoElement=this.el.querySelector(this.opts.videoElement)}buildVideoPlayer(){this.videoPlayer={instance:null,build:()=>{null===this.videoPlayer.instance&&(this.videoPlayer.instance=new TAB_S9.VideoPlayer(this.videoElement,{sectionElement:this.opts.el,videoParentElement:this.opts.el,on:{updateController:t=>{const e=t.el;var i=e.dataset.tagging,s=(t=t.playState?"pause":"play",this.opts.videoControllerTagging);e.setAttribute("data-omni",s[i][t]),e.setAttribute("an-la",s[i][t])}}}))}},this.videoPlayer.build()}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{};const t=TAB_S9.UTILS,i=t.RESPONSIVE;TAB_S9.Overview=class{constructor(t=container,e){var i={el:t,rootEl:".wearable-tab",layerEl:".wearable-tab-overview__popup",featureList:".wearable-tab-overview__list",featureItem:".wearable-tab-overview__list-item",featureCta:".wearable-tab-overview__list-cta",featureBtn:".wearable-tab-overview__list-btn",featureContent:".wearable-tab-overview__popup-content",featurePlayer:".wearable-tab-overview__player",storyEl:".wearable-tab-overview__story",storySlide:".wearable-tab-overview__story-item",indicatorList:".wearable-tab-overview__indicator-list",indicatorItem:".wearable-tab-overview__indicator-item",indicatorText:".indicator__text",controlHiddenEl:".blind",navigationPrev:".navigation__cta-prev",navigationNext:".navigation__cta-next",storyItemController:".story-item__btn",storyItem:".story-item__image",storyItemCta:".story-item__cta",closeBtn:".cm-layer__btn-close",videoElement:".video__container",startImage:".video__start-frame",endImage:".video__end-frame",featureHide:"is-feature-hide",initSlide:0,infiniteRolling:!0,transitionDuration:400,widthResizeStart:null,heightResizeStart:null,classes:{loaded:"loaded",ended:"ended",paused:"paused",playing:"playing",isHover:"is-hover",isActive:"is-active",isPaused:"is-paused",isHeight:"is-height"},thumbnailTagging:{design:{play:"gtabs9:highlights:overview:movi-play:design-video",pause:"gtabs9:highlights:overview:movi-pause:design-video"},durability:{play:"gtabs9:highlights:overview:movi-play:durability-video",pause:"gtabs9:highlights:overview:movi-pause:durability-video"}},popupTagging:{design:{play:"gtabs9:highlights:overview^lypu:movi-play:design-video",pause:"gtabs9:highlights:overview^lypu:movi-pause:design-video"},durability:{play:"gtabs9:highlights:overview^lypu:movi-play:durability-video",pause:"gtabs9:highlights:overview^lypu:movi-pause:durability-video"},accessories:{play:"gtabs9:highlights:overview^lypu:movi-play:accessories-video",pause:"gtabs9:highlights:overview^lypu:movi-pause:accessories-video"}}};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.initOpts(),this.initLayout(),this.buildSwiper(),this.buildLayer(),this.buildVideoPlayer(),this.bindEvents())}initOpts(){this.winWidth=t.winSize().w,this.winHeight=t.winSize().h,this.currentDevice=!1,this.prevDevice=null,this.initValues()}initValues(){this.selectedIndex=-1}initLayout(){this.storySlide.forEach(((t,e)=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),t.querySelector(this.opts.storyItemCta).setAttribute("aria-hidden","true"),t.querySelector(this.opts.storyItemCta).setAttribute("tabindex","-1"),t.querySelector(this.opts.storyItemController)&&(t.querySelector(this.opts.storyItemController).setAttribute("aria-hidden","true"),t.querySelector(this.opts.storyItemController).setAttribute("tabindex","-1")),this.opts.initSlide===e&&(t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex"),t.querySelector(this.opts.storyItemCta).setAttribute("aria-hidden","false"),t.querySelector(this.opts.storyItemCta).removeAttribute("tabindex"),t.querySelector(this.opts.storyItemController)&&(t.querySelector(this.opts.storyItemController).setAttribute("aria-hidden","false"),t.querySelector(this.opts.storyItemController).removeAttribute("tabindex")))})),this.indicatorItem.forEach((t=>{"tablist"===this.indicatorList.getAttribute("role")&&t.setAttribute("aria-selected","false")})),this.opts.infiniteRolling||(0===this.opts.initSlide&&(this.navigationPrev.style.display="none"),this.opts.initSlide===this.storySlide.length-1&&(this.navigationNext.style.display="none"))}setElements(){this.rootEl=document.querySelector(this.opts.rootEl),this.layerEl=this.el.querySelector(this.opts.layerEl),this.videoElement=this.el.querySelectorAll(this.opts.videoElement),this.featureList=this.el.querySelector(this.opts.featureList),this.featureContent=this.el.querySelector(this.opts.featureContent),this.featureCta=this.featureList.querySelectorAll(this.opts.featureCta),this.featureBtn=this.featureList.querySelectorAll(this.opts.featureBtn),this.featurePlayer=this.featureList.querySelectorAll(this.opts.videoElement),this.storyEl=this.el.querySelector(this.opts.storyEl),this.storyItem=this.el.querySelectorAll(this.opts.storyItem),this.storySlide=this.el.querySelectorAll(this.opts.storySlide),this.storyPlayer=this.storyEl.querySelectorAll(this.opts.videoElement),this.indicatorList=this.el.querySelector(this.opts.indicatorList),this.indicatorItem=this.indicatorList.querySelectorAll(this.opts.indicatorItem),this.navigationPrev=this.el.querySelector(this.opts.navigationPrev),this.navigationNext=this.el.querySelector(this.opts.navigationNext),this.closeBtn=this.el.querySelector(this.opts.closeBtn),this.storyItemController=this.storyEl.querySelectorAll(this.opts.storyItemController)}bindEvents(){window.addEventListener("resize",this.onResizeHandler.bind(this)),this.featureCta.forEach(((t,e)=>{t.addEventListener("click",this.handleLayerOpen.bind(this,e))})),this.indicatorItem.forEach(((t,e)=>{t.addEventListener("click",this.select.bind(this,e))})),this.navigationPrev.addEventListener("click",this.handleNavigationPrev.bind(this)),this.navigationNext.addEventListener("click",this.handleNavigationNext.bind(this)),this.storySlide.forEach(((t,e)=>{-1{t.removeAllEventListeners("click")})),this.featureBtn.forEach((t=>{t.removeAllEventListeners("click")})),this.storyItemController.forEach((t=>{t.removeAllEventListeners("click")}))}onStoryItemCtaClickEvent(i){i.preventDefault();i=i.target.getAttribute("href");const s=this.rootEl.querySelector(i);i=s.dataset.rectTop||t.getOffset(s).top-t.getNavHeight(),e(this.layerEl).trigger("closeLayer",!1),e("html, body").animate({scrollTop:i},{duration:1e3});const a=s.querySelector(".wearable-tab-common__headline")?s.querySelector(".wearable-tab-common__headline"):s.querySelector(".wearable-tab-common__sub-headline");a&&(a.setAttribute("tabindex","0"),a.focus(),a.addEventListener("focusout",(()=>{a.removeAttribute("tabindex")})))}handleNavigationPrev(){let t=this.storySwiper.instance.realIndex-1;t<0&&(t=this.storySlide.length-1),this.storySwiper.instance.slideToLoop(t)}handleNavigationNext(){let t=this.storySwiper.instance.realIndex+1;t>=this.storySlide.length&&(t=0),this.storySwiper.instance.slideToLoop(t)}handleLayerOpen(t,e){e.preventDefault(),this.opts.initSlide=t}updateControlText(t,e){const i=t.querySelector(this.opts.controlHiddenEl);t=e?this.globalText.play:this.globalText.stop,i.innerHTML=t}select(e,i=!1,s){var a=this.selectedIndex;a===e&&!i||(this.animReqId&&(t.cancelAFrame.call(window,this.animReqId),this.animReqId=null),-1
{this.videoPlayer.change(t)})),"block"===this.layerEl.style.display&&this.storyPlayer.forEach((t=>{this.videoPlayer.change(t)}))}setWidthLayout(){this.winWidth>=i.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>i.MOBILE.WIDTH&&this.winWidth{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.forEach((e=>{e.onPlay(t)}))},change:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance.forEach((e=>{e.onChange(t)}))},build:()=>{this.videoPlayer.instance.length||this.videoElement.forEach(((t,e)=>{var i=t.closest(this.opts.featureItem)?this.opts.featureItem:null;this.videoPlayer.instance.push(new TAB_S9.VideoPlayer(t,{sectionElement:this.opts.el,videoParentElement:i,on:{updateController:t=>{const e=t.el;var i=e.dataset.tagging,s=(t=t.playState?"pause":"play",e.classList.contains(this.opts.featureBtn.split(".")[1])?this.opts.thumbnailTagging:e.classList.contains(this.opts.storyItemController.split(".")[1])?this.opts.popupTagging:"");e.setAttribute("data-omni",s[i][t]),e.setAttribute("an-la",s[i][t])}}}))}))}},this.videoPlayer.build()}buildSwiper(){this.storySwiper={instance:null,options:{a11y:!1,loop:this.opts.infiniteRolling,speed:this.opts.transitionDuration,effect:"fade",touchMoveStopPropagation:!0,fadeEffect:{crossFade:!0},initialSlide:this.opts.initSlide},slideChange:()=>{const e=this.storySwiper.instance.realIndex,i=this.storySlide[e].querySelector(this.opts.videoElement);this.select(e),i&&(i.classList.contains(this.classes.loaded)?t.isLowNetwork()||this.videoPlayer.play(i):this.videoPlayer.load(i)),this.storySlide.forEach(((t,i)=>{i!==e&&(i=t.querySelector(this.opts.videoElement))&&this.videoPlayer.reset(i)}))},slideChangeTransitionStart:()=>{if(null!==this.storySwiper.instance){const e=Array.from(this.storySwiper.instance.slides);var t=this.storySwiper.instance.realIndex;this.storySlide[t],e.forEach(((t,e)=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),t.querySelector(this.opts.storyItemCta).setAttribute("aria-hidden","true"),t.querySelector(this.opts.storyItemCta).setAttribute("tabindex","-1"),t.querySelector(this.opts.storyItemController)&&(t.querySelector(this.opts.storyItemController).setAttribute("aria-hidden","true"),t.querySelector(this.opts.storyItemController).setAttribute("tabindex","-1")),t.classList.contains("swiper-slide-active")&&(t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex"),t.querySelector(this.opts.storyItemCta).setAttribute("aria-hidden","false"),t.querySelector(this.opts.storyItemCta).removeAttribute("tabindex"),t.querySelector(this.opts.storyItemController)&&(t.querySelector(this.opts.storyItemController).setAttribute("aria-hidden","false"),t.querySelector(this.opts.storyItemController).removeAttribute("tabindex")))}))}},destroy:()=>{null!==this.storySwiper.instance&&(this.storySwiper.instance.destroy(),this.storySwiper.instance=null)},build:()=>{null===this.storySwiper.instance&&(this.storySwiper.options.on={slideChange:this.storySwiper.slideChange.bind(this),slideChangeTransitionStart:this.storySwiper.slideChangeTransitionStart.bind(this)},this.storySwiper.options.initialSlide=this.opts.initSlide,this.storySwiper.instance=new Swiper(this.opts.storyEl,this.storySwiper.options),this.storySwiper.slideChangeTransitionStart())}}}buildLayer(){this.layer={instance:null,build:()=>{null===this.layer.instance&&(this.layer.instance=new HiveLayer(this.opts.layerEl,{effect:"default",on:{layerOpenBefore:()=>{this.updateImageLayout();var t=this.storySlide[this.opts.initSlide].querySelector(this.opts.videoElement);this.storySwiper.build(),this.select(this.opts.initSlide),t&&this.videoPlayer.load(t),this.featurePlayer.forEach((t=>{this.videoPlayer.reset(t)}))},layerOpenAfter:()=>{const t=this.storySlide[this.opts.initSlide];var e=t.querySelector(this.opts.storyItemController),i=t.querySelector(this.opts.storyItemCta);const s=e||i;window.setTimeout((()=>{s.focus()}),50)},layerCloseBefore:()=>{this.featureBtn.forEach((t=>{t.classList.contains(this.classes.isPaused)&&t.classList.remove(this.classes.isPaused)}))},layerCloseAfter:()=>{this.storySwiper.destroy(),this.initValues(),this.indicatorItem.forEach((t=>{t.classList.remove(this.classes.isActive),t.removeAttribute("title")})),this.storySlide.forEach((t=>{t=t.querySelector(this.opts.videoElement),this.videoPlayer.reset(t)}))}}}))}},this.layer.build()}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{};const t=TAB_S9.UTILS;t.RESPONSIVE,TAB_S9.Powerful=class{constructor(t=container,e){this.opts={el:t,targetContents:".wearable-tab-powerful__contents",targetItem:".wearable-tab-powerful__item",backItem:".wearable-tab-powerful__item--back",waterItem:".wearable-tab-powerful__item--water",frontItem:".wearable-tab-powerful__item--front",targetItemInner:".wearable-tab-powerful__item-inner",featureHide:"is-feature-hide"},this.el=document.querySelector(t),this.currDevice=!1,this.prevDevice=null,this.init()}init(){null===this.el||this.el.classList.contains(this.opts.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.targetContents=this.el.querySelector(this.opts.targetContents),this.targetItem=this.targetContents.querySelectorAll(this.opts.targetItem),this.backItem=this.targetContents.querySelector(this.opts.backItem),this.frontItem=this.targetContents.querySelector(this.opts.frontItem),this.backInner=this.backItem.querySelector(this.opts.targetItemInner),null!==this.targetContents.querySelector(this.opts.waterItem)&&(this.waterItem=this.targetContents.querySelector(this.opts.waterItem),this.waterInner=this.waterItem.querySelector(this.opts.targetItemInner)),this.frontInner=this.frontItem.querySelector(this.opts.targetItemInner)}bindEvents(){window.addEventListener("load",this.onLoadHandler.bind(this)),window.addEventListener("resize",this.onResizeHandler.bind(this)),window.addEventListener("scroll",this.onScrollHandler.bind(this))}onLoadHandler(){this.onResizeHandler(),window.removeEventListener("load",this.onLoadHandler.bind(this))}onResizeHandler(){1024<=window.innerWidth?this.currDevice="desktop":768<=window.innerWidth&&window.innerWidth<1024?this.currDevice="tablet":this.currDevice="mobile",this.currDevice!=this.prevDevice&&(this.onResponsiveChange(),this.prevDevice=this.currDevice)}onResponsiveChange(){}onScrollHandler(){t.customParallax({wrapperElement:this.el,activeElement:this.backInner,distance:3,direction:-5}),null!==this.targetContents.querySelector(this.opts.waterItem)&&t.customParallax({wrapperElement:this.el,activeElement:this.waterInner,distance:4}),t.customParallax({wrapperElement:this.el,activeElement:this.frontInner,distance:5,direction:3})}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{},TAB_S9.UTILS.RESPONSIVE,TAB_S9.SamsungNote=class{constructor(t=container,e){this.opts={el:t,videoElement:".video__container",videoControllerTagging:{"samsung-note":{play:"gtabs9:highlights:samsung-note:movi-play:samsung-note-video",pause:"gtabs9:highlights:samsung-note:movi-pause:samsung-note-video"}},featureHide:"is-feature-hide"},this.el=document.querySelector(t),this.init()}init(){null===this.el||this.el.classList.contains(this.opts.featureHide)||(this.setElements(),this.buildVideoPlayer())}setElements(){this.videoElement=this.el.querySelector(this.opts.videoElement)}buildVideoPlayer(){this.videoPlayer={instance:null,build:()=>{null===this.videoPlayer.instance&&(this.videoPlayer.instance=new TAB_S9.VideoPlayer(this.videoElement,{sectionElement:this.opts.el,on:{updateController:t=>{const e=t.el;var i=e.dataset.tagging,s=(t=t.playState?"pause":"play",this.opts.videoControllerTagging);e.setAttribute("data-omni",s[i][t]),e.setAttribute("an-la",s[i][t])}}}))}},this.videoPlayer.build()}}}(),function(){"use strict";window.TAB_S9=window.TAB_S9||{};const t=TAB_S9.UTILS,e=t.RESPONSIVE;TAB_S9.Size=class{constructor(t=container,e){var i={el:t,tabEl:".wearable-tab-size__tab",tabList:".wearable-tab-size__tab-list",tabButtons:".wearable-tab-size__tab-cta",tabPanel:".wearable-tab-size__tab-panels",tabPanels:".wearable-tab-size__tab-panel",videoElement:".video__container",classes:{isActive:"is-active"},videoControllerTagging:{sizeGraphite:{play:"gtabs9:highlights:size-and-colors:movi-play:size-and-colors-video",pause:"gtabs9:highlights:size-and-colors:movi-pause:size-and-colors-video"},sizeBeige:{play:"gtabs9:highlights:size-and-colors:movi-play:size-and-colors-video",pause:"gtabs9:highlights:size-and-colors:movi-pause:size-and-colors-video"}},featureHide:"is-feature-hide",resizeStart:null};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.initOpts(),this.buildVideoPlayer(),this.bindEvents())}setElements(){this.tabEl=this.el.querySelector(this.opts.tabEl),this.tabList=this.tabEl.querySelector(this.opts.tabList),this.tabButtons=t.convertArray(this.tabList.querySelectorAll(this.opts.tabButtons)),this.tabPanel=this.el.querySelector(this.opts.tabPanel),this.tabPanels=t.convertArray(this.tabPanel.querySelectorAll(this.opts.tabPanels)),this.videoElement=this.el.querySelectorAll(this.opts.videoElement)}initOpts(){this.currentIndex=0,this.currentDevice=!1,this.prevDevice=null}initLayout(){this.tabButtons.forEach((function(e,i){const s=this.tabPanels[i];this.currentIndex==i?(e.classList.contains(this.classes.isActive)||e.classList.add(this.classes.isActive),s.classList.contains(this.classes.isActive)||s.classList.add(this.classes.isActive),e.setAttribute("aria-selected",!0),t.offAccessibility(s)):(e.classList.contains(this.classes.isActive)&&e.classList.remove(this.classes.isActive),s.classList.contains(this.classes.isActive)&&s.classList.remove(this.classes.isActive),e.setAttribute("aria-selected",!1),t.onAccessibility(s))}))}bindEvents(){window.addEventListener("resize",this.onResizeHandler.bind(this)),this.tabButtons.forEach((t=>{t.addEventListener("click",this.onClickTabButton.bind(this))}))}buildVideoPlayer(){this.videoPlayer={instance:[],play:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance.forEach((e=>{e.onPlay(t)}))},build:()=>{this.videoPlayer.instance.length||this.videoElement.forEach((t=>{this.videoPlayer.instance.push(new TAB_S9.VideoPlayer(t,{sectionElement:this.opts.el,visiblePoint:.5,on:{updateController:t=>{const e=t.el;var i=e.dataset.tagging,s=(t=t.playState?"pause":"play",this.opts.videoControllerTagging);e.setAttribute("data-omni",s[i][t]),e.setAttribute("an-la",s[i][t])}}}))}))}},this.videoPlayer.build()}onClickTabButton(e){e=e.currentTarget;const i=this.tabButtons.indexOf(e);i!=this.currentIndex&&(this.tabButtons.forEach(((e,s)=>{const a=this.tabPanels[s];i==s?(e.classList.contains(this.classes.isActive)||e.classList.add(this.classes.isActive),a.classList.contains(this.classes.isActive)||a.classList.add(this.classes.isActive),e.setAttribute("aria-selected",!0),t.offAccessibility(a),s=a.querySelector(this.opts.videoElement),t.isLowNetwork()||this.videoPlayer.play(s)):(e.classList.contains(this.classes.isActive)&&e.classList.remove(this.classes.isActive),a.classList.contains(this.classes.isActive)&&a.classList.remove(this.classes.isActive),e.setAttribute("aria-selected",!1),t.onAccessibility(a))})),this.currentIndex=i)}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)}onResponsiveChange(){}setLayout(){this.winWidth>=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{t.classList.contains(this.classes.isActive)?this.opts.a11y?t.setAttribute("aria-selected",!0):t.setAttribute("title","selected"):this.opts.a11y?t.setAttribute("aria-selected",!1):t.removeAttribute("title")}))}bindEvents(){window.addEventListener("resize",this.onResizeHandler.bind(this)),this.tabButtons.forEach((t=>{t.addEventListener("click",this.onClickTabButton.bind(this))}))}unBindEvents(){window.removeEventListener("resize",this.onResizeHandler.bind(this)),this.tabButtons.forEach((t=>{t.removeEventListener("click",this.onClickTabButton.bind(this))}))}onClickTabButton(e){e=e.currentTarget;const i=this.tabButtons.indexOf(e);i!=this.currentIndex&&(this.tabButtons.forEach(((e,s)=>{const a=this.tabPanels[s];i==s?(e.classList.contains(this.classes.isActive)||e.classList.add(this.classes.isActive),a.classList.contains(this.classes.isActive)||a.classList.add(this.classes.isActive),this.opts.a11y?e.setAttribute("aria-selected",!0):e.setAttribute("title","selected"),t.offAccessibility(a)):(e.classList.contains(this.classes.isActive)&&e.classList.remove(this.classes.isActive),a.classList.contains(this.classes.isActive)&&a.classList.remove(this.classes.isActive),this.opts.a11y?e.setAttribute("aria-selected",!1):e.removeAttribute("title"),t.onAccessibility(a))})),this.currentIndex=i,this.outCallback("updateIndex",this.currentIndex))}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)}onResponsiveChange(){}setLayout(){this.winWidth>=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{this.imageLoader.setResponsiveImage(t)}}}),this.contrast=new TAB_S9.Contrast(this.opts.contrastEl),window.addEventListener("load",(()=>{setTimeout((()=>{window.GALAXY&&window.GALAXY.isGalaxy&&(this.subNav=new TAB_S9.SubNav(this.opts.subNavEl))}),5)}))}}(".wearable-tab")}(),window.flagship=window.flagship||{},window.flagship.highlights=window.flagship.highlights||{},window.flagship.highlights.ai=function(){const t=window.TAB_S9.UTILS;let e={},i={},s={prevIndex:0,isAuto:!0};const a=function(){e.section=document.querySelector(".highlights-ai"),e.section&&(n(),h.setScene(),o())},n=function(){e.carouselWrap=e.section.querySelector(".js-carousel-wrap"),e.yotubeCta=e.section.querySelectorAll(".js-youtube-popup"),e.swiperContainer=e.section.querySelector(".swiper-container"),e.nextArrow=e.section.querySelector(".swiper-button-next"),e.prevArrow=e.section.querySelector(".swiper-button-prev"),e.pagination=e.section.querySelector(".swiper-pagination"),e.videoWrap=e.section.querySelectorAll(".common-video"),e.videoControlCta=Array.prototype.slice.call(e.section.querySelectorAll(".common-video__control"))},o=function(){l.load(),l.click()},l={load:function(){window.addEventListener("DOMContentLoaded",h.onLoad,{once:!0})},scroll:function(){window.addEventListener("scroll",h.scroll)},click:function(){e.nextArrow.addEventListener("click",h.setArrowFocus),e.nextArrow.addEventListener("keydown",h.setArrowFocus),e.prevArrow.addEventListener("click",h.setArrowFocus),e.prevArrow.addEventListener("keydown",h.setArrowFocus);for(let t=0;t'}}}))},init:function(){let t=this.el.querySelector(".swiper-notification");this.el.removeChild(t),e.nextArrow.removeAttribute("aria-label"),e.nextArrow.removeAttribute("role"),e.prevArrow.removeAttribute("aria-label"),e.prevArrow.removeAttribute("role"),i.swiper.on("slideChange",h.swiper.slideChange),i.swiper.on("transitionEnd",h.swiper.transitionEnd),i.swiper.on("touchMove",h.swiper.touchMove),i.swiper.on("touchEnd",h.swiper.touchEnd),e.bullets=i.swiper.pagination.bullets;for(let t=0;t-1?25:35,reversePoint:s.currentDevice.indexOf("mobile")>-1?65:75,resetCallback:function(){this.wrap.classList.contains("is-completed")&&this.wrap.classList.remove("is-completed")},playCallback:function(){d.controlTagging.play(i[`video_${t}`].wrap.control)},pauseCallback:function(){d.controlTagging.pause(i[`video_${t}`].wrap.control)},endCallback:function(){this.wrap.classList.contains("is-completed")||this.wrap.classList.add("is-completed"),s.isAuto&&!s.isLast&&setTimeout((()=>{i.swiper.slideNext(500)}),300)}})},setScene:function(){i.scene=r({trackElement:e.carouselWrap,useFixed:!1})},onLoad:function(){s.currentDevice=this.currentDevice,t.isLowNetwork()&&(s.isAuto=!1),h.swiper.set(),i.swiper.on("init",h.swiper.init),i.swiper.init()},onResize:function(t){s.currentDevice=t},scroll:function(){i.scene.trackAnimation((function(){s.isAuto&&i[`video_${i.swiper.activeIndex}`].scrollActive(this.progress)}))},lazyLoad:function(t){videoLoader.setResponsiveMedia([t.querySelector("video")],(function(t){t.videoHandler.wrap.classList.add("is-loaded")||t.videoHandler.wrap.classList.add("is-loaded")}));let e=t.querySelectorAll("img");imageLoader.setResponsiveMedia(e)},setVideoStatus:function(){let a=e.videoControlCta.indexOf(this);i[`video_${a}`].video.paused?(i[`video_${a}`].video.play(),t.isLowNetwork()||(s.isAuto=!0)):(i[`video_${a}`].video.pause(),t.isLowNetwork()||(s.isAuto=!1))},setArrowFocus:function(t){s.arrowFocusTimeout=null,("keydown"==t.type&&13==t.keyCode||"click"==t.type)&&(t.preventDefault(),clearTimeout(s.arrowFocusTimeout),s.arrowFocusTimeout=setTimeout((()=>{i.swiper.isBeginning&&!i.swiper.isEnd?e.nextArrow.focus():!i.swiper.isBeginning&&i.swiper.isEnd&&e.prevArrow.focus()}),300))},pauseVideo:function(){i[`video_${i.swiper.activeIndex}`].video.paused||(i[`video_${i.swiper.activeIndex}`].video.pause(),t.isLowNetwork()||(s.isAuto=!1))}},d={slide:function(){for(let e=0;e