(function(){/** * @license almond 0.3.3 Copyright jQuery Foundation and other contributors. * Released under MIT license, http://github.com/requirejs/almond/LICENSE */ var requirejs,require,define,__extends;(function(n){function r(n,t){return w.call(n,t)}function s(n,t){var o,s,f,e,h,p,c,b,r,l,w,k,u=t&&t.split("/"),a=i.map,y=a&&a["*"]||{};if(n){for(n=n.split("/"),h=n.length-1,i.nodeIdCompat&&v.test(n[h])&&(n[h]=n[h].replace(v,"")),n[0].charAt(0)==="."&&u&&(k=u.slice(0,u.length-1),n=k.concat(n)),r=0;r0&&(n.splice(r-1,2),r-=2);n=n.join("/")}if((u||y)&&a){for(o=n.split("/"),r=o.length;r>0;r-=1){if(s=o.slice(0,r).join("/"),u)for(l=u.length;l>0;l-=1)if(f=a[u.slice(0,l).join("/")],f&&(f=f[s],f)){e=f;p=r;break}if(e)break;!c&&y&&y[s]&&(c=y[s],b=r)}!e&&c&&(e=c,p=b);e&&(o.splice(0,p,e),n=o.join("/"))}return n}function y(t,i){return function(){var r=b.call(arguments,0);return typeof r[0]!="string"&&r.length===1&&r.push(null),u.apply(n,r.concat([t,i]))}}function k(n){return function(t){return s(t,n)}}function d(n){return function(i){t[n]=i}}function h(i){if(r(e,i)){var u=e[i];delete e[i];l[i]=!0;o.apply(n,u)}if(!r(t,i)&&!r(l,i))throw new Error("No "+i);return t[i]}function a(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function p(n){return n?a(n):[]}function g(n){return function(){return i&&i.config&&i.config[n]||{}}}var o,u,c,f,t={},e={},i={},l={},w=Object.prototype.hasOwnProperty,b=[].slice,v=/\.js$/;c=function(n,t){var r,u=a(n),i=u[0],f=t[1];return n=u[1],i&&(i=s(i,f),r=h(i)),i?n=r&&r.normalize?r.normalize(n,k(f)):s(n,f):(n=s(n,f),u=a(n),i=u[0],n=u[1],i&&(r=h(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}};f={require:function(n){return y(n)},exports:function(n){var i=t[n];return typeof i!="undefined"?i:t[n]={}},module:function(n){return{id:n,uri:"",exports:t[n],config:g(n)}}};o=function(i,u,o,s){var b,a,g,k,v,nt,w=[],tt=typeof o,it;if(s=s||i,nt=p(s),tt==="undefined"||tt==="function"){for(u=!u.length&&o.length?["require","exports","module"]:u,v=0;v1)return i[1]},n.enumerateComponents=function(n,t){var i,r,u;if(n&&t){i=n.mwfInstances;for(r in i)if(i.hasOwnProperty(r)&&(u=i[r],u&&!t(r,u)))break}},n.detach=function(n,t){var i=n,r;i&&i.mwfInstances&&!u.isNullOrWhiteSpace(t)&&i.mwfInstances.hasOwnProperty(t)&&(r=i.mwfInstances[t],i.mwfInstances[t]=null,r&&r.detach&&r.detach())},n.typeNameRegEx=/function\s+(\S+)\s*\(/,n.onLoadTimeoutMs=6e3,n.onDeferredHappened=!1,n.deferredFunctions=[],n.onDomReadyHappened=!1,n.domReadyFunctions=[],n}();t.ComponentFactory=f,function(){i.onDeferred(function(){var n,t,r,u;if(f.onDeferredHappened=!0,n=f.deferredFunctions,!n||n.length>0)for(t=0,r=n;t0)for(t=0,r=n;t-1;)f=f.replace(o," ");r.className=i.trim(f)}}function ot(n,t){var i,r,u;if(t)for(i=0,r=t;i-1}function ct(n){return n?n.parentElement.removeChild(n):n}function lt(n,t){return h(n,t)}function at(n,t){var i=h(n,t);return!i||!i.length?null:i[0]}function h(n,t){var r,u;if(i.isNullOrWhiteSpace(n)||n==="#")return[];if(r=t||document,/^[\#.]?[\w-]+$/.test(n)){switch(n[0]){case".":return r.getElementsByClassName?o(r.getElementsByClassName(n.slice(1))):o(r.querySelectorAll(n));case"#":return u=r.querySelector(n),u?[u]:[]}return o(r.getElementsByTagName(n))}return o(r.querySelectorAll(n))}function vt(n,t){var i=h(n,t);return!i||!i.length?null:i[0]}function yt(n,t){var o=t||document,u,f,i,r,e;for(u=n.split(","),i=0,r=u;ii&&(t.scrollTop=Math.min(n.offsetTop-t.firstElementChild.offsetTop,r-i))}}function oi(n){return typeof n.complete!="undefined"&&typeof n.naturalHeight!="undefined"?n&&n.complete&&n.naturalHeight>0:!0}function si(n){return n&&typeof n.complete!="undefined"&&typeof n.naturalHeight!="undefined"?n&&n.complete&&n.naturalWidth==0&&n.naturalHeight==0:!1}function hi(n){var i=n.touches&&n.touches.length?n.touches:[n],t=n.changedTouches&&n.changedTouches[0]||i[0];return{x:t.clientX,y:t.clientY}}function ci(n,t){for(var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;n;){if(i.call(n,t))break;n=n.parentElement}return n}function li(n,t){t===void 0&&(t=!0);!!n&&(window.PointerEvent||window.navigator.pointerEnabled)&&f(n,"touchAction",t?"pan-y":"pan-x")}var l,s,r;Object.defineProperty(t,"__esModule",{value:!0}),function(n){n.requestAnimationFrame=window.requestAnimationFrame||function(n){typeof n=="function"&&window.setTimeout(n,16.7)}}(l=t.SafeBrowserApis||(t.SafeBrowserApis={})),function(n){n[n.right=0]="right";n[n.left=1]="left"}(s=t.Direction||(t.Direction={})),function(n){n[n.animationend=0]="animationend";n[n.blur=1]="blur";n[n.change=2]="change";n[n.click=3]="click";n[n.DOMContentLoaded=4]="DOMContentLoaded";n[n.DOMNodeInserted=5]="DOMNodeInserted";n[n.DOMNodeRemoved=6]="DOMNodeRemoved";n[n.ended=7]="ended";n[n.error=8]="error";n[n.focus=9]="focus";n[n.focusin=10]="focusin";n[n.focusout=11]="focusout";n[n.input=12]="input";n[n.load=13]="load";n[n.keydown=14]="keydown";n[n.keypress=15]="keypress";n[n.keyup=16]="keyup";n[n.loadedmetadata=17]="loadedmetadata";n[n.mousedown=18]="mousedown";n[n.mousemove=19]="mousemove";n[n.mouseout=20]="mouseout";n[n.mouseover=21]="mouseover";n[n.mouseup=22]="mouseup";n[n.onreadystatechange=23]="onreadystatechange";n[n.resize=24]="resize";n[n.scroll=25]="scroll";n[n.submit=26]="submit";n[n.timeupdate=27]="timeupdate";n[n.touchcancel=28]="touchcancel";n[n.touchend=29]="touchend";n[n.touchmove=30]="touchmove";n[n.touchstart=31]="touchstart";n[n.wheel=32]="wheel"}(r=t.eventTypes||(t.eventTypes={}));t.addEvent=e;t.addEvents=g;t.removeEvents=nt;t.preventDefault=tt;t.addThrottledEvent=it;t.addThrottledEvents=rt;t.addDebouncedEvent=ut;t.documentReady=ft;t.onDeferred=et;t.addClass=p;t.removeClass=w;t.removeClasses=ot;t.addClasses=st;t.addAttribute=ht;t.hasClass=b;t.removeElement=ct;t.selectElements=lt;t.selectFirstElement=at;t.selectElementsT=h;t.selectFirstElementT=vt;t.selectElementsFromSelectors=yt;t.nodeListToArray=o;t.getDirection=pt;t.getClientRect=a;t.getClientRectWithMargin=wt;t.css=f;t.removeEvent=c;t.isArray=k;t.toArray=u;t.isDescendant=bt;t.isDescendantOrSelf=kt;t.getText=dt;t.setText=gt;t.removeInnerHtml=ni;t.getEventTargetOrSrcElement=ti;t.getEvent=v;t.customEvent=ii;t.stopPropagation=ri;t.getScrollY=ui;t.getOffsetParent=fi;t.scrollElementIntoView=ei;t.isImageLoadedSuccessfully=oi;t.isImageLoadFailed=si;t.getCoordinates=hi;t.getParent=ci;t.preventDefaultSwipeAction=li});define("keycodes",["require","exports"],function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})});define("observableComponent",["require","exports","htmlExtensions"],function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(t,i){i===void 0&&(i=null);this.element=t;this.ignoreNextDOMChange=!1;this.observing=!1;n.shouldInitializeAsClass(t,i)&&this.setObserver()}return n.prototype.detach=function(){this.unObserve();this.teardown()},n.prototype.isObserving=function(){return this.observing},n.prototype.unObserve=function(){this.observing=!1;this.modernObserver&&this.modernObserver.disconnect();i.removeEvent(this.element,i.eventTypes.DOMNodeInserted,this.obsoleteNodeInsertedEventHander);i.removeEvent(this.element,i.eventTypes.DOMNodeRemoved,this.obsoleteNodeRemovedEventHandler)},n.prototype.setObserver=function(){this.observing=!0;typeof n.mutationObserver!="undefined"?this.observeModern():"MutationEvent"in window&&this.observeObsolete()},n.prototype.observeModern=function(){var t=this,i=function(n){t.onModernMutations(n)};this.modernObserver=new n.mutationObserver(i);this.modernObserver.observe(this.element,{childList:!0,subtree:!0})},n.prototype.onModernMutations=function(n){var r,u,f,e,i,o,t,s;if(this.ignoreNextDOMChange){this.ignoreNextDOMChange=!1;return}for(r=!1,u=!1,f=0,e=n;f0},t.prototype.initiatePublish=function(n){var t,i,r;if(this.hasSubscribers())for(t=0,i=this.subscribers;t=i.length)return n;var r=i[t];return typeof r!="number"&&!r?"":typeof r=="string"?r:r.toString()})}Object.defineProperty(t,"__esModule",{value:!0});t.isNullOrWhiteSpace=r;t.trim=i;t.startsWith=u;t.endsWith=f;t.getMatchLength=e;t.format=o});define("utility",["require","exports","stringExtensions"],function(n,t,i){"use strict";function r(n){return!isNaN(n)&&typeof n=="number"}function f(){return window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth}function h(){return window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight}function c(n){if(n!=null)return{width:n.clientWidth,height:n.clientHeight}}function l(n){var t;if((n=n||window.event,!n)||(t=n.key||n.keyIdentifier,!t))return t;switch(t){case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Up":return"ArrowUp";case"Down":return"ArrowDown";case"Esc":return"Escape";default:return t}}function a(n){return n=n||window.event,n==null?null:n.which||n.keyCode||n.charCode}function v(n,t,i,r,u){var o="",f,e;r&&(f=new Date,f.setTime(f.getTime()+r*864e5),o="; expires="+f.toUTCString());e="";u&&(e=";domain="+u);window.document.cookie=n+"="+encodeURIComponent(t)+o+("; path="+i+";")+e}function y(n){var t,i;if(!!n)for(t=0,i=document.cookie.split("; ");t=.5?2:1}return null}function w(n,t,i){return!i||!r(n)||!r(t)||!r(i.left)||!r(i.right)||!r(i.top)||!r(i.bottom)?!1:n>=i.left&&n<=i.right&&t>=i.top&&t<=i.bottom}function b(n){console&&console.warn?console.warn(n):console&&console.error&&console.error(n)}function k(n,t){if(t||!(o("item").toLowerCase().indexOf("perf_marker_global:true")<0)){ /*!/#IFDEF perf_marker_global || log_define_timing */ if(!i.isNullOrWhiteSpace(n)&&window.performance&&window.performance.mark){var r=n.split(" ").join("_");window.performance.mark(r);window.console&&window.console.timeStamp&&window.console.timeStamp(r); /*!/#ENDIF*/ }}}function d(n){if(i.isNullOrWhiteSpace(n)||!window.performance||!window.performance.mark)return 0;var r=n.split(" ").join("_"),t=window.performance.getEntriesByName(r);return t&&t.length?Math.round(t[t.length-1].startTime):0}function g(n,t){var f;if(!r(n))return"00:00";f=n<0;f&&(n*=-1);var u=Math.floor(n/3600),e=n%3600,o=Math.floor(e/60),i="";return i=t?u>0?u+":":"00:":u>0?u+":":"",n=Math.floor(e%60),i+=(o<10?"0":"")+o,i+=":"+(n===0?"00":(n<10?"0":"")+n),f?"-"+i:i}function nt(n){if(!JSON||!JSON.parse)throw new Error("JSON.parse unsupported.");if(!n)throw new Error("Invalid json.");return JSON.parse(n)}function u(){for(var e,t,o,n,f,i,r=[],c=0;c=n.allWidths[t]))return t;return n.allWidths.length}n.allWidths=[320,540,768,1084,1400,1779];n.vpMin=n.allWidths[0];n.vpMax=2048;n.getViewport=t})(st=t.Viewports||(t.Viewports={}))});__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();define("alert",["require","exports","publisher","htmlExtensions"],function(n,t,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(n){function t(t){var i=n.call(this,t)||this;return i.closeAlertAndRemoveEvent=function(){r.removeEvent(i.closeButton,r.eventTypes.click,i.closeAlertAndRemoveEvent);r.removeElement(i.element);i.initiatePublish()},i.update(),i}return __extends(t,n),t.prototype.update=function(){this.element&&(this.closeButton=r.selectFirstElement("button.c-action-trigger.glyph-cancel",this.element),!this.closeButton||r.addEvent(this.closeButton,r.eventTypes.click,this.closeAlertAndRemoveEvent,!1))},t.prototype.teardown=function(){r.removeEvent(this.closeButton,r.eventTypes.click,this.closeAlertAndRemoveEvent,!1)},t.prototype.publish=function(n){n.onAlertClosed()},t.selector=".m-alert",t.typeName="Alert",t}(i.Publisher);t.Alert=u});require(["alert","componentFactory"],function(n,t){t.ComponentFactory&&t.ComponentFactory.create&&t.ComponentFactory.create([{component:n.Alert}])});__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();define("autosuggest",["require","exports","publisher","htmlExtensions","stringExtensions","utility"],function(n,t,i,r,u,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=function(n){function t(i,e){var o,s;return e===void 0&&(e=null),o=n.call(this,i,f.isNumber(e)?{}:e)||this,o.hideNoResults=!1,o.suggestionClickListeners=[],o.publishInProgress=[],o.updateSuggestions=function(n){o.publishInProgress.length>0&&o.publishInProgress.pop();var t=o.reconstructMenu(n);o.show();t&&o.setFocusToInput();o.trackSuggestionUpdates(n)},o.trackSuggestionUpdates=function(n){var r,u,f,e,i,s,a;if(window.awa&&window.awa.ct&&typeof window.awa.ct.captureContentUpdate=="function"){for(r=[],u=0,r.push({cN:"Search_nav",srchq:o.cachedInputValue,id:"auto suggest",srchtype:"auto suggest"}),f=0,e=n;f'+o.highlight(n)+"<\/span>";r.addAttribute(i,t);o.ignoreNextDOMChange=!0;o.menu.appendChild(i)},o.buildProductSuggestionHtml=function(n,t){var e=!n.category?"":" - "+n.category,f=document.createElement("li"),i,s,h,c,l;f.setAttribute("class","c-menu-item");f.setAttribute("role","presentation");f.setAttribute("title",n.title+e);o.searchable(f,!1);i=document.createElement("a");i.setAttribute("role","option");i.setAttribute("aria-label",n.title+e+" - Link");i.setAttribute("class","f-product");i.setAttribute("href",n.targetUrl);r.addAttribute(i,t);s="";n.imageSrc&&(h="",c='class="c-image'+(n.isImageRound?" f-round":"")+'"',u.isNullOrWhiteSpace(n.backgroundColor)||n.backgroundColor.toLowerCase()==="transparent"||(h='style="background:'+n.backgroundColor+'"'),s="'+(n.title+e)+'');l=n.category?''+n.category+"<\/span>":"";i.innerHTML=s+"
"+o.highlight(n.title)+"<\/span>"+l+"<\/div>";f.appendChild(i);o.ignoreNextDOMChange=!0;o.menu.appendChild(f)},o.setFocusToInput=function(){o.input&&o.input.focus()},f.isNumber(e)?s=e:e&&(f.isNumber(e.scrollLimit)&&(s=e.scrollLimit),e.hideNoResults&&(o.hideNoResults=e.hideNoResults)),o.itemScrollCount=Math.max(t.minimumItemScrollCount,s||t.defaultItemScrollCount),o.update(),o}return __extends(t,n),t.prototype.update=function(){this.element&&(this.input=r.selectFirstElement("[aria-controls="+this.element.id+"]"),this.input)&&(this.menu=r.selectFirstElement(".c-menu",this.element),this.menu)&&(this.hideNoResults||(this.noResults=r.selectFirstElement(".f-auto-suggest-no-results",this.element),this.noResults&&(this.noResultsItem=r.selectFirstElement(".c-menu-item span",this.noResults)),this.noResultsItem&&(this.noResultsString=this.noResultsItem.textContent)),this.form=this.element.parentElement,this.form)&&(this.addMenuStateAnnouncement(),r.addEvent(this.input,r.eventTypes.keyup,this.handleInputKeyup,!0),r.addEvent(this.input,r.eventTypes.keydown,this.handleInputKeydown,!0),r.addEvent(this.input,r.eventTypes.click,this.handleInputClick,!0),this.reconstructMenu(null,!0))},t.prototype.teardown=function(){r.removeEvent(this.input,r.eventTypes.keyup,this.handleInputKeyup,!0);r.removeEvent(this.input,r.eventTypes.keydown,this.handleInputKeydown,!0);r.removeEvent(this.input,r.eventTypes.click,this.handleInputClick,!0);r.removeEvent(document.body,r.eventTypes.click,this.handleClickWhenMenuOpen);for(var n=0;n0&&(!this.selectedSuggestion&&n?this.selectSuggestion(t[r-1]):this.selectedSuggestion?(i=t.indexOf(this.selectedSuggestion),n&&i===0?this.selectSuggestion(t[r-1]):n?this.selectSuggestion(t[i-1]):i===r-1?this.selectSuggestion(t[0]):this.selectSuggestion(t[i+1])):this.selectSuggestion(t[0]))},t.prototype.handleMenuArrowKey=function(n){var i=this.suggestions,u=this.suggestions?this.suggestions.length:0,t;u>0&&(t=i.indexOf(this.selectedSuggestion),n&&t===0||!n&&t===u-1?(this.input.value=this.cachedInputValue,this.setFocusToInput(),this.selectedSuggestion.setAttribute("data-selected","false"),r.selectFirstElement("li > a, li > span",this.selectedSuggestion).setAttribute("aria-selected","false"),this.selectedSuggestion=null):n?this.selectSuggestion(i[t-1]):this.selectSuggestion(i[t+1]))},t.prototype.selectSuggestion=function(n,t){var i,u,f;(t===void 0&&(t=!1),n)&&(this.selectedSuggestion&&(this.selectedSuggestion.setAttribute("data-selected","false"),r.selectFirstElement("li > a, li > span",this.selectedSuggestion).setAttribute("aria-selected","false")),this.selectedSuggestion=n,this.selectedSuggestion.setAttribute("data-selected","true"),r.selectFirstElement("li > a, li > span",this.selectedSuggestion).setAttribute("aria-selected","true"),r.selectFirstElement("li > a, li > span",this.selectedSuggestion).focus(),i="product",this.searchable(this.selectedSuggestion)?(u=r.getText(this.selectedSuggestion),this.input.value=u,i="term"):this.publishInProgress.length===0&&(this.input.value=""),t&&(this.hide(),f=this.suggestions.indexOf(this.selectedSuggestion),this.initiatePublish({notification:"onSuggestionSelected",properties:{srchq:this.cachedInputValue,suggestion:this.selectedSuggestion,suggestionType:i,aslinkpos:f,qrylngth:this.cachedInputValue.length,resultselected:this.selectedSuggestion.innerText}}),this.searchable(this.selectedSuggestion)&&typeof this.form.submit=="function"&&this.form.submit()))},t.prototype.hide=function(){this.menu.setAttribute(t.ariaHidden,"true");this.noResults&&this.noResultsItem&&(this.noResults.setAttribute(t.ariaHidden,"true"),this.noResultsItem.removeAttribute("aria-label"),this.noResultsItem.textContent="");this.form.setAttribute(t.ariaExpanded,"false");r.setText(this.ariaLiveRegion,"");r.removeEvent(document.body,r.eventTypes.click,this.handleClickWhenMenuOpen)},t.prototype.show=function(){if(u.isNullOrWhiteSpace(this.input.value)){this.hide();return}if(this.form.setAttribute(t.ariaExpanded,"true"),this.suggestions&&this.suggestions.length)r.setText(this.ariaLiveRegion,this.menuOpenLocString);else{!this.hideNoResults&&this.noResults&&this.noResultsItem&&(this.noResults.setAttribute(t.ariaHidden,"false"),this.noResultsItem.setAttribute("aria-label",this.noResultsString),this.noResultsItem.textContent=this.noResultsString);this.menu.setAttribute(t.ariaHidden,"true");return}!this.hideNoResults&&this.noResults&&this.noResults.setAttribute(t.ariaHidden,"true");this.menu.setAttribute(t.ariaHidden,"false");r.hasClass(this.menu,"f-auto-suggest-scroll")&&r.css(this.menu,"maxHeight",this.suggestions[0].offsetHeight*this.itemScrollCount+"px");r.addEvent(document.body,r.eventTypes.click,this.handleClickWhenMenuOpen)},t.prototype.closeMenuFromClick=function(n){this.form.contains(n)||this.hide()},t.prototype.reconstructMenu=function(n,t){var s=this,f,o,i,h,u,e;if(t===void 0&&(t=!1),this.suggestions=null,this.suggestionClickListeners=[],!t)for(this.ignoreNextDOMChange=!0,r.removeInnerHtml(this.menu),f=0,o=n;f"+n+"<\/b>"})},t.selector=".m-auto-suggest",t.typeName="AutoSuggest",t.menuOpenFallbackString="results are available, use up and down arrow keys to navigate.",t.defaultItemScrollCount=5,t.minimumItemScrollCount=2,t.ariaHidden="aria-hidden",t.ariaExpanded="aria-expanded",t.telemetryCtNonProduct="0",t.telemetryCtProduct="4",t}(i.Publisher);t.AutoSuggest=e});require(["autosuggest"]);define("defaultFocus",["jqReady!","domReady!"],function(){function o(n){return parseInt(n.getAttribute("tabindex"))>=0?!0:e.indexOf(n.tagName)!==-1?!0:!1}function u(n,t){for(var i,r=0;r0&&t!==document.activeElement;)t=i.pop(),t.focus(),window.WinStoreClient&&window.WinStoreClient.navigateBackwardInternally(n);return t===document.activeElement};return{focus:s,tryRestorePreviousFocus:h,trySetDefaultFocusInContainer:r}});define("msccHelper",["require","exports","htmlExtensions"],function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(){}return n.prototype.setConsent=function(){var n=window.mscc,t;n&&!n.hasConsent()&&(n.setConsent(),t=document.querySelector("header.c-uhfh.context-uhf.f-transparent.js"),t&&t.setAttribute("style","margin-top:0px"))},n.prototype.setAction=function(){var u=i.selectFirstElement(".c-uhfh"),t,r,n;if(u&&(t=u.getAttribute("data-msccaction"),t)){switch(t){case"1":r="https://uhf.microsoft.com/c1.gif";break;case"2":r="https://uhf.microsoft.com/c.gif";break;default:return}n=document.createElement("img");n.setAttribute("src",r);n.id="msccActionId";n.setAttribute("role","none");document.body.appendChild(n)}},n}();t.MsccHelper=r});define("navigationMenus",["require","exports","utility","htmlExtensions","jquery","msccHelper","uhfUtility"],function(n,t,i,r,u,f,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=".c-uhfh",ht=".c-uhfh-actions.no-uhf-actions-exists",nt=".js-global-head",c="#uhf-c-nav",h="#uhf-g-nav",ct="#uhf-l-nav",o=".js-nav-menu",it=".js-subm-uhf-nav-link",a=".f-mobile-title .c-action-trigger.glyph-chevron-left",v=".f-mobile-title .c-action-trigger.glyph-chevron-right",y=".js-global-head .c-action-trigger.glyph-global-nav-button",w="#uhfCatLogoButton",rt="[f-multi-parent=true]",lt="#overflow-menu > div > ul > li > ul > li > button",b=".js-mobile-title",tt=".glyph-shopping-cart",l="aria-expanded",k="ms.interactiontype",ut="aria-hidden",ft="f-opened",et="f-closed",p="f-flip",d="f-current",g=new f.MsccHelper,at=400,ot=10,st="#magicTriangle",vt=".c-sgl-stck",yt=function(){function n(){}return n.refreshFlips=function(){u(" > ul",n.$menus).removeClass(p)},n.closeMenu=function(t,i){var f=t.filter(n.$menus),h=t.filter(n.$multiColumnMenus),o,s,e,c;if(f.length===0)if(h.length>0)n.closeAllOpenMenus(),i&&(o=h.parent(),o.length>0&&(s=u(o.first()).siblings("button"),s.length>0&&s[0].focus()));else return;(e=f.children("button"),e.length!==0)&&(e.attr(l,"false"),f.children("ul").attr(ut,"true"),e.attr(k)!==undefined&&e.attr(k,"14"),i&&e.focus(),u(p,f).removeClass(p),c=r.getDirection()===r.Direction.left?"margin-left":"margin-right",u(" > ul",f).css(c,"").height(""),f.closest("ul").height(""))},n.openMenu=function(t){var o=t.filter(n.$menus),h,e,a,y,w,ot,g,b,d,st;if(o.length!==0&&(h=o.children("button"),h.length!==0)){h.attr(l,"true");o.children("ul").attr(ut,"false");h.focus();h.attr(k)!==undefined&&h.attr(k,"15");var i=o.find("ul").first(),f=i[0].getBoundingClientRect(),c=u(window).width(),v=r.getDirection(),et=v===r.Direction.left?"right":"left";if(o.is(n.$levelTwoMenus))if(e=o.parent("ul"),e.height(""),i.height(""),a=e.height(),y=i.height(),a>y?i.height(a):ac||v===r.Direction.right&&f.left<0,this.isSingleStackEnabled)ot=i.find("ul"),ot.length>0&&(g=c>1399?254:178,w=v===r.Direction.left&&f.right+g>c||v===r.Direction.right&&f.left-g<0),b=u("#overflow-menu-list"),b&&(a=e.height(),d=b.height(),d>a?(i.height(d),e.height(d)):b.height(a)),w?(e.addClass(p),e.find("ul").addClass(p),n.isFlipped=!0):i.hasClass(p)&&(n.isFlipped=!0);else{if(i.hasClass(p)){n.isFlipped=!0;return}w&&(e.find("ul").addClass(p),n.isFlipped=!0)}else if(!n.isMobile()&&o.is(n.$menus.not(n.$levelTwoMenus))){var nt=i[0].offsetWidth,s=0,tt=20,it=v===r.Direction.left?"marginLeft":"marginRight",rt=h.children(".all-ms-nav"),ft=i.hasClass("f-multi-column");ft&&f.right>c?(s=f.right-c,tt=Math.abs(s-f.left)/2,st=rt&&c>1450?100:0,rt&&!n.isSingleStackAndUhfActionsExists?(s=0,it=et):s+=tt-st):ft&&f.left<0?rt&&!n.isSingleStackAndUhfActionsExists?(s=0,it=et):s=-f.left+tt:!ft&&f.left+nt*2>c&&f.right-nt*2<0&&(s=nt-o[0].offsetWidth);i[0].style[it]=-s+"px"}}},n.isOpen=function(n){return n.children("button").attr(l)==="true"},n.toggleMenu=function(t,i){if(n.isOpen(t)){var r=u(o,t).add(t);n.closeMenu(r,i)}else n.closeAllOpenMenus(t.parents()),n.openMenu(t)},n.wasClickFromKeyboard=function(n){return n.keyCode===13},n.isMobile=function(){return this.isSingleStackEnabled?e.STViewports.getViewportSt()<3:i.Viewports.getViewport()<3},n.getOriginalGlobalTitle=function(){return u(s+" "+b).data().globalTitle},n.closeIfBlurred=function(t){!u(t.target).is(".c-uhf-nav-link")&&(u(t.target).parents().is(c+", "+h+", "+ct)||u(t.target).is(""+y)||u(t.target).is(""+w))||(n.isSingleStackEnabled&&n.isMobile()?u(t.target).is(".c-uhf-nav-link")||(u(t.relatedTarget).parents().is(c)?n.toggleHamburgerSt(!0,!0):n.toggleHamburgerSt(!0),u(t.relatedTarget).parents().is(h)?n.toggleCategoryMenuSt(!0,!0):n.toggleCategoryMenuSt(!0)):n.closeAllOpenMenus())},n.handleEscapeCloseMenu=function(t){if(t.keyCode===27&&t.currentTarget===u(t.target).closest(o)[0]){var i=u(t.currentTarget).closest(o);n.isOpen(i)?n.closeMenu(i,!0):n.isSingleStackEnabled&&n.isMobile()?(u(t.target).parents().is(c)?n.toggleHamburgerSt(!0,!0):n.toggleHamburgerSt(!0),u(t.target).parents().is(h)?n.toggleCategoryMenuSt(!0,!0):n.toggleCategoryMenuSt(!0)):n.closeMenu(i.parent().closest(o),!0)}},n.closeOpenSiblingMenusOnFocusChange=function(t){var i=u(t.target).closest(o).first(),r;i.is(n.$menus)&&(r=i.parents(o),n.closeAllOpenMenus(r.add(i)))},n.refreshMenuItems=function(){n.$menus=u(o);n.$levelTwoMenus=u(o+" "+o);n.$multiColumnMenus=u(".f-multi-column "+o);n.handleMoveIntoDesktopViewport();n.$levelTwoMenus.find("button").removeAttr("tabindex")},n.closeAllOpenMenus=function(t){n.closeMenu(u(' > [aria-expanded="true"]',n.$menus).parent().not(t))},n.initShowMagicTriangle=function(){if(n.showMagicTriangle===!0&&u(st).length===0){u(h).attr("style","opacity:0.90;z-index:999");u(h).find("ul").attr("style","opacity:0.90");u(c).attr("style","opacity:0.90;z-index:999");u(c).find("ul").attr("style","opacity:0.90");var t='';t+='<\/polygon>';t+="<\/svg>";u("body").prepend(t)}},n.init=function(){(u(document).documentMode||/Edge/.test(navigator.userAgent))&&u(s+" ul:hidden").each(function(){u(this).parent().append(u(this).detach())});u(s).addClass("js").on("keyup",n.menuSelector,n.handleEscapeCloseMenu);n.originalMobileTitle=u(b).text();n.$menus=u(o);n.$levelTwoMenus=u(o+" "+o);n.$multiColumnMenus=u(".f-multi-column "+o);n.pageDirection=r.getDirection();u(""+s+vt).length>0&&(n.isSingleStackEnabled=!0);n.isMenuInitialized=!0;n.isSingleStackAndUhfActionsExists=n.isSingleStackEnabled&&u(ht).length===0},n.clearCustomMenuHeights=function(){u(" > ul[style]",n.$menus).height("")},n.handleMoveIntoDesktopViewport=function(){n.isInMobileViewPort=!1;n.openMenu(n.$multiColumnMenus);n.clearCustomMenuHeights();n.$multiColumnMenus.children("button").attr("tabindex",-1);n.$menus=n.$menus.not(n.$multiColumnMenus);n.$levelTwoMenus=n.$levelTwoMenus.not(n.$multiColumnMenus);u("body").removeClass("body-overflow");u(rt).attr("role","presentation");u(lt).removeAttr("role");n.isSingleStackEnabled?(n.toggleHamburgerSt(!0),n.toggleCategoryMenuSt(!0),u(y).off("click",n.handleHamburgerClickST),u(w).off("click",n.handleCategoryMenuClickSt),u(s).off("click",n.handleMobileMenuClickSt),u(document).off("click",n.closeIfBlurred)):u("#meControl").show();u(".js-cat-head").show();u(c).show();u(h).show();u(s+" .c-search").show();u(s+" "+tt).show();u(document).off("click",n.closeIfBlurred).on("click",n.closeIfBlurred);u(document).off("focusin",n.closeIfBlurred).on("focusin",n.closeIfBlurred);u(y).off("click",n.toggleHamburger);u(a).off("click",n.handleMobilePrimaryButton);u(v).off("click",n.handleMobileSecondaryButton);u(s).off("click",n.handleMobileMenuClick).off("click",n.handleDesktopMenuClick).on("click",n.handleDesktopMenuClick).off("focusin",n.closeOpenSiblingMenusOnFocusChange).on("focusin",n.closeOpenSiblingMenusOnFocusChange).off("touchstart",n.setTouched).on("touchstart",n.setTouched).off("pointerenter",n.setTouchedIfPointer).on("pointerenter",n.setTouchedIfPointer).off("mouseout",n.handleDesktopMenuMouseLeave).on("mouseout",n.handleDesktopMenuMouseLeave);if(n.resetTitleMobileText(),n.closeAllOpenMenus(),u(s).data("magict")===!0&&(n.isMagicTriangleEnabled=!0),n.isMagicTriangleEnabled&&u(s).data("showmagict")===!0&&(n.showMagicTriangle=!0,n.initShowMagicTriangle()),n.isMagicTriangleEnabled)u(o+" "+o).off("mousemove",n.handleDesktopMenuMouseEnter).on("mousemove",n.handleDesktopMenuMouseEnter);else u(s).off("mouseover",n.handleDesktopMenuMouseEnter).on("mouseover",n.handleDesktopMenuMouseEnter)},n.setTouchedIfPointer=function(t){t&&t.originalEvent.pointerType==="touch"&&n.setTouched()},n.setTouched=function(){n.wasTouched=!0},n.handleDesktopMenuClick=function(t){var i,r;if(u(t.target).is(it)){n.closeAllOpenMenus();return}t.target.tagName!=="A"&&(i=u(t.target).closest(o),i.is(n.$menus))&&((t.preventDefault(),u("> a, > button",i).hasClass("f-hidden"))||(g.setConsent(),r=n.wasClickFromKeyboard(t),n.toggleMenu(i,r)))},n.calcTriangleArea=function(n,t,i){return Math.abs((n.x*(t.y-i.y)+t.x*(i.y-n.y)+i.x*(n.y-t.y))/2)},n.isMagicTriangleMenu=function(t){return!!n.$prevMenu&&t[0]===n.$prevMenu[0]},n.isPointInMagicTriangle=function(){var t=n.calcTriangleArea(n.pointA,n.pointB,n.pointC),i=n.calcTriangleArea(n.pointA,n.pointB,n.currentPoint),r=n.calcTriangleArea(n.pointB,n.pointC,n.currentPoint),u=n.calcTriangleArea(n.pointC,n.pointA,n.currentPoint);return t!==0&&t===i+r+u},n.resetMagicTriangle=function(t){t===void 0&&(t=!0);n.clearMagicTriangleTimer();n.isMagicTriangleSet=!1;t&&(n.pointA={x:0,y:0},n.pointB={x:0,y:0},n.pointC={x:0,y:0},n.renderMagicTriangle(),n.$prevMenu=undefined)},n.renderMagicTriangle=function(){if(n.showMagicTriangle){var t=n.pointA.x+","+n.pointA.y;t+=" "+n.pointB.x+","+n.pointB.y;t+=" "+n.pointC.x+","+n.pointC.y;u(st).attr("points",t)}},n.setupMagicTriangle=function(t){n.setFirstPointOfTriangle();var i=t[0].getBoundingClientRect();!n.isFlipped&&n.pageDirection===r.Direction.left||n.isFlipped&&n.pageDirection===r.Direction.right?(n.pointB={x:i.left+window.pageXOffset,y:i.top+window.pageYOffset},n.pointC={x:i.left+window.pageXOffset,y:i.bottom+window.pageYOffset}):(n.pointB={x:i.right+window.pageXOffset,y:i.top+window.pageYOffset},n.pointC={x:i.right+window.pageXOffset,y:i.bottom+window.pageYOffset});n.isMagicTriangleSet=!0;n.renderMagicTriangle()},n.clearMagicTriangleTimer=function(){clearTimeout(n.magicTriangleTimer);n.$timerTargetMenu=undefined},n.delayToggleMagicTriangleMenus=function(t){n.$timerTargetMenu&&t[0]===n.$timerTargetMenu[0]||(n.clearMagicTriangleTimer(),n.$timerTargetMenu=t,n.magicTriangleTimer=setTimeout(n.toggleMagicTriangleMenus,at,t))},n.haveMenuItems=function(n){return u(n.find("ul").first()).length!==0},n.toggleMagicTriangleMenus=function(t){var i=!1,r=n.isOpen(t),u;(r||(n.$prevMenu?(n.closeMenu(n.$prevMenu),n.$prevMenu=undefined):i=!0),n.haveMenuItems(t))&&(i&&n.closeAllOpenMenus(t.parents(o)),u=t.find("ul").first(),r||(n.isFlipped=!1,n.openMenu(t)),n.setupMagicTriangle(u),n.$prevMenu=t)},n.setFirstPointOfTriangle=function(){n.pointA=n.currentPoint;!n.isFlipped&&n.pageDirection===r.Direction.left||n.isFlipped&&n.pageDirection===r.Direction.right?n.pointA.x-=ot:n.pointA.x+=ot},n.isPrevMenuSibling=function(t){return!!n.$prevMenu&&t.siblings().is(n.$prevMenu)},n.processMagicTriangle=function(t,i){n.currentPoint={x:t.pageX,y:t.pageY};n.isMagicTriangleSet?n.isMagicTriangleMenu(i)?(n.clearMagicTriangleTimer(),n.setFirstPointOfTriangle(),n.showMagicTriangle&&u(t.target.nextElementSibling).is("ul")&&n.renderMagicTriangle()):n.isPrevMenuSibling(i)?n.isPointInMagicTriangle()?n.delayToggleMagicTriangleMenus(i):n.resetMagicTriangle(!1):n.resetMagicTriangle():n.toggleMagicTriangleMenus(i)},n.handleDesktopMenuMouseEnter=function(t){if(!n.isInMobileViewPort){var i=u(t.target).closest(o);if(n.wasTouched||!i.is(n.$levelTwoMenus))return;n.isMagicTriangleEnabled?n.processMagicTriangle(t,i):(n.closeAllOpenMenus(i.parents()),n.openMenu(i))}},n.handleDesktopMenuMouseLeave=function(t){var i=u(t.target).closest(o);n.wasTouched||!i.is(n.$levelTwoMenus)||i[0]&&i[0].contains(t.relatedTarget)||(n.isMagicTriangleEnabled?t.relatedTarget&&u(t.relatedTarget).closest(o).is(n.$levelTwoMenus)||(n.currentPoint={x:t.pageX,y:t.pageY},n.isPointInMagicTriangle()||(n.haveMenuItems(i)?n.closeMenu(i):i.parents(o).length>1&&n.closeMenu(u(i.parents(o).first()))),n.resetMagicTriangle()):n.closeMenu(i))},n.handleMobileMenuClick=function(t){var i,r;if(u(t.target).is("nav a")){n.toggleHamburger();return}(i=u(t.target).closest(o),i.is(n.$menus)&&!n.isOpen(i))&&(r=u(t.target).text(),n.setTitleMobileText(r),u(a).show(),u(v).hide(),n.openMenu(i))},n.handleMobileMenuClickSt=function(t){var i,r;if(u(t.target).is("nav a")){n.toggleHamburgerSt(!0);n.toggleCategoryMenuSt(!0);return}(i=u(t.target).closest(o),i.is(n.$menus))&&(n.isOpen(i)?(r=i.add(i.find(o+" [aria-expanded='true']").parent()),n.closeMenu(r)):n.openMenu(i))},n.handleMoveIntoMobileViewport=function(){if(n.isInMobileViewPort=!0,n.$menus=n.$menus.add(n.$multiColumnMenus),n.$multiColumnMenus.children("button").attr("tabindex",null),u(s).off("touchstart",n.setTouched).off("pointerenter",n.setTouchedIfPointer).off("mouseout",n.handleDesktopMenuMouseLeave).off("click",n.handleDesktopMenuClick).off("focusin",n.closeOpenSiblingMenusOnFocusChange),u(document).off("click",n.closeIfBlurred),u(document).off("focusin",n.closeIfBlurred),n.isMagicTriangleEnabled?u(o+" "+o).off("mousemove",n.handleDesktopMenuMouseEnter):u(s).off("mouseover ",n.handleDesktopMenuMouseEnter),n.isMagicTriangleEnabled=!1,n.showMagicTriangle=!1,u(v).hide(),u(rt).removeAttr("role"),u(c).hide(),u(h).hide(),u(y).attr(l,"false"),u(s+" .c-search").show(),u(s+" "+tt).show(),n.isSingleStackEnabled){u(y).off("click",n.handleHamburgerClickST).on("click",n.handleHamburgerClickST);u(w).off("click",n.handleCategoryMenuClickSt).on("click",n.handleCategoryMenuClickSt);u(s).off("click",n.handleMobileMenuClickSt).on("click",n.handleMobileMenuClickSt);u(document).on("click",n.closeIfBlurred).on("focusin",n.closeIfBlurred);n.toggleHamburgerSt(!0);n.toggleCategoryMenuSt(!0)}else{u("#meControl").hide();u(nt).addClass(et).removeClass(ft);u(y).off("click",n.toggleHamburger).on("click",n.toggleHamburger);u(a).off("click",n.handleMobilePrimaryButton).on("click",n.handleMobilePrimaryButton);u(v).off("click",n.handleMobileSecondaryButton).on("click",n.handleMobileSecondaryButton);u(s).off("click",n.handleMobileMenuClick).on("click",n.handleMobileMenuClick);n.closeAllOpenMenus()}},n.setTitleMobileText=function(n){u(b).text(n)},n.hasCategoryMenu=function(){return u(c).length>0},n.hasGlobalNavItems=function(){return u(h).length>0},n.resetTitleMobileText=function(){var i=u(b),t=n.originalMobileTitle;t?i.text(t):n.originalMobileTitle=this.getOriginalGlobalTitle()},n.handleMobilePrimaryButton=function(){var r=u(' > [aria-expanded="true"]',n.$menus),t,i;r[0]?(t=r.last().parent(o),n.closeMenu(t),i=!u(' > [aria-expanded="true"]',n.$menus)[0],i&&!u(c).is(":visible")?(u(a).hide(),n.hasCategoryMenu()&&u(v).show(),n.setTitleMobileText(n.getOriginalGlobalTitle())):i&&u(c).is(":visible")?(n.resetTitleMobileText(),n.hasGlobalNavItems()||u(a).hide()):n.setTitleMobileText(t.parents(o).first().children("button").first().text())):(u(c).hide(),u(h).show(),u(a).hide(),n.hasCategoryMenu()&&u(v).show(),n.setTitleMobileText(n.getOriginalGlobalTitle()))},n.handleMobileSecondaryButton=function(){u(h).hide();u(c).show();u(a).show();u(v).hide();n.resetTitleMobileText()},n.toggleHamburger=function(){var t=u(y),i="#meControl, "+c+", "+h,r=s+" .c-search,\n "+s+" "+tt;t.attr(l)==="false"?(u(nt).addClass("f-opened").removeClass("f-closed"),u(r).hide(),u(i).show(),u("body").addClass("body-overflow"),t.attr(l,"true"),n.hasCategoryMenu()&&n.hasGlobalNavItems()?(u(a).show(),u(v).hide(),u(h).hide()):u(a+", "+v).hide()):(u(nt).removeClass(ft).addClass(et),u(r).show(),u(i).hide(),u("body").removeClass("body-overflow"),t.attr(l,"false"));n.isSingleStackEnabled||(n.resetTitleMobileText(),n.closeAllOpenMenus());g.setConsent()},n.handleHamburgerClickST=function(){n.toggleHamburgerSt()},n.toggleHamburgerSt=function(t,i){t===void 0&&(t=!1);i===void 0&&(i=!1);var f=u(y),e=u(w),r=c;u(r).length===0&&(r=h);t||f.attr(l)==="true"?(u(r).hide(),f.attr(l,"false"),e.length!==0&&e.removeAttr("style"),n.closeAllOpenMenus(),i&&f.focus(),r===c&&u(r+" .c-button-logo + .f-multi-column").attr("aria-hidden","true")):((r!==h||u(w).attr(l)==="true")&&n.toggleCategoryMenuSt(!0),f.attr(l,"true"),e.length!==0&&e.attr("style","display: none !important"),u(r).show(),r===c?(u(r+" .c-button-logo + .f-multi-column").attr("aria-hidden","false"),u(r+" .c-button-logo + .f-multi-column").find("button,a").first().focus()):u(r).find("button, a").first().focus());t||g.setConsent()},n.handleCategoryMenuClickSt=function(){n.toggleCategoryMenuSt()},n.toggleCategoryMenuSt=function(t,i){t===void 0&&(t=!1);i===void 0&&(i=!1);var r=u(w);t||r.attr(l)==="true"?(u(h).hide(),r.attr(l,"false"),n.closeAllOpenMenus(),i&&r.focus()):(u(y).attr(l)==="true"&&n.toggleHamburgerSt(!0),r.attr(l,"true"),u(h).show(),u(h).find("button,a").first().focus());t||g.setConsent()},n.resetNavHighlight=function(n){r.removeClass(r.selectElements("."+d,n),d)},n.setCurrentMenuItemId=function(t){var i=null,f=r.selectFirstElement(s);try{i=r.selectFirstElement("#"+t,f)}catch(e){return}i&&(n.resetNavHighlight(f),r.addClass(i,d),u(i).parents("ul").siblings("button").addClass(d))},n.isMenuInitialized=!1,n.wasTouched=!1,n.isMagicTriangleEnabled=!1,n.showMagicTriangle=!1,n.isSingleStackEnabled=!1,n.isInMobileViewPort=!1,n.isMagicTriangleSet=!1,n.isFlipped=!1,n.currentPoint={x:0,y:0},n.pointA={x:0,y:0},n.pointB={x:0,y:0},n.pointC={x:0,y:0},n.mobilePrimaryButtonSelector=a,n.globalNavSelector=h,n.categoryNavSelector=c,n.mobileSecondaryButtonSelector=v,n.mobileTitleSelector=b,n.menuSelector=o,n.subMenuLinkSelector=it,n.uhfSelector=s,n.originalMobileTitle="",n.isSingleStackAndUhfActionsExists=!0,n}();t.NavigationMenus=yt});define("shoppingCart",["require","exports","jquery","htmlExtensions"],function(n,t,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u="x-hidden",f=function(){function n(){if(this.shoppingCartFrame=document.getElementById(n.shoppingCartFrameId),!this.shoppingCartFrame)return null;var t=this.shoppingCartFrame.getAttribute("data-src");!t||this.shoppingCartFrame.setAttribute("src",t);i(window).on("message onmessage",this.handleEvent)}return n.setTelemetryAttr=function(n,t,r,u){var e=i(n).attr(t),f;if(e){f=undefined;try{if(f=JSON.parse(e),!f)return;f[r]=u}catch(o){return}i(n).attr(t,JSON.stringify(f))}},n.prototype.handleEvent=function(t){var s=t.originalEvent.data,f="0",c="qtyincart",l="data-m",e=r.selectFirstElement(n.shoppingCartCountSelector),o=r.selectFirstElement(n.shoppingCartLabel),h,a;if(s&&s.split&&e&&(h=s.split("="),h[0]==="DR_Cart_Count")){if(f=h[1],f==="0"){r.addClass(e,u);o&&r.removeClass(o,u);n.setTelemetryAttr(n.shoppingCartAnchorId,l,c,f);return}o&&r.addClass(o,u);r.removeClass(e,u);e.innerText=f;a=i(n.shoppingCartAnchorId).attr("title").replace(/\d+/,f);i(n.shoppingCartAnchorId).attr("title",a);n.setTelemetryAttr(n.shoppingCartAnchorId,l,c,f)}},n.shoppingCartFrameId="shell-cart-count",n.shoppingCartCountSelector=".shopping-cart-amount",n.shoppingCartAnchorId="#uhf-shopping-cart",n.shoppingCartLabel=".c-cart-lbl",n}();t.ShoppingCart=f});__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();define("uhfAutoSuggest",["require","exports","autosuggest","htmlExtensions","utility","uhfTelemetryHelper","stringExtensions"],function(n,t,i,r,u,f,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={hideNoResults:!0},s=function(n){function t(){var i=n.call(this,r.selectFirstElement(t.autoSuggestSelector),o)||this,h,s;if(i.latestTimestampReceived=0,i.autoSuggestCallback=function(n){var t=window.msCommonShell&&window.msCommonShell.as,u={telemetryType:"jsll",event:"KE",trackType:"searchInitiate",srchq:n.pattern},r;f.trackEvent(u);t&&t.callback?t.callback({text:n.pattern,response:i.updateSuggestions}):t&&t.legacyCallback?t.legacyCallback({text:n.pattern,response:i.mapLegacyCallback}):t&&t.ussAPIParams&&t.ussAPIParams.clientId&&t.ussAPIParams.sources?(t.ussAPIParams.query=n.pattern,t.ussAPIParams.market=t.ussAPIParams.market||i.params.market,r=i.autoSuggestUrl+"?"+$.param(t.ussAPIParams),i.ajaxCall(r,i.updateSuggestions)):i.params&&i.params.clientId&&i.params.sources&&(i.params.query=n.pattern,r=i.autoSuggestUrl+"?"+$.param(i.params),i.ajaxCall(r,i.updateSuggestions))},i.suggestionSelectedCallback=function(n){if(n&&n.suggestion&&n.suggestionType){try{f.fireBeacon(n.suggestion.firstChild.getAttribute("iris-onclick-url"))}catch(r){}if(event.type&&i.telemetryType){var t={trackType:"autosuggest",telemetryType:i.telemetryType,event:event.type==="click"?"CL":"KE",title:n.suggestion.title,suggestionType:n.suggestionType,aslinkpos:n.aslinkpos,qrylngth:n.qrylngth,resultselected:n.resultselected,srchq:n.srchq};f.trackEvent(t)}}},i.mapLegacyCallback=function(n){for(var t,r=[],u=0,f=n.suggestions;u=200&&this.status<400)try{f.processJsonData(u,JSON.parse(this.responseText),t)}catch(n){}};r.send();r=null},i.responseHandlers={Term:function(n){var t=[];return i.telemetryType==="wedcs"&&t.concat(i.getWedcsAttributes(n.Txt)),{type:"string",value:n.Txt,attributes:t}},Product:function(n){for(var r,a,s=null,u=[],h=!1,c=null,o=0,l=n.Metas;o0&&(t.push({name:"ms.title",value:n}),t.push({name:"ms.cmpnm",value:n}),t.push({name:"ms.cn",value:n})),t},t.autoSuggestSelector="#universal-header-search-auto-suggest-transparent",t.configElementSelector=".js-global-head .c-search",t.configDataAttribute="data-seautosuggest",t.apiUrlAttribute="data-seautosuggestapi",t.telemetryAttribute="data-tel",t.badImageDomain="//compass.",t.goodImageDomain="https://compass-ssl.",t}(i.AutoSuggest);t.UhfAutoSuggest=s});__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();define("uhfCookieAlert",["require","exports","htmlExtensions","utility","publisher"],function(n,t,i,r,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(n){function t(t){var u=n.call(this,t)||this,f;return(u.cookieAlertElement=t,u.closeSelector="button.c-action-trigger.glyph-cancel",u.cookieName="uhf_hide_cn",u.hiddenClass="x-hidden",u.msccCookieName="MSCC",u.getHeight=function(){return u.cookieAlertElement?i.getClientRect(u.cookieAlertElement).height:0},u.closeAndSetCookie=function(){r.setCookie(u.cookieName,"true","/",365);i.addClass(u.cookieAlertElement,u.hiddenClass);u.initiatePublish({height:u.getHeight()})},!t||!(r.getCookie(u.cookieName)!=="true")||r.getCookie(u.msccCookieName)!==null)?u:(i.removeClass(u.cookieAlertElement,u.hiddenClass),f=i.selectFirstElement(u.closeSelector,t),i.addEvent(f,i.eventTypes.click,u.closeAndSetCookie),u)}return __extends(t,n),t.prototype.publish=function(n,t){n.onBannerClosed(t)},t}(u.Publisher);t.UhfCookieAlert=f});define("uhfCookieAuditor",["require","exports","htmlExtensions","stringExtensions","uhfTelemetryHelper"],function(n,t,i,r,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f;(function(n){function t(){try{var n=i.selectFirstElement(".c-uhfh").getAttribute("data-ckrate");return Math.random() ul"),e=function(){function n(n,t){var r=this;this.isMenubarItem=!1;this.isMultiColumnItem=!1;this.initializeMenus=function(){i.NavigationMenus.init();i.NavigationMenus.handleMoveIntoDesktopViewport();!r.menuElement||u.removeEvent(r.menuElement,u.eventTypes.click,r.initializeMenus)};this.handleMenuBarKeydown=function(n){if(!i.NavigationMenus.isMobile()){var f=n.key,t=!1;switch(n.keyCode){case 32:case 13:case 40:i.NavigationMenus.closeAllOpenMenus();r.subMenu&&(i.NavigationMenus.handleDesktopMenuClick(n),r.subMenu.setFocusToFirstItem(),t=!0);break;case 37:i.NavigationMenus.closeAllOpenMenus();i.NavigationMenus.pageDirection===u.Direction.left?r.menu.setFocusToPreviousItem(r):r.menu.setFocusToNextItem(r);t=!0;break;case 39:i.NavigationMenus.closeAllOpenMenus();i.NavigationMenus.pageDirection===u.Direction.right?r.menu.setFocusToPreviousItem(r):r.menu.setFocusToNextItem(r);t=!0;break;case 38:i.NavigationMenus.closeAllOpenMenus();r.subMenu&&(i.NavigationMenus.handleDesktopMenuClick(n),r.subMenu.setFocusToLastItem(),t=!0);break;case 36:i.NavigationMenus.closeAllOpenMenus();r.menu.setFocusToFirstItem();t=!0;break;case 35:i.NavigationMenus.closeAllOpenMenus();r.menu.setFocusToLastItem();t=!0;break;case 27:i.NavigationMenus.closeAllOpenMenus();i.NavigationMenus.handleEscapeCloseMenu(n);break;default:r.isPrintableCharacter(f)&&(r.menu.setFocusByFirstCharacter(r,f),t=!0)}if(t){n.stopPropagation();switch(n.keyCode){case 40:case 38:case 37:case 39:case 35:case 36:n.preventDefault()}}}};this.menu=t;this.domNode=n;this.isMenubarItem=!0}return n.prototype.init=function(n){this.menuElement=u.selectElements(".c-uhf-menu");!this.menuElement||this.initializeMenus();f(this.domNode).off("keydown");f(this.domNode).on("keydown",this.handleMenuBarKeydown);if(n){var t=this.domNode.nextElementSibling;t&&t.tagName==="UL"&&t.childElementCount>0&&(this.subMenu=new r.SubMenu(t,this),this.subMenu.init(this.isMultiColumnItem))}},n.prototype.isPrintableCharacter=function(n){return n.length===1&&n.match(/\S/)},n.prototype.setExpanded=function(n){n?this.domNode.setAttribute("aria-expanded","true"):this.domNode.setAttribute("aria-expanded","false")},n.prototype.setMultiColumnExpanded=function(n){var t="false",i;t=n?"true":"false";u.hasClass(this.domNode.nextElementSibling,"f-multi-column")&&(i=u.selectElements("button[f-multi-parent=true]",this.domNode.nextElementSibling),i.forEach(function(n){n.setAttribute("aria-expanded",t)}),this.domNode.setAttribute("aria-expanded",t))},n}();t.MenubarItem=e;y=function(){function n(){this.isMenubar=!1;this.isMenubar=!0;this.menubarItems=[];this.firstChars=[];this.firstItem=null;this.lastItem=null}return n.prototype.init=function(){var n,r,t,y,b;o&&(n=new e(o,this),n.init(!1),this.menubarItems.push(n),t=o.textContent.trim(),this.firstChars.push(t.substring(0,1).toLowerCase()));s&&(n=new e(s,this),n.init(!1),this.menubarItems.push(n),t=s.textContent.trim(),this.firstChars.push(t.substring(0,1).toLowerCase()));for(var i=u.selectFirstElement(".uhf-menu-item",p),f=!1,w=!1;i;)f=!1,w=!1,r=null,u.hasClass(i,"single-link")?r=u.selectFirstElement(".c-uhf-nav-link",i):(u.hasClass(i,"nested-menu")||u.hasClass(i,"overflow-menu"))&&(b=u.selectFirstElement("ul",i),f=u.hasClass(b,"f-multi-column"),b.childElementCount>0&&(r=u.selectFirstElement("button",i),w=!0)),r&&!u.hasClass(i,"x-hidden-none-mobile-vp")&&(n=new e(r,this),n.isMultiColumnItem=f,n.init(w),this.menubarItems.push(n),t=r.textContent.trim(),this.firstChars.push(t.substring(0,1).toLowerCase())),i=i.nextElementSibling;h&&(f=!0,n=new e(h,this),n.isMultiColumnItem=!0,n.init(!0),this.menubarItems.push(n),t=h.textContent.trim(),this.firstChars.push(t.substring(0,1).toLowerCase()));c&&(n=new e(c,this),n.init(!1),this.menubarItems.push(n),t=c.textContent.trim(),this.firstChars.push(t.substring(0,1).toLowerCase()));a&&(n=new e(a,this),n.init(!1),this.menubarItems.push(n),t=v?v.textContent.trim():"",this.firstChars.push(t.substring(0,1).toLowerCase()));l&&(n=new e(l,this),n.init(!0),this.menubarItems.push(n),t=l.textContent.trim(),this.firstChars.push(t.substring(0,1).toLowerCase()));y=this.menubarItems.length;y>0&&(this.firstItem=this.menubarItems[0],this.lastItem=this.menubarItems[y-1])},n.prototype.setFocusToItem=function(n){for(var t,r=!1,i=0;i-1&&this.setFocusToItem(this.menubarItems[i])},n.prototype.getIndexFirstChars=function(n,t){for(var i=n;i0&&(e=r.selectFirstElement("button",t))),e&&(i=new f(e,this),i.init(),this.menuitems.push(i),o=e.textContent.trim(),this.firstChars.push(o.substring(0,1).toLowerCase())),t=t.nextElementSibling;h=this.menuitems.length;h>0&&(this.firstItem=this.menuitems[0],this.lastItem=this.menuitems[h-1])},n.prototype.setFocusToMenubarItem=function(n,t){while(n){if(n.isMenubarItem)return n.domNode.focus(),n;t&&n.menu.close(!0);n.hasFocus=!1;n=n.menu.controller}return!1},n.prototype.setFocusToController=function(n,t){if(typeof n!="string"&&(n=""),n===""){this.controller&&this.controller.domNode&&this.controller.domNode.focus();return}if(this.controller.isMenubarItem)i.NavigationMenus.closeAllOpenMenus(),n==="previous"?this.controller.menu.setFocusToPreviousItem(this.controller,t):n==="next"&&this.controller.menu.setFocusToNextItem(this.controller,t);else if(this.controller.domNode.focus(),this.close(!1),n==="next"){var r=this.setFocusToMenubarItem(this.controller,!1);r&&r.menu.setFocusToNextItem(r,t)}},n.prototype.setFocusToFirstItem=function(){this.firstItem.domNode.focus()},n.prototype.setFocusToLastItem=function(){this.lastItem.domNode.focus()},n.prototype.setFocusToPreviousItem=function(n){var t;n===this.firstItem?this.lastItem.domNode.focus():(t=this.menuitems.indexOf(n),this.menuitems[t-1].domNode.focus())},n.prototype.setFocusToNextItem=function(n){var t;n===this.lastItem?this.firstItem.domNode.focus():(t=this.menuitems.indexOf(n),this.menuitems[t+1].domNode.focus())},n.prototype.setFocusByFirstCharacter=function(n,t){var r,i,u=t.toLowerCase();r=this.menuitems.indexOf(n)+1;r===this.menuitems.length&&(r=0);i=this.getIndexFirstChars(r,u);i===-1&&(i=this.getIndexFirstChars(0,u));i>-1&&this.menuitems[i].domNode.focus()},n.prototype.getIndexFirstChars=function(n,t){for(var i=n;i1&&(l=(s+"-"+e[1]).toLowerCase(),this.setLangLocaleInUrls(t[u],f,l))},n.instance=null,n.init=function(){var t=i.selectFirstElement(f);t&&n.instance===null&&(n.instance=new n(t))},n}();t.UhfLanguageToggle=e});define("uhfMeControl",["require","exports","uhfMeControlLoader"],function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(){i.Loader.init()}return n.selector=".js-global-head",n}();t.UhfMeControl=r});define("uhfMeControlLoader",["require","exports","jquery","navigationMenus","universalHeader","utility","htmlExtensions","msccHelper","uhfUtility","uhfOverFlowMenu"],function(n,t,i,r,u,f,e,o,s,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=".c-uhfh",l=".c-sgl-stck",a;(function(n){function ct(){var n=t;if(n)n.events.onEventLog("loadMeControl",{type:"qos",success:"0",errorCode:"LoadFailed: Reverted to fallback",duration:tt})}function it(n){if(n&&(n.extensibleLinks&&t.extensibleLinks&&(n.extensibleLinks.push.apply(n.extensibleLinks,t.extensibleLinks),t.extensibleLinks=null),a=n.apiGeneration==="GEN2"||a,(nt||a)&&(n.appContextConfig&&n.appContextConfig.commands&&t.appContextConfig&&t.appContextConfig.commands&&(n.appContextConfig.commands.push.apply(n.appContextConfig.commands,t.appContextConfig.commands),t.appContextConfig.commands=null),n.primaryUXConfig&&n.primaryUXConfig.displayModes&&t.primaryUXConfig&&t.primaryUXConfig.displayModes&&(n.primaryUXConfig.displayModes.push.apply(n.primaryUXConfig.displayModes,t.primaryUXConfig.displayModes),t.primaryUXConfig.displayModes=null)),t=i.extend(!0,{},t,n)),t.enabled)if(ft())rt(!0);else{var r=setTimeout(function(){ct()},tt);window.onMeControlReadyToLoad=function(){clearTimeout(r);window.onMeControlReadyToLoad=null;rt();d()}}}function rt(n){if(n===void 0&&(n=!1),!n&&!ft()){console.error("Error: MeControl API not not found after callback onMeControlReadyToLoad");return}var i="",u="",r=!1;if(w)try{a?v||(i="Mecontrol API/Configuration mismatch: Loading Mecontrol GEN1, with V2 Config, No GEN2 API",console.warn(i),window.MSA.MeControl.Loader.load(t),r=!0,e.addThrottledEvent(window,e.eventTypes.resize,p,66)):(i="Loading MeControl GEN1, with V1 Config",window.MSA.MeControl.Loader.load(t),r=!0,e.addThrottledEvent(window,e.eventTypes.resize,p,66))}catch(f){i="Error: "+i;u+=i;console.error(i);console.error(f);r=!1}if(!r&&v)try{a?(i="Loading MeControl GEN2, with V2 Config",window.MeControl.Loader.load(t),r=!0):(i="Mecontrol API/Configuration mismatch: Loading MeControl GEN2, with V1 Config, auto-remap to V2",console.warn(i),window.MeControl.Loader.load(t),r=!0)}catch(f){i="Error: "+i;u+=u.length===0?i:"\n"+i;console.error(i);console.error(f);r=!1}if(!r&&w&&v&&a)try{i="Mecontrol API/Configuration mismatch: Loading Mecontrol GEN1, with V2 Config, Final Attempt";console.warn(i);window.MSA.MeControl.Loader.load(t);r=!0;e.addThrottledEvent(window,e.eventTypes.resize,p,66)}catch(f){i="Error: "+i;u+=u.length===0?i:"\n"+i;console.error(i);console.error(f);r=!1}if(r){t.events.onEventLog("loadMeControl",{type:"qos",success:"1"});setTimeout(ut,500);e.addThrottledEvent(window,e.eventTypes.resize,p,66)}else t.events.onEventLog("loadMeControl",{type:"qos",success:"0",errorCode:u})}function ut(){if(b&&st()){var n=new h.UhfOverflowMenu;n&&n.handleWidthChange()}}function ft(){return window.MSA&&window.MSA.MeControl&&window.MSA.MeControl.Loader&&(w=!0),window.MeControl&&window.MeControl.Loader&&(v=!0),w||v}function et(n){var t=document.createElement("a");return t.href=n,t.href}function lt(n){n!=null&&(n.apiGeneration==="GEN2"&&(a=!0),n.rpData.aadInfo&&n.rpData.aadInfo.siteUrl&&(n.rpData.aadInfo.siteUrl=et(n.rpData.aadInfo.siteUrl)),n.rpData.msaInfo&&n.rpData.msaInfo.meUrl&&(n.rpData.msaInfo.meUrl=n.rpData.msaInfo.meUrl+"&wreply="+encodeURIComponent(window.location.protocol+"//"+window.location.host)),n.events={onEventLog:function(n,t){if(k&&k.onEventLog)k.onEventLog("MeControl_"+n,t);n&&(n==="SignIn"||n==="DropdownOpen")&&ht.setConsent()}},t=i.extend(!0,{},n,t||{}))}function ot(n){n!=null&&(n.events!=null&&(k=n.events),!n.currentGlobalItemId||r.NavigationMenus.setCurrentMenuItemId(n.currentGlobalItemId),!n.currentMenuItemId||r.NavigationMenus.setCurrentMenuItemId(n.currentMenuItemId),n&&n.theme&&u.UniversalHeader.setTheme(n.theme))}function at(n){var t,i,r;(n!=null&&(window.msCommonShell&&n.as?window.msCommonShell.as=n.as:window.msCommonShell&&n.searchSuggestCallback&&(window.msCommonShell.as={legacyCallback:n.searchSuggestCallback}),window.msCommonShell&&n.events&&(window.msCommonShell.events=n.events)),t=document.getElementById("meControl"),t)&&(i=t.getAttribute("data-signinsettings"),i!==null&&(t.getAttribute("data-mev2")==="true"&&(nt=!0),r=JSON.parse(i),r&<(r),n!=null?(ot(n),it(n.meControlOptions)):it(null),d()))}function g(){return b?s.STViewports.getViewportSt()<5:f.Viewports.getViewport()<5}function st(){return b?s.STViewports.getViewportSt()>2:f.Viewports.getViewport()>2}function p(){d()}function d(){var n=window.MeControl&&window.MeControl.API&&window.MeControl.API.setDisplayMode,t=window.MSA&&window.MSA.MeControl;return(t||n)&&(g()&&!y?(y=!0,n?window.MeControl.API.setDisplayMode("compressed"):window.MSA.MeControl.API.setMobileState(1)):!g()&&y&&(y=!1,n?window.MeControl.API.setDisplayMode("standard"):window.MSA.MeControl.API.setMobileState(0)),setTimeout(ut,500)),y}function vt(){var n={AuthState:{SignedIn:1,SignedInIdp:2,NotSignedIn:3},SupportedAuthIdp:{MSA:"msa",AAD:"aad"},meControlOptions:function(){return t},load:function(n){at(n)},update:function(n){ot(n)}};window.msCommonShell=i.extend(!0,window.msCommonShell,n);i(""+c+l).length>0&&(b=!0);window.msCommonShell.swapCategoryHeader||(window.msCommonShell.swapCategoryHeader=function(n){window.msCommonShell._catHTML=n});window.onShellReadyToLoad&&window.onShellReadyToLoad()}var t=null,nt=!1,a=!1,w=!1,v=!1,b=!1,tt=5e3,k=null,y=!1,ht=new o.MsccHelper;n.absolutifyUrl=et;n.isMobile=g;n.isDesktopVp=st;n.onWindowResize=p;n.setMeControlMobileState=d;n.init=vt})(a=t.Loader||(t.Loader={}))});define("uhfOverFlowMenu",["require","exports","htmlExtensions","navigationMenus"],function(n,t,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f="#overflow-menu",e=".c-uhfh-gnav .js-paddle-items",u="x-hidden",o=function(){function n(){(this.refreshMenu=!1,this.minWidthDifference=40,this.overflowMenu=i.selectFirstElement(f),this.nav=i.selectFirstElement(e),this.nav&&this.overflowMenu)&&(this.navItems=this.nav.children,this.overflowMenuList=i.selectFirstElement("#overflow-menu-list"),this.overflowNestedMenuClassList=["f-sub-menu","js-nav-menu"],this.overflowSubMenuClassList="c-uhf-menu js-nav-menu",this.overflowSkipItems=i.selectFirstElement("#c-uhf-nav-cta")?1:0,i.selectFirstElement(".right-aligned-link")&&(this.overflowSkipItems+=1))}return n.prototype.handleWidthChange=function(){var n,t;this.overflowMenu&&this.nav&&(n=this.nav.offsetWidth,this.initializeNavItemsWidths(),t=n-this.navItemsWidth,n>=this.navItemsWidth&&t>this.minWidthDifference?this.isShowing()&&this.overflowMenuList.children.length===0&&this.hide():(this.isShowing()||(this.show(),this.initializeNavItemsWidths()),this.updateOverflowMenuItems()),this.refreshMenu&&(r.NavigationMenus.refreshMenuItems(),this.refreshMenu=!1))},n.prototype.handleMoveIntoDesktopViewport=function(){if(this.overflowMenu&&this.nav){this.initializeNavItemsWidths();var n=this.nav.offsetWidth-this.navItemsWidth;this.nav.offsetWidth>this.navItemsWidth&&n>this.minWidthDifference?(this.updateGlobalMenuItems(!1),this.isShowing()&&this.overflowMenuList.children.length===0&&this.hide()):(this.isShowing()||(this.show(),this.initializeNavItemsWidths()),this.updateOverflowMenuItems());this.refreshMenu&&(r.NavigationMenus.refreshMenuItems(),this.refreshMenu=!1)}},n.prototype.handleMoveIntoMobileViewport=function(){this.overflowMenu&&this.nav&&(this.updateGlobalMenuItems(!0),this.isShowing()&&this.overflowMenuList.children.length===0&&this.hide(),this.refreshMenu&&(r.NavigationMenus.refreshMenuItems(),this.refreshMenu=!1))},n.prototype.initializeNavItemsWidths=function(){var t,n;if(this.nav)for(t=this.nav.children,this.navItemsWidth=0,n=0;n1&&this.navItems.length>i&&(t>=this.nav.offsetWidth||r0||this.isEnoughSpaceToFitItems(i+this.estimateNavOffsetWidth(t));)this.overflowMenuList.removeChild(this.overflowMenuList.firstElementChild),this.nav.insertBefore(t,this.overflowMenu),i+=t.offsetWidth,this.refreshMenu||(this.refreshMenu=!0),t=this.cloneAndStyleFirstChild()},n.prototype.isEnoughSpaceToFitItems=function(n){var t=!1;return this.overflowMenuList.children.length>0&&(this.overflowMenuList.children.length===1&&(n-=this.overflowMenu.offsetWidth),this.nav.offsetWidth>n&&(t=!0)),t},n.prototype.cloneAndStyleFirstChild=function(){var n=undefined;return this.overflowMenuList.firstElementChild&&(n=this.overflowMenuList.firstElementChild.cloneNode(!0),this.updateGlobalMenuItemStyle(n)),n},n.prototype.estimateNavOffsetWidth=function(n){var t=0;return n&&(this.nav.insertBefore(n,this.overflowMenu),t=n.offsetWidth,this.nav.removeChild(n)),t},n.prototype.updateOverflowMenuItemStyle=function(n){var r,u,t,f;if(i.hasClass(n,"single-link"))i.addClass(n,"js-nav-menu"),i.removeClass(n.firstElementChild,"c-uhf-nav-link"),i.addClass(n.firstElementChild,"js-subm-uhf-nav-link");else if(i.hasClass(n,"nested-menu")){for(i.addClasses(n,this.overflowNestedMenuClassList),r=n.firstElementChild,u=r.children;u.length>0;)t=u.item(0),t.nodeName==="UL"&&i.hasClass(t,"f-multi-column")&&(f=t.getAttribute("data-class-idn").split(" "),i.removeClasses(t,f)),n.appendChild(t);n.removeChild(r)}},n.prototype.updateGlobalMenuItemStyle=function(n){var f,r,t,u;if(i.hasClass(n,"single-link"))i.removeClass(n,"js-nav-menu"),i.addClass(n.firstElementChild,"c-uhf-nav-link"),i.removeClass(n.firstElementChild,"js-subm-uhf-nav-link");else if(i.hasClass(n,"nested-menu")){for(i.removeClasses(n,this.overflowNestedMenuClassList),f=n.children,r=document.createElement("div"),r.setAttribute("class",this.overflowSubMenuClassList);f.length>0;)t=f.item(0),t.nodeName==="UL"&&(u=t.getAttribute("data-class-idn"),u&&u.indexOf("f-multi-column")!==-1&&i.addClasses(t,u.split(" "))),r.appendChild(t);n.appendChild(r)}},n}();t.UhfOverflowMenu=o});define("uhfPaddles",["require","exports","htmlExtensions"],function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=".js-primary-paddle",f=".js-secondary-paddle",e=".js-paddle-items",r="f-hidden",o=function(){function n(n){var t=this;(this.disabledPrimaryNavItems=[],this.disabledSecondaryNavItems=[],this.slidePrimary=function(){t.setCurrentSlidePosition(t.getNextValidPosition(!0))},this.slideSecondary=function(){t.setCurrentSlidePosition(t.getNextValidPosition(!1))},this.handleSlideIfDisabled=function(n){for(var r=0;rt.getMaxSlideAmount()?t.setCurrentSlidePosition(t.getMaxSlideAmount()):t.setCurrentSlidePosition(t.navItemPositions[i]))},n)&&(this.primaryPaddle=i.selectFirstElement(u,n),this.secondaryPaddle=i.selectFirstElement(f,n),this.nav=i.selectFirstElement(e,n),this.nav)&&(this.isLtr=this.nav.currentStyle?this.nav.currentStyle.direction==="ltr":getComputedStyle(this.nav,null).direction==="ltr",this.slideMarginProperty=this.isLtr?"marginLeft":"marginRight",this.firstMenuItem=this.nav.children[0])}return n.prototype.initializeNavItemsWidths=function(){var t,n;if(this.nav){for(t=this.nav.children,this.navItemsWidth=0,this.navItemPositions=[],n=0;nf+e?(i.addClass(u,r),this.disabledSecondaryNavItems[n]=t[n]):(i.removeClass(u,r),this.disabledPrimaryNavItems[n]=null,this.disabledSecondaryNavItems[n]=null)},n.prototype.updatePaddleDisplayStates=function(){var t=this.nav.offsetWidth,i=t+this.primaryPaddle.offsetWidth+this.secondaryPaddle.offsetWidth,n;i>=this.navItemsWidth?(this.hide(this.primaryPaddle),this.hide(this.secondaryPaddle)):(n=this.getCurrentSlidePosition(),n===0?(this.hide(this.primaryPaddle),this.show(this.secondaryPaddle)):n>=this.getMaxSlideAmount()?(this.show(this.primaryPaddle),this.hide(this.secondaryPaddle)):(this.show(this.primaryPaddle),this.show(this.secondaryPaddle)))},n.prototype.getMaxSlideAmount=function(){var n=this.isShowing(this.primaryPaddle)&&this.isShowing(this.secondaryPaddle)?this.primaryPaddle.offsetWidth:0,t=this.nav.offsetWidth+n;return this.navItemsWidth-t},n.prototype.handleWidthChange=function(){if(this.primaryPaddle&&this.nav){var n=this.getCurrentSlidePosition(),t=this.nav.offsetWidth,i=t+this.primaryPaddle.offsetWidth+this.secondaryPaddle.offsetWidth;i>this.navItemsWidth?this.setCurrentSlidePosition(0):this.navItemsWidthi)return Math.max(0,this.navItemPositions[t]-r);return 0}for(t=0;ti+r)return Math.min(this.getMaxSlideAmount(),this.navItemPositions[t]);return this.getMaxSlideAmount()},n.prototype.handleMoveIntoDesktopViewport=function(){if(this.primaryPaddle&&this.nav){this.primaryPaddle.tabIndex=-1;this.secondaryPaddle.tabIndex=-1;this.initializeNavItemsWidths();this.updatePaddleDisplayStates();this.disablePartiallyHiddenNavItems();this.firstMenuItem.style.transition="margin .667s cubic-bezier(.16, 1, .29, .99)";i.addEvent(this.primaryPaddle,i.eventTypes.click,this.slidePrimary);i.addEvent(this.secondaryPaddle,i.eventTypes.click,this.slideSecondary);var n=i.nodeListToArray(this.nav.children);i.addEvent(n,i.eventTypes.click,this.handleSlideIfDisabled);i.addEvent(n,i.eventTypes.focusin,this.handleFromKeyboardSlideIfDisabled)}},n.prototype.handleMoveIntoMobileViewport=function(){var t,n,u;if(this.primaryPaddle&&this.nav){for(this.hide(this.primaryPaddle),this.hide(this.secondaryPaddle),this.primaryPaddle.tabIndex=0,this.secondaryPaddle.tabIndex=0,this.firstMenuItem.style.transition="",i.removeEvent(this.primaryPaddle,i.eventTypes.click,this.slidePrimary),i.removeEvent(this.secondaryPaddle,i.eventTypes.click,this.slideSecondary),t=i.nodeListToArray(this.nav.children),i.removeEvent(t,i.eventTypes.click,this.handleSlideIfDisabled),i.removeEvent(t,i.eventTypes.focusin,this.handleFromKeyboardSlideIfDisabled),n=0;n=0?!1:n.indexOf("windows nt")===-1?!1:i<=90?!0:!1},t.isNotEdgeWin10=function(){var n=navigator.userAgent.toLowerCase();return!(n.indexOf("edge")>=0)&&n.indexOf("windows nt 10")>=0},t.isEdgeOnWindows=function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("edge")>=0},t}(u.Publisher);t.UhfPromoBanner=f});define("uhfSearchModule",["require","exports","htmlExtensions","stringExtensions","utility","uhfUssCategoryService","msccHelper","uhfTelemetryHelper","uhfUtility"],function(n,t,i,r,u,f,e,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=new e.MsccHelper,c=function(){function n(n,t,e,c){var l=this,a,v,y;if(this.searchForm=n,this.showCallback=t,this.autoSuggest=e,this.overflowMenuCallback=c,this.width="",this.searchOpenedClass="f-search-opened",this.focusedClass="js-focused",this.stSelector=".c-sgl-stck",this.searchLabelSelector="#search span",this.searchisOpen=!1,this.windowResizedSearchOpen=!1,this.ussCategoryExpId="StoreSearch",this.ussCategoryCtrlId="AllSearch",this.canHideSearchBox=function(){return u.getWindowWidth()<1400},this.hideSearchBox=function(){l.searchisOpen?l.globalNav&&(l.globalNav.style.display="none"):(l.searchBox&&(l.searchBox.style.display="none",l.searchButton.setAttribute("aria-expanded","false")),l.autoSuggestScreenReader&&i.addClass(l.autoSuggestScreenReader,"x-hidden"))},this.showSearchBox=function(){l.searchBox&&(l.searchBox.style.display="inline-block",l.searchButton.removeAttribute("aria-expanded"));l.autoSuggestScreenReader&&i.removeClass(l.autoSuggestScreenReader,"x-hidden");l.searchisOpen&&l.globalNav&&(l.globalNav.style.display="block")},this.onSearchBoxChange=function(){l.searchBox.value.trim()!==""&&h.setConsent()},this.log=function(){if(window.msCommonShell){(typeof window.msCommonShell.events=="undefined"||typeof window.msCommonShell.events.onSearch=="undefined")&&(window.msCommonShell.events={onSearch:function(){if(event.type){var n=document.getElementById("cli_shellHeaderSearchInput"),t={title:"Search_nav",trackType:"manual",telemetryType:"jsll",event:event.type==="click"?"CL":"KE",srchq:n?n.value:""};o.trackEvent(t)}}});var n=window.msCommonShell.events.onSearch;n&&n(l.searchForm)}},this.addQsp=function(n,t){if(n&&t){var i=document.createElement("input");i.setAttribute("type","hidden");i.setAttribute("name",n);i.setAttribute("value",t);i.setAttribute("data-bi-dnt","");i.setAttribute("data-bi-mto","");l.searchForm.appendChild(i)}},this.isHidden=function(){return l.singleStackEnabled?i.css(l.searchBox,"display")==="none"||l.searchCloseButton.getAttribute("aria-expanded")==="false"?!0:!i.hasClass(l.searchParentElement,l.searchOpenedClass):u.getWindowWidth()>=1400?!1:!i.hasClass(l.searchParentElement,l.searchOpenedClass)},this.showAndFocus=function(){var n=u.Viewports.getViewport();l.singleStackEnabled||l.showCallback&&l.showCallback();i.addClass(l.searchParentElement,l.searchOpenedClass);n<5&&(i.css(l.searchBox,"display","inline-block"),l.autoSuggestScreenReader&&i.removeClass(l.autoSuggestScreenReader,"x-hidden"));l.singleStackEnabled&&i.css(l.searchBox,"display","block");i.css(l.searchBox,"width",l.width);l.searchCloseButton.setAttribute("aria-expanded","true");l.searchButton.removeAttribute("aria-expanded");l.searchBox.focus();l.singleStackEnabled||(l.shoppingCart&&n<3&&i.addClass(l.shoppingCart,"x-hidden"),l.meControl&&n<3&&i.addClass(l.meControl,"x-hidden"));l.singleStackEnabled&&l.showCallback&&l.showCallback();l.searchisOpen=!0},this.hide=function(){var n=u.Viewports.getViewport();l.autoSuggest&&l.autoSuggest.hide();i.css(l.searchBox,"width","");i.removeClass(l.searchParentElement,l.searchOpenedClass);l.searchCloseButton.setAttribute("aria-expanded","false");n<5&&(i.css(l.searchBox,"display","none"),l.autoSuggestScreenReader&&i.addClass(l.autoSuggestScreenReader,"x-hidden"),l.searchButton.setAttribute("aria-expanded","false"));l.singleStackEnabled&&(i.css(l.searchBox,"display","none"),l.searchButton.setAttribute("aria-expanded","false"),l.searchButton.focus(),l.searchBox.value="");n<3&&(l.shoppingCart&&i.hasClass(l.shoppingCart,"x-hidden")&&i.removeClass(l.shoppingCart,"x-hidden"),l.meControl&&i.hasClass(l.meControl,"x-hidden")&&i.removeClass(l.meControl,"x-hidden"));!l.singleStackEnabled&&n>3&&l.searchisOpen&&l.globalNav&&(l.globalNav.style.display="block");l.singleStackEnabled&&s.STViewports.getViewportSt()>=3&&l.windowResizedSearchOpen&&l.overflowMenuCallback&&(l.overflowMenuCallback(),l.windowResizedSearchOpen=!1);l.searchisOpen=!1},this.handleSearchButtonClick=function(n){if(!l.isHidden()){l.onSearch(n);return}i.preventDefault(n);l.showAndFocus()},this.toggleFocusAndClickListeners=function(n,t,r){var u=r?i.removeEvent:i.addEvent;u(n,i.eventTypes.focus,t,!0);u(n,i.eventTypes.click,t,!0)},this.handleSearchCancelButton=function(n){n.preventDefault();n.keyCode===27||n.keyCode===13?l.hideSearch():n.keyCode===9&&l.searchBox.focus()},this.focusInHandler=function(){l.isHidden()||(i.addClass(l.searchForm,l.focusedClass),l.toggleFocusAndClickListeners(l.searchForm,l.focusInHandler,!0),l.toggleFocusAndClickListeners(document.body,l.focusOutHandler))},this.focusOutHandler=function(n){l.singleStackEnabled||l.parentHasClass(n.target,l.focusedClass)?l.singleStackEnabled&&(!l.parentHasClass(n.target,l.focusedClass)&&!l.parentHasClass(n.target,"cancel-search")||n instanceof KeyboardEvent&&n.keyCode===27)&&l.hideSearch():l.hideSearch()},this.hideSearch=function(){i.removeClass(l.searchForm,l.focusedClass);l.toggleFocusAndClickListeners(document.body,l.focusOutHandler,!0);l.toggleFocusAndClickListeners(l.searchForm,l.focusInHandler);l.autoSuggest&&l.autoSuggest.hide();l.hide()},this.parentHasClass=function(n,t){if(n){if(i.hasClass(n,t))return!0}else return!1;return l.parentHasClass(n.parentNode,t)},n){this.searchBox=i.selectFirstElement("input",this.searchForm);try{a=window._pageBITags.pageTags;v=a.expId.toLowerCase().split(",");this.ussCategoryExpEnabled=v.indexOf("ex:"+this.ussCategoryExpId.toLowerCase())>-1;this.ussCategoryCtrlEnabled=v.indexOf("ex:"+this.ussCategoryCtrlId.toLowerCase())>-1;this.market=a.mkt}catch(p){this.ussCategoryExpEnabled=!1}this.ussCategoryExpEnabled&&this.market?(this.categoryService=new f.UhfUssCategoryService(this.market),i.addDebouncedEvent(this.searchBox,i.eventTypes.keyup,function(){l.categoryService.queryService(r.trim(l.searchBox.value))},100),this.addQsp("flt",this.ussCategoryExpId)):this.ussCategoryCtrlEnabled&&this.addQsp("flt",this.ussCategoryCtrlId);this.searchParentElement=i.selectFirstElement(".js-global-head");this.searchButton=i.selectFirstElement("button",this.searchForm);i.addEvent(this.searchButton,i.eventTypes.click,this.handleSearchButtonClick);this.searchCloseButton=i.selectFirstElement(".c-action-trigger.glyph-arrow-htmllegacy");i.addEvent(this.searchCloseButton,i.eventTypes.click,this.hide);i.addEvent(this.searchBox,i.eventTypes.input,this.onSearchBoxChange);this.toggleFocusAndClickListeners(this.searchForm,this.focusInHandler);y=i.selectFirstElement(this.stSelector);this.singleStackEnabled=y!==null;this.searchLabel=i.selectFirstElement(this.searchLabelSelector);this.autoSuggestScreenReader=i.selectFirstElement(".c-search .x-screen-reader");this.meControl=i.selectFirstElement("#meControl");this.shoppingCart=i.selectFirstElement("#uhf-shopping-cart");this.globalNav=i.selectFirstElement("#uhf-g-nav");this.singleStackEnabled?(i.addEvent(n,i.eventTypes.keydown,this.focusOutHandler),this.searchCancel=i.selectFirstElement("#cancel-search"),i.addEvent(this.searchCancel,i.eventTypes.click,this.hideSearch),i.addEvent(this.searchCancel,i.eventTypes.keydown,this.handleSearchCancelButton)):this.canHideSearchBox()?this.hideSearchBox():this.canHideSearchBox()||this.showSearchBox()}}return n.prototype.onSearch=function(n){var t=this,u=r.trim(this.searchBox.value),i;return u.length?this.ussCategoryExpEnabled?(n.preventDefault(),i=!1,this.categoryService.getCategory(u,function(n){!i&&n&&(t.searchForm.setAttribute("action","/"+t.market+"/store/search/"+n),t.log(),t.searchForm.submit(),i=!0)}),setTimeout(function(){i||(t.log(),t.searchForm.submit(),i=!0)},100),!1):(this.log(),!0):(n.preventDefault(),this.searchBox.focus(),!1)},n.prototype.setSearchBoxWidth=function(n){this.width=n;this.isHidden()||i.css(this.searchBox,"width",n)},n.prototype.getSearchFormElement=function(){return this.searchForm},n}();t.UhfSearchModule=c});require(["componentFactory","universalHeader","uhfMeControl"],function(n,t,i){n.ComponentFactory&&n.ComponentFactory.create&&(n.ComponentFactory.create([{c:t.UniversalHeader}]),n.ComponentFactory.create([{c:i.UhfMeControl,eventToBind:"DOMContentLoaded"}]))});require(["componentFactory","universalHeader","uhfMeControl"],function(n,t,i){n.ComponentFactory&&n.ComponentFactory.create&&(n.ComponentFactory.create([{c:t.UniversalHeader}]),n.ComponentFactory.create([{c:i.UhfMeControl,eventToBind:"DOMContentLoaded"}]))});define("jquery",[],function(){return jQuery});define("uhfTelemetryHelper",["require","exports","htmlExtensions"],function(n,t,i){"use strict";function e(n){var e=!1,o,s,t;if(n){o=i.selectFirstElement("#cli_shellHeaderSearchInput");o&&(s=o.getAttribute("data-m"),s&&(t=JSON.parse(s),t&&(t.cN&&(n.cN=t.cN),t.aN&&(n.aN=t.aN),t.id&&(n.id=t.id),t.sN&&(n.sN=t.sN))));switch(n.trackType){case"autosuggest":e=r(n);break;case"manual":e=u(n);break;case"searchInitiate":e=f(n)}}return e}function r(n){if(n.telemetryType==="jsll"){var t=n.suggestionType,i=t,r={term:"0",product:"4"}[i],u={behavior:60,actionType:n.event,contentTags:{cN:n.resultselected,aN:n.aN,id:n.id,sN:n.sN,cT:r,pid:n.pid,srchq:n.srchq,srchtype:"auto suggest",asdisplayed:!0,aslinkpos:n.aslinkpos,qrylngth:n.qrylngth,resultselected:n.resultselected}};if(window.awa&&window.awa.ct&&typeof window.awa.ct.captureContentPageAction=="function")return window.awa.ct.captureContentPageAction(u),!0}else if(n.telemetryType==="wedcs"&&typeof MscomCustomEvent=="function")return window.MscomCustomEvent("wcs.cn",n.title,"wcs.cot",4),!0;return!1}function u(n){if(n.telemetryType==="jsll"){var t={behavior:61,actionType:n.event,contentTags:{cN:n.title,aN:n.aN,id:n.id,sN:n.sN,srchq:n.srchq,srchtype:"manual"}};if(window.awa&&window.awa.ct&&typeof window.awa.ct.captureContentPageAction=="function")return window.awa.ct.captureContentPageAction(t),!0}return!1}function f(n){if(n.telemetryType==="jsll"){var t={behavior:62,actionType:n.event,contentTags:{cN:"Search_nav",aN:n.aN,id:n.id,sN:n.sN,srchq:n.srchq,srchtype:"manual"}};if(window.awa&&window.awa.ct&&typeof window.awa.ct.captureContentPageAction=="function")return window.awa.ct.captureContentPageAction(t),!0}return!1}function o(n){if(n){var t=new Image;t.src=n}}Object.defineProperty(t,"__esModule",{value:!0});t.trackEvent=e;t.trackAutoSuggestEvents=r;t.trackManualEvents=u;t.trackSearchInitiateEvents=f;t.fireBeacon=o});define("uhfUssCategoryService",["require","exports"],function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.market=n;this.responseCache={};this.ajaxCall=function(n,t){var i=new XMLHttpRequest;i.open("GET",n);i.onreadystatechange=function(){this.readyState===4&&this.status>=200&&this.status<400&&t(this.responseText)};i.send();i=null}}return n.prototype.getServiceUrl=function(n){return"https://ussearchprod.trafficmanager.net/services/api/v1.0/store/categories"+("?clientid=7f27b536-cf6b-4c65-8638-a0f8cbdfca65&scope=games,apps,devices,software&query="+n+"&markets="+this.market)},n.prototype.getCachedCategory=function(n){return this.responseCache[this.getCacheKey(n)]},n.prototype.getCategory=function(n,t){var i=this.getCachedCategory(n);i?t(i):this.queryService(n,t)},n.prototype.queryService=function(n,t){var i=this;if(!n||this.getCachedCategory(n)){t&&t(null);return}this.ajaxCall(this.getServiceUrl(n),function(n){try{var r=JSON.parse(n),u=r.categories&&r.categories[0],f=r.query;!u||!f.trim()?t&&t(null):(i.responseCache[i.getCacheKey(f)]=u,t&&t(u))}catch(e){t&&t(null)}})},n.prototype.getCacheKey=function(n){return encodeURIComponent(n.trim().toLowerCase())},n}();t.UhfUssCategoryService=i});define("uhfUtility",["require","exports","utility"],function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r;(function(n){function t(){var t;if(window.matchMedia){for(t=0;t=3&&t.overflowMenuElement.handleMoveIntoDesktopViewport()};this.setSearchWidth=function(){var i="",f;if(!t.isSingleStack&&s.Viewports.getViewport()>=3&&s.Viewports.getViewport()<=4){var n=o.getClientRect(t.globalLogo),u=o.getClientRect(t.searchModule.getSearchFormElement()),r=(n?n.right:699)=3&&(f=s.getWindowWidth(),i=Math.abs(f*(70/100))+"px");t.searchModule.setSearchBoxWidth(i)};this.updateBannerBufferHeight=function(){if(o.css(t.headerElement,"position")==="absolute"){var u=parseInt(o.css(t.headerElement,"top"),10)||0,n=t.cookieAlert!=null?t.cookieAlert.getHeight():0,i=t.edgePromoBanner!=null?t.edgePromoBanner.getHeight():0,r=n>i?n:i;r!==u&&t.setHeaderTop(r+"px")}};this.delegateBannerNotification=function(n){t.setHeaderTop(n.height+"px")};this.swapCategoryHeader=function(n){if(n){var r=o.selectFirstElement(g),u=document.createElement("DIV");u.innerHTML=n;r.parentNode.replaceChild(u.querySelector(g),r);e.NavigationMenus.init();t.catPaddles=new i.UhfPaddles(o.selectFirstElement(g));t.isMobile()?(e.NavigationMenus.handleMoveIntoMobileViewport(),t.catPaddles.handleMoveIntoMobileViewport()):(e.NavigationMenus.handleMoveIntoDesktopViewport(),t.catPaddles.handleMoveIntoDesktopViewport())}};this.updateTabindexOrder=function(n){if(n===void 0&&(n=!1),t.isSingleStack){var i=1;n?(!t.cookieAlertCancel||(t.cookieAlertCancel.setAttribute(k,i.toString()),i+=1,!t.cookieAlertAboutAds||(t.cookieAlertAboutAds.setAttribute(k,i.toString()),i+=1)),!t.skipToMainBanner||(t.skipToMainBanner.setAttribute(k,i.toString()),i+=1),!t.hamburgerButton||(t.hamburgerButton.setAttribute(k,i.toString()),i+=1),!t.categoryButton||(t.categoryButton.setAttribute(k,i.toString()),i+=1),!t.searchButton||(!t.searchBox||(t.searchBox.setAttribute(k,i.toString()),i+=1),t.searchButton.setAttribute(k,i.toString()),i+=1,!t.searchReturnButton||t.searchReturnButton.setAttribute(k,i.toString())),!t.globalLogo||(t.globalLogo.setAttribute(k,i.toString()),i+=1),!t.shoppingCart||(t.shoppingCart.setAttribute(k,i.toString()),i+=1),!t.meControl||(t.meControl.setAttribute(k,i.toString()),i+=1)):(!t.cookieAlertCancel||t.cookieAlertCancel.removeAttribute(k),!t.cookieAlertAboutAds||t.cookieAlertAboutAds.removeAttribute(k),!t.skipToMainBanner||t.skipToMainBanner.setAttribute(k,"0"),!t.hamburgerButton||t.hamburgerButton.removeAttribute(k),!t.searchBox||t.searchBox.removeAttribute(k),!t.searchButton||t.searchButton.removeAttribute(k),!t.searchReturnButton||t.searchReturnButton.removeAttribute(k),!t.globalLogo||t.globalLogo.removeAttribute(k),!t.shoppingCart||t.shoppingCart.removeAttribute(k),!t.meControl||t.meControl.setAttribute(k,"0"),!t.categoryButton||t.categoryButton.removeAttribute(k))}};this.isSingleStack=o.selectFirstElement(".c-sgl-stck");this.headerElement=o.selectFirstElement(n.selector);this.globalLogo=o.selectFirstElement(d+" .c-logo");this.cookieAlertCancel=o.selectFirstElement(nt);this.cookieAlertAboutAds=o.selectFirstElement(tt);this.skipToMainBanner=o.selectFirstElement(it);this.hamburgerButton=o.selectFirstElement(d+" "+rt+" ");this.searchReturnButton=o.selectFirstElement(d+" "+ut);this.globalHeaderElement=o.selectFirstElement(d);o.removeClass(this.headerElement,"no-js");this.catPaddles=new i.UhfPaddles(o.selectFirstElement(g));this.globalPaddles=new i.UhfPaddles(o.selectFirstElement(d));this.applyFlexClassNameForLegacyBrowsers();this.isMobile()&&!this.wasMobile?(e.NavigationMenus.init(),e.NavigationMenus.handleMoveIntoMobileViewport(),this.wasMobile=!0,this.catPaddles.handleMoveIntoMobileViewport(),this.globalPaddles.handleMoveIntoMobileViewport()):(this.wasMobile=!1,this.catPaddles.handleMoveIntoDesktopViewport(),this.globalPaddles.handleMoveIntoDesktopViewport(),this.menuElement=o.selectElements(".c-uhf-menu"),!this.menuElement||o.addEvent(this.menuElement,o.eventTypes.click,this.initializeMenus),this.isSingleStack&&(this.overflowMenuElement=new f.UhfOverflowMenu,this.overflowMenuElement.handleMoveIntoDesktopViewport()));this.searchElement=o.selectFirstElement(d+" .c-search");this.searchBox=o.selectFirstElement("input",this.searchElement);this.searchButton=o.selectFirstElement("button",this.searchElement);this.initializeSearch();ct=!!o.selectFirstElement("#"+r.ShoppingCart.shoppingCartFrameId);ct&&new r.ShoppingCart;this.shoppingCart=o.selectFirstElement(r.ShoppingCart.shoppingCartAnchorId);this.meControl=o.selectFirstElement(ft);this.categoryButton=o.selectFirstElement(et);o.addThrottledEvent(window,o.eventTypes.resize,this.onWindowResize,66);p=o.selectFirstElement("#uhfCookieAlert");p&&(this.cookieAlert=new c.UhfCookieAlert(p),this.cookieAlert.subscribe({onBannerClosed:this.delegateBannerNotification}),this.updateBannerBufferHeight());var lt=window.mscc,ht=o.selectFirstElement("#epb"),at=o.hasClass(p,this.hiddenClass)||lt&&!lt.isVisible();(!p||at)&&(this.edgePromoBanner=new l.UhfPromoBanner(ht),this.edgePromoBanner.subscribe({onBannerClosed:this.delegateBannerNotification}),this.updateBannerBufferHeight());(!p||at)&&(!ht||o.hasClass(ht,this.hiddenClass))&&(vt=o.selectFirstElement("#swp"),o.removeClass(vt,this.hiddenClass));st.setAction();a.UhfLanguageToggle.init();v.UhfCookieAuditor.audit();yt=new y.UhfGreenId;setTimeout(yt.createGreenIdIframe,6e3);window.msCommonShell=window.msCommonShell||{};pt=window.msCommonShell._catHTML;window.msCommonShell._catHTML=null;window.msCommonShell.swapCategoryHeader=this.swapCategoryHeader.bind(this);this.swapCategoryHeader(pt);this.updateTabindexOrder(this.isMobile());o.addEvent(window,o.eventTypes.resize,this.stickFooterToBottom);this.stickFooterToBottom();this.isSingleStack&&!this.isMobile()&&this.enableKeyBoardNavigation()}return n.prototype.setHeaderTop=function(n){o.css(this.headerElement,"top",n)},n.prototype.checkForViewportChange=function(){var n=this.isMobile();n&&!this.wasMobile?(!this.menuElement||o.removeEvent(this.menuElement,o.eventTypes.click,this.initializeMenus),e.NavigationMenus.isMenuInitialized||e.NavigationMenus.init(),this.isSingleStack&&this.overflowMenuElement&&this.overflowMenuElement.handleMoveIntoMobileViewport(),e.NavigationMenus.handleMoveIntoMobileViewport(),this.searchModule&&this.searchModule.hide(),this.catPaddles.handleMoveIntoMobileViewport(),this.globalPaddles.handleMoveIntoMobileViewport(),this.updateTabindexOrder(!0),this.wasMobile=!0):!n&&this.wasMobile&&(e.NavigationMenus.handleMoveIntoDesktopViewport(),this.searchModule&&this.searchModule.hide(),this.catPaddles.handleMoveIntoDesktopViewport(),this.globalPaddles.handleMoveIntoDesktopViewport(),this.isSingleStack&&(this.overflowMenuElement?this.overflowMenuElement.handleMoveIntoDesktopViewport():(this.overflowMenuElement=new f.UhfOverflowMenu,this.overflowMenuElement.handleMoveIntoDesktopViewport())),this.wasMobile=!1,this.updateTabindexOrder())},n.setTheme=function(t){var s=o.selectFirstElement(".c-uhfh.f-transparent"),u,f,e;if(s){var h=o.selectElements(d+","+g,s),i=("theme-"+t).toLowerCase(),c=/theme-(dark|light)/,r=c.test(i)?h[0].className.match(c)[0]:!1;if(!!r&&r!==i)for(n.swapLogoImage(i,r),u=0,f=h;u div:first-child .c-logo .c-image",n}();t.UniversalHeader=ht})})()