/* npm.im/object-fit-images 3.2.4 */ 'use strict';var aniGlobal=aniGlobal||{}; (function(){(function(a){var d=void 0===a.firstLoad;a.firstLoad=!1;return d})(aniGlobal)&&(aniGlobal.objectFitImages=function(){function a(b){if(b.srcset&&!p&&window.picturefill){var g=window.picturefill._;b[g.ns]&&b[g.ns].evaled||g.fillImg(b,{reselect:!0});b[g.ns].curSrc||(b[g.ns].supported=!1,g.fillImg(b,{reselect:!0}));b.currentSrc=b[g.ns].curSrc||b.src}}function d(b){for(var g=getComputedStyle(b).fontFamily,l={};null!==(b=r.exec(g));)l[b[1]]=b[2];return l}function c(b,g,l){g="data:image/svg+xml,%3Csvg xmlns\x3d'http://www.w3.org/2000/svg' width\x3d'"+ (g||1)+"' height\x3d'"+(l||0)+"'%3E%3C/svg%3E";w.call(b,"src")!==g&&u.call(b,"src",g)}function e(b,g){b.naturalWidth?g(b):setTimeout(e,100,b,g)}function m(b){var g=d(b),l=b[k];if(g["object-fit"]=g["object-fit"]||"fill",!l.img)if("fill"===g["object-fit"]||!l.skipTest&&q&&!g["object-position"])return;if(!l.img){l.img=new Image(b.width,b.height);l.img.srcset=w.call(b,"data-ofi-srcset")||b.srcset;l.img.src=w.call(b,"data-ofi-src")||b.src;u.call(b,"data-ofi-src",b.src);b.srcset&&u.call(b,"data-ofi-srcset", b.srcset);c(b,b.naturalWidth||b.width,b.naturalHeight||b.height);b.srcset&&(b.srcset="");try{h(b)}catch(t){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}a(l.img);b.style.backgroundImage='url("'+(l.img.currentSrc||l.img.src||"").toString().replace(/"/g,'\\"')+'")';b.style.backgroundPosition=g["object-position"]||"center";b.style.backgroundRepeat="no-repeat";b.style.backgroundOrigin="content-box";/scale-down/.test(g["object-fit"])?e(l.img,function(){l.img.naturalWidth>b.width||l.img.naturalHeight> b.height?b.style.backgroundSize="contain":b.style.backgroundSize="auto"}):b.style.backgroundSize=g["object-fit"].replace("none","auto").replace("fill","100% 100%");e(l.img,function(t){c(b,t.naturalWidth,t.naturalHeight)})}function h(b){var g={get:function(l){return b[k].img[l?l:"src"]},set:function(l,t){return b[k].img[t?t:"src"]=l,u.call(b,"data-ofi-"+t,l),m(b),l}};Object.defineProperty(b,"src",g);Object.defineProperty(b,"currentSrc",{get:function(){return g.get("currentSrc")}});Object.defineProperty(b, "srcset",{get:function(){return g.get("srcset")},set:function(l){return g.set(l,"srcset")}})}function f(b,g){var l=!x&&!b;if(g=g||{},b=b||"img",v&&!g.skipTest||!y)return!1;"img"===b?b=document.getElementsByTagName("img"):"string"==typeof b?b=document.querySelectorAll(b):"length"in b||(b=[b]);for(var t=0;ta.top&&a.bottom>window.innerHeight)return!0},checkElementInView:function(a){a= a.getBoundingClientRect();return 0<=a.top&&0<=a.left&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)},checkPanelInView:function(a,d){a=document.querySelector(".".concat(a)).getBoundingClientRect();void 0===d&&(d=1);return 0>a.top?!0:0<=a.top&&0<=a.left&&a.bottom-a.height*d<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)}}}(),aniGlobal.utility= function(){return{debounce:function(a,d,c){var e;return function(){var m=this,h=arguments,f=c&&!e;clearTimeout(e);e=setTimeout(function(){e=null;c||a.apply(m,h)},d);f&&a.apply(m,h)}}}}(),aniGlobal.lineAnimation=function(){return{langSupported:function(){var a=document.querySelector("html").getAttribute("lang");return"ja-jp"==a||"zh-hk"==a||"zh-cn"==a||"zh-tw"==a?!1:!0},lineBreakText:function(a){for(var d=a.length,c=0;cm&&(f.innerHTML=f.innerHTML.slice(0,f.innerHTML.length-r.length),f=document.createElement(a[c].tagName),f.style.margin="0",f.style.padding="0",f.classList.add("animate-text"),a[c].classList.contains("currently-focused")&&f.classList.add("currently-focused"),h.appendChild(f),f.innerHTML+=r)}a[c].parentElement.removeChild(a[c])}},revertLineBreakText:function(a){for(var d=0;d>>0,e=Array(c),m=0,h=-1;if(void 0===d)for(;++h!==c;){if(h in this){var f=this[h];a(this[h],h,this)&&(e[m++]=f)}}else for(;++h!==c;)h in this&&(f=this[h],a.call(d,this[h],h,this)&&(e[m++]=f));e.length=m;return e}); Array.from||(Array.from=function(){var a=Object.prototype.toString,d=function(e){return"function"===typeof e||"[object Function]"===a.call(e)},c=Math.pow(2,53)-1;return function(e){var m=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var h=1this.length?!1:-1!==this.indexOf(a,d)});var aniCommon=aniCommon||{};"use strict"; (function(){if(function(d){var c=void 0===d.firstLoad;d.firstLoad=!1;return c}(aniCommon)){aniCommon.utility=function(){return{delayCall:function(d,c){var e;return function(){clearTimeout(e);e=setTimeout(d,c)}},reducedAnimation:function(d){aniCommon.isReducedAnimation=void 0===d?window.matchMedia("(prefers-reduced-motion)").matches:!d;!0===aniCommon.isReducedAnimation?$("body").addClass("animation-off").removeClass("animation-on"):$("body").addClass("animation-on").removeClass("animation-off");return aniCommon.isReducedAnimation}}}(); aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation();var a=window.matchMedia("(prefers-reduced-motion: reduce)");navigator.userAgent.match(/Trident\/7.0/)?a.addListener("change",function(){aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation(aniCommon.pageAniToggleValue)}):a.addEventListener("change",function(){aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation(aniCommon.pageAniToggleValue)})}})();var aniScroll=aniScroll||{};"use strict"; (function(){function a(){setTimeout(function(){n={};$("[data-s-wdg]").addClass("s-wdgItem");$("[data-s-wdg*\x3d'#']").parents(".wdg-lifestyle-video").hasClass("card-style")||($("[data-s-wdg*\x3d'#']").addClass("fadehiddenOffscreen"),$("body").append("\x3cstyle\x3e.fadehiddenOffscreen {opacity:0;}\x3c/style\x3e"));q=Array.prototype.slice.call(document.querySelectorAll(".s-wdgItem"));var p=1,w=new window.IntersectionObserver(function(u,x){u.forEach(function(b){if(b.isIntersecting){if(!$(b.target).attr("data-s-wdg-toreset")&& $(b.target).hasClass("animate-position")){$(b.target).attr("data-s-wdg-toreset",p);n[p]={};var g=$(b.target).offset().top,l=g+$(b.target).height(),t=getComputedStyle($(b.target)[0]).transform;"none"===t?k=t=0:(t=parseFloat(getComputedStyle($(b.target)[0]).transform.split(",")[5]),k=parseFloat(getComputedStyle($(b.target)[0]).transform.split(",")[4]));var z=parseInt($(b.target).attr("data-s-wdg"));z=$(window).height()*(-1*z/100)+t;n[p].top=g;n[p].bottom=l;n[p].originaltransform=t;n[p].originalleft= k;n[p].belowadjust=z;p++}-1r&&-100n[p].bottom&&$(this).css("transform","translate3d("+n[p].originalleft+"px,"+n[p].belowadjust+"px,0)")}$(this).removeClass("s-wdgToReset"); $(this).removeClass("is-scrollTop");$(this).removeClass("is-scrollDown");$(this).removeClass("Aniscroll")}})}if(function(p){var w=void 0===p.firstLoad;p.firstLoad=!1;return w}(aniScroll)){var e,m,h,f,k,r,n,q;var v=void 0;v=0;var y=void 0;y=0;$(window).on("load scroll",function(){d()});$(document).on("keyup",function(p){d()});window.addEventListener("resize",aniCommon.utility.delayCall(function(){$(".s-wdgItem").removeAttr("style");$(".s-wdgItem").removeClass("s-wdgItem");$(".fadehiddenOffscreen").removeClass("fadehiddenOffscreen"); $(".s-wdgActive").removeClass("s-wdgActive");$(".s-wdgToReset").removeClass("s-wdgToReset");$("[data-s-wdg-toreset]").removeAttr("data-s-wdg-toreset");n={};a()},500));a()}})();"use strict";var tabletView=window.matchMedia("(max-width: 1083px)"),desktopView=window.matchMedia("(min-width: 1084px) and (max-width: 2576px)");const toggleActionBtn=document.querySelector(".appsshowcase .gaming-playpause .c-action-toggle");var sliding=!1,timerinterval,autoPlay=!1,isRtl=!1;"rtl"===document.dir&&(isRtl=!0); isRtl?($(".gaming-next").click(function(){var a=$(this);moveitem(a,!1);setSildeappsshowcaseMessage(a,!1)}),$(".gaming-previous").click(function(){var a=$(this);moveitem(a,!0);setSildeappsshowcaseMessage(a,!0)})):($(".gaming-next").click(function(){var a=$(this);moveitem(a,!0);setSildeappsshowcaseMessage(a,!0)}),$(".gaming-previous").click(function(){var a=$(this);moveitem(a,!1);setSildeappsshowcaseMessage(a,!1)})); function setSildeappsshowcaseMessage(a,d){d=[];var c=a.parents(".appsshowcase");a=c.find(".appsshowcase-seq button").length;for(var e=0;e<=a;e++)d.push(c.find(".appsshowcase-seq").children("button").eq(e).attr("aria-selected"));c=c.find(".slider-carousel.appitempanel").find(".subcarousel-panel").attr("data-heading");document.getElementById("appsshowcase-status-msg").innerHTML="slide "+(d.indexOf("true")+1);document.getElementById("appsshowcase-status-msg").innerHTML+=" of "+a;document.getElementById("appsshowcase-status-msg").innerHTML+= ". "+c} setTimeout(function(){var a=$(".appsshowcase");a.find(".slider-carousel.appitempanel");var d=a.find(".slider-showcase .slider-carousel").first();a.find(".slider-showcase .slider-carousel").last().detach().insertBefore(d).css("marginLeft",-1*d.width());a=d.css("margin-left");desktopView.matches?a="0.2%":tabletView.matches&&(a="0.5%");d.animate({marginLeft:a},function(){sliding=!1});desktopView.matches?($(".slider-showcase .slider-carousel").css({marginLeft:"-0.1%"}),$(".slider-showcase .slider-carousel:nth-child(1)").css({marginLeft:"0px"}),$(".slider-showcase .slider-carousel.appitempanel").css({marginLeft:"0.2%"})): tabletView.matches?($(".slider-showcase .slider-carousel:nth-child(1)").css({marginLeft:"0px"}),$(".slider-showcase .slider-carousel:nth-child(2)").css({marginLeft:"0.5%"})):$(".slider-showcase .slider-carousel:nth-child(1)").css({marginLeft:"0px"})},100); $(".gaming-playpause .c-action-toggle").click(function(){var a=$(this);a.toggleClass("glyph-pause glyph-play");a.attr("aria-pressed","true"==a.attr("aria-pressed")?"false":"true");var d=a.parents(".appsshowcase").find(".gaming-next"),c=a.attr("data-playaria"),e=a.attr("data-pausearia");a.hasClass("glyph-play")?(a.attr("aria-label",c),a.attr("title",c),a.attr("data-bi-cN",c),a.attr("data-bi-ecn",c),a.attr("data-bi-bhvr","240")):(a.attr("aria-label",e),a.attr("title",e),a.attr("data-bi-cN",e),a.attr("data-bi-ecn", e),a.attr("data-bi-bhvr","241"));setTimeout(function(){a.hasClass("glyph-pause")?(autoPlay=!0,timerinterval=setInterval(function(){isRtl?moveitem(d,!1):moveitem(d,!0)},6E3)):(autoPlay=!1,clearInterval(timerinterval))},100)});$(".appsshowcase .gaming-playpause .c-action-toggle").on("focusin mouseenter",function(){$(".appsshowcase .gaming-playpause .c-tooltip").addClass("flipper-gaming-tooltip-show")});$(".appsshowcase .gaming-playpause .c-action-toggle").on("focusout mouseleave",function(){$(".appsshowcase .gaming-playpause .c-tooltip").removeClass("flipper-gaming-tooltip-show")}); function addFootnotesAppShowCase(){document.querySelectorAll(".appsshowcase sup").forEach(a=>{0==a.children.length&&a.insertAdjacentHTML("afterbegin",'\x3cspan class\x3d"sr-text"\x3eFootnote\x3c/span\x3e')})}addFootnotesAppShowCase(); function moveitem(a,d){var c=a.parents(".appsshowcase");setTimeout(function(){c.find(".panel-content").removeClass("animatedcontentbottom")},1E3);c.find(".panel-content").addClass("animatedcontentbottom");c.find(".panel-content").removeClass("animatedcontenttop");a=c.find(".appsshowcase-seq.c-sequence-indicator").find(".f-active");var e=c.find(".slider-carousel.appitempanel"),m=e.find(".slide-gif-image.hasgifimage img"),h=m.attr("src");m.attr("src",h);if(!sliding){sliding=!0;var f=c.find(".slider-showcase .slider-carousel").first(), k=c.find(".slider-showcase .slider-carousel").last(),r=f.css("margin-left");if(d){$(".slider-showcase .slider-carousel:nth-child(2)").css({marginLeft:"0px"});var n=e.next().find(".app-logo").find("img").attr("src");var q=e.next().find(".app-logo").find("img").attr("alt");var v=e.next().find(".subcarousel-panel").attr("data-heading");var y=e.next().find(".subcarousel-panel").attr("data-paragraph");f.animate({marginLeft:-1*f.outerWidth(!0)},"slow",function(){f.detach().insertAfter(k).css("marginLeft", r);sliding=!1});a.next().addClass("f-active").attr("aria-selected","true");a.removeClass("f-active").attr("aria-selected","false");a.next().is(":last-child")?desktopView.matches?$(".slider-showcase").css({marginLeft:"0.2%"}):tabletView.matches?$(".slider-showcase").css({marginLeft:"0.5%"}):$(".slider-showcase").css({marginLeft:"0px"}):a.is(":last-child")&&c.find(".c-sequence-indicator button:first-child").attr("aria-selected","true").addClass("f-active");setTimeout(function(){c.find(".panel-content .logo img").attr("src", n);c.find(".panel-content .logo img").attr("alt",q);c.find(".panel-content .logo img").attr("title",q);c.find(".panel-content .logotext .app-logo-heading").html(v);c.find(".panel-content .logotext div.c-paragraph-2").html(y);c.find(".panel-content").addClass("animatedcontenttop")},1E3);e.next().addClass("appitempanel")}else $(".slider-showcase .slider-carousel:nth-child(2)").css({marginLeft:"0px"}),n=e.prev().find(".app-logo").find("img").attr("src"),q=e.prev().find(".app-logo").find("img").attr("alt"), v=e.prev().find(".subcarousel-panel").attr("data-heading"),y=e.prev().find(".subcarousel-panel").attr("data-paragraph"),k.detach().insertBefore(f).css("marginLeft",-1*f.width()),f=c.find(".slider-showcase .slider-carousel").first(),f.animate({marginLeft:r},function(){sliding=!1}),a.prev().addClass("f-active").attr("aria-selected","true"),a.removeClass("f-active").attr("aria-selected","false"),a.is(":first-child")?c.find(".c-sequence-indicator button:last-child").attr("aria-selected","true").addClass("f-active"): desktopView.matches?$(".slider-showcase").css({marginLeft:"0.2%"}):tabletView.matches?$(".slider-showcase").css({marginLeft:"0.5%"}):$(".slider-showcase").css({marginLeft:"0px"}),setTimeout(function(){c.find(".panel-content .logo img").attr("src",n);c.find(".panel-content .logo img").attr("alt",q);c.find(".panel-content .logo img").attr("title",q);c.find(".panel-content .logotext .app-logo-heading").html(v);c.find(".panel-content .logotext div.c-paragraph-2").html(y);c.find(".panel-content").addClass("animatedcontenttop")}, 1E3),e.prev().addClass("appitempanel");e.removeClass("appitempanel");c.find(".animatedcontenttop").addClass("x-hidden");d=c.find(".c-sequence-indicator button.f-active").index();a=parseInt(d)+1;c.find(".gaming-next").attr("data-bi-carpos",a);c.find(".gaming-previous").attr("data-bi-carpos",a);c.find(".view-autoplay-action").attr("data-bi-carpos",a);d=c.find('.animatedcontenttop[data-index\x3d"'+d+'"]');0Math.abs(appsshowcasey-appsshowcasey1))return e=e.find(".gaming-next"),moveitem(e,!0),"left";if(appsshowcasex-appsshowcasex1>Math.abs(appsshowcasey-appsshowcasey1))return e=e.find(".gaming-previous"),moveitem(e,!1),"right"} THRESHOLD=15;appsshowcasex=appsshowcasey=appsshowcasex1=appsshowcasey1=0;recordedTime=(new Date).getTime();for(var d=document.getElementsByClassName("slider-showcase"),c=0;c