/* Underscore.js 1.9.0 http://underscorejs.org (c) 2009-2018 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Underscore may be freely distributed under the MIT license. */ (function(w){var u=window.AmazonUIPageJS||window.P,x=u._namespace||u.attributeErrors,m=x?x("UnderscoreJS_MAKO_BuzzLib",""):u;m.guardFatal?m.guardFatal(w)(m,window):m.execute(function(){w(m,window)})})(function(w,u,x){w.execute("prologue-underscore.js",function(){(function(m,t,E){E===x&&(E=t,t=m,m=[]);w.now(t).execute("Underscore-Registrant",function(u){u===x&&w.when.apply(w,m).register(t,E)})})(["jQuery"],"MAKO._",function(m){var t={};t.$=m;t.self=t;(function(){var m="object"==typeof t&&t.self=== t&&t||"object"==typeof global&&global.global===global&&global||this||{},w=m._,u=Array.prototype,x=Object.prototype,K="undefined"!==typeof Symbol?Symbol.prototype:null,W=u.push,B=u.slice,C=x.toString,L=x.hasOwnProperty,A=Array.isArray,M=Object.keys,N=Object.create,F=function(){},b=function(a){if(a instanceof b)return a;if(!(this instanceof b))return new b(a);this._wrapped=a};"undefined"==typeof exports||exports.nodeType?m._=b:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports= module.exports=b),exports._=b);b.VERSION="1.9.0";var D=function(a,c,b){if(void 0===c)return a;switch(null==b?3:b){case 1:return function(b){return a.call(c,b)};case 3:return function(b,d,g){return a.call(c,b,d,g)};case 4:return function(b,d,g,h){return a.call(c,b,d,g,h)}}return function(){return a.apply(c,arguments)}},O,n=function(a,c,d){return b.iteratee!==O?b.iteratee(a,c):null==a?b.identity:b.isFunction(a)?D(a,c,d):b.isObject(a)&&!b.isArray(a)?b.matcher(a):b.property(a)};b.iteratee=O=function(a, c){return n(a,c,Infinity)};var r=function(a,c){c=null==c?a.length-1:+c;return function(){for(var b=Math.max(arguments.length-c,0),e=Array(b),f=0;fe&&(e=d)}else c=n(c,d),b.each(a,function(a,b,d){g=c(a,b,d);if(g>f||-Infinity===g&&-Infinity===e)e=a,f=g});return e};b.min=function(a,c,d){var e=Infinity,f=Infinity,g;if(null==c||"number"==typeof c&&"object"!=typeof a[0]&&null!=a){a=p(a)?a:b.values(a);for(var h=0,k=a.length;hd||void 0===b)return 1;if(ba.length))return null==c||d?a[0]:b.initial(a,a.length-c)};b.initial=function(a,c,b){return B.call(a,0,Math.max(0,a.length-(null==c||b?1:c)))};b.last=function(a,c,d){if(!(null==a||1>a.length))return null==c||d?a[a.length-1]:b.rest(a,Math.max(0,a.length-c))};b.rest=b.tail=b.drop=function(a,c,b){return B.call(a,null==c||b?1:c)};b.compact=function(a){return b.filter(a, Boolean)};var z=function(a,c,d,e){e=e||[];for(var f=e.length,g=0,h=v(a);gb)return[]; for(var c=[],e=0,f=a.length;ed)throw Error("bindAll must be passed function names");for(;d--;){var e=c[d];a[e]=b.bind(a[e],a)}});b.memoize=function(a,c){var d=function(e){var f=d.cache,g=""+(c?c.apply(this,arguments):e);b.has(f,g)||(f[g]=a.apply(this,arguments));return f[g]};d.cache={};return d};b.delay=r(function(a,b,d){return setTimeout(function(){return a.apply(null, d)},b)});b.defer=b.partial(b.delay,b,1);b.throttle=function(a,c,d){var e,f,g,h,k=0;d||(d={});var q=function(){k=!1===d.leading?0:b.now();e=null;h=a.apply(f,g);e||(f=g=null)},l=function(){var l=b.now();k||!1!==d.leading||(k=l);var m=c-(l-k);f=this;g=arguments;0>=m||m>c?(e&&(clearTimeout(e),e=null),k=l,h=a.apply(f,g),e||(f=g=null)):e||!1===d.trailing||(e=setTimeout(q,m));return h};l.cancel=function(){clearTimeout(e);k=0;e=f=g=null};return l};b.debounce=function(a,c,d){var e,f,g=function(b,c){e=null; c&&(f=a.apply(b,c))},h=r(function(h){e&&clearTimeout(e);if(d){var k=!e;e=setTimeout(g,c);k&&(f=a.apply(this,h))}else e=b.delay(g,c,this,h);return f});h.cancel=function(){clearTimeout(e);e=null};return h};b.wrap=function(a,c){return b.partial(c,a)};b.negate=function(a){return function(){return!a.apply(this,arguments)}};b.compose=function(){var a=arguments,b=a.length-1;return function(){for(var c=b,e=a[b].apply(this,arguments);c--;)e=a[c].call(this,e);return e}};b.after=function(a,b){return function(){if(1> --a)return b.apply(this,arguments)}};b.before=function(a,b){var c;return function(){0<--a&&(c=b.apply(this,arguments));1>=a&&(b=null);return c}};b.once=b.partial(b.before,2);b.restArguments=r;var S=!{toString:null}.propertyIsEnumerable("toString"),T="valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString".split(" "),U=function(a,c){var d=T.length,e=a.constructor;e=b.isFunction(e)&&e.prototype||x;var f="constructor";for(b.has(a,f)&&!b.contains(c,f)&&c.push(f);d--;)f=T[d], f in a&&a[f]!==e[f]&&!b.contains(c,f)&&c.push(f)};b.keys=function(a){if(!b.isObject(a))return[];if(M)return M(a);var c=[],d;for(d in a)b.has(a,d)&&c.push(d);S&&U(a,c);return c};b.allKeys=function(a){if(!b.isObject(a))return[];var c=[],d;for(d in a)c.push(d);S&&U(a,c);return c};b.values=function(a){for(var c=b.keys(a),d=c.length,e=Array(d),f=0;fd||null==c)return c;for(var f=1;f/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var I=/(.)^/,ca={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},da=/\\|'|\r|\n|\u2028|\u2029/g,ea=function(a){return"\\"+ca[a]};b.template=function(a,c,d){!c&&d&&(c=d);c=b.defaults({},c,b.templateSettings);d=RegExp([(c.escape||I).source,(c.interpolate||I).source,(c.evaluate||I).source].join("|")+"|$","g");var e=0,f="__p+\x3d'";a.replace(d,function(b,c,d,g,l){f+=a.slice(e, l).replace(da,ea);e=l+b.length;c?f+="'+\n((__t\x3d("+c+"))\x3d\x3dnull?'':_.escape(__t))+\n'":d?f+="'+\n((__t\x3d("+d+"))\x3d\x3dnull?'':__t)+\n'":g&&(f+="';\n"+g+"\n__p+\x3d'");return b});f+="';\n";c.variable||(f="with(obj||{}){\n"+f+"}\n");f="var __t,__p\x3d'',__j\x3dArray.prototype.join,print\x3dfunction(){__p+\x3d__j.call(arguments,'');};\n"+f+"return __p;\n";try{var g=new Function(c.variable||"obj","_",f)}catch(h){throw h.source=f,h;}d=function(a){return g.call(this,a,b)};d.source="function("+ (c.variable||"obj")+"){\n"+f+"}";return d};b.chain=function(a){a=b(a);a._chain=!0;return a};var J=function(a,c){return a._chain?b(c).chain():c};b.mixin=function(a){b.each(b.functions(a),function(c){var d=b[c]=a[c];b.prototype[c]=function(){var a=[this._wrapped];W.apply(a,arguments);return J(this,d.apply(b,a))}});return b};b.mixin(b);b.each("pop push reverse shift sort splice unshift".split(" "),function(a){var c=u[a];b.prototype[a]=function(){var b=this._wrapped;c.apply(b,arguments);"shift"!==a&& "splice"!==a||0!==b.length||delete b[0];return J(this,b)}});b.each(["concat","join","slice"],function(a){var c=u[a];b.prototype[a]=function(){return J(this,c.apply(this._wrapped,arguments))}});b.prototype.value=function(){return this._wrapped};b.prototype.valueOf=b.prototype.toJSON=b.prototype.value;b.prototype.toString=function(){return String(this._wrapped)};"function"==typeof define&&define.amd&&define("underscore",[],function(){return b})})();return t._})})}); /* ******** */ (function(h){var k=window.AmazonUIPageJS||window.P,p=k._namespace||k.attributeErrors,a=p?p("MarsFamilyStripeWidgetAssets",""):k;a.guardFatal?a.guardFatal(h)(a,window):a.execute(function(){h(a,window)})})(function(h,k,p){h.when("A","a-carousel-framework","MarsFamilyStripe.ProductDataFetcher","MarsFamilyStripe.Metrics","ready").register("MarsFamilyStripe",function(a,e,f,g){function b(){var a=l("#mars-fs-subnav");if(a.length&&!a.siblings("#mars-fs-flyouts").length){var b=l("#mars-fs-flyouts");b.length&& (b.insertAfter(a),b.removeClass("aok-hidden"),c())}}function c(){l("#mars-fs-subnav .fs-content-links").each(function(){var a=this.id;l("#"+a+"_carousel").length&&l("#"+a+"_caret_wrapper").addClass("active")})}function r(a,b,n){a.each(function(){this.id!==b+"_carousel"&&l(this).toggleClass("invisible-family-stripe",n)})}function h(a,b,n){if(!d[b]){d[b]=!0;var c=g.flyoutFetchPricesError(b);a.getPricesForFamily(b).then(function(a){var b=a.price,d=0,q=0,e;for(e in b)if(b.hasOwnProperty(e)){var m=l("#fs-card-"+ e+" .element-price"),u=b[e];m.length&&u?(m.html(u),d+=1):q+=1}g.flyoutPricesAdded(d);g.flyoutPricesBlank(q);a=a.image;for(var f in n)n.hasOwnProperty(f)&&(d=n[f],b=l("#fs-card-"+d+" .image-wrapper .fs-asin-images"),b.length&&a[d]&&(d="https://m.media-amazon.com/images/I/"+a[d],b.attr("src",d),b.attr("data-a-hires",d)));c(0)}).catch(function(){c(1)})}}var l=a.$,d={},m=!1;return{init:function(d){if(!m){var c=new f(d);a.declarative("mars-fs-hover","mouseenter mouseleave",function(a){var b=a.data.familyCode; a="mouseenter"===a.type;var n=d.invalidImageAsins;if(b){var g=l("#mars-fs-flyouts"),q=g.find(".family"),m=g.find("#"+b+"_carousel"),f=l("#mars-fs-subnav"),t=f.find("#"+b+" span");t.toggleClass("a-color-state",a);t.toggleClass("a-color-base",!a);m.length&&(g.toggleClass("active-family-stripe",a),f.find("#"+b).toggleClass("active-family-stripe",a),m.toggleClass("active-family-stripe",a),r(q,b,a));h(c,b,n);e.createAll();e.initializeAll()}});m=!0}b()}}});"use strict";h.when("A","cf").execute(function(a){var e= a.$;e=e(".fs-image-lazy-loading");a.loadHiResImage(e);e.removeClass("fs-image-lazy-loading")});"use strict";h.when("MarsFamilyStripe.ClientSideTemplates").register("MarsFamilyStripe.Templates",function(a){return new a});"use strict";h.when("A","MarsFamilyStripe.Product","MarsFamilyStripe.PriceFormatter","MarsFamilyStripe.PriceRenderer","MarsFamilyStripe.Templates","MarsFamilyStripe.Metrics").register("MarsFamilyStripe.ProductDataFetcher",function(a,e,f,g,b,c){function r(a,b,c){return a.getProductV2(b, c,[a.subresources.buyingOptions.price,a.subresources.productImages.images])}function h(a,b){var c={};a.forEach(function(a){if(a&&a.entity&&(a=a.entity,a.asin)){var d=(a.buyingOptions||[])[0];d&&(d=d.price)&&(d=d.entity)&&(c[a.asin]=b.render(d))}});return c}function l(a){var b={};a.forEach(function(a){if(a&&a.entity&&(a=a.entity,a.asin)){var c=a.asin;(a=a.productImages)&&a.entity&&(a=a.entity.images)&&a.forEach(function(a){if("MAIN"===a.variant){var d=a.hiRes;a=a.lowRes;if(d||a)d?(a=d.physicalId,d= d.extension,a&&d&&(b[c]=a+"."+d)):(d=a.physicalId,a=a.extension,d&&a&&(b[c]=d+"."+a))}})}});return b}return a.createClass({init:function(a){var d=a.language;this._productClient=new e({endpoint:a.endpoint,language:d,csrfToken:a.csrfToken});this._formatter=new f(d);this._renderer=new g(b,this._formatter);this._marketplaceId=a.marketplaceId;this._familyAsins=a.familyAsins},getPricesForFamily:function(a){var b=this._familyAsins[a];if(!b)return{};c.getPricesForFamilyBatchSize(a)(b.length);var d=this._renderer, g=c.getPricesForFamilyTimer(a).start(),e=c.getPricesForFamilyError(a);return r(this._productClient,this._marketplaceId,b).then(function(a){a={price:h(a,d),image:l(a)};g.stop();e(0);return a}).catch(function(a){g.stop();e(1);throw a;})}})});"use strict";h.when("A","MAKO._").register("MarsFamilyStripe.ClientSideTemplates",function(a,e){var f=a.$,g={interpolate:/{{([\s\S]+?)}}/g,escape:/{&([\s\S]+?)&}/g,evaluate:/{!([\s\S]+?)!}/g};return a.createClass({init:function(){this._templates={}},loadTemplates:function(a){var b= this._templates;f(a).find('script[type\x3d"text/template"]').each(function(){var a=f(this),c=a.data("name");a=(a.html()||"").trim();c&&(b[c]=e.template(a,g))})},unloadTemplates:function(){this._templates={}},renderTemplate:function(a,c){a=this._templates[a];var b="";a&&(b=a(c));return b}})});"use strict";h.register("MarsClientSideMetrics",function(){function a(){return k.ue&&"function"===typeof k.ue.count?k.ue.count:function(){}}return{counter:function(e){var f=a();return function(a){f(e,a)}},timer:function(e){var f= function(){return{stop:function(){}}};if(k.performance&&"function"===typeof k.performance.now){var g=a();f=function(){var a=k.performance.now();return{stop:function(){var b=k.performance.now()-a;g(e,b)}}}}return{start:f}},suffixed:function(a,f){return function(g){return a(f+":"+g)}}}});"use strict";h.when("MarsClientSideMetrics").register("MarsFamilyStripe.Metrics",function(a){return{emitFallbackPriceFormatterUsed:a.counter("MarsFamilyStripe:fallbackPriceFormatterUsed"),getProductV2Timer:a.timer("MarsFamilyStripe:getProductV2Time"), getProductV2Error:a.counter("MarsFamilyStripe:getProductV2Error"),getProductV2BatchSize:a.counter("MarsFamilyStripe:getProductV2BatchSize"),getPricesForFamilyTimer:a.suffixed(a.timer,"MarsFamilyStripe:getPricesForFamilyTime"),getPricesForFamilyError:a.suffixed(a.counter,"MarsFamilyStripe:getPricesForFamilyError"),getPricesForFamilyBatchSize:a.suffixed(a.counter,"MarsFamilyStripe:getPricesForFamilyBatchSize"),flyoutPricesAdded:a.counter("MarsFamilyStripe:flyoutPricesAdded"),flyoutPricesBlank:a.counter("MarsFamilyStripe:flyoutPricesBlank"), flyoutFetchPricesError:a.suffixed(a.counter,"MarsFamilyStripe:flyoutFetchPricesError")}});"use strict";h.when("A","MarsFamilyStripe.Metrics").register("MarsFamilyStripe.PriceFormatter",function(a,e){var f="object"===typeof Intl&&Intl&&"function"===typeof Intl.NumberFormat,g=function(a,c,g){return a.toLocaleString(g,{style:"currency",currency:c})};e.emitFallbackPriceFormatterUsed(0);f||(g=function(a,c){return c+" "+a},e.emitFallbackPriceFormatterUsed(1));return a.createClass({init:function(a){this._locale= a},format:function(a,c){return g(a,c,this._locale)}})});"use strict";h.when("A").register("MarsFamilyStripe.PriceRenderer",function(a){function e(a){if(a){var b=a.moneyValueOrRange;if(b){var c=b.range;b=b.value;a="label"in a?a.label:"";if(c&&c.min){if(c=c.min,c.amount&&c.currencyCode)return{amount:c.amount,currencyCode:c.currencyCode,minPrice:!0,label:a}}else if(b&&b.amount&&b.currencyCode)return{amount:b.amount,currencyCode:b.currencyCode,minPrice:!1,label:a}}}return null}function f(a,b,c,e){b={price:b.format(c.amount, c.currencyCode),isParent:c&&c.minPrice,label:c.label+" "};return a.renderTemplate(e,b)}return a.createClass({init:function(a,b){this._templates=a;this._priceFormatter=b},render:function(a){if(!a)return"";var b=[],c=e(a.priceToPay);c&&(b.push(f(this._templates,this._priceFormatter,c,"price")),(a=e(a.basisPrice))&&b.push(f(this._templates,this._priceFormatter,a,"basisPrice")));return b.join("")}})});"use strict";h.when("A","3p-promise","MarsFamilyStripe.Metrics").register("MarsFamilyStripe.Product", function(a,e,f){function g(a,b,c){var d=document.querySelector('meta[name\x3d"encrypted-slate-token"]');return{"Accept-Language":a.language,Accept:'application/vnd.com.amazon.api+json; type\x3d"'+b+'"; expand\x3d"'+c.join(",")+'"',"x-amzn-encrypted-slate-token":null===d?p:d.content,"x-api-csrf-token":a.csrfToken}}function b(a,b){var c=[];if(!a)return c;for(var d=0;d