(function(b){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,a=d?d("DetailPageLayoutAssets",""):c;a.guardFatal?a.guardFatal(b)(a,window):a.execute(function(){b(a,window)})})(function(b,c,d){b.when("A","ready").execute(function(a){var b,d=a.$;a.on("a:expander:zones_progressive_disclosure_expander:toggle:collapse",function(a){(a=d("#dp-pr-top"))&&a.length||c.scrollTo({top:b})});a.on("a:expander:zones_progressive_disclosure_expander:toggle:expand",function(a){b=d(c).scrollTop()})})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("DetailPageBylineInfoAssets@core","DetailPageBylineInfo"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
'use strict';(function(r){var m=window.AmazonUIPageJS||window.P,n=m._namespace||m.attributeErrors,K=n?n("SocialShareWidgetAUI","AmazonUI"):m;K.guardFatal?K.guardFatal(r)(K,window):K.execute(function(){r(K,window)})})(function(r,m,n){function K(l){if(Array.isArray(l)){for(var d=0,n=Array(l.length);d<l.length;d++)n[d]=l[d];return n}return Array.from(l)}"use strict";"use strict";r.register("SocialShareWidget",function(){var l;(function(){var d={353:function(f,a,h){Object.defineProperty(a,"__esModule",
{value:!0});var e=h(905),c=h(738);f=function(){function a(){var b=this;this.generateTimestampCollection=function(){var a=(new Date).getTimezoneOffset();a=b.getDateTimeByOffset(a);var q=b.getDateTimeByOffset(0);return{hitDay:a.split("T")[0],hitDatetime:a,hitDatetimeUtc:q}};this.getMarketplaceId=function(a){return"string"==typeof a?a:m.ue&&m.ue.mid?m.ue.mid:c.CSA_DEFAULT_VALUE.string};var q=this.generateTimestampCollection();this.csaMetricsData={schemaId:a.CSA_SCHEMA_ID,userAgentId:c.CSA_DEFAULT_VALUE.number,
hitDay:q.hitDay,hitDatetime:q.hitDatetime,hitDatetimeUtc:q.hitDatetimeUtc,pageType:m.ue_pty?m.ue_pty:c.CSA_DEFAULT_VALUE.string,subPageType:m.ue_spty?m.ue_spty:c.CSA_DEFAULT_VALUE.string,sessionId:m.ue&&m.ue.sid?m.ue.sid:c.CSA_DEFAULT_VALUE.string}}return a.prototype.withCSAClickEventData=function(a){var b=a.shareDataAttributes;if(this.csaMetricsData.customerId=b.customerId?b.customerId:c.CSA_DEFAULT_VALUE.string,this.csaMetricsData.httpRequestId=b.requestId?b.requestId:c.CSA_DEFAULT_VALUE.string,
this.csaMetricsData.asin=b.asin?b.asin:c.CSA_DEFAULT_VALUE.string,this.csaMetricsData.ingress=b.ingress?b.ingress:c.CSA_DEFAULT_VALUE.string,this.csaMetricsData.platform=b.platform?b.platform:c.CSA_DEFAULT_VALUE.string,this.csaMetricsData.isInternal=this.getCSANumberMapping(b.isInternal),this.csaMetricsData.isRobot=this.getCSANumberMapping(b.isRobot),this.csaMetricsData.channel=a.channel?a.channel:c.CSA_DEFAULT_VALUE.string,this.csaMetricsData.refMarker=a.refMarker?a.refMarker:c.CSA_DEFAULT_VALUE.string,
this.csaMetricsData.referrerUrl=a.refererURL?a.refererURL:c.CSA_DEFAULT_VALUE.string,this.csaMetricsData.marketplaceId=this.getMarketplaceId(b.marketplaceId),this.csaMetricsData.isExperiment=/T\d+/.test(a.treatment)?"Y":"N",this.csaMetricsData.triggeredFromScreenshotToast=!!b.triggeredFromScreenshotToast&&b.triggeredFromScreenshotToast,a.weblab)b=this.csaMetricsData.shareEntities,(b=void 0===b?{}:b)[a.weblab]=a.treatment,this.csaMetricsData.shareEntities=b;a.customizeShareCSAData&&(b=this.csaMetricsData.shareEntities,
b=void 0===b?{}:b,a.customizeShareCSAData.isCustomizedExperienceEnabled===c.TRUE&&(b.backgroundImagePhysicalId=a.customizeShareCSAData.backgroundImagePhysicalId,b.deviceCoverImagePhysicalId=a.customizeShareCSAData.deviceCoverImagePhysicalId,b.hasQuote=a.customizeShareCSAData.hasQuote,b.isCustomized=a.customizeShareCSAData.isCustomized,b.customizePreSelected=a.customizeShareCSAData.customizePreSelected,b.isQuotesAvailable=a.customizeShareCSAData.isQuotesAvailable,this.csaMetricsData.shareEntities=
b));a.isCustomShareOptionsSheetEnabled&&(b=this.csaMetricsData.shareEntities,(b=void 0===b?{}:b).isCustomShareOptionsSheetEnabled="1",this.csaMetricsData.shareEntities=b);a.caf&&(b=this.csaMetricsData.shareEntities,(b=void 0===b?{}:b).cafSwitchEnabled=a.cafSwitchEnabled?c.TRUE:c.FALSE,this.csaMetricsData.shareEntities=b);a.cafEdCXIngressWeblabTreatment&&(b=this.csaMetricsData.shareEntities,(b=void 0===b?{}:b).cafEdCxIngressWelabT1="T1"===a.cafEdCXIngressWeblabTreatment?c.TRUE:c.FALSE,b.cafEdCxIngressWelabT2=
"T2"===a.cafEdCXIngressWeblabTreatment?c.TRUE:c.FALSE);return this},a.prototype.withShareHitType=function(a){return this.csaMetricsData.shareHitType=a||c.CSA_DEFAULT_VALUE.string,this},a.prototype.getCSANumberMapping=function(a){return isNaN(Number(a))?2:Number(a)},a.prototype.getDateTimeByOffset=function(b){var c=new Date;0!==b&&(b*=a.MINUTES_TO_MILISECONDS,c=c.getTime()-b,c=new Date(c));return c.toISOString().split("Z")[0].split(".")[0]},a.prototype.logEvent=function(){(0,e.isCSALoaded)()&&m.csa(a.CSAPluginId,
{producerId:a.CSA_PRODUCER_ID})(a.CSA_LOG_EVENT,this.csaMetricsData)},a.MINUTES_TO_MILISECONDS=6E4,a.CSAPluginId="Events",a.CUSTOMIZE_SHARE_ENTITY_NAME="CustomizeShare",a.CSA_PRODUCER_ID="social-share",a.CSA_LOG_EVENT="log",a.CSA_SCHEMA_ID="SocialShareCSACustomEvent.CSAShareMetrics.8",a}();a.default=f},305:function(f,a){Object.defineProperty(a,"__esModule",{value:!0});a.default=function(a,e){var c={email:{label:"Email",name:"email",ref:"em",shareBaseUrl:"mailto:",image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/",
"email-circular.svg"),imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","email-squared.svg"),canOpenInPopup:!1,getSharingUrl:function(b){var c="?subject\x3d".concat(encodeURIComponent(a.emailSubject||a.title)),u="\x26body\x3d".concat(encodeURIComponent(a.title));b=encodeURIComponent(b||a.shareUrl.getReturnForChannel(this.ref));return"".concat(this.shareBaseUrl).concat(c).concat(u," ").concat(b)}},pi:{label:"Pinterest",name:"pinterest",ref:"pi",shareBaseUrl:"https://www.pinterest.com/pin/create/button/",
image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","pinterest-circular.svg"),imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","pinterest-squared.svg"),canOpenInPopup:!0,getSharingUrl:function(b){b="?url\x3d".concat(encodeURIComponent(b||a.shareUrl.getReturnForChannel(this.ref)));var c="\x26description\x3d".concat(encodeURIComponent(a.title)),u="\x26media\x3d".concat(encodeURIComponent(a.image));return"".concat(this.shareBaseUrl).concat(b).concat(c).concat(u,
"\x26method\x3dbutton")}},li:{label:"Line",name:"line",ref:"li",shareBaseUrl:"https://social-plugins.line.me/lineit/share",image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","line-circular.svg"),imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","line-squared.svg"),canOpenInPopup:!0,getSharingUrl:function(b){var c="?text\x3d".concat(encodeURIComponent(a.text)," ").concat(encodeURIComponent(a.title));b="\x26url\x3d".concat(encodeURIComponent(b||a.shareUrl.getReturnForChannel(this.ref)));
return"".concat(this.shareBaseUrl).concat(c).concat(b)}},fb:{label:"Facebook",name:"facebook",ref:"fa",shareBaseUrl:"https://www.facebook.com/dialog/share",image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","facebook-circular.svg"),imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","facebook-squared.svg"),canOpenInPopup:!0,getSharingUrl:function(b){b=encodeURIComponent(b||a.shareUrl.getReturnForChannel(this.ref));var c=encodeURIComponent(a.shareUrl.getReturnForChannel(this.ref).replace("_r_",
"_s_")),e=encodeURIComponent("#"+(a.hashtags[0]||"Amazon"));b=["?_encoding\x3dUTF8\x26app_id\x3d465632727431967\x26display\x3dpopup","href\x3d".concat(b),"redirect_uri\x3d".concat(c),"hashtag\x3d".concat(e)].join("\x26");return"".concat(this.shareBaseUrl).concat(b)}},tw:{label:"X",name:"x",ref:"tw",shareBaseUrl:"https://twitter.com/intent/tweet",image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","x-circular.svg"),imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/",
"x-squared.svg"),canOpenInPopup:!0,getSharingUrl:function(b){var c="?text\x3d".concat(encodeURIComponent(a.title));b="\x26url\x3d".concat(encodeURIComponent(b||a.shareUrl.getReturnForChannel(this.ref)));var e="\x26hashtags\x3d".concat(a.hashtags.join(",")),h="\x26via\x3d".concat(encodeURIComponent("Amazon"));return"".concat(this.shareBaseUrl).concat(c).concat(b).concat(e).concat(h)}},wa:{label:"WhatsApp",name:"whatsapp",ref:"wa",shareBaseUrl:"https://api.whatsapp.com/send?text\x3d",image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/",
"whatsapp-circular.svg"),imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","whatsapp-squared.svg"),canOpenInPopup:!0,getSharingUrl:function(b){b="\n              ".concat(encodeURIComponent(a.title),"\n              ").concat(encodeURIComponent(a.text),"\n              ").concat(encodeURIComponent(b||a.shareUrl.getReturnForChannel(this.ref)));return"".concat(this.shareBaseUrl).concat(b)}},sms:{label:"SMS",name:"sms",ref:"sms",shareBaseUrl:"sms:",image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/",
"sms-circular.svg"),imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","sms-squared.svg"),canOpenInPopup:!1,getSharingUrl:function(b){b="\n              ".concat(encodeURIComponent(a.title),"\n              ").concat(encodeURIComponent(b||a.shareUrl.getReturnForChannel(this.ref)));return"".concat(this.shareBaseUrl).concat(b)}},embed:{label:"Embed",name:"embed",ref:"eb",shareBaseUrl:"",image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","embed-circular.svg"),
imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","embed-squared.svg"),canOpenInPopup:!1,getSharingUrl:function(){return""}},copy:{label:"Copy",name:"copy",ref:"cp",shareBaseUrl:"",image:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","link-circular.svg"),imageSquared:"".concat("https://m.media-amazon.com/images/G/01/share-icons/","link-squared.svg"),canOpenInPopup:!1,getSharingUrl:function(){return""}}};if(null==e?0:e.length){var b={};return e.forEach(function(a){c[a]&&
(b[a]=c[a])}),b}return c}},738:function(f,a){Object.defineProperty(a,"__esModule",{value:!0});a.Err={Abort:"AbortError"};f=a.CSA_HIT_TYPE={};f.CLICK_SUCCESS="click_success";f.CLICK_ERROR="click_error";f.CLICK_CANCEL="click_cancel";f.SHARE="share";f.CUSTOMIZE_SHARE="click_customize_success";a.customize="customize";a.customShareOptions="customShareOptions";a.customizeShareStateKey="customizeShareCSAData";a.CSA_DEFAULT_VALUE={string:"unknown",number:0,boolean:2};a.CAF_LEARN_MORE_KEY="learn_more_link";
a.CAF_INFO_ICON_KEY="info_icon";a.UNKNOWN="unknown";a.DEFAULT_CSA_REF_ID="u_";a.EMPTY_STRING="";a.RAW_CHANNEL_PREFIX="raw:";a.CP_CHANNEL_REF="cp";a.CUSTOM_SHARE_OPTIONS_CP_CHANNEL_REF="cso_cp";a.CUSTOM_SHARE_OPTIONS_REF_PREFIX="cso";a.BOOKS_REF_PREFIX="bks";a.BOOKS_CUSTOMIZE_PREVIEW_NOT_AVAILABLE="t2cna";a.CAF_REF_PREFIX="caf";a.EMBED_CHANNEL_REF="eb";a.BEST_FORMAT_REF="ffobk";a.FALSE="false";a.TRUE="true";a.CUSTOM_SHEET_CLICK_LATENCY_METRIC="CustomShareSheet.Click";a.CAF_CUSTOM_SHEET_CLICK_LATENCY_METRIC=
"Caf.CustomShareSheet.Click";a.BOOKS_CUSTOM_SHEET_CLICK_LATENCY_METRIC="Books.CustomShareSheet.Click";a.SSF_AUI_PACKAGE_ATTRIBUTION="SocialShareWidgetAUI";a.REGEX_TO_REF_ID_AND_CHANNEL_APP={instagram:{refId:"in",channel:"Instagram"},snap:{refId:"sn",channel:"Snapchat"},discord:{refId:"di",channel:"Discord"},viber:{refId:"vi",channel:"Viber"},telegram:{refId:"te",channel:"Telegram"},pinterest:{refId:"pi",channel:"Pinterest"},qzone:{refId:"qz",channel:"QQ Zone"},renren:{refId:"re",channel:"Renren"},
twitter:{refId:"tw",channel:"Twitter"},airdrop:{refId:"ar",channel:"AirDrop"},tencentweibo:{refId:"tc",channel:"Tencent Weibo"},wechatmoment:{refId:"wm",channel:"WeChat Moment"},line:{refId:"li",channel:"Line"},whatsapp:{refId:"wa",channel:"Whatsapp"},weibo:{refId:"si",channel:"Sina Weibo"},facebook:{refId:"fb",channel:"Facebook"}};a.defaultShareDataAttributes={isInternal:a.CSA_DEFAULT_VALUE.boolean,isRobot:a.CSA_DEFAULT_VALUE.boolean,userAgent:a.CSA_DEFAULT_VALUE.number,platform:a.CSA_DEFAULT_VALUE.string,
ingress:a.CSA_DEFAULT_VALUE.string,asin:a.CSA_DEFAULT_VALUE.string,requestId:a.CSA_DEFAULT_VALUE.string,customerId:a.CSA_DEFAULT_VALUE.string,marketplaceId:a.CSA_DEFAULT_VALUE.string};a.defaultCustomizeShareCSAData={backgroundImagePhysicalId:a.EMPTY_STRING,deviceCoverImagePhysicalId:a.EMPTY_STRING,hasQuote:a.EMPTY_STRING,isCustomizedExperienceEnabled:a.EMPTY_STRING,isCustomized:a.EMPTY_STRING}},905:function(f,a,h){Object.defineProperty(a,"__esModule",{value:!0});a.isSafari=a.isCSALoaded=a.isNativeAppShareAvailable=
a.isNativeWebShareAvailable=a.isMobileWeb=a.isMobileApp=a.isDesktop=a.isIpadIOS=a.isIOS=a.isAndroid=a.isIE=a.isAUILoaded=a.isUeAvailable=a.isClipboardAvailable=a.isRTL=a.isTwisterAsin=a.context=a.Device=void 0;var e,c=h(161);!function(a){a.Android="apan";a.IOS="apin";a.MWeb="mwn";a.Other="ud"}(e||(a.Device=e={}));a.context=function(){var b=e.Other;(0,a.isMobileApp)()&&(0,a.isAndroid)()?b=e.Android:(0,a.isMobileApp)()&&(0,a.isIOS)()?b=e.IOS:(0,a.isMobileWeb)()&&(b=e.MWeb);var c="unknown";return(0,
a.isMobileApp)()?c="mshop":(0,a.isMobileWeb)()?c="mweb":(0,a.isDesktop)()&&(c="desktop"),{device:b,page:(0,a.isUeAvailable)()?m.ue_pty:"unknown",subPage:(0,a.isUeAvailable)()?m.ue_spty||m.ue_pti:"unknown",platform:c}};a.isTwisterAsin=function(){return!!m.isTwisterPage||!!m.twisterController||b};a.isRTL=function(){return"rtl"===document.dir};a.isClipboardAvailable=function(){return!!navigator.clipboard&&(0,c.isFunction)(navigator.clipboard.writeText)};a.isUeAvailable=function(){return!!m.ue};a.isAUILoaded=
function(){var a;return"undefined"!=typeof m&&(0,c.isString)(null===(a=null===m||void 0===m?void 0:m.P)||void 0===a?void 0:a.AUI_BUILD_DATE)};a.isIE=function(){return(0,c.testUserAgent)(/MSIE|Trident/i)};a.isAndroid=function(){return(0,c.testUserAgent)(/android.([1-9]|[L-Z])/i)&&!(0,c.testUserAgent)(/trident|Edge/i)};a.isIOS=function(){return(0,c.testUserAgent)(/OS [1-9][0-9]*(_[0-9]*)+ like Mac OS X/i)&&!(0,c.testUserAgent)(/trident|Edge/i)};a.isIpadIOS=function(){return(0,c.testUserAgent)(/[a-zA-z]{1,}\/[0-99].[0-99] \(Macintosh; [a-zA-z]{1,} Mac OS X [1-9][0-9]*_[1-9][0-9]*_[1-9][0-9]*\) AppleWebKit\/[1-9][0-9]*.[1-9][0-9]*.[1-9][0-9]*/)||
(0,c.testUserAgent)(/iPad/)};a.isDesktop=function(){return!((0,a.isAndroid)()||(0,a.isIOS)()||(0,a.isMobileApp)()||(0,a.isMobileWeb)())};a.isMobileApp=function(){return/(Windowshop|Amazon|Amazon\.com)\//.test((0,c.getCookie)("amzn-app-id"))};a.isMobileWeb=function(){return 450>=m.screen.availWidth&&((0,c.testUserAgent)(/mobile|mini/i)||(0,a.isAndroid)()||(0,a.isIOS)())};a.isNativeWebShareAvailable=function(){return m.navigator&&(0,c.isFunction)(m.navigator.share)};a.isNativeAppShareAvailable=function(a){return a&&
(0,c.isFunction)(a.share)};a.isCSALoaded=function(){return(0,c.isFunction)(m.csa)};a.isSafari=function(){var a;return/apple/i.test(null===(a=m.navigator)||void 0===a?void 0:a.vendor)};var b=!1;(0,a.isAUILoaded)()&&m.P.when("mobile-inline-twister-critical").execute(function(){b=!0});a.default={context:a.context,isTwisterAsin:a.isTwisterAsin,isClipboardAvailable:a.isClipboardAvailable,isUeAvailable:a.isUeAvailable,isAUILoaded:a.isAUILoaded,isIE:a.isIE,isAndroid:a.isAndroid,isDesktop:a.isDesktop,isIOS:a.isIOS,
isIpadIOS:a.isIpadIOS,isMobileApp:a.isMobileApp,isMobileWeb:a.isMobileWeb,isNativeWebShareAvailable:a.isNativeWebShareAvailable,isNativeAppShareAvailable:a.isNativeAppShareAvailable,isCSALoaded:a.isCSALoaded,isSafari:a.isSafari,isRTL:a.isRTL}},495:function(f,a,h){Object.defineProperty(a,"__esModule",{value:!0});var e=h(905),c=h(353),b=h(738);f=function(){function a(){}return a.logCountOnce=function(a){(0,e.isUeAvailable)()&&m.ue.count(a,(m.ue.count(a)||0)+1)},a.emitFullMetricName=function(a,b,c){var q=
this;(0,e.isAUILoaded)()&&m.P.when("A").execute(function(k){k.trigger("".concat(q.BASE_METRIC_NAME,":metrics:logged"),{fullMetricName:a,callee:b,message:c})})},a.logCounter=function(a,b){b=b?".".concat(b):"";a="".concat(this.BASE_METRIC_NAME,".").concat(a).concat(b);this.emitFullMetricName(a,"logCounter");this.logCountOnce(a)},a.logCounterRefactor=function(a,b){b=b?".".concat(b.toLowerCase()):"";a="".concat(this.BASE_METRIC_NAME).concat(b,".").concat(this.platform).concat(this.metricName,".").concat(a.toLowerCase());
this.emitFullMetricName(a,"logCounterRefactor");this.logCountOnce(a)},a.logLoad=function(a){a="".concat(this.BASE_METRIC_NAME,".").concat(this.platform).concat(this.metricName,".").concat(a.toLowerCase());this.logCountOnce(a)},a.logFatal=function(a){(0,e.isAUILoaded)()&&m.P.log(a,"FATAL",this.BASE_METRIC_NAME)},a.logCSAEvent=function(a,b){(0,e.isCSALoaded)()&&(new c.default).withCSAClickEventData(b).withShareHitType(a).logEvent()},a.startTimer=function(a){a="".concat(this.BASE_METRIC_NAME,".").concat(this.LATENCY,
".").concat(a);this.timers[a]=m.uet&&m.uet("bb",a,{wb:1})},a.stopTimer=function(a){a="".concat(this.BASE_METRIC_NAME,".").concat(this.LATENCY,".").concat(a);var b=this.timers[a];(0,e.isUeAvailable)()&&b&&(b=m.uet("be",a,{wb:1})-b,m.ue.count(a,b),m.uex&&m.uex("ld",a,{wb:1}),this.emitFullMetricName(a,"stopTimer","".concat(b,"ms")),delete this.timers[a],this.timers["".concat(a,"_done_in")]=b)},a.BASE_METRIC_NAME="SocialShareFramework",a.LATENCY="Latency",a.platform=b.UNKNOWN,a.metricName="",a.timers=
{},a.getMetricName=function(b,c){var h;if(void 0===c&&(c=""),(0,e.isUeAvailable)()){var f=(0,e.context)();a.platform=f.platform;a.metricName=c?".".concat(c.toLowerCase()):""}b=b('[data-action\x3d"ssf-share-icon"]').data();c=c?".".concat(c):"";return b?(b=(null===(h=b.ssfShareIcon)||void 0===h?void 0:h.shareDataAttributes)||{},h=b.ingress,b=b.platform,b=void 0===b?"unknown":b,"".concat(void 0===h?"unknown":h,".").concat(b).concat(c).toLowerCase()):""},a}();a.default=f},241:function(f,a,h){Object.defineProperty(a,
"__esModule",{value:!0});var e,c=h(905),b=h(738);!function(a){a.RETURN="r";a.CLICK="cl"}(e||(e={}));f=function(){function a(a,e){if(void 0===a&&(a="ur"),void 0===e&&(e=void 0),this.PREFIX="cm_sw",this.id="",this.refId="",this._isBestFormatEnabled=!1,this.cxt={device:c.Device.Other,page:"",subPage:"",platform:b.UNKNOWN},2>a.length)throw new TypeError("refId must be 2 or more characters long");this.refId=a;this.cxt=(0,c.context)();this.treatment=e;this.generateUniqueId()}return Object.defineProperty(a.prototype,
"isBestFormatEnabled",{set:function(a){this._isBestFormatEnabled=a},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"return",{get:function(){return this.get(e.RETURN)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"click",{get:function(){return this.get(e.CLICK)},enumerable:!1,configurable:!0}),a.prototype.getReturnForChannel=function(a){var c,h=null!==(c=this.treatment)&&void 0!==c?c:"";return[this.PREFIX,e.RETURN,this._isBestFormatEnabled?b.BEST_FORMAT_REF:
"",a,this.cxt.device,this.refId,h,this.id].filter(function(a){return a&&""!==a}).join("_")},a.prototype.getClickForChannel=function(a){return[this.PREFIX,e.CLICK,this._isBestFormatEnabled?b.BEST_FORMAT_REF:"",a,this.cxt.device,this.refId,this.id].filter(function(a){return a&&""!==a}).join("_")},a.prototype.generateUniqueId=function(){var a,b=null===(a=null===m||void 0===m?void 0:m.ue)||void 0===a?void 0:a.rid;return b||(b="".concat(Math.random().toString(36).slice(2)).concat(Math.random().toString(36).slice(2)).substring(0,
13)),this.id=b},a.prototype.get=function(a){var c,e=null!==(c=this.treatment)&&void 0!==c?c:"";return[this.PREFIX,a,this._isBestFormatEnabled?b.BEST_FORMAT_REF:"",this.cxt.device,this.refId,e,this.id].filter(function(a){return a&&""!==a}).join("_")},a}();a.default=f},198:function(f,a,h){var e=this&&this.__assign||function(){return e=Object.assign||function(a){for(var b,c=1,k=arguments.length;c<k;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a},e.apply(this,
arguments)};Object.defineProperty(a,"__esModule",{value:!0});var c,b=h(495),d=h(738),l=h(905),n=h(474),t=h(161),w=h(738);(0,l.isAUILoaded)()&&m.P.when("mash").execute(function(a){return c=a});f=function(){function a(a){this.sheetOptions={title:w.EMPTY_STRING,text:w.EMPTY_STRING,shareUrl:new n.default("http://amazon.com/","ur"),lang:"en",shareDataAttributes:w.defaultShareDataAttributes,refererURL:"",image:"",customizeShareCSAData:w.defaultCustomizeShareCSAData,isCustomShareOptionsSheetEnabled:!1};
this.sheetOptions=e(e({},this.sheetOptions),a);this.shareUrl=a.shareUrl}return a.prototype.launchNativeWeb=function(){var a,c=this,k=this.sheetOptions.shareDataAttributes.ingress,e={channel:w.EMPTY_STRING,refMarker:this.shareUrl.refMarker.click,refererURL:this.sheetOptions.refererURL,shareDataAttributes:this.sheetOptions.shareDataAttributes,customizeShareCSAData:this.sheetOptions.customizeShareCSAData},h=this.shareUrl.return;this.sheetOptions.tinyUrl&&(h=this.sheetOptions.tinyUrl,b.default.logCounter("MWeb.Tiny.Success"),
b.default.logCounterRefactor("Tiny.Success",k));var f=(0,t.isFunction)(this.sheetOptions.sheetShownCallback);try{null===(a=null===m||void 0===m?void 0:m.navigator)||void 0===a||a.share({url:h,title:this.sheetOptions.title,text:this.sheetOptions.text}).then(function(){f&&c.sheetOptions.sheetShownCallback();b.default.logCSAEvent(w.CSA_HIT_TYPE.CLICK_SUCCESS,e);b.default.logCSAEvent(w.CSA_HIT_TYPE.SHARE,e);b.default.logCounterRefactor("ChannelClick",c.sheetOptions.shareDataAttributes.ingress);b.default.logCounter("ShareClick")}).catch(function(a){f&&
c.sheetOptions.sheetShownCallback();b.default.logCSAEvent(w.CSA_HIT_TYPE.CLICK_SUCCESS,e);a.name===w.Err.Abort&&b.default.logCSAEvent(w.CSA_HIT_TYPE.CLICK_CANCEL,e)})}catch(p){b.default.logCSAEvent(w.CSA_HIT_TYPE.CLICK_ERROR,e)}},a.prototype.launchNativeApp=function(){var a=this,k=this.shareUrl.refMarker.click,h=this.sheetOptions.shareDataAttributes,f=this.sheetOptions.refererURL,l=this.sheetOptions.customizeShareCSAData,n=this.sheetOptions.shareDataAttributes.ingress,p=w.EMPTY_STRING,q=this.sheetOptions.caf||
!1,u=this.sheetOptions.cafSwitchEnabled||!1,x=this.sheetOptions.isCustomShareOptionsSheetEnabled||!1,E=this.shareUrl.return;this.sheetOptions.tinyUrl&&(E=this.sheetOptions.tinyUrl,b.default.logCounter("MShop.Tiny.Success"),b.default.logCounterRefactor("Tiny.Success",n));var v={channel:p,refMarker:k,refererURL:f,shareDataAttributes:h,customizeShareCSAData:l,caf:q,cafSwitchEnabled:u,isCustomShareOptionsSheetEnabled:x};k={messagePlain:this.getShareMessage,messagePlain160:this.getShare160Message,messagePlain140:this.getShare140Message,
messageHTML:this.getShareMessage,url:E,imageURL:this.sheetOptions.image,subject:this.sheetOptions.text};null==c||c.share(e(e({},k),{successCallback:function(){(0,t.isFunction)(a.sheetOptions.sheetShownCallback)&&a.sheetOptions.sheetShownCallback();b.default.logCSAEvent(w.CSA_HIT_TYPE.CLICK_SUCCESS,v)},failCallback:function(a){b.default.logCSAEvent(w.CSA_HIT_TYPE.CLICK_ERROR,v);m.P.log("Error while opening mShop native share sheet, Error message: "+a,"ERROR",d.SSF_AUI_PACKAGE_ATTRIBUTION)},shareServiceSelectedCallback:function(c){c&&
"'null'"!==c?((0,t.isFunction)(a.sheetOptions.channelSelectCB)&&a.sheetOptions.channelSelectCB(c),v.channel=a.getChannelByKeyword(c).channel,c=a.getChannelByKeyword(c).refId,v.refMarker=a.shareUrl.refMarker.getClickForChannel(c),b.default.logCSAEvent(w.CSA_HIT_TYPE.SHARE,v),b.default.logCounterRefactor("ChannelClick",a.sheetOptions.shareDataAttributes.ingress),b.default.logCounter("ShareClick"),(0,t.isFunction)(a.sheetOptions.sdTooltipCallback)&&a.sheetOptions.sdTooltipCallback()):b.default.logCSAEvent(w.CSA_HIT_TYPE.CLICK_CANCEL,
v)}}))},a.prototype.launch=function(a){(0,l.isNativeAppShareAvailable)(c)?this.launchNativeApp():(0,l.isNativeWebShareAvailable)()?this.launchNativeWeb():(0,t.isFunction)(a)?a():(b.default.logCounter("Click.ShareUnavailable"),b.default.logCounterRefactor("Click.ShareUnavailable",this.sheetOptions.shareDataAttributes.ingress))},Object.defineProperty(a.prototype,"getShare160Message",{get:function(){var a=this.sheetOptions.tinyUrl||this.shareUrl.return,b=a.length+2;b=(0,t.truncate)(this.sheetOptions.title,
160-b);return"".concat(b," ").concat(a)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"getShare140Message",{get:function(){var a=this.sheetOptions.tinyUrl||this.shareUrl.return,b=a.length+2;b=(0,t.truncate)(this.sheetOptions.title,140-b);return"".concat(b," ").concat(a)},enumerable:!1,configurable:!0}),a.prototype.getRefByRegex=function(a){return w.REGEX_TO_REF_ID_AND_CHANNEL_APP[a].refId},a.prototype.getChannelByRegex=function(a){return w.REGEX_TO_REF_ID_AND_CHANNEL_APP[a].channel},
a.prototype.getChannelByKeyword=function(a){var b=w.RAW_CHANNEL_PREFIX+a,c=w.DEFAULT_CSA_REF_ID,k=a.match(/instagram|snap|discord|viber|telegram|pinterest|qzone|renren|twitter|airdrop|tencentweibo|wechatmoment|line|whatsapp|weibo|^Facebook$/ig);if(k&&k.length)return{channel:this.getChannelByRegex(k[0].toLowerCase()),refId:this.getRefByRegex(k[0].toLowerCase())};switch(!0){case /android.messaging|sms|android.apps.messaging|mms/gi.test(a):b="SMS";c="sm";break;case /outlook|mail/gi.test(a):b="Email";
c="em";break;case /clipboardactivity|copy/gi.test(a):b="Copy";c="cp";break;case /facebook.composer/gi.test(a):b="Facebook";c="fb";break;case /facebook.messenger|FacebookMessenger/gi.test(a):b="FacebookMessenger";c="fm";break;case /tencent|wechat/gi.test(a):b="WeChat";c="we";break;case /unknown|null/gi.test(a):b="unknown",c="u"}return{channel:b,refId:c}},Object.defineProperty(a.prototype,"getShareMessage",{get:function(){var a=this.sheetOptions.tinyUrl||this.shareUrl.return;return"".concat(this.sheetOptions.title,
" ").concat(a)},enumerable:!1,configurable:!0}),a}();a.default=f},474:function(f,a,h){Object.defineProperty(a,"__esModule",{value:!0});var e=h(241);f=function(){function a(b,c,h){this.REF_PARAM_NAME="ref_";a.isValid(b)||(b=a.getDefault());this.url=new URL(b);this._refMarker=new e.default(c,h)}return a.prototype.getUpdatedUrl=function(a){var b=new URL(this.raw);return b.searchParams.set(this.REF_PARAM_NAME,a),b.toString()},Object.defineProperty(a.prototype,"raw",{get:function(){return this.url.toString()},
enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"refMarker",{get:function(){return this._refMarker},enumerable:!1,configurable:!0}),a.isValid=function(a){try{new URL(a)}catch(u){return!1}return!0},a.getDefault=function(){var a,c,e=null===(a=null===m||void 0===m?void 0:m.location)||void 0===a?void 0:a.href;if(!e)return(null===(c=null===m||void 0===m?void 0:m.ue)||void 0===c?0:c.sn)?"https://".concat(m.ue.sn):"https://amazon.com";a=new URL(e);c=a.searchParams.has("psc")?"?psc\x3d1":
"";return m.ue_pti?"".concat(m.location.origin,"/dp/").concat(m.ue_pti).concat(c):(a.search=c,a.href)},a.prototype.getReturnForChannel=function(a){a=this._refMarker.getReturnForChannel(a);return this.getUpdatedUrl(a)},a.prototype.getClickForChannel=function(a){a=this._refMarker.getClickForChannel(a);return this.getUpdatedUrl(a)},Object.defineProperty(a.prototype,"return",{get:function(){return this.getUpdatedUrl(this._refMarker.return)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,
"click",{get:function(){return this.getUpdatedUrl(this._refMarker.click)},enumerable:!1,configurable:!0}),a}();a.default=f},161:function(f,a){Object.defineProperty(a,"__esModule",{value:!0});a.getDPXObject=a.sanitizeInput=a.getCookie=a.testUserAgent=a.truncate=a.isString=a.isEmpty=a.isNumber=a.isFunction=void 0;a.isFunction=function(a){return"function"==typeof a};a.isNumber=function(a){return!isNaN(a)&&"number"==typeof a};a.isEmpty=function(a){return!a||!a.length};a.isString=function(a){return"string"==
typeof a};a.truncate=function(a,e){void 0===a&&(a="");var c=Array(3).fill(".");return a.length>e?a.substring(0,e-3)+c.join(""):a};a.testUserAgent=function(a){if(!m&&!m.navigator)return!1;try{return a.test(m.navigator.userAgent)}catch(e){return!1}};a.getCookie=function(a){a="".concat(a,"\x3d");for(var e=document.cookie.split(";"),c=0;c<e.length;c++){for(var b=e[c];" "==b.charAt(0);)b=b.substring(1);if(0==b.indexOf(a))return b.substring(a.length,b.length)}return""};a.sanitizeInput=function(a){return a.replace(/[<>&'"]/g,
function(a){switch(a){case "\x3c":return"\x26lt;";case "\x3e":return"\x26gt;";case "\x26":return"\x26amp;";case "'":return"\x26#39;";case '"':return"\x26quot;";default:return a}})};a.getDPXObject=function(){var a,e;return null===(e=null===(a=m.DetailPage)||void 0===a?void 0:a.StateController)||void 0===e?void 0:e.state};a.default={isFunction:a.isFunction,isNumber:a.isNumber,isEmpty:a.isEmpty,isString:a.isString,truncate:a.truncate,testUserAgent:a.testUserAgent,getCookie:a.getCookie,getDPXObject:a.getDPXObject}},
156:function(f,a){Object.defineProperty(a,"__esModule",{value:!0});a.default={}},519:function(f,a,h){Object.defineProperty(a,"__esModule",{value:!0});a.SocialShareCore=void 0;f=h(305);var e=h(474),c=h(156),b=h(495),l=h(198),d=h(241),n=h(905),t=h(738);h=h(161);a.SocialShareCore={Channels:f.default,Url:e.default,Translations:c.default,Metrics:b.default,ShareSheet:l.default,RefMarker:d.default,Detection:n.default,Constants:t,ToolBelt:h};a.default=a.SocialShareCore}},n={};l=function h(a){var e=n[a];if(void 0!==
e)return e.exports;e=n[a]={exports:{}};return d[a].call(e.exports,e,e.exports,h),e.exports}(519)})();return l});"use strict";r.register("SocialShareWidgetConfig",function(){var l=Object.freeze({MODAL:"modal",POPOVER:"popover"}),d=Object.freeze({IOS:"ios",ANDROID:"android",ARROW:"arrow",VARIABLE:"variable"});return{WIDGET_TYPE:l,WIDGET_ICON:d,excludedChannels:["sms","wa"],lineMarketplaces:["A1VC38T7YXB528"],cnMarketplace:["AAHKV2X7AFYLW"],nonCNChannels:["fb","tw","pi"],defaultShareData:{url:"",title:location.hostname,
text:"",image:"",hashtags:["Amazon"],type:l.POPOVER,lang:"en",refId:"ts",channels:[],refererURL:"",treatment:"",weblab:"",customize:!1,previewDoh:!1,caf:!1,displayCustomShareSheet:!1,cafSwitch:!1,eventPreviewTreatment:"C",cafIngressId:"",cafIngressTreatment:"C",t:{},associateLink:{},popoverPosition:"triggerBottom",popoverDistance:48,defaultCustomShareOptions:{email:{label:"Email",image:"customchannels-email.png",ref:"em",shareUrl:"mailto:?subject\x3d{subject}\x26body\x3d{body}\x26url\x3d{url}",className:"email",
stringId:"taf_customshare_email"},copy:{label:"Copy",image:"customchannels-link.png",ref:"cp",shareUrl:"",className:"custom-share-copy",stringId:"taf_customshare_copy"},more:{label:"More",image:"customchannels-more.png",ref:"",shareUrl:"",className:"custom-share-native-sheet",stringId:"taf_customshare_more"}},isFallbackShareUrlEnabled:!1,isNewIMessagePreviewGating:!1,isOnShareGatingEnabled:!1,isIpadFixesEnabled:!1,isNewWhatsAppPreview:!1,isBestFormatEnabled:!1,isCafPreviewGenerationMigrationEnabled:!1,
isUnrecognizedUsersRichPreviewEnabled:!1,customizePreSelected:!1,isUnsignedShareSheetGatingEnabled:!1,isUnsignedShareSheetCopyLinkOverrideEnabled:!1,isShortTitleGatingEnabled:!1,isShortTitleAsyncGatingEnabled:!1,titleSource:"",isMWebCustomShareSheetGatingEnabled:!1,isMWebCustomShareSheetLaunchGatingEnabled:!1,isMWebCustomShare:!1,isMWebCustomShareRichPreviewEnabledOverride:!1,isConfigMigrationEnabled:!1},defaultWidgetData:{icon:d.VARIABLE,background:!0,width:24},shareDataAttributes:{isInternal:2,
isRobot:2,userAgent:m.navigator.userAgent,platform:"DESKTOP",ingress:m.ue_pty,asin:m.ue_pti,requestId:m.ue_id,customerId:"",marketplaceId:m.ue_mid,triggeredFromScreenshotToast:!1},iconMap:{ios:"https://m.media-amazon.com/images/G/01/share-icons/share-std.svg",android:"https://m.media-amazon.com/images/G/01/share-icons/share-android.svg",arrow:"https://m.media-amazon.com/images/G/01/share-icons/share-icon-experiment.svg"},customShareOptions:[]}});"use strict";r.when("A","SocialShareWidget","SocialShareWidgetTemplating",
"SocialShareWidgetConfig","SocialShareWidgetState","SocialShareWidgetNativeUtils","SocialShareWidgetOnShareUtils").register("SocialShareWidgetAUI",function(l,d,E,f,a,h,e){var c=d.SocialShareCore,b=c.Metrics,u=0,q=function(){},x=!1,t=b.getMetricName(l.$);b.startTimer(t);b.logCounter("DPX.Desktop.ImageBlockRender");try{(function(){var d=l.$,k=c.Detection,g=c.Translations,B=c.Channels,y=c.Url,z=c.Constants,A=function(a){a=a.data("share")||a.find("[data-share]").data("share");return l.extend({},f.defaultWidgetData,
a)},C=d(".ssf-share-trigger"),p=f.defaultShareData,D=A(C),I=p.url,P=d("#ac-getlink-bottomsheet"),L=d('[data-action\x3d"ssf-share-icon"]'),v=void 0;r.when("SocialShareSheetConfig").execute(function(a){return v=a});var V=function(){var a=f.iconMap;if(D.icon===f.WIDGET_ICON.ARROW)return a.arrow;if(k.isDesktop())return a.ios;if(D.icon===f.WIDGET_ICON.VARIABLE){var b=l.$("#ssf-primary-widget-desktop");p=l.extend(p,b.data("ssfShareIcon"));b=a.android;if(k.isIOS()||p.isIpadFixesEnabled&&k.isIpadIOS())b=
a.ios;return b}return a[D.icon]},J=function(a){a.find('[class*\x3d"ssf-multi-"]').length||a.find(".ssf-share-trigger").addClass("ssf-multi-"+Math.random().toString(36).slice(2));C=a.find('[class*\x3d"ssf-multi-"]')},H=void 0,M=void 0,N=void 0,O=void 0,Q=void 0,W=void 0,G=void 0;r.when("a-sheet").execute(function(a){return H=a});r.when("a-popover").execute(function(a){return M=a});r.when("a-modal").execute(function(a){return N=a});r.when("SocialShareWidgetTiny").execute(function(a){return G=a});var F=
function(a,b){var c=2<arguments.length&&arguments[2]!==n?arguments[2]:"ssf-share-bottom-sheet",k=p.displayCustomShareSheet||p.customize||p.caf;if(!O||k)O=H.create({name:c,inlineContent:a,closeType:"icon",height:b});H.showSheet(O)},R=function(a){var b=a.type===f.WIDGET_TYPE.POPOVER&&M,c=a.type===f.WIDGET_TYPE.MODAL&&N;a=E.build(a);H?F(a.getBottom()):b?(b=a.getPopover(),C.hasClass("a-declarative")||(Q=M.create(C,{name:"ssf-share-popover",position:p.popoverPosition,inlineContent:b,activate:"onclick",
closeButton:!0,width:160,padding:"none",popoverLabel:"Share Popup",closeButtonLabel:"Close Share Popup"}).show())):c&&(b=a.getModal(),C.hasClass("a-declarative")||(W=N.create(C,{name:"ssf-share-modal",inlineContent:b,width:600,popoverLabel:"Share Modal"}).show()))},T=function(a){if(a.displayCustomShareSheet||a.customize||a.caf)b.logCounter("webview.sharesheet.caf.background"),b.logCounterRefactor("webview.sharesheet.caf.background",a.shareDataAttributes.ingress),r.when("mash").execute(function(a){a.addEventListener("appPause",
S)})},Y=function(a){r.when("SocialShareWidgetCustomize").execute(function(b){E.build(a).getCustomize(function(c){F(c,650,"ssf-customize-bottom-sheet");b.init(a,R,S);T(a)})})},S=function ea(){r.when("mash").execute(function(a){a.removeEventListener("appPause",ea)});Q&&M.get(C).hide();O&&H.hideSheet(O);W&&N.get(C).hide()},aa=function(){var a=p.shareDataAttributes.asin,b=m.DetailPage;if(!b)return!1;b=b.StateController&&b.StateController.getState().current_asin;p.shareDataAttributes.asin="string"==typeof b?
b:a;return a!==b},ca=function(a,c,e){var g=a.shareDataAttributes,f=a.t;b.logCSAEvent(z.CSA_HIT_TYPE.SHARE,c);b.logCounter("DPX.Desktop.CopySuccess");b.logCounter("Share.CopySuccess");b.logCounter(t,"CopySuccess");b.logCounterRefactor("CopySuccess",g.ingress);k.isDesktop()?function(){var a=e.find(".copy-label");a.text(f.taf_copy_url_changeover);l.delay(function(){S();a.text(f.taf_copy_name)},1E3)}():(d(".ssf-feedback").show(),S())},U=function(a){b.logCSAEvent(z.CSA_HIT_TYPE.CLICK_ERROR,a);b.logCounter("DPX.Desktop.CopyFailure");
b.logCounter("Share.CopyFailure");b.logCounter(t,"CopyFailure")},Z=function(a){var c=a.shareData,k=a.channelRef,g=c.shareUrl;a=c.socialLinks;var f=a===n?{}:a;a=c.dealsPreviewEnabled;a=a===n?!1:a;var d=c.eventPreviewTreatment;d=d===n?"C":d;g.refMarker.isBestFormatEnabled=c.isBestFormatEnabled;g=k?g.getReturnForChannel(k):g.return;k=e.getChannelName(k);var h=e.getOsType();f=f.shareframework||c.url;var l=c.aapiBaseUrl;l=l===n?"":l;var p=c.shareAapiCsrfToken;p=p===n?"":p;var v=c.tinyUrlEnabled;v=v===
n?!1:v;var B=c.deeplinkInfo;B=B===n?{}:B;var z=c.storeId;z=z===n?"":z;var y=c.isOnShareGatingEnabled;y=y===n?!1:y;var t=c.shareDataAttributes,A=t.marketplaceId;A=A===n?"":A;t=t.ingress;t=t===n?"":t;c.isUnrecognizedUsersRichPreviewEnabled&&(g=new URL(g),g.searchParams.append("starsLeft",1),g=g.toString());"c"!==d.toLowerCase()&&(g=new URL(g),c=d.match(/^T(\d+)$/),g.searchParams.append("peakEvent",c[1]),g.searchParams.append("dealEvent",a?"1":"0"),g=g.toString(),b.logCounterRefactor("EventPreview"+
d,t));return{tinyUrlEnabled:v,aapiBaseUrl:l,shareAapiCsrfToken:p,marketplaceId:A,url:g,isOnShareGatingEnabled:y,extractedRef:k,osType:h,originalUrl:f||g,refMarkerId:u++,deeplinkInfo:B,storeId:z}};d(document).delegate(".ssf-channel:not(.copy,.embed)","click",function(a){a.preventDefault();a.stopPropagation();b.logCounter("DPX.Desktop.ChannelClick");b.logCounter("ShareClick");b.logCounter(t,"ChannelClick");b.logCounterRefactor("ChannelClick",p.shareDataAttributes.ingress);var c=d(this),e=c.data("key"),
g=p;a=g.refererURL;var f=g.shareDataAttributes,v=g.treatment;v=v===n?"":v;var B=g.weblab;B=B===n?"":B;var y=g.builtChannels[e],A=y.ref;e=g.shareUrl.refMarker.getClickForChannel(A);g=y.name;var q=y.getSharingUrl();b.logCSAEvent(z.CSA_HIT_TYPE.SHARE,{channel:g,refMarker:e,refererURL:a,shareDataAttributes:f,treatment:v,weblab:B});a=Z({shareData:p,channelRef:A});h.showSpinner(c);G.fetch({data:a,callback:function(a){h.hideSpinner(c);a&&(q=y.getSharingUrl(a),b.logCounter("Desktop.Tiny.Success"),b.logCounterRefactor("Tiny.Success",
f.ingress));if("em"===A)m.open(q,"_self");else if(k.isDesktop()){a=screen.width;var e=screen.height,g="pi"===A?900:600,d=Math.min(g,.7*a);g=Math.min(g,.7*e);m.open(q,"_blank","toolbar\x3d0,status\x3d0,width\x3d"+d+",height\x3d"+g+",top\x3d"+(e/2-g/2)+",left\x3d"+(a/2-d/2))}else m.open(q,"_blank");S();l.trigger("ssf:event:share",p)}})});l.declarative("ssf-share-icon","click",function(c){b.logCounter("DPX.Desktop.SheetClick");b.logCounter("SheetClick");b.logCounter(t,"SheetClick");if(x)return S();J(c.$currentTarget);
p=l.extend(p,c.data);p.shareDataAttributes=l.extend(f.shareDataAttributes,c.data.shareDataAttributes);var e=p.shareDataAttributes.ingress;b.logCounterRefactor("SheetClick",e);p.isConfigMigrationEnabled&&v&&(p.aapiBaseUrl=v.getAapiBaseUrl(p.shareDataAttributes.marketplaceId,p.url));if(!l.objectIsEmpty(c.data.associateLink)&&P.length)b.logCounter("SheetClick.Associate"),l.trigger("ac-getlink-bottomsheet-event",p);else{l.extend(g[p.lang],p.t);var n=B(p,p.channels);p.builtChannels=n;p.url=p.url.startsWith("/")?
""+m.location.origin+p.url:p.url;p.shareUrl=new y(p.url,p.refId);aa()&&(p.shareUrl=new y(p.url,p.refId),p.shareUrl.url.searchParams.set("psc",1));a.set("shareData",p);!k.isDesktop()||p.isIpadFixesEnabled&&k.isIpadIOS()&&k.isNativeWebShareAvailable()?p.displayCustomShareSheet||p.customize||p.caf?Y(p):h.launchNativeShareSheet(c,p,Z,R):(p.isUnrecognizedUsersRichPreviewEnabled&&p.shareUrl.url.searchParams.set("starsLeft",1),p.image=p.image||d("#imgTagWrapperId img").attr("src"),R(p),b.logCounter("DPX.Desktop.SheetOpen"),
b.logCounter("SheetOpen"),b.logCounter(t,"SheetOpen"),b.logCounterRefactor("SheetOpen",e),b.logCSAEvent(z.CSA_HIT_TYPE.CLICK_SUCCESS,{channel:z.EMPTY_STRING,refMarker:p.shareUrl.refMarker.click,refererURL:p.refererURL,shareDataAttributes:p.shareDataAttributes,treatment:p.treatment||"",weblab:p.weblab||""}));k.isSafari()&&k.isDesktop()&&(c=Z({shareData:p,channelRef:z.CP_CHANNEL_REF}),G.fetch({data:c,callback:function(a){b.logCounter("TinyUrlOnSheetOpen");I=a}}));l.trigger("ssf:event:sheetOpen",p)}});
d(document).delegate(".ssf-copy,.ssf-channel.copy","click",function(a){b.logCounter("ShareClick");b.logCounter("DPX.Desktop.ChannelClick");b.logCounter(t,"ChannelClick");b.logCounterRefactor("ChannelClick",p.shareDataAttributes.ingress);a.preventDefault();var c=p;a=c.shareUrl;var e=c.shareDataAttributes,g=c.treatment;g=g===n?"":g;var f=c.weblab;f=f===n?"":f;c=c.isBestFormatEnabled;var v=z.CP_CHANNEL_REF,B=a.refMarker.getClickForChannel(v),y={channel:z.CP_CHANNEL_REF,refMarker:B,shareDataAttributes:e,
treatment:g,weblab:f},A=d(this);a.refMarker.isBestFormatEnabled=c;var q=a.getReturnForChannel(v);k.isSafari()&&k.isDesktop()?navigator.clipboard.writeText(I||q).then(function(){ca(p,y,A)},function(){U(y)}):(a=Z({shareData:p,channelRef:v}),h.showSpinner(A),G.fetch({data:a,callback:function(a){h.hideSpinner(A);navigator.clipboard.writeText(a||q).then(function(){ca(p,y,A)},function(){U(y)})}}));l.trigger("ssf:event:share",p)});d(document).delegate(".ssf-embed,.ssf-channel.embed","click",function(a){a.preventDefault();
var c=p;a=c.shareDataAttributes;var k=c.treatment;k=k===n?"":k;var g=c.weblab;g=g===n?"":g;c={channel:"embed",refMarker:c.shareUrl.refMarker.getClickForChannel(z.EMBED_CHANNEL_REF),shareDataAttributes:a,treatment:k,weblab:g};b.logCSAEvent(z.CSA_HIT_TYPE.SHARE,c);b.logCounter("DPX.Desktop.ChannelClick");b.logCounter(t,"ChannelClick");b.logCounter("ChannelClick.Embed");b.logCounter("ShareClick");b.logCounterRefactor("ChannelClick",a.ingress);N.create(d(".ssf-channel.embed"),p.kpModalParams).show()});
q=function(){C=d(".ssf-share-trigger");D=A(C);var a=D.width;if(!d(".ssf-background").length&&D.background){var b=1.4*a;b=d('\x3cdiv class\x3d"ssf-background'+(D.floatedIcon?"-float":"")+'"\x3e\x3c/div\x3e').css({width:b,height:b});C.wrap(b)}D.icon&&C.css({height:a,width:a,backgroundImage:"url("+V()+")"})};k.isIE()&&d(".ssf-share-trigger,.ssf-background").remove();l.on("a:popover:afterUpdatePosition:ssf-share-popover",function(a){a=a.popover.$popover;var b=a.position().left-p.popoverDistance;a.find(".a-arrow-border").css({right:24,
left:""});a.css({left:b})});l.on("ssf:event:trigger-share-widget",function(a){l.trigger("a:declarative:ssf-share-icon:click",{data:a,$currentTarget:(1<arguments.length&&arguments[1]!==n?arguments[1]:n)||L})});l.on("a:popover:show:ssf-share-popover",function(){x=!0;document.getElementsByClassName("ssf-share-trigger")[0].setAttribute("aria-expanded","true")});l.on("a:popover:hide:ssf-share-popover",function(){x=!1;document.getElementsByClassName("ssf-share-trigger")[0].setAttribute("aria-expanded",
"false")});l.on("a:popover:show:ssf-share-modal",function(){x=!0;document.getElementsByClassName("ssf-share-trigger")[0].setAttribute("aria-expanded","true")});l.on("a:popover:hide:ssf-share-modal",function(){x=!1;document.getElementsByClassName("ssf-share-trigger")[0].setAttribute("aria-expanded","false")});l.on("a:sheet:beforeShow:ssf-customize-bottom-sheet",function(a){a.sheet.$container.css("height","")});q()})()}catch(w){b.logCounter("DPX.Desktop.Error"),b.logCounter(t,"Error"),b.logLoad("Error"),
b.logFatal("Error loading Share Framework AUI: "+w.toString())}finally{b.logCounter("DPX.Desktop.Render"),b.logCounter(t,"Render"),b.logLoad("Render"),l.trigger("ssf:event:load"),b.stopTimer(t)}return{init:q}});"use strict";var ba=function(){return function(l,d){if(Array.isArray(l))return l;if(Symbol.iterator in Object(l)){var m=[],f=!0,a=!1,h=n;try{for(var e=l[Symbol.iterator](),c;!(f=(c=e.next()).done)&&(m.push(c.value),!d||m.length!==d);f=!0);}catch(b){a=!0,h=b}finally{try{if(!f&&e["return"])e["return"]()}finally{if(a)throw h;
}}return m}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}();r.when("A","SocialShareWidgetConfig","SocialShareWidget").register("SocialShareWidgetTemplating",function(l,d,m){m=m.SocialShareCore;var f=l.$,a=m.Detection.isClipboardAvailable,h=m.Detection.isDesktop,e=d.excludedChannels;a()||e.push("copy");var c=function(a){return'\x3cspan class\x3d"a-spinner a-spinner-'+a+' a-align-center aok-hidden"\x3e\x3c/span\x3e'};return{build:function(b){var l=b.shareUrl,q=b.socialLinks,
m=q===n?{}:q;q=b.shareDataAttributes;var t=b.builtChannels,w=b.kpModalParams,k=b.t;m.email=b.mailToUri;var g='\x3cspan class\x3d"a-button ssf-copy"\x3e\n        \x3cspan class\x3d"a-button-inner"\x3e\n          \x3cinput class\x3d"a-button-input" type\x3d"button" aria-label\x3d"'+k.taf_copy_tooltip+'"\x3e\n          \x3cspan class\x3d"a-button-text" aria-hidden\x3d"true"\x3e\n            \x3cbutton class\x3d"a-button-text"\x3e\n              \x3cdiv class\x3d"copy-label"\x3e\n                '+k.taf_copy_tooltip+
"\n              \x3c/div\x3e\n            \x3c/button\x3e\n          \x3c/span\x3e\n        \x3c/span\x3e\n      \x3c/span\x3e";!h()&&a()&&1>f(".ssf-feedback").length&&f(document.body).append('\x3cdiv class\x3d"a-changeover ssf-feedback" style\x3d"display:none"\x3e\n          \x3cdiv class\x3d"a-changeover-inner"\x3e\n            \x3ci class\x3d"a-icon a-icon-checkmark-inverse"\x3e\x3c/i\x3e\n            \x3cstrong class\x3d"a-size-medium"\x3e'+k.taf_copy_url_changeover+"\x3c/strong\x3e\n          \x3c/div\x3e\n        \x3c/div\x3e");
var B=function(a){return{title:k["taf_"+a.name+"_tooltip"]||a.label,label:k["taf_"+a.name+"_name"]||a.label}};d.lineMarketplaces.includes(q.marketplaceId)||m.li?e.push("pi"):e.push("li");w||e.push("embed");d.cnMarketplace.includes(q.marketplaceId)&&e.push.apply(e,K(d.nonCNChannels));return{getModal:function(){var b="",f=!0,d=!1,h=n;try{for(var p=Object.entries(t)[Symbol.iterator](),q;!(f=(q=p.next()).done);f=!0){var u=ba(q.value,2),w=u[0],x=u[1];if(!e.includes(w)&&"copy"!==w){var v=B(x),V=m[x.name]||
x.getSharingUrl();b+='\x3cli class\x3d"ssf-channel-h"\x3e\n              \x3ca class\x3d"ssf-channel a-color-base" aria-label\x3d"'+v.label+'" href\x3d"'+V+'" title\x3d"'+v.title+'" data-key\x3d"'+w+'"\x3e\n                '+c("medium")+'\n                \x3ci aria-hidden\x3d"true" style\x3d"background-image: url('+x.image+')"\x3e\x3c/i\x3e\n              \x3c/a\x3e\n              \x3cspan\x3e'+v.label+"\x3c/span\x3e\n            \x3c/li\x3e"}}}catch(J){d=!0,h=J}finally{try{!f&&p.return&&p.return()}finally{if(d)throw h;
}}f=a()?'\x3cdiv class\x3d"ssf-copy-section a-box a-padding-base a-spacing-top-large"\x3e\n              \x3cdiv class\x3d"link-section"\x3e'+l.return+'\x3c/div\x3e\n              \x3cdiv class\x3d"copy-button"\x3e'+g+"\x3c/div\x3e\n          \x3c/div\x3e":"";return'\x3ch3 class\x3d"a-spacing-large"\x3e'+k.taf_share_bottom_sheet_title+"\x3c/h3\x3e"+('\x3cdiv class\x3d"ssf-h-icons"\x3e\x3cul class\x3d"ssf-h-icons a-nostyle"\x3e'+b+"\x3c/ul\x3e\x3c/div\x3e")+f},getPopover:function(){var a="",b=!0,k=
!1,g=n;try{for(var f=Object.entries(t)[Symbol.iterator](),d;!(b=(d=f.next()).done);b=!0){var h=ba(d.value,2),l=h[0],q=h[1];if(!e.includes(l)){var v=B(q),u=m[q.name]||q.getSharingUrl();a+='\x3cli class\x3d"ssf-channel-v"\x3e\n              \x3ca class\x3d"ssf-channel '+l+' a-color-base" aria-label\x3d"'+v.label+'" href\x3d"'+u+'" title\x3d"'+v.title+'" data-key\x3d"'+l+'"\x3e\n                '+c("small")+'\n                \x3ci aria-hidden\x3d"true" style\x3d"background-image: url('+q.image+')"\x3e\x3c/i\x3e\n                \x3cspan class\x3d"'+
l+'-label"\x3e'+v.label+"\x3c/span\x3e\n              \x3c/a\x3e\n            \x3c/li\x3e"}}}catch(J){k=!0,g=J}finally{try{!b&&f.return&&f.return()}finally{if(k)throw g;}}return'\x3cul class\x3d"a-nostyle"\x3e'+a+"\x3c/ul\x3e"},getBottom:function(){var a="",b=!0,g=!1,f=n;try{for(var d=Object.entries(t)[Symbol.iterator](),h;!(b=(h=d.next()).done);b=!0){var l=ba(h.value,2),q=l[0],u=l[1];if(!e.includes(q)){var v=B(u),w=m[u.name]||u.getSharingUrl();a+='\x3cli class\x3d"ssf-channel-b a-padding-base"\x3e\n              \x3ca class\x3d"ssf-channel '+
q+' a-color-base" aria-label\x3d"'+v.label+'" href\x3d"'+w+'" title\x3d"'+v.title+'" data-key\x3d"'+q+'"\x3e\n                '+c("medium")+'\n                \x3ci aria-hidden\x3d"true" style\x3d"background-image: url('+u.image+')"\x3e\x3c/i\x3e\n                \x3cspan class\x3d"a-size-base-plus"\x3e'+v.label+"\x3c/span\x3e\n              \x3c/a\x3e\n              \x3c/li\x3e"}}}catch(J){g=!0,f=J}finally{try{!b&&d.return&&d.return()}finally{if(g)throw f;}}return'\x3cdiv class\x3d"a-padding-base ssf-header"\x3e\n          \x3ch4\x3e'+
k.taf_share_bottom_sheet_title+'\x3c/h4\x3e\n        \x3c/div\x3e\x3cdiv class\x3d"ssf-scroll"\x3e\x3cul class\x3d"a-nostyle"\x3e'+(a+"\x3c/ul\x3e")+"\x3c/ul\x3e\x3c/div\x3e"},getCustomize:function(){var a=void 0;r.now("SocialShareWidgetCustomizeTemplate").execute(function(c){a=b.customize?c.getCustomizeBox(k):""});var g='\x3ch3 class\x3d"a-spacing-base a-spacing-top-base"\x3e'+k.taf_share_bottom_sheet_title+"\x3c/h3\x3e",e='\x3cdiv class\x3d"ssf-heading-container"\x3e\x3cimg class\x3d"ssf-back-btn" src\x3d"https://m.media-amazon.com/images/G/01/share-icons/arrow-left.svg"\x3e'+
g+"\x3c/div\x3e",f='\x3cdiv class\x3d"a-padding-base a-box ssf-preview-container ssf-no-border" style\x3d"background-image: url('+b.image+')"\x3e'+c("medium")+"\x3c/div\x3e",d=b.caf?'\x3cdiv class\x3d"a-row a-spacing-top-large'+(b.customize?"":" a-spacing-large")+'"\x3e\n          \x3cdiv class\x3d"a-column a-span9"\x3e\n            \x3cstrong class\x3d"ssf-caf-toggle-label"\x3e'+k.taf_custshare_caf_ingress+'\x3c/strong\x3e\n          \x3c/div\x3e\n          \x3cdiv class\x3d"a-column a-span3 a-text-right a-span-last"\x3e\n            \x3cdiv class\x3d"a-switch-row ssf-caf-toggle"\x3e\n          \x3cinput class\x3d"a-declarative a-switch-input" data-action\x3d"a-switch-input" name\x3d"caf" type\x3d"checkbox"\x3e\n          \x3clabel class\x3d"a-switch-label a-declarative" data-action\x3d"a-switch-label"\x3e\n            \x3cdiv class\x3d"a-switch a-declarative" data-action\x3d"a-switch"\x3e\n              \x3ca class\x3d"a-switch-control" aria-label\x3d"caf" style\x3d"transform: translateX(-1px) translateZ(0px);"\x3e\x3c/a\x3e\n            \x3c/div\x3e\n          \x3c/label\x3e\n        \x3c/div\x3e\n          \x3c/div\x3e\n        \x3c/div\x3e':
"",h='\x3cspan class\x3d"a-button a-button-primary a-spacing-top-small ssf-customize-share-btn"\x3e\n          \x3cspan class\x3d"a-button-inner"\x3e\n            \x3cinput class\x3d"a-button-input" type\x3d"button" aria-labelledby\x3d"ssf-customize-share-btn"\x3e\n            \x3cspan class\x3d"a-button-text" aria-hidden\x3d"true" id\x3d"ssf-customize-share-btn"\x3e\n              '+b.shareLabel+"\n              "+c("small")+"\n            \x3c/span\x3e\n          \x3c/span\x3e\n        \x3c/span\x3e";
return'\x3cdiv class\x3d"a-padding-base ssf-customize-container-one"\x3e'+g+f+d+a+h+"\x3c/div\x3e"+(b.customize?'\x3cdiv class\x3d"a-padding-base ssf-customize-container-two aok-hidden"\x3e'+e+f+d+'\x3cdiv class\x3d"a-row a-spacing-top-base a-padding-base ssf-tabs"\x3e\x3c/div\x3e'+h+"\x3c/div\x3e":"")}}}}});"use strict";r.when("jQuery","SocialShareWidget","SocialShareWidgetState","SocialShareWidgetLinkUtil","SocialShareWidgetAPI").register("SocialShareWidgetTiny",function(l,d,E,f,a){d=d.SocialShareCore;
var h=d.Metrics,e=d.Constants;return{fetch:function(c){var b=c.data,d=c.isAsync,q=d===n?!0:d,x=c.callback;try{if(0<b.refMarkerId){var t=new URL(b.url),w=t.searchParams.get("ref_");w&&(w=w+"_"+b.refMarkerId,t.searchParams.set("ref_",w),b.url=t.toString())}var k=E.get("shareData");if(E.get("dpx")){var g=E.get("shareAapiCsrfToken"),B=E.get("aapiBaseUrl");if(k.isBestFormatEnabled){var y=new URL(b.url);y.searchParams.append("bestFormat","true");b.url=y.toString()}if(k.isShortTitleGatingEnabled&&""!==k.titleSource){var z=
new URL(b.url);z.searchParams.append("titleSource",k.titleSource);b.url=z.toString()}b.url=f.getLinkWithFlippedStarsLeft(b.url);"dprv"===k.refId&&(b.shareAapiCsrfToken=g,b.aapiBaseUrl=B,b.tinyUrlEnabled=!0,h.logCounter("reviews.tiny"))}var A=m.location.protocol+"//",C=b.deeplinkInfo;if(C&&C.isDisabled&&C.flag!=n){var p=new URL(b.url);p.searchParams.append("nodl",C.flag);b.url=p.toString()}if(b.isOnShareGatingEnabled)a.build(k).onShare(q,b.url,b.extractedRef,b.osType,x);else if(b.tinyUrlEnabled)if(b.aapiBaseUrl&&
b.shareAapiCsrfToken&&b.marketplaceId)(function(){var a=""+A+b.aapiBaseUrl+"/api/marketplaces/"+b.marketplaceId+"/social-share/tinyurl",c={longUrl:b.url},g={"Accept-Language":"en-US",Accept:'application/vnd.com.amazon.api+json; type\x3d"social-share.tinyurl/v1"',"x-api-csrf-token":b.shareAapiCsrfToken,"Content-Type":"application/x-www-form-urlencoded","x-amzn-encrypted-slate-token":E.get("slateToken")};h.startTimer("Tiny");l.ajax(a,{type:"POST",headers:g,xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",
async:q,data:c,success:function(a){h.logCounter("Tiny.Response");h.logCounter("Desktop.Tiny.Response");h.logCounterRefactor("Tiny.Response");a.entity&&a.entity.shortUrl?(x(a.entity.shortUrl.url),h.logCounter("Tiny.Success")):(r.log("Error Generating TinyURL. with share url "+b.url,"ERROR",e.SSF_AUI_PACKAGE_ATTRIBUTION),h.logCounter("Tiny.Error"),x(b.url))},error:function(c){c&&c.status!=n&&0===c.status?h.logCounter("Tiny.Blocked"):(r.log("Error Generating TinyURL with share url "+b.url+", Error Code: "+
c.status+", Error Response: "+c.responseText+", Endpoint: "+a,"ERROR",e.SSF_AUI_PACKAGE_ATTRIBUTION),h.logCounter("Tiny.Error"),h.logCounter("Desktop.Tiny.Error"),h.logCounterRefactor("Tiny.Error"));x(b.url)},complete:function(){h.stopTimer("Tiny")}})})();else return h.logCounter("Tiny.Unavailable"),x(b.url);else return x(b.url)}catch(D){return r.log("Error generating tinyURL: "+D.toString(),"ERROR",e.SSF_AUI_PACKAGE_ATTRIBUTION),b.url}}}});"use strict";r.when("A").register("SocialShareWidgetState",
function(l){var d="social-"+m.ue_id+"-share",n={slateToken:l.$('meta[name\x3d"encrypted-slate-token"]').attr("content")||"",dpx:!1};l.state(d,n);return{getCurrent:function(){return l.state(d)},get:function(f){return this.getCurrent()[f]},getAndReset:function(f){var a=this.get(f);a&&this.set(f,null);return a},set:function(f,a){var h=this.getCurrent();l.trigger("ssf:event:state:set",h);if(!f)return h;h[f]=a;h=l.state(d,h);l.trigger("ssf:event:state:changed",h);return h}}});"use strict";r.when("jQuery",
"SocialShareWidget","SocialShareWidgetState").register("SocialShareWidgetAPI",function(l,d,E){d=d.SocialShareCore;var f=d.Constants,a=d.Metrics,h=m.location.protocol+"//",e=a.getMetricName(l,f.customize),c=Object.freeze({GET:"GET",POST:"POST",PUT:"PUT"}),b=Object.freeze({generateImage:'application/vnd.com.amazon.api+json; type\x3d"aapi.socialshareapicontracts.custom.ssapis.product.generate.customized.image.response/v1"',externalizeImage:'application/vnd.com.amazon.api+json; type\x3d"aapi.socialshareapicontracts.custom.ssapis.product.externalize.customized.image.response/v1"',
fetchTabs:'application/vnd.com.amazon.api+json; type\x3d"aapi.socialshareapicontracts.custom.ssapis.product.shareable.attributes.response/v1"',getWeblabTreatmentAndTrigger:'application/vnd.com.amazon.api+json; type\x3d"aapi.socialshareapicontracts.weblab.treatment-and-trigger.response/v1"',onShare:'application/vnd.com.amazon.api+json; type\x3d"aapi.socialshareapicontracts.social-share.on-share.response/v1"',fetchCAFID:'application/vnd.com.amazon.api+json; type\x3d"aapi.consultafriendcontracts.custom.consult-a-friend.feedback-request.response/v1"',
fetchHmpPollId:'application/vnd.com.amazon.api+json; type\x3d"aapi.consultafriendcontracts.custom.helpmepick.create-poll.response/v1"',getShortTitle:'application/vnd.com.amazon.api+json; type\x3d"aapi.socialshareapicontracts.social-share.get-short-title.response/v1"'}),u=function(a){return(a=a.entity)&&"SUCCEEDED"===a.status?a.tabs.map(function(a){var b={id:a.id,heading:a.shortDisplayName,text:a.longDisplayName,isQuote:!0};a.params&&(b.values=Object.values(a.params)[0],b.isQuote=!1);return b}):[]};
return{build:function(d){var q=d.shareAapiCsrfToken,t=d.locale,m=d.cafAapiCsrfToken,k=d.productType,g=d.shareDataAttributes,B=g.marketplaceId,y=g.asin,z=g.ingress,A=h+d.aapiBaseUrl,C=E.get("slateToken");C||a.logCounter("slate.missing");var p=function(a){return A+"/custom/socialshareapicontracts/marketplaces/"+B+"/products/"+y+"/shareframework/"+a},D=function(a){var b=a.async;l.ajax({url:a.url,type:a.type,async:b===n?!0:b,data:a.data,headers:{"Accept-Language":t,Accept:a.accept,"x-api-csrf-token":a.cafToken||
q,"Content-Type":"application/x-www-form-urlencoded","x-amzn-encrypted-slate-token":C},xhrFields:{withCredentials:!0},success:a.success,error:a.error,complete:a.complete})};return{generateImage:function(g,k){var d=p("generatecustomizedimage");a.startTimer("GenerateCustomizeImage");D({url:d,type:c.POST,data:g,accept:b.generateImage,success:function(b){"SUCCEEDED"===b.entity.status?(a.logCounter("GenerateCustomizeImage.Success"),a.logCounter(e,"generateCustomizeImageSuccess"),a.logCounterRefactor("generateCustomizeImageSuccess",
z)):(a.logCounter("GenerateCustomizeImage.Fail"),a.logCounter(e,"generateCustomizeImageFail"),a.logCounterRefactor("generateCustomizeImageFail",z));k(b)},error:function(b){a.logCounter("GenerateCustomizeImage.Error");a.logCounter(e,"generateCustomizeImageError");a.logCounterRefactor("generateCustomizeImageError",z);a.logCounter("generateCustomizeImageError");r.log("Error generating customize image. with request URL "+d+", Error Code: "+b.status+". Error Response: "+b.responseText,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION);
k(b)},complete:function(){a.stopTimer("GenerateCustomizeImage")}})},externalizeImage:function(g,k,d){var h=p("externalizecustomizedimage?customizedImageUrl\x3d"+g);a.startTimer("ExternalizeImage");D({url:h,type:c.PUT,accept:b.externalizeImage,async:d,success:function(a){k(a)},error:function(b){a.logCounter(e,"externalizeImageFail");a.logCounterRefactor("externalizeImageFail",z);a.logCounter("externalizeImageFail");r.log("Error externalizing image. with request URL "+h+", Error Code: "+b.status+". Error Response: "+
b.responseText,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION);k({})},complete:function(){a.stopTimer("ExternalizeImage")}})},fetchTabs:function(g){var d=p("productshareableattributes?locale\x3d"+t+"\x26type\x3d"+k);a.startTimer("FetchTabs");D({url:d,type:c.GET,accept:b.fetchTabs,success:function(b){a.logCounter(e,"FetchTabsSuccess");a.logCounterRefactor("FetchTabsSuccess",z);g(u(b))},error:function(b){a.logCounter(e,"FetchTabsFail");a.logCounterRefactor("FetchTabsFail",z);a.logCounter("FetchTabsFail");r.log("Error Fetching customize share tabs. with request URL "+
d+", Error Code: "+b.status+". Error Response: "+b.responseText,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION);g([])},complete:function(){a.stopTimer("FetchTabs")}})},fetchCAFID:function(g){var k=1<arguments.length&&arguments[1]!==n?arguments[1]:!0,h=A+"/custom/consultafriendcontracts/marketplaces/"+B+"/consultafriend/feedback-request/"+y;a.logCounter(e,"CAF.createCAFID.called");a.logCounterRefactor("CAF.createCAFID.called",z);a.startTimer("CafIdGeneration");D({url:h,type:c.POST,accept:b.fetchCAFID,async:k,
cafToken:m,success:function(a){g(a.entity&&a.entity.cafId,y,d.url)},error:function(b){b&&b.status!==n&&0===b.status?a.logCounter(e,"CAF.createCAFID.Blocked"):(a.logCounter(e,"CAF.createCAFID.failed"),a.logCounterRefactor("CAF.createCAFID.failed",z),r.log("Error Creating CAF Id. with request URL "+h+", Error Code: "+b.status+". Error Response: "+b.responseText,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION),g())},complete:function(){a.stopTimer("CafIdGeneration")}})},fetchHmpPollId:function(g){var k=1<arguments.length&&
arguments[1]!==n?arguments[1]:!0,e=d.hmpAapiCsrfToken,h=l.param(d.hmpState,!0),p=A+"/custom/consultafriendcontracts/marketplaces/"+B+"/helpmepick/poll?"+h;a.logCounter("HMP.fetchHmpPollId.called."+z);a.startTimer("HmpIdGeneration");D({url:p,type:c.POST,accept:b.fetchHmpPollId,async:k,cafToken:e,success:function(a){g(a.entity&&a.entity.cafId)},error:function(b){a.logCounter("HMP.fetchHmpPollId.failed."+z);r.log("Error Fetching Poll Id. with request URL "+p+", Error Code: "+b.status+". Error Response: "+
b.responseText,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION);g()},complete:function(){a.stopTimer("HmpIdGeneration")}})},getWeblabTreatmentAndTrigger:function(g,k,e){var d=A+"/custom/socialshareapicontracts/marketplaces/"+B+"/weblab/get-weblab-treatment-and-record?name\x3d"+k;a.startTimer("GetWeblabTreatmentAndTriggerMetric");D({url:d,type:c.GET,accept:b.getWeblabTreatmentAndTrigger,async:g,success:function(b){a.logCounter("GetWeblabTreatmentAndRecordSuccess");e(b)},error:function(b){a.logCounter("GetWeblabTreatmentAndRecordFail");
r.log("Error calling weblab treatment and trigger. with request URL "+d+", Error Code: "+b.status+". Error Response: "+b.responseText,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION);e([])},complete:function(){a.stopTimer("GetWeblabTreatmentAndTriggerMetric")}})},onShare:function(g,k,e,d,h){var l=A+"/custom/socialshareapicontracts/marketplaces/"+B+"/products/"+y+"/shareframework/onshare";a.startTimer("onShare");D({url:l,type:c.POST,accept:b.onShare,async:g,data:{longUrl:k,channel:e,osType:d},success:function(b){"SUCCEEDED"===
b.entity.status?(h(b.entity.shortUrl.url),a.logCounter("OnShare.Success")):(r.log("The request was sent successfully, but the response status indicates a failure with request URL "+k,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION),a.logCounter("OnShare.Failure"),h(k))},error:function(b){b&&b.status!==n&&0===b.status?a.logCounter("OnShare.Blocked"):(a.logCounter("OnShare.Error"),r.log("Error calling on share. with request URL "+k,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION),h([]))},complete:function(){a.stopTimer("onShare")}})},
getShortTitle:function(g,k){var e=A+"/custom/socialshareapicontracts/marketplaces/"+B+"/products/"+y+"/shareframework/getshorttitle",d=g?"Async":"Sync";a.startTimer("GetShortTitle-"+d);D({url:e,type:c.GET,accept:b.getShortTitle,async:g,success:function(b){"SUCCEEDED"===b.entity.status?(a.logCounter("GetShortTitle.Success"),k(b.entity)):(r.log("The request was sent successfully, but the response status indicates a failure","ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION),a.logCounter("GetShortTitle.Failure"),
k([]))},error:function(b){a.logCounter("GetShortTitle.Error");r.log("Error calling get short title. with request URL "+e+", Error Code: "+b.status+". Error Response: "+b.responseText,"ERROR",f.SSF_AUI_PACKAGE_ATTRIBUTION);k([])},complete:function(){a.stopTimer("GetShortTitle-"+d)}})}}}}});"use strict";r.when("A","SocialShareWidget").register("SocialShareWidgetCustomShareOptionsTemplate",function(l,d){var m=l.capabilities.rtl;d=d.SocialShareCore.Detection;var f=d.isClipboardAvailable,a=d.isAndroid(),
h=void 0,e=l.constants.HIDE_CLASS;r.when("mash").execute(function(a){return h=a});var c=function(){h||r.now("mash").execute(function(a){return h=a});return h},b=function(a,b,k){if(0===a.length||!b&&!c())return k([]);var g=a.length,e=[];b?(a.forEach(function(a){e[a.label.toLowerCase()]=a}),k(e)):a.forEach(function(a){u(a,function(a,b){g--;b&&(e[a.label.toLowerCase()]=a);(3<=e.length||0>=g)&&k(e)})})},u=function(b,e){var k="whatsapp"===b.label.toLowerCase()&&a;c().canLaunchIntentURL({url:b.schemeURI,
successCallback:function(a){if(k)return e(b,!0);e(b,a)},failCallback:function(){if(k)return e(b,!0);e(b,!1)}})},q=function(a){var b=1<arguments.length&&arguments[1]!==n?arguments[1]:"";a=a.startsWith("http")?a:"https://m.media-amazon.com/images/G/01/share-icons/"+a;return'\x3cimg class\x3d"'+b+'" src\x3d"'+a+'" /\x3e'},x=function(){return'\x3cspan class\x3d"a-size-mini ssf-rating-count"\x3e'+(0<arguments.length&&arguments[0]!==n?arguments[0]:"")+"\x3c/span\x3e"};return{getChannelsHtml:function(d,
h){var k="";b(d.customShareOptions,d.isMWebCustomShare,function(b){b=l.extend(b,d.defaultCustomShareOptions);d.customShareBuiltChannels=b;var g=Object.keys(b);if(0===g.length)throw Error("Fallback to Native Sheet: channel key list is empty.");if(d.isMWebCustomShare&&(a&&navigator&&f()||!a)){var y=g.indexOf("copy");-1!==y&&(g.splice(y,1),g.splice(2,0,"copy"))}for(y=0;y<g.length;y++){var q=g[y],m=a&&"copy"===q&&!(navigator&&f()),u="more"===q&&!(c()||d.isMWebCustomShare);if(!m&&!u){m=k;u=d;var p=b[q];
q=p.stringId;var t=p.className,x=p.label;p="https://m.media-amazon.com/images/G/01/share-icons/"+p.image;u='\x3cli class\x3d"ssf-custom-share-option '+(t===n?"":t)+'"  data-name\x3d"'+x.toLowerCase()+'"\x3e\n                    \x3cdiv class\x3d"ssf-custom-share-spinner" role\x3d"button" tabindex\x3d"0"\x3e\n                        '+('\x3cspan class\x3d"a-spinner a-spinner-medium a-align-center '+e+'"\x3e\x3c/span\x3e')+'\n                        \x3cimg src\x3d"'+p+'" title\x3d"'+x+'" aria-label\x3d"'+
x+'"/\x3e\n                    \x3c/div\x3e\n                    \x3cspan class\x3d"label a-size-small"\x3e'+(u.t[q]||x)+"\x3c/span\x3e\n                 \x3c/li\x3e";k=m+u}}h('\n                    \x3cdiv class\x3d"ssf-custom-channels-container a-color-base-background"\x3e\n                        \x3cul class\x3d"ssf-custom-share-options-container a-unordered-list a-nostyle"\x3e\n                            '+k+"\n                        \x3c/ul\x3e\n                    \x3c/div\x3e\n                ")})},
getPreviewImage:function(a){var b=a.starRating,c=a.numberOfReviews,g=m?"r":"";a='\x3cdiv class\x3d"ssf-cso-p-image ssf-regular"\x3e'+q(a.productImage,"ssf-regular")+"\x3c/div\x3e";b=b?q("RIO"+b+g+".png","ssf-caf-stars"):"";c=x(c);return'\x3cdiv class\x3d"ssf-cso-p-image"\x3e'+a+('\x3cdiv class\x3d"ssf-cso-stickers ssf-regular"\x3e'+b+c+"\x3c/div\x3e")+"\x3c/div\x3e"},getErrorAlert:function(a){return'\x3cdiv class\x3d"ssf-error-text a-row '+e+'"\x3e\n          \x3cdiv class\x3d"a-box a-alert-inline a-alert-inline-error" role\x3d"alert"\x3e\n              \x3cdiv class\x3d"a-box-inner a-alert-container"\x3e\n                  \x3ci class\x3d"a-icon a-icon-alert"\x3e\x3c/i\x3e\n                  \x3cdiv class\x3d"a-alert-content"\x3e\n                    \x3cspan class\x3d"ssf-error-generic '+
e+'"\x3e'+a.taf_custshare_channel_error_generic+'\x3c/span\x3e\n                    \x3cspan class\x3d"ssf-error-email '+e+'"\x3e'+a.taf_custshare_channel_error_email+"\x3c/span\x3e\n                  \x3c/div\x3e\n              \x3c/div\x3e\n          \x3c/div\x3e\n        \x3c/div\x3e"},getAvailableChannels:b}});"use strict";var X="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"===typeof Symbol&&l.constructor===Symbol&&l!==
Symbol.prototype?"symbol":typeof l};r.when("A","SocialShareWidget","SocialShareWidgetAPI","SocialShareWidgetState").register("SocialShareWidgetCustomShareOptions",function(l,d,E,f){var a=l.$;d=d.SocialShareCore;var h=d.ShareSheet,e=d.Metrics,c=d.Constants,b=void 0,u=void 0,q=void 0,x=void 0,t=!1,w=l.constants.HIDE_CLASS;r.when("mash").execute(function(a){u=a});r.when("SocialShareWidgetTiny").execute(function(a){b=a});r.when("SocialShareWidgetCustomizeUtils").execute(function(a){q=a});r.when("SocialShareWidgetCAFUtils").execute(function(a){x=
a});return{init:function(k,g,d,y,z,A){var B=k.customShareBuiltChannels;g=k.isCustomShareOptionsSheetEnabled;var p=g===n?!1:g;g=k.isFallbackShareUrlEnabled;var E=g===n?!1:g;g=k.caf;var I=g===n?!1:g,P=k.shareDataAttributes;g=k.treatment;var L=g===n?"":g;g=k.weblab;var v=g===n?"":g;g=k.refererURL;var V=g===n?"":g;l.on("ssf:event:caf-switch-change",function(a){t=a});var J=function(a){a.addClass("ssf-noclick");a.find(".a-spinner").removeClass(w)},H=function(a){a.removeClass("ssf-noclick");a.find(".a-spinner").addClass(w)},
M=function(){return t?(k.t["taf-share-caf-messageprefix"]||"")+" "+k.title:k.title},N=function(a,c,g){t?x.prepareShareUrl(k,a,b,c,function(a,b){return g(a,b)}):k&&k.isHmpShareSheet?x.prepareHmpShareUrl(k,a,b,c,function(a,b){return g(a,b)}):q.prepareShareUrl(k,a,b,c,function(a){return g(a)})},O=function(a){a&&l.trigger("ssf:event:caf-share-complete-success",k)},Q=function(){u.dispatchEvent({type:"axf:consultAFriend:shareCompletedSuccessfully",detail:{isHmp:!0}})},W=function(a,b,g,e){try{var d=encodeURIComponent(e+
" \n "+g);return"Messages"===b?l.capabilities.ios?"sms:///\x26body\x3d"+d:"mms:?\x26body\x3d"+d:"Email"===b?a=a.replace("\x26url\x3d{url}","").replace("{subject}",encodeURIComponent(k.emailSubject)).replace("{body}",""+d):"whatsApp"===b?a=a.replace("{url}",""+d):a=a.replace("{text}",encodeURIComponent(e)).replace("{url}",encodeURIComponent(g)).replace("{titleAndURL}",encodeURIComponent(d))}catch(da){return r.log("Failed to generate shareUrl, error: "+da.toString(),"ERROR",c.SSF_AUI_PACKAGE_ATTRIBUTION),
a}},G=function(a){t?(e.logCounter("Caf.customShareOptions.ChannelClick."+a),e.logCounter("CAF.edIngress.ChannelClick."+a+"."+k.cafIngressTreatment)):q.imageState.isEmpty()?e.logCounter("CustomShareOptions.ChannelClick."+a):e.logCounter("Books.customShareOptions.ChannelClick."+a)},F=function(){var a=0<arguments.length&&arguments[0]!==n?arguments[0]:"";a=0<a.length?"."+a:"";return t?""+c.CAF_CUSTOM_SHEET_CLICK_LATENCY_METRIC+a:q.imageState.isEmpty()?""+c.CUSTOM_SHEET_CLICK_LATENCY_METRIC+a:""+c.BOOKS_CUSTOM_SHEET_CLICK_LATENCY_METRIC+
a},R=function(){var a=F();e.startTimer(a);N(c.EMPTY_STRING,!k.isMWebCustomShare,function(b){var c=1<arguments.length&&arguments[1]!==n?arguments[1]:"";k.tinyUrl=b;var g=k;c&&(g=l.extend({channelSelectCB:function(){O(c)},cafSwitchEnabled:t},k),g.title=M());k&&k.isHmpShareSheet&&(g=l.extend({channelSelectCB:function(){Q()}},k),g.title=M());(new h(g)).launch(function(){e.logCounter("customShareOptions.SheetOpen")});e.stopTimer(a)})},T=function(a,b){var g=f.getAndReset(c.customizeShareStateKey);return{channel:a,
refMarker:b,refererURL:V,shareDataAttributes:P,treatment:L,weblab:v,isCustomShareOptionsSheetEnabled:p,caf:I,cafSwitchEnabled:t,customizeShareCSAData:g,cafIngressTreatment:k.cafIngressTreatment}};a(".custom-share-native-sheet").unbind("click").click(function(a){try{G("more"),d(),R()}catch(aa){r.log('Failed to launch native share sheet via "More" button, error: '+aa.toString(),"ERROR",c.SSF_AUI_PACKAGE_ATTRIBUTION)}});var Y=function(a){return a&&"keyup"===a.type&&!(13===a.keyCode||32===a.keyCode)};
g=function(b){var g=this;try{var f=function(){if(Y(b))return{v:void 0};var f=F();e.startTimer(f);G("copy");var h=c.CUSTOM_SHARE_OPTIONS_CP_CHANNEL_REF,l=a(g);J(l);N(h,!1,function(b){var g=1<arguments.length&&arguments[1]!==n?arguments[1]:"";navigator.clipboard.writeText(b).then(function(){var b=k.shareUrl.refMarker.getClickForChannel(h);e.logCSAEvent(c.CSA_HIT_TYPE.SHARE,T("copy",b));t?e.logCounter("Caf.CustomShareOptions.CopySuccess"):q.imageState.isEmpty()?e.logCounter("customShareOptions.CopySuccess"):
e.logCounter("Books.CustomShareOptions.CopySuccess");a(".ssf-feedback").show();H(l);d();e.stopTimer(f);g&&O(g);k&&k.isHmpShareSheet&&Q()},function(){e.stopTimer(f);t?e.logCounter("Caf.CustomShareOptions.CopyFail"):q.imageState.isEmpty()?e.logCounter("CustomShareOptions.CopyFail"):e.logCounter("Books.CustomShareOptions.CopyFail");A({shareData:k,channelRef:h,caf:I,cafSwitchEnabled:t});H(l)})})}();if("object"===("undefined"===typeof f?"undefined":X(f)))return f.v}catch(U){r.log("Failed to share using copy channel, error: "+
U.toString(),"ERROR",c.SSF_AUI_PACKAGE_ATTRIBUTION)}};a(".custom-share-copy").unbind("click").click(g);a(".custom-share-copy").unbind("keyup").keyup(g);g=function(b){var g=this;try{var f=function(){if(Y(b))return{v:void 0};var f=a(g),h=f.data("name"),p=F(),q=F(h);e.startTimer(p);e.startTimer(q);var v=B[h],y=c.CUSTOM_SHARE_OPTIONS_REF_PREFIX+"_"+v.ref,z=k.shareUrl.refMarker.getClickForChannel(y);a(".ssf-error-text").addClass(w);J(f);N(y,!0,function(a){var b=1<arguments.length&&arguments[1]!==n?arguments[1]:
"",g=W(v.shareUrl,v.label,a,M());u?u.launchIntentURL({url:g,successCallback:function(){e.stopTimer(p);e.stopTimer(q);H(f);d();e.logCounterRefactor("ChannelClick",P.ingress);e.logCounter("ChannelClick");G(h);b&&O(b);k&&k.isHmpShareSheet&&Q();e.logCSAEvent(c.CSA_HIT_TYPE.SHARE,T(h,z))},failCallback:function(b){r.log("Failed to launch intent URL "+g+" with error code: "+b.code,"WARN",c.SSF_AUI_PACKAGE_ATTRIBUTION);e.logCounter("customShareOptions.LaunchShareIntentFail");H(f);e.stopTimer(p);e.stopTimer(q);
E&&v.fallbackShareUrl?(e.logCSAEvent(c.CSA_HIT_TYPE.SHARE,T(h,z)),m.location=W(v.fallbackShareUrl,v.label,a,M())):(d(),R())}}):(H(f),e.logCSAEvent(c.CSA_HIT_TYPE.SHARE,T(h,z)),d(),k.isMWebCustomShare?(e.stopTimer(p),e.stopTimer(q),e.logCounterRefactor("ChannelClick",P.ingress),e.logCounter("ChannelClick"),G(h),l.capabilities.ios?m.open(g,"_top"):m.open(g,"_blank")):m.open(g,"_blank"))})}();if("object"===("undefined"===typeof f?"undefined":X(f)))return f.v}catch(U){r.log("Failed to share, error: "+
U.toString(),"ERROR",c.SSF_AUI_PACKAGE_ATTRIBUTION)}};a(".ssf-custom-share-option:not(.custom-share-copy,.custom-share-native-sheet)").unbind("click");a(".ssf-custom-share-option:not(.custom-share-copy,.custom-share-native-sheet)").unbind("keyup");a(".ssf-custom-share-option:not(.custom-share-copy,.custom-share-native-sheet)").click(g);a(".ssf-custom-share-option:not(.custom-share-copy,.custom-share-native-sheet)").keyup(g)}}});"use strict";r.when("A","SocialShareWidgetState","atf").execute(function(l,
d){var n=l.$("#ssf-primary-widget-desktop");l=l.$("#ssf-share-action");n=n.data("ssfShareIcon")||l.data("ssfShareIcon")||{};d.set("shareAapiCsrfToken",n.shareAapiCsrfToken);d.set("aapiBaseUrl",n.aapiBaseUrl);d.set("dpx",!0)});"use strict";r.when("A","SocialShareWidget").register("SocialShareSheetConfig",function(l,d){var n=d.SocialShareCore.Constants;d={image:"customchannels-whatsapp.png",stringId:"taf_customshare_whatsapp",ref:"wa",schemeURI:"whatsapp://",shareUrl:"https://api.whatsapp.com/send?text\x3d{url}",
label:"whatsApp"};var f={image:"customchannels-fb-messenger.png",stringId:"taf_customshare_fbmessenger",ref:"fm",schemeURI:"fb-messenger://",shareUrl:"fb-messenger://share?link\x3d{url}",label:"Messenger"},a={label:"Line",image:"customchannels-line.png",ref:"li",shareUrl:"https://line.me/R/share?text\x3d{url}",fallbackShareUrl:"https://social-plugins.line.me/lineit/share?url\x3d{url}",schemeURI:"line://",stringId:"taf_customshare_line"},h={label:"X",image:"customchannels-x.png",ref:"tw",shareUrl:"https://twitter.com/intent/tweet?text\x3d{text}\x26url\x3d{url}",
schemeURI:"twitter://",stringId:"taf_customshare_x"},e={image:"customchannels-telegram.png",stringId:"taf_customshare_telegram",ref:"tg",schemeURI:"telegram://",shareUrl:"https://telegram.me/share/url?{url}",label:"Telegram"},c={image:"customchannels-sms.png",stringId:"taf_customshare_messages",ref:"sms",schemeURI:"sms://",shareUrl:"sms:?\x26body\x3d{text} {url}",label:"Messages"},b={ATVPDKIKX0DER:{prodEndpoint:"data.amazon.com",gammaEndpoint:"data-us-pre-prod.iad.corp.amazon.com",mShopShareChannels:[c,
d,f,e],mWebShareChannels:[c,d,f]},A2EUQ1WTGCTBG2:{prodEndpoint:"data.amazon.ca",gammaEndpoint:"data-ca-pre-prod.iad.corp.amazon.com",mShopShareChannels:[f,d,c,e],mWebShareChannels:[f,d,c]},A1AM78C64UM0Y8:{prodEndpoint:"data.amazon.com.mx",gammaEndpoint:"data-mx-pre-prod.iad.corp.amazon.com",mShopShareChannels:[d,f,e,c,{label:"Pinterest",image:"customchannels-pinterest.png",ref:"pi",shareUrl:"https://www.pinterest.com/pin/create/button/?url\x3d{url}",schemeURI:"pinterest://",stringId:"taf_customshare_pinterest"}],
mWebShareChannels:[d,c]},A2Q3Y263D00KWC:{prodEndpoint:"data.amazon.com.br",gammaEndpoint:"data-br-pre-prod.iad.corp.amazon.com",mShopShareChannels:[d,e,f,c,h],mWebShareChannels:[d,c]},A1F83G8C2ARO7P:{prodEndpoint:"data.amazon.co.uk",gammaEndpoint:"data-uk-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,f,c,e],mWebShareChannels:[d,f,c]},A1PA6795UKMFR9:{prodEndpoint:"data.amazon.de",gammaEndpoint:"data-de-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,f,c,e],mWebShareChannels:[d,c]},A13V1IB3VIYZZH:{prodEndpoint:"data.amazon.fr",
gammaEndpoint:"data-fr-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,f,c,e],mWebShareChannels:[d,f,c]},APJ6JRA9NG5V4:{prodEndpoint:"data.amazon.it",gammaEndpoint:"data-it-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,e,f,c],mWebShareChannels:[d,c]},A1RKKUPIHCS9HS:{prodEndpoint:"data.amazon.es",gammaEndpoint:"data-es-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,e,f,c],mWebShareChannels:[d,c]},A21TJRUUN4KGV:{prodEndpoint:"data.amazon.in",gammaEndpoint:"data-in-pre-prod.dub.corp.amazon.com",
mShopShareChannels:[d,e,c,f],mWebShareChannels:[d,c]},A1805IZSGTT6HS:{prodEndpoint:"data.amazon.nl",gammaEndpoint:"data-nl-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,f,e,c],mWebShareChannels:[d,f,c]},A33AVAJ2PDY3EV:{prodEndpoint:"data.amazon.com.tr",gammaEndpoint:"data-tr-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,e,c,f,h],mWebShareChannels:[d,c]},A1VC38T7YXB528:{prodEndpoint:"data.amazon.co.jp",gammaEndpoint:"data-jp-pre-prod.pdx.corp.amazon.com",mShopShareChannels:[a,d,h,f,c],
mWebShareChannels:[a,d,c]},A39IBJ37TRP1C6:{prodEndpoint:"data.amazon.com.au",gammaEndpoint:"data-au-pre-prod.pdx.corp.amazon.com",mShopShareChannels:[d,f,c,e],mWebShareChannels:[d,f,c]},AAHKV2X7AFYLW:{prodEndpoint:"data.amazon.cn",gammaEndpoint:"data-cn-pre-prod.pek.corp.amazon.com"},ARBP9OOSHTCHU:{prodEndpoint:"data.amazon.eg",gammaEndpoint:"data-eg-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,f,e,c],mWebShareChannels:[d,f,c]},A2VIGQ35RCS4UG:{prodEndpoint:"data.amazon.ae",gammaEndpoint:"data-ae-pre-prod.dub.corp.amazon.com",
mShopShareChannels:[d,f,e,c],mWebShareChannels:[d,c]},A17E79C6D8DWNP:{prodEndpoint:"data.amazon.sa",gammaEndpoint:"data-sa-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,f,e,c,a],mWebShareChannels:[d,c,a]},AD2EMQ3L3PG8S:{prodEndpoint:"data.amazon.ru",gammaEndpoint:"data-ru-pre-prod.pdx.corp.amazon.com"},A19VAU5U5O7RUS:{prodEndpoint:"data.amazon.sg",gammaEndpoint:"data-sg-pre-prod.pdx.corp.amazon.com",mShopShareChannels:[d,e,f,c,a],mWebShareChannels:[d,c,a]},A1C3SOZRARQ6R3:{prodEndpoint:"data.amazon.pl",
gammaEndpoint:"data-pl-pre-prod.dub.corp.amazon.com",mShopShareChannels:[f,d,c,e],mWebShareChannels:[f,d,c]},A2NODRKZP88ZB9:{prodEndpoint:"data.amazon.se",gammaEndpoint:"data-se-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,f,c,e],mWebShareChannels:[d,f,c]},AMEN7PMS3EDWL:{prodEndpoint:"data.amazon.com.be",gammaEndpoint:"data-be-pre-prod.dub.corp.amazon.com",mShopShareChannels:[d,f,c,e],mWebShareChannels:[d,f,c]},A2WDZJZ5TCRMLH:{prodEndpoint:"data.amazon.cl",gammaEndpoint:"data-cl-pre-prod.iad.corp.amazon.com"},
A1ZXRLSQW2V54D:{prodEndpoint:"data.amazon.com.co",gammaEndpoint:"data-co-pre-prod.iad.corp.amazon.com"},A3OCL2LJ6GDH9T:{prodEndpoint:"data.amazon.com.ng",gammaEndpoint:"data-ng-pre-prod.dub.corp.amazon.com"},AE08WJ6YKNBMC:{prodEndpoint:"data.amazon.co.za",gammaEndpoint:"data-za-pre-prod.dub.corp.amazon.com"},A28R8C7NBKEWEA:{prodEndpoint:"data.amazon.ie",gammaEndpoint:"data-ie-pre-prod.dub.corp.amazon.com"}},m=/^https?:\/\/(.*?pre-prod|.*proxy)(.aka)?.amazon(.*)?$/;return{getAapiBaseUrl:function(a,
c){var e=m.test(c)?"gammaEndpoint":"prodEndpoint";if(a&&b[a]&&b[a][e])return b[a][e];r.log("Error getting aapi base url for marketplace "+a+" and product url "+c,a?"FATAL":"ERROR",n.SSF_AUI_PACKAGE_ATTRIBUTION);return""},getShareChannels:function(a){var c=l.capabilities.isAmazonApp?"mShopShareChannels":"mWebShareChannels";return a&&b[a]&&b[a][c]?b[a][c]:[]}}});"use strict";r.when("A","SocialShareWidget").execute(function(l,d){var n=void 0,f=d.SocialShareCore.Metrics;d=l.debounce(function(){clearTimeout(n)},
200,!0);l.declarative("ssf-share-icon","touchstart",function(){n=setTimeout(function(){f.logCounter("longpress")},500)});l.declarative("ssf-share-icon","touchmove touchend",d)});"use strict";r.when("A","SocialShareWidget").register("SocialShareWidgetMetrics",function(l,d){var m=d.SocialShareCore.Metrics,f=function(a){a=a.pathname.split("/").filter(function(a){return l.contains(a,"ref\x3d")});return(a.length?a[0]:"").replace("ref\x3d","")},a=function(a){return(a=a.match(/cm_sw_r_(?:cso_)?(.*?)_/))?
a[1]:n};r.now("SocialShareWidgetLoadedBTF").execute(function(a){a?m.logCounter("btf:render"):m.logCounter("atf:render")});r.when("atf").execute(function(){try{var d=l.capabilities,e=d.tablet;d.isIE&&m.logCounter("render.ie");(e||600<screen.width&&d.isAmazonApp)&&m.logCounter("render.tablet");var c=new URL(location.href);if(c.href.includes("cm_sw_r_")){var b=c.searchParams.get("ref")||c.searchParams.get("ref_");b||(b=f(c));if(b.startsWith("cm_sw_r_")){var n=a(b);n&&m.logCounter("return.visit."+n);
m.logCounter("return.visit")}}c.searchParams.get("cafId")&&m.logCounter("CAF.cafDeepLink")}catch(q){m.logCounter("urlparam.issue")}});return{getRefEq:f,getChannelFromRef:a}});"use strict";r.register("SocialShareWidgetLinkUtil",function(){return{getLinkWithFlippedStarsLeft:function(l){try{var d=new URL(l.href||l),n=d.searchParams;if(n.get("ref_")&&n.get("starsLeft")){var f=n.get("ref_"),a=n.get("starsLeft"),h=n.get("newPreview"),e=n.get("bestFormat"),c=n.get("language"),b=n.get("titleSource");n.delete("ref_");
n.delete("starsLeft");n.delete("newPreview");n.delete("bestFormat");n.delete("language");n.delete("titleSource");d.searchParams.append("ref_",f);d.searchParams.append("starsLeft",a);h&&d.searchParams.append("newPreview",h);e&&d.searchParams.append("bestFormat",e);c&&d.searchParams.append("language",c);b&&d.searchParams.append("titleSource",b)}return d.toString()}catch(u){return l.toString()}}}});"use strict";r.when("A","SocialShareWidget","SocialShareWidgetAPI","SocialShareWidgetCustomizeUtils","SocialShareWidgetOnShareUtils").register("SocialShareWidgetCustomize",
function(l,d,E,f,a){d=d.SocialShareCore;var h=l.$,e=d.ShareSheet,c=d.Url,b=d.Metrics,u=d.Constants,q=b.getMetricName(h,u.customize),x=l.constants.HIDE_CLASS,t=function(){},w,k=0,g=void 0,B=void 0,y=void 0,z=!1;r.when("a-checkbox").execute(function(a){return B=a});r.when("a-button").execute(function(a){return g=a});try{(function(){var d=f.imageState;l.declarative("cafCheckboxAction","change",function(){y()});l.on(f.getEventName("Hide"),function(a){a.sheet.getContentContainer().remove();d.clear()});
l.on("a:sheet:afterShow:ssf-customize-bottom-sheet",function(a){L(a.sheet)});var C=function(a,c,g){var e=h(".ssf-preview-container"),k=h(".ssf-caf-preview"),n=(w=c)?"CAF.switchOn":"CAF.switchOff";b.logCounter(q,n);b.logCounterRefactor(n,g);l.trigger("ssf:event:caf-switch-change",c);d.isConsultAFriendPreview=c;g=f.getImageData(a,d);z?f.getBackendPreviewImage(a,g,function(b){b?I(b):l.trigger("ssf:event:preview-generation-failed",a)}):c?(k.fadeIn(100),e.hide()):(e.fadeIn(100),k.hide())},p=function(b){var c=
b.shareData,g=b.channelRef,d=c.shareUrl;b=c.isOnShareGatingEnabled;b=b===n?!1:b;var e=c.aapiBaseUrl;e=e===n?"":e;var f=c.shareAapiCsrfToken;f=f===n?"":f;var h=c.tinyUrlEnabled;h=h===n?!1:h;var l=c.deeplinkInfo;l=l===n?{}:l;var p=c.shareDataAttributes,m=c.storeId;m=m===n?"":m;d.refMarker.isBestFormatEnabled=c.isBestFormatEnabled;d=g?d.getReturnForChannel(g):d.return;g=a.getChannelName(g);var B=a.getOsType();p=p.marketplaceId;return{tinyUrlEnabled:h,aapiBaseUrl:e,shareAapiCsrfToken:f,marketplaceId:p===
n?"":p,url:d,isOnShareGatingEnabled:b,extractedRef:g,osType:B,originalUrl:c.url||d,refMarkerId:k++,deeplinkInfo:l,storeId:m}},D=function(a,d,k,f,B,y,z){var v=k.shareDataAttributes,t=k.url,A=v.asin,C=v.ingress;v=k.refId;h(".ssf-customize-share-btn").find(".a-spinner").addClass(x);g(".ssf-customize-share-btn").enable();d();var w=!1;d=new URL(y===n?t:y);f&&(v=u.CAF_REF_PREFIX+"_"+v,d.searchParams.append("cafId",f),d.searchParams.append("cafASIN",B),B!==A&&b.logCounter(q,"CAF.ShareASINMismatch"),w=!0);
d.searchParams.append("language",m.languageOfPreference||k.locale||"en_US");k.shareUrl=new c(d.toString(),v);var D=p({shareData:k});r.when("SocialShareWidgetTiny").execute(function(c){c.fetch({data:D,callback:function(c){k.tinyUrl=c;z&&z();c=l.extend({channelSelectCB:function(){f&&l.trigger("ssf:event:caf-share-complete-success",k)},cafSwitchEnabled:w},k);(new e(c)).launch(function(){l.delay(function(b){a(k)},100);f?(b.logCounter(q,"CAF.ShareSheetOpen"),b.logCounterRefactor("CAF.ShareSheetOpen",C)):
(b.logCounter(q,"ShareSheetOpen"),b.logCounterRefactor("ShareSheetOpen",C))})}})})},I=function(a){if(!(1<arguments.length&&arguments[1]!==n&&arguments[1])){var b=new Image;b.src=a;b.onload=function(){d.productImageProperties.width=this.width;d.productImageProperties.height=this.height}}},P=function(a){a=a.popularHighlightStrings;var b=[];b.push({id:"BackgroundImageTab",physicalId:"417kcYISTOL.jpg",url:"https://m.media-amazon.com/images/I/417kcYISTOL.jpg"});a.length&&(defaultQuote=a[0].replace(/"|”|“/g,
""),b.push({id:"BookQuotesTab",value:defaultQuote}));return b},L=function(a){var c=a.$contentContainer,g=parseInt(a.$container.css("max-height"));c=parseInt(c.height());g<c?(a.$contentContainer.css("height",g),b.logCounter("SmallDevice")):a.$contentContainer.css("height","auto")};t=function(a,c,e,k){var p=a.shareDataAttributes,m=a.treatment,t=m===n?"":m;m=a.weblab;var A=m===n?"":m;m=a.caf;m=m===n?!1:m;var v=a.isCafPreviewGenerationMigrationEnabled,G=p.ingress;d.currentPreview=f.getRegularImage();
w=a.cafSwitch;m&&v&&(z=!0);m=function(a,b){0<b.length&&b.forEach(function(a){d.set(a)})};var F=function(a){b.logCounter(q,a);b.logCounterRefactor(a,G);b.logCounter(a)},H=function(a,b){E.build(a).fetchTabs(function(c){r.now("SocialShareWidgetCustomizeTemplate").execute(function(g){h(".ssf-tabs").html(g.getTabs(a,c));b(c)})})};y=function(){var b=B(".ssf-caf-toggle");C(a,b.isChecked(),G)};a.customize&&a.customizePreSelected?(v=P(a),d.defaultCustomizationOptions=v,m(a,v),m=f.getImageData(a,d),f.getBackendPreviewImage(a,
m,function(a){d.currentImage=a;I(a);f.adjustPreviewHeight();L(k)})):z?(m=f.getImageData(a,d),f.getBackendPreviewImage(a,m,function(b){b?I(b):l.trigger("ssf:event:preview-generation-failed",a)})):C(a,w,G);h(".ssf-customize-share-btn").click(function(){g(".ssf-customize-share-btn").isEnabled()&&(h(".ssf-customize-share-btn").find(".a-spinner").removeClass(x),g(".ssf-customize-share-btn").disable(),w?(F("CAF.shareClick"),b.startTimer("CAF.fetchCAFAndTinyURL"),a.title=(a.t["taf-share-caf-messageprefix"]||
"")+" "+a.title,E.build(a).fetchCAFID(function(g,d,k){D(c,e,a,g,d,k,function(){b.stopTimer("CAF.fetchCAFAndTinyURL")})})):(F("shareClick"),b.logCSAEvent(u.CSA_HIT_TYPE.CUSTOMIZE_SHARE,{channel:u.EMPTY_STRING,refMarker:a.shareUrl.refMarker.click,shareDataAttributes:p,treatment:t,weblab:A}),D(c,e,a)))});h(".ssf-caf-toggle-ed-ingress").click(function(){F("CAF.edIngressTapped"+a.cafIngressTreatment);f.transitionToCAFEducationPage();L(k)});h(".ssf-customize-icon").click(function(){g(this).isEnabled()&&
(F("CustomizeButtonClick"),g(this).disable(),d.currentPreview=f.getCustomizeImage(),H(a,function(b){b.forEach(function(a){var b="input[type\x3dradio][name\x3d"+a.id+"]";h(b).change(function(a){a=JSON.parse(a.target.value);J(a);h(b).unbind("click");h(this).one("click",function(a){a=a.target;a.checked=!1;a=JSON.parse(a.value);K(a)})})});a.customizePreSelected&&(h("#BackgroundImageTab1").trigger("click"),h("#BookQuotesTab0").trigger("click"));b=f.getImageData(a,d);f.getBackendPreviewImage(a,b,function(a){d.currentImage=
a;f.transitionToCustomizePage();f.adjustCustomizedPreviewHeight();L(k);I(a)})}))});h(".ssf-customize-edit-poll-btn").click(function(){g(this).isEnabled()&&(g(this).disable(),l.trigger("ssf-edit-your-poll-trigger",a.hmpState),F("HMP.EditYourPoll.Clicked"),e())});var J=function(b){f.setImage();Array.isArray(b)?b.forEach(function(a){d.set(a)}):d.set(b);var c=f.getImageData(a,d);F(b.id+"Select");f.getBackendPreviewImage(a,c,function(a){d.currentImage=a;I(a)})},K=function(b){f.setImage();F(b.id+"Unselect");
d.unset(b);b=f.getImageData(a,d);f.getBackendPreviewImage(a,b,function(a){d.currentImage=a;I(a)})};h(".ssf-back-btn").click(function(){f.isCAFEducationPageVisible()&&F("CAF.edBackTapped"+a.cafIngressTreatment);d.currentPreview=f.getRegularImage();b.logCounter("BackButtonClick");f.resetPreviewState(d);f.transitionToDefaultPage();L(k)});r.when("a-checkbox").execute(function(a){h(".ssf-caf-toggle-label").click(function(){var b=a(".ssf-caf-toggle");b.check(!b.isChecked())})});l.on("ssf:event:preview-generation-failed",
function(a){z=!1;h(".ssf-backend-preview").addClass(x);h(".ssf-html-preview").removeClass(x);C(a,w,G)})}})()}catch(A){b.logCounter(q,"Error"),b.logLoad("Error"),b.logFatal("Error loading Customize widget, Share Framework AUI: "+A.toString())}finally{b.logCounter(q,"Render"),b.logLoad("Render")}return{init:t}});"use strict";r.when("A","SocialShareWidget").register("SocialShareWidgetCustomizeTemplate",function(l,d){d=d.SocialShareCore;var m=l.capabilities.rtl,f=d.Constants,a=d.ToolBelt,h=function(a){var b=
1<arguments.length&&arguments[1]!==n?arguments[1]:"";a=a.startsWith("http")?a:"https://m.media-amazon.com/images/G/01/share-icons/"+a;return'\x3cimg class\x3d"'+b+'" src\x3d"'+a+'"/\x3e'},e=function(a){var b=1<arguments.length&&arguments[1]!==n?arguments[1]:"ssf-product-title-text";l.on("a:sheet:afterShow:ssf-customize-bottom-sheet",function(){l.$(".ssf-title-label").text(a.title)});return'\x3cdiv class\x3d"a-color-secondary a-padding-small '+b+'"\x3e\n      \x3cspan class\x3d"ssf-title-label" id\x3d"ssf-title-label"\x3e\n        \x3c!-- TITLE  --\x3e\n      \x3c/span\x3e\n    \x3c/div\x3e'},
c=function(a){return'\x3cdiv class\x3d"ssf-product-preview"\x3e'+b(a.productImage,"","","ssf-title-label")+"\x3c/div\x3e"},b=function(a){var b=1<arguments.length&&arguments[1]!==n?arguments[1]:"",c=2<arguments.length&&arguments[2]!==n?arguments[2]:"",d=3<arguments.length&&arguments[3]!==n?arguments[3]:"";a=a.startsWith("http")?a:"https://m.media-amazon.com/images/G/01/share-icons/"+a;return c||d?'\x3cimg class\x3d"'+b+'" '+(d?'aria-labelledby\x3d"'+d+'"':"")+" "+(c?'aria-label\x3d"'+c+'"':"")+' src\x3d"'+
a+'"/\x3e':h(a,b)},u=function(){return'\x3cspan class\x3d"a-size-mini ssf-rating-count"\x3e'+(0<arguments.length&&arguments[0]!==n?arguments[0]:"")+"\x3c/span\x3e"},q=function(a){return'\x3cul class\x3d"ssf-options-box-container a-unordered-list a-nostyle"\x3e'+a.values.map(function(b,c){var d=l.extend(b,{id:a.id}),g={id:a.id,position:c,val:d,background:b.url};a.isQuote&&(g=l.extend(g,{center:!0,width:150,content:d.displayText,background:n}));d=g.id;c=g.position;b=g.content;b=b===n?"":b;var e=g.width,
k=e===n?100:e,f=g.background;e=g.center;e=e===n?!1:e;g=g.val;k='style\x3d"width: '+k+"px;background-image: url("+(f===n?"":f)+");background-size: "+k+"px "+k+'px;"';f=JSON.stringify(g);c=d+c;g=g.label||"";var h='\x3cspan class\x3d"aok-offscreen"\x3e'+g+"\x3c/span\x3e";e&&(h='\x3cspan class\x3d"a-box-inner a-text-center ssf-q-text"\x3e'+b+"\x3c/span\x3e");return'\x3cli class\x3d"ssf-options-box" aria-label\x3d\''+g+"'\x3e\n              \x3cinput id\x3d\""+c+'" type\x3d"radio" name\x3d"'+d+"\" value\x3d'"+
f+"' aria-label\x3d'"+g+"'\x3e\x3c/input\x3e\n              \x3clabel for\x3d\""+c+'" class\x3d"a-box a-text-normal" '+k+"\x3e"+h+"\x3c/label\x3e\n            \x3c/li\x3e"}).join("")+"\x3c/ul\x3e"},x=function(a){var b=1<arguments.length&&arguments[1]!==n?arguments[1]:"",c=2<arguments.length&&arguments[2]!==n?arguments[2]:!1;return'\x3cli class\x3d"a-tab-heading ssf-customize-tab '+(c?"a-active":"")+'" data-a-tab-name\x3d"ssf-tab-'+a+'" role\x3d"presentation"\x3e\n              \x3ca aria-label\x3d"'+
b+'" href\x3d"#" role\x3d"tab" aria-selected\x3d"'+(c?"true":"false")+'" '+(c?"":'tabindex\x3d"-1"')+"\x3e"+b+"\x3c/a\x3e\n            \x3c/li\x3e"},t=function(a){return'\x3cdiv data-a-name\x3d"ssf-tab-'+a+'" class\x3d"ssf-tab-'+a+" a-box a-box-tab a-tab-content "+(3<arguments.length&&arguments[3]!==n&&arguments[3]?"":"a-hidden")+' a-padding-mini" role\x3d"tabpanel" tabindex\x3d"0"\x3e\n              '+(1<arguments.length&&arguments[1]!==n?arguments[1]:"")+"\n            \x3c/div\x3e"},r=function(){return(0<
arguments.length&&arguments[0]!==n?arguments[0]:[]).map(function(a){a=a.replace(/"|”|“/g,"");return{displayText:"“"+a+"”",value:a}})};return{getTabs:function(a,b){var c=a.popularHighlightStrings;if(!b.length)return"";var g="",d="",e=-1;b.forEach(function(a,b){a.isQuote&&(a.values=r(c));if(!a.values.length)return"";-1===e&&(e=b);b=b===e;g+=x(a.id,a.heading,b);d+=t(a.id,q(a),a.text,b)});return'\x3cdiv class\x3d"a-tab-container a-size-small"\x3e'+('\x3cul data-action\x3d"a-tabs" class\x3d"a-tabs a-declarative ssf-customize-tab a-spacing-small" role\x3d"tablist" data-a-tabs\x3d\'{"name": "customize-tabs"}\'\x3e\n        '+
g+"\x3c/ul\x3e"+d)+"\x3c/div\x3e"},getCustomizeBox:function(a){return'\x3cdiv class\x3d"a-box a-color-alternate-background a-spacing-top-large a-padding-base ssf-customize-box"\x3e\n      '+('\x3ch5 class\x3d"a-size-small a-spacing-micro"\x3e'+a.taf_custshare_customizelong+"\x3c/h5\x3e")+('\x3cp class\x3d"a-size-small a-color-secondary"\x3e'+a.taf_custshare_customizedesc+"\x3c/p\x3e")+('\x3cspan class\x3d"a-button a-button-small" id\x3d"ssf-customize-share"\x3e\n      \x3cspan class\x3d"a-button-inner"\x3e\n        \x3cbutton class\x3d"a-button-text" type\x3d"button"\x3e'+
a.taf_custshare_customizeshort+"\x3c/button\x3e\n      \x3c/span\x3e\n    \x3c/span\x3e")+"\n    \x3c/div\x3e"},getBackArrow:function(a){a=a["taf-share-general-gobacktopage"]||"";return'\x3cbutton type\x3d"button" class\x3d"ssf-back-btn a-padding-small" aria-label\x3d"'+a+'" tabindex\x3d"0"\x3e'+('\x3cimg src\x3d"https://m.media-amazon.com/images/G/01/share-icons/arrow-left.svg" alt\x3d"'+a+'"\x3e')+"\x3c/button\x3e"},tabsContainer:'\x3cdiv class\x3d"a-row a-spacing-top-micro ssf-tabs a-color-base-background a-padding-mini"\x3e\x3c/div\x3e',
getImageSection:function(a){var g=e(a);var d=a.isCafPreviewGenerationMigrationEnabled;var f=a.customize,k=a.customizePreSelected;d=a.caf&&d?!0:f&&k?!0:!1;f=a.customize;k=!a.productImage.match(/\.gif$/i);f='\x3cdiv class\x3d"a-padding-base ssf-preview-container"\x3e\n      '+(f&&k?'\x3cspan id\x3d"ssf-customize-icon" class\x3d"ssf-customize-icon"\x3e'+h("customize")+"\x3c/span\x3e":"")+'\n      \x3cspan class\x3d"a-spinner a-spinner-medium a-align-center ssf-preview-spinner aok-hidden"\x3e\x3c/span\x3e\n    \x3c/div\x3e';
d='\x3cdiv class\x3d"a-box ssf-preview-box"\x3e\n              \x3cdiv class\x3d"ssf-backend-preview '+(d?"":"aok-hidden")+'"\x3e'+f+'\x3c/div\x3e\n              \x3cdiv class\x3d"ssf-html-preview '+(d?"aok-hidden":"")+'"\x3e';var l=a.customize,q=a.productImage;k=a.t;f=c({productImage:q});var p=a.starRating,t=p===n?"ZERO":p;p=a.customize;p=p===n?!1:p;var r=a.numberOfReviews,x=a.caf,w=a.isUnrecognizedUsersRichPreviewEnabled;a=a.isMWebCustomShareRichPreviewEnabledOverride;t=b("RIO"+t+(m?"r":"")+".png",
"ssf-caf-stars",t+" star rating");r=u(r);a='\x3cdiv class\x3d"ssf-caf-rating"\x3e\n              \x3cdiv class\x3d"'+(x||w||p||a?"ssf-caf-rating-left":"ssf-caf-rating-right")+'"\x3e\n                '+t+r+"\n              \x3c/div\x3e\n            \x3c/div\x3e";q=!q.match(/\.gif$/i);l=l&&q?'\x3cspan id\x3d"ssf-customize-icon" class\x3d"ssf-customize-icon"\x3e'+h("customize")+"\x3c/span\x3e":"";k='\x3cp class\x3d"a-size-base a-spacing-micro ssf-caf-text"\x3e'+k.taf_custshare_caf_recipientemoji+"\x3c/p\x3e";
q=b("caf-emojis"+(m?"r":"")+".png","ssf-caf-emojis","A heart eyes emoji, a thinking emoji, and a frowning emoji");return d+('\x3cdiv class\x3d"a-padding-base ssf-preview-container"\x3e\n              '+l+'\n              \x3cspan class\x3d"a-spinner a-spinner-medium a-align-center ssf-preview-spinner aok-hidden"\x3e\x3c/span\x3e\n              '+f+"\n              "+a+"\n            \x3c/div\x3e "+('\x3cdiv class\x3d"ssf-caf-preview"\x3e\n              \x3cdiv class\x3d"a-padding-base ssf-caf-image"\x3e\n                \x3cdiv class\x3d"a-row ssf-caf-image-stickers"\x3e'+
f+('\x3cdiv class\x3d"a-column ssf-caf-stickers"\x3e'+k+q+"\x3c/div\x3e")+"\x3c/div\x3e\n                  "+a+"\n                \x3c/div\x3e\n            \x3c/div\x3e"))+"\x3c/div\x3e\n              "+g+"\n            \x3c/div\x3e"},getHmpImageSection:function(b){var d=b.productImage;b='\x3cdiv class\x3d"a-color-secondary a-padding-small ssf-title-text-hmp"\x3e\n    \x3cspan\x3e\n    '+a.sanitizeInput(b.hmpState.title)+"\n    \x3c/span\x3e\n    \x3c/div\x3e";return'\x3cdiv class\x3d"a-box ssf-preview-box"\x3e\n                '+
c({productImage:d})+"\n                "+b+"\n            \x3c/div\x3e"},getCustomizePreviewImage:function(a){return'\x3cdiv class\x3d"a-box ssf-no-border ssf-cus-img-container"\x3e\n      \x3cdiv class\x3d"ssf-cus-img"\x3e\x3cspan class\x3d"a-spinner a-spinner-medium a-align-center ssf-preview-spinner aok-hidden"\x3e\x3c/span\x3e\x3c/div\x3e\n      '+e(a,"ssf-product-title-text-small")+"\n    \x3c/div\x3e"},getToggleContainer:function(a){var b=1<arguments.length&&arguments[1]!==n?arguments[1]:"",
c=a.taf_custshare_caf_ingress_alt2,d='\x3csmall\x3e\x3ca class\x3d"ssf-caf-toggle-ed-ingress a-size-base a-link-normal"\x3e'+(a.taf_custshare_caf_ingress_learn_more||"Learn more")+"\x3c/a\x3e\x3c/small\x3e",e=h("https://m.media-amazon.com/images/G/01/AppFirst/ConsultAFriend/information-default.png");return'\x3cdiv class\x3d"a-row a-spacing-top-medium-plus a-grid-vertical-align a-grid-center a-spacing-micro"\x3e\n      \x3cdiv class\x3d"a-column a-span1"\x3e\x3cdiv class\x3d"a-checkbox a-declarative a-checkbox-fancy ssf-caf-toggle" data-action\x3d"cafCheckboxAction"\x3e\n      \x3clabel class\x3d"a-padding-none" aria-labelledby\x3d"caf-checkbox-label"\x3e\n        \x3cinput class\x3d"a-declarative" name\x3d"caf" type\x3d"checkbox"\x3e\n        \x3ci class\x3d"a-icon a-icon-checkbox"\x3e\x3c/i\x3e\n      \x3c/label\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n      \x3cdiv class\x3d"a-column a-span10"\x3e\n        \x3csmall id\x3d"caf-checkbox-label" class\x3d"ssf-caf-toggle-label a-size-base"\x3e'+
c+".\x3c/small\x3e\n        "+(b===f.CAF_INFO_ICON_KEY?'\x3cspan class\x3d"ssf-info-icon ssf-caf-toggle-ed-ingress"\x3e\x3cstrong\x3e'+e+"\x3c/strong\x3e\x3c/span\x3e":b===f.CAF_LEARN_MORE_KEY?d:"")+"\n      \x3c/div\x3e\n    \x3c/div\x3e"},getEducationCXBody:function(a){return'\x3cdiv class\x3d"a-box ssf-no-border"\x3e\n        '+('\x3cdiv class\x3d"a-color-secondary a-padding-small"\x3e\n      \x3cspan\x3e\n        '+(a.taf_custshare_caf_education_body||"Ask your friends for help. Use this option to ask friends to react to the item with an emoji. You can share the link by messaging your friends or posting on social media. You’ll get a notification for each reaction.")+
"\n      \x3c/span\x3e\n    \x3c/div\x3e")+'\n        \x3cdiv class\x3d"ssf-caf-education-video a-padding-base"\x3e\n          \x3cvideo id\x3d"ssf-caf-education-video" loop playsinline\x3e\n            \x3csource src\x3d"https://m.media-amazon.com/images/G/01/AppFirst/ConsultAFriend/caf-education-no-audio.mp4" type\x3d"video/mp4"\x3e\n          \x3c/video\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e'}}});"use strict";X="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(l){return typeof l}:
function(l){return l&&"function"===typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};r.when("A","SocialShareWidget","SocialShareWidgetAPI","SocialShareWidgetState","SocialShareWidgetOnShareUtils").register("SocialShareWidgetCustomizeUtils",function(l,d,r,f,a){function h(a){var b=a.values,c=b.BackgroundImageTab,d=b.DeviceCoverImageTab,g=b.BookQuotesTab;b=b.isConsultAFriendPreview;var e=a.productImageProperties;a=e.width;e=e.height;return{bgId:(c===n?{}:c).physicalId||"",
deviceId:(d===n?{}:d).physicalId||"",quoteValue:(g===n?{}:g).value||"",isConsultAFriendPreview:b===n?!1:b,width:a===n?"":a,height:e===n?"":e}}function e(b,c){var d=b.shareUrl,g=b.socialLinks;g=g===n?{}:g;d.refMarker.isBestFormatEnabled=b.isBestFormatEnabled;d=c?d.getReturnForChannel(c):d.return;c=a.getChannelName(c);var e=a.getOsType(),f=b.aapiBaseUrl,h=b.shareAapiCsrfToken,l=b.tinyUrlEnabled,m=b.deeplinkInfo;m=m===n?{}:m;var q=b.isOnShareGatingEnabled;q=q===n?!1:q;var u=b.shareDataAttributes,t=u.marketplaceId;
u=u.asin;return{tinyUrlEnabled:l===n?!1:l,aapiBaseUrl:f===n?"":f,shareAapiCsrfToken:h===n?"":h,marketplaceId:t===n?"":t,asin:u===n?"":u,url:d,originalUrl:g.shareframework||b.url||d,refMarkerId:k++,deeplinkInfo:m,isOnShareGatingEnabled:q,extractedRef:c,osType:e}}function c(a,b,c,d){if(c.isEmpty()||X(c.currentImage)===n||X(c.currentImage)!==n&&!c.currentImage.length)return d({});c=encodeURIComponent(c.currentImage);r.build(a).externalizeImage(c,d,b)}function b(a,b,c){r.build(a).generateImage(b,function(a){c(a.entity)})}
d=d.SocialShareCore;var u=l.constants.HIDE_CLASS,q=l.$,x=d.Constants,t=d.Metrics,w=d.Url,k=0;return{getEventName:function(a){return"a:sheet:after"+a+":ssf-customize-bottom-sheet"},getCustomizeImage:function(){return q(".ssf-cus-img")},getCustomizeImageContainer:function(){return q(".ssf-cus-img-container")},getRegularImage:function(){return q(".ssf-backend-preview .ssf-preview-container")},getPreviewBox:function(){return q(".ssf-preview-box")},setImage:function(a){this.imageState.currentPreview.css("background-image",
'url("'+a+'")')},showSpinner:function(){this.imageState.currentPreview.find(".a-spinner").removeClass(u)},hideSpinner:function(){this.imageState.currentPreview.find(".a-spinner").addClass(u)},transitionToCustomizePage:function(){q(".ssf-customize-container-one").addClass(u);q(".ssf-customize-container-two").removeClass(u).addClass("ssf-customize-transition")},transitionToCAFEducationPage:function(){q(".ssf-customize-container-one").addClass(u);q(".ssf-customize-container-three").removeClass(u).addClass("ssf-customize-transition");
var a=q("#ssf-caf-education-video").get(0);a&&(a.currentTime=0,a.play())},isCAFEducationPageVisible:function(){return q(".ssf-customize-container-three").is(":visible")},adjustCustomizedPreviewHeight:function(){this.getCustomizeImageContainer().css({width:.76*m.innerWidth});var a=parseInt(this.getCustomizeImage().css("border-left-width"))+parseInt(this.getCustomizeImage().css("border-right-width")),b=this.getCustomizeImage().innerWidth();this.getCustomizeImage().css({height:(b+a)/1.91})},adjustPreviewHeight:function(){this.getPreviewBox().css({width:.93*
m.innerWidth});var a=parseInt(this.getRegularImage().css("border-left-width"))+parseInt(this.getRegularImage().css("border-right-width")),b=this.getRegularImage().innerWidth();this.getRegularImage().css({height:(b+a)/1.91})},transitionToDefaultPage:function(){q(".ssf-customize-container-two").addClass(u);q(".ssf-customize-container-three").addClass(u);q(".ssf-customize-container-one").removeClass(u).addClass("ssf-customize-transition-back")},getImageData:function(a,b){var c=h(b);return{productImageUrl:a.productImage,
starRating:a.starRating||"",numberOfReviews:a.numberOfReviews||"",backgroundImagePhysicalId:c.bgId,deviceCoverImagePhysicalId:c.deviceId,bookQuote:c.quoteValue,productImageWidth:c.width,productImageHeight:c.height,consultAFriendPreviewEnabled:b.isConsultAFriendPreview,previewDohEnabled:a.previewDoh}},resetPreviewState:function(a){a.clear();0<a.defaultCustomizationOptions.length&&a.defaultCustomizationOptions.forEach(function(b){a.set(b)})},getBackendPreviewImage:function(a,c,d){var e=this;e.setImage("");
e.showSpinner();b(a,c,function(a){a&&"SUCCEEDED"===a.status?(a=a.customizedImage.url,e.hideSpinner(),e.setImage(a),d(a)):d()})},setCustomizeCSAData:function(a,b){var c=x.customizeShareStateKey;b=h(b);var d=x.TRUE,e=x.FALSE;f.set(c,{backgroundImagePhysicalId:b.bgId,deviceCoverImagePhysicalId:b.deviceId,hasQuote:0<b.quoteValue.length?d:e,isCustomizedExperienceEnabled:a.customize?d:e,isCustomized:b.bgId||b.deviceId||b.quoteValue?d:e,customizePreSelected:a.customizePreSelected?d:e,isQuotesAvailable:a.popularHighlightStrings?
d:e})},prepareShareUrl:function(a,b,d,f,h){this.setCustomizeCSAData(a,this.imageState);c(a,f,this.imageState,function(c){var g=c.entity;c=new URL(a.url);var k=b;g&&g.physicalId?(t.logCounterRefactor("externalizeImageSuccess"),c.searchParams.append("cspi",g.physicalId),k=b+"_"+x.BOOKS_REF_PREFIX):(a.customizePreSelected&&(t.logCounter("booksPreviewNotAvailable"),k=b+"_"+x.BOOKS_REF_PREFIX+"_"+x.BOOKS_CUSTOMIZE_PREVIEW_NOT_AVAILABLE),(a.caf||a.isUnrecognizedUsersRichPreviewEnabled||a.customize||a.isMWebCustomShareRichPreviewEnabledOverride)&&
c.searchParams.append("starsLeft","1"),a.eventPreviewTreatment&&"c"!==a.eventPreviewTreatment.toLowerCase()&&(g=a.eventPreviewTreatment.match(/^T(\d+)$/),c.searchParams.append("peakEvent",g[1]),t.logCounterRefactor("EventPreview"+a.eventPreviewTreatment,a.shareDataAttributes.ingress)));a.shareUrl=new w(c.toString(),a.refId);c=e(a,k);d.fetch({data:c,isAsync:f,callback:function(a){h(a)}})})},imageState:{clear:function(){this.values={}},isEmpty:function(){return q.isEmptyObject(this.values)},values:{},
unset:function(a){delete this.values[a.id]},set:function(a){this.values[a.id]=a},defaultCustomizationOptions:[],currentImage:"",isConsultAFriendPreview:!1,currentPreview:"",productImageProperties:{width:0,height:0}}}});"use strict";r.when("A","SocialShareWidget","SocialShareWidgetAPI","SocialShareWidgetOnShareUtils").register("SocialShareWidgetCAFUtils",function(l,d,r,f){function a(a,c){var d=a.shareUrl,e=a.socialLinks;e=e===n?{}:e;d.refMarker.isBestFormatEnabled=a.isBestFormatEnabled;var l=a.isHmpShareSheet?
"hmp":h.CAF_REF_PREFIX;d=c?d.getReturnForChannel(l+"_"+c):d.return;c=f.getChannelName(c);l=f.getOsType();d=new URL(d);(a.caf||a.isUnrecognizedUsersRichPreviewEnabled||a.isMWebCustomShareRichPreviewEnabledOverride)&&d.searchParams.append("starsLeft","1");d.searchParams.has("language")||d.searchParams.append("language",m.languageOfPreference||a.locale||"en_US");d=d.toString();var k=a.aapiBaseUrl,g=a.shareAapiCsrfToken,q=a.tinyUrlEnabled,u=a.deeplinkInfo;u=u===n?{}:u;var r=a.isOnShareGatingEnabled,A=
a.shareDataAttributes.marketplaceId;return{tinyUrlEnabled:q===n?!1:q,aapiBaseUrl:k===n?"":k,shareAapiCsrfToken:g===n?"":g,marketplaceId:A===n?"":A,url:d,isOnShareGatingEnabled:r===n?!1:r,extractedRef:c,osType:l,originalUrl:e.shareframework||a.url||d,refMarkerId:b++,deeplinkInfo:u}}var h=d.SocialShareCore.Constants,e=d.SocialShareCore.Url,c=d.SocialShareCore.Metrics,b=0;return{prepareShareUrl:function(b,d,f,l,n){var k=b.refId;c.logCounterRefactor("CAF.shareChannelClick",b.ingress);c.startTimer("CAF.fetchCAFAndTinyURL");
k=h.CAF_REF_PREFIX+"_"+k;r.build(b).fetchCAFID(function(g,h){var m=new URL(b.url);g&&m.searchParams.append("cafId",g);h&&m.searchParams.append("cafASIN",h);b.shareUrl=new e(m.toString(),k);h=a(b,d);f.fetch({data:h,isAsync:l,callback:function(a){c.stopTimer("CAF.fetchCAFAndTinyURL");n(a,g)}})},l)},prepareHmpShareUrl:function(b,d,f,h,n){var k=b.refId;c.logCounter("HMP.shareChannelClick."+b.ingress);c.startTimer("HMP.fetchPollIdAndTinyURL");k="hmp."+k;r.build(b).fetchHmpPollId(function(g){var m=new URL(b.url);
g&&m.searchParams.append("hmpId",g);b.shareUrl=new e(m.toString(),k);b.url=m.toString();m=a(b,d);f.fetch({data:m,isAsync:h,callback:function(a){c.stopTimer("HMP.fetchPollIdAndTinyURL");l.trigger("ssf:event:hmpPollCreated",b);n(a,g)}})},h)}}});"use strict";r.when("A","SocialShareWidget","SocialShareWidgetTiny").register("SocialShareWidgetNativeUtils",function(l,d,m){var f=d.SocialShareCore.ShareSheet,a=l.constants.HIDE_CLASS,h=d.SocialShareCore.Metrics,e=h.getMetricName(l.$);return{showSpinner:function(c){c.addClass("ssf-noclick");
c.find(".a-spinner").removeClass(a);c.find("i").hide()},hideSpinner:function(c){c.removeClass("ssf-noclick");c.find(".a-spinner").addClass(a);c.find("i").show()},launchNativeShareSheet:function(a,b,d,n){var c=this;this.showSpinner(a.$currentTarget);d=d({shareData:b});var q=b.shareDataAttributes.ingress;b=l.extend(b,{sheetShownCallback:function(){c.hideSpinner(a.$currentTarget)}});m.fetch({data:d,callback:function(d){b.tinyUrl=d;(new f(b)).launch(function(){n(b);h.logCounter("DPX.Desktop.SheetOpen");
h.logCounter(e,"SheetOpen");h.logCounter("SheetOpen");h.logCounterRefactor("SheetOpen",q);c.hideSpinner(a.$currentTarget)})}})}}});"use strict";r.when("A","SocialShareWidget").register("SocialShareWidgetOnShareUtils",function(l,d){var m=d.SocialShareCore.Constants;return{getOsType:function(){switch(!0){case l.capabilities.ios:return"ios";case l.capabilities.android:return"android";default:return"unknown"}},getChannelName:function(d){return d?d.replace(m.CUSTOM_SHARE_OPTIONS_REF_PREFIX+"_",""):""}}})});
/* ******** */
