/* npm.im/object-fit-images 3.2.4 */ 'use strict';var aniGlobal=aniGlobal||{};"use strict"; (function(){(function(e){var k=void 0===e.firstLoad;e.firstLoad=!1;return k})(aniGlobal)&&(aniGlobal.objectFitImages=function(){function e(a){if(a.srcset&&!E&&window.picturefill){var c=window.picturefill._;a[c.ns]&&a[c.ns].evaled||c.fillImg(a,{reselect:!0});a[c.ns].curSrc||(a[c.ns].supported=!1,c.fillImg(a,{reselect:!0}));a.currentSrc=a[c.ns].curSrc||a.src}}function k(a){for(var c=getComputedStyle(a).fontFamily,d={};null!==(a=w.exec(c));)d[a[1]]=a[2];return d}function f(a,c,d){c="data:image/svg+xml,%3Csvg xmlns\x3d'http://www.w3.org/2000/svg' width\x3d'"+ (c||1)+"' height\x3d'"+(d||0)+"'%3E%3C/svg%3E";z.call(a,"src")!==c&&x.call(a,"src",c)}function q(a,c){a.naturalWidth?c(a):setTimeout(q,100,a,c)}function u(a){var c=k(a),d=a[m];if(c["object-fit"]=c["object-fit"]||"fill",!d.img)if("fill"===c["object-fit"]||!d.skipTest&&r&&!c["object-position"])return;if(!d.img){d.img=new Image(a.width,a.height);d.img.srcset=z.call(a,"data-ofi-srcset")||a.srcset;d.img.src=z.call(a,"data-ofi-src")||a.src;x.call(a,"data-ofi-src",a.src);a.srcset&&x.call(a,"data-ofi-srcset", a.srcset);f(a,a.naturalWidth||a.width,a.naturalHeight||a.height);a.srcset&&(a.srcset="");try{n(a)}catch(g){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}e(d.img);a.style.backgroundImage='url("'+(d.img.currentSrc||d.img.src).replace(/"/g,'\\"')+'")';a.style.backgroundPosition=c["object-position"]||"center";a.style.backgroundRepeat="no-repeat";a.style.backgroundOrigin="content-box";/scale-down/.test(c["object-fit"])?q(d.img,function(){d.img.naturalWidth>a.width||d.img.naturalHeight> a.height?a.style.backgroundSize="contain":a.style.backgroundSize="auto"}):a.style.backgroundSize=c["object-fit"].replace("none","auto").replace("fill","100% 100%");q(d.img,function(g){f(a,g.naturalWidth,g.naturalHeight)})}function n(a){var c={get:function(d){return a[m].img[d?d:"src"]},set:function(d,g){return a[m].img[g?g:"src"]=d,x.call(a,"data-ofi-"+g,d),u(a),d}};Object.defineProperty(a,"src",c);Object.defineProperty(a,"currentSrc",{get:function(){return c.get("currentSrc")}});Object.defineProperty(a, "srcset",{get:function(){return c.get("srcset")},set:function(d){return c.set(d,"srcset")}})}function h(a,c){var d=!b&&!a;if(c=c||{},a=a||"img",B&&!c.skipTest||!C)return!1;"img"===a?a=document.getElementsByTagName("img"):"string"==typeof a?a=document.querySelectorAll(a):"length"in a||(a=[a]);for(var g=0;ge.top&&e.bottom>window.innerHeight)return!0},checkElementInView:function(e){e= e.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},checkPanelInView:function(e,k){e=document.querySelector(".".concat(e)).getBoundingClientRect();void 0===k&&(k=1);return 0>e.top?!0:0<=e.top&&0<=e.left&&e.bottom-e.height*k<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}}}(),aniGlobal.utility= function(){return{debounce:function(e,k,f){var q;return function(){var u=this,n=arguments,h=f&&!q;clearTimeout(q);q=setTimeout(function(){q=null;f||e.apply(u,n)},k);h&&e.apply(u,n)}}}}(),aniGlobal.lineAnimation=function(){return{langSupported:function(){var e=document.querySelector("html").getAttribute("lang");return"ja-jp"==e||"zh-hk"==e||"zh-cn"==e||"zh-tw"==e?!1:!0},lineBreakText:function(e){for(var k=e.length,f=0;fu&&(h.innerHTML=h.innerHTML.slice(0,h.innerHTML.length-w.length),h=document.createElement(e[f].tagName),h.style.margin="0",h.style.padding="0",h.classList.add("animate-text"),e[f].classList.contains("currently-focused")&&h.classList.add("currently-focused"),n.appendChild(h),h.innerHTML+=w)}e[f].parentElement.removeChild(e[f])}},revertLineBreakText:function(e){for(var k=0;k{aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation()}))})(); $(document).ready(function(){function e(b){if(b.find(".c-carousel .c-group")){var a=b.find(".c-carousel ul li")[0].scrollWidth,c=b.find(".c-carousel .c-group")[0].scrollWidth,d=b.find(".c-carousel")[0].scrollWidth,g=Math.floor(d/a),l=1l?(p-=l,v-=l):(p-=v,b.find(".c-flipper.f-next").css("display","none"),b.find(".c-carousel").removeClass("f-scrollable-next"),v=0);b.find(".c-flipper.f-previous").css("display","block");f?b.find(".c-carousel ul.c-group").css("margin-right",p+"px"):b.find(".c-carousel ul.c-group").css("margin-left",p+"px")});b.find(".c-flipper.f-previous").on("click",function(){$(this).parents(".surface-FamilyDevices").removeClass("scrollablePrevious");0>l+p?(p+=l,v+=l,b.find(".c-carousel").addClass("f-scrollable-next"), b.find(".c-flipper.f-next").css("display","block"),f?b.find(".c-carousel ul.c-group").css("margin-right",p+"px"):b.find(".c-carousel ul.c-group").css("margin-left",p+"px")):(p=0,b.find(".c-flipper.f-previous").css("display","none"),b.find(".c-flipper.f-next").css("display","block"),b.find(".c-carousel").addClass("f-scrollable-next"),f?b.find(".c-carousel ul.c-group").css("margin-right","0px"):b.find(".c-carousel ul.c-group").css("margin-left","0px"),b.find(".c-carousel").removeClass("f-scrollable-previous"), a=b.find(".c-carousel ul li")[0].scrollWidth,c=b.find(".c-carousel .c-group")[0].scrollWidth,1083<$(window).width()&&(c*=1.08),d=b.find(".c-carousel")[0].scrollWidth,g=Math.floor(d/a),v=c-d,l=1y?D[y]:D[0];b.find(".device-family-maindiv .c-sequence-indicator button").attr("aria-selected",!1);y.setAttribute("aria-selected",!0);n(this);$(this).parents(".surface-FamilyDevices").removeClass("scrollablePrevious");y=$(this).parents(".surface-FamilyDevices");u(y)}});b.find(".c-flipper.f-previousbtn").click(function(){$(this).parents(".surface-FamilyDevices").removeClass("scrollablePrevious");A=0;if(k.matches){var y=b.find(".device-family-maindiv .c-sequence-indicator button[aria-selected\x3d'true']")[0].getAttribute("btn-count"), D=b.find(".device-family-maindiv .c-sequence-indicator button"),F=D.length;y=1=c&&(c=d,a=$(this))});return a}console.log("error:please give appropriate parameters")}}catch(d){}};var q=function(b){var a=b.find(".device-family-maindiv .c-group .m-channel-placement-item .c-badge");a.css("height","");var c=b.find(".device-family-maindiv .c-group .m-channel-placement-item .c-heading-4");c.css("height","");var d=b.find(".device-family-maindiv .c-group .m-channel-placement-item .c-channel-placement-description .c-paragraph-2"); d.css("height","");if(1==b.find(".device-family-maindiv .c-group .m-channel-placement-item .c-badge").is(":visible")&&null!==a.maxHeight()&&void 0!==a.maxHeight()&&""!==a.maxHeight()){var g=a.maxHeight().outerHeight(!0);a.css("height",g)}null!==c.maxHeight()&&void 0!==c.maxHeight()&&""!==c.maxHeight()&&(a=c.maxHeight().outerHeight(!0),c.css("height",a));null!==d.maxHeight()&&void 0!==d.maxHeight()&&""!==d.maxHeight()&&(c=d.maxHeight().outerHeight(!0),d.css("height",c));d=b.find(".device-family-maindiv .c-group .c-list.FamilyDevices-specification-list"); d.css("height","auto");b.find(".device-family-maindiv .c-group .c-list.FamilyDevices-specification-list li").css("height","");b.find(".device-family-maindiv .c-group .c-list.FamilyDevices-specification-list").find("li").each(function(){var l=$(this).maxHeight().outerHeight(!0);$(this).css("height",l)});null!==d.maxHeight()&&void 0!==d.maxHeight()&&""!==d.maxHeight()&&(c=d.maxHeight().outerHeight(!0),d.css("height",c));k.matches?(d=b.find(".device-family-maindiv .c-group.f-active li .m-channel-placement-item.f-wide"), d.css("height",""),null!==d.maxHeight()&&void 0!==d.maxHeight()&&""!==d.maxHeight()&&(d=d.maxHeight().outerHeight(!0),b.find(".device-family-maindiv .c-group.f-active li .m-channel-placement-item.f-wide").css("height",d))):b.find(".device-family-maindiv .c-group.f-active li .m-channel-placement-item.f-wide").attr("style","")};$(".surface-FamilyDevices").each(function(b,a){b=$(a);q(b)});$(".content .tabs ul li a[role\x3d'tab'], .c-pivot a#pivot-tab-OverviewTab").click(function(){setTimeout(function(){q($(this).parent().find(".surface-FamilyDevices"))}, 200)});(function(){document.querySelectorAll(".surface-FamilyDevices sup").forEach(b=>{0==b.children.length&&b.insertAdjacentHTML("afterbegin",'\x3cspan class\x3d"sr-text"\x3eFootnote\x3c/span\x3e')})})();var u=function(b){var a=$(b).find(".c-sequence-indicator button[aria-selected\x3d'true']").attr("btn-count"),c=$(b).find(".c-flipper.f-nextbtn"),d=$(b).find(".c-flipper.f-previousbtn");b=$(b).find(".c-sequence-indicator button").length;1==a?(c.show(),d.hide()):a==b?(c.hide(),d.show()):1Math.abs(r-w)&&(B=parseInt($(g).find(".c-sequence-indicator button[aria-selected\x3d'true']").attr("btn-count")),B<$(g).find("ul.c-group li.tileslist").length&&(B++, l=B,E(g,l)));t-m>Math.abs(r-w)&&(C=$(g).find(".c-sequence-indicator button[aria-selected\x3d'true']").attr("btn-count"),C<=$(g).find("ul.c-group li.tileslist").length&&(C--,0!=C&&void 0!=C&&(l=C,E(g,l))))}}var a=15;t=r=m=w=0;for(var c=(new Date).getTime(),d=0;d{b.addEventListener("keyup", a=>{var c=$(b).parents(".surface-FamilyDevices");var d=c.find(".c-carousel ul li .family-device-content").css("padding-left").replace("px","");d=a.target.offsetParent.offsetLeft+Math.ceil(d);var g=c.find(".c-carousel .c-group")[0].scrollWidth,l=c.find(".c-carousel ul li")[0].scrollWidth,p=c.find(".c-carousel")[0].scrollWidth,v=Math.floor(p/l);v=1v&&(k.matches?c.find(".c-flipper.f-previousbtn").triggerHandler("click"):c.find(".c-flipper.f-previous").triggerHandler("click")): 9===a.keyCode&&0>d&&(k.matches?c.find(".c-flipper.f-nextbtn").triggerHandler("click"):c.find(".c-flipper.f-next").triggerHandler("click"));else{var A=c.find(".c-carousel ul.c-group").css("margin-left").replace("px","");A=parseInt(A);a.shiftKey&&9==a.keyCode?0==A&&0==x&&v-dd&&(c.find(".c-carousel ul.c-group").css("margin-left","0px"),e(c),z=0);10d)a.shiftKey&&9==a.keyCode?d=z- l:9===a.keyCode&&(d=z+l);else if(dd&&0>A&&(k.matches?c.find(".c-flipper.f-previousbtn").triggerHandler("click"):c.find(".c-flipper.f-previous").triggerHandler("click")):9===a.keyCode&&d>x&&(k.matches?c.find(".c-flipper.f-nextbtn").triggerHandler("click"):c.find("div.c-carousel").hasClass("f-scrollable-next")?c.find(".c-flipper.f-next").triggerHandler("click"): c.find(".c-flipper.f-next").css("display","none"),x+=v,x=x>g?g:x)}})})});