(function(n){var r=window.AmazonUIPageJS||window.P,w=r._namespace||r.attributeErrors,k=w?w("QTipsWebLibrary",""):r;k.guardFatal?k.guardFatal(n)(k,window):k.execute(function(){n(k,window)})})(function(n,r,w){(function(){n.when("jQuery","QTipsConstants","ready").register("QTipLibrary",function(k,d){var a={Model:function(a){this.attributes=a||{};this.set(a);this.initialize.apply(this,arguments)}};k.extend(a.Model.prototype,{initialize:function(){},get:function(a){if(this.attributes&&this.attributes.hasOwnProperty(a))return this.attributes[a]},
has:function(a){return null!==this.get(a)&&this.get(a)!==w},set:function(a){for(var d in a)a.hasOwnProperty(d)&&(this.attributes[d]=a[d])},unset:function(a){delete this.attributes[a]},parse:function(a,d){return a},toJson:function(){return this.attributes?JSON.stringify(this.attributes):""}});a.Collection=function(a){this.models=a||{};this.initialize.apply(this,arguments)};k.extend(a.Collection.prototype,{initialize:function(){},at:function(a){if(this.models&&this.models.hasOwnProperty(a))return this.models[a]},
add:function(a){a&&(this.models[this.modelLength()]=a)},remove:function(a){for(var d in this.models)this.models[d]===a&&delete this.models[d]},create:function(a){a=this.parse(a);for(var d in a)a.hasOwnProperty(d)&&this.add(a[d])},_prepareModel:function(e){if(this.model&&e){for(var g in e)if(e.hasOwnProperty(g)){var c=e[g];d.regex.numberRegex.test(c)&&(c=Number(c));e[g]=c}e=new a.Model(e)}return e},set:function(a){this.model=a},modelLength:function(){if(this.models)return Object.keys(this.models).length},
parse:function(a,d){return a},toJson:function(){return JSON.stringify(this.models)}});a.View=function(a){this.tagName=a||"\x3cdiv/\x3e";this.template=this.template||"";this.initialize.apply(this,arguments)};k.extend(a.View.prototype,{events:{},initialize:function(){},render:function(){},remove:function(){},_removeElement:function(a){a=k(a);this.isDefined(a)&&this.isDefined(a[0])&&(a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a))},setElement:function(a,d){k(a).append(d)},getElement:function(a){if((a=
k(a))&&0<a.length)return a[0].lastChild},add:function(a,d){d=this._createElement(this.template,d);this.setElement(a,d);return d},_createElement:function(a,d){a=this._processTemplate(a,d);return k(this.tagName).html(a)},_processTemplate:function(a,g){var c=a.match(d.regex.templateSpliterRegex);if(c)for(var b=0;b<c.length;b++){var e=c[b].match(/\w+/)[0];g&&g.has(e)&&(a=a.replace(c[b],g.get(e)))}return a},isDefined:function(a){return null!==a&&a!==w}});a.Model.extend=a.Collection.extend=a.View.extend=
function(a,d){var c=this,b=a&&"object"===typeof a&&a.hasOwnProperty("constructor")?a.constructor:function(){return c.apply(this,arguments)};k.extend(b,c,d);d=function(){this.constructor=b};d.prototype=c.prototype;b.prototype=new d;a&&k.extend(b.prototype,a);b.__super__=c.prototype;return b};return a})})();(function(){n.when("A","a-sheet","QTips").execute(function(k,d,a){k.on("a:sheet:beforeShow",function(d){a.view.dismissAndRender()});k.on("a:sheet:afterHide",function(d){a.view.dismissAndRender()})});
n.when("A","a-popover","QTips").execute(function(k,d,a){k.on("a:popover:beforeShow",function(d){a.view.dismissAndRender()});k.on("a:popover:afterHide",function(d){a.view.dismissAndRender()})});n.when("A","all-offers-display-content-loader","QTips").execute(function(k,d,a){k.on("aod-event-opened",function(d){a.view.dismissAndRender()});k.on("aod-event-closed",function(d){a.view.dismissAndRender()})});n.when("A","jQuery","QTipsConstants","QTipLibrary","QTipsStyles","QTipsMetrics","SAConfig","NestedShoppingAidHelper",
"ShoppingAidsGenericUtils","AnchorBasedSAUtils","SAMetricConstants","SAPAttributionHandler","SAFeature","FeatureAttributionConstants","SACommonConstants").register("QTips",function(k,d,a,e,g,c,b,l,f,h,q,m,B,u,y){var p={isDefined:function(a){return f.isDefined(a)},platformCheck:function(){return f.platformCheck()},cleanUpCachingInstrumentation:function(){var a=f.removeFromLocalStorageIfPresent("SAcacheConfig_4");c.incrementCounter("SAcacheConfig_4_"+a)},getCurrentLoP:function(){return f.getCookie(b.cookies.language)||
b.defaultLoP},getPreviousLoP:function(){return f.isMShop()&&f.isAndroidDevice()?f.getQueryParameter("previous_lop"):f.getFromLocalStorage("previous_lop")||b.defaultLoP},saveCurrentLoP:function(){f.setInLocalStorage("current_lop",this.getCurrentLoP())},savePreviousLoP:function(){if(!f.isMShop()||!f.isAndroidDevice()){var a=f.getFromLocalStorage("current_lop");a&&f.setInLocalStorage("previous_lop",a)}},isGuidedTour:function(a){return"guidedtour"===a.get("dismissalType")},updateRetryCount:function(a){var d=
a.get("retryCount");-1<=d&&a.set({retryCount:d-1})}},t={};t.model=new e.Model;t.utils=p;t.addStyles=function(){var a=document.createElement("style");a.innerHTML=g;document.head.appendChild(a)};var O=e.Collection.extend({model:t.model,elementAnchorList:[],invokingEventsMap:{},auiTriggerHandler:{},tipStartTime:0,isSet:!1,registerEvent:function(a,d){if(d){d=a.eventType;var b=a.invokingEventElement;a=this}else d=a.data.eventType,b=a.data.invokingEventElement,a=a.data.self;if(d in a.invokingEventsMap)f.isDefined(a.invokingEventsMap[d])&&
-1===a.invokingEventsMap[d].indexOf(b)&&a.invokingEventsMap[d].push(b);else{var c=[];c.push(b);a.invokingEventsMap[d]=c}},add:function(b){try{if(c.incrementCounter("qtips_add_initiated"),f.isDefined(b)&&f.isDefined(b.get("elementAnchor"))&&(b.get("weblabTriggerOnlyFlag")||f.isDefined(b.get("maxDisplayCount"))&&0<b.get("maxDisplayCount"))){var z=b.get("elementAnchor");var m=isNaN(z)?h.processAnchor(z,a.regex.anchorSpliterRegex):z;b.set({elementAnchor:m});z={};z[b.get("elementAnchor")]=b.get("sequenceNum");
z.schedulingType=b.get("schedulingType");b.set({retryCount:a.view.retryCount});b.get("onDemand")?this.elementAnchorList.unshift(z):this.elementAnchorList.push(z);this.models[b.get("elementAnchor")]=b;var e=b.get("invokingEventElement"),x=b.get("invokingEventType");if(f.isDefined(e)&&0<e.length&&f.isDefined(x)&&0<x.length&&x.toLowerCase()!==a.PartnerEvent)e=h.processAnchor(e,a.regex.anchorSpliterRegex),d(e).bind(x,{eventType:x,invokingEventElement:e,self:this},this.registerEvent);else if(f.isDefined(e)&&
0<e.length&&f.isDefined(x)&&0<x.length){var l=k.on(e,function(){t.collection.registerEvent({eventType:x,invokingEventElement:e},!0)});this.auiTriggerHandler[e]=l}}}catch(A){c.incrementCounter("qtips_model_undefined"),n.log(A,"WARN","QTips")}},parse:function(a,d){if(p.isDefined(a)){var b=this._prepareModel.bind(this);a.forEach(function(d,c,e){a[c]=b(d)});return a}}});t.collection=new O;e=e.View.extend({isDismissInvoked:!0,isToolTipSafeToBeDisplayed:!0,isAnchorDescriptionUpdated:!1,nativeToolTipDisplayBackoffMap:{},
currentSequence:0,qtipsId:"#qtips",highlighterId:"#sa-highlighter",pageAnchor:"body",qtipDismissIcon:"#qtip-dismiss-cross",qtipVideoId:"#qtip-video",popoverClass:a.popOverAnchors.popoverClass,searchSugesstions:a.popOverAnchors.searchSugesstions,searchFilterPage:a.popOverAnchors.searchFilterPage,anchor:"#buyNow",defaultArrowPosition:"topright",qtipThumbnailId:"#qtip-thumbnail",qtipThumbnailTextId:"#qtip-thumbnail-text",identifier:"",dismissalEvent:"",scrollHideToolTipEvent:"scroll.hideToolTip",scrollUpdateCoordinateEvent:"scroll.updateCoordinate",
scrollEndUpdateCoordinateEvent:"scrollend.updateCoordinate",scrollAnimationStopEvent:"scroll.animateStop",collection:t.collection,events:{"touchstart click keyup":"dismissAndRender",scroll:"dismissAndRender",orientationchange:"dismissAndRender","blur focus":"dismissOrRender","visibilitychange webkitvisibilitychange":"visibilityChange"},eventHandlers:{},toolTipVideoPlayed:{},pageType:"unknown",setPageType:function(a){a&&(this.pageType=a)},getPageType:function(){return this.pageType},addStaticToolTipHandlers:function(a){if(a.get("videoSource")){var b=
this,c=a.get("identifier");b.addDismissIconHandlers(a);d(b.qtipsId).bind("click.videoToolTip keypress",{model:a,tipId:c},function(c){if("keypress"!==c.type||13===c.charCode||32===c.charCode)f.isDefined(b.animateIntervalId)&&(clearInterval(b.animateIntervalId),b.animateIntervalId=w),b.animateVideo(a),b.clearFadeOut(),d(b.qtipsId).unbind("click.videoToolTip"),b.addVideoToolTipHandlers(a),b.addDismissIconHandlers(a)})}},addDismissIconHandlers:function(a){var b=this;a=a.get("identifier");d(this.qtipDismissIcon).bind("click.staticToolTip",
{eventType:"dismissalByUser",tipId:a},function(a){var d=a.data.tipId;b.countLogger("dismiss_icon_clicked",d);b.toolTipVideoPlayed&&b.toolTipVideoPlayed[d]?b.countLogger("dismissed_after_video_played",d):b.countLogger("dismissed_before_video_played",d);b.dismissAndRender.call(b,a);a.stopPropagation()})},addVideoToolTipHandlers:function(a){var b=this;a=a.get("identifier");d(this.qtipVideoId).bind("play.videoToolTip",{tipId:a},function(a){a=a.data.tipId;b.toolTipVideoPlayed&&!b.toolTipVideoPlayed[a]&&
(b.toolTipVideoPlayed[a]=b.getVideoPlayedMetricsObject());b.countLogger("video_played",a)});d(this.qtipVideoId).bind("timeupdate.videoToolTip",{tipId:a},k.throttle(function(a){a=a.data.tipId;var c=d(b.qtipVideoId);if(c[0]){c=Math.ceil(4*c[0].currentTime/c[0].duration);var e=b.toolTipVideoPlayed[a];if(b.toolTipVideoPlayed&&e&&1<=c){if(!e.firstQuarterPublished){var m=1;e.firstQuarterPublished=!0}2<=c&&(e.secondQuarterPublished||(m=2,e.secondQuarterPublished=!0),3<=c&&(e.thirdQuartedrublished||(m=3,
e.thirdQuartedrublished=!0),4<=c&&!e.fourthQuarterPublished&&(m=4,e.fourthQuarterPublished=!0)));m&&b.countLogger("video_length_played_"+m,a);b.toolTipVideoPlayed[a]=e}}},1E3));d(this.qtipVideoId).bind("error.videoToolTip",{tipId:a},function(a){b.countLogger("video_failed_to_load",a.data.tipId)})},getVideoPlayedMetricsObject:function(){return{firstQuarterPublished:!1,secondQuarterPublished:!1,thirdQuartedrublished:!1,fourthQuarterPublished:!1}},addAutoDismissalHandlers:function(){for(var a in this.events)this.events.hasOwnProperty(a)&&
!f.isDefined(this.eventHandlers[a])&&(this.eventHandlers[a]=this[this.events[a]].bind(this),d(r).bind(a,this.eventHandlers[a]))},makeToolTipVisible:function(a,b,c){d(t.view.qtipsId).length&&h.isElementVisible(a)&&(t.view.adjustCoordinates(a,c.get("elementArrowPosition")||this.defaultArrowPosition,c.get("offsetX"),c.get("offsetY"),!0),d(t.view.qtipsId).css({visibility:"visible"}),b.isToolTipHidden=!1)},bindScrollHandlers:function(a,b){var c={isToolTipHidden:!1};d(r).bind(t.view.scrollHideToolTipEvent,
function(){!c.isToolTipHidden&&d(t.view.qtipsId).length&&(d(t.view.qtipsId).css({visibility:"hidden"}),c.isToolTipHidden=!0)});if("onscrollend"in r)d(r).bind(t.view.scrollEndUpdateCoordinateEvent,k.throttle(function(){t.view.makeToolTipVisible(a,c,b)},50));else{var e;d(r).bind(t.view.scrollUpdateCoordinateEvent,function(){clearTimeout(e);e=setTimeout(function(){t.view.makeToolTipVisible(a,c,b)},50)})}d(r).bind("visibilitychange webkitvisibilitychange",function(){t.view.visibilityChange();t.view.unbindScrollHandler()})},
unbindScrollHandler:function(){d(r).unbind(t.view.scrollHideToolTipEvent);d(r).unbind(t.view.scrollEndUpdateCoordinateEvent);d(r).unbind(t.view.scrollUpdateCoordinateEvent)},removeStaticToolTipHandlers:function(){d(this.qtipDismissIcon).unbind("click.staticToolTip");d(this.qtipsId).unbind("click.videoToolTip keypress");d(this.qtipVideoId).unbind("play.videoToolTip");d(this.qtipVideoId).unbind("error.videoToolTip");d(this.qtipVideoId).unbind("timeupdate.videoToolTip")},removeAutoDismissalHandlers:function(){for(var a in this.events)this.events.hasOwnProperty(a)&&
f.isDefined(this.eventHandlers[a])&&(d(r).unbind(a,this.eventHandlers[a]),this.eventHandlers[a]=w)},render:function(b){var c=b.get("identifier");d(b.get("elementAnchor")).attr("aria-describedby")||(this.isAnchorDescriptionUpdated=!0,d(b.get("elementAnchor")).attr("aria-describedby","qtips-text"));var e=h.getIndexByAnchor(this.collection.elementAnchorList,this.anchor);if(f.weblabTriggerAndCheck(b))if(f.isShoppingAidForWeblabTesting(c))-1!==e&&this.dismissalHandler(e),this.nextQTip();else{this.fadeOut(this.remove.bind(this));
var m=this.addAndPosition(this.anchor,b);"hidden"!==document.visibilityState&&f.isDefined(m)&&(f.hasNoPopover(this.popoverClass,this.searchSugesstions,this.searchFilterPage)||h.isShoppingAidOverPopoverVisible(b.get("popoverAnchor"),b.get("elementAnchor")))&&(this.animateIn(b),d(this.qtipsId).attr(a.view.saDOMNameAttribute,c),"hotspot"!==b.get("tipType")&&(c=d(".qtips-text").width()+a.view.deltaX,m=d(this.qtipsId).width(),b.get("videoWidth"),c<m&&!b.get("videoSource")&&!t.utils.isGuidedTour(b)&&(d(this.qtipsId).width(c),
a.regex.positionRightRegex.test(b.get("elementArrowPosition"))&&(c=parseInt(d(this.qtipsId).css("left"),10)+(m-c)+a.view.deltaX,d(this.qtipsId).css({left:c}))),c=b.get("elementDuration")||a.timer.defaultAnimationTime,m=b.get("toolTipUXChangeAllocatedTreatment"),!f.isDefined(m)||"C"===m||f.isDefined(b.get("videoSource"))&&""!==b.get("videoSource")||!f.isPlatformSupportedForToolTipUxExperiment())&&(this.fadeTimeoutId=setTimeout(this.fadeOut.bind(this),c,this.nextQTip)),-1!==e&&(this.dismissalTimeoutId=
setTimeout(this.dismissalHandler.bind(this),a.timer.defaultDismissalCallbackTime,e)))}else-1!==e&&this.collection.elementAnchorList.splice(e,1),this.nextQTip()},dismissalHandler:function(b){var d=Object.keys(this.collection.elementAnchorList[b])[0],c=this.collection.elementAnchorList[b][d],e=this.collection.at(d).get("identifier"),l=this.collection.at(d).get("contextAwareIndex"),g=this.collection.at(d).get("schedulingType"),h=this.collection.at(d).get("elementDisplayType"),x=this.collection.at(d).get("maxDisplayCount"),
q=d,u=this.collection.at(d).get("videoSource");f.isDefined(u)||(u=a.EmptyString);var p=this.collection.at(d).get("toolTipUXChangeAllocatedTreatment");f.isDefined(p)||(p=a.EmptyString);f.isDefined(this.collection.at(d).get("featureAttributionAnchor"))&&(q=this.collection.at(d).get("featureAttributionAnchor"));var k=this.collection.at(d).get("onDemand"),t=this.collection.at(d).get("successResponse");this.collection.elementAnchorList.splice(b,1);f.isDefined(this.dismissalCallback)&&(b={identifier:e,
elementAnchor:d,sequenceNum:c,schedulingType:g,onDemand:k,contextAwareIndex:l,successResponse:t,featureAttributionAnchor:q,elementDisplayType:h,maxDisplayCount:x,videoSource:u,toolTipUXChangeAllocatedTreatment:p},this.dismissalCallback(b),d=f.platformCheck(),("html"===h.toLowerCase()||B.androidFeatureAttribution&&d!==y.MSHOP_IPHONE)&&m.enableFeatureAttribution(b))},dismissByUserHandler:function(b){var d=b.get("elementAnchor"),c=b.get("identifier");b=b.get("schedulingType");var e=this.collection.at(d).get("contextAwareIndex"),
m=this.collection.at(d).get("onDemand");d=this.collection.at(d).get("successResponse");c={identifier:c,schedulingType:b,onDemand:m,contextAwareIndex:e,successResponse:d,userEvent:a.userEvent.optOut};p.isDefined(this.dismissalCallback)&&this.dismissalCallback(c)},clickEventHandlerForUserDismissalTip:function(a){d(r).bind("click",function(){t.view.dismissAndRender()})},errorCallbackFunction:function(a,b){t.view.moveToolTipToEndOfList(b);var d=h.getIndexByAnchor(this.collection.elementAnchorList,b.get("elementAnchor"));
b.get("nestedSAList")&&t.utils.isGuidedTour(b)?t.view.handleGuidedTour(b,"Error"):"Class not found"===a&&(c.incrementCounter("ShoppingAids_CordovaRefactoring_PluginNotFound"),this.collection.elementAnchorList.splice(d,1));this.isToolTipSafeToBeDisplayed=!0;this.nativeToolTipDisplayBackoffMap[b.get("identifier")]=!1},successCallbackFunction:function(a,b,d,e){var m=b.get("identifier"),l=b.get("elementAnchor");l=h.getIndexByAnchor(this.collection.elementAnchorList,l);f.isDefined(d)&&f.isDefined(e)&&
(b.set({failureResponse:e}),b.set({successResponse:d}));"displayNativeToolTip"===a?(this.isToolTipSafeToBeDisplayed=!1,this.nativeToolTipDisplayBackoffMap[m]=!0):"NativeTipDisplaySuccessful"===a?(this.setPreviousTipDismissalTime(Date.now()),this.isToolTipSafeToBeDisplayed=!0):"NativeToolTipDisplayStarted"===a?(c.incrementCounter("nativeToolTipShown:".concat(m)),this.dismissalHandler(l)):"NativeTipNotInView"===a?(this.isToolTipSafeToBeDisplayed=!0,"iPhone"===f.platformCheck()?(c.incrementCounter("nativeToolTipNotInView:".concat(m)),
this.collection.elementAnchorList.splice(l,1)):(0<b.get("retryCount")?(this.nativeToolTipDisplayBackoffMap[b.get("identifier")]=!1,t.view.moveToolTipToEndOfList(b)):(c.incrementCounter("nativeToolTipNotInView:".concat(m)),this.collection.elementAnchorList.splice(l,1)),b.get("nestedSAList")&&t.utils.isGuidedTour(b)&&t.view.handleGuidedTour(b,"Success",a))):"NativeTipDismissed"===a?(this.setPreviousTipDismissalTime(Date.now()),c.incrementCounter("nativeToolTipDismissed:".concat(m)),this.isToolTipSafeToBeDisplayed=
!0):"NativeToolTipInvalid"===a||"NativeAnchorNotPresent"===a?(c.incrementCounter(a.charAt(0)+a.slice(1)+":".concat(m)),this.isToolTipSafeToBeDisplayed=!0,this.collection.elementAnchorList.splice(l,1),b.get("nestedSAList")&&t.utils.isGuidedTour(b)&&t.view.handleGuidedTour(b,"Success",a)):"NativeToolTipCrossClick"===a?(this.setPreviousTipDismissalTime(Date.now()),c.incrementCounter("nativeToolTipCrossClicked:".concat(m)),this.isToolTipSafeToBeDisplayed=!0,t.view.logMetricsUserDismissalTip(Date.now(),
b),t.view.dismissByUserHandler(b),t.view.dismissAndRender()):"NativeToolTipCTAClick"===a&&(this.setPreviousTipDismissalTime(Date.now()),this.isToolTipSafeToBeDisplayed=!0,t.view.countLogger("native_tooltip_cta_clicked",b.get("identifier")),b.get("nestedSAList")?t.view.renderNestedSA(b):t.view.logMetricsUserDismissalTip(Date.now(),b),t.view.dismissAndRender())},handleGuidedTour:function(a,b,d){var c=a.get("elementAnchor");c=h.getIndexByAnchor(this.collection.elementAnchorList,c);var e="Error"===b?
"native_tool_tip_error":"native_tool_tip_not_in_view";if("Error"===b||"NativeTipNotInView"===d)this.collection.elementAnchorList.splice(c,1),t.view.countLogger(e,a.get("identifier"));t.view.renderNestedSA(a);t.view.dismissAndRender()},renderNestedSA:function(a){try{var b=JSON.parse(a.get("nestedSAList"));b&&0<b.length&&l.dispatchShoppingAidEvent(b)}catch(K){t.view.countLogger("ShoppingAids_illegal_input_nested_shopping_aid",a.get("identifier"))}},displayNativeToolTip:function(b){var d=this.getPageType(),
c={pageType:d};b.set({shouldIncludeAccessibilityChanges:!0});b.set({elementBackgroundColor:a.DefaultElementBackgroundColor});b.set({elementTextColor:a.DefaultElementTextColor});n.when("com.amazon.mobile.mshop.shoppingaids").execute(function(a){a=r.cordova.require("cordova/exec");var e={};e.ToolTips=[b.attributes];if("iPhone"===f.platformCheck()){if(b.get("onDemand")){var m=b.get("successResponse");var l=b.get("failureResponse");b.unset("failureResponse");b.unset("successResponse")}e=[e,c]}else e.ToolTips[0][u.featureAttribution]=
B.androidFeatureAttribution,e.ToolTips[0].pageType=d;document.hidden?this.isToolTipSafeToBeDisplayed=!0:a(function(a){t.view.successCallbackFunction(a,b,m,l)},function(a){t.view.errorCallbackFunction(a,b)},"MShopShoppingAids","displayNativeToolTip",e)})},moveToolTipToEndOfList:function(a){var b=a.get("elementAnchor"),d=h.getIndexByAnchor(this.collection.elementAnchorList,b);this.collection.elementAnchorList.splice(d,1);d={};d[b]=a.get("sequenceNum");this.collection.elementAnchorList.push(d);t.utils.updateRetryCount(a)},
postQTipRender:function(){if(this.collection.elementAnchorList){var b=this.collection.elementAnchorList;this.clearRender();for(var d=0;d<b.length;d++){var c=h.processAnchor(Object.keys(b[d])[0],a.regex.anchorSpliterRegex);if(!document.hidden){var e=this.collection.at(c);this.identifier=e.get("identifier");h.setDependentElement(e);if(!this.isToolTipTimeGapLessThanThreshold(e)&&this.isToolTipSafeToBeDisplayed)if("NATIVE"===e.get("elementDisplayType")&&!0!==this.nativeToolTipDisplayBackoffMap[e.get("identifier")])this.isToolTipSafeToBeDisplayed=
!1,this.displayNativeToolTip(e);else{var m=e.get("onDemand");if(null!==m&&m&&(m=e.get("failureResponse"))&&"function"===typeof m){var g=a.errorCodes.ALREADY_RENDERED;m(g);e.set({failureResponse:null})}if(e.get("nestedSAList"))try{var y=JSON.parse(e.get("nestedSAList"));if(y&&0<y.length&&!h.isElementPresent(c)){this.remove();this.collection.elementAnchorList.splice(d,1);l.dispatchShoppingAidEvent(y);break}}catch(H){this.countLogger("ShoppingAids_illegal_input_nested_shopping_aid",e.get("identifier"))}e.get("scrollToAnchor")&&
h.isElementPresent(c)&&!h.isElementVisible(c)&&(this.scrollPageToAnchor(c,e.get("anchorScrollOffset")),this.adjustCoordTimeoutId=setTimeout(this.adjustCoordinates.bind(this),a.timer.maxAnchorScrollTime+a.timer.anchorReAdjustTime,c,e.get("elementArrowPosition"),e.get("offsetX"),e.get("offsetY"),!1));this._conditionalRetryUpdate(e,d);if(h.isElementVisible(c)&&this.isEventCheckSatisfied(e)&&h.isDependentCheckSatisfied(e)&&f.isDefined(b[d])){e.get("triggerDependentCheck")&&(e=h.onDemandContextAwareSubstitution(e,
a.ShoppingAidsTooltips));this.currentSequence=b[d][c];this.anchor=c;b=e.get("elementStartOffset");if(isNaN(b)||0>b)b=a.timer.defaultStartOffset;f.hasNoPopover(this.popoverClass,this.searchSugesstions,this.searchFilterPage)||h.isShoppingAidOverPopoverVisible(e.get("popoverAnchor"),e.get("elementAnchor"))?(d=e.get("dismissalType"),y=e.get("toolTipUXChangeAllocatedTreatment"),"hotspot"===e.get("tipType")?this.removeAutoDismissalHandlers():(this._shouldFollowDefaultUXExperience(y,e)||t.view.bindScrollHandlers(c,
e),f.isDefined(d)&&-1!==d.toUpperCase().indexOf("USER")||!this._shouldFollowDefaultUXExperience(y,e)?(this.removeAutoDismissalHandlers(),f.isDefined(d)&&"USER"!==d.toUpperCase()&&this._shouldFollowDefaultUXExperience(y,e)&&t.view.clickEventHandlerForUserDismissalTip(c)):this.addAutoDismissalHandlers()),f.logClientSideWeblabMetrics(e,q.SHOPPINGAIDS_WEBLAB_IN_POST_QTIP_RENDER),this.renderTimeoutId=setTimeout(this.render.bind(this),b,e)):this.renderTimeoutId=setTimeout(this.postQTipRender.bind(this),
b);break}else if(m=e.get("onDemand"),null!==m&&m&&(m=e.get("failureResponse"))&&"function"===typeof m)g=a.errorCodes.UNKNOWN,h.isElementVisible(c)?this.isEventCheckSatisfied(e)?h.isDependentCheckSatisfied(e)||(g=a.errorCodes.DEPENDANT_CHECK_NOT_SATISFIED):g=a.errorCodes.EVENT_CHECK_NOT_SATISFIED:g=a.errorCodes.ELEMENT_NOT_VISIBLE,m(g),e.set({failureResponse:null})}}}f.isDefined(this.renderTimeoutId)||(this.renderTimeoutId=setTimeout(this.postQTipRender.bind(this),a.timer.defaultStartOffset))}},isToolTipTimeGapLessThanThreshold:function(a){if(a.get("invokingEventType")||
a.get("onDemand"))return!1;a=Date.now()-this.previousTipDismissalTime;return 0<a&&a<b.intervalBetweenSuccessiveTips?!0:!1},isEventCheckSatisfied:function(a){var b=a.get("invokingEventType"),d=a.get("invokingEventElement"),c=this.collection.invokingEventsMap[b];if(b&&d&&(!f.isDefined(c)||-1===c.indexOf(d)))return!1;b&&d&&(f.isDefined(c)||-1!==c.indexOf(d))&&(b=a.get("triggerDependentTargeting"),f.isDefined(b)&&(a.set({clientSideTargetting:b}),a.set({triggerDependentCheck:!0})));return!0},dismissAndRender:function(a){var b=
function(){this.clearAdjustCoordinates();this.clearRender();this.fadeOut(function(){this.nextQTip()})};f.isDefined(a)&&f.isDefined(a.type)&&(this.dismissalEvent=a.type);var d=k.throttle(b.bind(this),1E3);a&&a.data&&"dismissalByUser"===a.data.eventType?b.call(this):d.call(this)},dismissWithId:function(b,c,e){var m=d(this.qtipsId)[0];m&&m.getAttribute(a.view.saDOMNameAttribute)===b||f.isDefined(this.renderTimeoutId)&&this.identifier===b?(this._stopToolTips(),c&&"function"===typeof c&&c()):e&&"function"===
typeof e&&e(a.errorCodes.SA_NOT_DISPLAYED)},_stopToolTips:function(){this.clearAdjustCoordinates();this.clearRender();this.fadeOut(this.remove.bind(this))},dismissOrRender:function(a){!this.isBlurSet&&a&&"blur"===a.type?(this.clearRender(),this.clearFadeOut(),this.clearAdjustCoordinates(),this.fadeOut(this.remove.bind(this)),this.isBlurSet=!0,this.isWindowVisible=w):this.isBlurSet&&a&&"focus"===a.type&&(this.isWindowVisible||this.postQTipRender(),this.isBlurSet=!1)},visibilityChange:function(){this.isWindowVisible!==
w&&!0!==this.isWindowVisible||"hidden"!==document.visibilityState?!1===this.isWindowVisible&&"hidden"!==document.visibilityState&&(this.postQTipRender(),this.isWindowVisible=!0):(this.isBlurSet||(this.clearFadeOut(),this.clearRender(),this.clearAdjustCoordinates(),this.fadeOut(this.remove.bind(this))),this.isWindowVisible=!1)},clearRender:function(){f.isDefined(this.renderTimeoutId)&&(clearTimeout(this.renderTimeoutId),delete this.renderTimeoutId);f.isDefined(this.dismissalTimeoutId)&&clearTimeout(this.dismissalTimeoutId);
f.isDefined(this.scrollTimeoutId)&&(clearTimeout(this.scrollTimeoutId),delete this.scrollTimeoutId)},clearAdjustCoordinates:function(){f.isDefined(this.adjustCoordTimeoutId)&&(clearTimeout(this.adjustCoordTimeoutId),delete this.adjustCoordTimeoutId)},clearFadeOut:function(){f.isDefined(this.fadeTimeoutId)&&clearTimeout(this.fadeTimeoutId)},postScrollToPageAnchor:function(a){f.isDefined(this.scrollTimeoutId)||(this.scrollTimeoutId=setTimeout(this.postQTipRender.bind(this),a))},scrollPageToAnchor:function(b,
c){var e=d(b).offset().top-c;e=parseInt(Math.abs(e-r.scrollY),10)*a.timer.scrollTimePerPixel;e=Math.min(a.timer.maxAnchorScrollTime,Math.max(a.timer.minAnchorScrollTime,e));d("html, body").animate({scrollTop:d(b).offset().top-c},{duration:e,start:this.postScrollToPageAnchor(e)})},hasNoPopover:function(){return f.hasNoPopover(this.popoverClass,this.searchSugesstions,this.searchFilterPage)},createUserDismissalOkayGotItToolTip:function(b){var d=this._createElement(a.templates.dismissOkayGotItToolTipTemplate,
b),c=document.createElement("BUTTON");b.get("dismissalButtonText")?c.innerHTML=b.get("dismissalButtonText"):c.innerHTML="OKAY, GOT IT";c.addEventListener("click",function(){t.view.logMetricsUserDismissalTip(Date.now(),b);t.view.dismissByUserHandler(b);t.view.dismissAndRender()});"userOkayGotItBlackBorder"===b.get("dismissalType")?(c.style.cssText="background-color: Transparent; border-width: thin; text-align: center; border-color: black; border-style: solid; display: table-row; float: right;",c.style.color=
b.get("elementTextColor")):(c.style.cssText="background-color: Transparent; border: 0; padding-top: 2.5%; padding-right: 2%; display: table-row; float: right;text-decoration: underline;","userOkayGotItWhiteText"===b.get("dismissalType")?c.style.color="white":c.style.color=b.get("elementTextColor"));d.find(".tooltip-userdismissable").append(c);return d},createUserActionToolTip:function(b){var d=this._createElement(a.templates.userActionToolTipTemplate,b),c=d.find("#qtip-button")[0];b.get("nestedSAList")?
c.addEventListener("click",function(){try{var a=JSON.parse(b.get("nestedSAList"));a&&0<a.length&&l.dispatchShoppingAidEvent(a)}catch(L){t.view.countLogger("ShoppingAids_illegal_input_nested_shopping_aid",b.get("identifier"))}t.view.dismissAndRender()}):c.addEventListener("click",function(){t.view.logMetricsUserDismissalTip(Date.now(),b);t.view.dismissAndRender()});return d},createUpdatedUserActionToolTip:function(b){var d=b.get("highlighter")&&!0===b.get("highlighter")?a.templates.userActionToolTipTemplate_V3:
a.templates.userActionToolTipTemplate_V2;d=this._createElement(d,b);d.find("#qtip-button")[0].addEventListener("click",function(){t.view.countLogger("tooltip_cta_clicked",b.get("identifier"));b.get("nestedSAList")?t.view.renderNestedSA(b):t.view.logMetricsUserDismissalTip(Date.now(),b);t.view.dismissAndRender()});return d},logMetricsUserDismissalTip:function(a,b){a=Math.ceil(4*((a-t.view.tipStartTime)/b.get("elementDuration")));this.countLogger("tooltip_dismissed",b.get("identifier"));this.countLogger("tooltip_dismissal_quarter_"+
a,b.get("identifier"))},_isNullOrControlTreatment:function(a){return!f.isDefined(a)||"C"===a.toUpperCase()},_shouldFollowDefaultUXExperience:function(a,b){return f.isPlatformSupportedForToolTipUxExperiment()?b.get("videoSource")?!0:this._isNullOrControlTreatment(a):!0},_isTreatmentT1:function(a){return f.isDefined(a)&&"T1"===a.toUpperCase()},_replaceToolTipWidth:function(a,b){return a.replace(/<%\s*newUXToolTipWidth\s*%>/,b)},_generateTemplateBasedUponTextDirection:function(b){b=b.get("elementValue");
var d=a.templates.dismissNew36cross36Template;"rtl"===document.dir&&(d=a.templates.dismissNew36cross36TemplateRtl);return f.isDefined(b)?21<b.length?this._replaceToolTipWidth(d,90):17<b.length?this._replaceToolTipWidth(d,85):11<b.length?this._replaceToolTipWidth(d,78):this._replaceToolTipWidth(d,75):this._replaceToolTipWidth(d,78)},addAndPosition:function(b,c){var e,m=c.get("toolTipUXChangeAllocatedTreatment");if(c.get("videoSource")||!f.isPlatformSupportedForToolTipUxExperiment())c.set({elementBackgroundColor:a.DefaultElementBackgroundColor}),
c.set({elementTextColor:a.DefaultElementTextColor}),c.set({elementBorderColor:a.DefaultElementBorderColor});var g=e=c.get("dismissalType")&&t.utils.isGuidedTour(c)?this.createUpdatedUserActionToolTip(c):c.get("elementCTA")?this.createUserActionToolTip(c):"userCross"===c.get("dismissalType")?this._shouldFollowDefaultUXExperience(m,c)?this._createElement(a.templates.dismissCrossToolTipTemplate,c):this._createElement(this._generateTemplateBasedUponTextDirection(c),c):c.get("dismissalType")&&-1!==c.get("dismissalType").indexOf("userOkayGotIt")?
this._shouldFollowDefaultUXExperience(m,c)?this.createUserDismissalOkayGotItToolTip(c):this._createElement(this._generateTemplateBasedUponTextDirection(c),c):"hotspot"===c.get("tipType")&&f.isDefined(c.get("nestedSAList"))?this._createElement(a.templates.hotspotTemplate,c):this._shouldFollowDefaultUXExperience(m,c)?this._createElement(a.templates.defaultTemplate,c):this._createElement(this._generateTemplateBasedUponTextDirection(c),c);if(c.get("videoSource")){c.get("videoThumbnail")||(g=c.get("videoSource").split(","),
c.set({videoThumbnail:g[0].replace(/^\s*/,"").replace(/\s*$/,"")}),1<g.length?c.set({videoSource:g[1].replace(/^\s*/,"").replace(/\s*$/,"")}):c.set({videoSource:""}));g=this._createElement(a.templates.preVideoTemplate,c);var h=this._createElement(a.templates.dismissIconTemplate,c);e.find("span.qtips-text").html(h).append(g);g=e}this.setElement(this.pageAnchor,g);d(this.qtipsId).hide();this.addStaticToolTipHandlers(c);var y=this;("userCross"===c.get("dismissalType")||t.utils.isGuidedTour(c)||f.isDefined(m)&&
this._isTreatmentT1(m))&&d("#tooltip-dismiss-cross").click(function(){t.view.unbindScrollHandler();t.view.logMetricsUserDismissalTip(Date.now(),c);t.view.dismissByUserHandler(c);t.view.dismissAndRender()});d(g).click(function(){if("hotspot"===c.get("tipType"))l.dispatchShoppingAidEvent(JSON.parse(c.get("nestedSAList"))),t.view.dismissAndRender();else if(c&&c.attributes){var a=c.attributes.identifier;f.isDefined(y.terminationCallback)&&y.terminationCallback({identifier:a})}});if(0<d(this.qtipsId).length){m=
d(r).width()*a.view.maxWidthFactor;m=m>=a.view.maxWidth?a.view.maxWidth:m;if(c.get("videoSource")&&c.get("videoWidth")>d(this.qtipsId).width()){h=d(this.qtipsId).width();d(this.qtipsId).width(c.get("videoWidth")+a.view.deltaX);var q=c.get("videoWidth");a.regex.positionRightRegex.test(c.get("elementArrowPosition"))&&(h=parseInt(d(this.qtipsId).css("left"),10)-(q-h)-a.view.deltaX,d(this.qtipsId).css({left:h}))}d(this.qtipsId).width()>m&&(d(this.qtipsId).width(m),c.set({videoWidth:m-a.view.deltaX}));
this.setThumbnailCss(e,c);if(b!==this.pageAnchor)if("hotspot"===c.get("tipType")){if(!this.adjustHotspotPosition(b,c.get("elementPositionY"),c.get("elementPositionX")))return}else if(!this.adjustCoordinates(b,c.get("elementArrowPosition")||this.defaultArrowPosition,c.get("offsetX"),c.get("offsetY"),!1))return;return g}},setThumbnailCss:function(b,e){if(e.get("videoSource")){var m=.25*d(this.qtipsId).width(),f=.15*d(this.qtipsId).width(),l=b.find("i#qtip-dismiss-cross").height();b.find("div#qtip-thumbnail").css({width:m+
"px",height:f+"px"});b.find("img#qtip-thumbnail-image").css({width:m+"px",height:f+"px"});b.find("img#qtip-thumbnail-image").attr("aria-hidden","true");b.find("img#qtip-thumbnail-play").css({width:.64*f+"px",height:.64*f+"px"});var g=d(this.qtipsId).height()>f?d(this.qtipsId).height():f;b.find("img#qtip-thumbnail-play").css({left:(m-.64*f)/2+"px",top:(g-.64*f)/2+"px"});b.find("i#qtip-dismiss-cross").css({position:"relative",right:"0px",top:(g-l)/2+"px"});try{var h=JSON.parse(e.get("tooltipUIStrings")).videoTooltipPlayButtonString}catch(H){c.incrementCounter("invalid_ui_string_input"),
h=a.VideoPlayButtonDefaultAltText}b.find("img#qtip-thumbnail-play").attr("aria-label",h)}},animateIn:function(b){d(this.qtipsId).fadeIn(a.timer.defaultFadeTime);var c=b.get("elementBounceDuration");0<c&&"hotspot"!==b.get("tipType")&&setTimeout(this.bounceAnimate.bind(this),0,c,b)},animateVideo:function(b){var c=this,e=d(c.qtipsId).prop("classList"),m=!1,f;for(f=0;f<e.length;f++)a.regex.positionTopRegex.test(e[f])&&(m=!0);d(c.qtipDismissIcon).css({top:""});e=c._createElement(a.templates.videoTemplate,
b);c._createElement(a.templates.dismissIconTemplate,b);var l=d(c.qtipThumbnailTextId).position();f=d(c.qtipsId).position().top;var g=d(c.qtipsId).height();d(c.qtipThumbnailId).remove();d(c.qtipThumbnailTextId).css({"padding-left":"","padding-bottom":"10px"});var h=d(c.qtipThumbnailTextId).height();d(c.qtipThumbnailTextId).css({position:"absolute",left:l.left+"px",top:l.top+"px"});d(c.qtipsId).find("span.qtips-text").append(e);d(c.qtipThumbnailTextId).animate({left:"-\x3d"+l.left+"px"},{duration:800,
queue:!1,complete:function(){d(c.qtipThumbnailTextId).css({position:"",left:"",top:""})}});d(c.qtipVideoId).removeAttr("controls");m?(m=e.height(),d(c.qtipVideoId).css({height:e.height()}),d(c.qtipVideoId).attr("poster",b.get("videoThumbnail")),e.hide(),e.animate({height:"toggle"},{duration:1E3,queue:!1,complete:function(){d(c.qtipVideoId).attr("controls","")}})):(m=e.height()+h,d(c.qtipVideoId).css({height:e.height()}),d(c.qtipVideoId).attr("poster",b.get("videoThumbnail")),e.hide(),d(c.qtipsId).css({top:f+
g+"px"}),e.animate({height:"toggle"},{duration:800,queue:!1,complete:function(){d(c.qtipVideoId).attr("controls","")}}),d(c.qtipsId).animate({marginTop:-m+"px"},{duration:1E3,queue:!1,complete:function(){}}).css("overflow","visible"))},bounceAnimate:function(b,c){var e=this,m=c.get("toolTipUXChangeAllocatedTreatment"),f=a.bounceParameters.amplitude;this._shouldFollowDefaultUXExperience(m,c)||d(r).bind(t.view.scrollAnimationStopEvent,function(){e.animateIntervalId&&(clearInterval(e.animateIntervalId),
e.animateIntervalId=w);d(r).unbind(t.view.scrollAnimationStopEvent)});this.animate({delay:10,duration:b,delta:function(b){return Math.pow(Math.E,-1*a.bounceParameters.gamma*b)*Math.cos(a.bounceParameters.beta*b-a.bounceParameters.alpha)},anchor:this.qtipsId,basePosition:d(this.qtipsId).position().top,step:function(a){d(this.anchor).css({top:this.basePosition-f*a+"px"})}})},animate:function(a){var b=Date.now();this.tipStartTime=b;this.animateIntervalId&&(clearInterval(this.animateIntervalId),this.animateIntervalId=
w);this.animateIntervalId=setInterval(function(){var d=(Date.now()-b)/a.duration;1<d&&(d=1);var c=a.delta(d);a.step(c);1===d&&(clearInterval(this.animateIntervalId),this.animateIntervalId=w)}.bind(this),a.delay)},fadeOut:function(b){f.isDefined(b)?0<d(this.qtipsId).length?(d(this.qtipsId).fadeOut(a.timer.defaultFadeTime,b.bind(this)),-1!==h.getIndexByAnchor(this.collection.elementAnchorList,this.anchor)?this.setPreviousTipDismissalTime(0):this.setPreviousTipDismissalTime(Date.now())):(b=b.bind(this),
b()):d(this.qtipsId).fadeOut(a.timer.defaultFadeTime);f.isDefined(this.animateIntervalId)&&(clearInterval(this.animateIntervalId),this.animateIntervalId=w)},nextQTip:function(){this.clearFadeOut();this.clearAdjustCoordinates();this.isAnchorDescriptionUpdated&&(d(this.anchor).removeAttr("aria-describedby"),this.isAnchorDescriptionUpdated=!1);f.isDefined(this.collection.elementAnchorList)&&0<this.collection.elementAnchorList.length?(this.remove(),this.postQTipRender()):this.stopQTips()},stopQTips:function(){this.removeAutoDismissalHandlers();
this.removeStaticToolTipHandlers();var b=this.collection.invokingEventsMap,c;for(c in b)if(b.hasOwnProperty(c)&&f.isDefined(b[c]))for(var e=b[c],m=0;m<e.length;m++)c.toLowerCase()===a.PartnerEvent?f.detachTrigger(e[m],this.collection.auiTriggerHandler[e[m]].callback):d(e[m]).unbind(c,this.collection.registerEvent);this.collection.invokingEventsMap={};this.fadeOut(this.remove.bind(this));this.clearRender();this.clearAdjustCoordinates()},removeAllDirectionToolTipArrowClasses:function(){d(this.qtipsId).removeClass("qtips-arrow-topleft");
d(this.qtipsId).removeClass("qtips-arrow-topright");d(this.qtipsId).removeClass("qtips-arrow-topmiddle");d(this.qtipsId).removeClass("qtips-arrow-bottomleft");d(this.qtipsId).removeClass("qtips-arrow-bottomright");d(this.qtipsId).removeClass("qtips-arrow-bottommiddle")},adjustCoordinates:function(b,e,m,f,l){var g=this,h=d(this.qtipsId);if(0>=h.length)return!1;l&&(this.removeAllDirectionToolTipArrowClasses(),l="qtips-arrow-"+e,d(this.qtipsId).hasClass(l)||d(this.qtipsId).addClass(l));l=d(b)[0].getBoundingClientRect();
var y=d(b).offset().top-l.top||0;b=a.view.arrowHeight+a.view.marginFactor*a.view.deltaY;if("topleft"===e){var q=l.left;var u=l.bottom+a.view.arrowHeight+a.view.deltaY}else if("bottomleft"===e)q=l.left,u=l.top-Math.abs(h.height())-b;else if("bottomright"===e)q=l.right-Math.abs(h.width())-a.view.deltaX,u=l.top-Math.abs(h.height())-b;else if("topright"===e)q=l.right-Math.abs(h.width())-a.view.deltaX,u=l.bottom+a.view.arrowHeight+a.view.deltaY;else if("topmiddle"===e){var p=l.right-l.left;q=l.left+parseFloat(((p-
Math.abs(h.width())-a.view.deltaX)/2).toFixed(2));u=l.bottom+a.view.arrowHeight+a.view.deltaY;p=parseFloat((Math.abs(h.width())/2).toFixed(2));this._setClassLeftStyleProperty("qtips-arrow-topmiddle",p+"px");this._setHighlighterClassLeftStyleProperty("sa-highlighter-topmiddle",p+"px")}else if("bottommiddle"===e)p=l.right-l.left,q=l.left+parseFloat(((p-Math.abs(h.width())-a.view.deltaX)/2).toFixed(2)),u=l.top-Math.abs(h.height())-b,p=parseFloat((Math.abs(h.width())/2).toFixed(2)),this._setClassLeftStyleProperty("qtips-arrow-bottommiddle",
p+"px"),this._setHighlighterClassLeftStyleProperty("sa-highlighter-bottommiddle",p+"px");else return!1;m&&(q+=m/100*h.width());f&&(u+=f/100*h.height());m=r.innerHeight||d(r).height();0>u?(u=l.bottom+a.view.arrowHeight+a.view.deltaY,"bottomleft"===e?(d(this.qtipsId).removeClass("qtips-arrow-bottomleft").addClass("qtips-arrow-topleft"),d(this.highlighterId).removeClass("sa-highlighter-bottomleft").addClass("sa-highlighter-topleft")):"bottomright"===e?(d(this.qtipsId).removeClass("qtips-arrow-bottomright").addClass("qtips-arrow-topright"),
d(this.highlighterId).removeClass("sa-highlighter-bottomright").addClass("sa-highlighter-topright")):"bottommiddle"===e&&(d(this.qtipsId).removeClass("qtips-arrow-bottommiddle").addClass("qtips-arrow-topmiddle"),d(this.highlighterId).removeClass("sa-highlighter-bottommiddle").addClass("sa-highlighter-topmiddle"),p=parseFloat((Math.abs(h.width())/2).toFixed(2)),this._setClassLeftStyleProperty("qtips-arrow-topmiddle",p+"px"),this._setHighlighterClassLeftStyleProperty("sa-highlighter-topmiddle",p+"px"))):
l.bottom+Math.abs(h.height())+b>m&&(u=l.top-Math.abs(h.height())-b,"topleft"===e?(d(this.qtipsId).removeClass("qtips-arrow-topleft").addClass("qtips-arrow-bottomleft"),d(this.highlighterId).removeClass("sa-highlighter-topleft").addClass("sa-highlighter-bottomleft")):"topright"===e?(d(this.qtipsId).removeClass("qtips-arrow-topright").addClass("qtips-arrow-bottomright"),d(this.highlighterId).removeClass("sa-highlighter-topright").addClass("sa-highlighter-bottomright")):"topmiddle"===e&&(d(this.qtipsId).removeClass("qtips-arrow-topmiddle").addClass("qtips-arrow-bottommiddle"),
d(this.highlighterId).removeClass("sa-highlighter-topmiddle").addClass("sa-highlighter-bottommiddle"),p=parseFloat((Math.abs(h.width())/2).toFixed(2)),this._setClassLeftStyleProperty("qtips-arrow-bottommiddle",p+"px"),this._setHighlighterClassLeftStyleProperty("sa-highlighter-bottommiddle",p+"px")));u+=y;m=r.innerWidth||d(r).width();0>=q&&l.left+Math.abs(h.width())+a.view.deltaX>=m?(h=Math.abs(h.width())+q,d(this.qtipsId).width(h),q=a.view.deltaX):q+Math.abs(h.width())+a.view.deltaX>=m&&0>=l.right-
Math.abs(h.width())-a.view.deltaX?(e=q+Math.abs(h.width())+a.view.deltaX-m,h=Math.abs(h.width())-e,d(this.qtipsId).width(h)):0>=q?"topright"===e?(q=l.left+a.view.deltaX,d(this.qtipsId).removeClass("qtips-arrow-topright").addClass("qtips-arrow-topleft"),d(this.highlighterId).removeClass("sa-highlighter-topright").addClass("sa-highlighter-topleft")):"bottomright"===e?(q=l.left+a.view.deltaX,d(this.qtipsId).removeClass("qtips-arrow-bottomright").addClass("qtips-arrow-bottomleft"),d(this.highlighterId).removeClass("sa-highlighter-bottomright").addClass("sa-highlighter-bottomleft")):
"topmiddle"==e?(q=l.left+a.view.deltaX,d(this.qtipsId).removeClass("qtips-arrow-topmiddle").addClass("qtips-arrow-topleft"),d(this.highlighterId).removeClass("sa-highlighter-topmiddle").addClass("sa-highlighter-topleft")):"bottommiddle"==e&&(q=l.left+a.view.deltaX,d(this.qtipsId).removeClass("qtips-arrow-bottommiddle").addClass("qtips-arrow-bottomleft"),d(this.highlighterId).removeClass("sa-highlighter-bottommiddle").addClass("sa-highlighter-bottomleft")):q+Math.abs(h.width())+a.view.deltaX>=m&&(m=
l.top-Math.abs(h.height())-b,f&&(m+=f/100*h.height()),"topleft"===e?(q=l.right-Math.abs(h.width())-a.view.deltaX,d(this.qtipsId).removeClass("qtips-arrow-topleft").addClass("qtips-arrow-topright"),d(this.highlighterId).removeClass("sa-highlighter-topleft").addClass("sa-highlighter-topright")):"bottomleft"===e?(q=l.right-Math.abs(h.width())-a.view.deltaX,0>m?(d(this.qtipsId).removeClass("qtips-arrow-topleft").addClass("qtips-arrow-topright"),d(this.highlighterId).removeClass("sa-highlighter-topleft").addClass("sa-highlighter-topright")):
(d(this.qtipsId).removeClass("qtips-arrow-bottomleft").addClass("qtips-arrow-bottomright"),d(this.highlighterId).removeClass("sa-highlighter-bottomleft").addClass("sa-highlighter-bottomright"))):"topmiddle"===e?(q=l.right-Math.abs(h.width())-a.view.deltaX,d(this.qtipsId).removeClass("qtips-arrow-topmiddle").addClass("qtips-arrow-topright"),d(this.highlighterId).removeClass("sa-highlighter-topmiddle").addClass("sa-highlighter-topright")):"bottommiddle"===e&&(q=l.right-Math.abs(h.width())-a.view.deltaX,
0>m?(d(this.qtipsId).removeClass("qtips-arrow-topmiddle").addClass("qtips-arrow-topright"),d(this.highlighterId).removeClass("sa-highlighter-topmiddle").addClass("sa-highlighter-topright")):(d(this.qtipsId).removeClass("qtips-arrow-bottommiddle").addClass("qtips-arrow-bottomright"),d(this.highlighterId).removeClass("sa-highlighter-bottommiddle").addClass("sa-highlighter-bottomright"))));"function"===typeof k.$.withoutRtl?(k.$.withoutRtl(function(){g._setTooltipsAttributesJquery(q,u)}),c.incrementCounter("QTipsWebLibrary:withoutRTL_supported")):
(this._setTooltipsAttributesJavascript(q,u),c.incrementCounter("QTipsWebLibrary:withoutRTL_not_supported"));return!0},adjustHotspotPosition:function(a,b,c){if(0>=d(this.qtipsId).length)return!1;var e=d(a)[0].getBoundingClientRect();a=d(a).offset().top-b;c=e.left+c;d(this.qtipsId).css({left:c+"px",top:a+"px",visibility:"visible"});return!0},_setTooltipsAttributesJquery:function(a,b){d(this.qtipsId).css({left:a+"px",top:b+"px",visibility:"visible"})},_setTooltipsAttributesJavascript:function(a,b){document.getElementById("qtips").style.cssText=
"left:"+a+"px;top:"+b+"px;visibility: visible;"},_setClassLeftStyleProperty:function(a,b){var c=document.createElement("style");document.head.appendChild(c);(c=c.sheet)&&(c.insertRule?c.insertRule("."+a+"::after { left:"+b+" }",0):c.addRule&&c.addRule("."+a+"::after","left:"+b))},_setHighlighterClassLeftStyleProperty:function(a,b){var c=document.createElement("style");document.head.appendChild(c);(c=c.sheet)&&(c.insertRule?c.insertRule("."+a+" { left:"+b+" }",0):c.addRule&&c.addRule("."+a,"left:"+
b))},_conditionalRetryUpdate:function(b,c){this.dismissalEvent===a.ScrollEvent?this.dismissalEvent=a.EmptyString:(t.utils.updateRetryCount(b),this.removeIneligibleQtip(b,c))},remove:function(){d(this.qtipsId)&&d(this.qtipsId)[0]!==w&&this._removeElement(this.qtipsId)},removeIneligibleQtip:function(a,b){0>a.get("retryCount")&&f.isDefined(b)&&(this.collection.elementAnchorList.splice(b,1),this.clearRender())},setDismissalCallback:function(a){this.dismissalCallback=a},setTerminationCallback:function(a){this.terminationCallback=
a},setPreviousTipDismissalTime:function(a){this.previousTipDismissalTime=a},countLogger:function(){},setCountLogger:function(a){this.countLogger=a}});t.view=new e;t.addStyles();return t})})();(function(){n.register("QTipsConstants",function(){return{view:{deltaX:20,deltaY:5,marginFactor:4,arrowHeight:8,maxWidth:300,maxWidthFactor:.8,saDOMNameAttribute:"data-name",retryCount:4},bounceParameters:{alpha:10,beta:25,gamma:1.5,amplitude:7},timer:{defaultStartOffset:3E3,defaultDismissalCallbackTime:800,
defaultAnimationTime:7E3,defaultFadeTime:400,minAnchorScrollTime:400,maxAnchorScrollTime:3E3,anchorReAdjustTime:3E3,scrollTimePerPixel:1,searchSuggestionPollTime:300},regex:{anchorSpliterRegex:/\|/g,templateSpliterRegex:/<%\s*\w*\s*%>/g,numberRegex:/^(\-|\+)?([0-9]+|Infinity)$/,positionRightRegex:/right/,positionTopRegex:/top/},popOverAnchors:{popoverClass:".a-popover",searchSugesstions:".s-suggestion-container",searchFilterPage:".sx-page.sx-filter-page.sx-animable"},templates:{dismissNew36cross36Template:'\x3cdiv id\x3d"qtips" class\x3d"qtips-background qtips-arrow-\x3c% elementArrowPosition %\x3e"\x3e  \x3cstyle\x3e .qtips-background { top: \x3c% elementY %\x3epx; left: \x3c% elementX    %\x3epx; padding : 8px 0px 8px 0px; background-color: \x3c% elementBackgroundColor %\x3e; color: \x3c% elementTextColor %\x3e ; border-radius: 12px;} .qtips-background:after { border-color : \x3c% elementBackgroundColor %\x3e transparent;}\x3c/style\x3e \x3cdiv id \x3d \'tooltip-cross-dismissal\' style\x3d"display: table; width: 100%; padding-left: 12px; padding-right: 0px;"\x3e\x3cspan class\x3d"qtips-text"  style\x3d"display:table-cell; vertical-align: middle;width: \x3c% newUXToolTipWidth %\x3e%; /*margin-bottom: 8px; margin-top: 8px;*/"\x3e \x3c% elementValue %\x3e \x3c/span\x3e \x3cbutton id\x3d"tooltip-dismiss-cross" style\x3d"display: table-cell; text-align: center;  background: \x3c% elementBackgroundColor %\x3e;  border: none; padding: 0px;"\x3e\x3ci class\x3d"a-icon a-icon-close-white" role\x3d"img" style\x3d"margin:10px 12px 10px 10px;"\x3e\x3c/i\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e',
dismissNew36cross36TemplateRtl:'\x3cdiv id\x3d"qtips" class\x3d"qtips-background qtips-arrow-\x3c% elementArrowPosition %\x3e"\x3e  \x3cstyle\x3e .qtips-background { top: \x3c% elementY %\x3epx; left: \x3c% elementX    %\x3epx; padding : 8px 0px 8px 0px; background-color: \x3c% elementBackgroundColor %\x3e; color: \x3c% elementTextColor %\x3e ; border-radius: 12px;} .qtips-background:after { border-color : \x3c% elementBackgroundColor %\x3e transparent;}\x3c/style\x3e \x3cdiv id \x3d \'tooltip-cross-dismissal\' style\x3d"display: table; width: 100%; padding-left: 0px; padding-right: 12px;"\x3e\x3cspan class\x3d"qtips-text"  style\x3d"display:table-cell; vertical-align: middle;width: \x3c% newUXToolTipWidth %\x3e%; /*margin-bottom: 8px; margin-top: 8px;*/"\x3e \x3c% elementValue %\x3e \x3c/span\x3e \x3cbutton id\x3d"tooltip-dismiss-cross" style\x3d"display: table-cell; text-align: center;  background: \x3c% elementBackgroundColor %\x3e;  border: none; padding: 0px;"\x3e\x3ci class\x3d"a-icon a-icon-close-white" role\x3d"img" style\x3d"margin:10px 10px 10px 12px;"\x3e\x3c/i\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e',
defaultTemplate:'\x3cdiv id\x3d"qtips" class\x3d"qtips-background qtips-arrow-\x3c% elementArrowPosition %\x3e"\x3e  \x3cstyle\x3e .qtips-background { top: \x3c% elementY %\x3epx; left: \x3c% elementX %\x3epx; background-color: \x3c% elementBackgroundColor %\x3e; color: \x3c% elementTextColor %\x3e; } .qtips-background:after { border-color : \x3c% elementBackgroundColor %\x3e transparent;}\x3c/style\x3e \x3cdiv class\x3d"qtips-textholder aok-relative aok-float-left"\x3e \x3cspan class\x3d"qtips-text"\x3e \x3c% elementValue %\x3e\x3c/span\x3e\x3c/div\x3e \x3c/div\x3e',
dismissCrossToolTipTemplate:'\x3cdiv id\x3d"qtips" class\x3d"qtips-background qtips-arrow-\x3c% elementArrowPosition %\x3e"\x3e  \x3cstyle\x3e .qtips-background { top: \x3c% elementY %\x3epx; left: \x3c% elementX    %\x3epx; background-color: \x3c% elementBackgroundColor %\x3e; color: \x3c% elementTextColor %\x3e; } .qtips-background:after { border-color : \x3c% elementBackgroundColor %\x3e transparent;}\x3c/style\x3e \x3cdiv id \x3d \'tooltip-cross-dismissal\' style\x3d"display: table; width: 100%; padding-left: 2%; padding-right: 0%;"\x3e\x3cspan class\x3d"qtips-text"  style\x3d"display:table-cell; vertical-align: middle;width: 90%; line-height: 1.2;"\x3e \x3c% elementValue %\x3e \x3c/span\x3e \x3cdiv style\x3d"display: table-cell; text-align: center; padding-left: 1%; "\x3e\x3ci id\x3d"tooltip-dismiss-cross" class\x3d"a-icon a-icon-close" role\x3d"img" style\x3d"padding-left: 0%; padding-right: 1%;vertical-align: top; "\x3e\x3c/i\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
dismissOkayGotItToolTipTemplate:'\x3cdiv id\x3d"qtips" class\x3d"qtips-background qtips-arrow-\x3c% elementArrowPosition %\x3e"\x3e  \x3cstyle\x3e .qtips-background { top: \x3c% elementY %\x3epx; left: \x3c% elementX      %\x3epx; background-color: \x3c% elementBackgroundColor %\x3e; color: \x3c% elementTextColor %\x3e; } .qtips-background:after { border-color : \x3c% elementBackgroundColor %\x3e transparent;}\x3c/style\x3e \x3cdiv class\x3d"tooltip-userdismissable" style\x3d"padding-left: 2%; padding-right: 2%; display: table; border-collapse: collapse;"\x3e\x3cspan class\x3d"qtips-text"  style\x3d"display:table-row; text-align: left; line-height: 1.2;"\x3e \x3c% elementValue %\x3e \x3c/span\x3e\x3c/div\x3e \x3c/div\x3e',
dismissIconTemplate:'\x3cdiv id\x3d"qtip-dismiss"\x3e\x3ci id\x3d"qtip-dismiss-cross" class\x3d"a-icon a-icon-close" role\x3d"img" style\x3d"float:right; padding-left:5%;padding-bottom:5%;"\x3e\x3c/i\x3e\x3c/div\x3e',preVideoTemplate:'\x3cdiv id\x3d"qtip-thumbnail" style\x3d"text-align: left;display: table-cell; vertical-align: middle; border-style: solid; border-width: 1px; border-color: #FFFFFF; position:relative;"\x3e\x3cimg id\x3d"qtip-thumbnail-image"src\x3d\x3c%videoThumbnail%\x3e style\x3d"vertical-align: middle;position:relative"\x3e\x3cimg id\x3d"qtip-thumbnail-play"src\x3d"https://m.media-amazon.com/images/G/31/shopping-aids/play-icon._CB456863585_.png" tabindex\x3d0 role\x3d"button" style\x3d"vertical-align: middle;position:absolute;left:0"\x3e\x3c/div\x3e\x3cspan id\x3d"qtip-thumbnail-text" style\x3d"text-align: left;padding-left: 5%;display: table-cell;vertical-align: middle;width: 75%; line-height:1.2"\x3e\x3c% elementValue %\x3e\x3c/span\x3e',
videoTemplate:'\x3cvideo id\x3d"qtip-video" width\x3d\x3c%videoWidth%\x3e style\x3d"background-color: black;vertical-align:bottom" controls autoplay controlslist\x3d"nodownload" preload\x3d"metadata"\x3e\x3csource src\x3d\x3c%videoSource%\x3e type\x3d"video/mp4"\x3e\x3c/video\x3e',hotspotTemplate:'\x3cdiv id\x3d"qtips"class\x3d"qtips-background"\x3e\x3cstyle\x3e.qtips-background{ border-color : #EC912D;border-radius: 50%;width: 16px;height: 16px;background-color: #EC912D; position:absolute;display: table-cell;text-align:center;box-shadow: 0 0 0 0 rgba(236, 145, 45, 1);transform: scale(1);animation: pulse 1.5s 0.2s \x3c% elementBounceDuration %\x3e;} .qtips-background:after{ content: none;}\x3c/style\x3e\x3cstyle\x3e @keyframes pulse {0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 145, 45, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(236, 145, 45, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 145, 45, 0); }}\x3c/style\x3e\x3cp class\x3d"qtips-text" style \x3d"vertical-align:middle; position:relative;top:-10.5px;right:2.5px;color: white; font-size:15px; font-family: Bookerly;font-style: italic;font-size;font-weight: bold;"\x3ei\x3c/p\x3e\x3c/div\x3e',
userActionToolTipTemplate:'\x3cdiv id\x3d"qtips" class\x3d"qtips-background qtips-arrow-\x3c% elementArrowPosition %\x3e"\x3e  \x3cstyle\x3e .qtips-background { top: \x3c% elementY %\x3epx; left: \x3c% elementX    %\x3epx; background-color: \x3c% elementBackgroundColor %\x3e; color: \x3c% elementTextColor %\x3e; } .qtips-background:after { border-color : \x3c% elementBackgroundColor %\x3e transparent;}\x3c/style\x3e \x3cdiv id \x3d "tooltip-user-action" style\x3d"display: table; width: 100%; padding-left: 2%; padding-right: 2%; border-collapse: collapse;"\x3e\x3cspan class\x3d"qtips-text"  style\x3d"display:table-cell; vertical-align: middle;width: 90%; line-height: 1.2;"\x3e \x3c% elementValue %\x3e \x3c/span\x3e \x3cdiv style\x3d"display: table-cell; text-align: center; padding-left: 1%; "\x3e\x3ci id\x3d"tooltip-dismiss-cross" class\x3d"a-icon a-icon-close" role\x3d"img" style\x3d"padding-left: 0%; padding-right: 1%;vertical-align: top; "\x3e\x3c/i\x3e\x3c/div\x3e\x3cdiv style\x3d"display: table-row;"\x3e\x3cbutton id\x3d"qtip-button" style\x3d"background-color: Transparent; border-width: thin; text-align: right; border-color: black; border-style: solid; display: table-cell; float: right; border-radius: 3px"\x3e \x3c% elementCTA %\x3e \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
userActionToolTipTemplate_V2:'\x3cdiv id\x3d"qtips" class\x3d"qtips-background qtips-arrow-\x3c% elementArrowPosition %\x3e"\x3e  \x3cstyle\x3e .qtips-background {background-color: \x3c% elementBackgroundColor %\x3e; color: \x3c% elementTextColor %\x3e; } .qtips-background:after { border-color : \x3c% elementBorderColor %\x3e transparent;}\x3c/style\x3e \x3cdiv id \x3d "tooltip-user-action" style\x3d"display: table; width: auto; font-family: \'Amazon Ember\'"\x3e\x3cspan class\x3d"qtips-text"  style\x3d"display:table-cell; vertical-align: middle; width: auto; line-height: 20px; font-size: 15px; font-style: normal; font-weight: 400; max-width: 127px"\x3e \x3c% elementValue %\x3e \x3c/span\x3e \x3cdiv id\x3d"tooltip-dismiss-cross" style\x3d"display: table-cell; text-align: right; left:0;right:-0.1%;top:0; bottom: -0.1%; vertical-align: top; padding-left: 20px;"\x3eX\x3c/div\x3e\x3cdiv style\x3d"display: table-row;"\x3e\x3cbutton id\x3d"qtip-button" style\x3d"background-color: Transparent; border-width: 1px; text-align: right; border-color: \x3c% elementTextColor %\x3e; border-style: solid; display: table-cell; color: \x3c% elementTextColor %\x3e; padding: 6px 22px; left: 10px; margin-top: 10px"\x3e \x3c% elementCTA %\x3e \x3c/button\x3e\x3cdiv style\x3d"display: table-cell; text-align: right; margin-top: 10px; padding-left:10px; line-height: 20px; font-size: 15px; font-style: normal; font-weight: 400; vertical-align: bottom;"\x3e \x3c% elementIndex %\x3e \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
userActionToolTipTemplate_V3:'\x3cdiv id\x3d"qtips" class\x3d"qtips-background qtips-arrow-\x3c% elementArrowPosition %\x3e"\x3e  \x3cstyle\x3e .qtips-background {background-color: \x3c% elementBackgroundColor %\x3e; color: \x3c% elementTextColor %\x3e; } .qtips-background:after { border-color : \x3c% elementBorderColor %\x3e transparent;}\x3c/style\x3e \x3cdiv id \x3d "tooltip-user-action" style\x3d"display: table; width: auto; font-family: \'Amazon Ember\'"\x3e\x3cspan class\x3d"qtips-text"  style\x3d"display:table-cell; vertical-align: middle; width: auto; line-height: 20px; font-size: 15px; font-style: normal; font-weight: 400; max-width: 127px"\x3e \x3c% elementValue %\x3e \x3c/span\x3e \x3cdiv id\x3d"tooltip-dismiss-cross" style\x3d"display: table-cell; text-align: right; left:0;right:-0.1%;top:0; bottom: -0.1%; vertical-align: top; padding-left: 20px;"\x3eX\x3c/div\x3e\x3cdiv style\x3d"display: table-row;"\x3e\x3cbutton id\x3d"qtip-button" style\x3d"background-color: Transparent; border-width: 1px; text-align: right; border-color: \x3c% elementTextColor %\x3e; border-style: solid; display: table-cell; color: \x3c% elementTextColor %\x3e; padding: 6px 22px; left: 10px; margin-top: 10px"\x3e \x3c% elementCTA %\x3e \x3c/button\x3e\x3cdiv style\x3d"display: table-cell; text-align: right; margin-top: 10px; padding-left:10px; line-height: 20px; font-size: 15px; font-style: normal; font-weight: 400; vertical-align: bottom;"\x3e \x3c% elementIndex %\x3e \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv id\x3d"sa-highlighter" class\x3d"sa-highlighter-background sa-highlighter-\x3c% elementArrowPosition %\x3e"\x3e\x3cstyle\x3e.sa-highlighter-background{ border: 4px solid \x3c% elementBackgroundColor %\x3e;}\x3c/style\x3e\x3c/div\x3e\x3c/div\x3e'},
errorCodes:{ELEMENT_NOT_VISIBLE:"Element not Visible on Viewport",EVENT_CHECK_NOT_SATISFIED:"Event Check not Satisfied",DEPENDANT_CHECK_NOT_SATISFIED:"Dependant Check not Satisfied",API_THROTTLED:"API in Throttled State",AID_NOT_ALLOWLISTED:"Shopping Aid is not Allowlisted",INVALID_VERSION:"Invalid Version",INVALID_SHOPPING_AID_TYPE:"Invalid Shopping Aid Type",SA_NOT_DISPLAYED:"Shopping Aid is not being displayed",BOTTOM_SHEET_IN_VIEW:"Bottom Sheet in View",INVALID_STATE_DATA:"Invalid State Data",
ILLEGAL_INPUT:"Illegal Input",ALREADY_RENDERED:"Already Rendered",SPARKLE_IN_VIEW:"Sparkle in View",UNKNOWN:"Unknown"},userEvent:{optOut:"OPT_OUT",complete:"COMPLETE",optIn:"OPT_IN",yetToOptIn:"YET_TO_OPT_IN"},nativeConstants:{SHOPPING_AIDS:"SHOPPING_AIDS"},contextAwareSADelimiter:":::",secondToMillisecondConversion:1E3,hourToSecondConversion:3600,ShoppingAidsSparkles:"Sparkles",ShoppingAidsTooltips:"ToolTips",PartnerEvent:"partnerevent",SparkleClick:"click.sparkle",TooltipClick:"click.tooltip",ScrollEvent:"scroll",
EmptyString:"",BounceDurationNineSeconds:9E3,DefaultElementBackgroundColor:"#FFA724",DefaultElementTextColor:"#000000",DefaultElementBorderColor:"#FFA724",ToolTipUXMetricForLogImpression:"ToolTip_UX_Change_LogImpression_",ToolTipUXExperimentWeblab:"A2I_SHOPPINGAIDS_TOOLTIP_UX_EXPERIMENT_1099906",VideoPlayButtonDefaultAltText:"Play Video"}})})();(function(){n.register("QTipsStyles",function(){return"#qtips{position:absolute;overflow:initial}.qtips-background{position:fixed;z-index:90000;padding:10px;opacity:1;border-radius:3px;-webkit-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-moz-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-o-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-moz-transform-style:preserve-3d;-o-transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.qtips-background:after{position:absolute;display:block;width:0;content:'';border-style:solid;-moz-transform-style:preserve-3d;-o-transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.qtips-arrow-topleft:after,.qtips-arrow-topmiddle:after,.qtips-arrow-topright:after{top:-8px;border-width:0 8px 9px}.qtips-arrow-bottomleft:after,.qtips-arrow-topleft:after{left:14px}.qtips-arrow-bottomright:after,.qtips-arrow-topright:after{right:14px}.qtips-arrow-bottomleft:after,.qtips-arrow-bottommiddle:after,.qtips-arrow-bottomright:after{bottom:-8px;border-width:9px 8px 0;-webkit-box-shadow:0 0 0 -2px rgba(17,17,17,.25);-moz-box-shadow:0 0 0 -2px rgba(17,17,17,.25);box-shadow:0 0 0 -2px rgba(17,17,17,.25);-o-box-shadow:0 0 0 -2px rgba(17,17,17,.25)}.qtips-arrow-left:after{left:-12px; border-width:0 8px 9px;transform:rotate(270deg)}.qtips-arrow-right:after{border-width:0 8px 9px;transform:rotate(90deg)}.qtips-textholder{width:100%;height:100%}.slate-image-video-loader {background: #ffffff;border-radius: 50%;position: absolute;opacity: 0.7;}.slate-image-play-button {margin: auto;position: absolute;border-style: solid;border-color: transparent transparent transparent #ada6a6;} .sa-highlighter-background { z-index: 90000; padding: 10px; width: 10px; height: 10px; background-color: transparent; border-radius: 50%; position: absolute; animation: ring 1.5s linear infinite; }.sa-highlighter-topleft, .sa-highlighter-topmiddle, .sa-highlighter-topright { top: -50px; }.sa-highlighter-topleft, .sa-highlighter-bottomleft { left: 8px; }.sa-highlighter-bottomright, .sa-highlighter-topright { right: 8px; }.sa-highlighter-bottomleft, .sa-highlighter-bottommiddle, .sa-highlighter-bottomright { bottom: -50px; } @keyframes ring { from {opacity: 1;} to {opacity: 0; transform: scale(3);}}"})})();
(function(){n.when("A").register("QTipsMetrics",function(){var k=r.ue;return{incrementCounter:function(d,a,e){a=a||1;k&&k.count&&(k.count(d,(k.count(d)||0)+a),e&&k.count(d+"_"+e,(k.count(d)||0)+a))}}})})();(function(){n.register("ShoppingAidsSparklesStyles",function(){var k=JSON.stringify([".sparkle-container {             background: #eaeded;             position: fixed;             bottom: 4px;             left: 0;             right: 0;             margin: 9px;             box-sizing: border-box;             display: table;             border-radius: 10px;             box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);             z-index: 99;             opacity: 0.5;             transform: translateY(100%);             transition: transform 0.6s, opacity 0.5s;         }",
".sparkle-content {             display: table-cell;             vertical-align: top;             width: 100%;             padding-top: 13px;             padding-bottom: 13px;             padding-left: 9px;             padding-right: 9px;         }",".sparkle-close {             display: table-cell;             vertical-align: top;             padding: 9px 12px 0 0;             width: 12px;             height: 13px;             font-weight: 700;         }",".sparkle-close-btn {             border: none;             padding: 0;         }",
".sparkle-image-container {             display: table-cell;             vertical-align: top;             width: 34px;             height: 34px;         }",".sparkle-text-container {             display: table-cell;             vertical-align: middle;             padding-left: 15px;         }",".sparkle-text {             display: -webkit-box;             -webkit-line-clamp: 2;             -webkit-box-orient: vertical;             overflow: hidden;             text-overflow: ellipsis;             white-space: normal;         }",
".sparkle-description-container {             display: table-cell;             vertical-align: middle;             padding-left: 7px;             height: 34px;         }",".sparkle-description {             display: -webkit-box;             -webkit-line-clamp: 2;             -webkit-box-orient: vertical;             overflow: hidden;             text-overflow: ellipsis;             white-space: normal;             color: #111;         }",".sparkle-linkText-container {             display: table-cell;             vertical-align: middle;             padding-left: 0;             padding-right: 18px;         }",
".sparkle-linkText {             display: -webkit-box;             -webkit-line-clamp: 2;             -webkit-box-orient: vertical;             overflow: hidden;             text-overflow: ellipsis;             white-space: normal;             color: #0066c0;             font-weight: bold;         }",".sparkle-image, .sparkle-image-loader {             border: none;             height: 34px;             width: 34px;         }",".sparkle-image-loader {             display: none;         }.sparkle-container.sparkle-loading .sparkle-image-loader {             display: block;         }",
".sparkle-container.sparkle-loading .sparkle-image {             display: none;         }",".sparkle-container.sparkle-loading .sparkle-content {             pointer-events: none;         }",".sparkle-container.sparkle-loading .sparkle-linkText-container {             pointer-events: none;         }",".sparkle-container.sparkle-loading .sparkle-text {             color: #aaa;         }",".sparkle-container.sparkle-open {             transform: translateY(0);             opacity: 1;         }",".sparkle-container.sparkle-closing {             transform: translateY(100%);             opacity: 0.5;         }"]),
d=JSON.stringify([".sparkle-container {             background: #eaeded;             position: fixed;             bottom: 4px;             left: 0;             right: 0;             margin: 9px;             box-sizing: border-box;             display: table;             border-radius: 10px;             box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);             z-index: 99;             opacity: 0.5;             transform: translateY(100%);             transition: transform 0.6s, opacity 0.5s;         }",
".sparkle-content {             display: table-cell;             vertical-align: top;             width: 100%;             padding-top: 13px;             padding-bottom: 13px;             padding-left: 9px;             padding-right: 9px;         }",".sparkle-close {             display: table-cell;             vertical-align: top;             padding: 9px 0 0 12px;             width: 12px;             height: 13px;             font-weight: 700;         }",".sparkle-close-btn {             border: none;             padding: 0;         }",
".sparkle-image-container {             display: table-cell;             vertical-align: top;             width: 34px;             height: 34px;         }",".sparkle-text-container {             display: table-cell;             vertical-align: middle;             padding-right: 15px;         }",".sparkle-text {             display: -webkit-box;             -webkit-line-clamp: 2;             -webkit-box-orient: vertical;             overflow: hidden;             text-overflow: ellipsis;             white-space: normal;         }",
".sparkle-description-container {             display: table-cell;             vertical-align: middle;             padding-right: 7px;             height: 34px;         }",".sparkle-description {             display: -webkit-box;             -webkit-line-clamp: 2;             -webkit-box-orient: vertical;             overflow: hidden;             text-overflow: ellipsis;             white-space: normal;             color: #111;         }",".sparkle-linkText-container {             display: table-cell;             vertical-align: middle;             padding-right: 0;             padding-left: 18px;         }",
".sparkle-linkText {             display: -webkit-box;             -webkit-line-clamp: 2;             -webkit-box-orient: vertical;             overflow: hidden;             text-overflow: ellipsis;             white-space: normal;             color: #0066c0;             font-weight: bold;         }",".sparkle-image, .sparkle-image-loader {             border: none;             height: 34px;             width: 34px;         }",".sparkle-image-loader {             display: none;         }.sparkle-container.sparkle-loading .sparkle-image-loader {             display: block;         }",
".sparkle-container.sparkle-loading .sparkle-image {             display: none;         }",".sparkle-container.sparkle-loading .sparkle-content {             pointer-events: none;         }",".sparkle-container.sparkle-loading .sparkle-linkText-container {             pointer-events: none;         }",".sparkle-container.sparkle-loading .sparkle-text {             color: #aaa;         }",".sparkle-container.sparkle-open {             transform: translateY(0);             opacity: 1;         }",".sparkle-container.sparkle-closing {             transform: translateY(100%);             opacity: 0.5;         }"]);
return{defaultStyleCSS:k,defaultStyleRTLCSS:d,newStyleCSS:'[\n    ".sparkle-container{background: rgb(0, 130, 150);border: 1px solid rgb(0, 113, 133);width:95%;position:fixed;bottom:4px;left:0;right:0;margin:9px;box-sizing:border-box;display:table;border-radius:4px;box-shadow:0px 2px 4px rgba(0, 0, 0, .25);z-index:99;opacity:.5;transform:translateY(100%);transition:transform .6s,opacity .5s}",\n    ".sparkle-content{display:table-cell;vertical-align:top;width:95%;padding-top:9px;padding-bottom:9px;padding-left:9px;padding-right:9px}",\n    ".sparkle-close{display:table-cell;vertical-align:top;padding:8px 8px 0px 12px;width:12px;height:13px;font-weight:700;color: #FFFFFF}",\n    ".sparkle-image-container{display:table-cell;vertical-align:top;width:30px;height:30px; border-radius: 4px}",\n    ".sparkle-text-container{display:table-cell;vertical-align:middle;padding-left:15px}",\n    ".sparkle-text{color: rgb(255,255,255); font-size:15px; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}",\n    ".sparkle-description-container{display:table-cell;vertical-align:middle;padding-left:7px;height:34px}",\n    ".sparkle-description{color: rgb(255, 255, 255);font-size:15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}",\n    ".sparkle-linkText-container{display:table-cell;vertical-align:middle;padding-left:0;padding-right:8px;text-align: center}",\n    ".sparkle-linkText{color:rgb(255, 255, 255);font-weight:normal;font-size:15px;border: 1px solid #FFFFFF;padding: 4px 11px;-webkit-line-clamp: 1;border-radius: 4px;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}",\n    ".sparkle-image,.sparkle-image-loader{border-radius: 4px;height:30px;width:30px;background: rgb(217, 217, 217)}",\n    ".sparkle-image-loader{display:none}.sparkle-container.sparkle-loading .sparkle-image-loader{display:block}",\n    ".sparkle-container.sparkle-loading .sparkle-image{display:none}",\n    ".sparkle-container.sparkle-loading .sparkle-content{pointer-events:none}",\n    ".sparkle-container.sparkle-loading .sparkle-linkText-container{pointer-events:none}",\n    ".sparkle-container.sparkle-loading .sparkle-text{color:#aaa}",\n    ".sparkle-container.sparkle-open{transform:translateY(0);opacity:1}",\n    ".sparkle-container.sparkle-closing{transform:translateY(100%);opacity:.5}"\n]',
newStyleRTLCSS:'[\n  ".sparkle-container{background: rgb(0, 130, 150);border: 1px solid rgb(0, 113, 133);width:95%;position:fixed;bottom:4px;left:0;right:0;margin:9px;box-sizing:border-box;display:table;border-radius:4px;box-shadow:0px 2px 4px rgba(0, 0, 0, .25);z-index:99;opacity:.5;transform:translateY(100%);transition:transform .6s,opacity .5s}",\n  ".sparkle-content{display:table-cell;vertical-align:top;width:95%;padding-top:9px;padding-bottom:9px;padding-left:9px;padding-right:9px}",\n  ".sparkle-close{display:table-cell;vertical-align:top;padding:8px 12px 0px 8px;width:12px;height:13px;font-weight:700;color: #FFFFFF}",\n  ".sparkle-image-container{display:table-cell;vertical-align:top;width:30px;height:30px; border-radius: 4px}",\n  ".sparkle-text-container{display:table-cell;vertical-align:middle;padding-right:15px}",\n  ".sparkle-text{color: rgb(255,255,255); font-size:15px; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}",\n  ".sparkle-description-container{display:table-cell;vertical-align:middle;padding-right:7px;height:34px}",\n  ".sparkle-description{color: rgb(255, 255, 255);font-size:15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}",\n  ".sparkle-linkText-container{display:table-cell;vertical-align:middle;padding-left:0;padding-right:8px;text-align: center}",\n  ".sparkle-linkText-container{display:table-cell;vertical-align:middle;padding-right:0;padding-left:8x; text-align: center}",\n  ".sparkle-linkText{color:rgb(255, 255, 255);font-weight:normal;font-size:15px;border: 1px solid #FFFFFF;padding: 4px 11px;-webkit-line-clamp: 1;border-radius: 4px;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}",\n  ".sparkle-image,.sparkle-image-loader{border-radius: 4px;height:30px;width:30px;background: rgb(217, 217, 217)}",\n  ".sparkle-image-loader{display:none}.sparkle-container.sparkle-loading .sparkle-image-loader{display:block}",\n  ".sparkle-container.sparkle-loading .sparkle-image{display:none}",\n  ".sparkle-container.sparkle-loading .sparkle-content{pointer-events:none}",\n  ".sparkle-container.sparkle-loading .sparkle-linkText-container{pointer-events:none}",\n  ".sparkle-container.sparkle-loading .sparkle-text{color:#aaa}",\n  ".sparkle-container.sparkle-open{transform:translateY(0);opacity:1}",\n  ".sparkle-container.sparkle-closing{transform:translateY(100%);opacity:.5}"\n]'}})})();
(function(){n.when("A","jQuery","QTipsMetrics","QTipsConstants","QTips","SAEndPointsConfig","NestedShoppingAidHelper","ShoppingAidsGenericUtils","LogImpressionManager","SAFeature","SparkleConfig","SAMetricConstants","ShoppingAidsFilters","ContextAwareSubstitutor","ShoppingAidsSparklesStyles","SparkleConstants").register("ShoppingAidsSparkles",function(k,d,a,e,g,c,b,l,f,h,q,m,B,u,y,p){var t=c.logImpressionEndPoint,O=!1,x=0,z=0,K=0,S=0,L=r.innerHeight,G=w,A=w,H=w,v={logImpression:function(a,b,c){if(l.isDefined(c)){var d=
c.userEvent;var e=c.successCallback;var m=c.errorCallback;var g=c.contextAwareIndex}h.clientSideCaching?f.handle(a,b,p.shoppingAidsType,G,c):(a={pageType:G,shoppingAidsType:p.shoppingAidsType,id:a,schedulingType:b},l.isDefined(d)&&(a.userEvent=d),l.isDefined(g)&&(a.contextAwareIndex=g),k.ajax(t,{method:"GET",contentType:"application/json; charset\x3dutf-8",timeout:6E4,params:a,success:e,error:m}))},logInteraction:function(a,b,c,d){c()},logCounter:function(b,c){a.incrementCounter("shopping_aids_"+
A+"_"+p.shoppingAidsType+b,c);a.incrementCounter("shopping_aids_"+G+"_"+p.shoppingAidsType+"_"+b,c);a.incrementCounter("shopping_aids_"+p.shoppingAidsType+"_"+b,c)},nestedJsonParser:function(a){try{return JSON.parse(a)}catch(fa){v.logCounter("illegal_input_nested_shopping_aid")}},detectUserScroll:function(){var a=r.scrollY;20>=a?document.getElementsByClassName("sparkle-container")[0].style.bottom="46px":document.getElementsByClassName("sparkle-container")[0].style.bottom="4px";x=Math.max(x,a);a<x&&
!z&&(z=1)},_contextAwareModelTransformer:function(a,b){b=a.getState(b);b.clientSideTargetting=a.getClientSideTargetting();b.desiredWeblabTreatment=a.getDesiredWeblabTreatment();b.nestedSAList=a.getNestedSAList();b.identifier=a.getIdentifier();return b},executeContextAwareSubstitution:function(a){var b=a.getEventData().state,c=this._contextAwareModelTransformer(a,b),d=B.getContextTargetingIndex(c);u.substitute(c,d,e.ShoppingAidsSparkles);a.setClientSideTargetting(c.clientSideTargetting);a.setState(b,
c);a.setNestedSAList(c.nestedSAList);l.isDefined(c.contextAwareIndex)&&(a.setTriggerDependentTriggering(w),a.setContextAwareIndex(c.contextAwareIndex));return a},injectStyleToDom:function(a){var b=document.createElement("style");b.innerHTML=JSON.parse(a).join("");document.head.appendChild(b)}},ea={create:function(a){var c=a.sparkleType,d=a.identifier,m=a.invokingEventType,f=a.invokingEventElement,l=a.weblabName,h=a.desiredWeblabTreatment,g=a.allocatedWeblabTreatment,q=a.schedulingType,y=a.targetEndpoint,
u=a.typeOfStaticSparkle,B=a.displayIconAltText,t=a.sparkleUIStrings,Y=a.nestedSAList,n=a.bottomNavPadding,O=a.backGroundColor,z=a.borderColor,x=a.borderStyle,S=a.descriptionColor,K={},A,C=!1,L=a.successResponse,G=a.failureResponse,D=a.onDemand,J=a.contextAwareIndex,R=a.triggerDependentTargeting,V,Z;if(c===p.sparkleTypes.dynamic&&f&&m){var aa=[];try{aa=JSON.parse(a.stateData)}catch(ca){v.logCounter("illegal_input_stateData");(G=this.failureResponse)&&"function"===typeof G&&G(e.INVALID_STATE_DATA);
return}aa.forEach(function(a){K[a.stateId]={id:a.stateId,mode:a.mode,linkText:a.text,icon:a.icon,descText:a.descriptionText}});document.querySelector(f).addEventListener(m,function(a){A=a.detail})}else if(c===p.sparkleTypes.static){K={initial:{id:"initial",mode:"default",linkText:a.displayText,icon:a.displayIcon,descText:a.descriptionText}};var X={requestUpdate:w,state:"initial",onShow:function(a){this.requestUpdate=a.requestUpdate},onClick:function(){this.requestUpdate({signal:"complete"});var c=
v.nestedJsonParser(Y);c&&0<c.length?setTimeout(function(){b.dispatchShoppingAidEvent(c)},p.timer.animationDelay):setTimeout(function(){r.location.href=a.targetEndpoint},p.timer.animationDelay)},onClose:function(){}};f&&m&&m.toLowerCase()===e.PartnerEvent?Z=k.on(f,function(){A=X}):f&&m?document.querySelector(f).addEventListener(m,function(){A=X}):A=X}else{v.logCounter("illegal_input");(G=this.failureResponse)&&"function"===typeof G&&G(e.ILLEGAL_INPUT);return}return{getSparkleType:function(){return c},
getIdentifier:function(){return d},getState:function(a){return K[a]},isEligible:function(){return!(!A||C)},getEventData:function(){return A},isDone:function(){return C},getWeblabName:function(){return l},getDesiredWeblabTreatment:function(){return h},getAllocatedWeblabTreatment:function(){return g},getSchedulingType:function(){return q},getTargetEndpoint:function(){return y},getTypeOfStaticSparkle:function(){return u},getDisplayIconAltText:function(){return B},getSparkleUIStrings:function(){return t},
getSuccessResponse:function(){return L},getFailureResponse:function(){return G},getOnDemand:function(){return D},getContextAwareIndex:function(){return J},getTriggerDependentTargeting:function(){return R},getNestedSAList:function(){return Y},getClientSideTargetting:function(){return V},getAuiEventCallback:function(){return Z},getBackGroundColor:function(){return O},getBorderColor:function(){return z},getBorderStyle:function(){return x},getDescriptionColor:function(){return S},setBottomNavPadding:function(){H=
"0"!==n?n:w},setClientSideTargetting:function(a){V=a},setState:function(a,b){K[a]=b},setContextAwareIndex:function(a){},setNestedSAList:function(a){},setTriggerDependentTriggering:function(a){},done:function(){C=!0}}}},ba={create:function(b,c){function f(){!1===aa&&(P.parentNode.removeChild(P),N.parentNode.removeChild(N),aa=!0)}function h(){!1===Z&&(J.parentNode.removeChild(J),P.parentNode.removeChild(P),Z=!0)}function g(){!1===ca&&(W.parentNode.removeChild(W),J.parentNode.removeChild(J),N.parentNode.removeChild(N),
ca=!0)}function u(){!1===X&&(J.parentNode.removeChild(J),N.parentNode.removeChild(N),X=!0)}function B(a){T.style.cssText=p.widthString+(95-a)+p.percentile;P.style.cssText=p.widthString+a+p.percentile}function t(a){a?F.classList.add("sparkle-loading"):F.classList.remove("sparkle-loading")}function Y(a){F.classList.remove("sparkle-mode-warning","sparkle-mode-success","sparkle-mode-error");"loading"===a.mode?t(!0):"default"!==a.mode&&F.classList.add("sparkle-mode-"+a.mode);b.getSparkleType()===p.sparkleTypes.static?
b.getTypeOfStaticSparkle()&&"1"!==b.getTypeOfStaticSparkle().toString()?"2"===b.getTypeOfStaticSparkle().toString()?(R.innerText=a.linkText,I.src=a.icon,f(),v.logCounter(b.getIdentifier()+"type2_static_sparkle")):"3"===b.getTypeOfStaticSparkle().toString()?(D.innerText=a.descText,D.ariaHidden="true",C.ariaLabel=a.descText+"."+a.linkText,C.innerHTML=a.linkText,g(),v.logCounter(b.getIdentifier()+"type3_static_sparkle")):"4"===b.getTypeOfStaticSparkle().toString()?(D.innerText=a.descText,D.ariaHidden=
"true",C.ariaLabel=a.descText+"."+a.linkText,C.innerHTML=a.linkText,I.src=a.icon,u(),v.logCounter(b.getIdentifier()+"type4_static_sparkle")):"5"===b.getTypeOfStaticSparkle().toString()?(D.innerText=a.descText,D.ariaHidden="true",C.ariaLabel=a.descText+"."+a.linkText,C.innerHTML=a.linkText,C.style.color=p.whiteColor,B(Math.min(a.linkText.length*p.width.widthFactor+p.width.minCTAWidth,p.width.maxCTAWidth)),g(),v.logCounter(b.getIdentifier()+"type5_static_sparkle")):"6"===b.getTypeOfStaticSparkle().toString()?
(D.innerText=a.descText,D.ariaHidden="true",C.ariaLabel=a.descText+"."+a.linkText,C.innerHTML=a.linkText,C.style.color=p.whiteColor,I.src=a.icon,B(Math.min(a.linkText.length*p.width.widthFactor+p.width.minCTAWidth,p.width.maxCTAWidth)),u(),v.logCounter(b.getIdentifier()+"type6_static_sparkle")):"7"===b.getTypeOfStaticSparkle().toString()?(U.innerHTML=a.linkText,U.style.color=p.whiteColor,I.src=a.icon,h(),v.logCounter(b.getIdentifier()+"type7_static_sparkle")):"8"===b.getTypeOfStaticSparkle().toString()&&
(R.innerText=a.linkText,R.style.color=p.whiteColor,I.src=a.icon,f(),v.logCounter(b.getIdentifier()+"type8_static_sparkle")):(U.innerHTML=a.linkText,I.src=a.icon,h(),v.logCounter(b.getIdentifier()+"type1_static_sparkle")):(C.innerHTML=a.linkText,U.innerHTML=a.linkText,a.descText!==w&&a.icon!==w?(D.innerText=a.descText,I.src=a.icon,D.ariaHidden="true",C.ariaLabel=a.descText+"."+a.linkText,u()):a.icon!==w&&a.descText===w?(I.src=a.icon,h()):a.icon===w&&(D.innerText=a.descText,D.ariaHidden="true",C.ariaLabel=
a.descText+"."+a.linkText,g()));da=a}function z(a){ba.removeSparkleFromView(F);c.sparkleClosed(b,a)}function x(a){if(b.isDone())return!1;switch(a.signal){case "statechange":if(a=b.getState(a.state))return t(!1),Y(a),!0;z("client_illegal_state");return!1;case "complete":return c.sparkleComplete(b),(a=b.getState(a.state))?(t(!1),Y(a),setTimeout(function(){z("client_complete")},p.timer.autoCloseDelay)):z("client_complete"),!0;case "abort":return z("client_abort"),!0;default:return!1}}function fa(b){var c=
r.scrollY;"Android"===A&&b?(d(r).bind("scroll",k.throttle(v.detectUserScroll,100)),20>=c&&(document.getElementsByClassName("sparkle-container")[0].style.bottom=q.andoridBottomPadding_SubnavPresent)):"iPhone"===A&&H&&(n.when("MShopChrome").execute(function(a){a.getBottomBarsHeight({successCallback:function(a){var c=b?a.visibleHeight+q.iOSBottomPadding_SubnavPresent:a.visibleHeight;document.getElementsByClassName("sparkle-container")[0].style.bottom=c+"px";H=a.visibleHeight},failCallback:function(a){v.logCounter("fetchBottomHeight_Failure")}})}),
d(r).bind("scroll",k.throttle(function(){var a=document.getElementsByClassName("sparkle-container")[0].style.bottom;0>=r.scrollY&&b?document.getElementsByClassName("sparkle-container")[0].style.bottom=H+q.iOSBottomPadding_SubnavPresent+"px":0<r.scrollY&&a.slice(0,-2)>H&&b&&(document.getElementsByClassName("sparkle-container")[0].style.bottom=H+"px");a===q.iOSBottomPadding_WhenEndOfPage&&(document.getElementsByClassName("sparkle-container")[0].style.bottom=H+"px");r.innerHeight+r.scrollY>=document.body.scrollHeight&&
(document.getElementsByClassName("sparkle-container")[0].style.bottom=q.iOSBottomPadding_WhenEndOfPage)},100)));a.incrementCounter(m.SPARKLE_BOTTOM_PADDING_PREFIX+G+"_"+A+"_bottomNav_"+!!H+"_Subnav"+b)}function L(a,d){x({signal:"statechange",state:a})&&(document.body.appendChild(F),setTimeout(function(){F.classList.add("sparkle-open");c.getMetricsIntersectionObserver();fa(d);O=!0;if(b.getAuiEventCallback()){var a=b.getAuiEventCallback();l.detachTrigger(a.event,a.callback)}K=Date.now();S=r.scrollY;
c.sparkleShown(b,x);if(b.getSparkleType()!==p.sparkleTypes.static||b.getSparkleType()===p.sparkleTypes.static&&(!b.getTypeOfStaticSparkle()||"1"===b.getTypeOfStaticSparkle().toString()||"2"===b.getTypeOfStaticSparkle().toString()||"3"===b.getTypeOfStaticSparkle().toString()||"4"===b.getTypeOfStaticSparkle().toString())){a=document.getElementsByClassName("sparkle-container")[0];var e=a.getElementsByClassName("sparkle-content")[0].getElementsByClassName("sparkle-description-container")[0].getElementsByClassName("sparkle-description")[0];
b.getBackGroundColor()!==w&&(a.style.background=b.getBackGroundColor());b.getBorderColor()!==w&&(a.style.borderColor=b.getBorderColor());b.getBorderStyle()!==w&&(a.style.borderStyle=b.getBorderStyle());b.getDescriptionColor()!==w&&(e.style.color=b.getDescriptionColor())}a=document.getElementsByClassName("sparkle-container")[0];a.removeAttribute("role");a.removeAttribute("aria-live");a.removeAttribute("aria-label");a.removeChild(V)},p.timer.animationDelay))}var E=!1,Q=!1;try{var M=JSON.parse(b.getSparkleUIStrings())}catch(ha){v.logCounter("invalid_ui_string_input"),
M={}}b.getSparkleType()!==p.sparkleTypes.static||!b.getTypeOfStaticSparkle()||"5"!==b.getTypeOfStaticSparkle().toString()&&"6"!==b.getTypeOfStaticSparkle().toString()&&"7"!==b.getTypeOfStaticSparkle().toString()&&"8"!==b.getTypeOfStaticSparkle().toString()||Q?E||(Q=!1,E=!0,"rtl"===document.dir?v.injectStyleToDom(y.defaultStyleRTLCSS):v.injectStyleToDom(y.defaultStyleCSS)):(Q=!0,E=!1,"rtl"===document.dir?v.injectStyleToDom(y.newStyleRTLCSS):v.injectStyleToDom(y.newStyleCSS));var F=document.createElement("div");
F.classList.add("sparkle-container");F.role="alert";F.ariaLive="polite";F.ariaLabel=M.sparkleAnnouncementPrefix?M.sparkleAnnouncementPrefix:p.sparkleAnnouncementPrefix;F.setAttribute(e.view.saDOMNameAttribute,b.getIdentifier());var T=document.createElement("div");T.classList.add("sparkle-content");var W=document.createElement("div");W.classList.add("sparkle-image-container");E=document.createElement("img");E.classList.add("sparkle-image-loader");E.src=p.spinnerUrl;var I=document.createElement("img");
I.classList.add("sparkle-image");I.alt=b.getDisplayIconAltText()?b.getDisplayIconAltText():p.defaultAltText;W.appendChild(E);W.appendChild(I);var P=document.createElement("div");P.classList.add("sparkle-linkText-container");var C=document.createElement("a");C.classList.add("sparkle-linkText");C.href="#";P.appendChild(C);var N=document.createElement("div");N.classList.add("sparkle-text-container");var U=document.createElement("a");U.classList.add("sparkle-text");U.href="#";N.appendChild(U);E=document.createElement("div");
E.classList.add("sparkle-description-container");var D=document.createElement("a");D.classList.add("sparkle-description");D.innerText=" ";E.appendChild(D);var J=document.createElement("div");J.classList.add("sparkle-text-container");var R=document.createElement("p");R.classList.add("sparkle-text");R.innerText=" ";var V=document.createElement("div");V.ariaLabel=M.sparkleAnnouncementSuffix?M.sparkleAnnouncementSuffix:p.sparkleAnnouncementSuffix;V.role="button";J.appendChild(R);T.appendChild(W);T.appendChild(N);
T.appendChild(J);T.appendChild(E);M=document.createElement("div");M.classList.add("sparkle-close");E=document.createElement("button");E.classList.add("sparkle-close-btn");E.ariaLabel="close";Q=document.createElement("i");Q.classList.add("a-icon");Q.classList.add("a-icon-close");Q.classList.add("a-icon-mini");E.appendChild(Q);M.appendChild(E);F.appendChild(T);F.appendChild(P);F.appendChild(M);F.appendChild(V);var Z=!1,aa=!1,X=!1,ca=!1,da;P.addEventListener("click",function(a){a.preventDefault();t(!0);
c.sparkleClicked(b,da)});N.addEventListener("click",function(a){a.preventDefault();t(!0);c.sparkleClicked(b,da)});n.when("mash").execute(function(a){"iPhone"===A&&H&&a.addEventListener("bottomBarsUpdate",k.throttle(function(a){a=a.detail.visibleHeight+"px";0<r.scrollY&&(document.getElementsByClassName("sparkle-container")[0].style.bottom=a)},100))});M.addEventListener("click",function(){z("customer_closed")});return{display:function(a){if("Android"===A||"iPhone"===A){var b=q.shouldAddPaddingForPage(G);
L(a,b)}else L(a)},isSparkleDisplaying:function(){return O}}},removeSparkleFromView:function(a){a&&(a.classList.add("sparkle-closing"),O=!1,setTimeout(function(){d(r).unbind("scroll",v.detectUserScroll());a.remove()},p.timer.animationDelay))}};c={models:{},dismissWithId:function(a,b,c){var d=document.getElementsByClassName("sparkle-container")[0];d&&d.getAttribute(e.view.saDOMNameAttribute)===a?(ba.removeSparkleFromView(d),b&&"function"===typeof b&&b()):c&&"function"===typeof c&&c(e.errorCodes.SA_NOT_DISPLAYED)},
init:function(a){G=a.page;(A=a.platform)||(A=l.platformCheck());this.models=this.createModels(a.sparkles);this.render()},invokeOnDemandSparkle:function(a){G=a.page;(A=a.platform)||(A=l.platformCheck());if(a=ea.create(a.sparkles))Array.isArray(this.models)?this.models.unshift(a):this.models=[a];this.render()},createModels:function(a){var b=[];a.forEach(function(a){(a=ea.create(a))&&b.push(a)});return b},getNextEligible:function(){for(var a=0;a<this.models.length&&!this.models[a].isEligible();a++);
return this.models.splice(a,1)[0]},render:function(){setTimeout(function(){if(g.view.hasNoPopover()){var a=this.getNextEligible();a&&!l.weblabTriggerAndCheck(a,p.shoppingAidsType)&&a.done();if(a){if(l.isDefined(a.getTriggerDependentTargeting())){var b=a.getTriggerDependentTargeting();a.setClientSideTargetting(b);a=v.executeContextAwareSubstitution(a)}b=ba.create(a,this);a.setBottomNavPadding();a.getOnDemand()&&b.isSparkleDisplaying()?(a=a.getFailureResponse())&&"function"===typeof a&&a(e.errorCodes.SPARKLE_IN_VIEW):
b.display(a.getEventData().state)}else 0<this.models.length&&this.render()}else this.render()}.bind(this),p.timer.displayLoopDelay)},sparkleShown:function(a,b){v.logImpression(a.getIdentifier(),a.getSchedulingType(),{successCallback:function(){v.logCounter("logImpression_success");var b=a.getSuccessResponse();b&&"function"===typeof b&&b()},errorCallback:function(){v.logCounter("logImpression_error")},contextAwareIndex:a.getContextAwareIndex()});v.logCounter("sparkleShown");v.logCounter(a.getIdentifier()+
"_sparkleShown");this._scrollDepthMetricLogger(a.getIdentifier(),S,m.SPARKLE_DISPLAY_ATF,m.SPARKLE_DISPLAY_SCROLLED,m.SPARKLE_DISPLAY_DEPTH,m.SPARKLE_DISPLAY_DEPTH_PERCENTAGE);a.getEventData().onShow({requestUpdate:b})},sparkleClicked:function(a,b){a.getEventData().onClick({state:b.id});b=r.scrollY-S;this._scrollDepthMetricLogger(a.getIdentifier(),b,m.SPARKLE_CTA_ATF,m.SPARKLE_CTA_SCROLLED,m.SPARKLE_CTA_DEPTH,m.SPARKLE_CTA_DEPTH_PERCENTAGE,m.SPARKLE_CTA);b=Date.now()-K;v.logCounter(m.SPARKLE_CTA_TIME,
b);v.logCounter(a.getIdentifier()+"_"+m.SPARKLE_CTA_TIME,b);"Android"===A&&(v.logCounter(m.SPARKLE_CTA_MAX_SCROLL_DEPTH,x),v.logCounter(a.getIdentifier()+"_"+m.SPARKLE_CTA_MAX_SCROLL_DEPTH,x),b=Math.ceil(x/L*100),v.logCounter(m.SPARKLE_CTA_MAX_SCROLL_DEPTH_PERCENTAGE,b),v.logCounter(a.getIdentifier()+"_"+m.SPARKLE_CTA_MAX_SCROLL_DEPTH_PERCENTAGE,b),x=0,v.logCounter(m.SPARKLE_CTA_SCROLL_DIRECTION_CHANGE+z),v.logCounter(a.getIdentifier()+"_"+m.SPARKLE_CTA_SCROLL_DIRECTION_CHANGE+z),z=0)},sparkleClosed:function(a,
b){if("customer_closed"===b){v.logImpression(a.getIdentifier(),a.getSchedulingType(),{userEvent:e.userEvent.optOut,successCallback:function(){v.logCounter("logOptOut_success");var b=a.getSuccessResponse();b&&"function"===typeof b&&b()},errorCallback:function(){v.logCounter("logOptOut_error")},contextAwareIndex:a.getContextAwareIndex()});var c=r.scrollY-S;this._scrollDepthMetricLogger(a.getIdentifier(),c,m.SPARKLE_DISMISS_ATF,m.SPARKLE_DISMISS_SCROLLED,m.SPARKLE_DISMISS_DEPTH,m.SPARKLE_DISMISS_DEPTH_PERCENTAGE,
m.SPARKLE_DISMISSED)}v.logCounter("sparkleClosed");v.logCounter("sparkleClosed_"+b);v.logCounter(a.getIdentifier()+"_sparkleClosed");v.logCounter(a.getIdentifier()+"_sparkleClosed_"+b);c=Date.now()-K;v.logCounter(m.SPARKLE_DISPLAY_DURATION,c);v.logCounter(a.getIdentifier()+"_"+m.SPARKLE_DISPLAY_DURATION,c);"Android"===A&&(v.logCounter(m.SPARKLE_DISMISS_MAX_SCROLL_DEPTH,x),v.logCounter(a.getIdentifier()+"_"+m.SPARKLE_DISMISS_MAX_SCROLL_DEPTH,x),c=Math.ceil(x/L*100),v.logCounter(m.SPARKLE_DISMISS_MAX_SCROLL_DEPTH_PERCENTAGE,
c),v.logCounter(a.getIdentifier()+"_"+m.SPARKLE_DISMISS_MAX_SCROLL_DEPTH_PERCENTAGE,c),x=0,v.logCounter(m.SPARKLE_DISMISS_SCROLL_DIRECTION_CHANGE+z),v.logCounter(a.getIdentifier()+"_"+m.SPARKLE_DISMISS_SCROLL_DIRECTION_CHANGE+z),z=0);a.done();a.getEventData().onClose({reason:b});this.render()},sparkleComplete:function(a){v.logInteraction(a.getIdentifier(),a.getSchedulingType,function(){v.logCounter("logInteraction_success");v.logCounter(a.getIdentifier()+"_logInteraction_success")},function(){v.logCounter("logInteraction_error");
v.logCounter(a.getIdentifier()+"_logInteraction_error")})},getMetricsIntersectionObserver:function(){"Android"===A&&(v.logCounter("sparkle_android_user"),r.IntersectionObserver?v.logCounter("sparkle_android_intersectionObserver_supported"):v.logCounter("sparkle_android_intersectionObserver_not_supported"))},_isSparkleATF:function(a){return a<L},_scrollDepthMetricLogger:function(a,b,c,d,e,m,f){var h=Math.ceil(b/L*100);this._isSparkleATF(b)?(v.logCounter(c),v.logCounter(a+"_"+c)):(v.logCounter(d),v.logCounter(a+
"_"+d));l.isDefined(f)&&(v.logCounter(f),v.logCounter(a+"_"+f));v.logCounter(e,b);v.logCounter(a+"_"+e,b);v.logCounter(m,h);v.logCounter(a+"_"+m,h)}};return{init:c.init.bind(c),invokeOnDemandSparkle:c.invokeOnDemandSparkle.bind(c),dismissWithId:c.dismissWithId.bind(c)}})})();(function(){n.register("SparkleConstants",function(){return{timer:{displayLoopDelay:3E3,animationDelay:500,autoCloseDelay:1E4},width:{maxCTAWidth:30,minCTAWidth:10,widthFactor:2.3},sparkleTypes:{static:"static",dynamic:"dynamic"},
sparkleEvent:{displayEvent:"display",closeEvent:"close"},shoppingAidsType:"sparkle",spinnerUrl:"https://m.media-amazon.com/images/G/01/amazonui/loading/loading-4x._V1_.gif",defaultAltText:"Amazon Retail Website logo",whiteColor:"rgb(255,255,255)",widthString:"width: ",sparkleAnnouncementPrefix:"Notification on Screen",sparkleAnnouncementSuffix:"Please go to the end of the page to interact with this notification",percentile:"%;"}})})();(function(){n.when("A","ValueOfFilter","HTMLFilter","CookieFilter",
"URLFilter","QTipsMetrics","SAMetricConstants","SAFeature","QTipsConstants","ShoppingAidsGenericUtils","PageResolver").register("ShoppingAidsFilters",function(k,d,a,e,g,c,b,l,f,h,q){return{filteredShoppingAids:{},start:function(a){return this.filterShoppingAids(a)},removeIneligibleAid:function(a,b){a.splice(b,1)},isShoppingAidEligible:function(a){c.incrementCounter(b.SA_CACHE_PREFIX+b.CLIENTSIDE_FILTER+b.START);return-1!==this.getContextTargetingIndex(a)},getContextTargetingIndex:function(a){if(a.clientSideTargetting&&
a.desiredWeblabTreatment&&-1!==a.clientSideTargetting.indexOf(f.contextAwareSADelimiter)&&-1!==a.desiredWeblabTreatment.indexOf(f.contextAwareSADelimiter))return-1;var b=0;a.invokingEventElement&&a.invokingEventType&&!a.triggerDependentCheck&&(a.triggerDependentTargeting=a.clientSideTargetting,delete a.clientSideTargetting);if(a.clientSideTargetting){b=-1;for(var c=a.clientSideTargetting.split(f.contextAwareSADelimiter),d=0;d<c.length;d++)if(this.excecuteClientSideTargetting(c[d].trim())){b=d;break}}if(0===
b&&a.desiredWeblabTreatment&&a.weblabName&&a.allocatedWeblabTreatment)for(c=a.desiredWeblabTreatment.split(f.contextAwareSADelimiter),d=0;d<c.length;d++)if(c[d].trim()===a.allocatedWeblabTreatment.trim()){b=d;break}return b},excecuteClientSideTargetting:function(a){var d=h.parseJSONStringIfValid(a);if(h.isDefined(d)){if(h.isDefined(d.pages))return a=q.pageAdapter(),d=d.pages[a],h.isDefined(d)?this.startFilteringCriteriaExecutor(d):!0;c.incrementCounter(b.SA_CACHE_PREFIX+b.CLIENTSIDE_FILTER+b.INVALID);
return!1}return this.startFilteringCriteriaExecutor(a)},filterShoppingAidsArray:function(a){for(var b=a.length-1;0<=b;b--)this.isShoppingAidEligible(a[b])||this.removeIneligibleAid(a,b)},filterShoppingAids:function(a){var b=a.ShoppingAidsList;b&&(Array.isArray(b.MultiPageShoppingAids)&&this.filterShoppingAidsArray(b.MultiPageShoppingAids),Array.isArray(b.ToolTips)&&this.filterShoppingAidsArray(b.ToolTips),Array.isArray(b.BottomSheets)&&this.filterShoppingAidsArray(b.BottomSheets),Array.isArray(b.Sparkles)&&
this.filterShoppingAidsArray(b.Sparkles),Array.isArray(b.Audiospots)&&this.filterShoppingAidsArray(b.Audiospots),Array.isArray(b.Hotspots)&&this.filterShoppingAidsArray(b.Hotspots),Array.isArray(b.Highlighters)&&this.filterShoppingAidsArray(b.Highlighters));return a},startFilteringCriteriaExecutor:function(a){a=this.splitOrCondition(a);for(var b,c=0;c<a.length;c++)if(b=this.executeOrCondition(a[c].trim()))return!0;return!1},splitAndCondition:function(a){return a.split("(AND)")},splitOrCondition:function(a){return a.split("(OR)")},
executeOrCondition:function(a){if(-1!==a.indexOf("(AND)")){a=this.splitAndCondition(a);for(var b,c=0;c<a.length;c++)if(b=this.executeFilter(a[c].trim()),!b)return!1;return!0}return this.executeFilter(a)},executeFilter:function(b){b=b.split(" ");switch(b[0]){case "url":return g.execute(b);case "cookie":return e.execute(b);case "html":return a.execute(b);case "valueOf":return d.execute(b);case "valueOfAAPI":return!0;default:return!1}}}})})();(function(){n.when("A").register("CookieFilter",function(k){return{execute:function(d){var a=
this.getCookie(),e=d[2];switch(d[1]){case "contains":return-1!==a.indexOf(e);case "not_contains":return-1===a.indexOf(e);case "pattern":return 0<(a.match(e)||[]).length;default:return!1}},getCookie:function(){return document.cookie}}})})();(function(){n.when("A").register("HTMLFilter",function(k){return{execute:function(d){var a=d[1];switch(d[2]){case "visible":return 0<k.$(a+":visible").length;case "hidden":return 0<k.$(a+":hidden").length;case "disabled":return 0<k.$(a+":disabled").length;case "not_visible":return 0>=
k.$(a+":visible").length;case "not_hidden":return 0>=k.$(a+":hidden").length;case "not_disabled":return 0>=k.$(a+":disabled").length;default:return!1}}}})})();(function(){n.when("A").register("URLFilter",function(k){return{getWindowLocationHref:function(){return r.location.href},execute:function(d){var a=this.getWindowLocationHref(),e=d[2];switch(d[1]){case "contains":return-1!==a.indexOf(e);case "equals":return a.toLowerCase()===e.toLowerCase();case "not_equals":return a.toLowerCase()!==e.toLowerCase();
case "pattern":return 0<(a.match(e)||[]).length;default:return!1}}}})})();(function(){n.when("A").register("ValueOfFilter",function(k){return{execute:function(d){for(var a=d[2],e=k.$(d[1]).text().replace(/(\r\n|\n|\r)/gm,""),g="",c=3;c<d.length-1;c++)g=g+d[c]+" ";g+=d[d.length-1];switch(a){case "greater":return Number(e.replace(/(,)/gm,""))>Number(g);case "less":return Number(e.replace(/(,)/gm,""))>Number(g);case "equals":return e===g;case "not_equals":return e!==g;case "contains":return-1!==e.indexOf(g);
case "not_contains":return-1===e.indexOf(g);case "pattern":return 0<(e.match(g)||[]).length;default:return!1}}}})})();(function(){n.when("A","QTipsMetrics").register("NestedShoppingAidHelper",function(k,d){function a(a,d){d=d||{bubbles:!1,cancelable:!1,detail:null};if(r&&r.CustomEvent)var c=new r.CustomEvent(a,{detail:d.detail});else r&&r.initCustomEvent&&(c=document.createEvent("CustomEvent"),c.initCustomEvent(a,d.bubbles,d.cancelable,d.detail));return c}return{dispatchShoppingAidEvent:function(e){(e=
a("SA:InvokeOnDemandSA",{detail:e}))?(document.dispatchEvent(e),d.incrementCounter("nestedShoppingAidHelper:ShoppingAidData:invoked")):d.incrementCounter("nestedShoppingAidHelper:CustomEvent_not_supported")},dispatchDismissShoppingAidEvent:function(e){(e=a("SA:OnDemandDismissSA",{detail:e}))?(document.dispatchEvent(e),d.incrementCounter("nestedShoppingAidHelper:ShoppingAidData:dismissed")):d.incrementCounter("nestedShoppingAidHelper:CustomEvent_not_supported")}}})})();(function(){n.when("A","jQuery",
"SAAudiospotConstants","AnchorBasedSAUtils","QTipsMetrics","AudioMetrics").register("AudioStateManager",function(k,d,a,e,g,c){var b=a.metrics.PREFIX,l={playIconId:a.cssConstants.playIconId,pauseIconId:a.cssConstants.pauseIconId,playSVG:a.cssConstants.playSVG,progressBarId:a.cssConstants.progressBarId,fillerCircleId:a.cssConstants.fillerCircleId,circumference:"",elementIdStore:[],cacheElementsid:function(){this.elementIdStore.playIcon=d(this.playIconId)[0];this.elementIdStore.pauseIcon=d(this.pauseIconId)[0];
this.elementIdStore.playSVG=d(this.playSVG)[0];this.elementIdStore.progressBar=d(this.progressBarId);this.elementIdStore.fillerCircle=d(this.fillerCircleId)},_transposePlayIcon:function(){d(this.elementIdStore.playIcon).show();d(this.elementIdStore.pauseIcon).hide();d(this.elementIdStore.fillerCircle)[0].style.fill="#0B8699";d(this.elementIdStore.fillerCircle)[0].r.baseVal.value=16},_transposePauseIcon:function(){d(this.elementIdStore.playIcon).hide();d(this.elementIdStore.pauseIcon).show();d(this.elementIdStore.fillerCircle)[0].style.fill=
"#fff";d(this.elementIdStore.fillerCircle)[0].r.baseVal.value=12},_modifyPlayStateCss:function(){d(this.elementIdStore.playSVG).show()},updateVisualTimer:function(a){var b=d(this.elementIdStore.progressBar)[0],c=this.circumference;a=(1-a)*c;b.style.setProperty("--initialStroke",c);b.style.strokeDashoffset=a},_resetTimer:function(){d(this.elementIdStore.progressBar)[0].style.strokeDashoffset=this.circumference},setCircumference:function(a){a=d(this.elementIdStore.progressBar)[0];this.circumference=
2*Math.PI*a.r.baseVal.value}},f={initialState:a.audioStates.INITIAL_STATE,playState:a.audioStates.PLAY_STATE,pauseState:a.audioStates.PAUSE_STATE,completeState:a.audioStates.COMPLETION_STATE,identifier:"",replayed:!1,configureAudio:function(a){f.audio=new Audio;f.audio.src=a.get("audioSource");this.identifier=a.get("identifier");this.setState(this.initialState);this._addAudioEventListeners();c._addMetricEventListeners(f.audio,this.identifier)},_updateAnimation:function(){switch(f.state){case this.playState:this._togglePlay();
break;case this.pauseState:this._togglePause();break;case this.completeState:l._resetTimer(),this._togglePause()}},_togglePlay:function(){f.audio.play();l._transposePauseIcon();l._modifyPlayStateCss();this.replayed?g.incrementCounter(b+a.metrics.REPLAY,1,this.identifier):g.incrementCounter(b+a.metrics.PLAY,1,this.identifier)},_togglePause:function(){f.audio.pause();var c=f.audio.currentTime;f.audio.currentTime=0;l._transposePlayIcon();g.incrementCounter(b+a.metrics.PAUSE,c,this.identifier)},_addAudioEventListeners:function(){f.audio.addEventListener("ended",
function(){f.setState(f.completeState);f.replayed=!0;g.incrementCounter(b+a.metrics.END,1,f.identifier)});f.audio.addEventListener("timeupdate",k.throttle(function(){f.getCurrentState()!==f.completeState&&l.updateVisualTimer(f.audio.currentTime/f.audio.duration)},500))},setState:function(a){a&&(f.state=a,this._updateAnimation())},getCurrentState:function(){return f.state},cacheElementData:function(){l.cacheElementsid();l.setCircumference()}};return f})})();(function(){n.register("SAConfig",function(){return{cookies:{language:"lc-main"},
defaultLoP:"en_US",intervalBetweenSuccessiveTips:0}})})();(function(){n.register("SAEndPointsConfig",function(){return{fetchShoppingAidsEndPoint:"/shoppingaids/fetchshoppingaids",logImpressionEndPoint:"/shoppingaids/logimpression"}})})();(function(){n.when("A","jQuery","ShoppingAidsGenericUtils","QTipsMetrics","ShoppingAidsFilters","ContextAwareSubstitutor").register("AnchorBasedSAUtils",function(k,d,a,e,g,c){return{metricsPrefix:"SA_AnchorBasedSAUtils_",aPage:"#a-page",processAnchor:function(a,c){c=
a.split(c);Array.isArray(c)||(c=[c]);Array.prototype.find||(Array.prototype.find=function(a,b){var c=this.length,d;for(d=0;d<c;d+=1)if(a.call(b,this[d],d,this))return this[d];return w});return c.find(function(a,b,c){return d(a).length})||a},getIndexByAnchor:function(a,c){Array.prototype.findIndex||(Array.prototype.findIndex=function(a,b){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!==typeof a)throw new TypeError("callback must be a function");
for(var c=Object(this),d=c.length,e,f=0;f<d;f++)if(e=c[f],a.call(b,e,f,c))return f;return-1});return a.findIndex(function(a,b,d){return c+""===Object.keys(d[b])[0]},c)},getAUIScrollPageValue:function(){if(0<d(this.aPage).length){var b=parseInt(d(this.aPage).css("top"));return a.isDefined(b)?b:0}return 0},getIndexByIdentifier:function(a,c){Array.prototype.findIndex||(Array.prototype.findIndex=function(a,b){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");
if("function"!==typeof a)throw new TypeError("callback must be a function");for(var c=Object(this),d=c.length,e,f=0;f<d;f++)if(e=c[f],a.call(b,e,f,c))return f;return-1});return a.findIndex(function(a,b,d){return c+""===d[b].id},c)},isElementPresent:function(b){return d(b).length&&0<d(b).length&&a.isDefined(d(b).offset())&&d(b).is(":visible")},isElementVisible:function(b){var c=r.scrollY||r.pageYOffset,e=document.documentElement.scrollTop||document.body.scrollTop;c=a.isDefined(c)?c:e;e=c+(r.innerHeight||
d(r).height());var h=d(b);h=a.isDefined(h)?h.offset():w;return a.isDefined(h)&&(h=h.top,d(b+":visible")[0]&&c<=h&&h<e)?!0:!1},isShoppingAidOverPopoverVisible:function(a,c){return this.isElementVisible(a)&&this.isElementVisible(c)?!0:!1},setDependentElement:function(a){var b=a.get("popoverAnchor");b&&(b=b.split("::"),b[1]&&"disable"===b[1]&&a.set({dependentElementAnchor:b[1]}))},_isElementDisabled:function(a){return d(a+":disabled")[0]?!0:!1},isDependentCheckSatisfied:function(a){return(a=a.get("dependentElementAnchor"))?
this._isElementDisabled(a):!0},isElementOrParentFixed:function(a){var b=!1,c=d(a);c.add(c.parents()).each(function(){"fixed"===d(this).css("position")&&(b=!0,e.incrementCounter(this.metricsPrefix+"elementOrParentFixed_"+a))});return b},onDemandContextAwareSubstitution:function(b,d){b=k.parseJSON(b.toJson());var e=g.getContextTargetingIndex(b);if(c.substitute(b,e,d))return a.convertModel(b)},getAidAnchorElement:function(a,c){return(c=this.getAnchorFieldForValidSAType(c))?a[c]:w},getAnchorFieldForValidSAType:function(a){return{tool_tip:"elementAnchor",
hotspot:"hotspotAnchor",audiospot:"audiospotAnchor"}[a]}}})})();(function(){n.when("A","jQuery","QTipsMetrics","QTipLibrary","SAMetricConstants","PageResolver","ShoppingAidsCacheData","LocalStorageInterface","SASupportedMarketplaceConfig","SACommonConstants").register("ShoppingAidsGenericUtils",function(k,d,a,e,g,c,b,l,f,h){var q;return{isDefined:function(a){return null!==a&&a!==w},isObjectEmpty:function(a){return k.objectIsEmpty(a)},_getUserAgent:function(){return r.navigator.userAgent.toLowerCase()},
_getCookieList:function(){return document.cookie?document.cookie.split(";"):[]},platformCheck:function(){var b=h.UNSUPPORTED_PLATFORM;this.isMobileDevice()&&(this.isAndroidDevice()?b=this.isMShop()?h.MSHOP_ANDROID:h.MWEB_ANDROID:this.isIOSDevice()&&(b=this.isMShop()?h.MSHOP_IPHONE:h.MWEB_IPHONE));a.incrementCounter("SA_Platform_"+b);return b},isPlatformSupportedForToolTipUxExperiment:function(){var a=this.platformCheck();return a!==h.UNSUPPORTED_PLATFORM&&a!==h.DESKTOP&&a!==h.TABLET},isAndroidDevice:function(){return!!k.capabilities&&
k.capabilities.android},isIOSDevice:function(){return!!k.capabilities&&k.capabilities.ios},isMShop:function(){return!!k.capabilities&&k.capabilities.isAmazonApp},isMobileDevice:function(){return!!k.capabilities&&k.capabilities.mobile},hasNoPopover:function(a,b,c){a=d(a);for(c=0;c<a.length;c++){var e=a[c].style,f=a[c].className;if(e&&e.display&&"none"!==e.display&&-1===f.indexOf("a-popover-secondary"))return!1}return!d(".a-sheet-content-container").is(":visible")&&!d(b).is(":visible")},weblabTriggerAndCheck:function(b,
c){if("sparkle"===c){c=new e.Model;c.set({allocatedWeblabTreatment:b.getAllocatedWeblabTreatment()});c.set({weblabName:b.getWeblabName()});c.set({desiredWeblabTreatment:b.getDesiredWeblabTreatment()});var d=c}else d=b;if(d){c=d.get("allocatedWeblabTreatment");var f=d.get("weblabName");d=d.get("desiredWeblabTreatment");return f&&c&&d?(r.ue.trigger&&(r.ue.trigger(f,c),a.incrementCounter(g.SHOPPINGAIDS_WEBLAB_TRIGGER+f+"_"+c)),c===d&&!b.get("weblabTriggerOnlyFlag")):!0}return!1},logClientSideWeblabMetricsForSAList:function(b,
c,d){k.each(b,function(b,e){k.each(b,function(b,e){b.allocatedWeblabTreatment&&b.weblabName&&b.desiredWeblabTreatment&&(a.incrementCounter(c+b.weblabName+"_"+b.allocatedWeblabTreatment),d&&a.incrementCounter(g.SHOPPINGAIDS_WEBLAB_AFTER_FETCH_CALL_BACKEND_CALL+b.weblabName+"_"+b.allocatedWeblabTreatment))})})},logClientSideWeblabMetrics:function(b,c){if(b){var d=b.get("allocatedWeblabTreatment"),e=b.get("weblabName");b=b.get("desiredWeblabTreatment");e&&d&&b&&a.incrementCounter(c+e+"_"+d)}},getCookie:function(a){for(var b=
this._getCookieList(),c=0;c<b.length;c++){var d=b[c].trim().split("\x3d"),e=d[0].replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent);if(a===e)return d.slice(1).join("\x3d").replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}},getFromLocalStorage:function(a){if(l.isLocalStorageExposed())return localStorage.getItem(a)},setInLocalStorage:function(a,b){if(l.isLocalStorageExposed())try{localStorage.setItem(a,b)}catch(u){}},removeFromLocalStorage:function(a){if(l.isLocalStorageExposed())return localStorage.removeItem(a)},
removeFromLocalStorageIfPresent:function(a){if(l.isLocalStorageExposed())return localStorage.getItem(a)?(localStorage.removeItem(a),1):0},getWindowLocationPath:function(){return r.location.pathname},getWindowLocationQueryString:function(){return r.location.search},isSADebugRequest:function(){return k.contains(c.getWindowLocationHref(),"isSADebug")&&"1"===this.getQueryParameter("isSADebug")},isMarketplaceRTLEnabled:function(){return"rtl"===document.dir},isShoppingAidForWeblabTesting:function(a){return a&&
-1!==a.indexOf("Weblab_Test")},getQueryParameter:function(a){this.isDefined(q)||(q=this.getQueryParameterMap());return q[a]?q[a]:""},getQueryParameterMap:function(){for(var a={},b=(c.getWindowLocationHref().split("?")[1]||"").split("\x26"),d=0;d<b.length;d++){var e=b[d].split("\x3d"),f=decodeURIComponent(e[0]);e=decodeURIComponent(e[1]);f&&e&&(a[f]=e)}return a},getSAListTypeFromShoppingAidsType:function(a){return{tool_tip:"ToolTips",bottom_sheet:"BottomSheets",sparkle:"Sparkles",multiPageShoppingAids:"MultiPageShoppingAids",
hotspot:"Hotspots",audiospot:"Audiospots"}[a]},isNonEmptyArray:function(a){return a&&Array.isArray(a)&&a.length},addStyleToHead:function(a){var b=document.createElement("style");b.innerHTML=a;document.head.appendChild(b)},defaultJSONIfUndefined:function(a,b){return a||b},parseJSONStringIfValid:function(a){try{var b=k.parseJSON(a);if(b&&"object"===typeof b)return b}catch(u){}return null},getAsin:function(){var a=(a=r.location.href.match(/\/(?:dp|gp\/product|gp\/aw\/d|gp\/mobile\/udp)\/([a-zA-Z0-9]{10})(?:\/|\?|#|$)/))?
a[1]:void 0;return"undefined"!==typeof a?a:"undefined"!==typeof r.ue_pti?r.ue_pti:""},isDesktopPageRequestSupported:function(){},getMarketplaceID:function(){return r.ue_mid},getPageHitRequestID:function(){return r.ue_id?r.ue_id:""},isSupportedMarketplace:function(){return this.getMarketplaceName()?!0:!1},getMarketplaceName:function(){var a=this.getMarketplaceID();return f.supportedMarketplace[a]},minutesBetween:function(a,b){return Math.round(Math.abs(a-b)/6E4)},isMutationObserverSupported:function(){return r&&
r.MutationObserver},isInRange:function(a,b,c){return a>=b&&a<=c},isValidCampaignAvailable:function(a){for(var b in a)if(!this.isObjectEmpty(a[b].data))return!0;return!1},shouldBackOff:function(a){return 0<b.getTTLExpFactorForPageType(a)&&b.cacheExpiryTimeForPage(a)>=Date.now()?!0:!1},dispatchMASHEvent:function(a,b,c){this.isDefined(a)&&this.isDefined(b)&&this.isDefined(c)&&n.when("mash").execute(function(d){d.dispatchEvent({type:"sa_".concat(a.toString(),".",b.toString()),detail:c})})},getAbsoluteHeight:function(a){a=
"string"===typeof a?document.querySelector(a):a;var b=r.getComputedStyle(a);b=parseFloat(b.marginTop)+parseFloat(b.marginBottom);return Math.ceil(a.offsetHeight+b)},convertModel:function(a){return a=new e.Model(a)},detachTrigger:function(a,b){this.isDefined(a)&&k.off(a,b)},isAPDNativeEnvironment:function(){return"undefined"!==typeof r.isNativeEnvironment&&r.isNativeEnvironment&&"undefined"!==typeof r.NativeInterface&&r.NativeInterface},dispatchCustomEvent:function(b,c){c=c||{bubbles:!1,cancelable:!1,
detail:null};if(r&&r.CustomEvent)var d=new r.CustomEvent(b,{detail:c.detail});else r&&r.initCustomEvent&&(d=document.createEvent("CustomEvent"),d.initCustomEvent(b,c.bubbles,c.cancelable,c.detail));d?(document.dispatchEvent(d),a.incrementCounter("ShoppingAidGenericUtils:CustomEvent:"+b+":dispatched")):a.incrementCounter("ShoppingAidGenericUtils:CustomEventDispatch:not_supported")},getQueryParameterValue:function(a){return(new r.URLSearchParams(r.location.search)).get(a)}}})})();(function(){var k;
n.when("page-detector-current-page").execute(function(d){k=d});n.when("A","jQuery","QTipsMetrics","SAPageMap").register("PageResolver",function(d,a,e,g){return{urlPageTypeMap:g.urlPageTypeMap,pageMap:g.windowPageTypeMap,subPageTypeMap:g.subPageTypeMap,umbrellaPageTypes:g.umbrellaPageTypes,getWindowLocationHref:function(){return r.location.href},pageAdapter:function(){var a=r.ue_pty;if(a&&(a=a.toLowerCase(),this.pageMap[a])){var b=this.pageMap[a];e.incrementCounter("qtipsWindowUePtyUsed")}b=this.determineSubPageType(b);
if(!b){a=this.getWindowLocationHref();for(var d in this.urlPageTypeMap)if(this.urlPageTypeMap.hasOwnProperty(d)&&a.match(new RegExp(d,"i")))return e.incrementCounter("qtipsURLRegexUsed"),this.urlPageTypeMap[d]}return b},subPageTypeAdapter:function(a){var b;if(a=this.subPageTypeFactory(a))a=a.toLowerCase(),this.subPageTypeMap[a]&&(b=this.subPageTypeMap[a]);return b},subPageTypeFactory:function(a){if("checkoutPipeline"===a)return e.incrementCounter("qtips-checkoutPageDetectorUsed"),k?k.getCurrentPage():
null;e.incrementCounter("qtips-WindowUeSPtyUsed");return r.ue_spty},isUmbrellaPageTypes:function(a){return a?this.umbrellaPageTypes[a]?!0:!1:!1},determineSubPageType:function(a){return this.isUmbrellaPageTypes(a)?this.subPageTypeAdapter(a):a}}})})();(function(){n.when("A").register("SAPageMap",function(k){return{windowPageTypeMap:{"gateway-phone-web":"gateway","gateway-phone-apps":"gateway","exports-gateway-phone-web":"gateway","exports-gateway-phone-apps":"gateway",detailaw:"detailpage",detailwebview:"detailpage",
searchaw:"search",checkoutthankyouaw:"thankYou",checkoutthankyouwebview:"thankYou",amazonmoneyamazonapp:"money",shoppingcartaw:"cart",shoppingcartwebview:"cart",amazonmoneymobile:"pay",inprepaidrecharge:"recharge",inbillpayments:"billPayment",flights:"travel",bustickets:"travel",movies:"entertainment",goldboxaw:"deals",mobiledeals:"deals",spark:"foundIt",landingaw:"browse",highvelocityevent:"event",productlifecyclesupport:"productSupport",freshmerchandisedcontentmobile:"fmc",checkoutpipeline:"checkoutPipeline",
livedestination:"live",primelandingpagehorizonte:"prime",searchlessorderpharmacy:"pharmacyPrescriptionUpload",rxmanagementpage:"pharmacyPrescriptionManagement",amazonstores:"amazonStores",gphelp:"help",searchautocomplete:"autocomplete","amazon-bazaar-gateway-page":"bazaarGateway","amazon-bazaar-account-page":"bazaarAccount","amazon-bazaar-explore-page":"bazaarExplore",lists:"lists",foresight:"contact",yourorders:"yourorder"},urlPageTypeMap:{"/(d|product|dp|reader|detail|ASIN|udp)(/|\\?.\\*ASIN\x3d)([A-Z0-9]{8,13})[$\\/\x26\\?]?":"detailpage",
"/(search|s)/":"search","/events":"event","/live/":"live","/b\\S+node":"browse","(.amazon.\\[^\\/\\?]+$)|(gp/(homepage.html|aw(?!/(gb|c|d|s|search)))|(exec/obidos/subst/home/home.html)|/{2}.*?/$|/{2}[^/]*?/(ref|sessionID|\\?|#))":"gateway","/gp/buy/thankyou/":"thankYou","/gp/buy/addressselect/handlers/display":"checkoutSelectAddress","/gp/buy/addressselect/handlers/edit-address":"checkoutEditAddress","/gp/buy/addressselect/handlers/new":"checkoutNewAddress","/gp/buy/shipoptionselect/handlers/display":"checkoutShipOption",
"/gp/buy/payselect/handlers/display":"checkoutPayment","/gp/buy/spc/handlers/display":"checkoutConfirmOrder","/gp/buy/billingaddressselect/handlers/display":"checkoutBilling","/gp/buy/pharmacy/handlers/display":"checkoutPharma","/gp/(sva(?!(\\?|/dashboard|/$))\\S+)|(payment/statement)":"pay","(/gp/(aw/c|(cart/view)))":"cart","/gp/(sva(/dashboard|\\?|/$|$))|(/amazonpay/home)":"money","/hfc/mobileRecharge":"recharge","/hfc/bill/lpg":"lpg","/hfc/dth":"dth","/hfc/bill/gas":"gas","/hfc/bill/subscriptions":"subscriptions",
"/hfc/bill/cable_tv":"cableTV","/hfc/bill/water":"water","/hfc/bill/municipal_tax":"municipalTax","/hfc/bill/electricity":"electricity","/hfc/bill/landline":"landline","/hfc/bill/education_fee":"educationFee","/hfc/bill/mobile_postpaid":"postpaid","/hfc/bill/credit-cards":"creditCard","/hfc/bill/google_play_recharge":"googlePlay","/hfc/addMoney":"addMoney","/hfc/fastag":"fastag","/bus-tickets":"bus","/flights":"flight","/train":"train","/(movie-tickets)":"entertainment","/gp/(aw/gb)|(mobile/deals)":"deals",
"/(your-account/order-history|your-orders|progress-tracker/package)":"yourorder","/finds":"foundIt","/spr/returns/confirmation":"onlineReturnsConfirmation","/spr/returns/contract":"onlineReturnsContract","/spr/returns":"onlineReturns","/ps/product-support":"productSupport","/(fmc|alm/(storefront|category))":"fmc","/amazonprime":"prime","/prescriptions/quickupload":"pharmacyPrescriptionUpload","/prescriptionmanagement/viewAllRequests":"pharmacyPrescriptionManagement","/stores/page":"amazonStores",
"/gp/help":"help","/autocomplete":"autocomplete","/amazon-bazaar/store":"bazaarGateway","/amazon-bazaar/my-account":"bazaarAccount","/amazon-bazaar/all-categories":"bazaarExplore","/hz/wishlist/yoursaves":"lists","/hz/contact-us":"contact"},subPageTypeMap:{dth:"dth",lpg:"lpg",gas:"gas",subscriptions:"subscriptions",cable_tv:"cableTV",water:"water",municipal_tax:"municipalTax",electricity:"electricity",mobile_postpaid:"postpaid",credit_card_landingpage:"creditCard",landline:"landline",education_fee:"educationFee",
google_play_recharge:"googlePlay",fastag:"fastag",add_money:"addMoney",shipaddressselect:"checkoutSelectAddress",editaddress:"checkoutEditAddress",newaddress:"checkoutNewAddress",shipoptionselect:"checkoutShipOption",payselect:"checkoutPayment",spc:"checkoutConfirmOrder",billingaddressselect:"checkoutBilling",pip:"checkoutInterstitial",rxselect:"checkoutPharma"},umbrellaPageTypes:{billPayment:!0,checkoutPipeline:!0}}})})();(function(){n.register("SACommonConstants",function(){return{MWEB_IPHONE:"mweb_iPhone",
MWEB_ANDROID:"mweb_Android",DESKTOP:"Desktop",TABLET:"Tablet",MSHOP_IPHONE:"iPhone",MSHOP_ANDROID:"Android",UNSUPPORTED_PLATFORM:"Unsupported",DEFAULT_PAGE_CACHE_TTL:15}})})();(function(){n.when("A","QTipsMetrics","SACommonConfig","SAFeature","SACacheConfig").register("ShoppingAidsCacheData",function(k,d,a,e,g){var c={};return{setSACacheData:function(a){null!==a&&(c=a)},emptySACacheData:function(){c={version:a.cacheVersion,TTL:6E4*a.cacheTTLInMinutes+Date.now(),sessionDayImpressionCount:{},anchorGroups:{}}},
getSACacheData:function(a){return c},getSAAnchorGroup:function(){return c.anchorGroups},getVersion:function(){return c.version},setVersion:function(a){c.version=a},getTTL:function(){return c.TTL},setTTL:function(a){c.TTL=a},getSessionDayImpressionCount:function(){return c.sessionDayImpressionCount},setSessionDayImpressionCount:function(a){c.sessionDayImpressionCount=a},getSessionDayImpressionCountForSAType:function(a){try{return c.sessionDayImpressionCount[this._getDateString()][a]}catch(l){return d.incrementCounter("SA_Cache_Error_1"),
0}},setAnchorGroupLastUpdateTime:function(a){try{c.anchorGroups||(c.anchorGroups={}),c.anchorGroups[a]||(c.anchorGroups[a]={}),c.anchorGroups[a].groupLastImpressionTime=Date.now()}catch(l){d.incrementCounter("SA_Cache_Error_1")}},setSessionDayImpressionCountForSAType:function(a,e){try{c.sessionDayImpressionCount&&c.sessionDayImpressionCount[this._getDateString()]||(c.sessionDayImpressionCount={},c.sessionDayImpressionCount[this._getDateString()]={}),c.sessionDayImpressionCount[this._getDateString()][a]=
e}catch(f){d.incrementCounter("SA_Cache_Error_1")}},incrementSessionDayImpressionCountForSAType:function(a){var b=this.getSessionDayImpressionCountForSAType(a);b===w&&(b=0);this.setSessionDayImpressionCountForSAType(a,b+1)},getDailyImpressionCountForPageType:function(a){try{return c[a].impressionCount[this._getDateString()]}catch(l){return d.incrementCounter("SA_Cache_Error_1"),0}},setDailyImpressionCountForPageType:function(a,e){try{c[a]||(c[a]={}),c[a].impressionCount=e}catch(f){d.incrementCounter("SA_Cache_Error_1")}},
incrementDailyImpressionCountForPageType_SAType:function(a,c){var b=this.getDailyImpressionCountForPageType_SAType(a,c);b===w&&(b=0);this.setDailyImpressionCountForPageType_SAType(a,c,b+1)},getDailyImpressionCountForPageType_SAType:function(a,c){try{return this.getDailyImpressionCountForPageType(a)[c]}catch(f){return d.incrementCounter("SA_Cache_Error_1"),0}},setDailyImpressionCountForPageType_SAType:function(a,e,f){try{c[a]||(c[a]={}),c[a].impressionCount&&c[a].impressionCount[this._getDateString()]||
(c[a].impressionCount={},c[a].impressionCount[this._getDateString()]={}),c[a].impressionCount[this._getDateString()][e]=f}catch(h){d.incrementCounter("SA_Cache_Error_1")}},getTTLForPageType:function(a){try{return c[a].TTL}catch(l){return d.incrementCounter("SA_Cache_Error_1"),0}},getTTLExpFactorForPageType:function(a){try{return c[a].TTL.expFactor}catch(l){return d.incrementCounter("SA_Cache_Error_1"),0}},cacheExpiryTimeForPage:function(a){try{return c[a].TTL.validTill}catch(l){return d.incrementCounter("SA_Cache_Error_1"),
0}},setTTLForPageType:function(a,e){try{c[a]||(c[a]={}),c[a].TTL=e}catch(f){d.incrementCounter("SA_Cache_Error_1")}},getSAListForPageType:function(a){try{return c[a].shoppingAidsList}catch(l){return d.incrementCounter("SA_Cache_Error_1"),{}}},setSAListForPageType:function(a,e){try{c[a]||(c[a]={}),c[a].shoppingAidsList=e}catch(f){d.incrementCounter("SA_Cache_Error_1")}},removeSAListForPageType:function(a){try{delete c[a].shoppingAidsList}catch(l){d.incrementCounter("SA_Cache_Error_1")}},getSAPriorityListForPageType_SAType:function(a,
e){try{return c[a].shoppingAidsList[e].priorityList}catch(f){return d.incrementCounter("SA_Cache_Error_1"),[]}},getCaheHitFrequencyForPageType:function(a){try{return c[a].count?c[a].count:0}catch(l){return d.incrementCounter("SA_Cache_Error_1"),0}},setCaheHitFrequencyForPageType:function(a,e){try{c&&c[a]&&(c[a].count=e)}catch(f){d.incrementCounter("SA_Cache_Error_1")}},setSAPriorityListForPageType_SAType:function(a,e,f){try{c[a]||(c[a]={}),c[a].shoppingAidsList||(c[a].shoppingAidsList={}),c[a].shoppingAidsList[e]||
(c[a].shoppingAidsList[e]={data:{},priorityList:[]}),c[a].shoppingAidsList[e].priorityList=f}catch(h){d.incrementCounter("SA_Cache_Error_1")}},removeShoppingAidsFromCache:function(a,e,f,h){try{h?this.removeNestedShoppingAidsFromCache(a,e,f):this._deleteShoppingAidsFromCache(a,e,f,c)}catch(q){d.incrementCounter("SA_Cache_Error_1")}},removeNestedShoppingAidsFromCache:function(a,e,f){try{var b=this.getShoppingAidsDataForPageType_SAType(a,e,f),g=b.parentIdentity.identifier,l=b.parentIdentity.pageType,
B=b.parentIdentity.SAType,u=this.getShoppingAidsDataForPageType_SAType(l,B,g).nestedSAPriorityList;k.each(u,function(a){delete c[a.pageType].shoppingAidsList[a.SAType].data[a.identifier]});this._deleteShoppingAidsFromCache(l,B,g,c)}catch(y){d.incrementCounter("SA_Cache_Error_1")}},_deleteShoppingAidsFromCache:function(a,c,d,e){var b=this.getSAPriorityListForPageType_SAType(a,c);b.splice(b.indexOf(d),1);delete e[a].shoppingAidsList[c].data[d]},getShoppingAidsDataForPageType_SAType:function(a,e,f){try{return c[a].shoppingAidsList[e].data[f]}catch(h){return d.incrementCounter("SA_Cache_Error_1"),
0}},setShoppingAidsDataForPageType_SAType:function(a,e,f,g){try{c[a]||(c[a]={}),c[a].shoppingAidsList||(c[a].shoppingAidsList={}),c[a].shoppingAidsList[e]||(c[a].shoppingAidsList[e]={data:{},priorityList:[]}),c[a].shoppingAidsList[e].data[f]=g}catch(q){d.incrementCounter("SA_Cache_Error_1")}},_getDateString:function(){var a=new Date;return""+a.getUTCFullYear()+"-"+a.getUTCMonth()+"-"+a.getUTCDate()},getSAContextObject:function(){try{return c.context}catch(b){return d.incrementCounter("SA_Cache_Error_1"),
{}}},setSAContextObject:function(a){try{c.context=a}catch(l){d.incrementCounter("SA_Cache_Error_1")}},getSAContextCookies:function(){try{return c.context.cookies}catch(b){return d.incrementCounter("SA_Cache_Error_1"),{}}},setSAContextCookies:function(a){try{c.context||(c.context={}),c.context.cookies=a}catch(l){d.incrementCounter("SA_Cache_Error_1")}},getBackoffConfig:function(){try{return c.BackoffConfig}catch(b){return d.incrementCounter("SA_Cache_Error_1"),{}}},setBackoffConfig:function(a){try{c.BackoffConfig=
a}catch(l){d.incrementCounter("SA_Cache_Error_1")}},removeValidTillForPageType:function(a){if(a)try{delete c[a].TTL.validTill}catch(l){d.incrementCounter("SA_Cache_Error_1")}},setPrefetchSourcePage:function(a,e){if(a)try{c[a].prefetchSourcePage=e}catch(f){d.incrementCounter("SA_Cache_Error_1")}},removePrefetchSourcePage:function(a){if(a)try{delete c[a].prefetchSourcePage}catch(l){d.incrementCounter("SA_Cache_Error_1")}},getPrefetchSourcePage:function(a){if(a)try{return c[a].prefetchSourcePage}catch(l){return d.incrementCounter("SA_Cache_Error_1"),
""}},isCachePrefetchedForPageType:function(a){try{return c[a].hasOwnProperty("prefetchSourcePage")}catch(l){return d.incrementCounter("SA_Cache_Error_1"),!1}}}})})();(function(){n.when("A","jQuery","QTipsMetrics","SAMetricConstants","LocalStorageInterface","SACommonConfig","ShoppingAidsCacheData","CacheValidator","ShoppingAidsGenericUtils","StatefulSADataStore","SAFeature","StatefulSAEligiblityHelper","AnchorBasedSAUtils").register("CacheManager",function(k,d,a,e,g,c,b,l,f,h,q,m,B){var u=e.SA_CACHE_PREFIX;
d={init:function(){if(l.isSACacheDataEmpty()){var a=g.getFromLocalStorage(c.saCacheKey);this.isObjectEmpty(a)?b.emptySACacheData():b.setSACacheData(a)}},invalidateCacheForPage:function(c){b.removeSAListForPageType(c);b.removeValidTillForPageType(c);b.isCachePrefetchedForPageType(c)&&b.removePrefetchSourcePage(c);this.storeEntireCache();a.incrementCounter(u+e.SA_CACHE_INVALIDATE+c)},isObjectEmpty:function(a){return k.objectIsEmpty(a)},updateCacheAfterLogImpression:function(b){if(b){var c=b.shoppingAidsType,
d=!1;k.contains(c,":childSA")&&(c=c.split(":childSA",1),d=!0);f.isDefined(B.getAnchorFieldForValidSAType(c))&&!d&&this.updateAnchorGroupImpressionTime(b.shoppingAidsAnchorGroup);(c=f.getSAListTypeFromShoppingAidsType(c))?(d||(this.updateSessionDayImpressionCount(c),this.updatePageTypeImpressionCount(b.pageType,c)),this.updateAidsData(b.pageType,c,b.identifier,d),this.storeEntireCache()):a.incrementCounter(u+e.SATYPE_UNDEFINED)}else a.incrementCounter(u+e.IMPRESSIONDATA_UNDEFINED)},updateAnchorGroupImpressionTime:function(a){b.setAnchorGroupLastUpdateTime(a)},
updateSessionDayImpressionCount:function(a){b.incrementSessionDayImpressionCountForSAType(a)},updatePageTypeImpressionCount:function(a,c){b.incrementDailyImpressionCountForPageType_SAType(a,c)},updateAidsData:function(d,g,h,l){try{var m=b.getShoppingAidsDataForPageType_SAType(d,g,h);m.lastImpressionTime=Date.now();m.maxDisplayCount||(m.maxDisplayCount=1);f.isDefined(m.impressionInterval)||(m.impressionInterval=c.defaultImpressionIntervalInHours);--m.maxDisplayCount;var q=m.lastImpressionTime+36E5*
m.impressionInterval;if(q>b.cacheExpiryTimeForPage(d)||q>b.getTTL()||0>=m.maxDisplayCount)m.allocatedWeblabTreatment||m.weblabName||m.desiredWeblabTreatment?m.weblabTriggerOnlyFlag=!0:b.removeShoppingAidsFromCache(d,g,h,l);a.incrementCounter(u+e.LOG_IMPRESSION+e.STATUS_1);a.incrementCounter(u+e.LOG_IMPRESSION+e.STATUS_1_+h);a.incrementCounter(u+e.LOG_IMPRESSION+e.STATUS_1_+g);a.incrementCounter(u+e.LOG_IMPRESSION+e.STATUS_1_+d)}catch(K){a.incrementCounter(u+e.LOG_IMPRESSION+e.STATUS_0),a.incrementCounter(u+
e.LOG_IMPRESSION+e.STATUS_0_+h),a.incrementCounter(u+e.LOG_IMPRESSION+e.STATUS_0_+g),a.incrementCounter(u+e.LOG_IMPRESSION+e.STATUS_0_+d)}},getShoppingAidsListForPageFromCache:function(d){var f=this,g={},h=c.saListParadigms;h&&d?(k.each(h,function(c){var h=[],m=b.getSAPriorityListForPageType_SAType(d,c);m&&k.each(m,function(f){if("string"===typeof f||f instanceof String){var g=b.getShoppingAidsDataForPageType_SAType(d,c,f);g&&(h.push(g),a.incrementCounter(u+e.GET_SHOPPING_AIDS+e.STATUS_1_+f))}},f);
g[c]=h},f),a.incrementCounter(u+e.GET_SHOPPING_AIDS+e.STATUS_1_+d)):a.incrementCounter(u+e.GET_SHOPPING_AIDS+e.STATUS_0_+d?d:"unknown");return g},updateShoppingAidsListForPageInCache:function(c,d){c&&d&&!this.isObjectEmpty(d)?(b.setSAListForPageType(c,d),d=this.constructTTLObjectForPage(c,d),b.setTTLForPageType(c,d),this.storeEntireCache(),a.incrementCounter(u+e.UPDATE_SHOPPING_AIDS+e.STATUS_1),a.incrementCounter(u+e.UPDATE_SHOPPING_AIDS+e.STATUS_1_+c)):(a.incrementCounter(u+e.UPDATE_SHOPPING_AIDS+
e.STATUS_0),a.incrementCounter(u+e.UPDATE_SHOPPING_AIDS+e.STATUS_0_+c?c:"unknown"))},updateContextForShoppingAidsCache:function(d){if(!d||this.isObjectEmpty(d.cookies))return a.incrementCounter(u+e.UPDATE_CONTEXT+e.STATUS_0),!1;var f={};k.each(d.cookies,function(a,b){a&&(b=l.getValueForCookie(a),f[a]=b?b:c.defaultCookieValue)},this);b.setSAContextCookies(f);a.incrementCounter(u+e.UPDATE_CONTEXT+e.STATUS_1)},isShoppingAidsAvailableForPage:function(c,d){if(!c)return!1;d=f.isDefined(d)?d:!1;var g=!l.isSACacheForCurrentContext();
g&&h.setInProgressSAs([]);return l.isSACacheDataInvalid(c,d)||g?(a.incrementCounter(u+e.CONTEXT_INVALID),b.emptySACacheData(),!1):l.isCacheExpiredForPage(c)?(a.incrementCounter(u+e.CACHE_EXPIRED+"_"+c),this.invalidateCacheForPage(c),!1):l.isCacheAvailableForPage(c)},storeEntireCache:function(){try{g.setInLocalStorage(c.saCacheKey,JSON.stringify(b.getSACacheData()))}catch(y){a.incrementCounter(u+e.CACHE_STORAGE+e.STATUS_0)}},getSessionDayImpressionsForSAType:function(a){a=b.getSessionDayImpressionCountForSAType(a);
return isNaN(a)?0:a},getPageImpressionsForSAType:function(a,c){a=b.getDailyImpressionCountForPageType_SAType(a,c);return isNaN(a)?0:a},getShoppingAidsDataForPageType_SAType:function(a,c,d){return b.getShoppingAidsDataForPageType_SAType(a,c,d)},cleanUpCache:function(){g.removeFromLocalStorage(c.saCacheKey)},updateSessionDayImpressionCountObjectInCache:function(a){this.isObjectEmpty(a)||b.setSessionDayImpressionCount(this._getDatedImpressionCountObject(a))},updatePageImpressionCountObjectInCache:function(a,
c){this.isObjectEmpty(c)||b.setDailyImpressionCountForPageType(a,this._getDatedImpressionCountObject(c))},updateCacheHitFrequencyInCache:function(a,c){this.isObjectEmpty(a)||(b.setCaheHitFrequencyForPageType(a,c),this.storeEntireCache())},getCacheHitFrequencyForPage:function(a){if(!this.isObjectEmpty(a))return b.getCaheHitFrequencyForPageType(a)},_getDatedImpressionCountObject:function(a){var c={};c[b._getDateString()]=a;return c},constructTTLObjectForPage:function(a,d){if(!q.backoff)return{expFactor:0,
validTill:6E4*c.pageTTLInMinutes(a)+Date.now()};var e=!f.isObjectEmpty(m.getEligibleInProgressSA(a));e=f.isValidCampaignAvailable(d)||e;(d=b.getTTLForPageType(a))||(d={expFactor:0});e?(d.validTill=6E4*c.pageTTLInMinutes(a)+Date.now(),d.expFactor=0):(a=6E4*c.defaultBackoffConfig.BackoffInterval*Math.pow(c.defaultBackoffConfig.BackoffFactor,d.expFactor),e=6E4*c.defaultBackoffConfig.MaximumBackoff,a<e?(a+=Date.now(),d.validTill=a,d.expFactor+=1):(e+=Date.now(),d.validTill=e));return d},setPrefetchSourcePage:function(a,
c){b.setPrefetchSourcePage(a,c)},removePrefetchSourcePage:function(a){b.removePrefetchSourcePage(a)},logMetricsIfNetworkCallSaved:function(c){b.isCachePrefetchedForPageType(c)&&(a.incrementCounter(e.NETWORK_CALL_SAVED+c+e.DELIMITER+b.getPrefetchSourcePage(c)),this.removePrefetchSourcePage(c))}};d.init();return d})})();(function(){n.when("A","jQuery","QTipsMetrics","CacheManager","SAEndPointsConfig","SAMetricConstants","ShoppingAidsGenericUtils","SAFeature","QTipsConstants").register("LogImpressionManager",
function(k,d,a,e,g,c,b,l,f){var h=g.logImpressionEndPoint;return{optionals:w,logImpressionInDynamoDB:function(d){a.incrementCounter(c.SA_CACHE_PREFIX+c.LOG_IMPRESSION+"_"+c.NETWORK_CALL_INITIATED);a.incrementCounter(c.SA_CACHE_PREFIX+b.platformCheck+"_"+c.LOG_IMPRESSION+"_"+c.NETWORK_CALL_INITIATED);var e=this.buildParamMap(d);k.ajax(h,{method:"GET",contentType:"application/json; charset\x3dutf-8",timeout:6E3,params:e,success:function(e){a.incrementCounter(c.SA_CACHE_PREFIX+c.LOG_IMPRESSION+d.pageType+
c.STATUS_1);b.isDefined(d.tooltipAllocatedTreatment)&&d.tooltipAllocatedTreatment!==f.EmptyString&&(r.ue.trigger&&r.ue.trigger(f.ToolTipUXExperimentWeblab,d.tooltipAllocatedTreatment),a.incrementCounter(f.ToolTipUXMetricForLogImpression+d.tooltipAllocatedTreatment));d.successCallback&&"function"===typeof d.successCallback&&d.successCallback(e)},error:function(e,f){a.incrementCounter(c.SA_CACHE_PREFIX+c.LOG_IMPRESSION+d.pageType+"_"+b.platformCheck+c.STATUS_0);"NotFound"===f&&a.incrementCounter(c.SA_CACHE_PREFIX+
c.LOG_IMPRESSION+d.pageType+c.STATUS_0+c.SA_UNKNOWN_ENDPOINT);d.errorCallback&&"function"===typeof d.errorCallback&&d.errorCallback(e)}})},handle:function(b,d,f,g,h){try{if(-1===b.indexOf("NO_GUARD")){var l=this.logImpressionDataBuilder(b,d,f,g,h);this.logImpressionInDynamoDB(l);e.updateCacheAfterLogImpression(l)}}catch(t){a.incrementCounter(c.SA_CACHE_PREFIX+c.LOG_IMPRESSION+"_"+c.ERROR_CATCHED)}},logImpressionDataBuilder:function(a,c,d,e,f){var g={};g.schedulingType=c;g.shoppingAidsType=d;g.identifier=
a;g.pageType=e;b.isDefined(f)&&(g.userEvent=f.userEvent,g.successCallback=f.successCallback,g.errorCallback=f.errorCallback,g.contextAwareIndex=f.contextAwareIndex,b.isDefined(f.shoppingAidsAnchorGroup)&&(g.shoppingAidsAnchorGroup=f.shoppingAidsAnchorGroup),b.isDefined(f.tooltipAllocatedTreatment)&&(g.tooltipAllocatedTreatment=f.tooltipAllocatedTreatment));return g},buildParamMap:function(a){var c={pageType:a.pageType,shoppingAidsType:a.shoppingAidsType,id:a.identifier,schedulingType:a.schedulingType};
b.isDefined(a.userEvent)&&(c.userEvent=a.userEvent);b.isDefined(a.contextAwareIndex)&&(c.contextAwareIndex=a.contextAwareIndex);b.isDefined(a.shoppingAidsAnchorGroup)&&(c.shoppingAidsAnchorGroup=a.shoppingAidsAnchorGroup);return c},buildOptionalParameter:function(){this.optionals={};return this},withSuccessCallback:function(a){this.optionals.successCallback=a;return this},withErrorCallback:function(a){this.optionals.errorCallback=a;return this},withUserEvent:function(a){this.optionals.userEvent=a;
return this},withContextAwareIndex:function(a){this.optionals.contextAwareIndex=a;return this},withShoppingAidsAnchorGroup:function(a){this.optionals.shoppingAidsAnchorGroup=a;return this},withToolTipUxAllocatedTreatmentValue:function(a){this.optionals.tooltipAllocatedTreatment=a;return this},build:function(){return this.optionals}}})})();(function(){n.when("A","QTipsMetrics").register("LocalStorageInterface",function(k,d){return{sourceName:"ShoppingAidsMWebLibrary_",getFromLocalStorage:function(a){if(this.isLocalStorageExposed())try{return JSON.parse(localStorage.getItem(a))}catch(e){return d.incrementCounter(this.sourceName+
"localStorage_parse_0"),{}}},setInLocalStorage:function(a,e){if(this.isLocalStorageExposed())try{localStorage.setItem(a,e)}catch(g){d.incrementCounter(this.sourceName+"QuotaExceededError")}},removeFromLocalStorage:function(a){if(this.isLocalStorageExposed())return localStorage.removeItem(a)},isLocalStorageExposed:function(){try{if(r.localStorage)return 1}catch(a){return d.incrementCounter(this.sourceName+"LocalStorageNotExposed"),0}}}})})();(function(){n.when("A","SACommonConfig","ShoppingAidsCacheData",
"ShoppingAidsGenericUtils").register("CacheValidator",function(k,d,a,e){return{isSACacheDataInvalid:function(a,c){return this.isSACacheDataEmpty()||this.isSACacheDataVersionIncorrect(a,c)||this.isSACacheDataTTLExpired()},isCacheAvailableForPage:function(d){return!k.objectIsEmpty(a.getSAListForPageType(d))},isCacheExpiredForPage:function(d){return a.cacheExpiryTimeForPage(d)<Date.now()},isSACacheDataEmpty:function(){return!a.getSACacheData()||k.objectIsEmpty(a.getSACacheData())},isSACacheDataVersionIncorrect:function(e,
c){return c?0===a.getVersion()||a.getVersion()!==d.cacheVersionForPrefetch:0===a.getVersion()||a.getVersion()!==d.cacheVersion},isSACacheDataTTLExpired:function(){return a.getTTL()<Date.now()},isSACacheForCurrentContext:function(){var e=this,c=a.getSAContextCookies();if(k.objectIsEmpty(c))return!1;var b=!1;k.each(c,function(a,c){b||(c=e.getValueForCookie(c),a===d.defaultCookieValue?k.objectIsEmpty(c)||c===d.defaultCookieValue||(b=!0):c!==a&&(b=!0))},e);return!b},getValueForCookie:function(a){try{var c=
a.trim()+"\x3d";return this.getCookie().split(c)[1].split("; ")[0].trim()}catch(b){return""}},getCookie:function(){return document.cookie}}})})();(function(){n.register("SAMetricConstants",function(){return{SA_CACHE_PREFIX:"SAC_",STATUS_1:"_1",STATUS_0:"_0",STATUS_1_:"_1_",STATUS_0_:"_0_",START:"_st",INVALID:"_inv",NETWORK_CALL_INITIATED:"nci",SERVERD_FROM_CACHE:"sfc",SA_CACHE_VALID:"valid",SA_CACHE_INVALIDATE:"inv_",LOG_IMPRESSION:"log_impr",GET_SHOPPING_AIDS:"getSA",UPDATE_SHOPPING_AIDS:"updateSA",
CACHE_STORAGE:"store",UPDATE_CONTEXT:"updateCtxt",UPDATE_BACKOFF:"updateBkof",BACKOFF:"bkof",SA_FETCH_PREFIX:"SA_fetch_",SA_UNKNOWN_ENDPOINT:"unkown_ep",SA_TIMEOUT:"to",SATYPE_UNDEFINED:"undef",IMPRESSIONDATA_UNDEFINED:"no_impr",CACHE_UPDATE_ERROR:"cue",FETCH_RESPONSE:"fr",SA_PREPROCESSOR:"grf",DEADLINE_FILTER:"dlf",IMPRESSIONINTERVAL_FILTER:"inf",CLIENTSIDE_FILTER:"csf",SESSION_DAY_FILTER:"sdf",CONTEXT_INVALID:"civ",CACHE_EXPIRED:"cae",ERROR_CATCHED:"ec",TIME_TAKEN:"tt",SPARKLE_BOTTOM_PADDING_PREFIX:"SA_sp_bp_",
CORDOVA_SUCCESS:"cdv_1",CORDOVA_ERROR:"cdv_0",SHOPPINGAIDS_WEBLAB_TRIGGER:"SA_WL_Tr_",SHOPPINGAIDS_WEBLAB_AFTER_FETCH_CALL:"SA_WL_AFC_",SHOPPINGAIDS_WEBLAB_AFTER_FILTERING:"SA_WL_AFL_",SHOPPINGAIDS_WEBLAB_IN_POST_QTIP_RENDER:"SA_WL_PQR_",SHOPPINGAIDS_WEBLAB_AFTER_FETCH_CALL_BACKEND_CALL:"SA_WL_AFC_ABC",SA_CONTEXT_AWARE_SUBSTITUTION:"SA_CAS_",FAIL:"_fl",SPARKLE_DISPLAY_MASH_EVENT:"DISP_MASH",SPARKLE_CLOSE_MASH_EVENT:"CLOSE_MASH",SA_FETCH_RATE_LIMITING_PREFIX:"SA_FETCH_RL_",UI_GUARD_RAIL_FILTER:"uigrf",
PASS:"_ps",PAGE_LIST_EMPTY:"ple",NETWORK_CALL_SAVED:"ncs_",DELIMITER:":",SPARKLE_CTA:"cta",SPARKLE_CTA_DEPTH:"cta_depth",SPARKLE_CTA_DEPTH_PERCENTAGE:"cta_depth_percentage",SPARKLE_CTA_TIME:"cta_time",SPARKLE_CTA_SCROLLED:"cta_scrolled",SPARKLE_CTA_SCROLL_DIRECTION_CHANGE:"cta_scroll_dir_change",SPARKLE_CTA_ATF:"cta_atf",SPARKLE_CTA_MAX_SCROLL_DEPTH:"cta_max_depth",SPARKLE_CTA_MAX_SCROLL_DEPTH_PERCENTAGE:"cta_max_depth_percentage",SPARKLE_DISMISSED:"dismiss",SPARKLE_DISMISS_DEPTH:"dismiss_depth",
SPARKLE_DISMISS_DEPTH_PERCENTAGE:"dismiss_depth_percentage",SPARKLE_DISPLAY_DURATION:"display_time",SPARKLE_DISMISS_SCROLLED:"dismiss_scrolled",SPARKLE_DISMISS_SCROLL_DIRECTION_CHANGE:"dismiss_scroll_dir_change",SPARKLE_DISMISS_ATF:"dismiss_atf",SPARKLE_DISMISS_MAX_SCROLL_DEPTH:"dismiss_max_depth",SPARKLE_DISMISS_MAX_SCROLL_DEPTH_PERCENTAGE:"dismiss_max_depth_percentage",SPARKLE_DISPLAY_DEPTH:"display_depth",SPARKLE_DISPLAY_DEPTH_PERCENTAGE:"display_depth_percentage",SPARKLE_DISPLAY_ATF:"display_atf",
SPARKLE_DISPLAY_SCROLLED:"display_scrolled",ANCHOR_GROUP_FILTERING:"anchor_flt"}})})();(function(){n.when("SACacheConfig").register("SACommonConfig",function(k){return{saListParadigms:"ToolTips BottomSheets Sparkles Hotspots Audiospots MultiPageShoppingAids".split(" "),defaultImpressionIntervalInHours:24,defaultBackoffConfig:{BackoffInterval:60,MaximumBackoff:480,BackoffFactor:2},statefulSAStorageKey:"SA_StatefulSA",saCacheKey:"SA_Cache",cacheTTLInMinutes:1440,pageTTLInMinutes:function(d){var a=k.cacheTTL;
return a&&a[d]?a[d]:0},cacheVersion:"1.0",cacheVersionForPrefetch:"1.1",defaultCookieValue:"unknown",fatigueConfig:{pageLimits:{ToolTips:3,BottomSheets:3,Sparkles:3,Hotspots:3,Highlighters:3,Audiospots:2,MultiPageShoppingAids:1},sessionDayLimits:{ToolTips:8,BottomSheets:3,Sparkles:6,Hotspots:8,Highlighters:10,Audiospots:5,MultiPageShoppingAids:1}}}})})();(function(){n.register("SACacheConfig",function(){return{cacheTTL:{gateway:15,search:15,detailpage:0}}})})();(function(){n.when("A").register("SAFeature",
function(k){return{clientSideCaching:!0,backoff:!1,androidFeatureAttribution:!1}})})();(function(){n.when("A","DeadlineFilter","SessionDayFilter","ShoppingAidsFilters","ImpressionIntervalFilter","QTipsMetrics","SAMetricConstants","AuthPortalURISubstitute","SAFilteringHelper","ContextAwareSubstitutor","UIGuardRailFiltering","HighPrioritySAListProvider","AnchorGroupFiltering").register("SAPreProcessor",function(k,d,a,e,g,c,b,l,f,h,q,m,B){return{preProcessSAList:function(u,y){c.incrementCounter(b.SA_CACHE_PREFIX+
b.SA_PREPROCESSOR+b.START);var p={};k.each(u,function(a,b){p[b]=k.filter(a,function(a){var c=-1;return f.isClientSideWeblabTriggerOnlySA(a)||d.filter(a)&&g.filter(a)&&B.filter(a,b)&&-1!==(c=e.getContextTargetingIndex(a))&&l.substitute(a)&&h.substitute(a,c,b)&&q.isUIGuardRailMet(a)})});p=a.filter(p);p=m.getHighPrioritySAList(p);u={};u.ShoppingAidsList=p;return u},isShoppingAidsListEmpty:function(a){if(a)for(var b in a)if(a.hasOwnProperty(b)&&a[b]&&Array.isArray(a[b])&&0<a[b].length)return!1;return!0}}})})();
(function(){n.when("A","QTipsMetrics","SAMetricConstants").register("DeadlineFilter",function(k,d,a){return{filter:function(e){d.incrementCounter(a.SA_CACHE_PREFIX+a.DEADLINE_FILTER+a.START);e.deadline&&Date.now()>parseInt(e.deadline,10)?(d.incrementCounter(a.SA_CACHE_PREFIX+a.DEADLINE_FILTER+a.STATUS_0),e=!1):e=!0;return e}}})})();(function(){n.when("A","SACommonConfig","CacheManager","SAFilteringHelper","QTipsMetrics","SAMetricConstants").register("SessionDayFilter",function(k,d,a,e,g,c){return{filter:function(b){g.incrementCounter(c.SA_CACHE_PREFIX+
c.SESSION_DAY_FILTER+c.START);var l={},f=d.fatigueConfig.sessionDayLimits;k.each(b,function(b,c){var d=(f&&f[c]?f[c]:0)-a.getSessionDayImpressionsForSAType(c);l[c]=e.filterSAListWithQuotaRemaining(b,d)});return l}}})})();(function(){n.when("A","SACommonConfig","QTipsMetrics","SAMetricConstants","ShoppingAidsGenericUtils").register("ImpressionIntervalFilter",function(k,d,a,e,g){return{filter:function(c){a:{a.incrementCounter(e.SA_CACHE_PREFIX+e.IMPRESSIONINTERVAL_FILTER+e.START);g.isDefined(c.impressionInterval)||
(c.impressionInterval=d.defaultImpressionIntervalInHours);if(c.lastImpressionTime&&(c=c.lastImpressionTime+36E5*c.impressionInterval,Date.now()<c)){a.incrementCounter(e.SA_CACHE_PREFIX+e.IMPRESSIONINTERVAL_FILTER+e.STATUS_0);c=!1;break a}c=!0}return c}}})})();(function(){n.when("A","SACommonConfig","QTipsMetrics","SAMetricConstants","ShoppingAidsGenericUtils","SAFeature","ShoppingAidsCacheData","QTipsConstants").register("AnchorGroupFiltering",function(k,d,a,e,g,c,b,l){return{filter:function(c,d){var f=
{ToolTips:"elementAnchor",Hotspots:"hotspotAnchor",Audiospots:"audiospotAnchor"};return function(c){a.incrementCounter(e.SA_CACHE_PREFIX+e.ANCHOR_GROUP_FILTERING+e.START);var h=f[d]?!0:!1;if(!h)return!0;if(h=b.getSAAnchorGroup()){var m=c[f[d]];if(!g.isDefined(h[m])||!g.isDefined(h[m].groupLastImpressionTime))return!0;c=h[m].groupLastImpressionTime+c.anchorGroupImpressionInterval*l.hourToSecondConversion*l.secondToMillisecondConversion;if(Date.now()<c)return a.incrementCounter(e.SA_CACHE_PREFIX+e.ANCHOR_GROUP_FILTERING+
e.STATUS_0),!1}return!0}(c)}}})})();(function(){n.when("A").register("SAFilteringHelper",function(k){return{_isNonConditionalSA:function(d){return d&&!d.invokingEventElement&&!d.weblabName},filterSAListWithQuotaRemaining:function(d,a){var e=[];k.each(d,function(d){this._isNonConditionalSA(d)?0<a&&(e.push(d),a--):e.push(d)}.bind(this));return e},isClientSideWeblabSA:function(d){return d&&d.weblabName&&d.desiredWeblabTreatment&&d.allocatedWeblabTreatment},isClientSideWeblabTriggerOnlySA:function(d){return this.isClientSideWeblabSA(d)&&
d.weblabTriggerOnlyFlag&&"true"===d.weblabTriggerOnlyFlag.toString()}}})})();(function(){n.when("A","CacheManager","QTipsMetrics","QTips","SAEndPointsConfig","SAPreProcessor","SACommonConfig","SAMetricConstants","3p-promise","ShoppingAidsGenericUtils","PageResolver","SAFeature","SARateLimitingInstrumentationHandler","LoPResolver").register("ShoppingAidsFetcher",function(k,d,a,e,g,c,b,l,f,h,q,m,B,u){return{fetchShoppingAids:function(b,c,e){try{var f=k.now(),g=this;if(h.isSADebugRequest())g.promiseFetchFromBackendForPage(b).then(c,
e);else if(m.backoff&&h.shouldBackOff(b))a.incrementCounter(l.SA_CACHE_PREFIX+l.SA_FETCH_PREFIX+l.BACKOFF+b);else if(d.isShoppingAidsAvailableForPage(b)){var q=d.getCacheHitFrequencyForPage(b);d.updateCacheHitFrequencyInCache(b,q+1);var t=g._generateFinalResponse(f,b);a.incrementCounter(l.SA_CACHE_PREFIX+l.SERVERD_FROM_CACHE);a.incrementCounter(l.SA_CACHE_PREFIX+l.SERVERD_FROM_CACHE+"_"+q);a.incrementCounter(l.SA_CACHE_PREFIX+l.SERVERD_FROM_CACHE+"_"+h.platformCheck);a.incrementCounter(l.SA_CACHE_PREFIX+
l.SERVERD_FROM_CACHE+"_"+b);c(t)}else g.promiseFetchFromBackendForPage(b).then(function(a){g._updateShoppingAidsListInCache(b,a);return a}.bind(g)).then(function(a){return g._generateFinalResponse(f,b,a)}.bind(g)).then(function(a){return c(a)}.bind(g)).catch(e)}catch(S){a.incrementCounter(l.SA_CACHE_PREFIX+l.SA_FETCH_PREFIX+l.ERROR_CATCHED)}},_generateFinalResponse:function(b,e,f){var g=d.getShoppingAidsListForPageFromCache(e);h.logClientSideWeblabMetricsForSAList(g,l.SHOPPINGAIDS_WEBLAB_AFTER_FETCH_CALL,
f);e=c.preProcessSAList(g,e);f=this._updateNestedShoppingAidsStructure(e.ShoppingAidsList);e={};e.ShoppingAidsList=f;h.logClientSideWeblabMetricsForSAList(f,l.SHOPPINGAIDS_WEBLAB_AFTER_FILTERING);b=k.now()-b;a.incrementCounter(l.SA_CACHE_PREFIX+l.TIME_TAKEN,b);a.incrementCounter(l.SA_CACHE_PREFIX+l.SA_FETCH_PREFIX+l.TIME_TAKEN,b);a.incrementCounter(l.SA_CACHE_PREFIX+l.SERVERD_FROM_CACHE+"_"+l.TIME_TAKEN,b);return e},promiseFetchFromBackendForPage:function(a){var b=this;return new f(function(c,d){b.fetchShoppingAidsFromBackend(a,
c,d)}.bind(b))},fetchShoppingAidsFromBackend:function(c,d,f){var m=l.SA_FETCH_PREFIX,t=document.referrer,p=/.*\.amazon\..*/g,B="DIRECT";p&&p.test(t)&&(B="INDIRECT");t=g.fetchShoppingAidsEndPoint;a.incrementCounter(m+l.NETWORK_CALL_INITIATED);a.incrementCounter(m+l.NETWORK_CALL_INITIATED+h.platformCheck);k.ajax(t,{method:"GET",contentType:"application/json; charset\x3dutf-8",timeout:6E4,params:{page:c,url:q.getWindowLocationHref(),trafficType:B,cacheTTL:b.pageTTLInMinutes(c),cacheVersion:b.cacheVersion,
previousLop:e.utils.getPreviousLoP(),currentLop:u.getCurrentLoP(),pageHitRequestID:h.getPageHitRequestID()},success:function(b){a.incrementCounter(m+c+l.STATUS_1);d&&"function"===typeof d&&d(b);return b},error:function(b,d){"Request Timeout"===d?a.incrementCounter(m+c+l.STATUS_0_+l.SA_TIMEOUT):"NotFound"===d&&a.incrementCounter(m+c+l.STATUS_0_+l.SA_UNKNOWN_ENDPOINT);a.incrementCounter(m+c+h.platformCheck+l.STATUS_0);f&&"function"===typeof f&&f(b);return b}})},_updateShoppingAidsListInCache:function(b,
c){try{k.objectIsEmpty(c)?a.incrementCounter(l.SA_CACHE_PREFIX+l.FETCH_RESPONSE+l.STATUS_0):(a.incrementCounter(l.SA_CACHE_PREFIX+l.FETCH_RESPONSE+l.STATUS_1),d.updateContextForShoppingAidsCache(c.Context),d.updateSessionDayImpressionCountObjectInCache(c.SessionDayImpressionCount),d.updatePageImpressionCountObjectInCache(b,c.PageImpressionCount),d.updateShoppingAidsListForPageInCache(b,c.ShoppingAidsList),"detailpage"!==b||m.backoff||B.rateLimitingInstrumentation(Date.now(),h.isValidCampaignAvailable(c.ShoppingAidsList)))}catch(t){a.incrementCounter(l.SA_CACHE_PREFIX+
l.CACHE_UPDATE_ERROR)}},_updateNestedShoppingAidsStructure:function(a){k.each(a,function(a,b){k.each(a,function(a){this._updateNestedStructure(a)},this)},this);return a},_updateNestedStructure:function(a){var b=a.nestedSAPriorityList;if(b){var c=[];k.each(b,function(a){a=d.getShoppingAidsDataForPageType_SAType(a.pageType,a.SAType,a.identifier);c.push(a)});a.nestedSAList=JSON.stringify(c)}return a},cleanUpSACache:function(){d.cleanUpCache()}}})})();(function(){n.when("A","ShoppingAidsGenericUtils",
"SAMetricConstants","QTipsMetrics").register("AuthPortalURISubstitute",function(k,d,a,e){return{substitute:function(g){if(g.targetEndpoint){var c=g.targetEndpoint;try{var b=d.getWindowLocationPath()+d.getWindowLocationQueryString();b?"/"!==b.charAt(0)&&(b="/"+b):b="/";var l=encodeURIComponent(b),f=encodeURIComponent(l);var h=c.replace("%2Fsa-request-url",l).replace("%252Fsa-request-url",f);g.targetEndpoint=h}catch(q){return e.incrementCounter(a.SA_CACHE_PREFIX+a.URL_ENCODE_ERR),e.incrementCounter(a.SA_CACHE_PREFIX+
a.URL_ENCODE_ERR+"_"+g.identifier),!1}}return!0}}})})();(function(){n.when("A","QTipLibrary","SAHotspotConstants","ShoppingAidsGenericUtils","AnchorSACollection").register("SAHotspot",function(k,d,a,e,g){k={};k.model=new d.Model;k.collection=new g;k.collection.identifierList=[];k.collection.setValidSACallback(function(a){var b=a.get("hotspotAnchor"),c=a.get("maxDisplayCount"),d=a.get("nestedSAList");return e.isDefined(a)&&e.isDefined(c)&&e.isDefined(b)&&0<c&&e.isDefined(d)}.bind(this));e.addStyleToHead(a.style.hotspotStyle);
return k})})();(function(){n.register("SAHotspotConstants",function(){return{timer:{defaultStartOffset:3E3,defaultHotspotInterval:1E4,defaultRenderCallbackTime:800},templates:{hotspotTemplate:'\x3cdiv id\x3d"hotspot"class\x3d"hotspot-background"\x3e\x3cstyle\x3e.hotspot-background{ border-color : #EC912D;border-radius: 50%;width: 16px;height: 16px;background-color: #EC912D; position:absolute;display: table-cell;text-align:center;box-shadow: 0 0 0 0 rgba(236, 145, 45, 1);transform: scale(1);animation: pulse 1.5s 0.2s \x3c% pulsatingIteration %\x3e;} .hotspot-background:after{ content: none;}\x3c/style\x3e\x3cstyle\x3e @keyframes pulse {0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 145, 45, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(236, 145, 45, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 145, 45, 0); }}\x3c/style\x3e\x3cdiv class\x3d"hotspot-text" style \x3d"vertical-align:middle; position:relative;top:-10.5px;right:2.5px;color: white; font-size:15px; font-family: Bookerly;font-style: italic;font-size;font-weight: bold;"\x3e\x3cp\x3ei\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e'},
style:{hotspotStyle:"#hotspot{position:absolute;overflow:initial}.hotspot-background{position:fixed;z-index:90000;padding:10px;opacity:1;border-radius:3px;-webkit-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-moz-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-o-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-moz-transform-style:preserve-3d;-o-transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.hotspot-background:after{position:absolute;display:block;width:0;content:'';border-style:solid;-moz-transform-style:preserve-3d;-o-transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.hotspot-textholder{width:100%;height:100%}"},
Z_indexConstants:{lowerZ_index:200,higherZ_index:9E4},CSSConstants:{TEXT_RTL:"-2.5px"}}})})();(function(){n.when("A","jQuery","QTipLibrary","QTipsConstants","ShoppingAidsGenericUtils","SAHotspot","AnchorBasedSAUtils","AnchorBasedPositioning","NestedShoppingAidHelper","SAHotspotConstants").execute(function(k,d,a,e,g,c,b,l,f,h){a=a.View.extend({collection:c.collection,anchor:"",popoverClass:e.popOverAnchors.popoverClass,searchSugesstions:e.popOverAnchors.searchSugesstions,searchFilterPage:e.popOverAnchors.searchFilterPage,
hotspotId:"#hotspot",shoppingAidsType:"hotspot",identifier:"",positionY:0,originalPositionX:0,originalPositionY:0,postHotspotRender:function(){if(this.collection.identifierList){var a=this.collection.identifierList;this.clearTimeouts();for(var c=0;c<a.length;c++)if(!document.hidden){var d=this.collection.at(a[c].id);d.set({shoppingAidsType:this.shoppingAidsType});this.originalPositionY=d.get("positionY");this.originalPositionX=d.get("positionX");this.anchor=b.processAnchor(d.get("hotspotAnchor"),
e.regex.anchorSpliterRegex);this.identifier=d.get("identifier");if(b.isElementVisible(this.anchor)){if(g.hasNoPopover(this.popoverClass,this.searchSugesstions,this.searchFilterPage)||b.isShoppingAidOverPopoverVisible(d.get("popoverAnchor"),d.get("hotspotAnchor")))this.renderTimeoutId=setTimeout(this.render.bind(this),0,d);break}}g.isDefined(this.renderTimeoutId)||(this.renderTimeoutId=setTimeout(this.postHotspotRender.bind(this),h.timer.defaultStartOffset))}},render:function(a){var c=this._createHotspotBaseElement(a);
g.isDefined(c)?(l.addAndPosition(c,a,this.anchor),this._attachClickListener(c,a),this._displayHotspot(a.get("renderPointX"),a.get("renderPointY")),a=b.getIndexByIdentifier(this.collection.identifierList,a.get("identifier")),-1!==a&&(this.renderCompleteTimeoutId=setTimeout(this.renderComplete.bind(this),h.timer.defaultRenderCallbackTime,a))):this.renderTimeoutId=setTimeout(this.postHotspotRender.bind(this),h.timer.defaultStartOffset)},dismissWithId:function(a,b,c){var f=d(this.hotspotId)[0];f&&f.getAttribute(e.view.saDOMNameAttribute)===
a||this.identifier===a&&g.isDefined(this.renderTimeoutId)?(this._stopHotspots(),b&&"function"===typeof b&&b()):c&&"function"===typeof c&&c(e.errorCodes.SA_NOT_DISPLAYED)},_displayHotspot:function(a,c){var f=d(this.hotspotId);this.positionY=c;g.isMarketplaceRTLEnabled()&&this._makeRTLCompatible();f.css({left:a+"px",top:c+"px",visibility:"visible"});b.isElementOrParentFixed(this.anchor)&&f.css({position:"fixed"});f.attr(e.view.saDOMNameAttribute,this.identifier)},renderComplete:function(a){var b=this.collection.identifierList[a].id,
c=this.collection.identifierList[a].schedulingType,d=this.shoppingAidsType;this.collection.identifierList.splice(a,1);g.isDefined(this.renderCompleteCallback)&&this.renderCompleteCallback({identifier:b,schedulingType:c,shoppingAidsType:d,hotspotAnchor:this.anchor})},_closeAndRenderNext:function(){k.throttle(function(){this.clearTimeouts();this._nextHotspot()}.bind(this),1E3).call(this)},_createHotspotBaseElement:function(a){return this._createElement(h.templates.hotspotTemplate,a)},_isHotspotPresent:function(){return document.getElementById("hotspot")},
_attachClickListener:function(a,b){d(a).click(function(){f.dispatchShoppingAidEvent(JSON.parse(b.get("nestedSAList")));c.view._closeAndRenderNext()})},_stopHotspots:function(){this.clearTimeouts();this._removeElement(this.hotspotId)},_nextHotspot:function(){g.isDefined(this.collection.identifierList)&&0<this.collection.identifierList.length?(this._removeElement(this.hotspotId),this.renderTimeoutId=setTimeout(this.postHotspotRender.bind(this),h.timer.defaultHotspotInterval)):this._stopHotspots()},
_makeRTLCompatible:function(){var a=d(".hotspot-text");"function"===typeof k.$.withoutRtl?k.$.withoutRtl(function(){a.css({right:h.CSSConstants.TEXT_RTL})}):document.getElementById("hotspot").getElementsByClassName("hotspot-text")[0].style.right=h.CSSConstants.TEXT_RTL},handleOverlay:function(){this._isHotspotPresent()&&this._pushHotspotToBackground()},_repositionHotspot:function(){if(b.isElementVisible(this.anchor)){var a=l.getAbsolutePositionToPlaceSA(this.anchor,this.originalPositionY,this.originalPositionX);
d(this.hotspotId).css({left:a[0]+"px",top:a[1]+"px",visibility:"visible"})}else this.dismissWithId(this.identifier)},handleOverlayDismiss:function(){this._isHotspotPresent()&&(this._bringAudiospotToForeground(),this._repositionHotspot())},_pushHotspotToBackground:function(){var a=d(this.hotspotId),c=this.positionY+b.getAUIScrollPageValue();a.css({"z-index":h.Z_indexConstants.lowerZ_index,top:c})},_bringAudiospotToForeground:function(){d(this.hotspotId).css({"z-index":h.Z_indexConstants.higherZ_index,
top:this.positionY})},clearTimeouts:function(){g.isDefined(this.renderTimeoutId)&&(clearTimeout(this.renderTimeoutId),delete this.renderTimeoutId);g.isDefined(this.renderCompleteTimeoutId)&&(clearTimeout(this.renderCompleteTimeoutId),delete this.renderCompleteTimeoutId)},setRenderCompleteCallback:function(a){this.renderCompleteCallback=a}});c.view=new a;return c})})();(function(){n.when("A","QTipLibrary","SAHighlighterConstants","ShoppingAidsGenericUtils","AnchorSACollection").register("SAHighlighter",
function(k,d,a,e,g){k={};k.model=new d.Model;k.collection=new g;k.collection.identifierList=[];k.collection.setValidSACallback(function(a){var b=a.get("highlighterAnchor"),c=a.get("maxDisplayCount");return e.isDefined(a)&&e.isDefined(c)&&e.isDefined(b)&&0<c}.bind(this));e.addStyleToHead(a.style.SA_HighlighterStyle);return k})})();(function(){n.register("SAHighlighterConstants",function(){return{timer:{defaultStartOffset:3E3,defaultHighlighterInterval:1E4,defaultRenderCallbackTime:800,defaultDismissCallbackTime:2E4},
templates:{SA_HighlighterTemplate:'\x3cdiv id\x3d"page-highlighter" class\x3d"page-highlighter-background"\x3e\x3c/div\x3e'},style:{SA_HighlighterStyle:"#page-highlighter{ position: absolute; overflow: initial;} .page-highlighter-background{ position: fixed; z-index: 90000; padding: 10px; width: 5px; height: 5px; background-color: transparent; border:  4px solid #007185 ; border-radius: 50%; position: absolute; animation: ring 1.5s linear infinite;} @keyframes ring { from { opacity: 1;} to { opacity: 0; transform: scale(3);}}"},
metrics:{PREFIX:"SA_PAGEHIGHLIGHTER_",DISPLAY:"DISPLAYED",POSTRENDER:"POST_RENDER",ONDEMAND_DISPLAY:"ONDEMAND_DISPLAYED",DISMISS:"DISMISSED",DISSMISS_ID:"DISMISSED_WITH_ID",CLICK:"CLICKED",VALID_RENDER:"VALID_RENDER"}}})})();(function(){n.when("A","jQuery","QTipLibrary","QTipsConstants","ShoppingAidsGenericUtils","SAHighlighter","AnchorBasedSAUtils","AnchorBasedPositioning","NestedShoppingAidHelper","SAHighlighterConstants","QTipsMetrics").execute(function(k,d,a,e,g,c,b,l,f,h,q){a=a.View.extend({collection:c.collection,
anchor:"",popoverClass:e.popOverAnchors.popoverClass,searchSugesstions:e.popOverAnchors.searchSugesstions,searchFilterPage:e.popOverAnchors.searchFilterPage,HighlighterId:"#page-highlighter",shoppingAidsType:"highlighter",identifier:"",postHighlighterRender:function(){if(this.collection.identifierList){var a=this.collection.identifierList;this.clearTimeouts();for(var c=0;c<a.length;c++)if(!document.hidden){var d=this.collection.at(a[c].id);d.set({shoppingAidsType:this.shoppingAidsType});this.anchor=
b.processAnchor(d.get("highlighterAnchor"),e.regex.anchorSpliterRegex);this.identifier=d.get("identifier");if(b.isElementVisible(this.anchor)){if(g.hasNoPopover(this.popoverClass,this.searchSugesstions,this.searchFilterPage)||b.isShoppingAidOverPopoverVisible(d.get("popoverAnchor"),d.get("HighlighterAnchor")))this.renderTimeoutId=setTimeout(this.render.bind(this),0,d);break}}g.isDefined(this.renderTimeoutId)||(this.renderTimeoutId=setTimeout(this.postHighlighterRender.bind(this),h.timer.defaultStartOffset),
q.incrementCounter(h.metrics.PREFIX+h.metrics.POSTRENDER,1,this.identifier))}},render:function(a){var c=this._createHighlighterBaseElement(a);g.isDefined(c)?(l.addAndPosition(c,a,this.anchor),this._attachClickListener(c,a),this._displayHighlighter(a.get("renderPointX"),a.get("renderPointY")),a=b.getIndexByIdentifier(this.collection.identifierList,a.get("identifier")),q.incrementCounter(h.metrics.PREFIX+h.metrics.VALID_RENDER,1,this.identifier),-1!==a&&(this.renderCompleteTimeoutId=setTimeout(this.renderComplete.bind(this),
h.timer.defaultRenderCallbackTime,a),this.defaultDismissalTimeoutId=setTimeout(this._closeAndRenderNext.bind(this),h.timer.defaultDismissCallbackTime,a))):this.renderTimeoutId=setTimeout(this.postHighlighterRender.bind(this),h.timer.defaultStartOffset)},_displayHighlighter:function(a,c){var f=d(this.HighlighterId);f.css({left:a+"px",top:c+"px",visibility:"visible"});b.isElementOrParentFixed(this.anchor)&&f.css({position:"fixed"});f.attr(e.view.saDOMNameAttribute,this.identifier);q.incrementCounter(h.metrics.PREFIX+
h.metrics.DISPLAY,1,this.identifier)},renderComplete:function(a){var b=this.collection.identifierList[a].id,c=this.collection.identifierList[a].schedulingType,d=this.shoppingAidsType;this.collection.identifierList.splice(a,1);g.isDefined(this.renderCompleteCallback)&&this.renderCompleteCallback({identifier:b,schedulingType:c,shoppingAidsType:d})},_closeAndRenderNext:function(){k.throttle(function(){this.clearTimeouts();this._nextHighlighter()}.bind(this),1E3).call(this);q.incrementCounter(h.metrics.PREFIX+
h.metrics.DISMISS,1,this.identifier)},_createHighlighterBaseElement:function(a){return this._createElement(h.templates.SA_HighlighterTemplate,a)},_attachClickListener:function(a,b){var e=this;d(a).click(function(){q.incrementCounter(h.metrics.PREFIX+h.metrics.CLICK,1,e.identifier);g.isDefined(b.get("nestedSAList"))&&f.dispatchShoppingAidEvent(JSON.parse(b.get("nestedSAList")));c.view._closeAndRenderNext()})},_stopHighlighters:function(){this.clearTimeouts();this._removeElement(this.HighlighterId)},
_nextHighlighter:function(){g.isDefined(this.collection.identifierList)&&0<this.collection.identifierList.length?(this._removeElement(this.HighlighterId),this.renderTimeoutId=setTimeout(this.postHighlighterRender.bind(this),h.timer.defaultHighlighterInterval)):this._stopHighlighters()},clearTimeouts:function(){g.isDefined(this.renderTimeoutId)&&(clearTimeout(this.renderTimeoutId),delete this.renderTimeoutId);g.isDefined(this.renderCompleteTimeoutId)&&(clearTimeout(this.renderCompleteTimeoutId),delete this.renderCompleteTimeoutId);
g.isDefined(this.defaultDismissalTimeoutId)&&(clearTimeout(this.defaultDismissalTimeoutId),delete this.defaultDismissalTimeoutId)},dismissWithId:function(a,b,c){var f=d(this.HighlighterId);f&&f.attr(e.view.saDOMNameAttribute)===a||a===this.identifier&&g.isDefined(this.renderTimeoutId)?(this._stopHighlighters(),b&&"function"===typeof b&&b()):c&&"function"===typeof c&&c(e.errorCodes.SA_NOT_DISPLAYED);q.incrementCounter(h.metrics.PREFIX+h.metrics.DISSMISS_ID,1,this.identifier)},setRenderCompleteCallback:function(a){this.renderCompleteCallback=
a},displayOnDemandHighlighter:function(a){this._stopHighlighters();c.collection.add(a);this.postHighlighterRender();q.incrementCounter(h.metrics.PREFIX+h.metrics.ONDEMAND_DISPLAY,1,this.identifier)}});c.view=new a;return c})})();(function(){n.when("A","QTipLibrary","SAAudiospotConstants","ShoppingAidsGenericUtils","AnchorSACollection").register("SAAudiospot",function(k,d,a,e,g){k={};k.model=new d.Model;k.collection=new g;k.collection.identifierList=[];k.collection.setValidSACallback(function(a){var b=
a.get("audiospotAnchor"),c=a.get("audioSource");return e.isDefined(a)&&e.isDefined(b)&&e.isDefined(c)}.bind(this));e.addStyleToHead(a.style.audiospotStyle);return k})})();(function(){n.register("SAAudiospotConstants",function(){return{timer:{defaultStartOffset:3E3,defaultAudioSpotInterval:1E4},templates:{audiospotTemplate:'\x3cdiv id\x3d"sa_audiospot"class\x3d"sa_audiospot-background"\x3e\x3cstyle\x3e.sa_audiospot-background{ border:1px solid transparent; border-radius: 50%;width: 30px;height: 30px; background-color: #fafafa; position:relative;display:block; box-shadow: 1px 1px 0 0 transparent;} .sa_audiospot-background:after{ content: none;}\x3c/style\x3e\x3csvg id\x3d"audio_playSVG" width\x3d"34" height\x3d"34" style\x3d"transform: rotate(90deg); position: absolute; background: transparent; stroke: #0B8699; display:none;top:-3px;left:-3px;"\x3e\x3ccircle id \x3d "sa_audiospot_progress_indicator_inner" cx\x3d"50%" cy\x3d"50%" r\x3d"14" style\x3d"fill: none; stroke-opacity: 0.3; stroke-width: 5; stroke-linecap: round;"\x3e\x3c/circle\x3e\x3ccircle id \x3d "sa_audiospot_progress_indicator" cx\x3d"50%" cy\x3d"50%" r\x3d"14" style\x3d"fill: none;  --initialStroke: 87.9646;  stroke-dasharray: var(--initialStroke); stroke-dashoffset: var(--initialStroke); stroke-width: 5; stroke-opacity: 1; stroke-linecap: round; transition: stroke-dashoffset 1ms ease;"\x3e\x3c/circle\x3e\x3c/svg\x3e\x3cdiv id\x3d"audio-play-icon" class\x3d"play-css"\x3e\x3cspan\x3e\x3cstyle\x3e.play-css { height: 18px; width: 18px; position: relative; overflow: hidden; display: inline-block;top:-5px;left:-5px;z-index:1 } .play-css span{ display: block; width: 5px; height: 5px; background: #fff; margin: 7px 0 0 1px; } .play-css span:after { content: \'\'; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent #fff transparent transparent; border-width: 6px 8px 6px 9px; left: -8px; top: 3px; } .play-css span:before { transform: rotate(45deg); border-radius: 0 30px 0 0; content: \'\'; position: absolute; width: 3px; height: 3px; border-style: double; border-color: #fff; border-width: 5px 5px 0 0; left: 11px; top: 5px; transition: all 0.2s ease-out; }\x3c/style\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv id\x3d"audio-pause-icon" class\x3d"pause-css"\x3e\x3cstyle\x3e.pause-css{border: 0; background: transparent; box-sizing: border-box; width: 0; height: 9px; border-color: transparent transparent transparent #0B8699; transition: 100ms all ease; border-style: double; border-width: 0px 0 0px 7px;position:relative;z-index:1;left:0.5px;display:none}\x3c/style\x3e\x3c/div\x3e\x3csvg id\x3d"audio_play_filler_circle" width\x3d"34" height\x3d"34" style\x3d"transform: rotate(90deg); position: absolute; background: transparent; fill: #0B8699;top:-3px;left:-3px"\x3e\x3ccircle id \x3d "filler_circle" cx\x3d"50%" cy\x3d"50%" r\x3d"16" style\x3d"fill:#0B8699;"\x3e\x3c/circle\x3e\x3c/svg\x3e\x3c/div\x3e'},
style:{audiospotStyle:"#sa_audiospot{ position: absolute; overflow: initial; }.sa_audiospot-background { position: fixed; z-index: 90000; padding: 10px; opacity: 1; border-radius: 3px; -webkit-box-shadow: 0 2px 5px 0 rgba(17,17,17,.25); -moz-box-shadow: 0 2px 5px 0 rgba(17,17,17,.25); box-shadow: 0 2px 5px 0 rgba(17,17,17,.25); -o-box-shadow: 0 2px 5px 0 rgba(17,17,17,.25); -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } .sa_audiospot-background:after { position: absolute; display: block; width: 0; content: ''; border-style: solid; -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } .slate-image-video-loader { background: #ffffff; border-radius: 50%; position: absolute; opacity: 0.7; } .slate-image-play-button { margin: auto; position: absolute; border-style: solid; border-color: transparent transparent transparent #ada6a6; }"},
constants:{lowerZindex:200,higherZindex:9E4},cssConstants:{playIconId:"#audio-play-icon",pauseIconId:"#audio-pause-icon",playSVG:"#audio_playSVG",progressBarId:"#sa_audiospot_progress_indicator",fillerCircleId:"#filler_circle"},audioStates:{PLAY_STATE:"PLAY_STATE",PAUSE_STATE:"PAUSE_STATE",COMPLETION_STATE:"END",INITIAL_STATE:"INITIAL"},metrics:{PREFIX:"SA_Audiospot_",PLAY:"played",PAUSE:"paused",REPLAY:"replayed",END:"ended",ERROR:"error",STALLED:"stalled",SUSPEND:"suspend",WAITING:"waiting",ABORT:"abort",
LOADED:"loadeddata"}}})})();(function(){n.when("A","jQuery","QTipLibrary","QTipsConstants","ShoppingAidsGenericUtils","SAAudiospot","AnchorBasedSAUtils","AnchorBasedPositioning","SAAudiospotConstants","AudioStateManager","QTipsMetrics","ShoppingAidsAudioUtils").execute(function(k,d,a,e,g,c,b,l,f,h,q,m){k=a.View.extend({collection:c.collection,anchor:"",popoverClass:e.popOverAnchors.popoverClass,searchSugesstions:e.popOverAnchors.searchSugesstions,searchFilterPage:e.popOverAnchors.searchFilterPage,
audiospotId:"#sa_audiospot",shoppingAidsType:"audiospot",identifier:"",positionY:0,originalPositionX:0,originalPositionY:0,postAudiospotRender:function(){if(this.collection.identifierList){var a=this.collection.identifierList;this.clearTimeouts();for(var c=0;c<a.length;c++)if(!document.hidden){var d=this.collection.at(a[c].id);d.set({shoppingAidsType:this.shoppingAidsType});this.originalPositionY=d.get("positionY");this.originalPositionX=d.get("positionX");this.anchor=b.processAnchor(d.get("audiospotAnchor"),
e.regex.anchorSpliterRegex);this.identifier=d.get("identifier");if(g.isDefined(this.anchor)&&b.isElementVisible(this.anchor)){if(g.hasNoPopover(this.popoverClass,this.searchSugesstions,this.searchFilterPage)||b.isShoppingAidOverPopoverVisible(d.get("popoverAnchor"),this.anchor))this.renderTimeoutId=setTimeout(this.render.bind(this),0,d);break}}g.isDefined(this.renderTimeoutId)||(this.renderTimeoutId=setTimeout(this.postAudiospotRender.bind(this),f.timer.defaultStartOffset))}},render:function(a){var c=
b.getIndexByIdentifier(this.collection.identifierList,this.identifier);if(g.isShoppingAidForWeblabTesting(this.identifier)&&-1!==c)this.renderComplete(c),q.incrementCounter(f.metrics.PREFIX+"logImpression_"+this.identifier);else{var d=this._createAudiospotBaseElement(a);g.isDefined(d)&&(l.addAndPosition(d,a,this.anchor),h.cacheElementData(),this._attachClickListener(d,a),this._displayAudiospot(a.get("renderPointX"),a.get("renderPointY")),this._handleVisibility(),-1!==c&&(this.renderCompleteTimeoutId=
setTimeout(this.renderComplete.bind(this),e.timer.defaultDismissalCallbackTime,c),q.incrementCounter(f.metrics.PREFIX+"logImpression_"+this.identifier)));q.incrementCounter(f.metrics.PREFIX+"undefined_audiospot_element_"+this.identifier)}},dismissWithId:function(a,b,c){var f=d(this.audiospotId)[0];f&&f.getAttribute(e.view.saDOMNameAttribute)===a||this.identifier===a&&g.isDefined(this.renderTimeoutId)?(this._dismissAudiospots(),b&&"function"===typeof b&&b()):c&&"function"===typeof c&&c(e.errorCodes.SA_NOT_DISPLAYED)},
_dismissAudiospots:function(){d(this.audiospotId)[0]&&h.setState(h.pauseState);this._removeElement(this.audiospotId);this.clearTimeouts();document.removeEventListener("visibilitychange",this._visibilityChangeHandler)},_displayAudiospot:function(a,c){var g=d(this.audiospotId);this.positionY=c;g.css({left:a+"px",top:c+"px",visibility:"visible"});b.isElementOrParentFixed(this.anchor)&&g.css({position:"fixed"});g.attr(e.view.saDOMNameAttribute,this.identifier);q.incrementCounter(f.metrics.PREFIX+"render_"+
this.identifier)},_isAudiospotPresent:function(){return document.getElementById("sa_audiospot")},pushAudiospotToBackground:function(){var a=d(this.audiospotId),c=this.positionY+b.getAUIScrollPageValue();a.css({"z-index":f.constants.lowerZindex,top:c})},bringAudiospotToForeground:function(){d(this.audiospotId).css({"z-index":f.constants.higherZindex,top:this.positionY})},renderComplete:function(a){var b=this.collection.identifierList[a].id,c=this.collection.identifierList[a].schedulingType,d=this.shoppingAidsType;
this.collection.identifierList.splice(a,1);g.isDefined(this.audiospotRenderCompleteCallback)&&this.audiospotRenderCompleteCallback({identifier:b,schedulingType:c,shoppingAidsType:d,audiospotAnchor:this.anchor})},_createAudiospotBaseElement:function(a){h.configureAudio(a);return this._createElement(f.templates.audiospotTemplate,a)},_attachClickListener:function(a){d(a).click(function(){c.view._updateState()})},_updateState:function(){h.getCurrentState()===h.initialState?h.setState(h.playState):h.getCurrentState()===
h.playState?h.setState(h.pauseState):h.getCurrentState()===h.pauseState?h.setState(h.playState):h.getCurrentState()===h.completeState&&h.setState(h.playState)},_handleVisibility:function(){document.addEventListener("visibilitychange",this._visibilityChangeHandler)},_visibilityChangeHandler:function(){document.hidden&&h.getCurrentState()===h.playState&&h.setState(h.pauseState)},handleOverlay:function(){this._isAudiospotPresent()&&(m.handleOverlay(h.getCurrentState.bind(h),h.setState.bind(h)),this.pushAudiospotToBackground())},
_repositionAudiospot:function(){if(b.isElementVisible(this.anchor)){var a=l.getAbsolutePositionToPlaceSA(this.anchor,this.originalPositionY,this.originalPositionX);d(this.audiospotId).css({left:a[0]+"px",top:a[1]+"px",visibility:"visible"})}else this.dismissWithId(this.identifier)},handleOverlayDismiss:function(){this._isAudiospotPresent()&&(this.bringAudiospotToForeground(),this._repositionAudiospot(),m.handleOverlayDismiss(h.getCurrentState.bind(h),h.setState.bind(h)))},clearTimeouts:function(){g.isDefined(this.renderTimeoutId)&&
(clearTimeout(this.renderTimeoutId),delete this.renderTimeoutId);g.isDefined(this.renderCompleteTimeoutId)&&(clearTimeout(this.renderCompleteTimeoutId),delete this.renderCompleteTimeoutId)},setAudiospotRenderCompleteCallback:function(a){this.audiospotRenderCompleteCallback=a}});c.view=new k;return c})})();(function(){n.when("A","SAAudiospotConstants","QTipsMetrics").register("AudioMetrics",function(k,d,a){var e=d.metrics.PREFIX;return{_addMetricEventListeners:function(g,c){g.addEventListener("error",
function(){a.incrementCounter(e+d.metrics.ERROR,1,c)});g.addEventListener("stalled",function(){a.incrementCounter(e+d.metrics.STALLED,1,c)});g.addEventListener("suspend",function(){a.incrementCounter(e+d.metrics.SUSPEND,1,c)});g.addEventListener("waiting",function(){a.incrementCounter(e+d.metrics.WAITING,1,c)});g.addEventListener("abort",function(){a.incrementCounter(e+d.metrics.ABORT,1,c)});g.addEventListener("loadeddata",function(){a.incrementCounter(e+d.metrics.LOADED,1,c)})}}})})();(function(){n.when("A",
"jQuery","QTipLibrary","QTipsConstants","AnchorBasedSAUtils","ShoppingAidsGenericUtils","NestedShoppingAidHelper","SAHotspot").register("AnchorBasedPositioning",function(k,d,a,e,g,c,b,l){k=a.View.extend({pageAnchor:"body",addAndPosition:function(a,b,c){this.setElement(this.pageAnchor,a);a=this.getAbsolutePositionToPlaceSA(c,b.get("positionY"),b.get("positionX"),b.get("startPositionX"));b.set({renderPointX:a[0]});b.set({renderPointY:a[1]})},getAbsolutePositionToPlaceSA:function(a,b,e,l){var f=d(a)[0].getBoundingClientRect(),
h=d(a).offset().top;g.isElementOrParentFixed(a)&&(h=f.top);a=f.left;c.isDefined(l)&&("middle"===l&&(a+=(f.left+f.right)/2),"right"===l&&(a=f.right),"left"===l&&(a=f.left));c.isDefined(b)&&(h-=b);c.isDefined(e)&&(a+=e);return[a,h]}});return k=new k})})();(function(){n.when("A","QTipLibrary","ShoppingAidsGenericUtils").register("AnchorSACollection",function(k,d,a){return d.Collection.extend({model:{},identifierList:[],add:function(d){if(a.isDefined(this.validSACallback)&&this.validSACallback(d)){var e=
{},c=d.get("identifier");e.id=c;e.sequenceNum=d.get("sequenceNum");e.schedulingType=d.get("schedulingType");this.identifierList.push(e);this.models[c]=d}},parse:function(d,g){if(a.isDefined(d)){var c=this._prepareModel.bind(this);d.forEach(function(a,e,f){d[e]=c(a)});return d}},setValidSACallback:function(a){this.validSACallback=a}})})})();(function(){n.when("A","AssistedShoppingDataParser","ShoppingAidsGenericUtils").register("AssistedShoppingDataManager",function(k,d,a){return{model:w,_currentPage:w,
initialiseCampaignData:function(e,g){this.model=d.parseASCampaignJson(e,g);this._currentPage=g;return a.isDefined(this.model)?!0:!1},getCurrentPage:function(){return this._currentPage},isCompletionPage:function(){return this.getCurrentPage()===this.getCompletionPage()},isFirstRender:function(){return this._getFieldFromModel("firstRender")},getIdentifier:function(){return this._getFieldFromModel("identifier")},getType:function(){return this._getFieldFromModel("type")},getState:function(){return this._getFieldFromModel("state")},
getCompletionPage:function(){return this._getFieldFromModel("completionPage")},getTTL:function(){return this._getFieldFromModel("ttl")},getPageTransitionEvents:function(){return this._getFieldFromModel("pageTransitionEvents")||this.getPageLevelSA().get("pageTransitionEvents")},getEnabledBottomSheets:function(){return this.getPageLevelSA().get("enabledBottomSheets")},getEnabledPopOvers:function(){return this.getPageLevelSA().get("enabledPopOvers")},getPageLevelSA:function(){return this._getFieldFromModel("pageLevelSA")},
getTriggers:function(){return this._getFieldFromModel("triggers")},updateState:function(a){try{return this.model.set({state:a}),!0}catch(g){return!1}},updateAudioURL:function(a,g){try{return d.identifierToModelMap[a].set({audioSrc:g}),!0}catch(c){return!1}},_getFieldFromModel:function(d){return a.isDefined(this.model)?this.model.get(d):null}}})})();(function(){n.when("A","jQuery","QTipLibrary","ShoppingAidsGenericUtils","QTipsConstants","AssistedShoppingModelBuilder","ShoppingAidsFilters","ContextAwareSubstitutor").register("AssistedShoppingDataParser",
function(k,d,a,e,g,c,b,l){return{identifierToModelMap:{},parseASCampaignJson:function(a,b){b=this._getPageLevelContext(a,b);if(!e.isDefined(b))return null;a=c.newBuilder().withIdentifier(a.identifier).withType(a.type).withState(a.state).withTTL(Number(a.ttl)).withCompletionPage(a.completionPage).withFirstRender(a.firstRender).withPageTransitionEvents(e.parseJSONStringIfValid(a.pageTransitionEvents)).withPageLevelSA(this._parsePageLevelSA(a.pageLevelSA,b.pageLevelSA)).withTriggers(this._parseShoppingAidsJSONCollection(b.triggers)).build();
this._registerModel(a);return a},_parseShoppingAidsJSONCollection:function(a){var b=[];if(e.isNonEmptyArray(a))for(var c=0;c<a.length;c++)b[c]=this.parseShoppingAidJSON(a[c]);return b},parseShoppingAidJSON:function(b){var c={};if(b&&this._preProcessShoppingAidsJSON(b)){for(var d in b)b.hasOwnProperty(d)&&(c[d]=this._formatSAJSONValue(d,b[d]));c=new a.Model(c);this._registerModel(c)}return c},_preProcessShoppingAidsJSON:function(a){if(e.isDefined(a.type)&&"FabAudioSpot"===a.type){var c=-1;return-1!==
(c=b.getContextTargetingIndex(a))&&l.substitute(a,c,a.type)}return!0},_parsePageLevelSA:function(a,b){a=d.extend(e.defaultJSONIfUndefined(a,{}),e.defaultJSONIfUndefined(b,{}));return this.parseShoppingAidJSON(a)},_getPageLevelContext:function(a,b){try{return a.pages[b]}catch(q){return null}},_formatSAJSONValue:function(a,b){return g.regex.numberRegex.test(b)?Number(b):"targetSA"===a?this.parseShoppingAidJSON(b):"supplementarySA"===a&&1!==b.indexOf(g.contextAwareSADelimiter)?this._parseShoppingAidsJSONCollection(b):
b},_registerModel:function(a){this.identifierToModelMap[a.get("identifier")]=a}}})})();(function(){n.when("A","QTipLibrary").register("AssistedShoppingModelBuilder",function(k,d){return{model:w,newBuilder:function(){this.model=new d.Model;return this},withIdentifier:function(a){this.model.set({identifier:a});return this},withState:function(a){this.model.set({state:a});return this},withType:function(a){this.model.set({type:a});return this},withTTL:function(a){this.model.set({ttl:a});return this},withCompletionPage:function(a){this.model.set({completionPage:a});
return this},withFirstRender:function(a){this.model.set({firstRender:a});return this},withPageLevelSA:function(a){this.model.set({pageLevelSA:a});return this},withTriggers:function(a){this.model.set({triggers:a});return this},withPageTransitionEvents:function(a){this.model.set({pageTransitionEvents:a});return this},build:function(){return this.model}}})})();(function(){n.register("SparkleConfig",function(){return{pagesWithSubnav:{gateway:1,detailpage:0,search:1,browse:0,deals:0,event:0,yourorder:0,
cart:1,foundIt:0,thankYou:0},shouldAddPaddingForPage:function(k){return k&&1===this.pagesWithSubnav[k]},elementPresentOnPage:"ElementPresentOnPage",elementNotPresentOnPage:"ElementNotPresentOnPage",elementIdInvalid:"ElementIdInvalid",subnavElementId:"glow_sub_nav_bar_view",andoridBottomPadding_SubnavPresent:"46px",iOSBottomPadding_WhenEndOfPage:"1px",iOSBottomPadding_SubnavPresent:15}})})();(function(){n.when("A","SACommonConfig","ShoppingAidsGenericUtils","LocalStorageInterface").register("StatefulSADataStore",
function(k,d,a,e){var g=[];k={init:function(){var c=e.getFromLocalStorage(d.statefulSAStorageKey);a.isNonEmptyArray(c)&&(g=c)},_storeInProgressSAs:function(){try{e.setInLocalStorage(d.statefulSAStorageKey,JSON.stringify(g))}catch(c){}},getInProgressSAs:function(){return g.slice()},getInProgressSAByIdentifier:function(a){var b;g.forEach(function(c){a===c.identifier&&(b=c)});return b},setInProgressSAs:function(a){a&&Array.isArray(a)&&(g=a.slice(),this._storeInProgressSAs())},updateInProgressSA:function(a,
b,d){g.forEach(function(c){a===c.identifier&&(c.state=b,c.status=d)});this._storeInProgressSAs()},isInProgressSA:function(a){return!g.every(function(b){return b.identifier!==a})},addInProgressSA:function(a){if(this.isInProgressSA(a.identifier))return!1;a.firstImpressionTime=Date.now();g.push(a);this._storeInProgressSAs();return!0},removeInProgressSA:function(a){var b=-1;g.forEach(function(c,d){a===c.identifier&&(b=d)});return-1<b?(g.splice(b,1),this._storeInProgressSAs(),!0):!1},cleanUp:function(){g=
[];e.removeFromLocalStorage(d.statefulSAStorageKey)}};k.init();return k})})();(function(){n.when("A","CacheValidator","ShoppingAidsGenericUtils","SAFeature","ShoppingAidsFilters","StatefulSADataStore").register("StatefulSAEligiblityHelper",function(k,d,a,e,g,c){return{getEligibleInProgressSA:function(a){var b=c.getInProgressSAs();b=b.filter(this._isSAActive);c.setInProgressSAs(b);for(var d=0;d<b.length;d++)if(this._isMultiPageSAForCurrentPage(b[d],a)&&g.isShoppingAidEligible(b[d]))return b[d];return{}},
_isSAActive:function(b){return a.isDefined(b.ttl)&&a.isDefined(b.firstImpressionTime)?a.minutesBetween(Date.now(),b.firstImpressionTime)<b.ttl:!1},_isMultiPageSAForCurrentPage:function(a,c){return a.pages&&a.pages[c]},cleanUpInProgressStore:function(){c.cleanUp()}}})})();(function(){n.when("A","AssistedShoppingDataManager","LogImpressionManager","StatefulSADataStore","ShoppingAidsGenericUtils","SAFabAudiospot","SAFabAudiospotConstants","TriggerHandler","MultiPageSAConstants","SAMetricUtils","QTipsConstants",
"ShoppingAidsFilters","PageResolver","LocalStorageInterface","UIGuardRailFiltering").register("MultiPageSAOrchestrator",function(k,d,a,e,g,c,b,l,f,h,q,m,n,u,y){var p={schedulingType:w,multiPageSA:w,isExperienceCompleted:!1,display:function(a,b){this._isCurrentPagePresentInCampaign(a,b)&&(this.schedulingType=a.schedulingType,this.multiPageSA=a,this.isExperienceCompleted=!1,this._handleFirstRenderImpression(a,b),this._mapUserStatusToState(a),this._saveInProgressSA(a),d.initialiseCampaignData(a,b)?(b=
this._setupModel(d.getPageLevelSA()),c.render(b,this.onFabAudioSpotStateUpdate.bind(this),this._errorCallBack.bind(this)),this._logMetric(f.metrics.Render),this._setup(a)):this._logMetric(f.metrics.InvalidCampaign,a.identifier))},_handleFirstRenderImpression:function(b,c){if(g.isDefined(b.status)&&b.status!==q.userEvent.complete)b.firstRender=!1;else{b.firstRender=!0;b.status=q.userEvent.yetToOptIn;var d=a.buildOptionalParameter().withSuccessCallback(this._successCallBack.bind(this)).withErrorCallback(this._errorCallBack.bind(this)).withUserEvent(q.userEvent.yetToOptIn).build();
a.handle(b.identifier,b.schedulingType,"multi_page_shopping_aid",c,d);this._logMetric(f.metrics.FirstRender,b.identifier)}},_isCurrentPagePresentInCampaign:function(a,b){try{return g.isDefined(a.pages[b])}catch(x){return!1}},_setupModel:function(a){var b=d.getState();g.isDefined(b)&&b!==f.state.YetToOptIn||a.set({introductoryAnimation:!0});if(b===f.state.Enabled||b===f.state.Disabled||d.getType()===f.type.AutoPlay)b=a.get("supplementarySA")||[],b=b.filter(function(a){return"tool_tip"!==a.get("type")}),
a.set({supplementarySA:b});return a},_setup:function(a){d.getType()===f.type.AutoPlay&&!0===d.isFirstRender()&&setTimeout(this._playAudio,f.delays.AutoPlay);this._setupCompletionEvent(a);this._enableTriggers();l.registerPageTransitionEvents(d.getPageTransitionEvents(),p.onPageChange.bind(p))},_setupCompletionEvent:function(a){var b=d.getCompletionPage();b=g.parseJSONStringIfValid(b);g.isDefined(b)?l.registerMultiPageCompletionEvent(b,p.onCompletionEventFired.bind(p)):this._logCompletion(a)},_enableTriggers:function(){var a=
d.getTriggers();l.registerTriggers(a,p.onTriggerFired.bind(p));l.triggerPageLoadEvent()},_cleanUpResources:function(){l.deregisterTriggers();l.deregisterMultiPageCompletionEvent();c.dismiss()},_logCompletion:function(b,c){p.isCompletionCriteriaMet(c)&&(p.isExperienceCompleted=!0,c=a.buildOptionalParameter().withSuccessCallback(this._successCallBack.bind(this)).withErrorCallback(this._errorCallBack.bind(this)).withUserEvent(q.userEvent.complete).build(),a.handle(b.identifier,b.schedulingType,"multi_page_shopping_aid",
d.getCurrentPage(),c),c=a.buildOptionalParameter().withSuccessCallback(this._successCallBack.bind(this)).withErrorCallback(this._errorCallBack.bind(this)).withUserEvent(null).build(),a.handle(b.identifier,b.schedulingType,"multi_page_shopping_aid",d.getCurrentPage(),c),e.removeInProgressSA(d.getIdentifier()),d.getState()!==f.state.YetToOptIn&&p._logMetric(f.metrics.Complete))},onCompletionEventFired:function(a){p._logCompletion(p.multiPageSA,a)},isCompletionCriteriaMet:function(a){return g.isDefined(a)?
p.validateCompletionCriteria(a):d.isCompletionPage()},validateCompletionCriteria:function(a){return g.isDefined(a.data)&&g.isDefined(a.detail)&&g.isDefined(a.data.identifier)&&g.isDefined(a.detail.identifier)&&a.data.identifier===a.detail.identifier||(!g.isDefined(a.data)||!g.isDefined(a.data.identifier))&&!g.isDefined(a.detail)},onFabAudioSpotStateUpdate:function(a,e){a===b.successCode.UPDATE_SUCCESS?(a=d.getState(),a===f.state.YetToOptIn&&e===b.state.complete?(p._updateStateAndStatus(f.state.Enabled,
q.userEvent.optIn),l.triggerPageLoadEvent(),p._logMetric(f.metrics.OptIn)):a===f.state.Enabled&&e===b.state.pause?(p._updateStateAndStatus(f.state.Disabled,q.userEvent.optOut),p._logMetric(f.metrics.Disabled)):a===f.state.Disabled&&e===b.state.play&&(p._updateStateAndStatus(f.state.Enabled,q.userEvent.optIn),p._logMetric(f.metrics.Enabled))):a===b.errorCode.UPDATE_FAILED&&e===b.errorCode.AUTO_PLAY_NOT_SUPPORTED&&(p._logMetric(f.metrics.AutoPlayFailed),c.updateState(b.state.autoPlayFailed,p._successCallBack.bind(p),
p._errorCallBack.bind(p)))},_updateStateAndStatus:function(b,c){d.updateState(b);p.isExperienceCompleted||(e.updateInProgressSA(d.getIdentifier(),b,c),b=a.buildOptionalParameter().withSuccessCallback(this._successCallBack.bind(this)).withErrorCallback(this._errorCallBack.bind(this)).withUserEvent(c).build(),a.handle(d.getIdentifier(),this.schedulingType,"multi_page_shopping_aid",d.getCurrentPage(),b))},onTriggerFired:function(a){if(d.getState()!==f.state.YetToOptIn){var e=a.get("targetSA").get("type"),
g=a.get("targetSA").get("identifier");"FabAudioSpot"!==e||g===c.getIdentifier()&&c.getState()===b.state.play||(e=a.get("type"),p._pauseAudio(),c.updateModel(a.get("targetSA"),p._successCallBack.bind(p),p._errorCallBack.bind(p)),p._logMetric(f.metrics.TriggerFired,g),d.getState()===f.state.Enabled&&("OnFocus"===e?p._isInputFieldEmpty(a.get("anchor"))&&p._playAudio():p._playAudio()))}},onPageChange:function(){p._cleanUpResources();setTimeout(function(){var a=n.pageAdapter();e.init();var b=e.getInProgressSAByIdentifier(d.getIdentifier());
g.isDefined(b)&&m.isShoppingAidEligible(b)&&y.isUIGuardRailMet(b)&&p.display(b,a)},f.delays.ResourcesRegistration)},_playAudio:function(){c.updateState(b.state.play,p._successCallBack.bind(p),p._errorCallBack.bind(p))},_pauseAudio:function(){c.getState()===b.state.play&&c.updateState(b.state.pause,p._successCallBack.bind(p),p._errorCallBack.bind(p))},_isInputFieldEmpty:function(a){a=k.$(a);return g.isDefined(a)&&g.isDefined(a.val())?0===a.val().trim().length:!1},_logMetric:function(a,b){b=b||d.getIdentifier();
h.incrementCounterWithLOPPlatformAndCombination(f.metrics.Prefix+a,1,b)},_saveInProgressSA:function(a){e.isInProgressSA(a.identifier)||e.addInProgressSA(a)},_mapUserStatusToState:function(a){g.isDefined(a.status)&&a.status!==q.userEvent.yetToOptIn&&a.status!==q.userEvent.complete?a.status===q.userEvent.optIn?a.state=f.state.Enabled:a.status===q.userEvent.optOut?a.state=f.state.Disabled:this._logMetric(f.metrics.UndefinedStatus):a.state=f.state.YetToOptIn},_successCallBack:function(a){},_errorCallBack:function(a){},
isBrowserSupported:function(){return u.isLocalStorageExposed()&&r.Audio}};return p})})();(function(){n.register("MultiPageSAConstants",function(){return{delays:{AutoPlay:1E3,ResourcesRegistration:200},state:{YetToOptIn:"YetToOptIn",Enabled:"Enabled",Disabled:"Disabled"},type:{AutoPlay:"AutoPlay",TapAndPlay:"TapAndPlay"},metrics:{Prefix:"MultiPageSA_",Render:"render",FirstRender:"first_render",OptIn:"opt_in",Disabled:"disabled",Enabled:"enabled",TriggerFired:"trigger_fired",Complete:"complete",InvalidCampaign:"invalid_campaign",
AutoPlayFailed:"autoplay_failed",UndefinedStatus:"undefined_status"}}})})();(function(){n.when("A","jQuery","ShoppingAidsGenericUtils","SATriggerResolver").register("TriggerHandler",function(k,d,a,e){var g={OnFocus:"focus.shopping_aids",OnSelected:"change.shopping_aids",OnClick:"click.shopping_aids",OnPageLoad:"SAPageLoad.shopping_aids",OnPartnerEvent:"partnerEvent.shopping_aids",OnAudioPlay:"PLAY_STATE.shopping_aids",OnAudioPause:"PAUSE_STATE.shopping_aids",OnAudioComplete:"COMPLETED.shopping_aids"},
c={},b=[],l=[],f,h,q,m=["hfc-events:BILL_PAY_AUTHENTICATOR_CHANGE"],n,u=function(b){a.isDefined(d(this).attr("type"))&&"checkbox"===d(this).attr("type")?d(this).is(":checked")&&r(b.data):r(b.data)},r=function(b){if(a.isDefined(b)){if(b.trigger.get("targetSA").get("triggerDependentTargeting")){var c=e.executeContextFilter(b.trigger.get("targetSA"));b.trigger.unset("targetSA");b.trigger.set({targetSA:c})}p();c=b.trigger.get("delay");var d=b.trigger.get("type");if(a.isDefined(c)||"OnPageLoad"===d)n=
setTimeout(function(){b.onAidsTriggeredCallback(b.trigger);p()},c||1E3);else b.onAidsTriggeredCallback(b.trigger)}},p=function(){a.isDefined(n)&&(clearTimeout(n),n=w)},t=function(b){return!!(a.isDefined(b.get("targetSA"))&&a.isDefined(b.get("targetSA").get("identifier"))&&a.isDefined(b.get("type"))&&g.hasOwnProperty(b.get("type")))},O=function(a){return-1===l.indexOf(a)},x={registerTriggers:function(c,d){a.isDefined(c)&&a.isDefined(d)&&"function"===typeof d&&c.filter(t).forEach(function(c){var e=
c.get("type"),f=c.get("event");if(a.isDefined(f)){var g="OnPartnerEvent"===e?k.on(f,function(){var a=c.get("delay")||500;c.set({delay:a});r({trigger:c,onAidsTriggeredCallback:d});-1!==m.indexOf(f)&&k.off(g.event,g.callback)}):k.on(f,function(){setTimeout(function(){x._bindEvent(c,d)},100)});b.push(g)}else x._bindEvent(c,d)})},_bindEvent:function(b,e){var f=b.get("targetSA").get("identifier"),h=b.get("type"),l=b.get("anchor")||document;f in c?(d(l).unbind(g[h]),d(l).bind(g[h],{trigger:b,onAidsTriggeredCallback:e},
k.throttle(u,1E3))):a.isDefined(d(l))&&(c[f]={triggerElement:l,eventType:g[h]},d(l).bind(g[h],{trigger:b,onAidsTriggeredCallback:e},k.throttle(u,1E3)))},triggerPageLoadEvent:function(){var a=new CustomEvent("SAPageLoad",{bubbles:!0,cancelable:!1,detail:w});document.dispatchEvent(a)},deregisterTriggers:function(){for(var e in c)if(c.hasOwnProperty(e)&&a.isDefined(c[e])){var f=c[e];d(f.triggerElement).unbind(f.eventType)}b.forEach(function(a){k.off(a.event,a.callback)});c={};b=[];p()},registerPageTransitionEvents:function(b,
c){a.isDefined(b)&&a.isDefined(c)&&"function"===typeof c&&b.filter(O).forEach(function(a){k.on(a,function(){c();l.push(a)})})},registerMultiPageCompletionEvent:function(b,c){a.isDefined(b)&&a.isDefined(b.eventType)&&a.isDefined(c)&&"function"===typeof c&&(h=b.anchor||document,f=b.eventType,"OnPartnerEvent"===f?q=k.on(b.event,c):d(h).bind(g[f],{identifier:b.identifier},c))},deregisterMultiPageCompletionEvent:function(){a.isDefined(h)&&a.isDefined(f)&&(d(h).unbind(g[f]),f=h=w);a.isDefined(q)&&(k.off(q.event,
q.callback),q=w)}};return x})})();(function(){n.when("A","AssistedShoppingDataParser").register("SATriggerResolver",function(k,d){return{executeContextFilter:function(a){var e=a.get("triggerDependentTargeting");a.set({clientSideTargetting:e});a.unset("triggerDependentTargeting");a=k.parseJSON(a.toJson());return d.parseShoppingAidJSON(a)}}})})();(function(){n.register("SAFabAudiospotConstants",function(){return{timer:{elongationTimer:3E3,supplementarySAThrottleTimer:50},template:{pulse:"\x3cstyle\x3e.sa_fabAudiospot-pulse-dynamic-background{ border-color : #fff;border-radius: 50%;width: 42px;height: 42px;background-color: #fff; position:absolute;display: none;top:7px;left:7px;text-align:center;transform: scale(1);animation: pulse 1.5s 0.2s infinite;} .sa_fabAudiospot-pulse-dynamic-background:after{ content: none;} @keyframes pulse {0% { transform: scale(1); } 70% { transform: scale(1.25); } 100% { transform: scale(1); }}\x3c/style\x3e",
innerCircle:"\x3cstyle\x3e.sa_fabAudiospot-pulse-static-background-inner{ border-color : #fff;border-radius: 50%;width: 34px;height: 34px;background-color: #fff; position:absolute;display: table-cell;top:11px;left:11px;text-align:center;transform: scale(1.2);opacity:0.15;}\x3c/style\x3e",staticPulse:"\x3cstyle\x3e.sa_fabAudiospot-pulse-static-background{ border-color : #fff;border-radius: 50%;width: 42px;height: 42px;background-color: #fff; position:absolute;display: table-cell;top:7px;left:7px;text-align:center;transform: scale(1.2);opacity:0.15} \x3c/style\x3e",
dynamicPulse:"\x3cstyle\x3e.sa_fabAudiospot-pulse-initial-background{ border-color : #fff;border-radius: 50%;width: 42px;height: 42px;background-color: #fff; position:absolute;display: none;top:7px;left:7px;text-align:center;transform: scale(1.2);opacity:0.25;animation: initialPulse 1.5s 0.2s infinite;} @keyframes initialPulse {0% { transform: scale(1); } 70% { transform: scale(1.25); } 100% { transform: scale(1); }} \x3c/style\x3e",animatingSpeaker:"\x3cstyle\x3e.sa_fabaudiospot-image { height: 54px; width: 54px; position: relative; overflow: hidden; display: none;margin-left: 7px;margin-top: 8px;z-index:100 } .sa_fabaudiospot-image span{ display: block; width: 14px; height: 14px; background: #fff; margin: 17px 0 0 3px; } .sa_fabaudiospot-image span:after { content: ''; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent #fff transparent transparent; border-width: 15px 20px 15px 21px; left: -15px; top: 9px; } .sa_fabaudiospot-image span:before { transform: rotate(45deg); border-radius: 0 26px 0 0; content: ''; position: absolute; width: 8px; height: 8px; border-style: double; border-color: #fff; border-width: 13px 13px 0 0; left: 29px; top: 14px; transition: all 0.2s ease-out;animation: pulse1 1.5s 0.2s infinite;}@keyframes pulse1 {0% { border-style: solid; width: 8px; height: 8px;border-width: 4px 4px 0 0;left: 25px; top: 18px; } 50% { border-style: double; } 100% { border-style: none; }}\x3c/style\x3e",
staticSpeaker:"\x3cstyle\x3e.sa_fabaudiospot-image-static { height: 39px; width: 39px; position: relative; overflow: hidden; display: inline-block;margin-left:10px;margin-top: 10px;z-index:100 } .sa_fabaudiospot-image-static span{ display: block; width: 10.5px; height: 10.5px; background: #fff; margin: 12.75px 0 0 2.25px; } .sa_fabaudiospot-image-static span:after { content: ''; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent #fff transparent transparent; border-width: 11.25px 15px 11.25px 15.75px; left: -11.25px; top: 6.75px; } .sa_fabaudiospot-image-static span:before { transform: rotate(45deg); border-radius: 0 19.5px 0 0; content: ''; position: absolute; width: 6px; height: 6px; border-style: double; border-color: #fff; border-width: 9px 9px 0 0; left: 21px; top: 10px; transition: all 0.2s ease-out;}\x3c/style\x3e"},
style:{FABaudiospotStyle:".sa_fabaudiospot-container{ background:#007185; position:fixed; bottom:50%; left:0px;  box-sizing:border-box; display:table; box-shadow:0px 2px 7px #F0F2F2; z-index:490; opacity:1;margin-right: 0px; border-top-left-radius: 32px; border-bottom-left-radius: 32px;transition: margin-left 0s cubic-bezier(0.65, 0, 0.076, 1); }.sa_fabaudiospot-content{display:flex;align-items: center;vertical-align: middle;} .sa_fabaudiospot-image-container{display:table-cell;vertical-align:top;width:56px;height:56px}.sa_fabaudiospot-text-container{display:flex;flex-direction: column;justify-content: center;padding-left:10px;padding-right: 120px; transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);}.sa_fabaudiospot-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:clip;white-space:nowrap;color:#fff}#sa_fabAudiospot-dynamic-pulse{overflow:auto}.sa_fabAudiospot-pulse-dynamic-background{position:relative;z-index:99;padding:10px;opacity:0.15;border-radius:3px;-webkit-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-moz-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-o-box-shadow:0 2px 5px 0 rgba(17,17,17,.25);-moz-transform-style:preserve-3d;-o-transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.sa_fabAudiospot-pulse-dynamic-background:after{position:absolute;display:block;width:0;content:'';border-style:solid;-moz-transform-style:preserve-3d;-o-transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transform-style:preserve-3d} .sa_fabaudiospot-pause{border: 0; background: transparent; box-sizing: border-box; width: 0; height: 22px; border-color: transparent transparent transparent #fff; transition: 100ms all ease; border-style: double; border-width: 0px 0 0px 20px;position:relative;z-index:1;left:17px;top:17px;display:none;margin-right: 30px}"},
errorCode:{ALREADY_RENDERED:"Already_Rendered",UPDATE_FAILED:"Update_Failed",DISMISS_FAILED:"Dimiss_Failed",AUDIO_NOT_SUPPORTED:"Audio_not_supported",STATE_NOT_SUPPORTED:"State_not_supported",PARAMETER_MISSING:"Mandatory_param_missing",AUTO_PLAY_NOT_SUPPORTED:"Auto_play_not_supported"},successCode:{UPDATE_SUCCESS:"Update_Success",DISMISS_SUCCESS:"Dismiss_Success",RENDER_SUCCESS:"Render_Success",STATE_UPDATE_SUCCESS:"Update_State_Success",AUTO_PLAY_SUPPORTED:"Auto_play_supported"},constants:{expandedTextSplitter:"|",
defaultAudioPlayFeedbackText:"Audio On",defaultAudioPauseFeedbackText:"Audio Off",defaultAutoPlayFallbackText:"Tap for Help",fabAudiospotElongateMarginLeft:"0px",fabAudiospotFallbackContractMarginLeft:"-13px",fabAudiospotDefaultImageWidth:55,fabAudiospotDefaultTransitionDelay:"2s",fabAudiospotTextMarginConstant:25,fabAudiospotNegation:-1,fabAudiospotZIndex:490,fabAudiospotForegroundZIndex:9E3,fabAudiospotBackgroundZIndex:390},CSSConstants:{fabAudiospotContainerIdentifier:"sa_fabaudiospot",fabAudiospotContainerClass:"sa_fabaudiospot-container",
fabAudiospotContentClass:"sa_fabaudiospot-content",fabAudiospotImageContainerIdentifier:"sa_fabaudiospot-image",fabAudiospotImageContainerClass:"sa_fabaudiospot-image-container",fabAudiospotInitialPulseIdentifier:"sa_fabAudiospot-pulse-initial-dynamic",fabAudiospotInitialPulseClass:"sa_fabAudiospot-pulse-initial-background",fabAudiospotPulseIdentifier:"sa_fabAudiospot-dynamic-pulse",fabAudiospotPulseClass:"sa_fabAudiospot-pulse-dynamic-background",fabAudiospotStaticPulseClass:"sa_fabAudiospot-pulse-static-background",
fabAudiospotStaticPulseIdentifier:"sa_fabAudiospot-static-pulse",fabAudiospotInnerStaticPulseIdentifier:"sa_fabAudiospot-static-pulse-inner",fabAudiospotInnerStaticPulseClass:"sa_fabAudiospot-pulse-static-background-inner",fabAudiospotSpeakerClass:"sa_fabaudiospot-image",fabAudiospotSpeakerIdentifiers:"sa_fabaudiospot-image-speaker",fabAudiospotStaticSpeakerClass:"sa_fabaudiospot-image-static",fabAudiospotStaticSpeakerIdentifier:"sa_fabaudiospot-image-static-speaker",fabAudiospotPauseIconIdentifier:"sa_fabaudiospot-pause-icon",
fabAudiospotPauseIconClass:"sa_fabaudiospot-pause",fabAudiospotTextContainerClass:"sa_fabaudiospot-text-container",fabAudiospotTextClass:"sa_fabaudiospot-text",fabAudiospotTextIdentifier:"sa_fabaudiospot-text-id"},state:{play:"PLAY_STATE",pause:"PAUSE_STATE",complete:"COMPLETED",autoPlayFailed:"AUTOPLAY_FAILED"},metrics:{PREFIX:"SA_FABAUDIOSPOT_",PLAY:"PLAYED",PAUSE:"PAUSED",REPLAY:"REPLAYED",COMPLETE:"COMPLETED",ERROR:"ERROR",STALLED:"STALLED",SUSPEND:"SUSPENDED",WAITING:"WAITING",ABORT:"ABORT",
LOADED:"LOADED",USER_PAUSE:"USER_PAUSE",NON_USER_PAUSE:"NON_USER_PAUSE",USER_PLAY:"USER_PLAY",USER_REPLAY:"USER_REPLAY",ENABLED_BOTTOMSHEET:"ENABLED_BOTTOMSHEET",ENABLED_POPOVER:"ENABLED_POPOVER",DISABLED_OVERLAY:"DISABLED_OVERLAY"},overlay:{BOTTOM_SHEET:"bottomsheet",POP_OVER:"popover"}}})})();(function(){n.when("A","jQuery","SAFabAudiospotConstants","QTipLibrary","ShoppingAidsGenericUtils").register("SAFabAudiospotRenderer",function(k,d,a,e,g){k={addStyles:function(){g.addStyleToHead(a.style.FABaudiospotStyle)}};
e=e.View.extend({container:w,create:function(c){var b=document.createElement("div");b.id=a.CSSConstants.fabAudiospotContainerIdentifier;b.classList.add(a.CSSConstants.fabAudiospotContainerClass);var d=document.createElement("div");d.classList.add(a.CSSConstants.fabAudiospotContentClass);var e=document.createElement("div");e.id=a.CSSConstants.fabAudiospotImageContainerIdentifier;e.classList.add(a.CSSConstants.fabAudiospotImageContainerClass);var g=document.createElement("div");g.id=a.CSSConstants.fabAudiospotInitialPulseIdentifier;
g.classList.add(a.CSSConstants.fabAudiospotInitialPulseClass);g.innerHTML=a.template.dynamicPulse;var k=document.createElement("div");k.classList.add(a.CSSConstants.fabAudiospotPulseClass);k.id=a.CSSConstants.fabAudiospotPulseIdentifier;k.innerHTML=a.template.pulse;var m=document.createElement("div");m.classList.add(a.CSSConstants.fabAudiospotInnerStaticPulseClass);m.id=a.CSSConstants.fabAudiospotInnerStaticPulseIdentifier;m.innerHTML=a.template.innerCircle;var n=document.createElement("div");n.classList.add(a.CSSConstants.fabAudiospotStaticPulseClass);
n.id=a.CSSConstants.fabAudiospotStaticPulseIdentifier;n.innerHTML=a.template.staticPulse;var u=document.createElement("div");u.id=a.CSSConstants.fabAudiospotSpeakerIdentifier;u.classList.add(a.CSSConstants.fabAudiospotSpeakerClass);var r=document.createElement("span");r.innerHTML=a.template.animatingSpeaker;var p=document.createElement("div");p.id=a.CSSConstants.fabAudiospotStaticSpeakerIdentifier;p.classList.add(a.CSSConstants.fabAudiospotStaticSpeakerClass);var t=document.createElement("span");
t.innerHTML=a.template.staticSpeaker;var w=document.createElement("div");w.id=a.CSSConstants.fabAudiospotPauseIconIdentifier;w.classList.add(a.CSSConstants.fabAudiospotPauseIconClass);u.appendChild(r);p.appendChild(t);e.appendChild(k);e.appendChild(m);e.appendChild(n);e.appendChild(g);e.appendChild(p);e.appendChild(w);g=document.createElement("div");g.classList.add(a.CSSConstants.fabAudiospotTextContainerClass);k=document.createElement("p");k.id=a.CSSConstants.fabAudiospotTextIdentifier;k.classList.add(a.CSSConstants.fabAudiospotTextClass);
k.innerText=c;g.appendChild(k);d.appendChild(e);d.appendChild(g);b.appendChild(d);this.container=b}});k.createFabAudiospot=new e;k.addStyles();return k})})();(function(){n.when("A","jQuery","QTipLibrary","ShoppingAidsGenericUtils","FabAudiospotStateManager","SAFabAudiospotConstants","ShoppingAidsAudioUtils","NestedShoppingAidHelper","SAFabAudiospotUIManager","SAFabAudiospotRenderer","QTipsMetrics","QTips","AssistedShoppingDataManager").execute(function(k,d,a,e,g,c,b,l,f,h,q,m,n){k=a.View.extend({createFabAudiospot:h.createFabAudiospot,
model:w,render:function(a,d){if(this.createFabAudiospot.container)throw q.incrementCounter(c.metrics.PREFIX+this.model.identifier+c.errorCode.ALREADY_RENDERED),c.errorCode.ALREADY_RENDERED;this.model=a;this._validateModel(this.model);this._splitExpandedText();this.createFabAudiospot.create(this.model.get("audioPlayFeedbackText"));g.configureAudio(this.model,d);this._displayFabAudiospot();e.isDefined(this.model.get("introductoryAnimation"))&&this.model.get("introductoryAnimation")&&f.introductoryAnimation();
this._attachClickListener();b.handleVisibility(g.getCurrentState.bind(g),g.setState.bind(g));q.incrementCounter(c.metrics.PREFIX+this.model.identifier+c.successCode.RENDER_SUCCESS)},update:function(a){if(this._validateModel(a))this._updateIdentifier(a.get("identifier")),this._updateSupplementarySA(a.get("supplementarySA")),g.updateAudioSrc(a.get("audioSrc")),g.setElongateFabAudiospot(a.get("expandFabAudiospot")),q.incrementCounter(c.metrics.PREFIX+this.model.identifier+c.successCode.UPDATE_SUCCESS);
else throw q.incrementCounter(c.metrics.PREFIX+this.model.identifier+c.errorCode.UPDATE_FAILED),c.errorCode.UPDATE_FAILED;},getIdentifier:function(){return this.model.get("identifier")},isFabAudiospotPresent:function(){return e.isDefined(this.createFabAudiospot.container)},dismiss:function(){g.setState(g.pause,!1);b.removeVisibilityChangeListener();document.body.removeChild(this.createFabAudiospot.container);this.createFabAudiospot.container=w;this._dismissSupplementarySA();g.resetModuleVariables();
g.audio=null;q.incrementCounter(c.metrics.PREFIX+this.model.identifier+"_dismissed")},_displayFabAudiospot:function(){document.body.appendChild(this.createFabAudiospot.container);f.cacheElements();this._adjustPosition();this._renderSupplementarySA();f.enableTransition()},_attachClickListener:function(){d(this.createFabAudiospot.container).click(function(){g.getCurrentState()===g.pause?(g.setState(g.play,!0),f.elongateShortenAnimation()):g.getCurrentState()===g.play?(g.setState(g.pause,!0),f.elongateShortenAnimation()):
g.getCurrentState()===g.complete?g.setState(g.play,!0):g.getCurrentState()===g.autoPlayFailed&&g.setState(g.play,!0)})},_updateIdentifier:function(a){this.model.set({identifier:a});g.setIdentifier(a)},_updateSupplementarySA:function(a){this.model.set({supplementarySA:a});this._renderSupplementarySA()},_dismissSupplementarySA:function(){g.dismissAllRenderingSupplementarySA()},_splitExpandedText:function(){if(this.model.get("expandedText")){var a=this.model.get("expandedText"),b=a.split(c.constants.expandedTextSplitter)[0];
if((a=a.split(c.constants.expandedTextSplitter)[1])&&b){this.model.set({audioPlayFeedbackText:b});this.model.set({audioPauseFeedbackText:a});return}}this.model.set({audioPlayFeedbackText:c.constants.defaultAudioPlayFeedbackText});this.model.set({audioPauseFeedbackText:c.constants.defaultAudioPauseFeedbackText})},_adjustPosition:function(){e.isDefined(this.model.get("positionY"))&&(d("#sa_fabaudiospot")[0].style.bottom=this.model.get("positionY").toString()+"%");d("#sa_fabaudiospot")[0].style.left=
(screen.width-c.constants.fabAudiospotDefaultImageWidth).toString()+"px";d("#sa_fabaudiospot")[0].style.marginLeft=c.constants.fabAudiospotElongateMarginLeft},_renderSupplementarySA:function(){var a=[];if(this.model.get("supplementarySA"))for(var b=0;b<this.model.get("supplementarySA").length;b++)this.model.get("supplementarySA")[b].has("from")&&this.model.get("supplementarySA")[b].has("to")?a.push(this.model.get("supplementarySA")[b]):l.dispatchShoppingAidEvent(this.model.get("supplementarySA")[b]);
g.setTimeUpdateSupplementarySAList(a);a.length&&g.audioEventListenerForTimeUpdate();q.incrementCounter(c.metrics.PREFIX+this.model.identifier+"_supplementarySA_displayed")},_validateModel:function(a){if(!e.isDefined(a.get("identifier"))||!e.isDefined(a.get("audioSrc")))throw c.errorCode.PARAMETER_MISSING;return!0},handlerOverlay:function(a,e){this.isFabAudiospotPresent()&&(e===c.overlay.BOTTOM_SHEET&&this._isCurrentBottomSheetEnabled(a)||e===c.overlay.POP_OVER&&this._isCurrentPopOverEnabled(a)?(d("#sa_fabaudiospot")[0].style.zIndex=
c.constants.fabAudiospotForegroundZIndex,q.incrementCounter(c.metrics.PREFIX+this.model.identifier+"_"+(e===c.overlay.BOTTOM_SHEET?c.metrics.ENABLED_BOTTOMSHEET:c.metrics.ENABLED_POPOVER)+"_"+(e===c.overlay.BOTTOM_SHEET?a.sheet._name:a.popover._name))):(d("#sa_fabaudiospot")[0].style.zIndex=c.constants.fabAudiospotBackgroundZIndex,b.handleOverlay(g.getCurrentState.bind(g),g.setState.bind(g),this.getIdentifier()),q.incrementCounter(c.metrics.PREFIX+this.model.identifier+"_"+c.metrics.DISABLED_OVERLAY)))},
handlerOverlayDismiss:function(a,e){this.isFabAudiospotPresent()&&(e===c.overlay.BOTTOM_SHEET&&this._isCurrentBottomSheetEnabled(a)||e===c.overlay.POP_OVER&&this._isCurrentPopOverEnabled(a)||(b.handleOverlayDismiss(g.getCurrentState.bind(g),g.setState.bind(g),h.renderer.getIdentifier.bind(h.renderer)),this.userInteraction=!1),d("#sa_fabaudiospot")[0].style.zIndex=c.constants.fabAudiospotZIndex)},_isCurrentBottomSheetEnabled:function(a){return e.isDefined(a)&&e.isDefined(a.sheet._name)&&e.isDefined(n.getEnabledBottomSheets())&&
-1!==n.getEnabledBottomSheets().indexOf(a.sheet._name)},_isCurrentPopOverEnabled:function(a){return e.isDefined(a)&&e.isDefined(a.popover._name)&&e.isDefined(n.getEnabledPopOvers())&&-1!==n.getEnabledPopOvers().indexOf(a.popover._name)}});h.renderer=new k;return h})})();(function(){n.when("A","SAFabAudiospotRenderer","SAFabAudiospotConstants","QTipsConstants","FabAudiospotStateManager").register("SAFabAudiospot",function(k,d,a,e,g){return{render:function(a,b,e){try{d.renderer.render(a,b)}catch(f){e&&
"function"===typeof e&&e(f)}},updateModel:function(c,b,e){try{d.renderer.update(c),b&&"function"===typeof b&&b(a.successCode.UPDATE_SUCCESS)}catch(f){e&&"function"===typeof e&&e(f)}},getState:function(){return g.getCurrentState()},updateState:function(c,b,d){try{g.setState(c),b&&"function"===typeof b&&b(a.successCode.STATE_UPDATE_SUCCESS)}catch(f){d&&"function"===typeof d&&d(f)}},getIdentifier:function(){return d.renderer.getIdentifier()},dismiss:function(c,b){try{d.renderer.dismiss(),c&&"function"===
typeof c&&c(a.successCode.DISMISS_SUCCESS)}catch(l){b&&"function"===typeof b&&b(a.errorCode.DISMISS_FAILED)}},dismissWithId:function(a,b,g){d.renderer.isFabAudiospotPresent()&&this.getIdentifier()===a?this.dismiss(b,g):g&&"function"===typeof g&&g(e.errorCodes.SA_NOT_DISPLAYED)}}})})();(function(){n.when("A","jQuery","SAFabAudiospotConstants","ShoppingAidsAudioUtils","ShoppingAidsGenericUtils","SAFabAudiospotUIManager","NestedShoppingAidHelper","QTipsConstants","SAMetricUtils").register("FabAudiospotStateManager",
function(k,d,a,e,g,c,b,l,f){var h={play:a.state.play,pause:a.state.pause,complete:a.state.complete,autoPlayFailed:a.state.autoPlayFailed,audioPlayFeedbackText:"",audioPauseFeedbackText:"",audioFallbackText:"",stateUpdateCallback:w,elongateFabAudiospot:!1,identifier:w,replayed:!1,timeUpdateSupplementarySAList:[],timeUpdateSupplementarySAListIndex:0,isTimeUpdateEventListenerAdded:!1,currentlyRenderingSupplementarySAList:[],lastAudioTimeUpdateCall:0,configureAudio:function(b,c){if(e.isAudioSupported())h.audio=
new Audio,h.audio.src=b.get("audioSrc"),h.state=this.pause,this.audioPlayFeedbackText=b.get("audioPlayFeedbackText"),this.audioPauseFeedbackText=b.get("audioPauseFeedbackText"),this.stateUpdateCallback=c,this.elongateFabAudiospot=b.get("expandFabAudiospot"),this.identifier=b.get("identifier"),this.audioFallbackText=b.get("fallbackText"),this._audioEventListeners();else throw a.errorCode.AUDIO_NOT_SUPPORTED;},triggerEvent:function(a){a=new CustomEvent(a,{bubbles:!0,cancelable:!1,detail:{identifier:h.identifier}});
document.dispatchEvent(a)},_updateState:function(a){switch(h.state){case this.play:this._togglePlay(a);break;case this.pause:this._togglePause(this.pause,a);break;case this.complete:this._togglePause(this.complete);break;case this.autoPlayFailed:c.autoPlayFallbackCSS(this.audioFallbackText)}},_togglePlay:function(b){var d=h.audio.play();g.isDefined(d)&&d.then(function(){h.triggerEvent(h.play);c.updatePlayCSS(h.audioPlayFeedbackText);c.adjustView();h.replayed?(f.incrementCounterWithPlatform(a.metrics.PREFIX+
a.metrics.REPLAY,1,h.identifier),g.isDefined(b)&&!0===b&&f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.USER_REPLAY,1,h.identifier)):(f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.PLAY,1,h.identifier),g.isDefined(b)&&!0===b&&f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.USER_PLAY,1,h.identifier))}).catch(function(b){h.stateUpdateCallback(a.errorCode.UPDATE_FAILED,a.errorCode.AUTO_PLAY_NOT_SUPPORTED)})},_togglePause:function(b,d){if(b===this.pause){h.audio.pause();
h.triggerEvent(h.pause);var e=h.audio.currentTime;h.audio.currentTime=0;f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.PAUSE,e,this.identifier);g.isDefined(d)&&!0===d?f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.USER_PAUSE,1,this.identifier):f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.NON_USER_PAUSE,1,this.identifier)}c.updateAudioStoppedCSS(this.audioPauseFeedbackText,b);h.dismissAllRenderingSupplementarySA()},_audioEventListeners:function(){h.audio.addEventListener("ended",
function(){h.setState(h.complete,!0);h.triggerEvent(h.complete);h.replayed=!0;h.dismissAllRenderingSupplementarySA();f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.COMPLETE,1,h.identifier)});h.audio.addEventListener("stalled",function(){f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.STALLED,1,h.identifier)});h.audio.addEventListener("waiting",function(){f.incrementCounterWithPlatform(a.metrics.PREFIX+a.metrics.WAITING,1,h.identifier)})},_processSupplementarySA:function(){if(0<
h.audio.currentTime&&h.getCurrentState()===h.play){for(var a=h.audio.currentTime*l.secondToMillisecondConversion,c=0;c<h.currentlyRenderingSupplementarySAList.length;c++){var d=h.currentlyRenderingSupplementarySAList[c].get("to");g.isInRange(d,h.lastAudioTimeUpdateCall,a)&&(b.dispatchDismissShoppingAidEvent(h.currentlyRenderingSupplementarySAList[c].attributes),h.currentlyRenderingSupplementarySAList.splice(c,1),--c)}for(c=h.timeUpdateSupplementarySAListIndex;c<h.timeUpdateSupplementarySAList.length;c++)if(d=
h.timeUpdateSupplementarySAList[c].get("from"),g.isInRange(d,h.lastAudioTimeUpdateCall,a))h.currentlyRenderingSupplementarySAList.push(h.timeUpdateSupplementarySAList[c]),b.dispatchShoppingAidEvent(h.timeUpdateSupplementarySAList[c]),h.timeUpdateSupplementarySAListIndex=c+1;else break;h.lastAudioTimeUpdateCall=a}},audioEventListenerForTimeUpdate:function(){var b=a.timer.supplementarySAThrottleTimer;h.isTimeUpdateEventListenerAdded||(h.audio.addEventListener("timeupdate",k.throttle(this._processSupplementarySA,
b)),h.isTimeUpdateEventListenerAdded=!0)},setTimeUpdateSupplementarySAList:function(a){this.timeUpdateSupplementarySAList=a},dismissAllRenderingSupplementarySA:function(){for(var a=0;a<h.currentlyRenderingSupplementarySAList.length;a++)b.dispatchDismissShoppingAidEvent(h.currentlyRenderingSupplementarySAList[a].attributes);this._resetCurrentlyRenderingSupplementarySAList()},_resetCurrentlyRenderingSupplementarySAList:function(){h.currentlyRenderingSupplementarySAList=[];h.timeUpdateSupplementarySAListIndex=
0;h.lastAudioTimeUpdateCall=0},getCurrentState:function(){return h.state},updateAudioSrc:function(a){h.audio.src=a;this.replayed=!1},setState:function(b,c){g.isDefined(b)&&(h.state=b);this._updateState(c);this._expandFabAudiospot();g.isDefined(this.stateUpdateCallback)&&"function"===typeof this.stateUpdateCallback&&c&&this.stateUpdateCallback(a.successCode.UPDATE_SUCCESS,h.state)},setElongateFabAudiospot:function(a){this.elongateFabAudiospot=a},_expandFabAudiospot:function(){this.elongateFabAudiospot&&
(c.elongateShortenAnimation(),this.elongateFabAudiospot=!1)},setIdentifier:function(a){this.identifier=a},resetModuleVariables:function(){this.replayed=!1;this.timeUpdateSupplementarySAList=[];this.isTimeUpdateEventListenerAdded=!1}};return h})})();(function(){n.when("A","jQuery","SAFabAudiospotConstants","ShoppingAidsGenericUtils").register("SAFabAudiospotUIManager",function(k,d,a,e){var g={elementIdStore:[],cacheElements:function(){this.elementIdStore.fabAudiospot=d("#sa_fabaudiospot");this.elementIdStore.fabAudiospotText=
d("#sa_fabaudiospot-text-id");this.elementIdStore.fabAudiospotPause=d("#sa_fabaudiospot-pause-icon");this.elementIdStore.fabAudiospotSpeaker=d("#sa_fabaudiospot-image-static-speaker");this.elementIdStore.fabAudiospotDynamicPulse=d("#sa_fabAudiospot-dynamic-pulse");this.elementIdStore.fabAudiospotStaticPulse=d("#sa_fabAudiospot-static-pulse");this.elementIdStore.fabAudiospotInnerStaticPulse=d("#sa_fabAudiospot-static-pulse-inner");this.elementIdStore.fabAudiospotInitialPulse=d("#sa_fabAudiospot-pulse-initial-dynamic")},
updatePlayCSS:function(a){d(this.elementIdStore.fabAudiospotText)[0].innerText=a;d(this.elementIdStore.fabAudiospotPause).show();d(this.elementIdStore.fabAudiospotSpeaker).hide();d(this.elementIdStore.fabAudiospotDynamicPulse).show();d(this.elementIdStore.fabAudiospotStaticPulse).hide();d(this.elementIdStore.fabAudiospotInnerStaticPulse).hide();d(this.elementIdStore.fabAudiospotInitialPulse).hide()},updateAudioStoppedCSS:function(c,b){b===a.state.pause&&(d(this.elementIdStore.fabAudiospotText)[0].innerText=
c);d(this.elementIdStore.fabAudiospotPause).hide();d(this.elementIdStore.fabAudiospotSpeaker).show();d(this.elementIdStore.fabAudiospotDynamicPulse).hide();d(this.elementIdStore.fabAudiospotStaticPulse).show();d(this.elementIdStore.fabAudiospotInnerStaticPulse).show()},introductoryAnimation:function(){d(this.elementIdStore.fabAudiospotInitialPulse).show();d(this.elementIdStore.fabAudiospotStaticPulse).hide()},enableTransition:function(){d(this.elementIdStore.fabAudiospot)[0].style.transitionDuration=
a.constants.fabAudiospotDefaultTransitionDelay},elongateShortenAnimation:function(){d(this.elementIdStore.fabAudiospot)[0].style.marginLeft=g.getLeftMargin();setTimeout(function(){g.enableTransition();d(g.elementIdStore.fabAudiospot)[0].style.marginLeft=a.constants.fabAudiospotElongateMarginLeft},a.timer.elongationTimer)},autoPlayFallbackCSS:function(c){d(this.elementIdStore.fabAudiospotText)[0].innerText=a.constants.defaultAutoPlayFallbackText;c&&(d(this.elementIdStore.fabAudiospotText)[0].innerText=
c);this.elongateShortenAnimation()},getLeftMargin:function(){var c=d(this.elementIdStore.fabAudiospotText)[0].offsetWidth;return(a.constants.fabAudiospotNegation*(c+a.constants.fabAudiospotTextMarginConstant)).toString()+"px"},adjustView:function(){e.isDefined(d(this.elementIdStore.fabAudiospot)[0].style.marginLeft)&&d(this.elementIdStore.fabAudiospot)[0].style.marginLeft!==a.constants.fabAudiospotElongateMarginLeft&&(d(this.elementIdStore.fabAudiospot)[0].style.marginLeft=this.getLeftMargin())}};
return g})})();(function(){n.when("A","jQuery","ShoppingAidsGenericUtils").register("ShoppingAidsAudioUtils",function(k,d,a){return{lastKnownState:w,lastKnownIdentifier:w,defaultOverlayTime:1E3,handleVisibility:function(a,g){d(document).bind("visibilitychange.fab_audio_spot",function(){document.hidden?(this.lastKnownState=a(),g("PAUSE_STATE")):(g(this.lastKnownState),this.lastKnownState=w)})},removeVisibilityChangeListener:function(){d(document).unbind("visibilitychange.fab_audio_spot")},isAudioSupported:function(){return r&&
r.Audio},handleOverlay:function(a,d,c){this.lastKnownState=a();d("PAUSE_STATE");this.lastKnownIdentifier=c},handleOverlayDismiss:function(d,g,c){var b=this;setTimeout(function(){a.isDefined(c)&&a.isDefined(b.lastKnownIdentifier)&&b.lastKnownIdentifier!==c()?b.lastKnownIdentifier=w:"PAUSE_STATE"===d()&&g(b.lastKnownState);b.lastKnownState=w},b.defaultOverlayTime)}}})})();(function(){n.when("A","jQuery","a-sheet","SAAudiospot","SAFabAudiospotRenderer","SAHotspot","ShoppingAidsGenericUtils","SAFabAudiospotConstants",
"a-popover","AnchorBasedSAUtils","QTipsConstants","QTips").execute(function(k,d,a,e,g,c,b,l,f,h,q,m){var n=!1;k.on("a:sheet:beforeShow",function(a){b.isDefined(e.view)&&b.isDefined(g.renderer)&&b.isDefined(c.view)&&(e.view.handleOverlay(),g.renderer.handlerOverlay(a,l.overlay.BOTTOM_SHEET),c.view.handleOverlay())});k.on("a:sheet:afterHide",function(a){b.isDefined(e.view)&&b.isDefined(g.renderer)&&b.isDefined(c.view)&&(e.view.handleOverlayDismiss(),g.renderer.handlerOverlayDismiss(a,l.overlay.BOTTOM_SHEET),
c.view.handleOverlayDismiss())});k.on("a:popover:beforeShow",function(a){b.isDefined(e.view)&&b.isDefined(g.renderer)&&b.isDefined(c.view)&&(e.view.handleOverlay(),g.renderer.handlerOverlay(a,l.overlay.POP_OVER),c.view.handleOverlay())});k.on("a:popover:afterHide",function(a){b.isDefined(e.view)&&b.isDefined(g.renderer)&&b.isDefined(c.view)&&(e.view.handleOverlayDismiss(),g.renderer.handlerOverlayDismiss(a,l.overlay.POP_OVER),c.view.handleOverlayDismiss())});0<d(".nav-input.nav-progressive-attribute").length&&
(d(".nav-input.nav-progressive-attribute").bind("focus",function(){this.intervalId=setInterval(function(){b.isDefined(e.view)&&b.isDefined(c.view)&&b.isDefined(m.view)&&(b.hasNoPopover(q.popOverAnchors.popoverClass,q.popOverAnchors.searchSugesstions,q.popOverAnchors.searchFilterPage)||n?b.hasNoPopover(q.popOverAnchors.popoverClass,q.popOverAnchors.searchSugesstions,q.popOverAnchors.searchFilterPage)&&(c.view.handleOverlayDismiss(),e.view.handleOverlayDismiss(),n=!1):(e.view.handleOverlay(),c.view.handleOverlay(),
m.view.dismissAndRender(),n=!0))},q.timer.searchSuggestionPollTime)}),d(".nav-input.nav-progressive-attribute").bind("focusout",function(){b.isDefined(this.intervalId)&&(clearInterval(this.intervalId),delete this.intervalId,b.isDefined(e.view)&&b.isDefined(c.view)&&(c.view.handleOverlayDismiss(),e.view.handleOverlayDismiss(),n=!1))}))})})();(function(){n.when("A","ContextAwareFieldsFactory","QTipsConstants","QTipsMetrics","SAMetricConstants","ContextAwareFieldsProcessor","ShoppingAidsGenericUtils").register("ContextAwareSubstitutor",
function(k,d,a,e,g,c,b){return{substitute:function(a,b,c){if(a.clientSideTargetting||a.desiredWeblabTreatment)a.contextAwareIndex=b;else return!0;return!0!==this.substituteGenericContextAwareFields(a,b)?!1:(c=d.getContextAwareFields(c))?this.substituteIndexedValueInSAData(a,c,b):!0},substituteGenericContextAwareFields:function(a,b){var c=d.getContextAwareFields("Generic");return this.substituteIndexedValueInSAData(a,c,b)},substituteIndexedValueInSAData:function(b,c,d){for(var f=0;f<c.length;f++){var h=
c[f];if(!k.objectIsEmpty(b[h])){var l=b[h].split(a.contextAwareSADelimiter);if(1<l.length)if(d<l.length)b[h]=l[d].trim(),this.processSubstituteField(b,h),e.incrementCounter(g.SA_CONTEXT_AWARE_SUBSTITUTION+b.identifier+"_"+h+"_"+d);else return e.incrementCounter(g.SA_CONTEXT_AWARE_SUBSTITUTION+b.identifier+"_"+h+g.FAIL),!1}}return!0},processSubstituteField:function(a,d){-1!==c.fields.indexOf(d)&&(-1!==c.fieldsParsersMap.stringToObject.indexOf(d)&&"string"===typeof a[d]?a[d]=b.parseJSONStringIfValid(a[d]):
-1!==c.fieldsParsersMap.stringToNumber.indexOf(d)&&"string"===typeof a[d]&&(a[d]=Number(a[d])))}}})})();(function(){n.when("A","ContextAwareFields").register("ContextAwareFieldsFactory",function(k,d){return{getContextAwareFields:function(a){return"Sparkles"===a?d.sparklesContextAwareFields:"ToolTips"===a?d.toolTipsContextAwareFields:"FabAudioSpot"===a?d.fabAudioSpotContextAwareFields:"Generic"===a?d.genericContextAwareFields:null}}})})();(function(){n.register("ContextAwareFields",function(){return{genericContextAwareFields:["nestedSAList",
"clientSideTargetting","desiredWeblabTreatment"],toolTipsContextAwareFields:["elementValue","elementAnchor","elementType"],sparklesContextAwareFields:"linkText descText targetEndPoint icon displayIcon displayText descriptionText".split(" "),fabAudioSpotContextAwareFields:["audioSrc","supplementarySA","positionY"]}})})();(function(){n.register("SASupportedMarketplaceConfig",function(){return{supportedMarketplace:{ATVPDKIKX0DER:"us",A2EUQ1WTGCTBG2:"ca",A1AM78C64UM0Y8:"mx",A2Q3Y263D00KWC:"br",A1F83G8C2ARO7P:"uk",
A1PA6795UKMFR9:"de",A13V1IB3VIYZZH:"fr",A1RKKUPIHCS9HS:"es",APJ6JRA9NG5V4:"it",A21TJRUUN4KGV:"in",A33AVAJ2PDY3EV:"tr",A2VIGQ35RCS4UG:"ae",A17E79C6D8DWNP:"sa",A1805IZSGTT6HS:"nl",ARBP9OOSHTCHU:"eg",A2NODRKZP88ZB9:"se",A1C3SOZRARQ6R3:"pl",AMEN7PMS3EDWL:"be",AE08WJ6YKNBMC:"za",A28R8C7NBKEWEA:"ie",A1VC38T7YXB528:"jp",A39IBJ37TRP1C6:"au",A19VAU5U5O7RUS:"sg"}}})})();(function(){n.when("A","ShoppingAidsGenericUtils","PageResolver").register("SAMutationObserver",function(k,d,a){var e={_pageChangeObserver:w,
attachPageChangeObserver:function(e,c){d.isMutationObserverSupported()&&d.isDefined(c)&&d.isDefined(e)&&"function"===typeof e&&(this._pageChangeObserver=new r.MutationObserver(function(){var b=a.pageAdapter();d.isDefined(b)&&b!==c&&(c=b,e(b))}),this._handleVisibilityChange())},isPageChangeObserverAttached:function(){return d.isDefined(this._pageChangeObserver)},enablePageChangeObserver:function(){this.isPageChangeObserverAttached()&&this._pageChangeObserver.observe(document,{subtree:!0,childList:!0})},
disconnectPageChangeObserver:function(){this.isPageChangeObserverAttached()&&this._pageChangeObserver.disconnect()},cleanUpPageChangeObserver:function(){this._pageChangeObserver=w;k.$(document).unbind("visibilitychange.mutation_observer")},_handleVisibilityChange:function(){k.$(document).bind("visibilitychange.mutation_observer",function(){document.hidden?e.disconnectPageChangeObserver():e.enablePageChangeObserver()})}};return e})})();(function(){n.register("ContextAwareFieldsProcessor",function(){return{fields:["supplementarySA",
"positionY"],fieldsParsersMap:{stringToObject:["supplementarySA"],stringToNumber:["positionY"]}}})})();(function(){n.when("A","SARateLimitingUtils","SARateLimitingConfig","SAMetricConstants","QTipsMetrics","ShoppingAidsGenericUtils","LocalStorageInterface").register("SARateLimitingInstrumentationHandler",function(k,d,a,e,g,c,b){return{localStorageKey:a.rateLimitingInstrumentationKey,fetchWindowIntervals:a.fetchWindowIntervals,rateLimitingInstrumentation:function(a,e){var g=c.defaultJSONIfUndefined(b.getFromLocalStorage(this.localStorageKey),
{});a=d.updateFetchWindowConfig(a,g);this._logMetricsForRateLimiting(a,e);b.setInLocalStorage(this.localStorageKey,JSON.stringify(a))},_logMetricsForRateLimiting:function(b,c){for(var d=0;d<this.fetchWindowIntervals.length;d++){var f=this.fetchWindowIntervals[d];f=e.SA_FETCH_RATE_LIMITING_PREFIX.concat(f,"_",b[f][a.countKey]);c?g.incrementCounter(f+e.STATUS_1):g.incrementCounter(f+e.STATUS_0)}}}})})();(function(){n.when("A","ShoppingAidsGenericUtils","SARateLimitingConfig").register("SARateLimitingUtils",
function(k,d,a){return{fetchWindowIntervals:a.fetchWindowIntervals,windowStartTimeKey:a.windowStartTimeKey,countKey:a.countKey,updateFetchWindowConfig:function(a,d){for(var c={},b=0;b<this.fetchWindowIntervals.length;b++){var e=this.fetchWindowIntervals[b];c[e]=this._updateFetchWindowConfigForInterval(a,d[e],e)}return c},_updateFetchWindowConfigForInterval:function(a,d,c){var b={};this.isFetchWindowActive(a,d,c)?(b[this.windowStartTimeKey]=d[this.windowStartTimeKey],b[this.countKey]=d[this.countKey]+
1):(b[this.windowStartTimeKey]=a,b[this.countKey]=1);return b},isFetchWindowActive:function(a,g,c){return d.isDefined(g)&&d.isDefined(g[this.windowStartTimeKey])?a-g[this.windowStartTimeKey]<6E4*c:!1}}})})();(function(){n.register("SARateLimitingConfig",function(){return{rateLimitingInstrumentationKey:"sa_fetch_window_config",fetchWindowIntervals:[5,10,15,30,60],countKey:"count",windowStartTimeKey:"windowStartTime"}})})();(function(){n.when("QTipsMetrics","ShoppingAidsGenericUtils","SAConfig").register("SAMetricUtils",
function(k,d,a){return{currentLop:d.getCookie(a.cookies.language)||a.defaultLoP,platform:d.platformCheck(),incrementCounterWithLOP:function(a,d,c){k.incrementCounter(a,d,c);k.incrementCounter(a+"_"+this.currentLop,d,c)},incrementCounterWithPlatform:function(a,d,c){k.incrementCounter(a,d,c);k.incrementCounter(a+"_"+this.platform,d,c)},incrementCounterWithLOPAndPlatform:function(a,d,c){k.incrementCounter(a,d,c);k.incrementCounter(a+"_"+this.currentLop,d,c);k.incrementCounter(a+"_"+this.platform,d,c)},
incrementCounterWithLOPPlatformAndCombination:function(a,d,c){k.incrementCounter(a,d,c);k.incrementCounter(a+"_"+this.currentLop,d,c);k.incrementCounter(a+"_"+this.platform,d,c);k.incrementCounter(a+"_"+this.platform+"_"+this.currentLop,d,c)},incrementLOPCounter:function(a,d,c){k.incrementCounter(a+"_"+this.currentLop,d,c)},incrementPlatformCounter:function(a,d,c){k.incrementCounter(a+"_"+this.platform,d,c)},incrementLOPPlatformCombinationCounter:function(a,d,c){k.incrementCounter(a+"_"+this.platform+
"_"+this.currentLop,d,c)}}})})();(function(){n.when("ShoppingAidsFilters","PageResolver","QTipsMetrics","SAMetricConstants","SAMetricUtils","QTipsConstants").register("UIGuardRailFiltering",function(k,d,a,e,g,c){return{isUIGuardRailMet:function(b){a.incrementCounter(e.SA_CACHE_PREFIX+e.UI_GUARD_RAIL_FILTER+e.START);var c=d.pageAdapter();if(b.uiBasedGuardRail&&!k.excecuteClientSideTargetting(b.uiBasedGuardRail.trim()))return g.incrementCounterWithLOPPlatformAndCombination(e.UI_GUARD_RAIL_FILTER+e.FAIL,
1,b.identifier),a.incrementCounter(e.UI_GUARD_RAIL_FILTER+e.FAIL+"_"+c,b.identifier),!1;g.incrementCounterWithLOPPlatformAndCombination(e.UI_GUARD_RAIL_FILTER+e.PASS,1,b.identifier);a.incrementCounter(e.UI_GUARD_RAIL_FILTER+e.PASS+"_"+c,b.identifier);return!0}}})})();(function(){n.when("A","ShoppingAidsGenericUtils").register("HighPrioritySAListProvider",function(k,d){return{getHighPrioritySAList:function(a){var e=this._provideHighPrioritySA(a);return d.isDefined(e)?e:a},_provideHighPrioritySA:function(a){var e;
k.each(a,function(a,c){a=k.filter(a,function(a){return!d.isDefined(e)&&-1!==a.identifier.indexOf("GuidedTour")});d.isNonEmptyArray(a)&&(e={},e[c]=[a[0]])});return e}}})})();(function(){n.when("A","jQuery","ShoppingAidsGenericUtils","MwebAttributionHandler","NativeFeatureAttributionHandler","QTipsMetrics","FeatureAttributionConstants","SACommonConstants","SAFeature").register("SAPAttributionHandler",function(k,d,a,e,g,c,b,l,f){function h(a){for(var d in a)if(a.hasOwnProperty(d)){var e=a[d][b.lastLogImpressionTime];
e=Math.abs(Date.now()-e);e=Math.round(e/36E5);a[d][b.timeElapsed]=e;e>b.ATTRIBUTION_TIME_LIMIT_HR&&(delete a[d],c.incrementCounter(b.SAP_ATTRIBUTION_METRIC_PREFIX+d+"_Deleted"))}return a}function n(a){a[b.html]={};a[b.native]={};a[b.native][l.MSHOP_ANDROID]={};a[b.native][l.MSHOP_IPHONE]={};return a}var m={},r;return{featureAttributionBootUp:function(d,k){r=d;d=a.getFromLocalStorage(b.SAP_ATTRIBUTION_LOCALSTORAGE_KEY);a.isDefined(d)?m=a.parseJSONStringIfValid(d):(m=n(m),c.incrementCounter(b.SAP_ATTRIBUTION_METRIC_PREFIX+
"Local_Storage_Initialised"));a.isDefined(m[b.html])||(m[b.html]={},c.incrementCounter(b.SAP_ATTRIBUTION_METRIC_PREFIX+"Html_Anchors_Local_Storage_Initialised"));a.isDefined(m[b.native])||(m[b.native]={},m[b.native][l.MSHOP_ANDROID]={},m[b.native][l.MSHOP_IPHONE]={},c.incrementCounter(b.SAP_ATTRIBUTION_METRIC_PREFIX+"Native_Anchors_Local_Storage_Initialised"));if(a.isDefined(m[r])){if(a.isDefined(m[r][b.html])){for(var p in m[r][b.html])m[b.html][p]=m[r][b.html][p];delete m[r][b.html]}a.isDefined(m[r][b.native])&&
delete m[r][b.native];delete m[r]}m[b.html]=h(m[b.html]);m[b.native][l.MSHOP_ANDROID]=h(m[b.native][l.MSHOP_ANDROID]);m[b.native][l.MSHOP_IPHONE]=h(m[b.native][l.MSHOP_IPHONE]);k!==l.MSHOP_ANDROID&&k!==l.MSHOP_IPHONE||!f.androidFeatureAttribution||(p=m[b.native],a.isDefined(p)?g.initiate(p,k):n(m));k=m[b.html];a.isDefined(k)?e.initiate(k):n(m);a.setInLocalStorage(b.SAP_ATTRIBUTION_LOCALSTORAGE_KEY,JSON.stringify(m));c.incrementCounter(b.SAP_ATTRIBUTION_METRIC_PREFIX+"initialised")},enableFeatureAttribution:function(c){if(a.isDefined(c)&&
a.isDefined(c[b.featureAttributionAnchor])&&a.isDefined(c[b.maxDisplayCount])&&a.isDefined(c[b.maxDisplayCount])){var d={},f=c[b.identifier],g=c[b.elementDisplayType].toLowerCase();d[f]={};d[f][b.identifier]=f;d[f][b.lastLogImpressionTime]=Date.now();d[f][b.maxDisplayCount]=c[b.maxDisplayCount];d[f][b.timeElapsed]=0;d[f][b.eventListenerAnchor]=c[b.featureAttributionAnchor];g===b.html?(d[f][b.videoSource]=c[b.videoSource],d[f][b.toolTipUXChangeAllocatedTreatment]=c[b.toolTipUXChangeAllocatedTreatment],
e.unbindListener(m[b.html][f]),a.isDefined(d)?e.initiate(d):n(m),m[b.html][f]=d[f]):g===b.native&&(m[b.native][a.platformCheck()][f]=d[f]);a.setInLocalStorage(b.SAP_ATTRIBUTION_LOCALSTORAGE_KEY,JSON.stringify(m))}}}})})();(function(){n.when("A","jQuery","ShoppingAidsGenericUtils","SAAttributionMetricLogger","QTipsMetrics","FeatureAttributionConstants").register("MwebAttributionHandler",function(k,d,a,e,g,c){return{initiate:function(a){for(var b in a)if(a.hasOwnProperty(b)){var f=a[b].eventListenerAnchor,
g=a[b].maxDisplayCount,k=a[b].timeElapsed,m=a[b].videoSource,n=a[b].toolTipUXChangeAllocatedTreatment;0!==d(f).length&&d(f).bind(c.SA_ATTRIBUTION_CLICK_LISTENER,{identifier:b,impressionCount:g,timeElapsed:k,videoSource:m,toolTipUXChangeAllocatedTreatment:n},e.logAttributionMetrics)}},unbindListener:function(b){a.isDefined(b)&&(d(b.eventListenerAnchor).unbind(c.SA_ATTRIBUTION_CLICK_LISTENER),g.incrementCounter(c.SAP_MWEB_HANDLER_METRIC_PREFIX+"Listener_Unbounded"),g.incrementCounter(c.SAP_MWEB_HANDLER_METRIC_PREFIX+
"Listener_Unbounded_"+b.identifier+"_"+b.eventListenerAnchor))}}})})();(function(){n.when("A","QTipsMetrics","FeatureAttributionConstants","SACommonConstants","ShoppingAidsGenericUtils").register("NativeFeatureAttributionHandler",function(k,d,a,e,g){return{initiate:function(a,b){}}})})();(function(){n.when("A","QTipsMetrics","FeatureAttributionConstants","ShoppingAidsGenericUtils","QTipsConstants").register("SAAttributionMetricLogger",function(k,d,a,e,g){return{logAttributionMetrics:function(c){var b=
c.data.identifier,k=c.data.timeElapsed,f=a.SA_ATTRIBUTION_PREFIX+b+"_"+c.data.impressionCount+"_"+a.SA_HOUR_CONSTANT;b=a.SA_ATTRIBUTION_PREFIX+b+"_"+a.SA_HOUR_CONSTANT;k<=a.TWO_HOUR_BUCKET?(d.incrementCounter(f+a.TWO_HOUR_BUCKET),d.incrementCounter(f+a.FOUR_HOUR_BUCKET),d.incrementCounter(f+a.EIGHT_HOUR_BUCKET),d.incrementCounter(f+a.TWELVE_HOUR_BUCKET),d.incrementCounter(b+a.TWO_HOUR_BUCKET),d.incrementCounter(b+a.FOUR_HOUR_BUCKET),d.incrementCounter(b+a.EIGHT_HOUR_BUCKET)):k>a.TWO_HOUR_BUCKET&&
k<=a.FOUR_HOUR_BUCKET?(d.incrementCounter(f+a.FOUR_HOUR_BUCKET),d.incrementCounter(f+a.EIGHT_HOUR_BUCKET),d.incrementCounter(f+a.TWELVE_HOUR_BUCKET),d.incrementCounter(b+a.FOUR_HOUR_BUCKET),d.incrementCounter(b+a.EIGHT_HOUR_BUCKET)):k>a.FOUR_HOUR_BUCKET&&k<=a.EIGHT_HOUR_BUCKET?(d.incrementCounter(f+a.EIGHT_HOUR_BUCKET),d.incrementCounter(f+a.TWELVE_HOUR_BUCKET),d.incrementCounter(b+a.EIGHT_HOUR_BUCKET)):d.incrementCounter(f+a.TWELVE_HOUR_BUCKET);d.incrementCounter(b+a.TWELVE_HOUR_BUCKET);d.incrementCounter(a.SA_ATTRIBUTION_PREFIX+
c.data.impressionCount+"_"+c.data.identifier);d.incrementCounter(a.SA_ATTRIBUTION_PREFIX+c.data.identifier);c.data.videoSource===g.EmptyString&&c.data.toolTipUXChangeAllocatedTreatment!==g.EmptyString&&e.isPlatformSupportedForToolTipUxExperiment()&&d.incrementCounter(a.SA_ATTRIBUTION_PREFIX+"_"+a.TOOL_TIP_UX+"_"+c.data.toolTipUXChangeAllocatedTreatment)}}})})();(function(){n.register("FeatureAttributionConstants",function(){return{SA_ATTRIBUTION_CLICK_LISTENER:"click.SAAttribution",SAP_MWEB_HANDLER_METRIC_PREFIX:"SAAttribution_Mweb_Handler_",
SAP_ATTRIBUTION_LOCALSTORAGE_KEY:"SA_Attribution_Cache",SAP_ATTRIBUTION_METRIC_PREFIX:"SAAttribution_",SA_ATTRIBUTION_PREFIX:"SA_ATTRIBUTION_",TOOL_TIP_UX:"ToolTip_UX",SA_HOUR_CONSTANT:"Hour",TWO_HOUR_BUCKET:2,FOUR_HOUR_BUCKET:4,EIGHT_HOUR_BUCKET:8,TWELVE_HOUR_BUCKET:12,ATTRIBUTION_TIME_LIMIT_HR:12,native:"native",html:"html",identifier:"identifier",elementAnchor:"elementAnchor",eventListenerAnchor:"eventListenerAnchor",videoSource:"videoSource",toolTipUXChangeAllocatedTreatment:"toolTipUXChangeAllocatedTreatment",
lastLogImpressionTime:"lastLogImpressionTime",maxDisplayCount:"maxDisplayCount",elementDisplayType:"elementDisplayType",featureAttribution:"featureAttribution",featureAttributionAnchor:"featureAttributionAnchor",timeElapsed:"timeElapsed",SUCCESS_MESSAGE:"SA_FeatureAttributionSuccess",INVALID_DATA:"SA_InvalidFeatureAttributionData",NULL_VIEW:"NullView",FeatureAttribution:"FeatureAttribution"}})})();(function(){n.when("ShoppingAidsGenericUtils","LocaleConfig","QTipsMetrics").register("LoPResolver",
function(k,d,a){return{SA_LOP_PREFIX:"sa_lop_",LANG_META_TAG_LOP_METRIC:"lang_meta_tag_used",COOKIE_LOP_METRIC:"cookie_used",UNKNOWN_LOP_METRIC:"unknown_used",getCurrentLoP:function(){var d=this._formatLoP(this._retrieveLoPFromLangMetaTag());if(k.isDefined(d))return a.incrementCounter(this.SA_LOP_PREFIX+this.LANG_META_TAG_LOP_METRIC),d;d=this._formatLocaleToLoP(this._retrieveLocaleFromCookie());if(k.isDefined(d))return a.incrementCounter(this.SA_LOP_PREFIX+this.COOKIE_LOP_METRIC),d;a.incrementCounter(this.SA_LOP_PREFIX+
this.UNKNOWN_LOP_METRIC);return"unknown"},_retrieveLoPFromLangMetaTag:function(){try{var a=document.querySelector("html").getAttribute("lang");return k.isDefined(a)?a:null}catch(g){return null}},_retrieveLocaleFromCookie:function(){var a=k.getMarketplaceName();return k.getCookie(d.MarketplaceLocaleMap[a])},_formatLoP:function(a){if(!k.isDefined(a)||-1===a.indexOf("-"))return null;a=a.split("-");return a[0]+"-"+a[1].toUpperCase()},_formatLocaleToLoP:function(a){return k.isDefined(a)&&-1!==a.indexOf("_")?
a.replace("_","-"):null}}})})();(function(){n.register("LocaleConfig",function(){return{MarketplaceLocaleMap:{us:"lc-main",ca:"lc-acbca",mx:"lc-acbmx",br:"lc-acbbr",uk:"lc-acbuk",de:"lc-acbde",fr:"lc-acbfr",es:"lc-acbes",it:"lc-acbit","in":"lc-acbin",tr:"lc-acbtr",ae:"lc-acbae",sa:"lc-acbsa",nl:"lc-acbnl",eg:"lc-acbeg",se:"lc-acbse",pl:"lc-acbpl",be:"lc-acbbe",jp:"lc-acbjp",au:"lc-acbau",sg:"lc-acbsg"}}})})();(function(){n.register("SADesktopConfig",function(){return{pageEligibility:{Detail:{wdg:["ebooks_display_on_website",
"audible_display_on_website"]}}}})})()});
/* ******** */
(function(e){var l=window.AmazonUIPageJS||window.P,k=l._namespace||l.attributeErrors,g=k?k("SABottomSheetLibrary",""):l;g.guardFatal?g.guardFatal(e)(g,window):g.execute(function(){e(g,window)})})(function(e,l,k){(function(){e.when("A").register("SA_BottomSheet",function(){return{}})})();(function(){e.register("SA_BottomSheetStyles",function(){return"\n    #saBottomSheet-bottom-sheet{\n      -webkit-transition:height 2s;\n      transition:height 2s;\n      overflow-y:auto;height:100%\n    }\n  "})})();
(function(){e.when("A","jQuery").register("SA_MemoryManager",function(){var g=function(){try{if(l.localStorage)return 1}catch(a){return l.ue.count("SA_MemoryManager_LocalStorageNotExposed",1),0}},e={bottomSheet:"SA_BottomSheetObj"},k=function(){return(new Date).setHours(0,0,0,0).toString()};return{shouldFetchShoppingAids:function(a,f,c,d){if(!g())return!1;a=localStorage.getItem(e[a]);if(null===a)return!0;a=JSON.parse(a);var b=a.lastShownDate;if(k()!==b)return!0;b=a.dayCount;return a.pageCounts[f]<
d&&b<c?!0:!1},writeShoppingAidsData:function(a,f,c){if(g()){var d=localStorage.getItem(e[a]),b={},h=Math.round((new Date).getTime()/36E5);null===d?(b.lastShownDate=k(),b.dayCount=1,d={},d[c]=1,b.pageCounts=d,c={},c.lastTimeStamp=h,c.count=1,h={},h[f]=c,b.elements=h):(b=JSON.parse(d),b.lastShownDate=k(),b.dayCount+=1,d=b.pageCounts,d[c]+=1,b.pageCounts=d,c=b.elements,c[f]?(c[f].count+=1,c[f].lastTimeStamp=h):(d={},d.lastTimeStamp=h,d.count=1,c[f]=d),b.elements=c);localStorage.setItem(e[a],JSON.stringify(b))}},
shouldShowShoppingAids:function(a,f,c,d){if(!g())return!1;a=localStorage.getItem(e[a]);if(null===a)return!0;a=JSON.parse(a).elements;if(!a[f])return!0;var b=a[f].lastTimeStamp,h=Math.round((new Date).getTime()/36E5);return b+c<=h&&a[f].count<d?!0:!1}}})})();(function(){e.register("vernacBSStyles",function(){return'.a-container{padding-bottom : 12px !important;}.a-spacing-base{margin-bottom : -2.5rem !important;}#saBottomSheet-bottom-sheet form{margin-bottom : 0 !important;}.a-box-inner{padding-bottom : 10px !important;padding-top : 10px !important;}.a-form-actions{padding-top : 8px}#icp-sl-t-text{margin-left : 10px !important;margin-right : 10px !important;margin-bottom : 7px !important; font-size : 1.2rem;}div[data-a-input-name\x3d"LOP"]{font-size : 1.3rem !important;}#icp-btn-close{margin-bottom : 0.5rem; margin-top : 0!important}#icp-btn-save{margin-bottom : 0.5rem; margin-top : 0!important}'})})()});
/* ******** */
(function(a){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,b=d?d("SAPartnerAssets",""):c;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,c,d){(function(){a.when("A").register("SAPartnerUtils",function(){var b=c.ue;return{logCSMTag:function(a){b&&b.tag&&b.tag(a);c&&uex&&"function"===typeof uex&&uex("ld",a,{wb:1})},triggerCustomEvent:function(b,a,c,e,f){a=new CustomEvent(a,{bubbles:c||!0,cancelable:e||!1,detail:f||d});b.dispatchEvent(a)}}})})()});
/* ******** */
(function(l){var u=window.AmazonUIPageJS||window.P,e=u._namespace||u.attributeErrors,m=e?e("QTipsMobileWebAssets",""):u;m.guardFatal?m.guardFatal(l)(m,window):m.execute(function(){l(m,window)})})(function(l,u,e){(function(){l.when("A","StatefulSAEligiblityHelper","MultiPageSAOrchestrator","SA_BottomSheet","SA_MemoryManager","QTips","QTipsMetrics","QTipsConstants","ShoppingAidsSparkles","ShoppingAidsFilters","SAFeature","SAEndPointsConfig","ShoppingAidsFetcher","LogImpressionManager","ShoppingAidsGenericUtils",
"SAHotspot","SAAudiospot","SAHighlighter","PageResolver","LocalStorageInterface","LoPResolver","SAPAttributionHandler","AnchorBasedSAUtils").register("QTipsHandler",function(e,g,a,h,b,c,t,C,p,f,q,z,D,x,n,d,y,A,B,E,v,w,r){return{page:"",storageKey:"identifier",schedulingKey:"schedulingType",shoppingAidsType:"shoppingAidsType",contextAwareIndex:"contextAwareIndex",sourceName:"ShoppingAidsMWeb_",platform:n.platformCheck(),SupportedMarketplace:n.isSupportedMarketplace(),init:function(){var b=this;if("Unsupported"===
b.platform||!b.SupportedMarketplace)return t.incrementCounter(this.sourceName+"assetsNotSupported"),0;if("Desktop"===b.platform){if(!n.isDesktopPageRequestSupported())return t.incrementCounter("Desktop_IneligibleRequest_AssetsNotSupported"),0;t.incrementCounter("Desktop_EligibleRequest_AssetsLoaded")}else t.incrementCounter(this.sourceName+"assetsLoaded");if(!E.isLocalStorageExposed())return 0;c.utils.cleanUpCachingInstrumentation();c.utils.savePreviousLoP();c.utils.saveCurrentLoP();if(this.page=
B.pageAdapter()){w.featureAttributionBootUp(this.page,this.platform);var d=function(k){if(k){var d=!1;if(q.clientSideCaching&&a.isBrowserSupported()){var c=g.getEligibleInProgressSA(b.page);n.isObjectEmpty(c)?k.ShoppingAidsList&&n.isNonEmptyArray(k.ShoppingAidsList.MultiPageShoppingAids)&&(d=!0,a.display(k.ShoppingAidsList.MultiPageShoppingAids[0],b.page)):(d=!0,a.display(c,b.page))}else g.cleanUpInProgressStore();q.clientSideCaching||(k=f.start(k));k.ShoppingAidsList&&!d&&(d=k.ShoppingAidsList.ToolTips,
n.isNonEmptyArray(d)&&b._display(d),d=k.ShoppingAidsList.BottomSheets,n.isNonEmptyArray(d)&&(d.sort(function(a,b){return a.sequenceNum-b.sequenceNum}),h.collection.create(d),h.view.start(b.page,n.isMShop())),d=k.ShoppingAidsList.Sparkles,n.isNonEmptyArray(d)&&p.init({sparkles:d,page:b.page,platform:b.platform}),d=k.ShoppingAidsList.Audiospots,n.isNonEmptyArray(d)&&b._displayAudiospots(d),d=k.ShoppingAidsList.Hotspots,n.isNonEmptyArray(d)&&b._displayHotspots(d),k=k.ShoppingAidsList.Highlighters,n.isNonEmptyArray(k)&&
b._displayHighlighters(k))}b.fireReady()};q.clientSideCaching?D.fetchShoppingAids(b.page,d):(D.cleanUpSACache(),b.fetch(b.page,d))}else t.incrementCounter(this.sourceName+"pageTypeMismatch")},_getParameterByName:function(a,b){b||(b=u.location.href);a=a.replace(/[\[\]]/g,"\\$\x26");return(a=(new RegExp("[?\x26]"+a+"(\x3d([^\x26#]*)|\x26|#|$)")).exec(b))?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null},fetch:function(a,b,f){var k=this.sourceName+"fetchShoppingAids_",d=document.referrer,g=/.*\.amazon\..*/g,
h="DIRECT";g&&g.test(d)&&(h="INDIRECT");e.ajax(z.fetchShoppingAidsEndPoint,{method:"GET",contentType:"application/json; charset\x3dutf-8",timeout:6E4,params:{page:a,url:B.getWindowLocationHref(),trafficType:h,previousLop:c.utils.getPreviousLoP(),currentLop:v.getCurrentLoP(),pageHitRequestID:n.getPageHitRequestID()},success:function(f){t.incrementCounter(k+a+"_success");b&&"function"===typeof b&&b(f)},error:function(b,d){"Request Timeout"===d?t.incrementCounter(k+a+"_request_timeout"):"NotFound"===
d&&t.incrementCounter(k+a+"_unknown_endpoint");t.incrementCounter(k+a+"_failed");f&&"function"===typeof f&&f(b)}})},displayOnDemandToolTip:function(a){c.collection.add(a);c.view.setDismissalCallback(this.logImpression.bind(this));c.view.setTerminationCallback(this.terminateQTip.bind(this));c.view.setPageType(this.page);c.utils.isDefined(c.view.setCountLogger)&&c.view.setCountLogger(this.logCounter.bind(this));c.view.dismissAndRender()},_display:function(a){c.collection.create(a);c.view.setDismissalCallback(this.logImpression.bind(this));
c.view.setTerminationCallback(this.terminateQTip.bind(this));c.view.setPageType(this.page);c.utils.isDefined(c.view.setCountLogger)&&c.view.setCountLogger(this.logCounter.bind(this));c.view.postQTipRender()},_displayAudiospots:function(a){u&&u.Audio&&(y.collection.create(a),y.view.setAudiospotRenderCompleteCallback(this.logImpression.bind(this)),y.view.postAudiospotRender())},_displayHotspots:function(a){d.collection.create(a);d.view.setRenderCompleteCallback(this.logImpression.bind(this));d.view.postHotspotRender()},
_displayHighlighters:function(a){A.collection.create(a);A.view.setRenderCompleteCallback(this.logImpression.bind(this));A.view.postHighlighterRender()},logCounter:function(a,b,f){t.incrementCounter(a+"_"+b,f)},_isEligibleForToolTipUxExperiment:function(a,b,f,d){return n.isDefined(a)&&"tool_tip"===a&&n.isDefined(b)&&"html"===b.toLowerCase()&&n.isDefined(f)&&""===f&&n.isDefined(d)&&""!==d&&n.isPlatformSupportedForToolTipUxExperiment()},logImpression:function(a){var b=this,f=a[this.storageKey],d=a.elementDisplayType,
c=a.videoSource,k=this.sourceName+f+"_"+this.page,g=this.sourceName+"logSA_",h=a[this.schedulingKey],v=a[this.contextAwareIndex],m=a.userEvent,w=a[this.shoppingAidsType]||"tool_tip",p=a.toolTipUXChangeAllocatedTreatment,l=r.getAidAnchorElement(a,w);null!==a.onDemand&&a.onDemand&&(a=a.successResponse,w="tool_tip:childSA",a&&"function"===typeof a&&a());if(q.clientSideCaching)v=b._isEligibleForToolTipUxExperiment(w,d,c,p)?x.buildOptionalParameter().withContextAwareIndex(v).withUserEvent(m).withShoppingAidsAnchorGroup(l).withToolTipUxAllocatedTreatmentValue(p).build():
x.buildOptionalParameter().withContextAwareIndex(v).withUserEvent(m).withShoppingAidsAnchorGroup(l).build(),x.handle(f,h,w,this.page,v);else{l=z.logImpressionEndPoint;f={pageType:this.page,shoppingAidsType:w,id:f,schedulingType:h};n.isDefined(v)&&(f.contextAwareIndex=v);if(n.isDefined(m))switch(f.userEvent=m,m){case C.userEvent.optOut:k+="_optOut";break;case C.userEvent.complete:k+="_complete"}e.ajax(l,{method:"GET",contentType:"application/json; charset\x3dutf-8",timeout:6E4,params:f,success:function(a){t.incrementCounter(k+
"_logged");b._isEligibleForToolTipUxExperiment(w,d,c,p)&&(a=C.ToolTipUXMetricForLogImpression+p,u.ue.trigger&&u.ue.trigger(C.ToolTipUXExperimentWeblab,p),t.incrementCounter(a))},error:function(a,b){"NotFound"===b&&t.incrementCounter(g+"unknown_endpoint");t.incrementCounter(k+"_failedToLog")}})}},terminateQTip:function(a){t.incrementCounter("terminate_"+a[this.storageKey])},fireReady:function(){l.register("shopping-aids-ready",function(){})}}});l.when("QTipsHandler","ready").execute(function(e){e.init()})})();
(function(){l.when("A","QTipsMetrics").register("OnDemandTooltipBuilder",function(m,g){return function(){return{setIdentifier:function(a){this.identifier=a;return this},setElementStartOffset:function(a){this.elementStartOffset=a;return this},setElementDisplayType:function(a){this.elementDisplayType=a;return this},setElementArrowPosition:function(a){this.elementArrowPosition=a;return this},setElementValue:function(a){this.elementValue=a;return this},setElementAnchor:function(a){this.elementAnchor=
a;return this},setSuccessResponse:function(a){this.success=a;return this},setFailureResponse:function(a){this.failure=a;return this},setDismissalType:function(a){this.dismissalType=a;return this},setElementCTA:function(a){this.elementCTA=a;return this},setElementDuration:function(a){this.elementDuration=a;return this},setElementBounceDuration:function(a){this.elementBounceDuration=a;return this},setVideoSource:function(a){this.videoSource=a;return this},setVideoWidth:function(a){this.videoWidth=a;
return this},setNestedSA:function(a){this.nestedSA=a;return this},setScrollToAnchor:function(a){this.scrollToAnchor=a;return this},setAnchorScrollOffset:function(a){this.anchorScrollOffset=a;return this},setOffsetX:function(a){this.offsetX=a;return this},setOffsetY:function(a){this.offsetY=a;return this},setElementIndex:function(a){this.elementIndex=a;return this},setElementBackgroundColor:function(a){this.elementBackgroundColor=a;return this},setElementTextColor:function(a){this.elementTextColor=
a;return this},setHighlighter:function(a){this.highlighter=a;return this},setElementBorderColor:function(a){this.elementBorderColor=a;return this},buildTooltip:function(a,h){var b={elementHeight:80,elementWidth:390,userState:"ANY",elementType:"TEXT",onDemand:!0,sequenceNum:1,elementStartOffset:0,elementDuration:12E3,elementBounceDuration:9E3,maxDisplayCount:1,elementBackgroundColor:"#FFA724",elementTextColor:"#000000",elementIndex:"",elementBorderColor:"#FFA724"};b.identifier=this.identifier;b.elementDisplayType=
this.elementDisplayType;b.elementArrowPosition=this.elementArrowPosition;b.elementValue=this.elementValue;b.elementAnchor=this.elementAnchor;b.successResponse=this.success;b.failureResponse=this.failure;this.elementStartOffset&&(b.elementStartOffset=this.elementStartOffset);this.dismissalType&&(b.dismissalType=this.dismissalType);this.elementDuration&&(b.elementDuration=this.elementDuration);this.elementBounceDuration&&(b.elementBounceDuration=this.elementBounceDuration);this.videoSource&&(b.videoSource=
this.videoSource);this.videoWidth&&(b.videoWidth=this.videoWidth);this.nestedSA&&(b.nestedSAList=this.nestedSA);this.elementCTA&&(b.elementCTA=this.elementCTA);this.scrollToAnchor&&(b.scrollToAnchor=this.scrollToAnchor);this.anchorScrollOffset&&(b.anchorScrollOffset=this.anchorScrollOffset);this.elementIndex&&(b.elementIndex=this.elementIndex);this.offsetX&&(b.offsetX=this.offsetX,b.xOffset=this.offsetX);this.offsetY&&(b.offsetY=this.offsetY,b.yOffset=this.offsetY);this.elementBackgroundColor&&(b.elementBackgroundColor=
this.elementBackgroundColor);this.elementTextColor&&(b.elementTextColor=this.elementTextColor);this.highlighter&&(b.highlighter=this.highlighter);this.elementBorderColor&&(b.elementBorderColor=this.elementBorderColor);try{if(b.identifier===e)throw"Mandatory parameter missing: identifier";if(b.elementDisplayType===e)throw"Mandatory parameter missing: elementDisplayType";if(b.elementArrowPosition===e)throw"Mandatory parameter missing: elementArrowPosition";if(b.elementValue===e)throw"Mandatory parameter missing: elementValue";
if(b.elementAnchor===e)throw"Mandatory parameter missing: elementAnchor";if(b.successResponse===e)throw"Mandatory parameter missing: successResponse";if(b.failureResponse===e)throw"Mandatory parameter missing: failureResponse";a&&"function"===typeof a&&(g.incrementCounter("TooltipBuilder:success"),a(b))}catch(c){h&&"function"===typeof h&&(g.incrementCounter("TooltipBuilder:failure"),h(c))}}}}})})();(function(){l.when("A","QTipsMetrics").register("OnDemandBottomSheetBuilder",function(m,g){return function(){return{setIdentifier:function(a){this.identifier=
a;return this},setInvokingEventType:function(a){this.invokingEventType=a;return this},setInvokingEventElement:function(a){this.invokingEventElement=a;return this},setContentUrl:function(a){this.contentUrl=a;return this},setStaticContent:function(a){this.staticContent=a;return this},setCloseType:function(a){this.closeType=a;return this},setCloseMessage:function(a){this.closeMessage=a;return this},setSchedulingType:function(a){this.schedulingType=a;return this},setBottomSheetHeight:function(a){this.bottomSheetHeight=
a;return this},setClientSideTargeting:function(a){this.clientSideTargeting=a;return this},setNestedSA:function(a){this.nestedSA=a;return this},setSuccessResponse:function(a){this.success=a;return this},setFailureResponse:function(a){this.failure=a;return this},buildBottomSheet:function(a,h){var b={onDemand:!0,sequenceNum:1,maxDisplayCount:1,impressionInterval:24,elementDisplayType:"HTML"};b.identifier=this.identifier;b.successResponse=this.success;b.failureResponse=this.failure;this.invokingEventType&&
(b.invokingEventType=this.invokingEventType);this.invokingEventElement&&(b.invokingEventElement=this.invokingEventElement);this.contentUrl&&(b.contentUrl=this.contentUrl);this.contentUrl===e&&this.staticContent&&(b.staticContent=this.staticContent);this.closeType&&(b.closeType=this.closeType);this.closeMessage&&(b.closeMessage=this.closeMessage);this.schedulingType&&(b.schedulingType=this.schedulingType);this.bottomSheetHeight&&(b.bottomSheetHeight=this.bottomSheetHeight);this.clientSideTargeting&&
(b.clientSideTargetting=this.clientSideTargeting);this.nestedSA&&(b.nestedSAList=this.nestedSA);try{if(b.identifier===e)throw"Mandatory parameter missing: identifier";if(b.contentUrl===e&&b.staticContent===e)throw"Mandatory parameter missing: content(static/URL)";if(b.successResponse===e)throw"Mandatory parameter missing: successResponse";if(b.failureResponse===e)throw"Mandatory parameter missing: failureResponse";a&&"function"===typeof a&&(g.incrementCounter("BottomSheetBuilder:success"),a(b))}catch(c){h&&
"function"===typeof h&&(g.incrementCounter("BottomSheetBuilder:failure"),h(c))}}}}})})();(function(){l.when("A","QTipsMetrics").register("OnDemandDynamicSparkleBuilder",function(m,g){return function(){return{setIdentifier:function(a){this.identifier=a;return this},setInvokingEventType:function(a){this.invokingEventType=a;return this},setInvokingEventElement:function(a){this.invokingEventElement=a;return this},setStateData:function(a){this.stateData=a;return this},setSuccessResponse:function(a){this.success=
a;return this},setFailureResponse:function(a){this.failure=a;return this},buildSparkle:function(a,h){var b={onDemand:!0,sparkleType:"dynamic",sequenceNum:1,maxDisplayCount:1,impressionInterval:24,clickInterval:24};b.identifier=this.identifier;b.stateData=this.stateData;b.successResponse=this.success;b.failureResponse=this.failure;this.invokingEventType&&(b.invokingEventType=this.invokingEventType);this.invokingEventElement&&(b.invokingEventElement=this.invokingEventElement);try{if(b.identifier===
e)throw"Mandatory parameter missing: identifier";if(b.stateData===e)throw"Mandatory parameter missing: stateData";try{JSON.parse(b.stateData)}catch(c){throw"Mandatory parameter missing: illegalStateData";}if(b.successResponse===e)throw"Mandatory parameter missing: successResponse";if(b.failureResponse===e)throw"Mandatory parameter missing: failureResponse";a&&"function"===typeof a&&(g.incrementCounter("DynamicSparkleBuilder:success"),a(b))}catch(c){h&&"function"===typeof h&&(g.incrementCounter("DynamicSparkleBuilder:failure"),
h(c))}}}}})})();(function(){l.when("A","QTipsMetrics").register("OnDemandStaticSparkleBuilder",function(m,g){return function(){return{setIdentifier:function(a){this.identifier=a;return this},setInvokingEventType:function(a){this.invokingEventType=a;return this},setInvokingEventElement:function(a){this.invokingEventElement=a;return this},setDisplayText:function(a){this.displayText=a;return this},setDisplayIcon:function(a){this.displayIcon=a;return this},setTargetEndpoint:function(a){this.targetEndpoint=
a;return this},setDescriptionText:function(a){this.descriptionText=a;return this},setTypeOfStaticSparkle:function(a){this.typeOfStaticSparkle=a;return this},setNestedSA:function(a){this.nestedSA=a;return this},setSuccessResponse:function(a){this.success=a;return this},setFailureResponse:function(a){this.failure=a;return this},buildSparkle:function(a,h){var b={onDemand:!0,sparkleType:"static",sequenceNum:1,maxDisplayCount:1,impressionInterval:24,clickInterval:24};b.identifier=this.identifier;b.successResponse=
this.success;b.failureResponse=this.failure;this.invokingEventType&&(b.invokingEventType=this.invokingEventType);this.invokingEventElement&&(b.invokingEventElement=this.invokingEventElement);this.displayText&&(b.displayText=this.displayText);this.displayIcon&&(b.displayIcon=this.displayIcon);this.targetEndpoint&&(b.targetEndpoint=this.targetEndpoint);this.descriptionText&&(b.descriptionText=this.descriptionText);this.schedulingType&&(b.schedulingType=this.schedulingType);this.typeOfStaticSparkle&&
(b.typeOfStaticSparkle=this.typeOfStaticSparkle);this.nestedSA&&(b.nestedSAList=this.nestedSA);try{if(b.identifier===e)throw"Mandatory parameter missing: identifier";if(b.successResponse===e)throw"Mandatory parameter missing: successResponse";if(b.failureResponse===e)throw"Mandatory parameter missing: failureResponse";a&&"function"===typeof a&&(g.incrementCounter("StaticSparkleBuilder:success"),a(b))}catch(c){h&&"function"===typeof h&&(g.incrementCounter("StaticSparkleBuilder:failure"),h(c))}}}}})})();
(function(){l.when("A","QTipsMetrics").register("OnDemandHighlighterBuilder",function(m,g){return function(){return{setIdentifier:function(a){this.identifier=a;return this},setHighlighterAnchor:function(a){this.highlighterAnchor=a;return this},setSuccessResponse:function(a){this.success=a;return this},setFailureResponse:function(a){this.failure=a;return this},setStartPositionX:function(a){this.startPositionX=a;return this},setPositionX:function(a){this.positionX=a;return this},setPositionY:function(a){this.positionY=
a;return this},setElementDisplayType:function(a){this.elementDisplayType=a;return this},buildHighlighter:function(a,h){var b={onDemand:!0,sequenceNum:1,elementStartOffset:0,maxDisplayCount:1,startPositionX:"left",positionX:0,positionY:0,elementDisplayType:"HTML"};b.identifier=this.identifier;b.highlighterAnchor=this.highlighterAnchor;b.successResponse=this.success;b.failureResponse=this.failure;this.startPositionX&&(b.startPositionX=this.startPositionX);this.positionX&&(b.positionX=this.positionX);
this.positionY&&(b.positionY=this.positionY);this.elementDisplayType&&(b.elementDisplayType=this.elementDisplayType);try{if(b.identifier===e)throw"Mandatory parameter missing: identifier";if(b.highlighterAnchor===e)throw"Mandatory parameter missing: highlighterAnchor";if(b.successResponse===e)throw"Mandatory parameter missing: successResponse";if(b.failureResponse===e)throw"Mandatory parameter missing: failureResponse";a&&"function"===typeof a&&(g.incrementCounter("HighlighterBuilder:success"),a(b))}catch(c){h&&
"function"===typeof h&&(g.incrementCounter("HighlighterBuilder:failure"),h(c))}}}}})})();(function(){l.when("A","QTipsHandler","QTips","SA_BottomSheet","ShoppingAidsSparkles","SAFabAudiospot","SAHotspot","SAAudiospot","QTipsConstants","OnDemandTooltipBuilder","OnDemandBottomSheetBuilder","OnDemandDynamicSparkleBuilder","OnDemandStaticSparkleBuilder","OnDemandShoppingAidsAllowlist","QTipLibrary","QTipsMetrics","SAHighlighter","OnDemandHighlighterBuilder","PageResolver").register("OnDemandShoppingAids",
function(e,g,a,h,b,c,l,u,p,f,q,z,D,x,n,d,y,A,B){var m=this;return{toolTipBuilder:f,bottomSheetBuilder:q,staticSparkleBuilder:D,dynamicSparkleBuilder:z,highlighterBuilder:A,invoke:function(f,c){if(m.inThrottledState)f.failureResponse(p.errorCodes.API_THROTTLED);else{var r=c.split("/");c=r[0];r=r[1];var k=f.identifier,q;(q=e.contains(x.allowListedIdentifiers,k))||(q=e.contains(k,x.allowedPrefixIdentifier)&&0===k.indexOf(x.allowedPrefixIdentifier)?!0:!1);if(q){switch(c){case "tooltip":d.incrementCounter("OnDemandShoppingAids:tooltip:"+
r);d.incrementCounter("OnDemandShoppingAids:tooltip");d.incrementCounter("OnDemandShoppingAids:"+r);"1.0.0"===r?(c=new n.Model,c.set(f),d.incrementCounter("OnDemandShoppingAids:tooltip:invoked:"+r),g.displayOnDemandToolTip(c)):(f.failureResponse(p.errorCodes.INVALID_VERSION),d.incrementCounter("OnDemandShoppingAids:tooltip:invalidVersion"));break;case "sparkle":d.incrementCounter("OnDemandShoppingAids:sparkle:"+r);d.incrementCounter("OnDemandShoppingAids:sparkle");d.incrementCounter("OnDemandShoppingAids:"+
r);"1.0.0"===r?b.invokeOnDemandSparkle({sparkles:f,page:B.pageAdapter(),platform:"mweb"}):(f.failureResponse(p.errorCodes.INVALID_VERSION),d.incrementCounter("OnDemandShoppingAids:sparkle:invalidVersion"));break;case "bottomsheet":d.incrementCounter("OnDemandShoppingAids:bottomsheet:"+r);d.incrementCounter("OnDemandShoppingAids:bottomsheet");d.incrementCounter("OnDemandShoppingAids:"+r);"1.0.0"===r?(c=new n.Model,c.set(f),h.collection.add(c),a.view.clearRender(),h.view.start(B.pageAdapter())):(f.failureResponse(p.errorCodes.INVALID_VERSION),
d.incrementCounter("OnDemandShoppingAids:bottomsheet:invalidVersion"));break;case "highlighter":d.incrementCounter("OnDemandShoppingAids:highlighter:"+r);d.incrementCounter("OnDemandShoppingAids:highlighter");d.incrementCounter("OnDemandShoppingAids:"+r);"1.0.0"===r?(c=new n.Model,c.set(f),d.incrementCounter("OnDemandShoppingAids:highlighter:invoked:"+r),y.view.displayOnDemandHighlighter(c)):(f.failureResponse(p.errorCodes.INVALID_VERSION),d.incrementCounter("OnDemandShoppingAids:highlighter:invalidVersion"));
break;default:d.incrementCounter("OnDemandShoppingAids:invalidShoppingAidType"),f.failureResponse(p.errorCodes.INVALID_SHOPPING_AID_TYPE)}d.incrementCounter(m.sourceName+"presentInAllowlist")}else f.failureResponse(p.errorCodes.AID_NOT_ALLOWLISTED),d.incrementCounter(m.sourceName+"rejectedFromAllowlist"),d.incrementCounter(m.sourceName+"rejectedFromAllowlist:"+f.identifier)}},dismiss:function(f,e,g,k){d.incrementCounter("OnDemandShoppingAids:dismiss:"+f);d.incrementCounter("OnDemandShoppingAids:dismiss:"+
e);switch(e){case "tool_tip":a.view.dismissWithId(f,g,k);break;case "bottomsheet":h.view.dismissWithId(f,g,k);break;case "sparkles":b.dismissWithId(f,g,k);break;case "hotspot":l.view.dismissWithId(f,g,k);break;case "audiospot":u.view.dismissWithId(f,g,k);break;case "fabaudiospot":c.dismissWithId(f,g,k);break;case "highlighter":y.view.dismissWithId(f,g,k);break;default:k&&"function"===typeof k&&k(p.errorCodes.INVALID_SHOPPING_AID_TYPE),d.incrementCounter("OnDemandShoppingAids:dismiss:invalidShoppingAidType")}}}})})();
(function(){l.when("A").register("OnDemandShoppingAidsAllowlist",function(e){return{allowedPrefixIdentifier:"nested_sa",allowListedIdentifiers:["devTestID","ShoppingAidsInternal","s-search-pinch-to-zoom-hotspot-video-tooltip-text-EU","GameXActionTray"]}})})();(function(){l.when("A","OnDemandShoppingAids","QTipsMetrics").register("NestedSARenderer",function(e,g,a){function h(f,g){var e=f.type,h=function(a){p.result=a},q=function(){a.incrementCounter("NestedSARenderer:"+g+e+"_error")};a.incrementCounter("NestedSARenderer:"+
g+e);"bottom_sheet"===e?b(f,h,q):"sparkle"===e?c(f,h,q):"tool_tip"===e?l(f,h,q):"highlighter"===e?m(f,h,q):a.incrementCounter("NestedSARenderer:unknown_shopping_aid")}function b(b,c,e){var f=b.identifier,h=b.closeType,q=b.staticContent,d=b.contentUrl,l=b.bottomSheetHeight;a.incrementCounter("NestedSARenderer:bottom_sheet_builder:invoked");g.bottomSheetBuilder().setIdentifier(f).setStaticContent(q).setContentUrl(d).setCloseType(h).setBottomSheetHeight(l).setNestedSA(b.nestedSAList).setSuccessResponse(function(){}).setFailureResponse(function(){}).buildBottomSheet(c,
e);g.invoke(p.result,"bottomsheet/1.0.0");a.incrementCounter("NestedSARenderer:on_demand_bottom_sheet:invoked")}function c(b,c,e){var f=b.identifier,h=b.displayText,q=b.displayIcon,d=b.targetEndpoint,l=b.descriptionText,m=b.typeOfStaticSparkle;a.incrementCounter("NestedSARenderer:sparkle_builder:invoked");g.staticSparkleBuilder().setIdentifier(f).setDisplayText(h).setDisplayIcon(q).setDescriptionText(l).setTypeOfStaticSparkle(m).setNestedSA(b.nestedSAList).setTargetEndpoint(d).setSuccessResponse(function(){}).setFailureResponse(function(){}).buildSparkle(c,
e);g.invoke(p.result,"sparkle/1.0.0");a.incrementCounter("NestedSARenderer:on_demand_sparkle:invoked")}function l(b,c,e){a.incrementCounter("NestedSARenderer:tooltip_builder:invoked");g.toolTipBuilder().setIdentifier(b.identifier).setElementAnchor(b.elementAnchor).setElementDisplayType(b.elementDisplayType).setElementArrowPosition(b.elementArrowPosition).setElementValue(b.elementValue).setElementStartOffset(b.elementStartOffset).setElementDuration(b.elementDuration).setElementBounceDuration(b.elementBounceDuration).setElementCTA(b.elementCTA).setDismissalType(b.dismissalType).setNestedSA(b.nestedSAList).setScrollToAnchor(b.scrollToAnchor).setAnchorScrollOffset(b.anchorScrollOffset).setVideoSource(b.videoSource).setVideoWidth(b.videoWidth).setSuccessResponse(function(){}).setFailureResponse(function(){}).setOffsetX(b.offsetX).setOffsetY(b.offsetY).setElementIndex(b.elementIndex).setElementBackgroundColor(b.elementBackgroundColor).setElementTextColor(b.elementTextColor).setHighlighter(b.highlighter).setElementBorderColor(b.elementBorderColor).buildTooltip(c,
e);g.invoke(p.result,"tooltip/1.0.0");a.incrementCounter("NestedSARenderer:on_demand_tooltip:invoked")}function m(b,c,e){a.incrementCounter("NestedSARenderer:highlighter_builder:invoked");g.highlighterBuilder().setIdentifier(b.identifier).setHighlighterAnchor(b.highlighterAnchor).setStartPositionX(b.startPositionX).setPositionX(b.positionX).setPositionY(b.positionY).setElementDisplayType(b.elementDisplayType).setSuccessResponse(function(){}).setFailureResponse(function(){}).buildHighlighter(c,e);
g.invoke(p.result,"highlighter/1.0.0");a.incrementCounter("NestedSARenderer:on_demand_highlighter:invoked")}var p=this;document.addEventListener("SA:InvokeOnDemandSA",function(b){a.incrementCounter("NestedSARenderer:shopping_aid_data_event");if((b=b.detail)&&0<b.length){var c=b[0];c.nestedSAList=JSON.stringify(b.splice(1));h(c,"nestedSA_invoke:")}else b?(b=JSON.parse(b.toJson()),h(b,"supplementarySA_invoke:")):a.incrementCounter("NestedSARenderer:shopping_aid_data_event:undefined_data_received")});
document.addEventListener("SA:OnDemandDismissSA",function(b){try{var c=b.detail;g.dismiss(c.identifier,c.type,c.successCallback,c.errorCallback)}catch(z){a.incrementCounter("NestedSARenderer:sa:dismiss:event:invalid_data_received")}})})})()});
/* ******** */
