'use strict';(function(b){var c=window.AmazonUIPageJS||window.P,e=c._namespace||c.attributeErrors,a=e?e("AmazonUIBaseJS@analytics","AmazonUI"):c;a.guardFatal?a.guardFatal(b)(a,window):a.execute(function(){b(a,window)})})(function(b,c,e){"use strict";b.register("a-analytics",function(){function a(a,d){var b=c&&c.ue&&c.ue.count;if(b&&a){var f="aui:"+a;1<arguments.length&&b(f,d);return b(f)}}var b=c&&c.ue&&c.ue.tag;return{increment:function(b,d){if(b){var f=a(b)||0;a(b,f+(d||1))}},count:a,logError:function(b,
d,a){c.ueLogError&&c.ueLogError({message:b},{logLevel:d,attribution:a})},tag:function(a){b&&a&&b("aui:"+a)},logNexus:function(b,a){var d=c&&c.ue&&c.ue.event;d&&b&&a&&d(a,"aui-analytics",b)}}});b.when("a-analytics").register("prv:a-cache-analytics",function(b){function a(b){return(new URL(b.name)).searchParams.has("AUIClients/AmazonUI")}function f(a){var c;"script"===a.initiatorType&&(c="js");"link"===a.initiatorType&&(c=(new URL(a.name)).pathname.split(".").pop());c=["js","css"].includes(c)?c:"unknown";
b.tag(c+":"+(a.transferSize===e||a.decodedBodySize===e?"unknown":0===a.transferSize&&0<a.decodedBodySize?"cache":0<a.transferSize?"network":0<a.duration?20>a.duration?"cache":"network":"immediate"))}if(c.PerformanceObserver)try{(new PerformanceObserver(function(b){b.getEntriesByType("resource").filter(a).forEach(f)})).observe({type:"resource",buffered:!0})}catch(d){}});"use strict";b.declare("prv:a-declarative-analytics",{notify:function(){},setOptions:function(){}});"use strict";b.when("a-analytics",
"afterLoad").execute("a-doctype-test",function(a){document.doctype&&document.doctype.name&&"html"===document.doctype.name.toLowerCase()||(b.log("Missing or Invalid HTML doctype. Please refer to http://w?AUI/LogMessages#HDOCTYPE for more details.","WARN"),a.increment("a-doctype-issue"))});"use strict";b.declare("a-event-analytics",{handle:function(){},notifyDeclarativeAction:function(){},notifyJquery:function(){}});"use strict";b.when("a-analytics","prv:p-debug","ready").execute(function(a,c){b.declare("prv:a-logTrigger",
function(b){var d=c[b]&&c[b].registered||0,f=0,h=0,e;for(e in c)if(c.hasOwnProperty(e)){var g=c[e];g.end&&g.end<=d&&(f++,h+=g.end-g.start)}a.count("blocking-count:"+b,f);a.count("blocking-time:"+b,Math.round(h))})});"use strict";b.register("prv:a-collect-p-debug",function(){var a=!1;return function(){a||(a=!0,b.when("prv:p-debug","afterLoad").execute(function(a){a=JSON&&JSON.stringify?JSON.stringify(a):"{}";b.log(a,"WARN","[AUI] p-debug")}))}});"use strict";b.register("prv:a-sampler-inclusion",function(){return{"AUI API Analytics":.01>
Math.random()}});b.when("prv:a-sampler-inclusion").register("prv:a-sampler",function(a){return function(b){return a.hasOwnProperty(b)&&a[b]}});"use strict";b.declare("a-timing-analytics",{startWidgetLogging:function(){},stopWidgetLogging:function(){}})});
/* ******** */
(function(f){var g=window.AmazonUIPageJS||window.P,l=g._namespace||g.attributeErrors,e=l?l("AmazonUIPromise","AmazonUI"):g;e.guardFatal?e.guardFatal(f)(e,window):e.execute(function(){f(e,window)})})(function(f,g,l){f.register("3p-promise",function(){function e(){}function f(a,b){return function(){a.apply(b,arguments)}}function d(a){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this._state=0;this._handled=
!1;this._value=l;this._deferreds=[];q(a,this)}function r(a,b){for(;3===a._state;)a=a._value;0===a._state?a._deferreds.push(b):(a._handled=!0,m(function(){var c=1===a._state?b.onFulfilled:b.onRejected;if(null===c)(1===a._state?n:k)(b.promise,a._value);else{try{var h=c(a._value)}catch(u){k(b.promise,u);return}n(b.promise,h)}}))}function n(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof
d){a._state=3;a._value=b;p(a);return}if("function"===typeof c){q(f(c,b),a);return}}a._state=1;a._value=b;p(a)}catch(h){k(a,h)}}function k(a,b){a._state=2;a._value=b;p(a)}function p(a){2===a._state&&0===a._deferreds.length&&m(function(){a._handled||t(a._value)});for(var b=0,c=a._deferreds.length;b<c;b++)r(a,a._deferreds[b]);a._deferreds=null}function v(a,b,c){this.onFulfilled="function"===typeof a?a:null;this.onRejected="function"===typeof b?b:null;this.promise=c}function q(a,b){var c=!1;try{a(function(a){c||
(c=!0,n(b,a))},function(a){c||(c=!0,k(b,a))})}catch(h){c||(c=!0,k(b,h))}}if("function"===typeof g.Promise)return g.Promise;var w=setTimeout,m="function"===typeof setImmediate&&setImmediate||function(a){w(a,0)},t=function(a){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a)};d.prototype["catch"]=function(a){return this.then(null,a)};d.prototype.then=function(a,b){var c=new this.constructor(e);r(this,new v(a,b,c));return c};d.all=function(a){var b=Array.prototype.slice.call(a);
return new d(function(a,d){function c(e,f){try{if(f&&("object"===typeof f||"function"===typeof f)){var g=f.then;if("function"===typeof g){g.call(f,function(a){c(e,a)},d);return}}b[e]=f;0===--h&&a(b)}catch(x){d(x)}}if(0===b.length)return a([]);for(var h=b.length,e=0;e<b.length;e++)c(e,b[e])})};d.resolve=function(a){return a&&"object"===typeof a&&a.constructor===d?a:new d(function(b){b(a)})};d.reject=function(a){return new d(function(b,c){c(a)})};d.race=function(a){return new d(function(b,c){for(var d=
0,e=a.length;d<e;d++)a[d].then(b,c)})};d._setImmediateFn=function(a){m=a};d._setUnhandledRejectionFn=function(a){t=a};return d})});
/* ******** */
/*
 lazyload */
'use strict';(function(p){var m=window.AmazonUIPageJS||window.P,q=m._namespace||m.attributeErrors,b=q?q("AmazonUIBaseJS@base","AmazonUI"):m;b.guardFatal?b.guardFatal(p)(b,window):b.execute(function(){p(b,window)})})(function(p,m,q){"use strict";p.register("a-polyfill",function(){});"use strict";p.when("jQuery").register("a-base",function(b){return{version:function(){return"3.0"},$:b}});"use strict";p.register("prv:a-guard",function(){function b(b,f){return b._guard&&"function"===typeof f?b._guard(f):
f}return{fn:b,guardTimeFn:function(b,f){return b._guardTime&&"function"===typeof f?b._guardTime(f):f},obj:function(l,f){if(!l._guard)return f;var h={},g;for(g in f)f.hasOwnProperty(g)&&(h[g]=b(l,f[g]));return h}}});"use strict";p.register("priv:a-visibility",function(){function b(b){for(var f=["hidden","webkitHidden","mozHidden","msHidden","oHidden"],h=0;h<f.length;h+=1)if(f[h]in b)return f[h]}return function(l){var f=b(l);return f?function(){return l[f]}:function(){return!1}}});"use strict";p.register("prv:a-private-util",
function(){try{var b=navigator.userAgent}catch(l){b=""}return{ua:b,safeFeatureTest:function(b){try{return b()}catch(f){return!1}}}});"use strict";p.when("priv:a-visibility","prv:a-guard","prv:a-private-util").register("a-util",function(b,l,f){function h(b){if(g(b))return[b];if(b.jQuery)return b.get();var a=Object.prototype.toString.call(b);return"[object String]"===a?Array.prototype.slice.call(document.querySelectorAll(b)):"[object Array]"===a?b.filter(b,g):"object"===typeof b&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(a)&&
"number"===typeof b.length&&(0===b.length||"object"===typeof b[0]&&0<b[0].nodeType)?Array.prototype.slice.call(b):[]}function g(b){return b instanceof Element||b instanceof HTMLDocument}var e=f.ua;b={now:Date.now,isPageHidden:b(document)};f=[function(b){return{each:function(a,d,c){if(null!==a)if(Array.prototype.forEach&&a.forEach===Array.prototype.forEach)a.forEach(d,c);else if(a.length===+a.length)for(var k=0,v=a.length;k<v;k++)k in a&&d.call(c,a[k],k,a);else for(k in a)a.hasOwnProperty(k)&&d.call(c,
a[k],k,a)},map:function(a,d,c){var k=[];if(null===a)return k;if(Array.prototype.map&&a.map===Array.prototype.map)return a.map(d,c);b.each(a,function(a,b,e){k[k.length]=d.call(c,a,b,e)});a.length===+a.length&&(k.length=a.length);return k},reduce:function(a,d,c,k){var v=2<arguments.length;null===a&&(a=[]);if(Array.prototype.reduce&&a.reduce===Array.prototype.reduce)return v?a.reduce(d,c):a.reduce(d);b.each(a,function(a,b,e){v?c=d.call(k,c,a,b,e):(c=a,v=!0)});v||p.error("Reduce of empty array with no initial value",
"A.util","reduce");return c},filter:function(a,d,c){var k=[];if(null===a)return k;if(Array.prototype.filter&&a.filter===Array.prototype.filter)return a.filter(d,c||a);b.each(a,function(b,e,f){d.call(c||a,b,e,f)&&k.push(b)});return k},range:function(a,d,c){d===q&&(d=a||0,a=0);c=c||1;d=Math.max(Math.ceil((d-a)/c),0);for(var k=Array(d),b=0;b<d;b++,a+=c)k[b]=a;return k},breaker:{}}},function(b){return{throttle:function(a,d,c){var k,v,e,f=l.fn(this,a),g=null,t=0;c=c||{};var x=function(){t=!1===c.leading?
0:b.now();g=null;e=f.apply(k,v);k=v=null};return function(){var f=b.now();t||!1!==c.leading||(t=f);var A=d-(f-t);k=this;v=arguments;0>=A?(clearTimeout(g),g=null,t=f,e=a.apply(k,v),k=v=null):g||!1===c.trailing||(g=setTimeout(x,A));return e}},sequence:function(){var a=[].slice,d=a.call(arguments).reverse(),c=this;return b.reduce(d,function(k,d){return function(){var b=a.call(arguments);b.push(k);d.apply(c,b)}},function(){})},debounce:function(a,d,c){var k,v,e,f,g,t=l.fn(this,a),x=function(){var a=b.now()-
f;a<d?k=setTimeout(x,d-a):(k=null,c||(g=t.apply(e,v),e=v=null))};return function(){e=this;v=arguments;f=b.now();var t=c&&!k;k||(k=setTimeout(x,d));t&&(g=a.apply(e,v),e=v=null);return g}},delay:function(a,d){var c=this,k=l.fn(this,function(){return l.guardTimeFn(c,a).apply(this,arguments)}),b=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return k.apply(null,b)},d)},animationFrameDelay:function(a){return this.delay(a,16)},interval:function(a,d){var c=this,k=l.fn(this,function(){return l.guardTimeFn(c,
a).apply(this,arguments)});return setInterval(k,d)},once:function(a){var d=!1,c=l.fn(this,a),k;return function(){d||(d=!0,k=c.apply(this,arguments));return k}},rest:function(a,d){if(a){var c=Math.max(d===q?a.length-1:d,0);return function(){for(var k=arguments,d=-1,b=Math.max(k.length-c,0),e=Array(b);++d<b;)e[d]=k[d+c];switch(c){case 0:return a.call(this,e);case 1:return a.call(this,k[0],e);case 2:return a.call(this,k[0],k[1],e)}b=Array(c+1);for(d=-1;++d<c;)b[d]=k[d];b[c]=e;return a.apply(this,b)}}},
parseFunctionName:function(a){return a.name?"anonymous"===a.name?"":a.name:(a=a.toString().match(/^function\s*([^\s(]+)/))?a[1]:""}}},function(b){function a(c){var d;"object"!==typeof c&&"function"!==typeof c&&(c={});for(var k=1;k<arguments.length;k++){var b=arguments[k];if(null!=b)for(var e in b){var x=b[e];if(c!==x&&x!==q){var t=c[e];g(x)||(d=f(x))?(d&&!f(t)?t=[]:d||g(t)||(t={}),d=!1,a(t,x)):t=x;c[e]=t}}}return c}function d(a,c){a=a||{};c=c||{};var k={},b;for(b in a)a.hasOwnProperty(b)&&(k[b]="object"===
typeof a[b]&&a[b]?d(a[b],c[b]):a[b]!==c[b]);for(b in c)c.hasOwnProperty(b)&&!k[b]&&(k[b]="object"===typeof c[b]&&c[b]?d(c[b],a[b]):c[b]!==a[b]);return k}function c(a,b){var d;if(a===b)return!0;if(f(a)){if(!f(b)||a.length!==b.length)return!1;for(d=a.length;d--;)if(!c(a[d],b[d]))return!1;return!0}if(g(a)){if(!g(b)||k(a)&&!k(b))return!1;for(d in a)if(!c(a[d],b[d]))return!1;return!0}return!1}function k(a){for(var c in a)if(a.hasOwnProperty(c))return!1;return!0}function e(a){if(!("function"===typeof a||
"object"===typeof a&&a))return[];if(Object.keys)return Object.keys(a);var c=[],b;for(b in a)a.hasOwnProperty(b)&&c.push(b);return c}function f(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function g(a){if(!a||"object"!==typeof a||a.nodeType||a===m)return!1;try{if(a.constructor&&!a.hasOwnProperty("constructor")&&!a.constructor.prototype.hasOwnProperty("isPrototypeOf"))return!1}catch(A){return!1}for(var c in a);return c===q||a.hasOwnProperty(c)}function h(a,
c,b){Object.defineProperty(a,c,{value:b,writable:!1});return b}function t(a,c,b){a.hasOwnProperty(c)||(a[c]=b);return b}return{keys:e,values:function(a){for(var c=e(a),b=Array(c.length),d=0;d<c.length;d++)b[d]=a[c[d]];return b},extend:a,mixin:function(a,c,b){if(b)for(var d=0,k=b.length;d<k;d++)a[b[d]]=c[b[d]];else for(d in c)"function"===typeof c[d]&&(a[d]=c[d])},diff:d,equals:c,copy:function(c){return f(c)?a([],c):g(c)?a({},c):c},indexOfArray:function(a,c,b){if(Array.prototype.indexOf&&a.indexOf===
Array.prototype.indexOf)return a.indexOf(c,b);a&&a instanceof Array||p.error("Invalid arr passed to A.indexOfArray: "+a,"A.util","indexOfArray");b=parseInt(b,10);b=isNaN(b)?0:b;if(!isFinite(b))return-1;for(var d=a.length;b<d;b++)if(a[b]===c)return b;return-1},isArray:f,isPlainObject:g,isFiniteNumber:function(a){return"number"===typeof a&&!isNaN(a)&&isFinite(a)},objectIsEmpty:k,constProp:"function"===typeof Object.defineProperty?h:t}},function(b){var a={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",
'"':"\x26quot;","'":"\x26#39;","/":"\x26#x2F;"},d=/^\s+/,c=/\s+$/,k=new RegExp("["+b.keys(a).join("")+"]","g"),e=/([!"#$%&'\(\)*+,./:;<=>?@\[\\\]^`{|}~])/g;return{trim:function(a){return String.prototype.trim?String.prototype.trim.call(a):a.replace(d,"").replace(c,"")},contains:function(a,c){return-1!==(""+a).indexOf(c)},escapeHtml:function(c){return(""+c).replace(k,function(c){return a[c]})},escapeJquerySelector:function(a){return(""+a).replace(e,"\\$1")},parseJSON:function(a){return JSON.parse(a)}}},
function(b){function a(a){return b.map(d,function(c){var b=a.getAttribute(c);return b&&"["+c+"\x3d"+b+"]"}).join("")}var d=["id","cel_widget_id","data-feature-name","data-action","data-aui-build-date"];return{xpath:function(a){if(""!==a.id)return'//*[@id\x3d"'+a.id+'"]';if(a===document.documentElement)return"/html";var c=b.indexOfArray(b.filter(a.parentNode.childNodes,function(c){return c.tagName===a.tagName}),a);if(-1===c)throw Error("can not evaluate xpath of element `"+a.tagName+(a.id?"#"+a.id:
"")+"`");return b.xpath(a.parentNode)+"/"+a.tagName+"["+(c+1)+"]"},cssSelector:function(a){var c=[a.tagName||""];a.className&&a.className.trim&&c.push("."+a.className.trim().replace(/\s+/g,"."));a.id&&c.push("#"+a.id);return c.join("")},attributionChain:function(c){var d=[];do d.push(a(c)),c=c.parentElement;while(c);return b.filter(d,Boolean).reverse().join(" ")}}},function(b){return{hide:function(a){b.each(h(a),function(a){b.addClass(a,"aok-hidden")})},show:function(a){b.each(h(a),function(a){b.removeClass(a,
"aok-hidden")});this.trigger("a:image:lazyLoad")}}},function(b){function a(){d={};for(var a=(document.cookie||"").split(";"),k=a.length-1;0<=k;k--){var e=a[k].split("\x3d"),f=b.trim(e[0]);if(f){var g=d;e=e.slice(1).join("\x3d");e=b.trim(e);/^"/.test(e)&&(e=e.slice(1,-1).replace(/\\(.)/g,"$1"));e=m.decodeURIComponent(e);g[f]=e}}}var d;return{cookies:{get:function(c){d||a();return d[c]},getAll:function(){d||a();return b.extend({},d)},refresh:function(){d=null}}}},function(b){return{onScreen:function(a,
d){if(!a)return!1;a.jquery&&(a=a[0]);if(!a)return!1;d="number"===typeof d&&!isNaN(d)&&isFinite(d)?d:100;if(1!==a.nodeType||!(a.offsetWidth||a.offsetHeight||a.getClientRects().length))return!1;var c=b.size(m),k=b.scroll(m),e=k.top,f=m.innerHeight?m.innerHeight:c.height,g=e+f;k=k.left;c=m.innerWidth?m.innerWidth:c.width;var h=k+c;e-=d;g+=d;k-=d;h+=d;var t=b.offset(a),r=b.size(a);a=t.top;d=r.height;var n=a+d;t=t.left;r=r.width;var A=t+r;return(a>=e&&a<g||n>e&&n<=g||d>f&&a<=e&&n>=g)&&(t>=k&&t<h||A>k&&
A<=h||r>c&&t<=k&&A>=h)}}},function(b){return{isATF:function(a,d){d="number"===typeof d&&!isNaN(d)&&isFinite(d)?d:100;d=b.size(m).height+d;a=b.offset(a).top;return 0<=a&&a<d}}},function(b){function a(a,c){return a.classList?a.classList.contains(c):0<=(" "+a.className+" ").indexOf(" "+c+" ")}var d=document.createElement("fakeelement"),c={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},k=null;return{setCssImportant:function(a,
c,b){a=a.jquery?a[0]:a;"undefined"!==typeof a&&(a=a.style,a.cssText=a.cssText.replace(new RegExp(c+"\\s*:\\s*[.^;]*(\\s*;)?","gmi"),""),a.cssText+=c+": "+b+" !important;")},hasClass:a,addClass:function(c,b){a(c,b)||(c.classList?c.classList.add(b):c.className+=" "+b)},removeClass:function(c,b){a(c,b)&&(c.classList?c.classList.remove(b):c.className=(" "+c.className+" ").replace(new RegExp(" "+b+" ","g")," ").replace(/  /g," ").replace(/^ | $/g,""))},offset:function(a){a.jquery&&(a=a[0]);a=a.getBoundingClientRect();
var c=document.documentElement,b=document.body;return{top:a.top+(m.pageYOffset||c.scrollTop)-(c&&c.clientTop||b&&b.clientTop||0),left:a.left+(m.pageXOffset||c.scrollLeft)-(c&&c.clientLeft||b&&b.clientLeft||0)}},size:function(a){var c=document.documentElement,b=document.body;if(a===m)return{width:c.clientWidth,height:c.clientHeight};if(9===a.nodeType)return{width:Math.max(c.clientWidth,b.scrollWidth,c.scrollWidth,b.offsetWidth,c.offsetWidth),height:Math.max(c.clientHeight,b.scrollHeight,c.scrollHeight,
b.offsetHeight,c.offsetHeight)};var d=m.getComputedStyle(a);c=parseFloat(d.borderTopWidth);b=parseFloat(d.borderBottomWidth);var k=parseFloat(d.borderLeftWidth),e=parseFloat(d.borderRightWidth),f=parseFloat(d.paddingTop),g=parseFloat(d.paddingBottom),h=parseFloat(d.paddingLeft);d=parseFloat(d.paddingRight);return{width:a.offsetWidth-k-e-h-d,height:a.offsetHeight-b-c-f-g}},scroll:function(a){var c=document.documentElement,b=document.body;return a?a===m||9===a.nodeType?{top:"pageYOffset"in m?m.pageYOffset:
c.scrollTop||b.scrollTop,left:"pageXOffset"in m?m.pageXOffset:c.scrollLeft||b.scrollLeft}:{top:a.scrollTop,left:a.scrollLeft}:null},getTransitionEndEvent:function(){/UCBrowser/.exec(e)&&(k=c.WebkitTransition);if(null===k)for(var a in c)if(d.style[a]!==q){k=c[a];break}return k},reflowCssChanges:function(a){b.each(a,function(a){})}}},function(b){return{widescreen:function(){return b.hasClass(document.documentElement,"a-ws")}}}];for(var n=0;n<f.length;n++){var r=f[n](b),z;for(z in r)b[z]=r[z]}return b});
"use strict";p.when("p-detect","a-util","prv:a-private-util").register("prv:a-capabilities",function(b,l,f){var h={},g=/Trident/.test(f.ua);l.each({isChrome:function(){return/Chrome/.test(f.ua)},isUCBrowser:function(){return/UCBrowser/.test(f.ua)},isSafari:function(){var b=document.documentElement.style;return!("MozAppearance"in b)&&"webkitAppearance"in b&&/^Apple/.test(navigator.vendor)},isAndroidStockGuess:function(){var e=!1;b.capabilities.android&&!/Chrome|Opera|Firefox|UCBrowser/.test(f.ua)&&
(e=/AppleWebKit\/(\d+\.\d+)/.exec(f.ua),e=e[1]&&"535">e[1]);return e},isFirefox:function(){return/Firefox/.test(f.ua)},isIE:function(){return g},isIE10:function(){return g&&"onmspointerup"in document&&!("onpointerup"in document)},isIE10Plus:function(){return g&&("onpointerup"in document||"onmspointerup"in document)},isIE11Plus:function(){return g&&"onpointerup"in document},isiOS8:function(){return b.capabilities.ios&&/Version\/8\./.test(f.ua)},isIETouchCapable:function(){return h.isIE10Plus&&/Touch;/.test(f.ua)},
isMetroIEGuess:function(){var e=!0;try{e=new ActiveXObject("htmlfile")}catch(n){e=!1}return h.isIE10Plus&&!b.capabilities.mobile&&!e}},function(b,g){h[g]=f.safeFeatureTest(b)});return h});"use strict";p.when("p-detect","prv:a-capabilities","a-util","prv:a-private-util").register("a-detect",function(b,l,f,h){var g=f.copy(b),e=function(){var b=/(?:Android\s+|Windowshop.*Android\/|Android\/)(\d+(?:\.\d+)*)/.exec(h.ua);return b&&b[1]},n={};f.each({isAmazonApp:function(){return/(Windowshop|Amazon|AmazonBusiness|Amazon\.com)\//.test(f.cookies.get("amzn-app-id"))},
isGen5App:function(){return/Windowshop.*(?:KFOT|KFTH|KFJWA|KFJWI|KFTT)/.test(h.ua)},isAndroid:function(){return g.capabilities.android},androidVersion:function(){return e()},isAndroidKitkatPlus:function(){var b=e();return b&&null!==b.match(/(^4\.[4-9]|^[5-9]|^\d\d)/)},isOldAndroid:function(){return/Android\s[12][^0-9]/.test(h.ua)},pointerPrefix:function(){return"onmspointerup"in document||"onpointerup"in document?"onpointerup"in document?"pointer":"MSPointer":!1},actionMode:function(){var b=g.capabilities.pointerPrefix;
return b?b:g.capabilities.touch?"touch":"mouse"}},function(b,e){g.capabilities[e]=h.safeFeatureTest(b)});f.extend(g.capabilities,l);f.each({start:{mouse:"down",touch:"start",pointer:"down",MSPointer:"Down"},end:{mouse:"up",touch:"end",pointer:"up",MSPointer:"Up"},move:{mouse:"move",touch:"move",pointer:"move",MSPointer:"Move"},enter:{mouse:"enter",touch:"enter",pointer:"enter"},leave:{mouse:"leave",touch:"leave",pointer:"leave"},cancel:{touch:"cancel",pointer:"cancel",MSPointer:"Cancel"},over:{mouse:"over",
pointer:"over",MSPointer:"Over"},out:{mouse:"out",pointer:"out",MSPointer:"Out"}},function(b,e){var f=g.capabilities.actionMode,a="string"===typeof b?b:b[f];n[e]=a?f+a:b.mouse===q?"":"mouse"+b.mouse});g.action=n;b={};"pointer"===g.capabilities.pointerPrefix?(b.touch="touch",b.pen="pen",b.mouse="mouse",b.unknown=""):"MSPointer"===g.capabilities.pointerPrefix&&(b.touch=2,b.pen=3,b.mouse=4);g.pointerType=b;return g});"use strict";p.when("prv:a-guard").register("a-defer",function(b){function l(b){var e=
0,f=setTimeout(function(){l(b)},0);if(0===b.length)clearTimeout(f),h=!1;else{var z=Date.now();b.shift().call();g+=Date.now()-z;50<g&&(e=50,g=0);setTimeout(function(){l(b)},e);clearTimeout(f)}}var f=[],h=!1,g=0;return{defer:function(e){var g=this,r=b.fn(this,function(){return b.guardTimeFn(g,e).apply(this,arguments)});f.push(r);h||(h=!0,setTimeout(function(){l(f)},0))},pauseDeferred:function(){},executeDeferred:function(){}}});"use strict";p.when("a-util").register("a-events",function(b,l){function f(a,
b){for(var c=a.length;c--;)b(a[c],c,a)||a.splice(c,1)}function h(a){var b=a.shift();if(b===q)return k;try{!1===b.fn.apply(m,b.args)&&f(a,function(a){return a.id!==b.id})}catch(C){(b.logError?b:p).logError(C,"Event execution failed for event "+b.topic,"FATAL")}}function g(a,d){if(z(a)){var k=B++,e=c[a];d=d||[];var f=b.map(e,function(b){return{topic:a,id:k,fn:b.guard?b.guard(b.fn):b.fn,args:d,logError:b.logError}});e.occurred&&n(a);e.isTimeSliced?v(f):y(f)}}function e(a,b,d){if("function"===typeof b)return d=
{fn:b,logError:d&&d.logError,guard:d&&d.guard},(c[a]=c[a]||[]).unshift(d),{event:a,callback:b}}function n(a){c[a].length=0}function r(a,d){function k(a){f(c[a],function(a){return a.fn!==d})}b.each(b.filter(a.split(" "),z),d?k:n)}function z(a){return c.hasOwnProperty(a)&&0<c[a].length}function u(a,d){var k=function(){p.register(a,function(){var a=m.aPageStart;return{time:a?b.now()-a:0}})},f=c[a]=c[a]||[];f.occurred||(f.isTimeSliced=!1!==d,f.occurred=!0,e(a,k),g(a))}function a(a,b){var c=this.on;this.on=
function(){return c.apply(this,arguments)};this.on._guard=a;this.on._logError=b;for(var d in c)c.hasOwnProperty(d)&&(this.on[d]=c[d]);this.constructor=q}function d(a,b){m.attachEvent?m.attachEvent("on"+a,b):m.addEventListener(a,b,!1)}var c={},k={},v=function(){function a(){c=!0;for(var e=b.now();50>b.now()-e;)if(h(d)===k){c=!1;return}b.delay(a,15)}var c=!1,d=[];return function(b){Array.prototype.push.apply(d,b);c||a()}}(),y=function(){var a=!1,b=[];return function(c){Array.prototype.push.apply(b,
c);if(!a){for(a=!0;h(b)!==k;);a=!1}}}(),B=0,w=function(){var a=function(a,d,k){var f=a.split(" "),h=[],t=d;!0===k&&(t=function(){d.apply(m,arguments);r(a,t)});var n=this?{logError:this._logError,guard:this._guard}:{};b.each(f,function(a){"unload"===a&&(a="pagehide");(c[a]||[]).occurred?(e(a,d,n),g(a)):h.push(e(a,t,n).event)});return{event:h.join(" "),callback:t}};b.each("ready load unload afterLoad scroll resize orientationchange zoom".split(" "),function(b){a[b]=function(c,d){a.call(this,b,c,d)}});
return a}();a.prototype={isListening:z,on:w,one:function(a,b){var c=a.split(" ");if(1<c.length)p.error("A.one only accepts a single event name, but was provided with: "+c.length+", ("+a+")","A.events","one");else return w(a,b,!0)},off:function(a,b){if("object"===typeof a){var c=a.event;a=a.callback}else c=a,a=b;return r(c,a)},trigger:function(a){for(var b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];c.shift();g(a,c)},events:{defaults:{input:"change",select:"change",a:"click",button:"click",
form:"submit"}}};a.prototype.constructor=a;p.when("a-bodyBegin").execute(function(){u("bodyBegin")});d("pagehide",function(){u("pagehide",!1)});p.when("p-detect").execute(function(a){var c=b.once(function(){u("beforeLoad");u("load");b.delay(function(){u("beforeAfterLoad");u("afterLoad")},1500)}),k=b.once(function(){a.responsiveGridEnabled()&&a.toggleResponsiveGrid(!0);u("beforeReady");u("ready");u("afterReady");"complete"===document.readyState&&c()});(function(a){"loading"!=document.readyState?a():
document.addEventListener?document.addEventListener("DOMContentLoaded",a):document.attachEvent("onreadystatechange",function(){"loading"!=document.readyState&&a()})})(k);p.when("a-domready").execute(k);d("load",c)});return a.prototype});"use strict";p.register("prv:a-focus-trap",function(){var b=[];m.document.addEventListener("focusin",function(l){if(0!==b.length){var f=b[b.length-1];f.isElContained(l.target)||f.moveFocus()}});return{register:function(l){b.push(l);return function(){var f=b.indexOf(l);
-1<f&&b.splice(f,1)}}}});"use strict";p.when("a-util","a-events").register("a-prefix",function(b,l){function f(b){return b.toLowerCase().replace(/-(.)/g,function(b,e){return e.toUpperCase()})}var h={transitionend:null},g=document.createElement("div").style,e={},n=["o","ms","moz","webkit"];l.on("beforeReady",function(){if(m.addEventListener){var e=document.createElement("div"),f=function(b){h.transitionend=b.type;this.removeEventListener("webkitTransitionEnd",f,!1);this.removeEventListener("transitionend",
f,!1);this.removeEventListener("otransitionend",f,!1);this.removeEventListener("oTransitionEnd",f,!1)};e.setAttribute("style","position:absolute;top:0px;z-index:-1;transition:top 1ms ease;-webkit-transition:top 1ms ease;-moz-transition:top 1ms ease;-o-transition:top 1ms ease;");e.addEventListener("transitionend",f,!1);e.addEventListener("webkitTransitionEnd",f,!1);e.addEventListener("otransitionend",f,!1);this.addEventListener("oTransitionEnd",f,!1);document.body.appendChild(e);b.delay(function(){e.style.top=
"100px";b.delay(function(){e.parentNode&&e.parentNode.removeChild(e);e=f=null;b.each(h,function(b){})},100)},0)}});return{prefixes:{getStyle:function(b){if(!e[b]){var h=f(b);if(h in g)e[b]=h;else{h=h.charAt(0).toUpperCase()+h.slice(1);for(var l=n.length;l--;){var a=n[l]+h;a in g&&(e[b]=a)}}}return e[b]},getEvent:function(b){return b?h[b.toLowerCase()]:q}}}});"use strict";p.when("a-util","jQuery","a-declarative").register("a-draggable",function(b,l,f){var h,g={_maxZIndex:0,_isInit:!1,_draggables:[],
_init:function(){this._isInit||(this._isInit=!0,this._maxZIndex=975)},create:function(b){this._init();b._zimIndex||(b._zimIndex=975,this._maxZIndex+=1,this._draggables.push(b));this.acquireFocus(b)},acquireFocus:function(b){b.css("zIndex",this._maxZIndex);h.css("zIndex",this._maxZIndex-1);for(var a=0;a<this._draggables.length;a++){var d=this._draggables[a];d[0]!==b[0]&&d._zimIndex>b._zimIndex&&(d._zimIndex-=d._zimIndex>this._maxZIndex-1?2:1,d.css("zIndex",d._zimIndex))}b._zimIndex=this._maxZIndex}},
e=function(e){var a=e.$event;b.contains("touchstart touchend touchmove",e.type)&&(a=a.originalEvent.touches[0]);return{x:a.clientX,y:a.clientY}},n=function(b){var a=b.data.$draggable,d=a.data("a-draggables"),c=e(b);d.isMouseDown&&(a.css({left:c.x-d.clickOffset.x,top:c.y-d.clickOffset.y}),b.$event.preventDefault())},r=function(b){var a=b.$event.target||b.$event.srcElement,d=b.data.$draggable,c=d.data("a-draggables");g.acquireFocus(d);a=l(a).closest(c.$handle,d);c.isMouseDown=0<a.length;c.isMouseDown&&
(h&&h.removeClass("aok-hidden"),a=e(b),c.clickOffset={x:a.x-parseFloat(d.css("left")),y:a.y-parseFloat(d.css("top"))},d.data("a-draggables",c),h.data("a-draggables",c),b.$event.preventDefault())},m=function(b){b=b.data.$draggable;var a=b.data("a-draggables");a.isMouseDown=!1;b.data("a-draggables",a);h&&h.addClass("aok-hidden")};return{draggable:function(b,a){b=b.jquery?b:l(b);a={isMouseDown:!1,$draggable:b,$handle:a&&a.handle?a.handle:b};a.$handle=a.$handle.jquery?a.$handle:l(a.handle);a.$handle.css("cursor",
"move");h||(h=l("\x3cdiv\x3e",{id:"a-draggables-mousedown-layer","class":"aok-hidden"}).appendTo("body"),f.declarative.create(h,"a-draggables",a));g.create(a.$draggable);f.declarative.create(a.$draggable,"a-draggables",a);f.declarative("a-draggables",["mousedown","touchstart"],r);f.declarative("a-draggables",["mouseup","touchend"],m);f.declarative("a-draggables",["mousemove","touchmove"],n)}}});"use strict";p.when("jQuery","a-util","a-events","a-declarative","a-constants","a-analytics").register("a-state",
function(b,l,f,h,g,e){function n(a,d,c,k){var e=!(a in u);if(null===d||b.isArray(d)||b.isPlainObject(d)){var h=l.copy(u[a]);h&&d&&!k&&(b.isArray(h)||b.isPlainObject(h))?l.extend(u[a],d):u[a]=l.copy(d);d=l.diff(h,u[a]);k=l.copy(u[a]);c||f.trigger("a:state:update:"+a,k,d,h);e&&p.declare(g.constants.PAGESTATE_LOADED_MODULE_PREFIX+a,k);return k}p.error("Invalid value passed to A.state with a namespace of "+a+".  Value: "+d,"A.state","updateNamespace")}function r(a,b,c){if(1===b.length)return a[b.shift()]=
c,a;a[b.shift()]=r({},b,c);return a}function m(){for(var a=document.getElementsByTagName("script"),d=0,c=a.length;d<c;d++)if(!b.data(a[d],"a-eval")){var k=b(a[d]),f=k.attr("data-a-state");if(f){try{var g=l.parseJSON(f)}catch(w){throw e.logError("[AUI] key value interface for accessing state data parsing failed","ERROR",JSON.stringify({xpath:l.xpath(a[d]),cssSelector:l.cssSelector(a[d]),custody:l.attributionChain(a[d])})),w;}if(g.key){try{var h=l.parseJSON(k.html())}catch(w){p.logError(w,"State parsing failed for state "+
g.key,"ERROR");continue}b.data(a[d],"a-eval",!0);(k=u[g.key])&&l.extend(h,k);n(g.key,h)}}}}var u={};h.declarative("a-state",function(a){var b=a.$target,c=a.data.key,k=a.data[a.type];k||f.events.defaults[a.targetTag]!==a.type||(k=b.attr("name"));k&&c&&(b.is("select")&&(b=b.find(":selected")),typeof b.val()!==q&&"string"===typeof k&&(a=b.val(),b.is("input[type\x3dcheckbox]")&&!b.prop("checked")&&(a=null),k=r({},k.split("."),a)),n(c,k))});h=function(a,b,c){return b===q?l.copy(u[a]):n(a,b,!!c)};h.bind=
function(a,b){f.on("a:state:update:"+a,b)};h.replace=function(a,b,c){return n(a,b,!!c,!0)};f.on("beforeReady",m);h.parse=m;return{state:h}});"use strict";p.when("prv:a-guard","jQuery","a-util","a-events","a-declarative","a-state").register("a-ajax",function(b,l,f,h,g,e){function n(a,b){if(!a)return"";var c="string"===typeof a;if("string"===b)return c?a:"";if("json"===b){if(c)return a;try{return JSON&&JSON.stringify?JSON.stringify(a):""}catch(y){p.logError(y,"AJAX POST failed to convert JSON object to string")}return""}return c?
"":l.param(a)}function r(a,b){a&&0!==a.length&&("string"===typeof a&&""===f.trim(a)?b&&b(a):(a[0]instanceof Array||(a=[a]),f.each(a,function(c){var d=u[c[0]];d?d.apply(m,c):((d=b)||p.error("There is no handler for the streaming ajax command: "+a[0],"A.ajax","chunkHandler"),d(c))})))}var z=function(){m.XMLHttpRequest||(m.XMLHttpRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var a=function(){function a(){0<b.length?b.pop().send():c--}var b=[],c=0,d=0,e=0;return{add:function(a){4>
c?(a.send(),c++):(b.push(a),d++,b.length>e&&(e=b.length),(a=m.ue)&&a.count&&(a.count("aui:ajax:queued",d),a.count("aui:ajax:maxQueued",e)))},complete:a,abort:function(c){c=f.indexOfArray(b,c);-1!==c&&b.splice(c,1);a()}}}(),b=function(){},d=function(b){var c=b.http,d=!1,e=!1;switch(c.readyState){case 4:e=!0;break;case 3:d=!0}var k=200===c.status||304===c.status,g=b.responsePosition;if(d||e&&k){var n=c.responseText;if(g<n.length){g=n.substring(g,n.length);n=g.split("\x26\x26\x26");var l=g.lastIndexOf("\x26\x26\x26");
if(-1===l&&d)return;l<g.length-3&&d&&n.pop();f.each(n,function(a,c){if(""!==f.trim(a))try{var d=f.parseJSON(a)}catch(D){p.logError(D,"Invalid streaming ajax JSON response: "+a)}else d=a;b.callbacks.chunk(d)});b.responsePosition+=l}}e&&(clearInterval(b.pollTimer),clearTimeout(b.timeoutTimer),a.complete(),k?b.callbacks.success(null,c.statusText,b):b.callbacks.failure(b,c.statusText,c.statusText),h.trigger("a:pageUpdate"),h.trigger("a:ajax:complete"))},e=function(b){var c=b.http;if(4===c.readyState){clearInterval(b.pollTimer);
clearTimeout(b.timeoutTimer);a.complete();var d=c.responseText;try{d=f.parseJSON(d)}catch(x){}200!==c.status&&304!==c.status?b.callbacks.failure(b,c.statusText,c.statusText):b.callbacks.success(d,c.statusText,b);h.trigger("a:ajax:complete")}};return function(){function c(b){4>b.http.readyState&&(clearInterval(b.pollTimer),b.callbacks.failure(b,"Request Timeout","Request Timeout"),a.complete())}function k(a,b,c){c=c||{};c=f.extend({},h.all,h[b],c);f.each(c,function(b,c){(b||""===b)&&a.setRequestHeader(c,
b)});return a}function g(b,c,d,e,f,g,h,n,l,t){var r=b.http;r.open(c,d);k(r,c,l);b.timeout=e;b.callbacks.chunk=f||b.callbacks.chunk;b.callbacks.success=g||b.callbacks.success;b.callbacks.failure=h||b.callbacks.failure;b.callbacks.abort=n||b.callbacks.abort;t&&(r.withCredentials=!0);a.add(b);return{abort:function(){b.abort()}}}var h={all:{"X-Requested-With":"XMLHttpRequest"},get:{Accept:"text/html,*/*"},post:{Accept:"text/html,*/*","Content-Type":"application/x-www-form-urlencoded"}},n=function(){var a=
new XMLHttpRequest;this.pollTimer=null;this.http=a;this.responsePosition=0;this.buffer="";this.callbacks={success:b,failure:b,chunk:b,abort:b}};n.prototype={send:function(){var a=this;a.http.send(a.params);a.pollTimer=setInterval(function(){if(2<=a.http.readyState&&"unknown"!==typeof a.http.responseText){var b=a.http.getResponseHeader("Content-Type");b=b?b.toLowerCase():"";(-1!==b.indexOf("application/json-amazonui-streaming")||-1!==b.indexOf("application/amazonui-streaming-json")?d:e)(a)}},25);a.timeout=
"undefined"===typeof a.timeout?2E4:a.timeout;a.timeoutTimer=f.delay(c,a.timeout,a)},get:function(a,b,c,d,e,k,f,h,n){if(b){var l=a.indexOf("?"),t=a.charAt(a.length-1);-1<l?"?"!==t&&"\x26"!==t&&(a+="\x26"):a+="?";a+=b}return g(this,"get",a,c,d,e,k,f,h,n)},abort:function(){this.http&&this.http.abort();clearInterval(this.pollTimer);clearTimeout(this.timeoutTimer);a.abort(this);this.callbacks.abort(this)},post:function(a,b,c,d,e,k,f,h,n){this.params=b;return g(this,"post",a,c,d,e,k,f,h,n)}};return n}()}(),
u={update:function(a,b,d){l(b).html(d)},append:function(a,b,d){a=l(b);a.html(a.html()+d)},prepend:function(a,b,d){a=l(b);a.html(d+a.html())},state:function(a,b,d){e.state(b,d)},script:function(a,b){eval(b)},trigger:function(a,b){var c=Array.prototype.slice.call(arguments,1);h.trigger.apply(void 0,c)}},a={"a-ajax-update":function(a){var b=new z,c=function(){var a=m.ue;a&&a.tag&&(a.tag("aui"),a.tag("aui:ajax"))},d=a.abort,e=l(a.indicator),g=e.hasClass("aok-hidden");e.removeClass("aok-hidden").show();
var h=function(a,b){e.hide();g&&e.addClass("aok-hidden");c();a&&a.apply(m,b)},n="string"===typeof a.method&&"post"===a.method.toLowerCase()?"post":"get";"get"===n&&!1===a.cache&&(a.params+=[""===a.params?"":"\x26","_\x3d",f.now()].join(""));return b[n](a.url,a.params,a.timeout,function(b){c();r(b,a.chunk)},function(){h(a.success,arguments)},function(){h(a.failure,arguments)},d,a.headers,a.withCredentials)}};g.declarative("a-ajax-update",function(b){var c=b.$target,d=b.action,e=b.data;if(e||h.events.defaults[b.targetTag]===
b.type)if("object"!==typeof e||e[b.type]){e=e||{};var f=e.url||c.attr("href")||c.attr("action"),g=n(e.params,e.paramsFormat),l=c.attr("method")||e.method,r=e.indicator;e=e.timeout;f||p.error("No ajax url provided.","A.ajax","declarativeHandler");"form"===b.targetTag&&b.type===h.events.defaults.form&&(c=c.serialize(),g+=c);b.$event.preventDefault();return a[d]({url:f,params:g,method:l,indicator:r,operation:d,timeout:e})}});var d=function(c,d){d=d||{};var e=this,f=d.headers||{};d.accepts!==q&&(f.Accept=
d.accepts);d.contentType!==q&&(f["Content-Type"]=d.contentType);var k=n(d.params,d.paramsFormat);return a["a-ajax-update"](b.obj(this,{url:c,cache:d.cache,params:k,method:d.method,chunk:d.chunk,success:d.success&&function(){return b.guardTimeFn(e,d.success).apply(this,arguments)},failure:(d.failure||d.error)&&function(){return b.guardTimeFn(e,d.failure||d.error).apply(this,arguments)},abort:d.abort,indicator:d.indicator,timeout:d.timeout,headers:f,withCredentials:!!d.withCredentials}))};return{ajax:d,
get:function(a,b){b=b||{};b.method="get";return d.call(this,a,b)},post:function(a,b){b=b||{};b.method="post";return d.call(this,a,b)}}});"use strict";p.when("a-util","p-detect","a-prefix").register("a-animate",function(b,l,f){function h(a,b,c){a=a.jquery?a[0]:a;b=f.prefixes.getStyle(b);a.style[b]=c}function g(a){var b="",c=l.capabilities.transform3d;a.top!==q&&a.left!==q?(b="translate",c&&(b+="3d"),b+="("+a.left+", "+a.top,c&&(b+=", 0"),b+=")"):(a.top!==q?b="translateY("+a.top+")":a.left!==q&&(b=
"translateX("+a.left+")"),c&&(b+=" translateZ(0)"));a.scale!==q&&(b+=" scale("+a.scale+")");return b}function e(a){var d={},c=!1;b.each(r,function(b){b in a&&(c=!0,d[b]=a[b],delete a[b])});return c?d:null}function n(a,d,c){l.capabilities.transform?("string"===typeof c&&(c=parseInt(c,10)),b.isFiniteNumber(c)||(c=0),a=parseInt(a.css(d),10),b.isFiniteNumber(a)||(a=0),c=c-a+"px"):b.isFiniteNumber(c)&&(c+="px");return c}var r=["top","left","scale"],m={animate:function(a,b,c,e,f){a._a||(a._a=0);a._a++;
var d=function(){a._a--;f&&f()};a.queue("fx",[function(){a.animate(b,{duration:c,easing:"linear"===e?e:"swing",complete:d,queue:!1})}])},fadeIn:function(a,b,c,e){(a.hasClass("aok-hidden")||a.hasClass("a-hidden"))&&a.css("display","none").removeClass("aok-hidden a-hidden");this.stopAnimation(a,!0,!0);a.fadeIn({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},fadeOut:function(a,b,c,e){this.stopAnimation(a,!0,!0);var d=a.css("opacity");a.fadeOut({duration:b,easing:"linear"===c?c:"swing",
complete:function(){a.css("opacity",d);e&&e()},queue:!1})},fadeToggle:function(a,b,c,e){a.fadeToggle({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},slideUp:function(a,b,c,e){a.slideUp({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},slideDown:function(a,b,c,e){a.slideDown({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},slideToggle:function(a,b,c,e){a.slideToggle({duration:b,easing:"linear"===c?c:"swing",complete:e,queue:!1})},isAnimated:function(a){a=
a.jquery?a[0]:a;return a._a&&0<a._a},stopAnimation:function(a,b,c){a.stop(b,c)}},u={animate:function(a,d,c,f,r){if(a&&a.length){var k=a[0];d=b.copy(d);c=c===q?250:c;f=f||"linear";d.top!==q&&(d.top=n(a,"top",d.top));d.left!==q&&(d.left=n(a,"left",d.left));h(a,"transition",4>c?"all 0ms":"all "+c+"ms "+f);4<c?(k._a===q&&(k._a=0),k._a++,f=function(){0<k._a&&k._a--;k._a||h(a,"transition","");a.removeData("aAnimateTimeoutId").removeData("aAnimateOnComplete");r&&r()},a.data("aAnimateOnComplete",f).data("aAnimateTimeoutId",
b.delay(f,c))):r&&b.delay(r,0);l.capabilities.transform&&(c=e(d))&&h(a,"transform",g({top:c.top,left:c.left,scale:c.scale}));b.objectIsEmpty(d)||a.css(d)}},fadeIn:function(a,d,c,e){this.stopAnimation(a,!0,!0);if(a.data("aTargetOpacity")===q){var f=a.css("opacity")||1;a.data("aTargetOpacity",f)}else f=a.data("aTargetOpacity");a.css("opacity","0").removeClass("a-hidden aok-hidden").show();b.reflowCssChanges(a);this.animate(a,{opacity:f},d,c,function(){a.show();e&&e()})},fadeOut:function(a,b,c,e){this.stopAnimation(a,
!0,!0);var d=a.css("opacity");a.data("aTargetOpacity")===q&&a.data("aTargetOpacity",d);this.animate(a,{opacity:0},b,c,function(){a.hide().css("opacity",d);e&&e()})},fadeToggle:function(a,b,c,e){("none"===a.css("display")||.05>+a.css("opacity")?this.fadeIn:this.fadeOut).call(this,a,b,c,e)},slideUp:function(a,d,c,e){var f=this.animate;a.css({height:a.innerHeight(),overflow:"hidden"});b.delay(function(){f(a,{height:0},d,c,function(){a.hide();a.css({height:"",overflow:""});e&&e()})},0)},slideDown:function(a,
d,c,e){var f=a.innerHeight(),g=this.animate;a.css({height:0,overflow:"hidden"});a.show();b.delay(function(){g(a,{height:f},d,c,function(){e&&e();a.css({height:"",overflow:""})})},0)},slideToggle:function(a,b,c,e){(a.is(":visible")?this.slideUp:this.slideDown).call(this,a,b,c,e)},isAnimated:function(a){a=a.jquery?a[0]:a;return a._a&&0<a._a},stopAnimation:function(a,d,c){if(a&&a.length){var e=a[0];h(a,"transition","all "+(c?"1":"0")+"ms");d&&(e._a=0);b.reflowCssChanges(a);clearTimeout(a.data("aAnimateTimeoutId"));
a.data("aAnimateOnComplete")&&a.data("aAnimateOnComplete")()}}};return l.capabilities.transition?u:m});"use strict";p.when("A","jQuery").register("a-image-lazy-loader",function(b,l){function f(){l(".a-lazy-loaded").each(function(){e.set(l(this))})}function h(){var h=[];l(".a-lazy-loaded").each(function(){var n=l(this);n.data("src")&&g(n)&&(n.load(function(){b.trigger("a:image:lazyLoaded",n);f()}),h.push(n),n.removeClass("a-lazy-loaded"),e.remove(n))});b.each(h,function(b){b.attr("src",b.data("src"))})}
function g(b){e.get(b)||e.set(b);var f=l(m),g=f.scrollTop();f=m.innerHeight?m.innerHeight:f.height();var h=g+f+500;g-=500;var a=e.get(b);b=a.top;a=a.height;var d=b+a;return b>=g&&b<h||d>g&&d<=h||a>f&&b<=g&&d>=h}var e=function(){var b={},e=0;return{get:function(e){return b[e.data("cacheKey")]},set:function(f){f.data("cacheKey")||(f.data("cacheKey",e),e++);b[f.data("cacheKey")]={top:f.offset().top,height:f.height()}},remove:function(e){e.data("cacheKey")&&delete b[e.data("cacheKey")]}}}();f();h();b.on("scroll",
function(){h()});b.on("scroll",b.debounce(function(){f();h()},250));b.on("resize",h);b.on("a:image:lazyLoad",h);b.on.ready(h)});"use strict";p.register("a-image-url-key-handler",function(){return{generate:function(b,l){return b},parse:function(b){return{url:b}}}});"use strict";p.when("jQuery","a-util","a-events","a-defer","p-detect","a-image-url-key-handler").register("a-image",function(b,l,f,h,g,e){function n(a){a=b(a);var d=a.data("a-dynamic-image");if(d&&"object"===typeof d){var e=a.data("a-dynamic-image-container");
"undefined"===typeof e&&(e=a.closest(".a-dynamic-image-container"),0===e.length&&(e=a.parent()),a.data("a-dynamic-image-container",e));var h=g.capabilities.hires&&m.devicePixelRatio?m.devicePixelRatio:1,k=e.width()*h,n=e.height()*h,r=Number.MAX_VALUE,p=Number.MAX_VALUE,u=a.attr("src")||"",v,q=k/n;l.each(d,function(a,b){var c="string"===typeof a?JSON.parse(a):a;a=parseInt(c[0],10);c=parseInt(c[1],10);a-=n;c-=k;a=1<=q?c:a;Math.abs(a)<p&&0<=a&&(p=Math.abs(a),v=b);Math.abs(a)<r&&(r=Math.abs(a),u=b)});
v&&(u=v);c.schedule(u,a);c.fill();a.data("a-image-updated",!0);f.trigger("a:dynamicImage:updated",{image:a,url:u});return u}}function r(){b("img.a-dynamic-image").each(function(){b(this).data("a-manual-replacement")||n(this)})}function p(){b("img.a-dynamic-image").each(function(){var a=b(this);a.data("a-manual-replacement")||a.data("a-image-updated")||n(this)})}var u=document.getElementsByTagName("img"),a={},d=0,c=function(){var b=[],c={};return{schedule:function(d,f){d=e.generate(d,f.attr("crossorigin"));
c[d]||(b.push(d),c[d]=!0);a[d]=a[d]||[];for(var g=0;g<a[d].length;g++)if(f.is(a[d][g]))return;a[d].push(f)},fill:function(){for(var a=0;a<2-d;a++)if(0<b.length){var e=b.shift();c[e]=!1;k.load(e)}}}}(),k=function(){function g(b){var c=a[b],d=e.parse(b).url;c&&(l.each(c,function(a){a.data("a-image-replaced")!==d&&(a.data("a-image-replaced",d),h.defer(function(){a.attr("src",d);f.trigger("a:image:load",{$imageElement:a,url:d});var b=a.data("a-image-name");b&&f.trigger("a:image:load:"+b,{$imageElement:a,
url:d})}))}),a[b]=[])}var k={};return{load:function(a){if(k[a])g(a);else if(!1!==k[a]){var b=new Image,f=b.onload=l.once(function(){d--;g(a);k[a]=!0;c.fill()});b.onerror=function(){d--;k[a]=!1;c.fill()};d++;h.defer(function(){var c=e.parse(a),d=c.crossOrigin;d&&(b.crossOrigin=d);b.src=c.url;b.complete&&h.defer(f)})}},poll:function(){l.isPageHidden()||l.each(u,function(a){a=b(a);!a.data("a-hires")||a.data("a-hires-loaded")||a.data("a-manual-replacement")||a.is(":hidden")||!l.onScreen(a)||(c.schedule(a.data("a-hires"),
a),a.data("a-hires-loaded",!0))})}}}();g.capabilities.hires&&f.on.ready(function(){l.interval(function(){k.poll();c.fill()},2E3)});f.on("ready",function(){r();f.on("resize",r);f.on("a:pageUpdate",p)});return{loadHiResImage:function(a){var d=[];b(a).each(function(){var a=b(this),e=a.data("a-hires");e&&(c.schedule(e,a),c.fill(),d.push(e));a.data("a-hires-loaded",!0)});return d},loadDynamicImage:function(a){var c=[];b(a).each(function(){c.push(n(this))});return c},loadImageManually:function(a,c){var d=
[];b(a,c).each(function(){var a=b(this);if(!a.data("a-image-already-loaded")){a.data("a-image-already-loaded",!0);var c=n(a),e=b("\x3cimg\x3e").attr("src",c||a.data("a-image-source"));d.push(c);c=""+this.className;var f=a.data("a-extra-classes");f&&(c+=" "+f);e.attr("class",c);e.attr("id",this.id);e.attr("style",a.attr("style"));e.attr("alt",a.attr("alt"));e.attr("usemap",a.attr("usemap"));e.attr("title",a.attr("title"));e.attr("role",a.attr("role"));(c=a.data("a-image-crossorigin"))&&e.attr("crossorigin",
c);l.each(this.attributes,function(a){a&&a.name&&(0===a.name.indexOf("data-")||0===a.name.indexOf("aria-"))&&e.attr(a.name,a.value)});e.data(a.data());a.replaceWith(e)}return d})},loadDescendantImagesManually:function(a,c){a=b(a,c).find("div.a-manually-loaded").filter(function(){return!b(this).data("a-image-already-loaded")});return this.loadImageManually(a)}}});p.register("a-class",function(){function b(){}var l=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;b.extend=function(f){var h=this.prototype,
g=Object.create?Object.create(h):function(b){function e(){}e.prototype=b;return new e}(h),e;for(e in f)g[e]="function"===typeof f[e]&&"function"===typeof h[e]&&l.test(f[e])?function(b,e){return function(){var f=this._super;this._super=h[b];var g=e.apply(this,arguments);this._super=f;return g}}(e,f[e]):f[e];f="function"===typeof g.init?g.hasOwnProperty("init")?g.init:function(){h.init.apply(this,arguments)}:function(){};f.prototype=g;g.constructor=f;f.extend=b.extend;return f};return{createClass:function(f){return b.extend(f)}}});
"use strict";p.register("a-constants",function(){return{constants:{keycodes:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,DELETE:46,HOME:36,END:35},declarativeEvents:"blur click dblclick focus focusin focusout mousedown mouseup mouseenter mouseleave mousemove change submit touchstart touchend touchmove touchcancel keydown keyup keypress MSPointerDown pointerdown MSPointerUp pointerup MSPointerMove pointermove MSPointerCancel pointercancel MSPointerOver pointerenter MSPointerOut pointerleave",
HIDE_CLASS:"aok-hidden",BROWSER_EVENTS:{SCROLL:"scroll",RESIZE:"resize",ORIENTATION_CHANGE:"orientationChange"},PAGESTATE_LOADED_MODULE_PREFIX:"page-state-loaded:",NOOP:function(){}}}});"use strict";p.when("jQuery","a-detect","a-events","a-util","a-defer").register("a-browser-events",function(b,l,f,h,g){function e(){return m.innerHeight?m.innerHeight:document.documentElement.clientHeight}function n(){return m.innerWidth?m.innerWidth:document.documentElement.clientWidth}function r(){return m.innerWidth?
Math.round(document.documentElement.clientWidth/m.innerWidth*10)/10:1}function p(a){switch(a){case c.ALL:a="orientation height width zoom scrollLeft scrollTop".split(" ");break;case c.SCROLL:a=["scrollLeft","scrollTop"];break;case c.ZOOM:a=["height","width","zoom","scrollLeft","scrollTop"];break;default:a=["orientation","height","width","scrollLeft","scrollTop"]}for(var b={},f,g;(g=a.pop())!==q;)f=k[g],"orientation"===g?k[g]=m.orientation===q?n()>e()?90:0:m.orientation:"height"===g?k[g]=e():"width"===
g?k[g]=n():"scrollTop"===g?k[g]=m.scrollY?m.scrollY:d.scrollTop():"scrollLeft"===g?k[g]=m.scrollX?m.scrollX:d.scrollLeft():"zoom"===g&&(k[g]=r()),k[g]!==f&&(b[g]=f);return b}function u(a){if(a=w[a])a.pollCounter=a.maxPollCount,a.intervalId||(a.intervalId=setInterval(a.handler,a.pollInterval))}function a(a){(a=w[a])&&a.intervalId&&(clearInterval(a.intervalId),a.intervalId=0)}var d=b(m),c={ORIENTATION_CHANGE:"orientationchange",SCROLL:"scroll",RESIZE:"resize",ZOOM:"zoom",ALL:"all"},k={scrollLeft:0,
scrollTop:0,height:e(),width:n(),orientation:m.orientation===q?n()>e()?90:0:m.orientation,zoom:r()};f.on("beforeReady",function(){p(c.ALL)});var v={speed:0,degree:0,direction:"",positionX:0,positionY:0},y=[],B;d.bind("mousemove",h.throttle(function(a){a={x:a.clientX,y:a.clientY};if(B){var b=B,c=0,e=0;y.push({speed:Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2))/50*10,degree:Math.atan2(a.y-b.y,a.x-b.x)/(Math.PI/180)});4<y.length&&(y=y.slice(-4));b=y.length;for(var d=0;d<b;d++)c+=y[d].speed,e+=y[d].degree;
c=Number((c/b).toFixed(2));e=Math.round(e/b);v={speed:c,degree:e,direction:0<=e?157.5<e?"W":112.5<e?"SW":67.5<e?"S":22.5<e?"SE":"E":-157.5>e?"W":-112.5>e?"NW":-67.5>e?"N":-22.5>e?"NE":"E",positionX:a.x,positionY:a.y};B=a}else a&&(B=a)},50));d.bind(c.SCROLL,h.throttle(function(){var a=p(c.SCROLL);f.trigger(c.SCROLL,k,a)},100));var w={};h.each([c.RESIZE,c.ZOOM],function(a){w[a]={handler:function(){},lastViewport:h.copy(k),maxPollCount:5,pollCounter:5,pollInterval:100,intervalId:0}});w.resize.handler=
function(){var b=[],e=w.resize;p("resize");var d=h.diff(k,e.lastViewport);d.orientation&&b.push(c.ORIENTATION_CHANGE);d.width||d.height?b.push(c.RESIZE):l.capabilities.isIETouchCapable&&d.scrollTop&&b.push(c.RESIZE);b.length&&(e.lastViewport=h.copy(k),h.each(b,function(a){f.trigger(a,k,d)}));0===--e.pollCounter&&a(c.RESIZE)};w.resize.pollInterval=100;w.resize.maxPollCount=10;d.bind(c.RESIZE,function(a){u(c.RESIZE)});w.zoom.handler=function(){p(c.ZOOM);var b=w.zoom,e=h.diff(k,b.lastViewport);e.zoom&&
(b.lastViewport=h.copy(k),f.trigger(c.ZOOM,k,e));0===--b.pollCounter&&a(c.ZOOM)};w.zoom.pollInterval=200;l.capabilities.android&&d.bind("touchcancel",function(a){2===a.originalEvent.changedTouches.length&&(w.zoom.maxPollCount=15,u(c.ZOOM))});l.capabilities.ios&&d.bind("touchend",function(a){1===a.originalEvent.touches.length&&(w.zoom.maxPollCount=1,u(c.ZOOM))});l.capabilities.ios||l.capabilities.android||d.bind("resize",function(a){w.zoom.maxPollCount=5;u(c.ZOOM)});return{viewport:function(a){a&&
p(c.ALL);return h.copy(k)},cursor:function(){return h.copy(v)},scrollBarWidth:function(a){if(a||(document&&document.body&&document.body.scrollHeight?document.body.scrollHeight:0)>e()){a=document.createElement("div");a.style.visibility="hidden";a.style.width="100%";a.style.overflowX="scroll";document.body.appendChild(a);var b=a.offsetHeight;document.body.removeChild(a);return b}return 0}}});"use strict";p.when("a-util").register("a-request-animation-frame",function(b){for(var l=0,f=["ms","moz","webkit",
"o"],h=0;h<f.length&&!m.requestAnimationFrame;++h)m.requestAnimationFrame=m[f[h]+"RequestAnimationFrame"],m.cancelAnimationFrame=m[f[h]+"CancelAnimationFrame"]||m[f[h]+"CancelRequestAnimationFrame"];m.requestAnimationFrame||(m.requestAnimationFrame=function(f,e){var g=b.now(),h=Math.max(0,16-(g-l));e=m.setTimeout(function(){f(g+h)},h);l=g+h;return e});m.cancelAnimationFrame||(m.cancelAnimationFrame=function(b){clearTimeout(b)});return{requestAnimationFrame:function(b,e){return m.requestAnimationFrame(b,
e)},cancelAnimationFrame:function(b){m.cancelAnimationFrame(b)}}});"use strict";p.when("jQuery").register("a-form-controls-api",function(b){var l=0,f=function(f){return f&&f.jquery?f:f&&1===f.nodeType?b(f):null},h=function(b,e,h){var g=f(b);if(!g||1!==g.length)return!1;b=g.find("input").first();e!==q&&(e=!!e,g.hasClass("a-touch-multi-select")&&(g.find("i.a-icon").first().toggleClass("a-icon-touch-multi-select-active",e).toggleClass("a-icon-touch-multi-select",!e),g.attr("aria-checked",e)),b.prop("checked")!==
e&&b.prop("checked",e).trigger("change"));h!==q&&(h=!!h,b.prop("disabled")!==h&&b.prop("disabled",h))};return{findFormElementContainer:function(g){if((g=f(g))&&1===g.length){var e=g.closest("form");0===e.length&&(e=g.closest("fieldset"),0===e.length&&(e=b(document)));return e}},toggleCheckboxState:function(b){b=f(b);if(b&&1===b.length){var e=b.find("input").first();h(b,!e[0].checked)}},setCheckboxState:h,setRadioState:h,normalizeElement:function(b){if((b=(b=f(b))?b:f(this))&&1===b.length){var e=b.find("input").first();
e.attr("type");var g=b.hasClass("a-touch-multi-select");b.attr("id")||e.attr("id")||g&&(!g||b.parent().attr("id"))||(g="a-form-controls-autoid-"+l,b.attr("aria-labelledby",g).find(".a-checkbox-label, .a-radio-label, .a-touch-multi-select-item-label").attr("id",g),l++);h(b,e[0].checked,e[0].disabled)}},normalizeFieldsets:function(f){b(f).closest("fieldset").each(function(e,f){e=b(f);f=e.find("legend").first();if(f.length){var g=f.attr("id");g||(g="a-form-controls-autoid-"+l,f.attr("id",g),l++);e.attr("aria-describedby",
g)}})}}});"use strict";p.when("a-util","a-constants").execute("prepare-a-weblab",function(b,l){p.when(l.constants.PAGESTATE_LOADED_MODULE_PREFIX+"a-wlab-states").register("a-weblab",function(f){function h(b){m||(q[b]=n[b]);return m&&m[b]||n[b]}function g(b){return h(b)||"C"}function e(b){return h(b)||"C"}var n=f||{},m,q={};p.when(l.constants.PAGESTATE_LOADED_MODULE_PREFIX+"a-ltree-states").execute(function(e){m=e||{};b.each(b.keys(q),function(a){(m[a]||q[a])&&m[a]!==q[a]&&p.log("a-weblab returned wrong value for "+
a+". It returned "+q[a]+". it is set as "+m[a]+" at a-ltree-states.")})});return{is:function(b,a,d){return(d?e:g)(b)===a},isActive:function(b){return!!h(b)},noTrigger:g,trigger:e}})});"use strict";p.declare("prv:a-post-atf-catchdomready",!0);p.when("a-util","a-defer","prv:a-post-atf-catchdomready").register("prv:a-post-atf",function(b,l,f){function h(){n||(n=!0,b.each(e,function(b){l.defer(b)}),e=[])}function g(){f&&h()}var e=[],n=!1;p.when("af","cf").execute("flush_queued_functions_after_ATF",h);
p.when("a-domready").execute("flush_queued_functions_after_domready",function(){b.delay(g,500)});return{execute:function(b){n?l.defer(b):e.push(b)}}});"use strict";p.register("prv:a-tnr",function(){function b(){for(var b=Array(arguments.length),h=0;h<b.length;++h)b[h]=arguments[h];return b}function l(){}return{findTnrAttribute:function(){return null},ack:l,ackDelegated:l,ackDeclarative:l,wrapJqBindArgs:function(){return b.apply(null,arguments).slice(1)},wrapJqUnbindArgs:b,wrapDeclarativeActionHandler:function(b){return b}}});
"use strict";p.when("A").register("a-component-mixins",function(b){function l(f){for(var e=0;e<f.length;e++)if(0>b.indexOfArray(h,f[e]))return!1;return!0}var f=0,h=b.constants.declarativeEvents.split(" ");return{show:function(){this._$element.removeClass("a-hidden aok-hidden").show();b.trigger("a:image:lazyLoad");return this},hide:function(){this._$element.addClass("aok-hidden");return this},toggle:function(){return this._$element.hasClass("aok-hidden")?this.show():this.hide()},size:function(){return this._$element.size()},
isEmpty:function(){return 0===this._$element.size()},on:function(g,e){var h=b.parseFunctionName(e);h||p.error.call({},"Please name all asynchronous event callbacks");if(g=g?g.split(" "):q){this.fnMap=this.fnMap||{};l(g)||p.error.call({},"That event is not supported!");var m=this;b.each(g,function(g){this.fnMap[g]=this.fnMap[g]||[];var l=this.fnMap[g][e]="a-component-event-"+f++;b.declarative(l,g,function(){try{e.apply(m,m.callbackArgs||[])}catch(a){p.logError.call({},a,"Error occurred in an asynchronous event callback",
"FATAL",(e.caller||"")+g+"handler:"+(h||"anonymous"))}});b.declarative.create(m._$element,l)},m)}},off:function(f,e){f=f?f.split(" "):q;this.fnMap||p.error.call({},"There are no callbacks assigned to this component");f&&e?b.each(f,function(f){try{b.declarative.remove(this._$element,this.fnMap[f][e]),delete this.fnMap[f][e]}catch(r){p.error.call({},"The component is not bound to a callback with name "+b.parseFunctionName(e)||"anonymous for event "+f)}},this):e||f?!e&&f?b.each(f,function(b){for(var e in this.fnMap[b])this.fnMap[b].hasOwnProperty(e)&&
this.off(b,e);delete this.fnMap[b]},this):p.error.call({},"Please provide an event associated with the callback"):(b.declarative.remove(this._$element),delete this.fnMap)},trigger:function(f,e){this.callbackArgs=e||[];b.$.fn.trigger.call(this._$element,f)}}});"use strict";p.when("A","jQuery","a-component-mixins","a-analytics","prv:a-sampler").register("a-component",function(b,l,f,h,g){var e=b.createClass({init:function(e,f){b.contains(e,".a-")&&p.error("{API} Cannot create components using 'a-' selectors. Apply your own CSS class or ID to select this element.",
"API","component");this._$element=l(e,f);this._trackApi()},_trackApi:function(){this._componentName&&g("AUI API Analytics")&&h.increment("api:"+this._componentName)}});return{create:function(h){var g=h.mixin;g&&delete h.mixin;h=e.extend(h);g&&b.mixin(h.prototype,f,g);return h}}});"use strict";p.when("A","jQuery","a-component").register("a-alert",function(b,l,f){var h=["error","success","warning","info"],g=b.map(h,function(b){return"a-alert-"+b}).join(" "),e=b.map(h,function(b){return"a-alert-inline-"+
b}).join(" "),n=document.createElement("h4");n.className="a-alert-heading";var m=l(n),q=f.create({_componentName:"alert",init:function(b,a){this._super(b,a);this._$element=this._$element.filter(".a-alert, .a-alert-inline");this._$heading=this._$element.find(".a-alert-heading");this._$content=this._$element.find(".a-alert-content")},mixin:["show","hide","size","isEmpty"],heading:function(b){if("undefined"===typeof b)return this._$heading.text();this._$heading.length?this._$heading.text(b):this._$heading=
m.clone().text(b).insertBefore(this._$content);return this},removeHeading:function(){this._$heading.remove();this._$heading=l();return this},text:function(b){if("undefined"===typeof b)return this._$content.text();this._$content.text(b);return this},html:function(b){if("undefined"===typeof b)return this._$content.html();this._$content.html(b);return this},type:function(f){-1===b.indexOfArray(h,f)&&p.error("{API} Alert type must be one of [error, success, warning, info].","API","alert");this._$element.each(function(a,
b){a=l(b);b="a-alert-";a.hasClass("a-alert-inline")?(b+="inline-",a.removeClass(e)):a.removeClass(g);a.addClass(b+f)});return this}});return function(b,a){return new q(b,a)}});"use strict";p.when("jQuery","a-component","a-form-controls-api").register("a-checkbox",function(b,l,f){var h=f.setCheckboxState,g=l.create({_componentName:"checkbox",init:function(b,f){this._super(b,f);this._$element=this._$element.closest(".a-checkbox");this._$input=this._$element.find("[type\x3dcheckbox]")},mixin:["show",
"hide","size","isEmpty"],check:function(b){b=void 0===b?!0:b;this._$element.each(function(){h(this,b)});return this},uncheck:function(){return this.check(!1)},toggleChecked:function(){this._$element.each(function(){f.toggleCheckboxState(this)});return this},isChecked:function(){for(var b=0,f=this._$input.length;b<f;b++)if(!this._$input[b].checked)return!1;return!0},isUnchecked:function(){for(var b=0,f=this._$input.length;b<f;b++)if(this._$input[b].checked)return!1;return!0},enable:function(b){b=void 0===
b?!0:b;this._$element.each(function(){h(this,void 0,!b)});return this},disable:function(){return this.enable(!1)},toggleEnabled:function(){for(var b=0,f=this._$input.length;b<f;b++)h(this._$element[b],void 0,!this._$input[b].disabled);return this},isEnabled:function(){for(var b=0,f=this._$input.length;b<f;b++)if(this._$input[b].disabled)return!1;return!0},isDisabled:function(){for(var b=0,f=this._$input.length;b<f;b++)if(!this._$input[b].disabled)return!1;return!0},toggle:function(e){"undefined"!==
typeof e&&(e=!!e);this._$element.each(function(){b(this).toggle(e)});return this}});return function(b,f){return new g(b,f)}});"use strict";p.when("A","a-component").register("a-meter",function(b,l){var f=l.create({_componentName:"meter",init:function(b,f){this._super(b,f);this._$element=this._$element.filter(".a-meter, .a-meter-with-txt");this._$bar=this._$element.find(".a-meter-bar");this._$progressTxt=this._$element.find(".a-meter-progress-txt")},mixin:["show","hide","size","isEmpty"],get:function(){return{percent:this.percent(),
txt:this.text()}},enable:function(){this._$element.removeClass("a-inactive");return this},disable:function(){this._$element.addClass("a-inactive");return this},isEnabled:function(){return!this._$element.hasClass("a-inactive")},percent:function(f){if("undefined"===typeof f)return f=this._$bar.get(0).style.width,parseInt(f,10);b.isFiniteNumber(f)||p.error("{API}  Meter percent should be a number between 0 and 100","a-meter","setProgress");f=Math.min(100,Math.max(0,f));var g=f+"%";f=f.toString();this._$bar.css({width:g});
this._$element.attr({"aria-label":g,"aria-valuenow":f});return this},text:function(b){if("undefined"===typeof b)return this._$progressTxt.text();this._$progressTxt.text(b);return this},set:function(b,f){this.percent(b);f&&this.text(f);return this}});return function(b,g){return new f(b,g)}});p.when("a-component").register("a-spinner",function(b){var l=b.create({_componentName:"spinner",init:function(b,h){this._super(b,h);this._$element=this._$element.filter(".a-spinner-wrapper, .a-spinner")},mixin:["show",
"hide","isEmpty","size"],remove:function(){this._$element.remove()}});return function(b,h){return new l(b,h)}});"use strict";p.register("a-ua",function(){return{compareVersions:function(b,l,f){var h=function(b){p.error("Versions are not comparable. "+b,"A - extras","compareVersions")};f=f||".";"string"===typeof b&&"string"===typeof l&&"string"===typeof f&&""!==b&&""!==l||h("Input values are not valid.");b=b.split(f);l=l.split(f);f=Math.max(b.length,l.length);for(var g=0;g<f;g++){var e=g<b.length?
Number(b[g]):0,m=g<l.length?Number(l[g]):0;!isNaN(e)&&isFinite(e)&&!isNaN(m)&&isFinite(m)||h("Piece of one version number evaluates to NaN or +/- Infinity.");if(e<m)return-1;if(e>m)return 1}return 0}}});"use strict";p.when("A","3p-promise","load").register("a-pcv",function(b,l){var f;return{getData:function(){f||(f=new l(function(b,f){var e=m.pcv.AmazonUI;e?(document.documentElement.setAttribute("data-aui-version",e),b(e)):f(Error("Package closure version of AmazonUI is not found on the page"))}));
return f}}})});
/* ******** */
'use strict';(function(h){var f=window.AmazonUIPageJS||window.P,m=f._namespace||f.attributeErrors,d=m?m("AmazonUIBaseJS@declarative","AmazonUI"):f;d.guardFatal?d.guardFatal(h)(d,window):d.execute(function(){h(d,window)})})(function(h,f,m){"use strict";h.when("jQuery","a-util","a-events","a-constants","prv:a-guard","prv:csa-logger").register("a-declarative",function(d,l,h,n,f,m){function q(a){var c=d(a.currentTarget),b=d(a.target);if("submit"===a.type){var e=b.closest("form");e.length&&(b=e)}if(e=
c.data("action"))a={$target:b,$currentTarget:c,targetTag:b.prop("tagName").toLowerCase(),type:a.type,$event:a,$declarativeParent:c},t(e,a)}function t(a,c){var b=c.$event,e=c.$target,g=c.$currentTarget,d=c.type;a=a.split(" ");l.each(a,function(a){var k=r[a]||{},p=g.data(a),f=l.extend({},c,{action:a,data:p});a="a:declarative:"+a;var m=a+":"+d;h.trigger(a,f);h.trigger(m,f);f=!1;p?f=!!p.allowLinkDefault:k&&(f=!!k.allowLinkDefault);"click"!==b.type||f?k=!1:(k=e.closest("a"),k=k.length&&("#"===k[0].href||
b.currentTarget===k[0]||k.parent(".a-declarative").length));k&&b.preventDefault()})}var r={};d(document).delegate(".a-declarative",n.constants.declarativeEvents,q);d(document).delegate(".a-gesture","tap swipe swipe-horizontal swipe-vertical pan-horizontal pan-vertical doubleTap",q);n=function(){switch(arguments.length){case 2:var a=arguments[0];var c=arguments[1];break;case 3:a=arguments[0];var b=arguments[1];c=arguments[2];break;case 4:a=arguments[0];b=arguments[1];var d=arguments[2];c=arguments[3]}if(a){"string"===
typeof a&&(a=l.trim(a).split(" "));var g=this;l.each(a,function(a){var e="a:declarative:"+a;r[a]=d||{};b?(b="string"===typeof b?l.trim(b).split(" "):b,l.each(b,function(b){h.on.call(g,e+":"+b,function(){return f.guardTimeFn(g,c).apply(this,arguments)});"click"!=b&&"swipe"!=b||m.declarative(a,b)})):h.on.call(g,e,c)})}};n.create=function(a,c,b){var e=a.jquery&&a.length?a:d(a);if(e.length&&c){var g=e.data("action");e.data("action",g?g+" "+c:c).data(c,b?b:{});e.addClass("a-declarative")}return a};n.remove=
function(a,c){var b=a.jquery&&a.length?a:d(a);if(!b.length)return a;var e=b.data("action");if(!e)return a;var g=e.split(" ");c?(c=c.split(" "),l.each(c,function(a){var c=l.indexOfArray(g,a);0<=c&&(g.splice(c,1),b.data(a,null))})):(l.each(g,function(a){b.data(a,null)}),g=[]);g.length?b.data("action",g.join(" ")):b.data("action",null).removeClass("a-declarative");return a};return{declarative:n}});h.register("prv:csa-logger",function(){return{declarative:function(d,f){},element:function(d,f){}}})});
/* ******** */
'use strict';(function(f){var e=window.AmazonUIPageJS||window.P,n=e._namespace||e.attributeErrors,a=n?n("AmazonUIBaseJS@preload","AmazonUI"):e;a.guardFatal?a.guardFatal(f)(a,window):a.execute(function(){f(a,window)})})(function(f,e,n){"use strict";f.when("3p-promise","a-analytics","a-util","prv:a-preload-queue","prv:a-preload-strategies").register("a-preload",function(a,e,h,k,f){function m(){return new a(function(a){setTimeout(a,2500)})}function p(d,b){var p=Date.now();b=f.getStrategy(d,b)(d,b);var g=
a.race([b.promise,m()]).then(function(){e.increment("preload_fulfilled");return{url:d,success:!0,duration:Date.now()-p}},function(g){e.increment("preload_failed");return{url:d,success:!1,reason:g}});b.teardown&&g.then(b.teardown);return g}function l(d,b){if("string"===typeof d){if(!d.trim())return a.resolve();e.increment("preload_asks");return k(b).then(function(a){return p(d,b).then(a)})}return h.isArray(d)?a.all(d.map(function(a){return l(a,b)})):a.reject("not an URL or URL list")}return{preload:l}});
f.when("3p-promise").register("prv:a-preload-queue",function(a){function e(){if(h){var a=(k.length?k:m?q:[]).pop();a&&(h--,a())}}var h=5,k=[],q=[],m=!1;f.when("afterLoad").execute(function(){m=!0;for(var a=h;0<a;a--)e()});return function(f){function l(){l=function(){};h++;e()}return(new a(function(a){var b=f?k:q;b.splice(Math.round(Math.random()*b.length),0,a);e()})).then(function(){return function(a){l();return a}})}});f.when("3p-promise","a-util").register("prv:a-preload-strategies",function(a,
f){function h(a){a=(a=/^(?:[^?#]+)[.]([a-z2]+)(?:[?#].*)?$/.exec(a))&&a[1]||"";return"js"===a?"script":"css"===a?"style":/^gif|jpe?g|png$/.test(a)?"image":/^woff2?$/.test(a)?"font":"fetch"}function k(a,c){var g=/^(https?:|[/][/])/;return!(new RegExp("^("+c.protocol+")?//"+c.hostname+"/")).test(a)&&g.test(a)}function q(g){return function(c){var b=document.createElement("link");return{promise:new a(function(a,f){try{var d=h(c);b.rel=g;b.as=d;if("font"==d||"script"==d&&k(c,e.location))b.crossOrigin=
"anonymous";b.href=c;b.onerror=b.onload=a;document.head.appendChild(b)}catch(u){f("failed to preload link loader")}}),teardown:function(){b&&b.parentElement&&b.parentElement.removeChild(b)}}}}function m(b){var c=new Image;return{promise:new a(function(a,g){try{c.style.display="none",c.onerror=c.onload=a,c.src=b,document.documentElement.appendChild(c)}catch(r){g("failed to preload image loader")}}),teardown:function(){c&&c.parentElement&&c.parentElement.removeChild(c)}}}function p(b){return{promise:new a(function(a,
g){try{var c=new XMLHttpRequest;c.open("GET",b,!0);c.onreadystatechange=function(){4==this.readyState&&a()};c.send()}catch(r){g("failed to preload ajax loader")}})}}function l(b){return{promise:new a(function(a,g){try{var c=h(b),d={mode:"font"==c||"script"==c&&k(b,e.location)?"cors":"no-cors"};e.fetch(b,d).finally(a)}catch(t){g("failed to preload fetch loader")}})}}var d=!!e.fetch,b=!1;(function(){try{var a=document.createElement("link");b=a.relList.supports("preload");a.relList.supports("prefetch")}catch(c){}})();
var n=b?q("preload"):function(){};return{getStrategy:function(a,c){a=h(a);return b&&c?n:"image"===a?m:d?l:p}}})});
/* ******** */
'use strict';(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIBaseJS@touch","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
'use strict';(function(a){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,b=d?d("AmazonUIBaseJS@A","AmazonUI"):c;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,c,d){"use strict";a.when("a-bodyBegin").execute("build-A",function(){var b=a.execute().decorate,c=a.when("a-util","a-defer","a-base","a-events","a-declarative","a-state","a-ajax","a-animate","a-image","a-constants","a-detect","a-browser-events","a-preload","a-prefix","a-request-animation-frame",
"a-class","a-draggable").register("A",function(a){function e(b,e,d,f){this._guard=b;this._logError=e;this._guardTime=d;a.each(c,function(c){a.extend(this,new c.constructor(b,e))},this)}var c=[];e.prototype={};a.each(arguments,function(d){b&&d.constructor!==Object?c.push(d):(delete d.constructor,a.extend(e.prototype,d))});return b?e:e.prototype});b&&c.decorate(function(b,a){return new b(a.guard,a.logError,a.guardTime)})})});
/* ******** */
'use strict';(function(c){var f=window.AmazonUIPageJS||window.P,g=f._namespace||f.attributeErrors,d=g?g("AmazonUIButton@buttonJS","AmazonUI"):f;d.guardFatal?d.guardFatal(c)(d,window):d.execute(function(){c(d,window)})})(function(c,f,g){c.when("A","a-component").register("a-button",function(d,l){function e(a){a.preventDefault()}var h=l.create({_componentName:"button",init:function(a,b){this._super(a,b);this._$element=this._$element.filter(".a-button");this._$coreFormElement=this._$element.children(".a-button-inner").children("button,input");
this._$coreLinkElement=this._$element.children(".a-button-inner").children("a");this._$contentElement=this._$element.find(".a-button-text");this._$accessibleElement=this._$element.children(".a-button-inner").find('[role\x3d"radio"]');0>=this._$accessibleElement.length&&(this._$accessibleElement=this._$element.filter("[role\x3d'radio']"))},mixin:"show hide toggle isEmpty size on off trigger".split(" "),enable:function(){this._$element.removeClass("a-button-disabled");this._$coreFormElement.prop("disabled",
!1);this._$coreLinkElement.unbind("click",e);this._$coreLinkElement.removeAttr("aria-disabled");return this},disable:function(){this._$element.addClass("a-button-disabled").removeClass("a-button-focus");this._$coreFormElement.prop("disabled",!0);this._$coreLinkElement.click(e);this._$coreLinkElement.attr("aria-disabled","true");return this},isEnabled:function(){return!this._$element.hasClass("a-button-disabled")},setStatus:function(a){var b=this._$element,e=[null,"normal","selected","disabled","error",
"inactive"],k=0>d.indexOfArray(e,a),m="radio"===this._$accessibleElement.attr("role");if(k)return c.error(a+" is not a valid status"),!1;d.each(e,function(a){b.removeClass("a-button-"+a)});this._$coreFormElement.prop("disabled","disabled"===a);this._$accessibleElement.attr("aria-checked",function(k,b){return m?"selected"===a:b});null!==a&&b.addClass("a-button-"+a);return this},text:function(a){if(!(1>this._$contentElement.length)){if("undefined"===typeof a)return this._$contentElement.text();this._$contentElement.text(a);
return this}}});return function(a,b){return new h(a,b)}});"use strict";c.when("A","a-component").register("a-toggle-button",function(d,c){function e(a){a.preventDefault()}function h(a){d.each(b,function(b){a._$element.removeClass(b)},a)}function a(a){return 0===a._$element.length||0===a._$coreFormElement.length}var b=["a-button-selected","a-button-focus"],f=c.create({_componentName:"toggleButton",init:function(a,b){this._super(a,b);this._$element=this._$element.filter(".a-button");this._$coreFormElement=
this._$element.find(".a-button-inner").find("button,input");this._$coreLinkElement=this._$element.find(".a-button-inner a");this._$accessibleElement=this._$element.children(".a-button-inner").find('[role\x3d"radio"]');0>=this._$accessibleElement.length&&(this._$accessibleElement=this._$element.filter("[role\x3d'radio']"))},name:function(){return this._$coreFormElement.attr("name")},enable:function(){this._$element.removeClass("a-button-disabled");this._$coreFormElement.prop("disabled",!1);this._$coreLinkElement.unbind("click",
e);return this},disable:function(){h(this);this._$element.addClass("a-button-disabled");this._$coreFormElement.prop("disabled",!0);this._$coreLinkElement.click(e);return this},setAvailable:function(){this._$element.removeClass("a-button-unavailable");return this},setUnavailable:function(){this._$element.addClass("a-button-unavailable");return this},isEnabled:function(){return!a(this)&&!this._$element.hasClass("a-button-disabled")},setSelected:function(){!a(this)&&this.isEnabled()&&(this._$element.addClass("a-button-selected a-button-focus"),
this._$accessibleElement.attr("aria-checked","true"));return this},setUnselected:function(){h(this);this._$accessibleElement.attr("aria-checked","false");return this},isSelected:function(){return!a(this)&&this._$element.hasClass("a-button-selected")},isAvailable:function(){return!a(this)&&!this._$element.hasClass("a-button-unavailable")}});return function(a,b){return new f(a,b)}});"use strict";c.when("A","a-component","a-toggle-button").register("a-toggle-button-group",function(d,c,e){var f=c.create({_componentName:"toggleButtonGroup",
init:function(a,b){this._super(a,b);this._$toggleGroupElement=this._$element.filter(".a-button-group, .a-button-toggle-group").eq(0);this._$toggleGroupName=(a=this._$toggleGroupElement.data("a-button-group"))?a.name:g},name:function(){return this._$toggleGroupName},getToggleButtonByName:function(a){return this.getToggleButtonBySelector(".a-button:has([name\x3d"+a+"])")},setSelected:function(a){a=this.getToggleButtonBySelector(a);a.isEnabled()&&(this.getSelected().setUnselected(),a.setSelected());
return this},getSelected:function(){return this.getToggleButtonBySelector(".a-button.a-button-selected")},getToggleButtonBySelector:function(a){return e(this._$toggleGroupElement.find(a))}});return function(a,b){return new f(a,b)}})});
/* ******** */
(function(d){var e=window.AmazonUIPageJS||window.P,f=e._namespace||e.attributeErrors,b=f?f("AmazonUIMeter","AmazonUI"):e;b.guardFatal?b.guardFatal(d)(b,window):b.execute(function(){d(b,window)})})(function(d,e,f){d.when("A","ready").register("a-meters",function(b){var c=b.$;if(document.getElementsByClassName){var d=function(a){a.removeClass("a-meter-unfilled").addClass("a-meter-filled")};c(".a-meter-bar").not(".a-manual-animation").each(function(){var a=c(this);b.onScreen(a,0)?a.addClass("a-meter-filled"):
a.addClass("a-meter-unfilled")});c("body").addClass("a-meter-animate");b.on("resize orientationchange scroll",function(a){c(".a-meter-unfilled").each(function(){var a=c(this);b.onScreen(a,0)&&d(a)})});b.on("a:popover:afterShow",function(a){"ajax"!==a.popover.currentDataStrategy&&(a=a.popover.$popover.find(".a-meter-unfilled"),a.length&&d(a))});b.on("a:popover:ajaxContentLoaded",function(a){var c=a.popover.$popover.find(".a-meter-bar").not(".a-manual-animation");c.length&&(c.addClass("a-meter-unfilled"),
b.delay(function(){d(c)},17))})}})});
/* ******** */
'use strict';(function(c){var d=window.AmazonUIPageJS||window.P,e=d._namespace||d.attributeErrors,b=e?e("AmazonUIFilter","AmazonUI"):d;b.guardFatal?b.guardFatal(c)(b,window):b.execute(function(){c(b,window)})})(function(c,d,e){c.when("A").register("a-filter",function(b){function c(a){a.attr("data-a-selected","true").attr("aria-pressed","true")}function d(a){a.attr("data-a-selected","false").attr("aria-pressed","false")}function e(a){return{$filters:a,filter:function(a){return e(this.$filters.filter(a))},
pills:function(){return this.filter("[data-a-type\x3d'pill']")},dropdowns:function(){return this.filter("[data-a-type\x3d'dropdown']")},buttons:function(){return this.filter("[data-a-type\x3d'button']")},selected:function(){return this.filter("[data-a-selected\x3d'true']")},deselected:function(){return this.filter("[data-a-selected\x3d'false']")},enabled:function(){return this.filter(":not([disabled])")},disabled:function(){return this.filter("[disabled]")},select:function(){var a=this.$filters.filter("[data-a-selected\x3d'false']");
c(a);g(a);return this},deselect:function(){var a=this.$filters.filter("[data-a-selected\x3d'true']");d(a);g(a);return this},toggle:function(){var a=this.$filters.filter("[data-a-selected\x3d'false']"),b=this.$filters.filter("[data-a-selected\x3d'true']");c(a);d(b);g(this.$filters);return this},enable:function(){this.$filters.prop("disabled",!1);return this},disable:function(){this.$filters.prop("disabled",!0);return this},show:function(){this.$filters.attr("data-a-hidden","false");return this},hide:function(){this.$filters.attr("data-a-hidden",
"true");return this},setText:function(a){this.$filters.find("[data-a-selector\x3d'user-content']").text(a);return this},getSize:function(){return this.$filters.size()},isEmpty:function(){return 0===this.getSize()},allSelected:function(){var a=!0;this.$filters.each(function(){if("true"!==f(this).attr("data-a-selected"))return a=!1});return a},anySelected:function(){var a=!1;this.$filters.each(function(){if("true"===f(this).attr("data-a-selected"))return a=!0,!1});return a},getName:function(){return this.$filters.attr("name")},
getValue:function(){return this.$filters.attr("value")}}}function g(a){var c={};a.each(function(){var a=f(this),b=a.closest("[data-a-component\x3d'filter-group']").attr("data-a-name");b&&(c[b]=f.merge(c[b]||[],a))});b.each(c,function(a,c){b.trigger("a:filter:group:"+c+":change",h(a))})}function k(a){a=f(a).find("[data-a-component\x3d'filter']");return e(a)}function h(a){a=f(a).filter("[data-a-component\x3d'filter']");return e(a)}var f=b.$;b.declarative("a-filter-pill-toggle","click",function(a){a=
a.$target.closest("[data-a-component\x3d'filter']");h(a).toggle()});return{within:k,inGroup:function(a){return k("[data-a-component\x3d'filter-group'][data-a-name\x3d'"+a+"']")},get:h}})});
/* ******** */
(function(d){var g=window.AmazonUIPageJS||window.P,f=g._namespace||g.attributeErrors,a=f?f("AmazonUIFont","AmazonUI"):g;a.guardFatal?a.guardFatal(d)(a,window):a.execute(function(){d(a,window)})})(function(d,g,f){d.when("jQuery","A","3p-promise").register("a-fonts",function(a,d,l){function m(a,d){var b=e&&e[a]?e:d;return function(){return b[a].apply(b,arguments)}}var h=[],b=a("body"),f=function(){return new l(function(a,b){var e=g.setInterval(function(){d.reduce(h,function(a,b){return a&&"loaded"===
b.status},!0)&&(a(),clearInterval(e))},50)})}(),k={load:function(d){return new l(function(e,f){var c={variant:d,status:"unloaded"};h.push(c);c.$loader=a("\x3cspan\x3e.\x3c/span\x3e",{"class":"aok-hidden"}).css("font",c.variant).appendTo(b);c.status="loading";c.$checker=a("\x3cspan\x3e.\x3c/span\x3e",{"class":"aok-hidden"}).appendTo(b);c.intervalId=g.setInterval(function(){c.$checker.css("font",c.variant+', Consolas, "Courier New", Courier, monospace');var a=c.$checker.width(),b=c.$checker.height();
c.$checker.css("fontFamily",'Consolas, "Courier New", Courier, monospace');if(c.$checker.width()!==a||c.$checker.height()!==b)e(c.variant),c.status="loaded",c.$loader.remove(),c.$checker.remove(),clearInterval(c.intervalId)},50)})},check:function(a){d.each(h,function(b){if(b.variant===a)return"loaded"===b.status});return!1},ready:f},e=document.fonts;e&&e.ready&&(f=e.ready.then?e.ready:e.ready.apply(e));return{load:m("load",k),check:m("check",k),ready:f}});"use strict";d.when("A","a-fonts","prv:a-capabilities",
"load").register("prv:a-custom-font-loader",function(a,d,f){return function(g,h){!f.isUCBrowser&&a.localStorage&&-1===a.indexOfArray((a.localStorage.getItem("a-font-class")||"").split(" "),g)&&(d.ready.then(function(b){b=a.localStorage.getItem("a-font-class")||"";b+=(b.length?" ":"")+g;a.localStorage.setItem("a-font-class",b)}),a.each(h,function(a){d.load(a)}))}});"use strict";d.when("prv:a-custom-font-loader").execute("a-ember-loader",function(a){a("a-ember","1em Amazon Ember;bold 1em Amazon Ember;200 1em Amazon Ember;500 1em Amazon Ember;italic 1em Amazon Ember;italic bold 1em Amazon Ember;italic 200 1em Amazon Ember;italic 500 1em Amazon Ember".split(";"))})});
/* ******** */
(function(n){var E=window.AmazonUIPageJS||window.P,z=E._namespace||E.attributeErrors,e=z?z("AmazonUICarousel","AmazonUI"):E;e.guardFatal?e.guardFatal(n)(e,window):e.execute(function(){n(e,window)})})(function(n,E,z){n.declare("a-carousel-constants",{ANIMATING:"animating",ANIMATION_SPEED:"animation_speed",AUTO_ADJUST_HEIGHT:"auto_adjust_height",CIRCULAR:"circular",CURRENT_PIXEL:"px",CURRENTLY_WRAPPING:"currentlyWrapping",DELAY_TIME:"delay_time",ELEMENT_CSS_CLASS:"elementCssClass",FETCHED_ITEMS:"fetchedItems",
FIRST_VISIBLE_ITEM:"firstVisibleItem",HEIGHT_ANIMATION_SPEED:"height_animation_speed",HIDE_OFF_SCREEN:"hide_off_screen",INIT_EVENTS:"a:pageUpdate beforeReady",LOADING:"loading",MIN_GUTTER:"minimum_gutter_width",NAME:"name",NO_TRANSITION:"no_transition",PAGE_NUMBER:"pageNumber",PAGE_SIZE:"pageSize",PEEK_GRADIENT:"peek_gradient",PEEK_PERCENTAGE:"peek_percentage",PEEK_WIDTH:"peek_width",SET_SIZE:"set_size",SHOW_PARTIAL_NEXT:"show_partial_next",SPRINGINESS:"springiness",STATIC_LOADER_CSS_CLASS:"staticLoaderCssClass",
TOTAL_PAGES:"totalPages",TOUCH_EASING:"touch_easing",TRANSITION_STRATEGY:"transitionStrategy",DISPLAY_STRATEGY:"displayStrategy",WRAP_EASING:"wrap_easing",TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX:"transitionSlideCircularFirstCardIndex",NEXT_REQUEST_SIZE:"next_request_size",LOADING_THRESHOLD_PIXELS:"loading_threshold_pixels"});"use strict";n.when("jQuery").register("a-carousel-utils",function(e){function m(d){return"string"===typeof d}function g(d){return d&&d.nodeType!==z}function d(e){return""===
e?"\x3cdiv\x3e\x3c/div\x3e":e?m(e)||g(e)?e:d(e.content):null}function l(d){d&&(m(d)||g(d)?d=!0:d.content=l(d.content));return d}return{addElementToDom:function(d,h){if(h){if(m(h)||g(h))if(e(h).hasClass("a-carousel-card-fragment")){var b=e(h).clone();d.empty().append(b.contents())}else d.empty().append(h);!0!==h&&d.removeClass("a-carousel-card-empty")}},clearElementFromItem:l,getElementFromItem:d,isElement:g,isString:m}});"use strict";n.register("a-carousel-circular-utils",function(){function e(e){var d=
0<e;return function(e,f,h){var b=f.length;h=(h||1)%b;e=e.get(0);for(var a,c=0;c<h;c++)d?(a=f.get(c),e.appendChild(a)):(a=f.get(b-1-c),e.insertBefore(a,e.children[0]))}}function m(e){var d=0<e;return function(e,f){f=f?f%e.length:1;d?e=e.concat(e.splice(0,f)):e.unshift.apply(e,e.splice(e.length-f,f));return e}}return{rotateCW:e(1),rotateCCW:e(-1),rotateArrayCW:m(1),rotateArrayCCW:m(-1),firstCardIndexAfterRotate:function(e,d,l){e=(d+e)%l;0===e?e=l:0>e&&(e=l+e);return e},relativeIndexFromIndex:function(e,
d,l){var f=1;if(0<e&&e<=l)return e>d?f=e-d+1:e<d&&(f=l-d+e+1),f;n.error("idx should be between 1 and "+l,"a-carousel-circular-utils","relativeIndexFromIndex")}}});"use strict";n.when("A","jQuery").register("a-carousel-measure",function(e,m){return function(g){function d(d,h,b){var a,c,p;h.jquery||(h=m(h));for(e.each(b,function(a){if("top"===a||"left"===a)return c=h.offset(),!1});void 0!==(a=b.pop());){var f=d[a];"left"===a||"top"===a?d[a]=c[a]:-1<a.indexOf("outer")?d[a]=h[a](!0):d[a]=h["outer"+a.charAt(0).toUpperCase()+
a.substr(1)]();d[a]!==f&&(void 0===p&&(p={}),p[a]=f)}return p}var l={carousel:{height:0,width:0,outerHeight:0,outerWidth:0},viewport:{height:0,width:0,outerHeight:0,outerWidth:0},items:[],getFirstCardWidth:function(){return void 0===this.items[0]||!e.isFiniteNumber(this.items[0].width)||0>=this.items[0].width?160:this.items[0].width}};g.measure=function(f){var h=this.dom.$carousel,b=this.dom.$viewport,a={};f&&(f=f.split(" "));if(!f||-1<e.indexOfArray(f,"carousel"))a.carousel=d(l.carousel,h,"top left height width outerHeight outerWidth".split(" "));
if(!f||-1<e.indexOfArray(f,"viewport"))a.viewport=d(l.viewport,b,["height","width","outerHeight","outerWidth"]);if(!f||-1<e.indexOfArray(f,"items"))l.items=[],a.items={},h.children("li").each(function(c,b){l.items[c]={};b=d(l.items[c],b,"top left height width outerHeight outerWidth".split(" "));void 0!==b&&(a.items[c]=b)});return a};g.getItemOffset=function(e){var d=l.items;e--;var b=0;if(d&&d.length&&e<d.length){for(var a=d[0].outerWidth,c=0;c<e;c++)b+=d[c]?d[c].outerWidth:a;0<e&&this.getAttr("first_item_flush_left")&&
(b+=g.getAttr("currentGutter"))}return b};g.getDimensions=function(){return e.copy(l)};g.updateDimensionsCache=function(d){e.extend(l,d)};g.getViewportWidth=function(){try{return l.viewport.width}catch(f){}}}});"use strict";n.when("A","jQuery").register("a-carousel-attributes",function(e,m){return function(g,d){var l={},f={},h={};e.extend(l,d);g.onChange=function(b,a){b=b.split(" ");for(var c=b.length,d;c--;)d=b[c],f[d]||(f[d]=[]),m.isFunction(a)&&-1===e.indexOfArray(f[d],a)&&f[d].push(a);return this};
g.unbind=function(b,a){f[b]&&a&&(a=e.indexOfArray(f[b],a),-1<a&&f[b].splice(a,1));return this};g.once=function(b,a){var c=function(){a.apply(null,arguments);g.unbind(b,c)};return g.onChange(b,c)};g.setAttr=function(b,a,c){var d=l[b];l[b]=a;if(!(c||h[b]||e.equals(a,d))){h[b]=!0;a=e.copy(a);d=e.copy(d);if(f[b]){c=e.copy(f[b]);for(var x=0,w=c.length;x<w;x++)c[x](a,d,g,b)}a={newValue:a,oldValue:d,carousel:g};e.trigger("a:carousel:change:"+b,a);l.name&&e.trigger("a:carousel:"+l.name+":change:"+b,a);h[b]=
!1}return this};g.getAttr=function(b){return e.copy(l[b])}}});"use strict";n.when("A","jQuery","a-carousel-measure","a-carousel-attributes","a-carousel-strategies","a-carousel-constants","a-analytics","prv:a-capabilities").register("a-carousel-base",function(e,m,g,d,l,f,h,b){function a(c){var a=c.getAttr("set_size")<=c.getAttr("pageSize"),b=c.getAttr(f.NO_TRANSITION);1===c.getAttr("totalPages")&&1<c.getAttr("pageNumber")&&c.gotoPage(1,{startover:!0,animationDuration:0});c.dom.$container.find(".a-carousel-left, .a-carousel-right").css("visibility",
a||b?"hidden":"visible")}function c(c,a){return isNaN(c)?(n.log("`set_size` should be an integer: "+c,"WARN","aui:carousel:base"),a):parseInt(c,10)}function p(c){c.onChange("pageSize",function(a,b){var k=c.getAttr("firstVisibleItem"),d=Math.ceil(k/a);1===d&&1<k?d=2:1>d&&(d=1);c.setAttr("pageNumber",d);c.setAttr("totalPages",Math.ceil(c.getAttr("set_size")/a));k=c.getAttr("ajax");a>b&&(k&&k.prefetch_next_page?c.strategies.ajax.wantNextPage(c):c.strategies.ajax.wantCurrentPage(c))});c.onChange("set_size",
function(a,b){var k=c.getAttr("pageSize"),d=c.getAttr("fetchedItems");c.setAttr("totalPages",Math.ceil(a/k));a<b?(d.splice(a,Number.MAX_VALUE),c.setAttr("fetchedItems",d)):c.strategies.ajax.wantCurrentPage&&c.strategies.ajax.wantCurrentPage(c)});c.onChange("firstVisibleItem",function(a){c.dom.$container.find("input.a-carousel-firstvisibleitem").val(a)});c.onChange("pageNumber",function(a){0<a&&a<=c.getAttr("totalPages")&&c.setAttr("currentlyWrapping",!1)})}function x(a,b,p){if(0!==arguments.length){a.jquery||
(a=m(a));this.dom={$container:a,$viewport:a.hasClass("a-carousel-viewport")?a:a.find(".a-carousel-viewport").eq(0),$carousel:a.find(".a-carousel").eq(0)};!a.length||this.dom.$viewport.length&&this.dom.$carousel.length||h.logError("[AUI] CarouselContainer does not have CarouselContent.","ERROR",JSON.stringify({xpath:e.xpath(a.get(0)),cssSelector:e.cssSelector(a.get(0)),custody:e.attributionChain(a.get(0))}));var k={totalPages:1E3,pageNumber:1,pageSize:0,firstVisibleItem:1,initThreshold:100,maintain_state:!0,
px:0,auto_adjust_height:!0,ajax:{}};e.extend(k,p);k.maintain_state=!!k.maintain_state;k.id_list?k.set_size||(k.set_size=k.id_list.length):k.id_list=[];var w=this.dom.$carousel.children("li");if(k.set_size)k.set_size=c(k.set_size,w.length);else{var r=parseInt(w.first().attr("aria-setsize"),10);e.isFiniteNumber(r)&&0<r?k.set_size=r:k.set_size=w.length}var f=[];this.dom.$carousel.children("li").each(function(c,a){f.push(m(a).hasClass("a-carousel-card-empty")?"":e.trim(a.innerHTML))});k.fetchedItems=
f;g(this);d(this,k);this.strategies=b;return this}}e.each(l,function(c,a){x.prototype["set"+a.charAt(0).toUpperCase()+a.slice(1)+"Strategy"]=function(c){this.strategies[name]=c;"function"===typeof c.init&&c.init(this)}});l=x.prototype;l.gotoNextPage=function(c){this.getAttr("transitionPaused")||(this.strategies.transition.gotoNextPage(this,c),c&&c.accessibleSafe&&this.strategies.accessibility.nextPage(this,c.animationDuration,c.animationSpeed))};l.gotoPrevPage=function(c){this.getAttr("transitionPaused")||
(this.strategies.transition.gotoPrevPage(this,c),c&&c.accessibleSafe&&this.strategies.accessibility.prevPage(this,c.animationDuration,c.animationSpeed))};l.gotoPage=function(c,a){this.getAttr("transitionPaused")||(this.strategies.transition.gotoPage(this,c,a),a&&a.accessibleSafe&&this.strategies.accessibility.gotoPage(this,a.animationDuration,a.animationSpeed))};l.gotoIndex=function(c,a){(!this.getAttr("transitionPaused")||a&&a.ignorePause)&&this.strategies.transition.gotoIndex(this,c,a)};l.gotoPixel=
function(c,a){this.getAttr("transitionPaused")||this.strategies.transition.gotoPixel(this,c,a)};l.resize=function(){if(this.dom.$container.is(":visible")){var c=this.measure("carousel viewport");this.strategies.display.resize(this,c)}};l.pause=function(){this.setAttr("transitionPaused",!0)};l.resume=function(){this.setAttr("transitionPaused",!1)};l.triggerEvent=function(c,a){a=a||{};a.carousel=this;e.trigger("a:carousel:"+c,a);var b=this.getAttr("name");b&&e.trigger("a:carousel:"+b+":"+c,a)};l.getStaticLoader=
function(){return this.getAttr(f.STATIC_LOADER_CSS_CLASS)?'\x3cdiv class\x3d"'+this.getAttr(f.STATIC_LOADER_CSS_CLASS)+'"\x3e\x3c/div\x3e':""};l.getEmptyCard=function(c,a){var b="a-carousel-card a-carousel-card-empty";this.getAttr(f.ELEMENT_CSS_CLASS)&&(b=b+" "+this.getAttr(f.ELEMENT_CSS_CLASS));return['\x3cli class\x3d"',b,'" aria-setsize\x3d"',a,'" aria-posinset\x3d"',c,'"\x3e',this.getStaticLoader(),"\x3c/li\x3e"].join("")};l.initTouchHandling=function(){var c=this,a=c.dom.$viewport;if(a.length&&
((e.capabilities.touch||e.capabilities.pointerPrefix)&&n.when("a-touch").execute(function(b){a.addClass("a-gesture a-gesture-horizontal").bind("pan-horizontal swipe-horizontal",function(){return!1});e.on("a:swipe-horizontal:"+a[0].id,function(a){if(!c.getAttr("transitionPaused")&&c.strategies.transition.onSwipe)c.strategies.transition.onSwipe(c,a)});if(!c.getAttr("disable_panning"))e.on("a:pan-horizontal:"+a[0].id,function(a){if(!c.getAttr("transitionPaused")&&c.strategies.transition.onPan)c.strategies.transition.onPan(c,
a)})}),b.isIE10||b.isIE11Plus)){var d=function(c){c.stopPropagation();c.preventDefault();document.body.removeEventListener("click",d,!0)};a.bind(e.action.start,function(c){a.bind("swipe-horizontal.a-ssiec pan-horizontal.a-ssiec",function(c){a.unbind(".a-ssiec");a.bind(e.action.end+".a-ssiec",function(c){a.unbind(".a-ssiec");document.body&&document.body.addEventListener("click",d,!0)})})})}};l.init=function(){var c=this,b=c.strategies,d=c.dom.$viewport[0];d&&!d.id&&(d.id="anonCarousel"+c.__id);c.dom.$carousel.contents().not(function(){return this.tagName&&
"li"===this.tagName.toLowerCase()}).remove();e.each(c.strategies,function(a){a.initAttrs&&e.each(a.initAttrs,function(a,b){var d=a;"function"===typeof a&&(d=a(c.getAttr(b)));c.setAttr(b,d)})});if(1>c.getAttr("set_size"))return b.ajax.init(c),!1;c.measure();e.each(c.strategies,function(a){a.init(c)});b=c.getAttr("pageSize");d=c.getAttr("set_size");c.setAttr("totalPages",Math.ceil(d/b));p(c);c.setAttr("isInTab",0<c.dom.$container.closest(".a-tab-content").length,!0);c.triggerEvent("init");e.each(c.strategies,
function(a){a.afterInit&&a.afterInit(c)});c.triggerEvent("afterInit");b=c.getAttr("firstVisibleItem");1===b&&c.getAttr("maintain_state")&&(b=parseInt(c.dom.$container.find("input.a-carousel-firstvisibleitem").val(),10),e.isFiniteNumber(b)&&0<b&&b<=d||(b=1));if(1<b){d=700;for(var h=Math.ceil(b/c.getAttr("pageSize")),f=2;f<h;f++)d+=700/f;c.gotoIndex(b,{animationDuration:d,easingFunction:"ease"})}a(this);c.onChange("pageSize set_size",function(){a(c)});b=c.dom.$container.find(".a-carousel-button");b.length&&
(d=b.eq(0).position().top+"px",b.css("top",d));var x=!1,g=function(a){a.preventDefault();a={startover:!0,accessibleSafe:"keydown"===a.type?!0:!1};5<c.getAttr("pageNumber")?a.animationDuration=1250:a.animationSpeed=5*c.getDimensions().viewport.width;c.gotoPage(1,a)};c.dom.$container.delegate(".a-carousel-goto-nextpage","click dblclick",function(a){x||(x=!0,a.preventDefault(),c.gotoNextPage({accessibleSafe:!0}),e.delay(function(){x=!1},5))}).delegate(".a-carousel-goto-prevpage","click dblclick",function(a){x||
(x=!0,a.preventDefault(),c.gotoPrevPage({accessibleSafe:!0}),e.delay(function(){x=!1},5))}).delegate(".a-carousel-goto-nextpage","keydown",function(a){if(a.which===e.constants.keycodes.ENTER||a.which===e.constants.keycodes.SPACE)a.preventDefault(),c.gotoNextPage({accessibleSafe:!0})}).delegate(".a-carousel-goto-prevpage","keydown",function(a){if(a.which===e.constants.keycodes.ENTER||a.which===e.constants.keycodes.SPACE)a.preventDefault(),c.gotoPrevPage({accessibleSafe:!0})}).delegate(".a-carousel-restart",
"keydown",function(c){c.which!==e.constants.keycodes.ENTER&&c.which!==e.constants.keycodes.SPACE||g(c)}).delegate(".a-carousel-restart","click",function(c){g(c)});c.dom.$container.find(".a-carousel-page-max").html(this.getAttr("totalPages"));return!0};return x});"use strict";n.when("A","jQuery","a-carousel-base","a-carousel-constants").register("a-carousel-mobile",function(e,m,g,d){function l(b){var a=b.getAttr("loaderHeight");a||((a=b.getAttr("maxHeight"))?(a=Math.min(.9*a,90),a=Math.max(a,120)):
a=90,b.setAttr("loaderHeight",a));return a}function f(b,a,c){g.call(this,b,a,c);if(0!==arguments.length)return this.getAttr("circular")===h&&this.setAttr("circular",!1),this.getAttr("show_partial_next")===h&&this.setAttr("show_partial_next",!0),this.getAttr("hide_off_screen")===h&&this.setAttr("hide_off_screen",!1),this.getAttr("springiness")===h&&this.setAttr("springiness",.8),this.getAttr("touch_easing")===h&&this.setAttr("touch_easing","cubic-bezier(0.215, 0.610, 0.355, 1.000)"),this.init=function(){return g.prototype.init.call(this)?
(this.getAttr(d.STATIC_LOADER_CSS_CLASS)||this.dom.$carousel.children("li").children(".a-loading-static").css("height",l(this)+"px"),this.getAttr(d.NO_TRANSITION)||this.initTouchHandling(),!0):!1},this}var h;f.prototype=new g;f.prototype.constructor=f;f.prototype.getStaticLoader=function(){return this.getAttr(d.STATIC_LOADER_CSS_CLASS)?'\x3cdiv class\x3d"'+this.getAttr(d.STATIC_LOADER_CSS_CLASS)+'"\x3e\x3c/div\x3e':'\x3cdiv class\x3d"a-loading-static" style\x3d"height:'+l(this)+'px"\x3e\x3cdiv class\x3d"a-loading-static-inner"\x3e\x3c/div\x3e\x3c/div\x3e'};
return f});"use strict";n.when("A","jQuery","a-carousel-base","a-carousel-constants").register("a-carousel-desktop",function(e,m,g,d){function l(b){var a=b.getAttr("set_size")<=b.getAttr("pageSize"),c=b.getAttr(d.NO_TRANSITION);b.dom.$container.find(".a-carousel-pagination").css("visibility",a||c?"hidden":"visible")}function f(b,a,c){g.call(this,b,a,c);if(0!==arguments.length){var e=this;e.getAttr("circular")===h&&this.setAttr("circular",!0);e.getAttr("hide_off_screen")===h&&this.setAttr("hide_off_screen",
!0);e.onChange("totalPages",function(c){e.dom.$container.find(".a-carousel-page-max").html(c);c<e.getAttr("pageNumber")&&e.gotoPage(c)});e.onChange("pageNumber",function(c,a){a=e.dom.$container;var b=a.find(".a-carousel-restart-container");1<c?b.show():b.hide();a=a.find(".a-carousel-page-count");b=a.clone();b.find(".a-carousel-page-current").html(c);a.html(b.html())});e.init=function(){var c=this;return g.prototype.init.call(c)?(l(this),c.onChange("pageSize set_size",function(){l(c)}),2>c.getAttr("pageNumber")&&
c.dom.$container.find(".a-carousel-restart-container").hide(),c.getAttr(d.NO_TRANSITION)||c.initTouchHandling(),!0):!1};return e}}var h;f.prototype=new g;return f.prototype.constructor=f});"use strict";n.when("A","a-carousel-desktop","a-carousel-mobile").register("a-carousel-classes",function(e,m,g){return{desktop:m,mobile:g,"default":e.capabilities.mobile||e.capabilities.tablet?"mobile":"desktop"}});"use strict";n.when("A","jQuery","p-detect","a-carousel-constants").register("a-carousel-stretchygoodness",
function(e,m,g,d){function l(c,a,b,d){c.getAttr("show_partial_next")&&!c.getAttr("force_minimum_gutter_width")&&(a-=b/10);c=c.getAttr("minimum_gutter_width");var k=0,p=!0;for(a-=c;0<a;)k++,a=d&&p?a-b:a-(b+c),p=!1;0>a&&k--;return e.isFiniteNumber(k)&&0<k?k:1}function f(c,a,b,d,k,h,f){if(c.getAttr("force_minimum_gutter_width")&&c.getAttr("show_partial_next"))return k;"stretch"===c.getAttr("single_page_align")&&d>h&&(d=h);a-=b*d;c.getAttr("show_partial_next")?(c=a-k*(d+1),f&&(c+=k),c/=b,a-=b*(.5<c?.5:
c)):f&&(a+=k);b=Math.ceil(a/(f?d:d+1));if(!e.isFiniteNumber(b)||b<k)b=k;return b}function h(c){if(c.getAttr("auto_adjust_height"))if(c.getAttr("animating"))c.once("animating",function(){h(c)});else{var a=c.getAttr("maxHeight"),b=c.getDimensions();a&&e.isFiniteNumber(a)||(a=1);var d=a,k=c.getAttr("pageSize"),f=k*(c.getAttr("pageNumber")-1);k=f+k-1;b=b.items;var g=b.length,l;for(c.getAttr("show_partial_next")&&k++;f<=k&&f<g;f++)(l=b[f])&&l.outerHeight>d&&(d=b[f].outerHeight||b[f].height);d>a&&(c.updateDimensionsCache({viewport:{height:d,
outerHeight:d}}),c.setAttr("maxHeight",d),1===a?c.dom.$viewport.height(d):e.animate(c.dom.$viewport,{height:d},c.getAttr("height_animation_speed"),"linear"))}else c.dom.$viewport.css("height","")}function b(c){c.onChange("pageNumber",function(){c.getAttr("hide_off_screen")&&c.dom.$carousel.children("li").css("visibility","")});c.onChange("pageSize",function(a,b){a>b&&h(c)});c.onChange("loading",function(a){a||h(c)});c.onChange("firstVisibleItem",function(){h(c)});c.onChange("animating",function(a){if(!a&&
c.getAttr("hide_off_screen")){var b=c.getAttr("firstVisibleItem")-1,d=b+c.getAttr("pageSize")-1;c.getAttr("show_partial_next")&&d++;c.dom.$carousel.children("li").each(function(c,a){c=c>=b&&c<=d;m(a).css("visibility",c?"":"hidden")})}});c.onChange("single_page_align minimum_gutter_width",function(){a(c)});c.onChange("minimum_gutter_width",function(){a(c)})}function a(c){var a=c.getDimensions(),b=a.viewport.width;a=a.getFirstCardWidth();var d=c.getAttr("minimum_gutter_width"),k=c.getAttr("set_size"),
h=c.getAttr("first_item_flush_left"),g=l(c,b,a,h),m=f(c,b,a,g,d,k,h);c.setAttr("currentGutter",m);c.setAttr("pageSize",g);var v=c.dom.$carousel,n=v.children("li");d=n.length;var t=c.getAttr("totalPages"),A=c.getAttr("pageNumber"),C=c.getAttr("firstVisibleItem"),B=(A-1)*g+1;A>t?(C=(t-1)*g+1,c.setAttr("pageNumber",t),c.setAttr("firstVisibleItem",C)):C!==B&&(t=Math.ceil(C/g),C=(t-1)*g+1,c.setAttr("pageNumber",t),c.setAttr("firstVisibleItem",C));var F=C-1,G=F+g-1;c.getAttr("show_partial_next")&&G++;var H=
c.getAttr("hide_off_screen"),I=m+"px",J=a+"px",z;n.each(function(c,a){z=!H||c>=F&&c<=G;a.style[e.capabilities.rtl?"marginRight":"marginLeft"]=h&&0===c?0:I;a.style.visibility=z?"":"hidden";a.style.width=J});var D;c.getAttr("first_item_flush_left")?(m=n.first().outerWidth(!0),1<n.length&&(D=n.eq(1).outerWidth(!0)),t=(d-1)*D+m):(m=D=n.first().outerWidth(!0),t=d*D);g>=k?(t=b,A=c.getAttr("single_page_align"),v.toggleClass("a-text-right","right"===A),v.toggleClass("a-text-center","center"===A),"center"===
A&&n.first().css("margin-left",0)):v.removeClass("a-text-right a-text-center");t=g>=k?b:t;v.css("width",t+"px");b={carousel:{width:t,outerWidth:v.outerWidth()},items:[]};for(k=0;k<d;k++)b.items.push({width:a,outerWidth:0===k?m:D});c.updateDimensionsCache(b);c.gotoIndex(C,{animationDuration:0,ignorePause:!0});c.triggerEvent("repaint")}return{repaint:a,init:function(c){var f=c.getAttr("minimum_gutter_width");e.isFiniteNumber(f)||(f=15,c.setAttr("minimum_gutter_width",f));c.setAttr("currentGutter",f);
f=c.getAttr("height_animation_speed");e.isFiniteNumber(f)||c.setAttr("height_animation_speed",200);c.setAttr("first_item_flush_left",!!c.getAttr("first_item_flush_left"));c.setAttr("show_partial_next",!!c.getAttr("show_partial_next"));a(c);c.getAttr(d.NO_TRANSITION)||h(c);f=c.getDimensions();c.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height",Math.max(f.viewport.height,f.items[0]?f.items[0].height:0)+"px");f=c.getAttr("firstVisibleItem");1<f&&(c.setAttr("firstVisibleItem",
f),f=Math.ceil(f/c.getAttr("pageSize")),c.gotoPage(f));b(c)},resize:function(c,b){b.viewport&&void 0!==b.viewport.width&&a(c)}}});"use strict";n.when("A","jQuery","p-detect","a-carousel-utils").register("a-carousel-display-swap",function(e,m,g,d){function l(b){if(b.getAttr("auto_adjust_height")){var a=b.getAttr("maxHeight");a&&e.isFiniteNumber(a)||(a=1);var c=a;b.dom.$carousel.children("li").not(".a-carousel-card-empty").each(function(a,b){a=m(b).outerHeight();c=Math.max(a,c)});c>a&&(b.setAttr("maxHeight",
c),g.capabilities.transition?1===a?b.dom.$viewport.height(c):e.animate(b.dom.$viewport,{height:c},b.getAttr("height_animation_speed"),"linear"):b.dom.$viewport.height(c),b.updateDimensionsCache({viewport:{height:c,outerHeight:c}}))}else b.dom.$viewport.css("height","")}function f(b){b.onChange("animating",function(a){a||l(b)});b.onChange("loading",function(a){a||l(b)});b.onChange("pageSize",function(a,c){b.dom.$carousel.children("li").slice(a).remove();if(a>c){c=b.getAttr("set_size");var e=b.getDimensions().getFirstCardWidth(),
f=b.getAttr("currentGutter"),h=b.getAttr("fetchedItems"),k=b.getAttr("firstVisibleItem")-1,g=b.dom.$carousel.children("li"),u=document.createDocumentFragment();if(m.isArray(h)){for(var q=g.length;q<a;q++){var v=q+k;g=m(['\x3cli class\x3d"a-carousel-card a-carousel-card-empty" aria-setsize\x3d"',c,'" aria-posinset\x3d"',v+1,'" style\x3d"width:',e,"px; margin-left:",f,'px;"\x3e',b.getStaticLoader()].join(""));h[v]&&d.addElementToDom(g,d.getElementFromItem(h[v]));v>=c&&g.removeClass("a-carousel-card-empty");
u.appendChild(g[0])}b.dom.$carousel.append(u)}l(b)}});b.onChange("set_size",function(a,c){var d=b.getAttr("pageNumber"),f=b.getAttr("totalPages"),g=b.dom.$carousel.children("li");d===f&&a>c&&(g.length&&b.dom.$carousel.children("li").each(function(c,a){e.trim(a.innerHTML)||(a.className+=" a-carousel-card-empty",a.innerHTML=b.getStaticLoader())}),0===c&&h(b))});b.onChange("single_page_align minimum_gutter_width",function(){h(b)});b.onChange("minimum_gutter_width",function(){h(b)})}function h(b){var a=
b.getDimensions(),c=a.viewport.width,d=a.getFirstCardWidth(),f=b.getAttr("minimum_gutter_width");a=b.getAttr("set_size");var h=b.getAttr("minimum_gutter_width");b.getAttr("set_size");h=Math.max(Math.floor(c/(d+h)),1);h=e.isFiniteNumber(h)?h:1;var k=h;"stretch"===b.getAttr("single_page_align")&&k>a&&(k=a);k=Math.ceil((c-d*k)/(k+1));e.isFiniteNumber(k)||(k=f);var g=k;b.setAttr("currentGutter",g);b.setAttr("pageSize",h);k=b.dom.$carousel;var l=k.children("li");f=l.length;d+=g;var m=f*d,v=Math.min(h,
a);b.dom.$carousel.children("li").slice(v).remove();l.css("margin-left",g+"px");h>=a?(m=c,c=b.getAttr("single_page_align"),k.toggleClass("a-text-right","right"===c),k.toggleClass("a-text-center","center"===c),"center"===c&&l.first().css("margin-left",0)):k.removeClass("a-text-right a-text-center");for(c={carousel:{width:m,outerWidth:k.outerWidth()},items:[]};f--;)c.items.push({outerWidth:d});b.updateDimensionsCache(c);b.triggerEvent("repaint")}return{repaint:h,init:function(b){var a=b.getAttr("minimum_gutter_width");
a||(a=15,b.setAttr("minimum_gutter_width",a));b.setAttr("currentGutter",a);a=b.getAttr("height_animation_speed");e.isFiniteNumber(a)||b.setAttr("height_animation_speed",200);f(b);h(b);a=b.getDimensions();b.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height",Math.max(a.viewport.height,a.items[0]?a.items[0].height:0)+"px");a=b.getAttr("firstVisibleItem");1<a&&(b.setAttr("firstVisibleItem",a),a=Math.ceil(a/b.getAttr("pageSize")),b.gotoPage(a))},resize:function(b,
a){a.viewport&&void 0!==a.viewport.width&&h(b)}}});"use strict";n.when("A","jQuery").register("a-carousel-display-single",function(e,m){function g(d){if(d.getAttr("auto_adjust_height"))if(d.getAttr("animating"))d.once("animating",function(){g(d)});else d.dom.$viewport.css("height","auto"),e.delay(function(){d.dom.$viewport.height(d.dom.$viewport.height())},0);else d.dom.$viewport.css("height","")}function d(d,b){var a=d.dom.$carousel.children("li"),c=d.getAttr("firstVisibleItem")-1;d=d.getAttr("show_partial_next")?
2:1;c=a.slice(c,c+d);a.not(c).css("visibility","hidden");b&&c.css("visibility","")}function l(e){e.getAttr("fixed_height")||(e.dom.$viewport.delegate("img","load",function(){g(e)}),e.onChange("loading",function(b){b||g(e)}),e.onChange("pageNumber",function(){e.getAttr("hide_off_screen")&&e.dom.$carousel.children("li").css("visibility","")}),e.onChange("animating",function(b){!b&&e.getAttr("hide_off_screen")&&d(e)}),e.onChange("minimum_gutter_width",function(){f(e)}))}function f(e){var b=e.getDimensions(),
a=b.viewport.width,c=e.getAttr("show_partial_next"),f=e.getAttr("minimum_gutter_width"),g=e.getAttr("set_size"),h=e.dom.$carousel.children("li");a-=2*f;c&&(a-=f+b.viewport.width/3);h.css({width:a+"px",margin:"0 "+f+"px"});b=a+2*f;c=b*g;e.dom.$carousel.width(c);for(c={carousel:{width:c},items:[]};g--;)c.items[g]={width:a,outerWidth:b};e.updateDimensionsCache(c);e.getAttr("hide_off_screen")&&d(e,!0);e.gotoIndex(e.getAttr("firstVisibleItem"),{animationDuration:0,ignorePause:!0});e.triggerEvent("repaint")}
return{repaint:f,init:function(d){var b=d.getAttr("minimum_gutter_width");d.setAttr("minimum_gutter_width",e.isFiniteNumber(b)?b:14);d.setAttr("show_partial_next",!!d.getAttr("show_partial_next"));d.setAttr("pageSize",1);d.setAttr("pageSize",1);b=d.getAttr("fixed_height");e.isFiniteNumber(b)?d.dom.$viewport.height(b):d.setAttr("fixed_height",!1);d.dom.$carousel.children("li").css("visibility","visible");l(d);this.repaint(d);g(d)},resize:function(d,b){b.viewport&&void 0!==b.viewport.width&&(this.repaint(d),
d.getAttr("fixed_height")||g(d))}}});"use strict";n.when("A","jQuery","a-carousel-constants").register("a-carousel-display-peekcircular",function(e,m,g){function d(d){return function(f){return e.isFiniteNumber(f)?f:d}}m={};m[g.PAGE_SIZE]=1;m[g.MIN_GUTTER]=d(14);m[g.PEEK_PERCENTAGE]=d(10);return{initAttrs:m,init:function(d){var e=this;d.onChange(g.PEEK_PERCENTAGE,function(f,b){e.repaint(d)});d.dom.$carousel.children("li").css("visibility","visible");e.repaint(d)},repaint:function(d){var f=d.getAttr(g.MIN_GUTTER),
h=d.getAttr(g.SET_SIZE),b=d.getAttr(g.PEEK_PERCENTAGE),a=d.getDimensions().viewport.width,c=d.dom.$carousel,p=c.children("li");b=b/100*a;var l=a-2*b-f,m=l+2*f;a=m*h;c.width(a);p.css({width:l+"px","margin-left":f+"px","margin-right":f+"px"});d.updateDimensionsCache({carousel:{width:a},items:e.map(e.range(h),function(){return{width:l,outerWidth:m}})});d.setAttr(g.PEEK_WIDTH,b,!1);d.triggerEvent("repaint")},resize:function(d,e){e.viewport&&e.viewport.width!==z&&this.repaint(d)}}});"use strict";n.when("A").register("a-carousel-display-variablewidth",
function(e){return{init:e.constants.NOOP,resize:e.constants.NOOP,repaint:e.constants.NOOP}});"use strict";n.when("a-carousel-stretchygoodness","a-carousel-display-swap","a-carousel-display-single","a-carousel-display-peekcircular","a-carousel-display-variablewidth").register("a-carousel-strategies-display",function(e,m,g,d,l){return{swap:m,single:g,peekCircular:d,stretchyGoodness:e,variableWidth:l,"default":"stretchyGoodness"}});"use strict";n.when("A","jQuery","a-carousel-utils").register("a-carousel-transition-swap",
function(e,m,g){function d(b,a){var c=b.getAttr("preloadedImages");c||(c=[]);for(var d=[],f=a.length-1;0<=f;f--)if(a[f]&&!c[f]){var h=g.getElementFromItem(a[f]);h&&m("img",h).each(function(){d.push(this.src)});c[f]=!0}e.preload(d);b.setAttr("preloadedImages",c)}function l(b){return"number"===typeof b?b?0>b?-1:1:isNaN(b)?NaN:0:NaN}function f(b,a){b.getAttr("pageNumber");b.getAttr("pageSize");var c=b.getAttr("firstVisibleItem"),d=b.getAttr("delay_time"),f=b.dom.$carousel.children("li"),h=f.filter(".a-carousel-card-empty");
h.length&&b.setAttr("loading",!0);h.each(function(k,p){var r=m(p);p=f.index(p)+c-1;var l=a[p];l&&e.delay(function(){g.addElementToDom(r,g.getElementFromItem(l));k===h.length-1&&b.setAttr("loading",!1)},0+d)})}function h(b,a,c){c=c||{};var d=b.getAttr("pageNumber");if(a!==d){var f=b.getAttr("set_size"),h=b.getAttr("totalPages"),k=b.getAttr("circular"),r=b.getAttr("pageSize"),m=c.delayTime||b.getAttr("delay_time"),q=l(c.direction)||NaN;!k&&1>a?a=1:!k&&a>h?a=h:k&&1>a?a=h:k&&a>h&&(a=1);q||(q=d<a?1:-1);
c.startover&&(q=m=1);var v=r*(a-1),n=1===q?0:r-1;b.setAttr("pageNumber",a);b.setAttr("firstVisibleItem",v+1);b.setAttr("animating",!0);var t=e.interval(function(){var a=v+n;if(t!==b.getAttr("responsiveTimerId"))clearInterval(t);else if(-1===q&&0>n||1===q&&n>=r)b.setAttr("responsiveTimerId",z),b.setAttr("animating",!1);else{var c=b.dom.$carousel.children("li").eq(n),d=b.getAttr("fetchedItems")[a];d?g.addElementToDom(c,g.getElementFromItem(d)):a<f?c.html(b.getStaticLoader()).addClass("a-carousel-card-empty"):
c.empty().removeClass("a-carousel-card-empty");n+=q}},m);b.setAttr("responsiveTimerId",t)}}return{init:function(b){var a=b.getAttr("delay_time");e.isFiniteNumber(a)||b.setAttr("delay_time",30);b.onChange("responsiveTimerId",function(a,b){b!==a&&clearInterval(b)});b.onChange("fetchedItems",function(a,e){f(b,a);d(b,a)});d(b,b.getAttr("fetchedItems"))},gotoIndex:function(b,a,c){c=c||{};var d=b.getAttr("pageSize");h(b,Math.ceil(a/d),c)},gotoNextPage:function(b,a){a=a||{};var c=b.getAttr("pageNumber");
a.direction=-1;h(b,++c,a)},gotoPrevPage:function(b,a){a=a||{};var c=b.getAttr("pageNumber");a.direction=1;h(b,--c,a)},gotoPage:h}});"use strict";n.when("A","jQuery","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-slide",function(e,m,g,d){function l(a){var c=a.dom.$carousel.children("li").length,b=c+1,e=a.getAttr(d.SET_SIZE),f=e-c;if(0<f){f=b+f-1;for(var k=[];b<=f;b++)k.push(a.getEmptyCard(b,e));a.dom.$carousel.append(k.join(""));a.setAttr(d.LOADING,!0);f=a.getAttr(d.FETCHED_ITEMS);
k=a.dom.$carousel.children("li");var h;for(b=c;b<e;b++)if(h=f[b]){var l=g.getElementFromItem(h);c=k.eq(b);g.addElementToDom(c,l);f[b]=g.clearElementFromItem(h)}a.strategies.display.repaint&&a.strategies.display.repaint(a);a.setAttr(d.FETCHED_ITEMS,f,!0);a.setAttr(d.LOADING,!1)}}function f(a,c,b){if(a.getAttr(d.ANIMATING))a.once(d.ANIMATING,function(){f(a,c,b)});else{var h=a.getDimensions().items,l=[];if(!b||c.length>=b.length){a.setAttr(d.LOADING,!0);for(var k=a.dom.$carousel.children("li"),r,m,p=
c.length;p--;)if(m=c[p],null===m&&l.push(p),m&&!e.equals(m,b[p])&&!0!==m&&!0!==m.content){var n=g.getElementFromItem(m);r=k.eq(p);r.length&&(g.addElementToDom(r,n),h[p]={width:r.outerWidth(),outerWidth:r.outerWidth(!0),height:r.outerHeight(),outerHeight:r.outerHeight(!0)},c[p]=g.clearElementFromItem(m))}l.length&&(e.each(l,function(a){k.eq(a).remove();c.splice(a,1)}),a.setAttr(d.SET_SIZE,a.getAttr(d.SET_SIZE)-l.length),a.triggerEvent("repaint"))}a.setAttr(d.FETCHED_ITEMS,c);a.updateDimensionsCache({items:h});
a.setAttr(d.LOADING,!1)}}var h=e.capabilities.touch?2E3:3E3,b=e.capabilities.rtl?-1:1;return{wrapToFirst:function(a){var c=a.getAttr(d.PAGE_SIZE),b=a.getDimensions().getFirstCardWidth(),e=this;a.gotoPixel(c*b*-1,{animationDuration:0,callback:function(){a.setAttr(d.CURRENTLY_WRAPPING,!1);e.gotoPage(a,1)}})},wrapToLast:function(a){a.getAttr(d.PAGE_SIZE);var c=a.getAttr(d.TOTAL_PAGES),b=this,e=a.getDimensions().carousel.width;a.gotoPixel(e,{animationDuration:0,callback:function(){a.setAttr(d.CURRENTLY_WRAPPING,
!1);b.gotoPage(a,c)}})},gotoPage:function(a,c,b){b=b||{};(void 0===b.animationDuration||0<b.animationDuration)&&!b.silent&&a.setAttr(d.ANIMATING,!0);var e=a.getAttr(d.TOTAL_PAGES);0<c&&c<=e&&a.setAttr(d.PAGE_NUMBER,c);var f=a.getAttr(d.CIRCULAR);!f&&1>c?(c=1,b.animationDuration=Math.pow(a.getAttr(d.ANIMATION_SPEED)*a.getAttr(d.SPRINGINESS))):!f&&c>e&&(c=e,b.animationDuration=Math.pow(a.getAttr(d.ANIMATION_SPEED),a.getAttr(d.SPRINGINESS)));this.gotoIndex(a,a.getAttr(d.PAGE_SIZE)*(c-1)+1,b)},gotoIndex:function(a,
c,b){b=b||{};(void 0===b.animationDuration||0<b.animationDuration)&&!b.silent&&a.setAttr(d.ANIMATING,!0);var f=a.getAttr(d.CIRCULAR)&&!a.getAttr(d.CURRENTLY_WRAPPING),g=b.callback,k=this,h=!1,l=a.getViewportWidth(),m=Math.ceil(c/a.getAttr(d.PAGE_SIZE));m!==a.getAttr(d.PAGE_NUMBER)&&0<m&&m<=a.getAttr(d.TOTAL_PAGES)&&a.setAttr(d.PAGE_NUMBER,m);a.setAttr(d.FIRST_VISIBLE_ITEM,c);if(1>c){if(f){h=-1*l;var p=function(){g&&g();k.wrapToLast(a)}}}else c>a.getAttr(d.SET_SIZE)?f&&(h=a.getAttr(d.CURRENT_PIXEL)+
l,p=function(){g&&g();k.wrapToFirst(a)}):h=a.getItemOffset(c);p?(a.setAttr(d.CURRENTLY_WRAPPING,!0),b.callback=p,b.easingFunction=b.easingFunction||a.getAttr(d.WRAP_EASING),b.animationSpeed=1.3*(e.isFiniteNumber(b.animationSpeed)?b.animationSpeed:a.getAttr(d.ANIMATION_SPEED))):b.callback=g;!1!==h&&this.gotoPixel(a,h,b)},gotoPixel:function(a,c,b){var f=a.getAttr(d.CURRENT_PIXEL);if(c!==f){b=b||{};var g=b.easingFunction||"ease-out",k=b.callback;a.getViewportWidth();if(void 0!==b.animationDuration)var h=
b.animationDuration;else h=e.isFiniteNumber(b.animationSpeed)?b.animationSpeed:a.getAttr(d.ANIMATION_SPEED),f=Math.abs(c-f),h=0===h?0:Math.floor(f/h*1E3);0<h&&!b.silent&&a.setAttr(d.ANIMATING,!0);if(e.isFiniteNumber(c)){f=0<h?function(){k&&k();a.getAttr(d.CURRENTLY_WRAPPING)||a.setAttr(d.ANIMATING,e.isAnimated(a.dom.$carousel),b.silent)}:k;var l=e.capabilities.rtl?1:-1;a.setAttr(d.CURRENT_PIXEL,c);e.animate(a.dom.$carousel,{left:c*l},h,g,f)}else n.error("Target pixel is not a finite number","a-carousel-transition-slide",
"gotoPixel")}},gotoNextPage:function(a,c){var b=a.getAttr(d.PAGE_NUMBER);this.gotoPage(a,++b,c)},gotoPrevPage:function(a,c){var b=a.getAttr(d.PAGE_NUMBER);this.gotoPage(a,--b,c)},onSwipe:function(a,c){if(!a.getAttr(d.CURRENTLY_WRAPPING)){var f=a.getAttr(d.FIRST_VISIBLE_ITEM),g=a.getAttr(d.PAGE_SIZE),h=a.getAttr(d.PAGE_NUMBER),k=0>b*c.velocityX,l=f;k&&h<a.getAttr(d.TOTAL_PAGES)?l=f+g:!k&&1<h&&(l=f-g);g=a.getAttr(d.CURRENT_PIXEL);h=a.getItemOffset(l);c=Math.abs(1E3*(k?g-h:g+h)/c.velocityX);c=Math.max(c,
300);c=Math.min(c,1.2*e.viewport().width);c={animationDuration:c,easingFunction:a.getAttr(d.TOUCH_EASING)};l!==f||a.getAttr("circular")?k?a.gotoNextPage(c):a.gotoPrevPage(c):(c.animationSpeed=.95*e.viewport().width,delete c.animationDuration,a.gotoIndex(l,c))}},onPan:function(a,c){if(!a.getAttr(d.CURRENTLY_WRAPPING)){a.setAttr(d.ANIMATING,!0);var f=a.getItemOffset(a.getAttr(d.FIRST_VISIBLE_ITEM)),g=f-b*c.touchDeltaX,h=a.getAttr(d.CIRCULAR),k=a.getAttr(d.PAGE_NUMBER),l=a.getAttr(d.TOTAL_PAGES);c.ended?
(f={easingFunction:a.getAttr(d.TOUCH_EASING),animationSpeed:.95*e.viewport().width,silent:!0},c=b*c.touchDeltaX,g=Math.abs(c)<.4*a.getViewportWidth(),!h&&(0>c&&l===k||0<c&&1===k)||g?a.gotoPage(k,f):0>c?a.gotoNextPage(f):a.gotoPrevPage(f)):(!h&&(h=a.getAttr(d.SPRINGINESS),0>g&&0<c.touchDeltaX||k===l&&0>c.touchDeltaX)&&(k=Math.pow(Math.abs(c.touchDeltaX),h),g=0>=g?-1*k:f+k),a.gotoPixel(g,{easingFunction:a.getAttr(d.TOUCH_EASING),animationDuration:0,silent:!0}))}},init:function(a){var c=a.getAttr(d.ANIMATION_SPEED);
e.isFiniteNumber(c)||a.setAttr(d.ANIMATION_SPEED,h);void 0===a.getAttr(d.WRAP_EASING)&&a.setAttr(d.WRAP_EASING,"linear");l(a);a.onChange(d.FETCHED_ITEMS,function(c,b){f(a,c,b)});a.onChange(d.SET_SIZE,function(c,b){c>b&&l(a)})}}});"use strict";n.when("A","a-carousel-utils","a-carousel-circular-utils","a-carousel-constants").register("a-carousel-transition-slidecircular",function(e,m,g,d){function l(a){var c=a.dom.$carousel.children("li").length,f=a.getAttr(d.SET_SIZE),k=f-c,g=b(a,c);0<k&&(c+=1,k=e.map(e.range(c,
c+k),function(c){return a.getEmptyCard(c,f)}),g.after(k.join("")),a.measure("items"))}function f(b,e){var f=b.getAttr(d.SET_SIZE);if(2<b.getAttr(d.SET_SIZE)){var g=c(b,b.getAttr(d.FIRST_VISIBLE_ITEM)),t=Math.round(b.getAttr(d.SET_SIZE)/2);f=h(t,g,f);0!==f.quantity&&(k(b,f.direction,f.quantity),g=f.direction===u.CLOCKWISE?g-f.quantity:g+f.quantity,e.gotoPixel(b,a(b,g),{animationDuration:0}))}}function h(a,c,b){var d={};a===c?a=c=0:a>c?(c=a-c,a=b-c):(a=c-a,c=b-a);d.direction=a<=c?u.CLOCKWISE:u.COUNTER_CLOCKWISE;
d.quantity=Math.min(a,c);return d}function b(a,b){return a.dom.$carousel.children("li").eq(c(a,b)-1)}function a(a,c){var b=Math.floor(a.getAttr(d.PEEK_WIDTH)||0);return a.getItemOffset(c)-b}function c(a,c){c=c||1;var b=a.getAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);a=a.getAttr(d.SET_SIZE);return g.relativeIndexFromIndex(c,b,a)}function p(a,f,k){if(a.getAttr(d.ANIMATING))a.once(d.ANIMATING,function(){p(a,f,k)});else{var g=a.getDimensions().items,h=Math.min(f.length,a.getAttr(d.SET_SIZE));if(!k||
f.length>=k.length)a.setAttr(d.LOADING,!0),e.each(e.range(h),function(d){var h=d+1,l=f[d],B=b(a,h),t=l&&!(!0===l||!0===l.content);l&&!e.equals(l,k[d])&&B.length&&t&&(h=c(a,h),g[h]={width:B.outerWidth(),outerWidth:B.outerWidth(!0),height:B.outerHeight(),outerHeight:B.outerHeight(!0)},m.addElementToDom(B,m.getElementFromItem(l)),f[d]=m.clearElementFromItem(l))}),a.setAttr(d.LOADING,!1);a.setAttr(d.FETCHED_ITEMS,f);a.updateDimensionsCache({items:g})}}function x(a){var c={reached:!1,left:!1,right:!1};
if(!(2<a.getAttr(d.SET_SIZE))){var b=a.getAttr(d.PAGE_NUMBER);a=a.getAttr(d.SET_SIZE);1===b&&(c.reached=!0,c.left=!0);b===a&&(c.reached=!0,c.right=!0)}return c}function w(a,c,b){var e=x(a),f=a.getAttr(d.PAGE_NUMBER);e.reached&&e[c]?a.gotoPage(f):("right"===c?a.gotoNextPage:a.gotoPrevPage).call(a,b)}function k(a,c,b){var e=a.getAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX)||1,f=a.getAttr(d.SET_SIZE),k=a.dom.$carousel.children("li"),h=a.dom.$carousel;c===u.CLOCKWISE?(g.rotateCW(h,k,b),e=g.firstCardIndexAfterRotate(b,
e,f)):(g.rotateCCW(a.dom.$carousel,a.dom.$carousel.children("li"),b),e=g.firstCardIndexAfterRotate(-1*b,e,f));a.setAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX,e);b=b||1;c=c||u.CLOCKWISE;e=a.getDimensions().items;e=c===u.CLOCKWISE?g.rotateArrayCW(e,b):g.rotateArrayCCW(e,b);a.updateDimensionsCache({items:e})}function r(b,g,h,l,m){var B=m.callback,r=c(b,b.getAttr(d.FIRST_VISIBLE_ITEM)),t=b.getAttr(d.CURRENT_PIXEL)-a(b,r);e.sequence(function(a){k(b,g,l);a()},function(c){h.gotoPixel(b,a(b,g===u.CLOCKWISE?
r-l:r+l)+t,{animationDuration:0,callback:c})},function(c){m.callback=c;h.gotoPixel(b,a(b,r),m)},function(a){f(b,h);a()},function(a){B&&B();a()})()}var u={CLOCKWISE:1,COUNTER_CLOCKWISE:-1},q=e.capabilities.rtl?-1:1,v=e.capabilities.touch?2E3:3E3,y={};y[d.HIDE_OFF_SCREEN]=!1;y[d.ANIMATION_SPEED]=function(a){return function(c){return e.isFiniteNumber(c)?c:a}}(v);y[d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX]=1;return{initAttrs:y,init:function(a){l(a);a.onChange(d.FETCHED_ITEMS,function(c,b){p(a,c,b);
a.strategies.display.repaint(a)});a.onChange(d.SET_SIZE,function(c,b){c>b&&l(a)});a.onChange(d.PEEK_WIDTH,function(c,b){c!==b&&(c=a.getAttr(d.FIRST_VISIBLE_ITEM),a.gotoIndex(c))})},afterInit:function(a){f(a,this);a.strategies.display.repaint(a);a.gotoPage(a.getAttr(d.PAGE_NUMBER))},gotoPage:function(a,c,b){b=b||{};var e=a.getAttr(d.TOTAL_PAGES);0<c&&c<=e&&(a.setAttr(d.PAGE_NUMBER,c),this.gotoIndex(a,a.getAttr(d.PAGE_SIZE)*(c-1)+1,b))},gotoIndex:function(b,e,f){var k=b.getAttr(d.SET_SIZE),g=c(b,b.getAttr(d.FIRST_VISIBLE_ITEM)),
l=c(b,e);g===l?this.gotoPixel(b,a(b,g),f):(2<b.getAttr(d.SET_SIZE)?(k=h(g,l,k),f.startover&&(5<k.quantity?f.animationDuration=1250:(delete f.animationDuration,f.animationSpeed=5*b.getDimensions().viewport.width)),r(b,k.direction,this,k.quantity,f)):this.gotoPixel(b,a(b,e),f),b.setAttr(d.FIRST_VISIBLE_ITEM,e))},gotoPixel:function(a,c,b){var f=a.getAttr(d.CURRENT_PIXEL);if(c!==f){e.isFiniteNumber(c)||n.error("Target pixel is not a finite number","a-carousel-transition-slide-circular","gotoPixel");b=
b||{};var k=b.easingFunction||"ease-out",g=b.callback;if(b.animationDuration!==z)var h=b.animationDuration;else h=e.isFiniteNumber(b.animationSpeed)?b.animationSpeed:a.getAttr(d.ANIMATION_SPEED),f=Math.abs(c-f),h=0===h?0:Math.floor(f/h*1E3);0<h&&(!b.silent&&a.setAttr(d.ANIMATING,!0),g=function(){b.callback&&b.callback();a.setAttr(d.ANIMATING,e.isAnimated(a.dom.$carousel),b.silent)});f=e.capabilities.rtl?u.CLOCKWISE:u.COUNTER_CLOCKWISE;a.setAttr(d.CURRENT_PIXEL,c);e.animate(a.dom.$carousel,{left:c*
f},h,k,g)}},gotoNextPage:function(a,c){var b=a.getAttr(d.PAGE_NUMBER);b=b===a.getAttr(d.TOTAL_PAGES)?1:b+1;this.gotoPage(a,b,c)},gotoPrevPage:function(a,c){var b=a.getAttr(d.PAGE_NUMBER);b=1===b?a.getAttr(d.TOTAL_PAGES):b-1;this.gotoPage(a,b,c)},onSwipe:function(b,f){var k=b.getAttr(d.CURRENT_PIXEL),g=b.getAttr(d.PAGE_SIZE),h=c(b,b.getAttr(d.FIRST_VISIBLE_ITEM)),l=0>q*f.velocityX;g=a(b,l?h+g:h-g);k=Math.abs(1E3*(l?k-g:k+g)/f.velocityX);l=1.2*e.viewport().width;w(b,0>q*f.touchDeltaX?"right":"left",
{animationDuration:Math.min(Math.max(k,300),l),easingFunction:b.getAttr(d.TOUCH_EASING)})},onPan:function(b,f){b.setAttr(d.ANIMATING,!0);var k=b.getAttr(d.PAGE_NUMBER),g=c(b,b.getAttr(d.FIRST_VISIBLE_ITEM));g=a(b,g);g=x(b).reached?g-q*f.touchDeltaX*.4:g-q*f.touchDeltaX;f.ended?(g={easingFunction:b.getAttr(d.TOUCH_EASING),animationSpeed:.95*e.viewport().width,silent:!0},Math.abs(f.touchDeltaX)>=.4*b.getViewportWidth()?w(b,0>q*f.touchDeltaX?"right":"left",g):b.gotoPage(k,g)):b.gotoPixel(g,{easingFunction:b.getAttr(d.TOUCH_EASING),
animationDuration:0,silent:!0})}}});"use strict";n.when("A","a-carousel-utils","a-carousel-constants").register("a-carousel-transition-freescroll",function(e,m,g){function d(a){p[a.__id]||(p[a.__id]=new n(a));return p[a.__id]}function l(a){for(var b=a.countItems(),d=[],f=0;f<b;f++)d.push(!0);a.setAttr(g.FETCHED_ITEMS,d);a.getAttr("auto_adjust_height_freescroll")&&(e.$(a.getViewport()).css("height","auto"),c(a),e.$(a.getViewport()).css("overflow-y","hidden"))}function f(a){var c=a.countItems(),b=a.getAttr(g.SET_SIZE),
d=[];if(b>c){for(var e=0;e<b-c;e++){var f=c+e+1;d.push(a.getEmptyCard(f,b))}a.appendItems(d);a.shouldRepaint()&&a.repaint()}}function h(a,b,d){if(!d||b.length>=d.length)for(var f=a.getItems(),k=b.length,h;k--;)(h=b[k])&&!e.equals(h,d[k])&&!0!==h&&!0!==h.content&&a.hasItem(f,k)&&(b[k]=a.insertFetchedItem(h,f,k));a.setAttr(g.FETCHED_ITEMS,b);c(a)}function b(b){b.attachScrollListener(function(){var c=b.hasEmptyCard();var d=b.getAttr("auto_adjust_height_freescroll"),e=b.getAttr("startIndexForHeightCheck"),
f=b.countItems();c||d&&e<f?c=!0:(b.detachScrollListener(),c=!1);c&&b.throttle("detect",a)})}function a(b){var d="undefined"!==typeof b.getAttr(g.LOADING_THRESHOLD_PIXELS)?b.getAttr(g.LOADING_THRESHOLD_PIXELS):400,e=b.measureWidth(),f=b.getFirstEmptyDetails(),h=b.getViewport();-1!==f.index&&f.left<e+d?b.wantNext(f.index,"undefined"!==typeof b.getAttr(g.NEXT_REQUEST_SIZE)?b.getAttr(g.NEXT_REQUEST_SIZE):10):b.getAttr("currentScrollPosition")===h.scrollLeft()?c(b):b.throttle("detect",a);b.setAttr("currentScrollPosition",
h.scrollLeft())}function c(a){if(a.getAttr("auto_adjust_height_freescroll")){var b=a.getAttr("lastScrollPosition"),c=a.getViewport();if(b<c.scrollLeft()){b=a.getAttr("startIndexForHeightCheck");var d=a.getAttr("maxHeight"),f=a.getItems(),h=a.measureWidth(),k=a.getFirstEmptyDetails().index,l=f.length-1;for(-1!==k&&k<f.length&&(l=k-1);b<=l;){if(f[b].getBoundingClientRect().left<=h)d<e.$(f[b]).outerHeight()&&(d=e.$(f[b]).outerHeight());else break;b+=1}d!=c.outerHeight()&&e.animate(c,{height:d},a.getAttr(g.HEIGHT_ANIMATION_SPEED),
"linear");a.setAttr("maxHeight",d);a.setAttr("startIndexForHeightCheck",b)}a.setAttr("lastScrollPosition",c.scrollLeft())}}var p={},n=function(a){this.carousel=a};e.extend(n.prototype,{setAttr:function(a,b){return this.carousel.setAttr(a,b)},getAttr:function(a){return this.carousel.getAttr(a)},onChange:function(a,b){this.carousel.onChange(a,b)},getItems:function(){return this.carousel.dom.$carousel.children("li")},getViewport:function(){return this.carousel.dom.$viewport},countItems:function(){return this.getItems().length},
showItems:function(){return this.getItems().css("visibility","").attr("aria-hidden","false")},getEmptyCard:function(a,b){return this.carousel.getEmptyCard(a,b)},getEmptyCards:function(){return this.carousel.dom.$carousel.children(".a-carousel-card-empty")},hasEmptyCard:function(){return 0<this.getEmptyCards().length},getFirstEmptyDetails:function(){var a=this.getEmptyCards();return 0<a.length?(a=a.first(),{index:a.index(),left:a.position().left}):{index:-1,left:-1}},appendItems:function(a){this.carousel.dom.$carousel.append(a.join(""))},
hasItem:function(a,b){return 0<a.eq(b).length},insertFetchedItem:function(a,b,c){m.addElementToDom(b.eq(c),m.getElementFromItem(a));return m.clearElementFromItem(a)},attachScrollListener:function(a){this.carousel.dom.$carousel.bind(e.action.move+".a-carousel-freeScroll scroll.a-carousel-freeScroll",a);this.triggerEvent("scrollEventAttached")},detachScrollListener:function(a){this.carousel.dom.$carousel.unbind(".a-carousel-freeScroll");this.triggerEvent("scrollEventDetached")},triggerEvent:function(a){this.carousel.triggerEvent(a,
this.carousel)},measureWidth:function(){return this.carousel.dom.$viewport.outerWidth()},wantNext:function(a,b){this.carousel.strategies.ajax.want(this.carousel,a,b)},getDimensions:function(){return this.carousel.getDimensions()},throttle:function(a,b){var c=this;clearTimeout(c[a]);c[a]=setTimeout(function(){b(c)},100)},shouldRepaint:function(){return this.carousel.strategies.display.repaint},repaint:function(){this.carousel.strategies.display.repaint(this.carousel)},autorotate:function(a){this.carousel.dom.$viewport.bind("focusin",
function(a){var b=a.currentTarget;a=a.target.getBoundingClientRect();var c=b.getBoundingClientRect();a.left<c.left?b.scrollLeft-=c.left-a.left:a.right>c.right&&(b.scrollLeft+=a.right-c.right)})}});var w={ajaxLock:!0,startIndexForHeightCheck:0,lastScrollPosition:-1,currentScrollPosition:-1,maxHeight:1};w[g.NO_TRANSITION]=!0;w[g.HIDE_OFF_SCREEN]=!1;w[g.AUTO_ADJUST_HEIGHT]=!1;w[g.HEIGHT_ANIMATION_SPEED]=200;return{gotoIndex:e.constants.NOOP,gotoNextpage:e.constants.NOOP,gotoPrevPage:e.constants.NOOP,
gotoPage:e.constants.NOOP,initAttrs:w,init:function(c){var k=d(c);k.showItems();k.autorotate();l(k);f(k);b(k);k.onChange(g.FETCHED_ITEMS,function(b,c){h(k,b,c);a(k)});e.on.resize(function(){a(k)})},afterInit:function(b){var c=d(b);e.delay(function(){c.setAttr("ajaxLock",!1);a(c)})},prepareFetchedItems:l,addEmptyCards:f,handleItemChanges:h,detectEmptyCardsLoadingThreshold:a,ATTR:{NEXT_REQUEST_SIZE:g.NEXT_REQUEST_SIZE,LOADING_THRESHOLD_PIXELS:g.LOADING_THRESHOLD_PIXELS,CURRENT_SCROLL_POSITION:"currentScrollPosition"}}});
"use strict";n.when("A","jQuery","a-carousel-transition-slide","a-carousel-transition-swap","a-carousel-transition-freescroll","a-carousel-transition-slidecircular","a-carousel-constants").register("a-carousel-strategies-transition",function(e,m,g,d,l,f,h){m={};m[h.NO_TRANSITION]=!0;m[h.HIDE_OFF_SCREEN]=!1;m[h.AUTO_ADJUST_HEIGHT]=!1;return{slideHorizontal:g,swap:d,freeScroll:l,slideCircular:f,none:{gotoIndex:e.constants.NOOP,gotoNextPage:e.constants.NOOP,gotoPrevPage:e.constants.NOOP,gotoPage:e.constants.NOOP,
initAttrs:m,init:function(b){b.dom.$carousel.children("li").css("visibility","").attr("aria-hidden","false")}},"default":"slideHorizontal"}});"use strict";n.when("A").register("a-carousel-ajax-standard",function(e){function m(f,g,b,a){f.triggerEvent("beforeAjax",{url:g,params:b});e.get(g,{cache:!1,success:function(a){a=d(a,g);if(null===a)n.error("Invalid JSON returned to carousel from "+g+" - see http://tiny/c1mr5h0u for details.","a-carousel-ajax-standard","sendRequest");else{b.needSetSize&&(a&&
a.length||n.error("Carousel requires a set_size and none was returned by the fallback AJAX request at: "+g,"a-carousel-ajax-standard","sendRequest"),f.setAttr("set_size",a[0].setSize?a[0].setSize:a.length));for(var c=f.getAttr("fetchedItems"),h=f.getAttr("ajax"),l=[],k,m=a.length;m--;)k=a[m],null===k&&l.push(m),k&&(k.content||""===k.content?k.content=e.trim(k.content):k=e.trim(k)),c[b.offset+m]=k;h.remove_nulls&&h.id_list&&l.length&&(e.each(l,function(a){h.id_list.splice(b.offset+a,1)}),f.setAttr("ajax",
h));b.needSetSize&&f.init();f.setAttr("fetchedItems",c);f.setAttr("ajaxLock",!1);b.needSetSize&&f.getAttr("pageSize")>=c.length&&f.strategies.ajax.wantCurrentPage(f);f.triggerEvent("ajaxSuccess",{url:g,params:b})}},params:b,headers:a})}function g(d){var e=d.getAttr("requestTimer");e&&(clearTimeout(e),d.setAttr("requestTimer",null))}function d(d,g){return e.isArray(d)?d:d!==l&&null!==d&&!e.objectIsEmpty(d)&&d.hasOwnProperty("data")&&e.isArray(d.data)?d.data:null}var l;return{getItems:function(d,g,
b,a){var c=d.getAttr("ajax");d.setAttr("requestTimer",e.delay(m,c.fetch_delay,d,g,b,a))},wantNextPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var e=d.getAttr("pageSize"),b=2*e;d.getAttr("show_partial_next")&&b++;this.want(d,(d.getAttr("pageNumber")-1)*e,b)}else this.wantCurrentPage(d)},wantPrevPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var e=d.getAttr("pageSize"),b=2*e;d.getAttr("show_partial_next")&&b++;this.want(d,(d.getAttr("pageNumber")-2)*e,b)}else this.wantCurrentPage(d)},
wantCurrentPage:function(d){g(d);var e=d.getAttr("pageSize"),b=d.getAttr("show_partial_next")?e+1:e;this.want(d,(d.getAttr("pageNumber")-1)*e,b)},want:function(d,e,b){if(!d.getAttr("ajaxLock")){g(d);var a=d.getAttr("ajax"),c=d.getAttr("set_size");if(a.url){var f=d.getAttr("fetchedItems"),h=a.id_list;h||(h=[]);var l=-1<e?e:0;e=e+b-1;var k=a.params||{},m=a.headers||{},n=[],q=[];0===c&&(h.length&&(c=h),k.needSetSize="true",d.setAttr("ajaxLock",!0));for(-1===b&&c&&(e=c);l<=e&&l<c;)f[l]||((b=h[l])&&n.push(b),
q.push(l),f[l]=!1),l++;d.setAttr("fetchedItems",f,{silent:!0});k.count=q.length;k.offset=q[0]||0;0<n.length&&(k[a.id_param_name]=n.join(","));(0<q.length||k.needSetSize)&&this.getItems(d,a.url,k,m)}}},init:function(d){var f=d.getAttr("ajax");e.isFiniteNumber(f.fetch_delay)||(f.fetch_delay=500);f.id_param_name=f.id_param_name||"ids";f.prefetch_next_page=f.prefetch_next_page===l?!0:!!f.prefetch_next_page;d.setAttr("ajax",f);d.getAttr("set_size")||this.want(d,0,-1)},afterInit:function(d){d.strategies.ajax.wantCurrentPage(d);
d.onChange("pageNumber",function(e,b){e>b?d.strategies.ajax.wantNextPage(d):d.strategies.ajax.wantPrevPage(d)});d.onChange("loading",function(e){e||d.strategies.ajax.wantCurrentPage(d)})}}});"use strict";n.when("a-util").register("a-carousel-ajax-promise",function(e){function m(g,d){var l=g.getAttr("requestTimer");l&&clearTimeout(l);g.setAttr("requestTimer",e.delay(d,500))}return{getItems:function(g,d,l){m(g,function(){var f=g.getAttr("async_provider");f&&f(d,l).then(function(f){var b=g.getAttr("fetchedItems");
e.each(f,function(a,c){b[d[c]]=a});g.setAttr("fetchedItems",b)})})},wantNextPage:function(e){var d=e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-1)*d;this.want(e,g,2*d)},wantPrevPage:function(e){var d=e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-2)*d;this.want(e,g,2*d)},wantCurrentPage:function(e){var d=e.getAttr("pageSize"),g=(e.getAttr("pageNumber")-1)*d;this.want(e,g,d)},want:function(g,d,l){d=Math.max(0,d);l=Math.min(d+l,g.getAttr("set_size"));for(var f=g.getAttr("fetchedItems"),h=[];d<
l;d++)f[d]||(h.push(d),f[d]=!1);if(h.length){var b,a=g.getAttr("ajax").id_list;a&&(b=e.map(h,function(b){return a[b]}));g.setAttr("fetchedItems",f,{silent:!0});this.getItems(g,h,b)}},init:function(e){},afterInit:function(g){g.strategies.ajax.wantCurrentPage(g);g.onChange("async_provider",e.once(function(){g.strategies.ajax.wantCurrentPage(g)}));g.onChange("pageNumber",function(d,e){d>e?g.strategies.ajax.wantNextPage(g):g.strategies.ajax.wantPrevPage(g)})}}});"use strict";n.when("A","a-carousel-ajax-standard",
"a-carousel-ajax-promise").register("a-carousel-strategies-ajax",function(e,m,g){return{standard:m,promise:g,none:{wantNextPage:e.constants.NOOP,wantPrevPage:e.constants.NOOP,wantCurrentPage:e.constants.NOOP,want:e.constants.NOOP,init:e.constants.NOOP},"default":"standard"}});"use strict";n.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-desktop",function(e,m){function g(b,a){var c=b.dom.$carousel,d=c.children("li"),e=b.getAttr(m.PAGE_SIZE),f=b.getAttr(m.FIRST_VISIBLE_ITEM),
g=f-1,h=b.getAttr(m.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);if(b.getAttr(m.NO_TRANSITION))return d;if(d.length<=e)return c.children("li:not(:empty), li.a-carousel-card-empty");"slideCircular"===b.getAttr(m.TRANSITION_STRATEGY)&&(g=h-f-1,0===d.length%2&&--g);c=g=(g+2*d.length)%d.length;e=g+e;a&&("peekCircular"===b.getAttr(m.DISPLAY_STRATEGY)&&--c,"peekCircular"===b.getAttr(m.DISPLAY_STRATEGY)||b.getAttr(m.SHOW_PARTIAL_NEXT))&&(e+=1);return d.slice(Math.max(c,0),Math.min(e,d.length))}function d(b,
a){if(!b.getAttr(m.NO_TRANSITION)){var c=b.dom.$carousel.children("li"),d=b.getAttr(m.TRANSITION_STRATEGY);b=b.getAttr(m.DISPLAY_STRATEGY);c=c.not(a);a.attr("aria-hidden",!1);c.attr("aria-hidden",!0);if("slideCircular"===d&&"peekCircular"!==b||"slideHorizontal"===d)a.css("visibility","visible"),c.css("visibility","hidden")}}function l(b,a){if(!b.getAttr(m.CIRCULAR)){var c=b.dom.$container;c.find(".a-carousel-goto-prevpage").attr("aria-disabled",1===a?"true":"false");c.find(".a-carousel-goto-nextpage").attr("aria-disabled",
a===b.getAttr(m.TOTAL_PAGES)?"true":"false")}}function f(b){var a=b.dom.$carousel.children("li"),c=b.getAttr(m.TRANSITION_STRATEGY),d=b.getAttr(m.SET_SIZE),e=d?{"aria-setsize":d}:{};if("swap"===c){var f=b.getAttr(m.FIRST_VISIBLE_ITEM);a.each(function(a){var b=h(this);f+a>d?(b.removeAttr("aria-setsize"),b.removeAttr("aria-posinset")):(e["aria-posinset"]=f+a,b.attr(e))})}else a.each(function(a){e["aria-posinset"]=a+1;h(this).attr(e);h(this).attr("aria-hidden")||h(this).attr("aria-hidden",!1)})}var h=
e.$;return{init:function(b){var a=b.getAttr(m.NAME);f(b);d(b,g(b,!0));l(b,1);e.on("a:carousel"+(a?":"+a:"")+":repaint",function(){d(b,g(b,!0))});b.onChange(m.SET_SIZE,function(a,d){f(b)});b.onChange(m.LOADING,function(a){b.getAttr(m.ANIMATING)||b.dom.$carousel.attr("aria-busy",(!!a).toString())});b.onChange(m.ANIMATING,function(a){b.getAttr(m.LOADING)||b.dom.$carousel.attr("aria-busy",(!!a).toString());!a&&b.getAttr(m.SET_SIZE)>b.getAttr(m.PAGE_SIZE)&&(a=b.getAttr(m.TRANSITION_STRATEGY),d(b,g(b,!0)),
"slide"!==a&&f(b))});b.onChange(m.PAGE_NUMBER,function(a){l(b,a);d(b,b.dom.$carousel.children("li"))})},gotoPage:function(b,a,c){b.getAttr(m.NO_TRANSITION)},nextPage:function(b,a,c){b.getAttr(m.NO_TRANSITION)},prevPage:function(b,a,c){b.getAttr(m.NO_TRANSITION)}}});"use strict";n.when("A","a-carousel-constants").register("a-carousel-accessibility-standard-mobile",function(e,m){function g(e){var f=e.dom.$carousel.children("li"),g=e.getAttr(m.TRANSITION_STRATEGY),b=e.getAttr(m.SET_SIZE),a=b?{"aria-setsize":b}:
{};if("swap"===g){var c=e.getAttr(m.FIRST_VISIBLE_ITEM);f.each(function(e){var f=d(this);c+e>b?(f.removeAttr("aria-setsize"),f.removeAttr("aria-posinset")):(a["aria-posinset"]=c+e,f.attr(a))})}else f.each(function(b){a["aria-posinset"]=b+1;d(this).attr(a);d(this).attr("aria-hidden")||d(this).attr("aria-hidden",!1)})}var d=e.$;e=e.constants.NOOP;return{init:function(d){g(d);d.onChange(m.SET_SIZE,function(){g(d)});d.onChange(m.LOADING,function(e){d.dom.$carousel.attr("aria-busy",(!!e).toString());e||
g(d)})},gotoPage:e,nextPage:e,prevPage:e}});"use strict";n.when("A","a-carousel-accessibility-standard-desktop","a-carousel-accessibility-standard-mobile").register("a-carousel-strategies-accessibility",function(e,m,g){return{standardDesktop:m,standardMobile:g,none:{init:e.constants.NOOP,gotoPage:e.constants.NOOP,nextPage:e.constants.NOOP,prevPage:e.constants.NOOP},"default":e.capabilities.mobile||e.capabilities.tablet?"standardMobile":"standardDesktop"}});"use strict";n.when("a-carousel-strategies-display",
"a-carousel-strategies-transition","a-carousel-strategies-ajax","a-carousel-strategies-accessibility").register("a-carousel-strategies",function(e,m,g,d){return{display:e,transition:m,ajax:g,accessibility:d}});"use strict";n.when("A","jQuery","a-carousel-classes","a-carousel-strategies","a-carousel-constants").register("a-carousel-framework",function(e,m,g,d,l){function f(a,b,c,d){var f=a.hasClass("a-begin"),g=0<a.children(".a-end").length;if(f?g:1)return b=new b(a,c,d),b.__id=++z,a.data("a-carousel",
b),a.removeClass("a-carousel-static"),x(a,b)?e.delay(h,10,b):q.push(b),d.name&&(y[d.name]=b),b}function h(a){a.init();u.push(a);a.__initialized=!0;a.dom.$container.addClass("a-carousel-initialized");var b=a.getAttr("name");b&&A[b]&&e.each(A[b],function(b){b(a)})}function b(a,b){(b=b[a+"Strategy"])||(b=d[a]["default"]);return d[a][b]}function a(a){for(var b=a.length,c;b--;)c=a[b],c.dom.$container.length&&t.find(c.dom.$container).length||((c=c.getAttr("name"))&&delete y[c],a.splice(b,1))}function c(){a(q);
a(u)}function p(a){var c=a.data("a-carousel-options")||{};c.displayStrategy=a.data("a-display-strategy");c.transitionStrategy=a.data("a-transition-strategy");c.ajaxStrategy=a.data("a-ajax-strategy");c.accessibilityStrategy=a.data("a-accessibility-strategy");c.carouselClass=a.data("a-class");a=b("display",c);var d=b("transition",c),e=b("ajax",c),f=b("accessibility",c),h=c.carouselClass;h||(h=g["default"]);h=g[h];if(h!==r&&a!==r&&d!==r&&e!==r&&f!==r)return{carouselClass:h,strategies:{display:a,transition:d,
ajax:e,accessibility:f},opts:c}}function x(a,b){return a.hasClass("a-begin")&&0===a.children(".a-end").length?!1:e.onScreen(a,b.getAttr("initThreshold"))}function w(){m(".a-carousel-static").each(function(){var a=m(this),b=p(a);b&&f(a,b.carouselClass,b.strategies,b.opts)})}function k(){for(var a=q.length;a--;){var b=q[a];x(b.dom.$container,b)&&(q.splice(a,1),h(b))}}var r,u=[],q=[],v=!1,y={},t=m(document),A={},z=0;e.on("resize orientationchange",function(a,b){c();(b.height||b.width)&&e.delay(function(){e.each(u,
function(a){a.resize()})},e.capabilities.mobile||e.capabilities.tablet?100:0)});e.on("a:popover:afterSlideOut",function(){e.each(u,function(a){a.resize()})});e.on("a:carousel:change:name",function(a){a.newValue&&(y[a.newValue]=a.carousel);a.oldValue&&delete y[a.oldValue]});e.on(l.INIT_EVENTS,function(){k();w()});e.on("a:pageUpdate",c);e.on("scroll",function(){k();w()});e.declarative("a-tabs","click",function(a){e.delay(function(){k();e.each(u,function(a){a.getAttr("isInTab")&&a.resize()})},50)});
e.on("a:popover:afterShow",function(){e.delay(k,50)});e.on("a:popover:ajaxContentLoaded",function(){e.delay(function(){c();w()},50)});e.on.ready(function(){v=!0});l={getCarousel:function(a){a.jquery||(a=m(a));var b=a.closest(".a-carousel-container").data("a-carousel");if(!b){var c=p(a);c&&(b=f(a,c.carouselClass,c.strategies,c.opts))}return b},getCarouselByName:function(a){return y[a]},createAll:function(){c();w()},initializeAll:function(){c();k()},kill:function(a){a.jquery||(a=m(a));if(a.length&&
(a=a.closest(".a-carousel-container"),a.length)){var b=a.data("a-carousel");if(b){var c=e.indexOfArray(u,b);-1<c?(u[c].name&&delete y[u[c].name],u.splice(c,1)):(c=e.indexOfArray(q,b),-1<c&&(q[c].name&&delete y[q[c].name],q.splice(c,1)))}a.remove()}},registerStrategy:function(a,b,c){d[a]||(d.type={});d[a][b]&&n.error("Attempted to register a "+a+" strategy which already exists: "+b,"a-carousel-framework","registerStrategy");d[a][b]=c;v&&w()},registerCarouselClass:function(a,b){g[a]&&n.error("Attempted to register a carousel class which already exists: "+
a,"a-carousel-framework","registerCarouselClass");m.isFunction(b)||n.error("Attempted to register carousel class "+a+" without a constructor function.","a-carousel-framework","registerCarouselClass");g[a]=b;v&&w()},getAllCarousels:function(){return u.concat(q)},onInit:function(a,b){a&&(A[a]||(A[a]=[]),m.isFunction(b)&&(A[a].push(b),(a=y[a])&&a.__initialized&&b(a)))}};Object.freeze!==r&&Object.freeze(l);return l})});
/* ******** */
'use strict';(function(d){var k=window.AmazonUIPageJS||window.P,l=k._namespace||k.attributeErrors,b=l?l("AmazonUIComponents","AmazonUI"):k;b.guardFatal?b.guardFatal(d)(b,window):b.execute(function(){d(b,window)})})(function(d,k,l){d.when("A","a-form-controls-api").register("a-form-controls-handlers",function(b,e){var c=b.$,f=function(){c(this).removeClass("a-hover-disable")},d=function(a,g){var h=e.findFormElementContainer(a);b.delay(function(){h.find(g).each(e.normalizeElement)},0)};return{handleBoxInputMobileFocus:function(){c(this).addClass("a-form-focus")},
handleBoxInputMobileBlur:function(){c(this).removeClass("a-form-focus")},accessibilityKeyPress:function(a){a.keyCode===b.constants.keycodes.SPACE&&(a.preventDefault(),a.stopPropagation())},formReset:d,handleCheckboxClick:function(){if(!b.capabilities.mobile&&!b.capabilities.tablet)c(this).addClass("a-hover-disable").one("mouseleave",f)},normalizeFormControls:function(){c("form").unbind("reset.a-form-controls-reset").bind("reset.a-form-controls-reset",function(a){d(a.currentTarget,"li .a-touch-multi-select")})},
touchMultiSelectHandler:function(a){e.toggleCheckboxState(a.currentTarget)}}});"use strict";d.when("A","a-form-controls-handlers","ready").register("a-form-controls",function(b,e){var c=b.$;c(document).delegate(".a-checkbox-fancy","click",e.handleCheckboxClick).delegate(".a-checkbox-fancy, .a-radio-fancy","keypress",e.accessibilityKeyPress);b.on("a:pageUpdate beforeReady",e.normalizeFormControls)});"use strict";d.when("A").register("a-buttons",function(b){function e(a){var b=a.children(".a-button-inner").find("[role\x3d'radio']");
return 0<b.length?b:a.filter("[role\x3d'radio']")}function c(a){return function(){e(f(this)).attr("aria-checked",a)}}var f=b.$,d=0;b.declarative("a-button-group",["click"],function(a){var g=a.$target,h=g.closest(".a-button:not(.a-button-disabled)");if(h.length){var d=a.$declarativeParent.find(".a-button");a=a.data&&a.data.name?a.data.name:!1;g=g.closest("input[type\x3dsubmit], button").attr("name")||g.find("input[type\x3dsubmit], button").attr("name");d.removeClass("a-button-selected a-button-focus").each(c("false"));
h.addClass("a-button-selected a-button-focus").each(c("true"));if(g||a)h={$button:h,buttonName:g,buttonGroupName:a},a&&(b.trigger("a:button-group:"+a+":toggle",{selectedButton:h}),g&&b.trigger("a:button-group:"+a+":"+g+":toggle",{selectedButton:h}))}});b.on("a:pageUpdate beforeReady",function(){var a=f(".a-button:not([id])"),b=f(".a-button-group,.a-button-toggle-group");a.each(function(){var a=f(this),b=a.find(".a-button-text"),e=a.find(".a-button-input").not("[aria-label]"),c="a-autoid-"+d++;a.attr("id",
c);b.length&&(c=(a=b.attr("id"))?a:c+"-announce",e.length&&e.attr("aria-labelledby",c),b.attr("id",c))});b.each(function(){var a=f(this).find(".a-button"),b=a.length,c=1;a.each(function(){e(f(this)).attr({"aria-posinset":c++,"aria-setsize":b})})})});f(document).delegate(".a-button-input, .a-button-text","focusin",function(){var a=f(this).closest(".a-button");a.hasClass("a-button-disabled")||a.addClass("a-button-focus")}).delegate(".a-button-input, .a-button-text","focusout "+b.action.cancel,function(){f(this).closest(".a-button").removeClass("a-button-focus")})})});
/* ******** */
'use strict';(function(d){var f=window.AmazonUIPageJS||window.P,h=f._namespace||f.attributeErrors,c=h?h("AmazonUITabs","AmazonUI"):f;c.guardFatal?c.guardFatal(d)(c,window):c.execute(function(){d(c,window)})})(function(d,f,h){d.when("A").register("a-tabs",function(c){function d(a){var b=a.$target.closest("li"),k=a.data.name,d=b.data("a-tab-name"),e=b.closest(".a-tab-container"),f=e.find(".a-box-tab").not(e.find(".a-box-tab .a-box-tab"));d!==h&&(g(e.find("li.a-active"),b.closest(".a-tabs")).removeClass("a-active").find("a").attr({"aria-selected":!1,
tabindex:-1}),b.addClass("a-active").find("a").attr("aria-selected",!0).removeAttr("tabindex"),g.each(f,function(b,a){g(a).toggleClass("a-hidden",g(a).data("a-name")!==d)}),b={$tab:b,tabName:d,tabSetName:k},c.trigger("a:tabs:"+k+":select",{selectedTab:b}),c.trigger("a:tabs:"+k+":"+d+":select",{selectedTab:b}),c.trigger("a:image:lazyLoad"),a.$event.preventDefault())}var g=c.$,e=c.constants.keycodes;c.declarative("a-tabs",["click"],d);c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var a=
g(document).find(".a-tab-container"),b=a.find(".a-tabs"),c=b.not('[role\x3d"tablist"]');a=a.find(".a-box-tab").not(a.find(".a-box-tab .a-box-tab"));var d=b.find(".a-tab-heading.a-active a"),e=b.find(".a-tab-heading:not('.a-active') a");c.length&&(b.find(".a-tab-heading").attr("role","presentation"),c.attr("role","tablist"),d.add(e).attr("role","tab"),a.attr({role:"tabpanel",tabindex:"-1"}),d.attr("aria-selected",!0),e.attr({"aria-selected":!1,tabindex:-1}))});c.declarative("a-tabs",["keydown"],function(a){var b=
a.$target.closest(".a-tab-container").find(".a-tab-heading");switch(a.$event.which){case e.SPACE:d(a);break;case e.END:a.$event.preventDefault();b.last().find("a").focus();break;case e.HOME:a.$event.preventDefault();b.first().find("a").focus();break;case e.LEFT_ARROW:case e.RIGHT_ARROW:b=a.$target.closest(".a-tab-heading");var c=b.closest(".a-tab-container").find(".a-tab-heading");a.$event.which===e.RIGHT_ARROW&&b.next(".a-tab-heading").add(c.first()).last().find("a").focus();a.$event.which===e.LEFT_ARROW&&
b.prev(".a-tab-heading").add(c.last()).first().find("a").focus()}})})});
/* ******** */
(function(c){var f=window.AmazonUIPageJS||window.P,g=f._namespace||f.attributeErrors,a=g?g("AmazonUIAccordion","AmazonUI"):f;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,f,g){c.when("A").register("a-accordion-a11y",function(a){var n=a.$,b;return{refreshFocus:function(e,h){h=h||600;b||(b=n("\x3cb /\x3e",{"class":"a-accordion-a11y",tabIndex:-1,style:"position: absolute"}).appendTo("body"));b.css({display:"block"}).offset(e.offset());a.delay(function(){b.focus()},
50);a.delay(function(){e.focus();b.css({display:"none"})},h)}}});c.when("A","a-accordion-a11y","prv:a-capabilities").register("a-accordion",function(a,n,b){function e(b){var k=b.$target.closest(".a-accordion"),d=b.$target.closest(".a-box"),e=k.find(".a-box").not(d),l=d.find(".a-accordion-row"),f=k.data("a-accordion-name"),g=d.data("a-accordion-row-name"),t=k.hasClass("a-accordion-collapse"),u=d.find("a.a-accordion-row");var p=b.$target.closest(".a-accordion-sr");k=k.find(".a-accordion-sr").not(p);
if(g){var r=d.find(".a-accordion-inner"),q=!0;if(d.hasClass("a-accordion-active"))if(t)r[c]({duration:m,complete:function(){d.removeClass("a-accordion-active");d.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-active").addClass("a-icon-radio-inactive");p.attr("aria-expanded","false").filter("[aria-checked]").attr("aria-checked","false")}});else q=!1;else e.find(".a-accordion-inner")[c]({duration:m,complete:function(){e.removeClass("a-accordion-active")}}),r[h]({duration:m,complete:function(){d.addClass("a-accordion-active");
e.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-active").addClass("a-icon-radio-inactive");d.find(".a-icon.a-accordion-radio").removeClass("a-icon-radio-inactive").addClass("a-icon-radio-active")}}),k.attr("aria-expanded","false").filter("[aria-checked]").attr("aria-checked","false"),p.attr("aria-expanded","true").filter("[aria-checked]").attr("aria-checked","true");q&&v&&n.refreshFocus(l);q&&(l={$row:d,rowName:g,accordionName:f},a.trigger("a:accordion:select",{selectedRow:l}),a.trigger("a:accordion:"+
f+":select",{selectedRow:l}),a.trigger("a:accordion:"+f+":"+g+":select",{selectedRow:l}),a.trigger("a:image:lazyLoad"))}u.length&&b.$event.preventDefault()}var h="slideDown",c="slideUp",m=300;if(a.capabilities.mobile||a.capabilities.tablet)h="show",c="hide",m=0;var v=!a.capabilities.touch&&b.isFirefox;a.declarative("a-accordion",["click"],e);a.declarative("a-accordion",["keypress"],function(b){var c=a.constants.keycodes,d=b.$event.which;d!==c.ENTER&&d!==c.SPACE||e(b)})});"use strict";c.when("A","jQuery").register("a-accordion-initialization",
function(a,c){function b(a){c(a).find(".a-box").each(function(a,b){b=c(b);a=b.find("[role\x3dbutton]");b=b.find(".a-accordion-inner");a.attr("aria-controls")||(b.attr("id")||b.attr("id","a-accordion-auto-"+f++),a.attr("aria-controls",b.attr("id")))})}function e(){c(".a-accordion").each(function(a,c){b(c)})}var f=0;a.on("load ready",e);return{initializeAccordion:b,initializeAllAccordions:e}})});
/* ******** */
(function(d){var e=window.AmazonUIPageJS||window.P,r=e._namespace||e.attributeErrors,a=r?r("AmazonUIExpander@base","AmazonUI"):e;a.guardFatal?a.guardFatal(d)(a,window):a.execute(function(){d(a,window)})})(function(d,e,r){d.declare("prv:a-expander-constants",{classNames:{inline:{expand:"a-icon-expand",collapse:"a-icon-collapse"},section:{expand:"a-icon-section-expand",collapse:"a-icon-section-collapse"},extender:{expand:"a-icon-extender-expand",collapse:"a-icon-extender-collapse"}},elementClasses:{container:"a-expander-container",
content:"a-expander-content",header:"a-expander-header",fadeDiv:"a-expander-content-fade"}});d.when("A","jQuery","prv:a-expander-constants").register("a-partial-expander",function(a,d,e){function m(){d(".a-expander-partial-collapse-container").each(function(){var a=d(this),g=a.children("."+q.content),c=a.data("a-expander-collapsed-height"),b=a.children("."+q.header);g.height()<=c?b.css({opacity:"0",display:"none"}):(b.css({opacity:"1",display:"block"}),g.css("padding-bottom",b.height()),"true"!==
g.attr("data-expanded")&&a.css({height:c}),a.css({"max-height":"none"}))})}var q=e.elementClasses;a.on("load ready resize orientationchange a:popover:afterShow a:popover:ajaxContentLoaded",m);return m});"use strict";d.when("A","jQuery","prv:a-expander-constants","a-partial-expander").register("a-expander",function(a,d,e,m){function q(b,f,g,c){var d=b.closest("."+k.container),e=d.data("a-expander-collapsed-height");var n="true"===b.attr("data-expanded");c=c.$event.originalEvent;n&&c&&c.isTrusted&&
a.delay(function(){f.focus()},100);var h=function(){b.toggleClass(k.content+"-expanded");b.attr("data-expanded",n?"false":"true");f.attr("aria-expanded")&&f.attr("aria-expanded",n?"false":"true");var a=f.data("ariaLabelExpanded"),c=f.data("ariaLabelCollapsed");a&&c&&(n?f.attr("aria-label",c):f.attr("aria-label",a));g()};e?(d.css("height",n?e:"auto"),h()):b.toggle(0,function(){h()})}var k=e.elementClasses,g=e.classNames,c={};a.each(g,function(b,f){c[f]={};a.each(b,function(a,b){c[f][b]=new RegExp("\\b"+
a+"\\b","g")})});a.declarative("a-expander-toggle","click",function(b){var f=b.$target.closest("."+k.container),d=f.find("."+k.container),e=f.data("a-expander-name");var p=b.$currentTarget.hasClass(k.header)?b.$currentTarget:f.find("."+k.header).not(d.find("."+k.header));var m=p.is("a")?p:p.children("a"),n=f.find("."+k.content).not(d.find("."+k.content));q(n,m,function(){var h=p.find(".a-icon")[0],l=null,m=p.children("."+k.fadeDiv);"false"===n.attr("data-expanded")?(h&&(h.className=h.className.replace(c.inline.collapse,
g.inline.expand).replace(c.section.collapse,g.section.expand).replace(c.extender.collapse,g.extender.expand)),b.data&&b.data.expand_prompt&&(l=b.data.expand_prompt),m.show(),h="collapse"):(h&&(h.className=h.className.replace(c.inline.expand,g.inline.collapse).replace(c.section.expand,g.section.collapse).replace(c.extender.expand,g.extender.collapse)),b.data&&b.data.collapse_prompt&&(l=b.data.collapse_prompt),m.hide(),h="expand");a.trigger("a:image:lazyLoad");l&&""!==l&&p.find(".a-expander-prompt").not(d.find(".a-expander-prompt")).html(l);
l={expander:{$expander:f,expanderName:e}};a.trigger("a:expander:toggle",l);a.trigger("a:expander:toggle:"+h,l);e&&(a.trigger("a:expander:"+e+":toggle",l),a.trigger("a:expander:"+e+":toggle:"+h,l))},b)});return{initializeExpanders:m}})});
/* ******** */
'use strict';(function(h){var p=window.AmazonUIPageJS||window.P,k=p._namespace||p.attributeErrors,c=k?k("AmazonUISwitch","AmazonUI"):p;c.guardFatal?c.guardFatal(h)(c,window):c.execute(function(){h(c,window)})})(function(h,p,k){h.when("a-switch-framework","jQuery").register("a-switch",function(c,f){var g=c.SWITCH_STATE,h=c.SWITCH_CONTAINER_CLASS,x=c.SWITCH_CLASS;return{getSwitch:function(d){function m(d){var n=e.data(g);if(d===k)return n.isOn;if(!n.isEnabled||l(e))return!1;c.setOnState(e,d);return!0}
function l(){return e.data(g).isDragging}d.jquery||(d=f(d));if(0===d.length)return null;d=d.eq(0);d=d.closest("."+h);if(0===d.length)return null;var e=d.find("."+x);c.ensureInitialized(e);return{toggle:function(){return m(!e.data(g).isOn)},isOn:m,enabled:function(d){var n=e.data(g);if(d===k)return n.isEnabled;if(n.isEnabled===d)return!1;c.setEnabled(e,d);return!0},isDragging:l,label:function(c){var d=e.data(g).label,h=d[0].childNodes[0];if(c===k)return d.text();3===h.nodeType&&(h.textContent=c)}}}}});
"use strict";h.when("A","jQuery").register("a-switch-framework",function(c,f){function g(a){a.preventDefault();var b=a.data.$switch.data("a-switch-state"),q=b.control;if(!c.isAnimated(q)){a=t(a)-b.initialX;b.isOn&&(a+=b.rightBoundary);var d=b.leftBoundary,r=b.rightBoundary;a=a<d?d:a>r?r:a;a!==b.leftOffset&&(c.animate(q,{left:a},0),b.leftOffset=a,b.isDragging=!0,b.dragCount++)}}function l(a){a.preventDefault();if(c.capabilities.touch||1===a.which){a=a.data.$switch;var b=a.data("a-switch-state");m(a,
b.isDragging&&1<b.dragCount?b.leftOffset>b.midPoint:!b.isOn);b.isDragging=!1;v(a)}}function k(a,b,d){d={switchState:a,previousState:d};c.trigger("a:switch:"+b,d);a.name&&c.trigger("a:switch:"+a.name+":"+b,d)}function d(a){if(!a.data("a-switch-state")){var b=a.closest(".a-switch-row"),d=a.children(".a-switch-control"),c=b.find(".a-switch-label"),r=c.siblings("input"),h=r.attr("name"),e=b.hasClass("a-active"),k=!b.hasClass("a-disabled"),f=u.left,g=(a.width()-d.width()+u.right)*A;a.data("a-switch-state",
{input:r,container:b,control:d,label:c,isDragging:!1,rightBoundary:g,leftBoundary:f,midPoint:g/2,initialX:null,leftOffset:e?g:f,maxLeftOffset:u.maxLeftOffset,isOn:e,isEnabled:k,name:h,dragCount:0,clicked:!1})}}function m(a,b){d(a);a=a.data("a-switch-state");var q=a.isOn,h=b!==a.isOn;a.isOn=b;var e=a.control,g=a.maxLeftOffset,f=a.isOn?a.rightBoundary:a.leftBoundary;f=g&&f>g?g:f;c.animate(e,{left:f},300,"ease-out");a.leftOffset=f;e=a.container;a.isOn?e.addClass("a-active"):e.removeClass("a-active");
e=a.input;a.isOn?e.attr("checked","checked"):e.removeAttr("checked");h&&k(a,"flip",q);b?k(a,"on",q):k(a,"off",q)}var p=function(a){a.bind("touchmove.a-switch-component",{$switch:a},g);a.bind("touchend.a-switch-component",{$switch:a},l);a.bind("touchcancel.a-switch-component",{$switch:a},l);a.bind("mouseup.a-switch-component",{$switch:a},l)},e=function(a){a.unbind("touchmove.a-switch-component");a.unbind("touchend.a-switch-component");a.unbind("touchcancel.a-switch-component");a.unbind("mouseup.a-switch-component")},
y=function(a){return(a.originalEvent.touches[0]||a.originalEvent.changedTouches[0]).pageX},n=function(a){f("body").bind("mousemove.a-switch-component",{$switch:a},g);f("body").bind("mouseup.a-switch-component",{$switch:a},l)},z=function(a){f("body").unbind("mousemove.a-switch-component",g);f("body").unbind("mouseup.a-switch-component",l)},B=function(a){return a.pageX},u={left:c.capabilities.rtl?1:-1,right:-3},A=c.capabilities.rtl?-1:1;h.when("prv:skin-vars").execute(function(a){u=a.toggle.bounds});
var w=null,v=null,t=null;c.capabilities.touch?(w=p,v=e,t=y):(w=n,v=z,t=B);c.declarative("a-switch",["touchstart","mousedown"],function(a){var b=a.$event;b.preventDefault();if(c.capabilities.touch||1===b.which){a=a.$declarativeParent;d(a);var e=a.data("a-switch-state");e.dragCount=0;e.clicked=!0;e.isDragging=!1;e.isEnabled&&(e.initialX=t(b),w(a))}});c.declarative("a-switch-input","change",function(a){a.$event.preventDefault();var b=a.$target;a=f("html").hasClass("a-touch");b=b.closest(".a-switch-row").find(".a-switch");
d(b);var c=b.data("a-switch-state");!a&&c.clicked?c.clicked=!1:m(b,!c.isOn)});h.when("ready").execute("a-switch-normalization",function(){f(".a-switch-input").each(function(){var a=f(this),b=a.next().children(".a-switch");m(b,a.prop("checked"))})});return{ensureInitialized:d,setOnState:m,setEnabled:function(a,b){d(a);a=a.data("a-switch-state");var c=a.container;b?c.removeClass("a-disabled").attr("disabled",!1):c.addClass("a-disabled").attr("disabled",!0);a.isEnabled=b},SWITCH_STATE:"a-switch-state",
SWITCH_CONTAINER_CLASS:"a-switch-row",SWITCH_CLASS:"a-switch"}})});
/* ******** */
'use strict';(function(a){var f=window.AmazonUIPageJS||window.P,l=f._namespace||f.attributeErrors,b=l?l("AmazonUIProgressBar","AmazonUI"):f;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,f,l){a.when("A","ready").register("a-progress",function(b){function a(a){(a?e(a):e(".a-js-progress-bar")).each(function(){var a=e(this);if(b.onScreen(a,0)){var g=+a.attr("data-progress-percentage");var h=-(g-100);var c=a.width();var f=h/100*c;var d=a.find(".a-js-progress-tooltip"),
k=d.width();d.find(".a-js-tooltip-arrow");g=(g+h/2)/100*c-k/2;h=k+g;(k=h<c)||(g-=h-c);c=g;e(d).css("left",c+0);c=d.width();d=d.find(".a-js-tooltip-arrow");d.removeClass("aok-hidden");k?(c/=2,e(d).css("left",c+-9)):e(d).css("left",c+-27);12>f&&d.addClass("aok-hidden");e(a.find(".a-js-progress-tooltip")).removeClass("a-progress-tooltip-hidden").addClass("a-progress-tooltip-revealed")}})}var e=b.$;a();b.on("resize scroll",function(b){a()});return{init:a}})});
/* ******** */
'use strict';(function(n){var v=window.AmazonUIPageJS||window.P,B=v._namespace||v.attributeErrors,c=B?B("AmazonUIPopover@base","AmazonUI"):v;c.guardFatal?c.guardFatal(n)(c,window):c.execute(function(){n(c,window)})})(function(n,v,B){n.when("A","a-popover-base-factory").register("a-popover-base-apis",function(c,e){return{show:function(c){var b=e.get(c.$trigger?c.$trigger:c);if(b)return b.show.apply(b,arguments)},hide:function(c){var b=e.get(c);if(b)return b.unlock(1),b.hide.apply(b,arguments)},get:function(c){return e.get(c)},
remove:function(c){return e.remove(c)}}});"use strict";n.when("A","a-popover-util","a-popover-objectclass","a-popover-data").register("a-popover-base-factory",function(c,e,h,b){function m(d){return f[d]?f[d]:null}function k(d,a){return new h.PopoverClass(d,a)}function l(f,g){var c=null;if("number"===typeof f)c=m(f);else if("string"===typeof f)(c=d[f]?d[f]:null)||(c=m(f));else if("object"===typeof f)if(f.$popover)c=f;else if(f=a(f),c=f.data("a-popover-id"),c||(c=f.find(".a-declarative").eq(0),c=c.length?
c.data("a-popover-id"):null),c=m(c),!c){var l=f.data("action");(l=l?f.data(l):null)&&l.name&&(c=l.name,c=d[c]?d[c]:null,!c||g&&c.type!==g?c=null:(g=(g=c.attrs("currentDataStrategy"))?b.getStrategyByName(g):b.guessStrategyByAttrs(c.attrs()))&&g.reusePopover?c.$trigger[0]!==f[0]&&(c.$trigger.data("a-popover-id",null),c.$trigger=f):c=null)}return c}function p(){t||(t=k({id:-1,$popover:q,$trigger:q,immersive:!0},{isActive:function(){return!0},hideMethod:function(){this.hideChildren()},showMethod:c.constants.NOOP}));
return t}var a=c.$,g=1,d={},f={},q=a("\x3cdiv id\x3d'a-popover-root' style\x3d'z-index:-1;position:absolute;' /\x3e").appendTo("body"),t;return{getRoot:p,get:function(f,d){d=d?d:this?this.type:null;return(f=l(f,d))&&d&&f.type!==d?null:f},create:function(b,h){var q=a(b),e=h.attributes||{},t=h.typeSpecificFunctions||h.variant||{};h=h.actionCheck||!1;q.data("a-popover-id");var r=e.type,u=null;!r||q.hasClass("a-declarative")&&q.data("action")&&-1!==q.data("action").indexOf(r)||(q=c.declarative.create(q,
"a-"+r),b=q[0]);if(h&&q.data("action")&&-1===q.data("action").indexOf(r))return null;r&&q&&(u=l(q));if(u)return u.type!==r?null:u;q=e;b=a(b);q.type?b&&b.length?(q=c.extend({id:g++,$trigger:b,$triggerWrapper:null},q),t=c.copy(t),t=k(q,t),f[t.id]=t,t.name&&(d[t.name]=t),b.data("a-popover-id",t.id),b=t.$trigger.closest(".a-popover"),b=!t.attrs("immersive")&&b.length?m(b.data("a-popover-id"))||p():p(),t.parent=b,b.children.push(t)):t=null:t=null;return t},remove:function(a,g){a=this.get(a);var b=!1;if(a){b=
a.id;if(a&&-1<b){var l=c.indexOfArray(a.parent.children,a),h=a.$container,q=a.$trigger;a.parent.children.splice(l,1);a.unlock().hide();a.update({content:""});h&&a.$container.remove();q.data("a-popover-id","");a.name&&delete d[a.name];delete f[b];b=!0}else b=!1;g&&c.declarative.remove(a.$trigger[0],"a-"+g)}return b}}});"use strict";n.when("A","a-popover-util","a-popover-base-factory","prv:a-capabilities").register("a-popover-base-handlers",function(c,e,h,b){function m(a){for(var g;a.length&&!(g=a.data("a-popover-id"));)a=
a.parent();return h.get(g)}var k=c.$;k(document).bind("click "+c.action.start,function(a){var g=k(a.target),d=a.originalEvent;if(!(d&&d.pointerType&&d.pointerType===c.pointerType.touch&&"click"===d.type||g.hasClass("a-modal-scroller")||"a-popover-lgtbox"===g[0].id||"html"===g[0].nodeName.toLowerCase())){var f=function(d){return e.eventOccursWithin(a,d)};c.each(h.getRoot().children,function(d){if(d.isVisible()||d.isContentLoaded()){var a=e.search(d,f);a?a.hideChildren():null!==d.attrs("lightboxOptions")||
d.attrs("immersive")||d.unlock(1).hide()}})}});c.declarative("a-popover-close",["click",c.action.end],function(a){var g=m(a.$target);g&&(g.unlock().hide(),e.trigger("dismiss",g));a.$event.preventDefault()});var l=null,p=null;c.declarative("a-popover-a11y","focusout",function(a){var g=m(a.$target);if(g&&a.$target.length){var d=g.getFirstTabbable();!d.length||a.$target[0]!==d[0]||l&&100>c.now()-l||(l=c.now(),c.delay(function(){k(document.activeElement).hasClass("a-popover-start")&&g.getLastTabbable().focus()},
0))}});c.declarative("a-popover-a11y","focusin",function(a){var g=m(a.$target);g&&a.$target.length&&a.$target.hasClass("a-popover-end")&&!(p&&100>c.now()-p)&&(p=c.now(),c.delay(function(){g.getFirstTabbable().focus()},0))});c.declarative("a-popover-a11y","keydown",function(a){var g=a.$event;g.keyCode===c.constants.keycodes.ESCAPE&&(a=m(a.$target),g.preventDefault(),a&&a.hide())});c.on("resize zoom",function(){h.getRoot().updatePosition()});if(b.isSafari&&c.capabilities.ios)c.on("a:popover:refresh",
function(a){a=a.popover;a.$popover&&a.$popover.undelegate('input[type\x3d"date"]',"blur").delegate('input[type\x3d"date"]',"blur",function(){var a=c.$(v);a.scrollTop(a.scrollTop()+1)})})});"use strict";n.when("A","a-popover-base-apis","a-popover-base-handlers").register("a-popover-base",function(c,e,h){return e});"use strict";n.when("A","prv:a-focus-trap","a-popover-util","a-popover-data","a-popover-position","a-popover-lightbox","a-popover-animate","prv:a-capabilities").register("a-popover-objectclass",
function(c,e,h,b,m,k,l,p){function a(a,g){var b=-1,p=[1],r=-2;this.parent=null;this.children=[];this.typeSpecificFunctions={};this.attributes={position:"triggerVertical",alone:!1,immersive:!1,restoreFocusOnHide:!0};var m=function(){this.isActive()?this._willTriggerEvents&&h.trigger("visible",this):h.trigger("invisible",this);return this},u=function(a,g){var b=this.isActive(),l=this.getDataStrategy(),h=!this.$popover,k=g||h;g=!1;a=a||k;if(!k)for(var q=p.length;q--&&!k;)k=!t[p[q]];k&&(k=y.apply(this),
k=f(k),h||(l.unloadContent(this),this.$container.remove(),g=!0),f("body").append(k),this.$container=k,this.$popover=this.$container.hasClass("a-popover")?this.$container:this.$container.find(".a-popover"),this.$startAnchor=this.$popover.hasClass("a-popover-start")?this.$popover:this.$popover.find(".a-popover-start"),this.$endAnchor=this.$popover.find(".a-popover-end"),this.$popover.attr("id","a-popover-"+this.id).data("a-popover-id",this.id));this.attrs("immersive")||(k=parseInt(this.parent.$popover.css("z-index"),
10),c.isFiniteNumber(k)||(k=this.parent.attrs("immersive")?1010:0),q=this.$trigger.closest(".a-sheet-web"),1===q.length&&(q=parseInt(q.css("z-index")),c.isFiniteNumber(q)&&(k=Math.max(q,k))),k=Math.max(299,100+k),this.$popover.css("z-index",k));if(l.shouldRefreshContent(this)||a)g||l.unloadContent(this),l.loadContent(this,h);this.typeSpecificFunctions.updateDimensions!==d&&this.typeSpecificFunctions.updateDimensions.apply(this);p=[];b&&z.call(this,[],!1);return this},z=function(a,f){function g(){b.updatePosition();
var d=b.attrs("navigate");!f&&d&&b.attrs("navigate",!1);k.call(b,m,a);f&&(h.trigger("show",b),c.trigger("a:image:lazyLoad"));p&&p.apply(b,a);f&&h.trigger("afterShow",b);b.$popover.attr("aria-hidden","false");"tooltip"!==b.type&&q.attr("aria-hidden","true");!f&&d&&b.attrs("navigate",d);r=2}var b=this;f=!!f;var l=b.typeSpecificFunctions,k=l.showMethod!==d?l.showMethod:w,e=l.beforeShowMethod!==d?l.beforeShowMethod:null,p=l.afterShowMethod!==d?l.afterShowMethod:null;r=1;b._willTriggerEvents=f;b.attrs("originalFocus",
document.activeElement);b.$popover.css("visibility","hidden").addClass("a-popover-hidden").show();e&&e.apply(b,a);b.attrs("synchronous")?g():c.delay(function(){g()},0)};this.show=function(){var a=this,d=a.attrs("lightboxOptions")||null;if(a.isActive()||l.isAnimating(a))return this;a.lock(1);d&&k.lock(1);a.parent.$container&&a.parent.$container.is(".a-popover")&&a.parent.$container.attr("aria-hidden","true");a.attrs("alone")&&c.each(a.parent.children,function(d){d.isActive()&&d.id!==a.id&&!d.attrs("modeless")&&
d.unlock().hide()});h.trigger("beforeShow",a);if(!a.$container||a.isDirty()||a.getDataStrategy().shouldRefreshContent(a))h.trigger("refresh",a),u.call(a);"tooltip"===a.type||a.unregister||(a.unregister=e.register(a._trap));if(a.draggable){var f=a.$container;c.draggable(f,{handle:f.find(".a-popover-draggable-handle")})}d&&k.show(c.extend({popover:a},d));z.call(a,arguments,!0);c.delay(function(){a.unlock(1);d&&k.unlock(1)},0);return this};this.hide=function(){var a=this,g=a.typeSpecificFunctions,b=
g.hideMethod!==d?g.hideMethod:A,e=g.beforeHideMethod!==d?g.beforeHideMethod:null,p=g.afterHideMethod!==d?g.afterHideMethod:null,t=a.attrs("lightboxOptions")||null;a.unregister&&(a.unregister(),a.unregister=d);if(!a.isActive()||a.isLocked()||l.isAnimating(a))return this;r=-1;a.hideChildren();h.trigger("beforeHide",a);e&&e.apply(a,arguments);b.call(a,m,arguments);h.trigger("hide",a);c.delay(function(){function d(){c.delay(function(){var d=null,g=a.$container.find(document.activeElement).length,b=f(document.activeElement).is("a, button, input:not([type\x3d'hidden']), select, textarea, [tabindex]:not([tabindex\x3d'-1'])");
if(g||!b)"dropdown"===a.type?d=a.$trigger:a.$trigger&&f(a.$trigger).length&&(d=a.$trigger.is("a, input, button")?a.$trigger:a.$trigger.find("a, input, button")),d&&d.length||(d=f(a.attrs("originalFocus"))),!d.length||n&&!d.is(":visible")||("secondary-view"===a.type||c.onScreen(d,0))&&d.focus()},400)}p&&p.apply(a,arguments);a.$popover.attr("aria-hidden","true");"tooltip"!==a.type&&q.attr("aria-hidden","false");a.parent.$container&&a.parent.$container.is(".a-popover")&&a.parent.$container.attr("aria-hidden",
"false");t&&(a.parent.attrs("lightboxOptions")?k.show(c.extend({popover:a.parent},t)):k.hide(t));h.trigger("afterHide",a);r=-2;a.attrs("restoreFocusOnHide")&&d()},0);return this};this.update=function(a){var d="string"===typeof a?{content:a}:c.copy(a),f=this.attrs();a=this.getDataStrategy();c.each(d,function(a,d){(a&&!f[d]||f[d]&&f[d]!==a)&&p.push(d)});this.isDirty()&&(d=c.extend({},f,d),this.attrs(d),this.getDataStrategy(d),this.$popover&&a.unloadContent(this),this.isActive()&&(u.call(this,!0),this.focus()));
return this};this.refresh=function(a,d){return u.call(this,a||!0,d||!1)};this.isActive=function(){return 1<=r};this.isVisible=function(){return 2===r};this.isContentLoading=function(){return 3===r};this.setContentLoading=function(){r=3};this.isContentLoaded=function(){return 4===r};this.setContentLoaded=function(){r=4};this.isDirty=function(){return 0<p.length};this.lock=function(a){a||(a=10);b<a&&(b=a);return this};this.unlock=function(a){a||(a=10);b<=a&&(b=-1);return this};this.isLocked=function(){return-1!==
b};this._trap={isElContained:function(a){return this.$popover[0].contains(a)}.bind(this),moveFocus:function(){this.getFirstTabbable().focus()}.bind(this)};this.typeSpecificFunctions=g;this.attrs(a);c.extend(this,this.attributes)}function g(a){var d=a.$popover.find('[data-action\x3d"a-popover-close"]');a=a.$popover.find(".a-popover-inner").find("a, button, input:not([type\x3d'hidden']), select, textarea, [tabindex]:not([tabindex\x3d'-1'])").not('[data-action\x3d"a-popover-close"]').not(".a-dropdown-link").filter(":visible");
return d.add(a)}var d,f=c.$,q=f("#a-page"),t={name:!0,url:!0,content:!0,width:!0,height:!0,"max-width":!0,"max-height":!0,"min-width":!0,"min-height":!0},r=c.capabilities.mobile,u=r||c.capabilities.tablet,C=r&&p.isIE10Plus,n=f("html").hasClass("a-lt-ie9"),w=function(a){this.$popover.css({visibility:"visible"}).removeClass("a-popover-hidden");this.attrs("focusWhenShown")&&"ajax"!==this.attrs("currentDataStrategy")&&this.focus();a.call(this)},A=function(a){this.$popover.hide().find(".a-lgtbox-vertical-scroll").removeClass("a-lgtbox-vertical-scroll");
a.call(this)},y=function(){var a=this.typeSpecificFunctions;return a.skin!==d?a.skin(this):""};r=a.prototype;r.getDataStrategy=function(a){var d=this.typeSpecificFunctions;a||this.attrs("currentDataStrategy")||(a=this.attrs());a&&(a=a.dataStrategy?b.getStrategyByName(a.dataStrategy):b.guessStrategyByAttrs(a))&&(d.dataStrategy=a,this.attrs("currentDataStrategy",a.name));return d.dataStrategy};r.getContent=function(){return this.typeSpecificFunctions.getContent!==d?this.typeSpecificFunctions.getContent.apply(this,
arguments):null};r.updateContent=function(a){this.typeSpecificFunctions.updateContent!==d&&this.typeSpecificFunctions.updateContent.apply(this,arguments);return this};r.setAriaBusy=function(a){this.typeSpecificFunctions.setAriaBusy!==d&&this.typeSpecificFunctions.setAriaBusy.apply(this,arguments);return this};r.ajax=function(a){return this.update({url:a})};r.updateChildrenPosition=function(){c.each(this.children,function(a){a.isActive()&&a.updatePosition()});return this};r.updatePosition=function(){var a=
this;if(-1===a.id)c.each(a.children,function(a){a.isActive()&&a.updatePosition()});else{if(this.typeSpecificFunctions.updatePosition!==d)return this.typeSpecificFunctions.updatePosition.apply(this,arguments),c.each(a.children,function(a){a.isActive()&&a.updatePosition()}),a;var g=a.$popover;p.isMetroIEGuess&&p.isIETouchCapable?g.css("opacity",.01):g.css("visibility","hidden");var b=function(){var d=g.find(".a-popover-inner").css({height:"auto","overflow-y":"auto"});"dropdown"===a.type&&a.maxHeight&&
d.css({maxHeight:a.maxHeight});var b=a.attrs("position"),l={};l=a.typeSpecificFunctions.positionStrategy?m.customPosition(a,a.typeSpecificFunctions.positionStrategy):m[b](a);h.trigger("beforeUpdatePosition",a);b={top:l.top+"px",left:l.left+"px"};p.isMetroIEGuess&&p.isIETouchCapable?b.opacity=1:b.visibility="visible";g.css(b);a.isContentLoaded()&&0===f(document.activeElement).closest(a.$popover).length&&!0===a.attrs("focusWhenShown")&&a.focus();if(d.length&&(!d[0].style.height||"auto"===d[0].style.height)){l=
g.outerHeight()||0;var k=g.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,q=g.find(".a-popover-footer").outerHeight(!0)||0;b=d.outerHeight()||0;l=l-k-q;b>l&&d.css({height:l+"px","overflow-y":"scroll"})}h.trigger("afterUpdatePosition",a);h.trigger("positionUpdated",a);c.each(a.children,function(a){a.isActive()&&a.updatePosition()})};a.attrs("immersive")&&u?(g.css({top:0,left:0}),c.delay(function(){b()},0)):b()}return a};r.attrs=function(a,f){var g=this;if(f===d&&"object"!==
typeof a)return a?"string"===typeof a?this.attributes[a]!==d?this.attributes[a]:null:null:this.attributes;"object"===typeof a?c.each(a,function(a,d){g.attrs(d,a)}):"string"===typeof a&&(this.attributes[a]=f,g[a]=f);return this};r.hideChildren=function(){c.each(this.children,function(a){a.unlock(1);a.hide()});return this};r.getFirstTabbable=function(){return g(this).first()};r.getLastTabbable=function(){return g(this).last()};r.focus=function(){var a=this,d=f(v),g=d.scrollTop(),b=a.$popover.offset().top;
C&&g>b&&d.scrollTop(b);c.delay(function(){a.getFirstTabbable().focus()},0);return this};return{PopoverClass:a}});"use strict";n.when("jQuery","ready").register("a-changeover",function(c){c(document).delegate(".a-changeover:not(.a-changeover-manual)","webkitAnimationEnd animationend click touchstart",function(c){this.style.display="none"})});"use strict";n.when("A").register("a-dropdown-base-positions",function(c){return{positionStrategy:function(e){var h=e.$popover,b=e.$trigger,m=e.measure;e=h.find(".a-popover-inner");
e.css({"min-width":"0px",width:"auto",height:"auto"});var k=b.nextAll(".a-button-dropdown");k.length||(k=b.closest(".a-button-group"));b=m(h,k);m=b.windowWidth-(b.triggerLeft+b.popoverWidth);k=b.windowWidth-b.triggerLeft-b.triggerWidth;var l=b.triggerLeft,p={},a=b.triggerTop-b.windowTop,g=b.windowBottom-b.triggerBottom,d=h.find(".a-popover-inner");a>g&&g<b.popoverHeight?(g=a,p.top=a<b.popoverHeight?b.triggerBottom-a:b.triggerBottom-b.popoverHeight):p.top=b.triggerTop;d.css("height",g<b.popoverHeight?
g-b.headerHeight+"px":"auto");b.popoverHeight>g?d.addClass("a-lgtbox-vertical-scroll"):d.removeClass("a-lgtbox-vertical-scroll");e.hasClass("a-lgtbox-vertical-scroll")&&-1<navigator.appVersion.indexOf("Windows")?(a=Math.max(b.popoverWidth,b.triggerWidth)+c.scrollBarWidth(!0),e.width(a)):e.css("min-width",b.triggerWidth+"px");b.popoverWidth=h.width();p.left=50>m&&l>k?b.triggerRight-b.popoverWidth:b.triggerLeft;0>p.left&&(p.left=0);return p}}});"use strict";n.when("A","a-dropdown-base-positions").register("a-dropdown-base-view-base",
function(c,e){return c.extend(e,{updateContent:function(c){"string"===typeof c?this.$popover.find(".a-popover-inner").html(c):c&&this.$popover.find(".a-popover-inner").html("").append(c)},beforeShowMethod:function(){this.parent.lock(1);"combobox"===this.$trigger.attr("role")&&this.$trigger.attr("aria-expanded",!0)},afterShowMethod:function(){var h=this.$popover,b=h.find(".a-active");c.delay(function(){b.length?b.closest("li").focus():b=h.find("li").first().focus()},0)},beforeHideMethod:function(){this.parent.unlock(1)},
afterHideMethod:function(){"combobox"===this.$trigger.attr("role")&&this.$trigger.attr("aria-expanded",!1);this.$popover.css("width","auto")}})});"use strict";n.when("A","a-dropdown-base-view-base").register("a-dropdown-base-view",function(c,e){return e});"use strict";n.when("A","a-popover-base-factory","a-dropdown-base-view").register("a-dropdown-base-factory",function(c,e,h){function b(a,g,d){var f=['\x3cli tabindex\x3d"0" role\x3d"option"'],b=a.data("aCssClass"),k=a.data("aId"),h=a.data("aHtmlContent"),
p=a.data("aImageSource"),e=JSON.stringify({stringVal:a.val()});e=['\x3ca tabindex\x3d"-1" href\x3d"javascript:void(0)" aria-hidden\x3d"true" data-value\x3d"',c.escapeHtml(e),'"'];var m=["a-dropdown-link"],n=["a-dropdown-item"];g?(m.push("a-active"),f.push(' aria-selected\x3d"true"')):f.push(' aria-selected\x3d"false"');l&&(c.capabilities.mobile||c.capabilities.tablet)&&m.push("a-list-link-after-group");l=!1;b&&n.push(b);k&&f.push(' id\x3d"'+k+'"');f.push('aria-labelledby\x3d"');f.push(d);f.push('"');
e.push(' id\x3d"');e.push(d);e.push('"');f.push(' class\x3d"'+n.join(" ")+'"');f.push("\x3e");h?g=h:(g=[],p&&(m.push("a-option-has-image"),g.push('\x3cimg src\x3d"'+p+'" class\x3d"a-rich-option-image" /\x3e')),g.push(a.html()),g=g.join(""));e.push(' class\x3d"');e.push(m.join(" "));e.push('"\x3e');e.push(g);e.push("\x3c/a\x3e");f.push(e.join(""));f.push("\x3c/li\x3e");return f.join("")}function m(a){a.jquery||(a=k(a));var g=a.children("optgroup,option:not(.a-prompt)"),d=!1,f=a[0],c=a.attr("id")?a.attr("id"):
"dropdown"+p++;if(-1<f.selectedIndex)var h=f.options[f.selectedIndex].value;var e=['\x3cul tabindex\x3d"-1" class\x3d"a-nostyle a-list-link',a.data("a-has-images")?" a-box-list":"",'" role\x3d"listbox" aria-multiselectable\x3d"false"\x3e'];var m=0;g.each(function(){var a=k(this);a.is("optgroup")?(a.children().each(function(a){e.push(b(k(this),h===this.value,c+"_"+m++))}),e.push('\x3cli tabindex\x3d"-1" class\x3d"divider"\x3e\x3chr /\x3e\x3c/li\x3e'),d=l=!0):(e.push(b(a,h===this.value,c+"_"+m++)),
d=!1)});d&&e.pop();e.push("\x3c/ul\x3e");return e.join("")}var k=c.$,l=!1,p=1;return c.extend({create:e.create,remove:e.remove,get:e.get},{type:"dropdown",create:function(a,g,d){var f=g.$button,b=g.$sourceSelect,l=b[0],k=f.find(".a-dropdown-label"),p=b.data("aTouchHeader");if(!p||!p.length&&k.length)p=k.text();k=b.data("a-max-height");return e.create(a,{attributes:{type:"dropdown",header:p,closeButtonLabel:g.closeButtonLabel?g.closeButtonLabel:"Close",inlineContent:b,position:g.position,maxHeight:k,
alone:!0,sourceSelect:b,sourceButton:f,name:b[0].name,preventNameReuse:!0,lightboxOptions:c.capabilities.mobile||c.capabilities.tablet?{showDuration:c.capabilities.ios?null:0,hideDuration:0}:null},typeSpecificFunctions:c.extend({},h,d,{skin:function(a){var f=d.subskin?d.subskin(l):m(l);a.attrs("inlineContent",f);return d.skin(a)}}),actionCheck:!1})}})});"use strict";"use strict";n.when("A","a-dropdown-base-factory").register("a-dropdown-keyboard-handlers",function(c,e){function h(a){a.removeData("a-user-navigated-text").removeData("a-user-navigated-idx")}
function b(a,d){a.removeAttr("aria-selected");"option"===d.attr("role")&&d.attr("aria-selected","true");d.focus()}function m(a){var d=a.parent("ul");a=d.find("li");var f=d.find(":focus");1>f.length&&(f=d.find('[aria-selected\x3d"true"]'));d=f;return{index:0<d.length?d.index():0,$options:a}}function k(a,d,f){a.preventDefault();d.find("a").eq(0).trigger("click");h(f)}function l(a){var d=a.data("a-user-navigated-debouncer");d||(d=c.debounce(function(){h(a)},1E3),a.data("a-user-navigated-debouncer",d));
d()}var p=c.$,a=c.constants.keycodes;return{keyDown:function(g){var d=p(this),f=d.parent();switch(g.which){case a.UP_ARROW:g.preventDefault();h(f);0<m(d).index&&b(d,d.prev());break;case a.DOWN_ARROW:g.preventDefault();h(f);f=m(d);g=f.index;0<=g&&g+1<f.$options.length&&b(d,d.next());break;case a.ENTER:k(g,d,f);break;case a.ESCAPE:g.preventDefault();d=e.get(d.closest(".a-popover"));d.sourceButton.find(".a-button-text").focus();d.hide();h(f);break;case a.SPACE:f.data("a-user-navigated-text")||k(g,d,
f);break;case a.TAB:h(f);break;case a.BACKSPACE:g.preventDefault()}},keyPress:function(b){var d=p(this),f=d.parent(),g=e.get(d.closest(".a-popover")),h=b.which;if(g&&g.isActive()&&h!==a.TAB&&0!==h){l(f);var m=f.data("a-user-navigated-idx")||0;if(!(0>m)){g=(f.data("a-user-navigated-text")||"")+String.fromCharCode(h).toLocaleLowerCase();f.data("a-user-navigated-text",g);for(var u=f.children();m<u.length;m++){var n=u.eq(m);if(0===c.trim(n.text().toLocaleLowerCase()).indexOf(g)){n.focus();f.data("a-user-navigated-idx",
m);return}}f.data("a-user-navigated-idx",-1);h===a.SPACE&&k(b,d,f)}}}}});"use strict";n.when("A","a-dropdown-select-apis","a-dropdown-base-factory","a-popover-base").register("a-dropdown-base",function(c,e,h,b){function m(b,d,f){try{var g=b.$event||b;g.preventDefault?g.preventDefault():g.returnValue=!1}catch(r){}var k=b.$declarativeParent?b.$declarativeParent:a(b.currentTarget);c.delay(function(){var g=d.$button?d.$button:d.getButtonFromEvent(b),e=d.$select?d.$select:d.getSelectFromEvent(b);if(!g.hasClass("a-button-disabled")){p(e,
d).isSynced()||l(a.extend({$button:g,$select:e},d));e=c.extend({},d,{$button:g,$sourceSelect:e});var q=h.create(k,e,f);if(q&&(q.show(),g.data("a-popover-id",q.id).data("popover",q).data("isPressed",!0),g.find("button[role\x3d'combobox']").attr("aria-controls",q.$popover.attr("id")),!q.hasOnLoad)){q.hasOnLoad=!0;var t=[];g=q.$popover.find("img");g.length&&(g.each(function(d,f){if(!f.complete||!f.naturalWidth){var b=a.Deferred();t.push(b);a(f).bind("load error",function(){b.resolve()})}}),t.length?
a.when.apply(a,t).done(function(){q.updatePosition()}):q.updatePosition())}}})}function k(a){var d=a.$button;a=a.$select;d||(d=a.nextAll(".a-button-dropdown"));return a.length?((d=h.get(d))&&d.hide(),!0):!1}function l(a){var d=a.$button;a=a.$select;d||(d=a.nextAll(".a-button-dropdown"));return a.length?((d=h.get(d))&&h.remove(d.id),a.data("a-info",null),!0):!1}function p(b,d){b=d.$select?d.$select:"string"===typeof b?a("select#"+b):b.jquery?b:a(b);if(!b.length)return null;var f=d.$button?d.$button:
d.getButtonFromSelect(b);b.data("a-select")?d=b.data("a-select"):(d=c.extend({hidePopover:k,refreshPopover:l,options:c.extend({$select:b,$button:f},d)},e),b.data("a-select",d));return d}var a=c.$;return{toggleDropdown:function(a,d){var f=(d.$button?d.$button:d.getButtonFromEvent(a)).data("popover");f&&f.$popover.is(":visible")?f.hide():m(a,d)},showDropdown:m,getSelect:p}});"use strict";n.when("A","jQuery").register("a-dropdown-options-apis",function(c,e){return{update:function(c){"object"!==typeof c&&
n.error("input of options.update() function must be a hash");this.hidePopover(this.options);for(var b=0,h=this.size();b<h;b++){var k=this.options.elements[b],l=k[0];c.value&&k.val(c.value);void 0!==c.selected&&(!l.selected&&c.selected?this.options.$select.val(l.value):l.selected&&!c.selected&&this.options.$select.val(""));c.html_content&&k.data("a-html-content",c.html_content);c.image_source&&k.data("a-image-source",c.image_source);c.native_css_class&&(l.className=c.native_css_class);c.css_class&&
k.data("a-css-class",c.css_class);c.native_id&&(l.id=c.native_id);c.id&&k.data("a-id",c.id);c.text&&(k.text(c.text),l.selected&&this.setSelectValue(l.value))}this.refreshPopover(this.options);return this},remove:function(){this.hidePopover(this.options);for(var c=0,b=this.size();c<b;c++){var e=this.options.elements[c];e.is(":selected")&&this.setSelectValue("");e.remove()}this.refreshPopover(this.options);return!0},info:function(){for(var c=[],b=0,e=this.size();b<e;b++){var k=this.options.elements[b];
c.push({value:k[0].value,text:k.text(),selected:k[0].selected,html_content:k.data("a-html-content"),image_source:k.data("a-image-source"),native_css_class:k[0].className,css_class:k.data("a-css-class"),native_id:k[0].id,id:k.data("a-id")})}return c},size:function(){return this.options.elements.length}}});"use strict";n.when("A","jQuery","a-dropdown-options-apis").register("a-dropdown-select-apis",function(c,e,h){function b(b){var c=this.options.$select,a=this.options.$button,g=c[0];"number"===typeof b&&
(b=b.toString());for(var d=0,f=g.options.length;d<f&&g.options[d].value!==b;d++);d===f&&""===b&&(d=0);d<f&&(a.find(".a-dropdown-prompt").html(g.options[d].innerHTML),a.css("min-width",d/g.options.length+"%"),c.val()!==b&&(c.val(b),c.trigger("change",[k,!0])));return this}function m(c){if(c===k)return this.options.$select.val();this.setValue=b;return this.setValue(c)}var k;return{isSynced:function(){var b=this.options.$select,k=b.data("a-info"),a=this.getOptions().info();b.data("a-info",a);return k?
c.equals(k,a):!0},update:function(b){"object"!==typeof b&&n.error("input of select.update() function must be an object");this.hidePopover(this.options);var c={none:!0,micro:!0,mini:!0,small:!0,base:!0,medium:!0,large:!0,"extra-large":!0,"double-large":!0,block:!0},a=this.options.$select,g=a[0],d=this.options.$button,f=d[0],l=a.siblings("label");b.name&&(g.name=b.name);if(b.option_prompt){var h=a.find(".a-prompt");h.length?(h.text(b.option_prompt),h.prop("selected")&&d.find(".a-dropdown-prompt").text(b.option_prompt)):
(a.prepend(e("\x3coption class\x3d'a-prompt' /\x3e").text(b.option_prompt)),d.find(".a-dropdown-prompt").text(b.option_prompt))}b.has_images!==k&&a.data("a-has-images",!!b.has_images);b.button_size!==k&&d.length&&("small"===b.button_size?d.addClass("a-button-small"):d.removeClass("a-button-small"));b.spacing!==k&&c.hasOwnProperty(b.spacing)&&(c=/\ba-spacing-[a-z]+\b/g,g.className=g.className.replace(c,""),f.className=f.className.replace(c,""),a.addClass("a-spacing-"+b.spacing),d.addClass("a-spacing-"+
b.spacing));b.grid_units!==k&&(c=/\ba-button-span\d{1,2}\b/g,g.className=g.className.replace(c,""),f.className=f.className.replace(c,""),isFinite(b.grid_units)&&0<b.grid_units&&13>b.grid_units&&(a.addClass("a-button-span"+b.grid_units),d.addClass("a-button-span"+b.grid_units)));b.width_name&&("base"===b.width_named?d.addClass("a-button-width-normal"):d.removeClass("a-button-width-normal"));if(b.status){var m=b.status;c=d.closest(".a-dropdown-container, .a-splitdropdown-container").find(".a-button");
h="error"===m;m="disabled"===m;g.disabled=m;c.toggleClass("a-button-disabled",m);e(g).hasClass("a-native-splitdropdown")?m?c.find("button.a-button-text").attr("aria-disabled","true").parents(".a-button-splitdropdown").find("button.a-button-text").removeAttr("role"):c.find("button.a-button-text").removeAttr("aria-disabled").parents(".a-button-splitdropdown").find("button.a-button-text").attr("role","combobox"):m?c.attr("aria-disabled","true"):c.removeAttr("aria-disabled");c.toggleClass("a-button-error",
h)}b.native_id&&(g.id=b.native_id,l.length&&(l[0].htmlFor=b.native_id));b.id&&(f.id=b.id);b.native_css_class&&((f=a.data("a-native-class"))&&a.removeClass(f),a.addClass(b.native_css_class).data("a-native-class",b.native_css_class));b.css_class&&((f=d.data("a-class"))&&d.removeClass(f),d.addClass(b.css_class).data("a-class",b.css_class));b.label_text!==k&&(""===b.label_text?(d.find(".a-dropdown-label").remove(),a.siblings("label").remove()):(f=d.find(".a-dropdown-label"),f.length?f.text(b.label_text):
d.find(".a-dropdown-prompt").before(e("\x3cspan class\x3d'a-dropdown-label' /\x3e").text(b.label_text)),l.length?l.text(b.label_text):a.before(e("\x3clabel for\x3d'"+g.id+"' class\x3d'a-native-dropdown' /\x3e").text(b.label_text))),d.css("min-width",""===b.label_text?"0.1%":"0%"));this.refreshPopover(this.options);return this},setValue:b,val:m,getOptions:function(b){var l=this.options.$select,a=[];b=b===k?l.children("optgroup, option:not(.a-prompt)"):e.isArray(b)?b:[b];for(var g=0,d=b.length;g<d;g++){var f=
b[g],q=[];c.isFiniteNumber(f)?q=l.children("optgroup, option:not(.a-prompt)").eq(f):"string"===typeof f?q=l.children("option#"+f):"object"===typeof f&&(q=f.jquery?f:e(f));q.length&&a.push(q)}return c.extend({hidePopover:this.hidePopover,refreshPopover:this.refreshPopover,setSelectValue:m,options:c.extend({elements:a},this.options)},h)},getOption:function(b){return this.getOptions(b)},addOptions:function(b,c){e.isArray(b)||(b=[b]);for(var a=b.length;a--;)this.addOption(b[a],c);return this},addOption:function(b,
c){var a=this.options.$select;if(!b.native_id||!a.find("option#"+b.native_id).length){var g=a.children("optgroup, option:not(.a-prompt)"),d=document.createElement("option");c=c&&0<c&&c<=g.length?c:0;b.native_id&&(d.id=b.native_id);0===g.length||c===g.length?a[0].appendChild(d):g.eq(c).before(d);this.getOption(d).update(b)}return this},removeOptions:function(b){this.getOptions(b).remove();return this},removeOption:function(b){return this.removeOptions(b)},appendOption:function(b){return this.addOption(b,
this.options.$select.children("optgroup, option:not(.a-prompt)").length)},appendOptions:function(b){if(e.isArray(b))for(var c=0,a=b.length;c<a;c++)this.addOption(b[c]);return this}}});"use strict";n.when("A","a-dropdown-options","a-dropdown-apis","a-dropdown-keyboard-handlers","a-analytics").register("a-dropdown",function(c,e,h,b,m){var k=c.$,l=k(document);c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var b=l.find("select.a-native-dropdown").not("[tabindex\x3d0]"),a=b.length;a&&(b.next(".a-button-dropdown").attr("aria-hidden",
!0).find(".a-button-text").removeAttr("tabindex"),m.count("dropdown:usage",a),b.attr("tabindex",0))});l.delegate(".a-native-dropdown","change",function(b,a,g){var d=e.getButtonFromEvent(b),f="",l=-1<this.selectedIndex?this.options[this.selectedIndex].value:"",t=d.data("popover");b=!1;if(d.length){d=d.eq(0);for(var m=this.length;m--;){var p=this.options[m];if(p.value===l){f=p.innerHTML;break}}t&&t.$popover&&(t.$popover.find(".a-active").removeClass("a-active").closest("li").attr("aria-selected",!1),
void 0===a&&(a=JSON.stringify({stringVal:l}),a=t.$popover.find('a[data-value\x3d"'+c.escapeJquerySelector(a)+'"]')));a&&a.length&&(b=!0,a.addClass("a-active").closest("li").attr("aria-selected",!0));d.find(".a-dropdown-prompt").html(f);d.css("min-width",this.selectedIndex/this.options.length+"%");t&&(t.hide(),(d=h.getSelect(this))&&k(this).data("a-info",d.getOptions().info()));g||(g=this.name,d=this.id,a={auiItemNode:b?a[0]:null,nativeItemNode:this.options[this.selectedIndex],selectNode:this,id:d,
name:g,value:this.value},g&&""!==g&&(c.trigger("a:dropdown:"+g+":select",a),c.trigger("a:dropdown:selected:"+g,a)),d&&""!==d&&c.trigger("a:dropdown:"+d+":select",a),c.trigger("a:dropdown:select",a))}});l.delegate(".a-button-dropdown:not(.a-button-disabled)","focusin",function(){k(this).find(".a-button-text").focus()});l.delegate("select.a-native-dropdown","focusin",function(){var b=k(this).closest(".a-dropdown-container").find(".a-button-dropdown");b.hasClass("a-button-disabled")||b.addClass("a-button-focus")}).delegate("select.a-native-dropdown",
"focusout",function(){k(this).closest(".a-dropdown-container").find(".a-button-dropdown").removeClass("a-button-focus")});return h});"use strict";n.when("A","a-dropdown-base","a-dropdown-options").register("a-dropdown-apis",function(c,e,h){function b(b){return e.getSelect(b,h)}var m=c.$;c.on("beforeReady",function(){m(".a-dropdown-container select").each(function(){var c=b(this);c&&c.val(c.val())})});return{getSelect:b,updateOption:function(c,e){var k=m("option#"+c).closest("select");b(k).getOption(c).update(e)},
updateSelect:function(c,e){b(c).update(e)},setValue:function(c,e){b(c).setValue(e)}}});"use strict";n.when("A","a-popover-accessibility").register("a-dropdown-view",function(c,e){return{skin:function(c){var b=c.attrs("header")||"";c={id:c.id,header_str:b,needs_declarative:!1};return['\x3cdiv class\x3d"a-popover a-dropdown a-dropdown-common a-declarative" aria-modal\x3d"true" data-action\x3d"a-popover-a11y"\x3e',e.getStartAnchorHtml(c),'\x3cdiv class\x3d"a-popover-wrapper"\x3e\x3cdiv class\x3d"a-popover-inner"\x3e\x3c/div\x3e\x3c/div\x3e',
e.getEndAnchorHtml(c),"\x3c/div\x3e"].join("")}}});"use strict";n.when("A").register("a-dropdown-options",function(c){function e(b){return b.nextAll(".a-button-dropdown")}var h=c.$;return{getSelectFromButton:function(b){return b.closest(".a-button-dropdown").prevAll("select.a-native-dropdown")},getButtonFromEvent:function(b){return b.popover?b.popover.$trigger.nextAll(".a-button-dropdown"):b.$target?e(b.$target):h(b.target).nextAll(".a-button-dropdown")},getButtonFromSelect:e,getSelectFromEvent:function(b){b=
h(b.target);b.length||n.error("Cannot locate the \x3cselect\x3e of dropdown");return b},triggerSelector:".a-button-dropdown"}});"use strict";n.when("A","a-popover-accessibility").register("a-dropdown-split-view",function(c,e){return{skin:function(c){var b=c.attrs("header")||"";c={id:c.id,label_str:b,needs_declarative:!1};return['\x3cdiv class\x3d"a-popover a-splitdropdown a-dropdown-common a-declarative" aria-modal\x3d"true" data-action\x3d"a-popover-a11y"\x3e',e.getStartAnchorHtml(c),'\x3cdiv class\x3d"a-popover-wrapper"\x3e\n\x3cdiv class\x3d"a-popover-inner"\x3e\x3c/div\x3e\n\x3c/div\x3e',
e.getEndAnchorHtml(c),"\x3c/div\x3e"].join("\n")}}});"use strict";n.when("A","a-dropdown-base","a-dropdown-split-utils","a-dropdown-split-view","a-dropdown-split-options","a-dropdown-base-factory","a-dropdown-keyboard-handlers").register("a-dropdown-split-handlers",function(c,e,h,b,m,k,l){var p=c.$;c.declarative("a-splitdropdown-button","click",function(a){var g=m.getButtonFromEvent(a);e.showDropdown(a,c.extend({$button:g},m),b)});c.declarative("a-splitdropdown-main","click",function(a){var b=a.$target.closest(".a-splitdropdown-container").find("select"),
d=b.attr("id"),c=b.val();h.triggerEvent(d,b,c);a.$event.preventDefault()});c.declarative("a-splitdropdown-button","keydown",function(a){var g=m.getButtonFromEvent(a),d=c.constants.keycodes,f=a.$event.which;f!==d.DOWN_ARROW&&f!==d.ENTER&&f!==d.SPACE||e.showDropdown(a,p.extend({$button:g},m),b)});p(document).delegate(".a-popover.a-splitdropdown a","click",function(a){var b=p(this),d=b.data("value").stringVal;b=k.get(b.closest(".a-popover"));var c=b.sourceSelect,e=c.attr("id");b.hide();h.triggerEvent(e,
c,d);a.preventDefault()}).delegate(".a-splitdropdown li","keydown",l.keyDown).delegate(".a-splitdropdown li","keypress",l.keyPress)});"use strict";n.when("A").register("a-dropdown-split-options",function(c){function e(b){return b.popover?b.popover.$trigger.closest(".a-button-splitdropdown"):b.$target?b.$target.closest(".a-button-splitdropdown"):h(b.target).nextAll(".a-button-splitdropdown")}var h=c.$;return{getButtonFromEvent:e,getButtonFromSelect:function(b){return b.next(".a-button-group-splitdropdown").find(".a-button-splitdropdown")},
getSelectFromEvent:function(b){b=e(b).closest(".a-splitdropdown-container").find("select");b.length||n.error("cannot locate the \x3cselect\x3e of the split dropdown");return b}}});"use strict";n.when("A").register("a-dropdown-split-utils",function(c){return{triggerEvent:function(e,h,b){h={$select:h,value:b,id:e};c.trigger("a:splitdropdown:"+e+":select",h);c.trigger("a:splitdropdown:select",h)}}});"use strict";n.when("A","a-dropdown-base","a-dropdown-split-options","a-dropdown-split-utils","a-dropdown-split-handlers",
"a-analytics").register("a-splitdropdown",function(c,e,h,b,m,k){var l=c.$,p=l(document);c.on("a:pageUpdate beforeReady",function(){if((c.capabilities.mobile||c.capabilities.tablet)&&!c.capabilities.touchScrolling){p.find("select.a-native-splitdropdown").removeAttr("tabindex").removeAttr("aria-hidden");var a=p.find(".a-splitdropdown-container label.a-native-dropdown");c.each(a,function(a){l(a).attr("for",l(a).nextAll("select.a-native-splitdropdown").attr("id")||"")})}});p.delegate(".a-native-splitdropdown",
"change",function(a,c,d){a=l(this);c=a.val();var f=a.attr("id");d||b.triggerEvent(f,a,c)}).delegate(".a-button-splitdropdown:not(.a-button-disabled)","focusin",function(){l(this).find(".a-button-text").focus()});c.on("beforeReady a:pageUpdate a:ajax:complete",function(){var a=p.find(".a-button-group-splitdropdown .a-button-disabled");a.attr("aria-disabled")&&(k.count("splitdropdown:usage",a.length),a.removeAttr("aria-disabled").find(".a-button-text").attr("aria-disabled",!0).removeAttr("role"))});
return{getSelect:function(a){return e.getSelect(a,h)}}});"use strict";n.when("A","a-popover-accessibility-templates").register("a-popover-accessibility",function(c,e){var h=e.startAnchorTemplate,b=e.startAnchorDeclarativeTemplate,m=e.endAnchorTemplate,k=e.descriptionTemplate,l=e.offscreenDescriptionTemplate,p=e.labelTemplate,a=e.offscreenStartTemplate,g=function(a,b){var d={"{{DESCRIPTION}}":b,"{{DESCRIPTION_ID}}":a};return k.replace(/\{\{[\w_]*\}\}/g,function(a){return d[a]})},d=function(a){return(a=
a.label_str)?'aria-label\x3d"'+a+'"':""},f=function(a,b){var d={"{{DESCRIPTION}}":b,"{{DESCRIPTION_ID}}":a};return l.replace(/\{\{[\w_]*\}\}/g,function(a){return d[a]})};return{getAriaLabel:d,getAriaLabelledByDescribedby:function(a){var b=a.id,d=a.header_str,c=a.aria_description,f="";a.label_str?f='aria-labelledby\x3d"a-popover-label-'+b+'"':d&&(f='aria-labelledby\x3d"a-popover-header-'+b+'"');c&&(f+=' aria-describedby\x3d"a-popover-aria-description-'+b+'"');return f},getPopoverLabelHtml:function(a){var b=
"",d=a.id;if(a=a.label_str){var c={"{{LABEL}}":a,"{{LABEL_ID}}":"a-popover-label-"+d};b=p.replace(/\{\{[\w_]*\}\}/g,function(a){return c[a]})}return b},getStartAnchorHtml:function(a){var f=a.id,k=a.label_str,e=a.aria_description,l="";if(!f)return"";var q={"{{ROLE}}":'role\x3d"dialog"',"{{ANCHOR_NAME}}":"a-popover-start","{{ARIA_LABEL}}":d(a),"{{LABEL_STR}}":k||"","{{ARIA_DESCRIBEDBY}}":""};a=a.needs_declarative?b:h;e&&(f="a-popover-aria-description-"+f,q["{{ARIA_DESCRIBEDBY}}"]='aria-describedby\x3d"'+
f+'"',l=g(f,e));c.capabilities.ios&&(q["{{ROLE}}"]="");a=a.replace(/\{\{[\w_]*\}\}/g,function(a){return q[a]})+l;return a.replace(/\s\s>|\s>/g,"\x3e")},getEndAnchorHtml:function(a){return m},getDescription:function(a){var b="",d=a.id;(a=a.aria_description)&&(b=f("a-popover-aria-description-"+d,a));return b},getStartAnchorSimplifiedHtml:function(){return a}}});"use strict";n.declare("a-popover-accessibility-templates",{startAnchorTemplate:'\x3cspan tabindex\x3d"0" role\x3d"dialog" class\x3d"{{ANCHOR_NAME}} a-popover-a11y-offscreen" {{ARIA_LABEL}} {{ARIA_DESCRIBEDBY}}\x3e\x3c/span\x3e',
startAnchorDeclarativeTemplate:'\x3cspan tabindex\x3d"0" role\x3d"dialog" data-action\x3d"a-popover-a11y" class\x3d"{{ANCHOR_NAME}} a-popover-a11y-offscreen a-declarative" {{ARIA_LABEL}} {{ARIA_DESCRIBEDBY}}\x3e{{LABEL_STR}}\x3c/span\x3e',endAnchorTemplate:'\x3cspan tabindex\x3d"0" class\x3d"a-popover-end a-popover-a11y-offscreen"\x3e\x3c/span\x3e',descriptionTemplate:'\x3cspan id\x3d"{{DESCRIPTION_ID}}" class\x3d"a-popover-a11y-offscreen"\x3e{{DESCRIPTION}}\x3c/span\x3e',offscreenDescriptionTemplate:'\x3cspan id\x3d"{{DESCRIPTION_ID}}" class\x3d"a-popover-a11y-offscreen" aria-hidden\x3d"true"\x3e{{DESCRIPTION}}\x3c/span\x3e',
labelTemplate:'\x3cspan id\x3d"{{LABEL_ID}}" class\x3d"a-popover-a11y-offscreen" aria-hidden\x3d"true"\x3e{{LABEL}}\x3c/span\x3e',offscreenStartTemplate:'\x3cspan tabindex\x3d"0" class\x3d"a-popover-start a-popover-a11y-offscreen"\x3e\x3c/span\x3e'});"use strict";n.when("A","a-popover-util").register("a-popover-ajax",function(c,e){return{update:function(c,b,e){var k={};k.url=b;e.timeout&&(k.timeout=e.timeout);e.ajaxFailMsg&&(k.ajaxFailMsg=e.ajaxFailMsg);e.cache&&(k.cache=e.cache);c.update(k)},showSpinner:function(c){return e.showSpinner(c)}}});
"use strict";n.when("A").register("a-popover-animate",function(c){function e(b,e){return function(){c[b].apply(c,e)}}function h(b,c){return function(){b._isAnimating=!1;c&&c()}}return{isAnimating:function(b){return b._isAnimating},animate:function(b,m,k,l,p){b._isAnimating=0<k;c.animationFrameDelay(e("animate",[b.$popover,m,k,l,h(b,p)]))},fadeOut:function(b,m,k,l){b._isAnimating=0<m;c.animationFrameDelay(e("fadeOut",[b.$popover,m,k,h(b,l)]))},fadeIn:function(b,m,k,l){b._isAnimating=0<m;c.animationFrameDelay(e("fadeIn",
[b.$popover,m,k,h(b,l)]))}}});n.declare("a-popover-lightbox-markup",{id:"a-popover-lgtbox",div:'\x3cdiv id\x3d"a-popover-lgtbox" class\x3d"a-declarative" data-action\x3d"a-popover-floating-close" /\x3e'});"use strict";n.when("A","ready").register("a-popover-navigate",function(c){function e(a){"string"===typeof a&&(k=!0,v.location.hash=a);return v.location.hash||""}var h=c.$;h=h(v);var b=[],m=[],k=!1,l={},p=!1;m.push(e());h.bind("hashchange",function(a){a.preventDefault();p?p=!1:m.push(e());32<=m.length&&
m.shift();k?k=!1:c.trigger("a:popover:navigate",l[m[m.length-1]])});c.on("a:popover:navigate",function(a){a?a.show({preventNavigate:!0}):(a=0<=b.length-1?b[b.length-1]:null)&&a.unlock().hide({preventNavigate:!0})});c.on("a:popover:showNavigable a:popover:showNavigableLegacy",function(a){b.push(a.popover)});c.on("a:popover:hideNavigable a:popover:hideNavigableLegacy",function(a){b.pop()});return{forward:function(a){var b=a.name+"_"+c.now();l["#"+b]=a;e(b)},back:function(){0<m.length&&m.pop();p=!0;
v.history.back()}}});"use strict";n.when("A","prv:a-capabilities").register("a-popover-position",function(c,e){function h(b,f){var d=c.viewport();if(1===c.viewport().zoom)var k={top:0,left:0};else p||(p=l('\x3cspan id\x3d"a-popover-offset-tracker"\x3e\x3c/span\x3e'),l("body").prepend(p)),k=p.offset();var e=f.offset(),h=b.offset();if(g){var m=v.pageYOffset-document.documentElement.scrollTop;e.top-=m;h.top-=m}e.top-=k.top;e.left-=k.left;h.top-=k.top;h.left-=k.left;m=f[0].getBoundingClientRect();m=m.right-
m.left;f=f.outerHeight();var n=b.outerWidth(!0),w=b.outerHeight(!0);b=b.find(".a-popover-header");b=b.length?b.outerHeight(!0):0;return{windowWidth:d.width,windowHeight:d.height,windowTop:d.scrollTop,windowLeft:d.scrollLeft,windowRight:d.scrollLeft+d.width,windowBottom:d.scrollTop+d.height,zoomTop:k.top,zoomLeft:k.left,triggerWidth:m+1,triggerHeight:f,triggerTop:e.top-a,triggerLeft:e.left-a,triggerRight:e.left+m+a,triggerBottom:e.top+f+a,triggerVerticalCenter:e.top+f/2,triggerHorizontalCenter:e.left+
m/2,popoverWidth:n,popoverHeight:w,popoverTop:h.top,popoverLeft:h.left,popoverRight:h.left+n,popoverBottom:h.top+w,popoverVerticalCenter:h.top+w/2,popoverHorizontalCenter:h.left+n/2,headerHeight:b}}function b(a){return a.removeClass("a-arrow-top a-arrow-bottom a-arrow-left a-arrow-right")}function m(a){var b={deltaTop:0};b.top=a.triggerVerticalCenter-a.popoverHeight/2;if(b.top<a.windowTop+20){var c=Math.min(a.windowTop+20,a.triggerTop-20);b.deltaTop=b.top-c;b.top=c}else b.top+a.popoverHeight>a.windowBottom-
20&&(c=Math.min(20,a.windowBottom-a.triggerBottom+20),b.deltaTop=b.top+a.popoverHeight-(a.windowBottom-c),b.top=a.windowBottom-c-a.popoverHeight);return b}function k(a){var b={deltaLeft:0};b.left=a.triggerHorizontalCenter-a.popoverWidth/2;if(20>b.left){var c=Math.min(20,a.triggerLeft-20);b.deltaLeft=b.left-c;b.left=c}else b.left+a.popoverWidth>a.windowRight-20&&(c=Math.min(20,a.windowRight-a.triggerRight+20),b.deltaLeft=b.left+a.popoverWidth-(a.windowRight-c),b.left=a.windowRight-c-a.popoverWidth);
return b}var l=c.$;l(v);var p=null,a=1,g=c.capabilities.mobile&&e.isIE10Plus;n.when("prv:skin-vars-desktop").execute(function(b){a=b.popover.POPOVER_SPACING?b.popover.POPOVER_SPACING:a});return{windowCenter:function(a){a=h(a.$popover,a.$trigger);var b={};b.top=(a.windowHeight-a.popoverHeight)/2;b.left=(a.windowWidth-a.popoverWidth)/2;0>b.top&&(b.top=0);return b},windowTop:function(a){a=h(a.$popover,a.$trigger);var b={top:0};b.left=a.windowWidth/2-a.popoverWidth/2;return b},windowFullWidth:function(a){return{top:0,
left:0}},triggerRight:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=h(d,f));f=m(c);f.left=c.triggerRight;a.attrs("popoverArrow")&&(b(d).addClass("a-arrow-right"),d.find(".a-arrow-border").css("top",c.popoverHeight/2+f.deltaTop));return f},triggerLeft:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=h(d,f));f=m(c);f.left=c.triggerLeft-c.popoverWidth;f.left=0<f.left?f.left:0;a.attrs("popoverArrow")&&(b(d).addClass("a-arrow-left"),d.find(".a-arrow-border").css("top",c.popoverHeight/2+f.deltaTop));
return f},triggerTop:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=h(d,f));f=k(c);f.top=c.triggerTop-c.popoverHeight;a.attrs("popoverArrow")&&(b(d).addClass("a-arrow-top"),d.find(".a-arrow-border").css("left",c.popoverWidth/2+f.deltaLeft));return f},triggerBottom:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=h(d,f));f=k(c);f.top=c.triggerBottom;a.attrs("popoverArrow")&&(b(d).addClass("a-arrow-bottom"),d.find(".a-arrow-border").css("left",c.popoverWidth/2+f.deltaLeft));return f},triggerHorizontal:function(a,
b){var c=a.$popover,d=a.$trigger;b||(b=h(c,d));return b.triggerLeft-b.windowLeft>b.windowRight-b.triggerRight?this.triggerLeft(a,b):this.triggerRight(a,b)},triggerVertical:function(a,b){var c=a.$popover,d=a.$trigger;b=b?b:h(c,d);return b.triggerTop-b.windowTop>b.popoverHeight+20?this.triggerTop(a,b):this.triggerBottom(a,b)},triggerVerticalAlignLeft:function(a,c){var d=a.$popover,f=a.$trigger;c||(c=h(d,f));f={};var g=0,k=c.windowBottom-c.triggerBottom;f.left=c.triggerLeft;f.top=k>c.popoverHeight?c.triggerBottom+
3:c.triggerTop-c.popoverHeight-3;if(20>f.left){var e=Math.min(20,c.triggerLeft-20);g=f.left-e;f.left=e}else f.left+c.popoverWidth>c.windowRight-20&&(e=Math.min(20,c.windowRight-c.triggerRight+20),g=f.left+c.popoverWidth-(c.windowRight-e),f.left=c.windowRight-e-c.popoverWidth);a.attrs("popoverArrow")&&(b(d).addClass(k>c.popoverHeight?"a-arrow-bottom":"a-arrow-top"),d.find(".a-arrow-border").css("left",c.triggerWidth/2+g));return f},customPosition:function(a,b){return b.call(this,{popover:a,$popover:a.$popover,
$trigger:a.$trigger,measure:h})}}});"use strict";n.when("A","a-modal-view-base","a-modal-positions","a-popover-accessibility").register("a-modal-view",function(c,e,h,b){var m=c.$;m=m("html").hasClass("a-lt-ie9");return c.extend(e,c.capabilities.touch||c.capabilities.mobile||c.capabilities.tablet||m?h.innerScroll:h.modalScroll,{skin:function(e){var k=e.attrs("id"),h=e.attrs("header")||"",a=e.attrs("hideHeader")||!1,g=e.attrs("footer"),d=e.attrs("modeless")||!1,f=e.attrs("closeButton"),m=e.attrs("closeButtonLabel")||
"",n=e.attrs("hideHeaderCloseButtonLayout")||"",r=e.attrs("popoverLabel")||"",u=e.attrs("padding");e=e.attrs("ariaDescription");e={id:k,header_str:h,label_str:r,aria_description:e};r=b.getDescription(e);var v=b.getPopoverLabelHtml(e);f='\x3cbutton data-action\x3d"a-popover-close" class\x3d"'+(f?"":" a-button-close-a11y")+" a-button-close a-declarative"+(a?f?"top"===n?" a-modal-close-nohead-top":" a-button-top-right":" a-button-a11y-top-right":"")+'" aria-label\x3d"'+m+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';
h=!a||v?"\x3cheader"+(a?"":' class\x3d"a-popover-header"')+"\x3e"+(a?"":'\x3ch4 class\x3d"a-popover-header-content'+(d?" a-popover-draggable-handle":"")+'"'+(""===h?' aria-hidden\x3d"true"':"")+' id\x3d"a-popover-header-'+k+'"\x3e'+h+"\x3c/h4\x3e")+f+v+"\x3c/header\x3e":f;g=g?'\x3cdiv class\x3d"a-popover-footer"\x3e'+g+"\x3c/div\x3e":"";u="none"===u?" a-padding-none":"";a=c.capabilities.isAndroid?"":b.getStartAnchorSimplifiedHtml();f=c.capabilities.isAndroid?"":b.getEndAnchorHtml(e);m=d?"":'\x3cdiv class\x3d"a-modal-scroller a-declarative" data-action\x3d"a-popover-floating-close"\x3e';
e='\x3cdiv class\x3d"a-popover a-popover-modal a-declarative'+(d?" a-modal-modeless":" ")+'" data-action\x3d"a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+b.getAriaLabel(e)+"\x3e";return m+e+a+r+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+h+('\x3cdiv class\x3d"a-popover-inner'+u+'" id\x3d"a-popover-content-'+k+'"\x3e\x3c/div\x3e')+g+"\x3c/div\x3e"+f+"\x3c/div\x3e"+(d?"":"\x3c/div\x3e")}})});"use strict";n.when("A","a-popover-lightbox","a-popover-optional-helpers","prv:a-capabilities").register("a-modal-positions",
function(c,e,h,b){function m(a){var b=a.$popover.closest(".a-modal-scroller");b.scrollTop(0).css("visibility","visible");b.bind("scroll",function(){a.updateChildrenPosition()})}function k(){var a=c.viewport();2<a.width/a.height&&c.delay(function(){document.activeElement.scrollIntoView();v.scrollTo(v.pageXOffset,0)},0)}function l(a,b,c){if(0>a)return c({"padding-right":b+"px","box-sizing":"content-box"}),!0;c({"padding-right":"","box-sizing":""});return!1}function p(a){return function(b){a.css(b)}}
var a=c.$,g=b.isIE10Plus&&c.capabilities.mobile,d=0;n.when("prv:skin-vars").execute(function(a){d=a.popover.optionalButtonHeight});n.declare("prv:a-model-applyHorizonalScrollStyles",l);return{innerScroll:{positionStrategy:function(f){var m=f.popover,n=f.$popover,r=f.$trigger,u=n.find(".a-popover-inner").css("height","auto"),C=n.closest(".a-modal-scroller"),x={},w=c.viewport(!0),A=.1*w.height,y=.05*w.width;w=.8*w.height;var z=m.attrs("height");m=m.attrs("min-height");n.css({height:z?z:"","min-height":m?
m:""});r=f.measure(n,r);x.left=(r.windowWidth-r.popoverWidth)/2;l(x.left,y,p(n))&&(x.left=y);h.evaluateActualHeight(f,r.popoverHeight,d)>w?(m=n.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,z=n.find(".a-popover-footer").outerHeight(!0)||0,f=h.getOffsetTopDelta(f,A,d),w-=f,A+=f,u.css({height:w-m-z+"px","overflow-y":"auto"}),n.css({height:w,"min-height":0}),x.top=A):(x.top=(r.windowHeight-r.popoverHeight)/2,u.css("height","auto"));x.left+=r.zoomLeft;x.top+=r.zoomTop;g&&(C.css("top",
a(v).scrollTop()),n.removeClass("a-popover-pan-y").addClass("a-popover-pan-x"),n=a(document).height(),u=a(document).width(),a("#"+e.LIGHTBOX_ID).css({height:n,width:u>r.popoverWidth?u:r.popoverWidth+y}));b.isMetroIEGuess&&b.isIETouchCapable&&k();return x},beforeShowMethod:c.constants.NOOP,beforeHideMethod:c.constants.NOOP},modalScroll:{positionStrategy:function(a){var d=a.$popover,f=a.$trigger,g=d.closest(".a-modal-scroller"),e=d.find(".a-popover-inner").css("height","auto");if(d.hasClass("a-popover-modal-fixed-height")){var h=
d.find(".a-popover-footer");e.css("padding-bottom",h.height()+15)}e={};var m=c.viewport(!0),n=m.height;h=.1*n;m=.05*m.width;n*=.8;var v=d.height(),y=d.width();a=a.measure(d,f);e.left=(a.windowWidth-y)/2;e.top=(a.windowHeight-v)/2;l(e.left,m,p(d))&&(e.left=m);v>n?g.length?(e.top=0,d.css({position:"relative",margin:a.zoomTop+h+"px 0 "+h+"px "+(a.zoomLeft+e.left)+"px"}),e.left=0,g.css("padding-bottom","1px")):v>n&&(e.top=padding):g.length&&(d.css({position:"absolute",margin:"0px"}),g.css("padding-bottom",
"0px"));e.left+=a.zoomLeft;e.top+=a.zoomTop;b.isMetroIEGuess&&b.isIETouchCapable&&k();return e},beforeShowMethod:function(){m(this)},beforeHideMethod:function(){this.$popover.closest(".a-modal-scroller").css("visibility","hidden").unbind("scroll")}},util:{determineMaximumInnerHeight:function(a){var b=a.$popover;a=.8*c.viewport().height;var d=b.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0;b=b.find(".a-popover-footer").outerHeight(!0)||0;return a-d-b},determineInnerVerticalPadding:function(a){a=
a.$popover.find(".a-popover-inner");return a.outerHeight()-a.height()}}}});"use strict";n.when("A","a-popover-base-factory","a-modal-view","a-popover-util","prv:a-capabilities").register("a-modal-factory",function(c,e,h,b,m){function k(a,g){var d=!1,f=!1;c.capabilities.mobile||c.capabilities.tablet||(d=b.getBool(g.modeless),f=b.getBool(g.draggable));g={modeless:d,draggable:f,type:"modal",alone:!0,immersive:!0,position:"windowCenter",header:g.header,hideHeader:g.hideHeader,footer:g.footer,padding:g.padding,
width:g.width,height:g.height,"max-width":g["max-width"],"max-height":g["max-height"],"min-width":g["min-width"],"min-height":g["min-height"],closeButton:b.getBool(g.closeButton,!0),timeout:g.timeout,lightboxOptions:d?B:{lockScroll:!0,showDuration:l||p?0:null},data:g.data||{},dataStrategy:g.dataStrategy,url:g.url,manualRefresh:!!g.manualRefresh,ajaxFailMsg:g.ajaxFailMsg,cache:b.getBool(g.cache,!0),inlineContent:g.inlineContent?g.inlineContent:g.content,name:g.name,closeButtonLabel:g.closeButtonLabel?
g.closeButtonLabel:"Close",hideHeaderCloseButtonLayout:g.hideHeaderCloseButtonLayout,popoverLabel:g.popoverLabel,ariaDescription:g.ariaDescription,ajaxHeaders:g.ajaxHeaders,withCredentials:b.getBool(g.withCredentials,!1),legacyNavigable:b.getBool(g.legacyNavigable,!0)};return e.create(a,{attributes:g,typeSpecificFunctions:h,actionCheck:!0})}var l=-1<document.documentElement.className.indexOf("a-lt-ie9"),p=c.capabilities.mobile&&m.isIE10Plus;return{type:"modal",create:k,get:function(a){var c=e.get(a,
"modal");c||"object"!==typeof a||(a=b.extractDeclarativeParams(a,"modal"))&&(c=k(a.$trigger,a.attributes||{}));return c},remove:function(a){return e.remove(a,"modal")}}});"use strict";n.when("A","a-modal-factory","a-popover-base","a-modal-handlers").register("a-modal",function(c,e){return e});"use strict";n.when("A","a-popover-util","a-popover-animate").register("a-popover-view-base",function(c,e,h){return{setAriaBusy:function(b){this.$popover.find(".a-popover-wrapper").attr("aria-busy",b)},updateContent:function(b){"string"===
typeof b?this.$popover.find(".a-popover-content").html(b):b&&this.$popover.find(".a-popover-content").html("").append(b)},updateDimensions:function(){this.$popover.css(e.getCSSHash(this.attrs()));this.isActive()&&this.updatePosition();return this},getContent:function(){return this.$popover?this.$popover.find(".a-popover-content"):null},hideMethod:function(b){var c=this;h.fadeOut(c,250,"linear",function(){c.$popover.css({top:"auto",left:"auto"});b.call(c)})}}});n.when("a-util").register("a-popover-optional-helpers",
function(c){return{getOffsetTopDelta:function(e,h,b){b=parseFloat(b);var m=c.isFiniteNumber(b)&&0<b;e=e.$popover.find(".a-button-close").length&&!e.$popover.find(".a-button-close-a11y").length;return m&&e&&0>h-b?b-h:0},evaluateActualHeight:function(c,h,b){return c.$popover.find(".a-button-close").length&&!c.$popover.find(".a-button-close-a11y").length?h+b:h}}});"use strict";n.when("A","a-popover-view-base","a-popover-util","a-popover-accessibility").register("a-popover-view",function(c,e,h,b){var m=
!0;n.when("prv:skin-vars").execute(function(b){m=b.popover.closeButtonEnabled});return c.extend(e,{skin:function(e){var h=e.attrs("id"),k=e.attrs("header"),a=m&&e.attrs("closeButton"),g=e.attrs("closeButtonLabel")||"",d=e.attrs("popoverLabel")||"",f=e.attrs("ariaDescription"),n=e.attrs("padding");e=e.attrs("popoverArrow");f={id:h,header_str:k,label_str:d,aria_description:f};c.capabilities.isAndroid&&(g=(d||k)+" "+g);a='\x3cbutton data-action\x3d"a-popover-close" class\x3d"a-button-close '+(a?"":"a-button-close-a11y")+
' a-declarative" aria-label\x3d"'+g+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';var t=(g=!!k)?"a-popover-has-header":"a-popover-no-header";n="none"===n?" a-padding-none":"";e=e?'\x3cdiv class\x3d"a-arrow-border"\x3e\x3cdiv class\x3d"a-arrow"\x3e\x3c/div\x3e\x3c/div\x3e':"";d=c.capabilities.isAndroid?"":b.getStartAnchorSimplifiedHtml();var r=c.capabilities.isAndroid?"":b.getEndAnchorHtml(f);k=k?'\x3ch4 class\x3d"a-popover-header-content" id\x3d"a-popover-header-'+h+'"'+
(""===k?' aria-hidden\x3d"true"':"")+"\x3e"+k+"\x3c/h4\x3e":"";t='\x3cdiv class\x3d"a-popover '+t+' a-declarative" data-action\x3d"a-popover-container a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+b.getAriaLabel(f)+"\x3e";var u=b.getDescription(f);f=b.getPopoverLabelHtml(f);return t+d+u+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+(g?'\x3cheader class\x3d"a-popover-header"\x3e'+k+a+f+"\x3c/header\x3e":"")+('\x3cdiv class\x3d"a-popover-inner'+n+'"\x3e')+(g?"":f?"\x3cheader\x3e"+a+f+"\x3c/header\x3e":
a)+('\x3cdiv class\x3d"a-popover-content" id\x3d"a-popover-content-'+h+'"\x3e\x3c/div\x3e')+"\x3c/div\x3e"+e+"\x3c/div\x3e"+r+"\x3c/div\x3e"}})});"use strict";n.when("A","a-popover-base-factory","a-popover-view","a-popover-util").register("a-popover-factory",function(c,e,h,b){function m(c,l){l={type:"popover",alone:!0,header:l.header,width:l.width,height:l.height,"max-width":l["max-width"],"max-height":l["max-height"],"min-width":l["min-width"],"min-height":l["min-height"],padding:l.padding,closeButton:b.getBool(l.closeButton,
!0),position:l.position||"triggerVertical",activate:l.activate||"onmouseover",timeout:l.timeout,data:l.data||{},dataStrategy:l.dataStrategy,url:l.url,manualRefresh:!!l.manualRefresh,ajaxFailMsg:l.ajaxFailMsg,cache:b.getBool(l.cache,!0),inlineContent:l.inlineContent?l.inlineContent:l.content,name:l.name,closeButtonLabel:l.closeButtonLabel?l.closeButtonLabel:"Close",popoverLabel:l.popoverLabel,ariaDescription:l.ariaDescription,focusWhenShown:b.getBool(l.focusWhenShown,!0),popoverArrow:b.getBool(l.popoverArrow,
!0),restoreFocusOnHide:b.getBool(l.restoreFocusOnHide,!0)};return e.create(c,{attributes:l,typeSpecificFunctions:h,actionCheck:!0})}return{type:"popover",create:m,get:function(c){var h=e.get(c,"popover");h||"object"!==typeof c||(c=b.extractDeclarativeParams(c,"popover"))&&(h=m(c.$trigger,c.attributes||{}));return h},remove:function(b){return e.remove(b,"popover")}}});"use strict";n.when("A","a-popover-factory").register("a-popover-handlers",function(c,e){function h(a){a&&!a.destroyTimer&&(a.destroyTimer=
c.delay(function(){a.hide()},250))}function b(a){a&&(clearTimeout(a.destroyTimer),a.destroyTimer=null,clearTimeout(a.parent.destroyTimer),a.parent.destroyTimer=null)}var m=c.$,k={},l=!(c.capabilities.mobile||c.capabilities.tablet)&&c.capabilities.ios;c.declarative("a-popover","click",function(a){var b=e.get(a.$declarativeParent);b&&(b.show(),a.$event.preventDefault())});c.declarative("a-popover","keydown",function(a){var b=c.constants.keycodes,d=a.$event.which;if(d===b.ENTER||d===b.SPACE)a.$event.preventDefault(),
e.get(a.$declarativeParent).show()});if(!l){var p;c.declarative("a-popover","mouseenter",function(a){var g=e.get(a.$declarativeParent);g&&"onmouseover"===g.attrs("activate")&&(b(g),p=c.delay(function(){(g=e.get(a.$declarativeParent))&&k.popover===g&&1<k.mouseMoveCount&&g.show()},200))});c.declarative("a-popover","mousemove",function(a){var b=e.get(a.$declarativeParent);k||(k={});k.popover===b?(k.mouseMoveCount||(k.mouseMoveCount=0),k.lastXY&&(k.lastXY.x!==a.$event.clientX||k.lastXY.y!==a.$event.clientY)&&
k.mouseMoveCount++):(k.popover=b,k.mouseMoveCount=1,k.lastXY={x:a.$event.clientX,y:a.$event.clientY});2>c.cursor().speed&&b&&"onmouseover"===b.attrs("activate")&&k.popover===b&&1<k.mouseMoveCount&&b.show()});c.declarative("a-popover","mouseleave",function(a){(a=e.get(a.$declarativeParent))&&"onmouseover"===a.attrs("activate")&&(h(a),p&&clearTimeout(p));k={}});c.declarative("a-popover-container","mouseenter",function(a){(a=e.get(a.$declarativeParent))&&"onmouseover"===a.attrs("activate")&&b(a)});c.declarative("a-popover-container",
"mouseleave",function(a){var b=e.get(a.$declarativeParent),d=!0,f=m(a.$event.relatedTarget);b&&"onmouseover"===b.attrs("activate")&&b.isActive()&&(c.each(b.children,function(a){if(f.closest(a.$popover).length)return d=!1}),d&&(h(b),b.parent.immersive||0!==f.closest(b.parent.$popover).length||h(b.parent)))})}});"use strict";n.when("A","a-popover-factory","a-popover-base","a-popover-handlers").register("a-popover",function(c,e){return e});"use strict";n.when("A","a-popover-base-factory","a-secondary-view-view",
"a-popover-util").register("a-secondary-view-factory",function(c,e,h,b){function m(k,a){a.disableAnimation=a.disableAnimation||c.capabilities.isOldAndroid;a={type:"secondary-view",immersive:!0,disableAnimation:l||a.disableAnimation,synchronous:!!(l||a.synchronous&&"false"!==a.synchronous),animationLength:a.disableAnimation?0:300,alternateBackground:a.alternateBackground||!1,hideHeader:l||a.hideHeader||!1,scrollable:a.scrollable||!0,header:a.header,backButtonText:a.backButtonText,position:"windowFullWidth",
timeout:a.timeout,dataStrategy:a.dataStrategy,inlineContent:a.inlineContent?a.inlineContent:a.content,url:a.url,manualRefresh:!!a.manualRefresh,name:a.name,cache:"false"===a.cache||!1===a.cache?!1:!0,data:a.data||{},popoverLabel:a.popoverLabel,padding:a.padding,ariaDescription:a.ariaDescription,historyApi:"true"===a.historyApi||!0===a.historyApi,withCredentials:b.getBool(a.withCredentials,!1),ajaxFailMsg:a.ajaxFailMsg};return e.create(k,{attributes:a,typeSpecificFunctions:h,actionCheck:!0})}var k=
c.$,l=!1;n.when("mash-will-load").execute(function(){l=!0});return{type:"secondary-view",create:m,get:function(c){var a=e.get(c,"secondary-view");if(!a&&"object"===typeof c){var g=b.extractDeclarativeParams(c,"secondary-view");g&&(a=m(g.$trigger,g.attributes||{}))}a&&"object"===typeof c&&(c=k(c),c=(c=c.hasClass("a-declarative")?c:c.find(".a-declarative").eq(0))?c.data("a-secondary-view"):null,a.data=c.data);return a},remove:function(b){return e.remove(b,"secondary-view")}}});"use strict";n.when("A",
"a-secondary-view-factory","a-popover-base","a-secondary-view-handlers").register("a-secondary-view",function(c,e){return e});"use strict";n.when("A","a-popover-animate").register("a-tooltip-view-base",function(c,e){return{updateContent:function(c){this.$popover.find(".a-tooltip-inner").html(c)},getContent:function(){return this.$popover?this.$popover.find(".a-tooltip-inner"):null},hideMethod:function(c){var b=this;e.fadeOut(b,250,"linear",function(){c.call(b)})}}});"use strict";n.when("A","a-tooltip-view-base").register("a-tooltip-view",
function(c,e){return c.extend(e,{skin:function(c){return['\x3cdiv role\x3d"tooltip" class\x3d"a-popover a-tooltip a-declarative" data-action\x3d"a-popover-close"\x3e\x3cdiv class\x3d"a-tooltip-inner"\x3e\x3c/div\x3e',c.attrs("popoverArrow")?'\x3cdiv class\x3d"a-arrow-border"\x3e\x3cdiv class\x3d"a-arrow"\x3e\x3c/div\x3e\x3c/div\x3e':"","\x3c/div\x3e"].join("")}})});"use strict";n.when("A","a-popover-base-factory","a-tooltip-view","a-popover-util").register("a-tooltip-factory",function(c,e,h,b){function m(c,
l){l={type:"tooltip",name:l.name,inlineContent:l.inlineContent?l.inlineContent:l.content,position:l.position||"triggerVertical",activate:l.activate||"onmouseover",popoverArrow:b.getBool(l.popoverArrow,!0),restoreFocusOnHide:!1};l=e.create(c,{attributes:l,typeSpecificFunctions:h,actionCheck:!0});c.add(c.children()).filter("a, input").attr("aria-describedby","a-popover-"+c.data("a-popover-id"));return l}return{type:"tooltip",create:m,get:function(c){var h=e.get(c,"tooltip");h||"object"!==typeof c||
(c=b.extractDeclarativeParams(c,"tooltip"))&&(h=m(c.$trigger,c.attributes||{}));return h},remove:function(b){return e.remove(b,"tooltip")}}});"use strict";n.when("A","a-tooltip-factory").register("a-tooltip-handlers",function(c,e){c.declarative("a-tooltip","click",function(c){var b=e.get(c.$declarativeParent);b&&"onclick"===b.attrs("activate")&&(b.show(),c.$event.preventDefault())});c.declarative("a-tooltip","mouseenter",function(c){(c=e.get(c.$declarativeParent))&&"onmouseover"===c.attrs("activate")&&
(c.show(),c.destroyTimer&&(clearTimeout(c.destroyTimer),c.destroyTimer=null))});c.declarative("a-tooltip","mouseleave",function(h){var b=e.get(h.$declarativeParent);b&&"onmouseover"===b.attrs("activate")&&(b.destroyTimer=c.delay(function(){b.hide()},125))});c.declarative("a-tooltip","focus focusin",function(c){(c=e.get(c.$declarativeParent))&&c.show()});c.declarative("a-tooltip","blur focusout",function(c){(c=e.get(c.$declarativeParent))&&c.hide()})});"use strict";n.when("A","a-tooltip-factory","a-popover-base",
"a-tooltip-handlers").register("a-tooltip",function(c,e){return e})});
/* ******** */
'use strict';(function(d){var f=window.AmazonUIPageJS||window.P,c=f._namespace||f.attributeErrors,e=c?c("AmazonUIPopover@modal","AmazonUI"):f;e.guardFatal?e.guardFatal(d)(e,window):e.execute(function(){d(e,window)})})(function(d,f,c){d.when("A","a-popover-util","a-popover-animate").register("a-modal-view-base",function(e,d,f){var c=e.$,g=c("html").hasClass("a-lt-ie9");return{setAriaBusy:function(b){this.$popover.find(".a-popover-wrapper").attr("aria-busy",b)},updateContent:function(b){"string"===
typeof b?this.$popover.find(".a-popover-inner").html(b):b&&this.$popover.find(".a-popover-inner").html("").append(b)},updateDimensions:function(){var b=this.$popover,a=d.getCSSHash(this.attrs());!this.draggable||a.width&&"auto"!==a.width||(a.width=b.width()+"px");b.css(a);a.height?b.addClass("a-popover-modal-fixed-height"):b.removeClass("a-popover-modal-fixed-height");this.isActive()&&this.updatePosition();return this},getContent:function(){return this.$popover?this.$popover.find(".a-popover-inner"):
null},showMethod:function(b){var a=this,c=a.$popover;c.css({visibility:"visible"}).removeClass("a-popover-hidden");g||"ajax"===a.attrs("currentDataStrategy")?b.call(a):(c.css({opacity:0,transform:"translateY(8px)"}),f.animate(a,{opacity:1,transform:"translateY(0)"},200,"linear",function(){b.call(a)}));e.animationFrameDelay(function(){a.focus()});a.attrs("legacyNavigable")&&d.trigger("showNavigableLegacy",a)},hideMethod:function(b){var a=this,c=a.$popover;g?(c.hide().css("visibility","hidden").find(".a-lgtbox-vertical-scroll").removeClass("a-lgtbox-vertical-scroll"),
b.call(a)):f.animate(a,{opacity:0,transform:"translateY(8px)"},100,"linear",function(){c.hide().css({visibility:"hidden",opacity:1});b.call(a)});a.attrs("legacyNavigable")&&d.trigger("hideNavigableLegacy",a)}}})});
/* ******** */
'use strict';(function(n){var r=window.AmazonUIPageJS||window.P,w=r._namespace||r.attributeErrors,a=w?w("AmazonUIPopover@ready","AmazonUI"):r;a.guardFatal?a.guardFatal(n)(a,window):a.execute(function(){n(a,window)})})(function(n,r,w){n.when("A","a-popover-util").register("a-popover-ajax-strategy",function(a,g){return{name:"ajax",reusePopover:!1,loadContent:function(b,m){b.setContentLoading();var d=b.attrs("url"),f=b.attrs("ajaxHeaders")||{},e=b.attrs("withCredentials")||!1,k=b.attrs("timeout")||1E4,
h=b.attrs("ajaxFailMsg")||g.defaultContentFailureMessage,p=!!b.attrs("cache"),q=b.attrs("spinnerTimer"),c=b.attrs("ajaxHandler"),z=b.attrs("content");b.attrs("content",null);if(z&&!m)b.updateContent(z),q&&clearTimeout(q),c&&c.abort&&c.abort();else{q=a.delay(function(){g.shouldPopoverUpdateContent(b,"ajax")&&(g.showSpinner(b),b.setAriaBusy(!0))},100);var l=function(c,d,l){g.shouldPopoverUpdateContent(b,"ajax")&&(clearTimeout(q),b.setContentLoaded(),g.trigger(d,b),b.setAriaBusy(!1),b.update({content:c}),
b.isActive()&&b.updatePosition(),l&&g.trigger("ajaxContentLoaded",b))};c=a.ajax(d,{type:"GET",timeout:k,cache:p,headers:f,withCredentials:e,success:function(c){l(c,"ajaxSuccess",!0)},error:function(){l(h,"ajaxFail",!1)}});b.attrs({spinnerTimer:q,ajaxHandler:c})}return this},unloadContent:function(b){g.clearContent(b);return this},shouldRefreshContent:function(b){return!b.attrs("manualRefresh")},isValidStrategy:function(b){return!!b.url}}});"use strict";n.when("A","a-popover-util").register("a-popover-inline-strategy",
function(a,g){return{name:"inline",reusePopover:!1,loadContent:function(b){b.setContentLoading();var a=b.attrs("content");a&&b.attrs("content",null);if(!a){a=b.$trigger;var d=a.data("action");a=a.data(d)||{};a=a.inlineContent?a.inlineContent:null}a||(a=b.attrs("inlineContent"));b.updateContent(a);b.setContentLoaded();return this},unloadContent:function(b){var a=b.getContent();a=a&&0<a.length?a.html():b.attrs("inlineContent");var d=b.$trigger,f=d.data("action"),e=d.data(f)||{};e.inlineContent=a;d.data(f,
e);g.clearContent(b);return this},shouldRefreshContent:function(a){return a.isDirty()},isValidStrategy:function(a){return!!a.inlineContent}}});"use strict";n.when("A","a-popover-util","a-dom-poller","a-analytics").register("a-popover-preload-strategy",function(a,g,b,m){function d(c){return"a-popover-"+c}function f(c){c=q("#"+d(c));return c.length?c:p}function e(c){if(c=f(c)){c.detach();c=c[0];for(var a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);return a}return!1}function k(c,
a){c.updateContent(a);c.setContentLoaded();c.setAriaBusy(!1);g.trigger("contentReady",c)}function h(c,a){g.showSpinner(c);c.setAriaBusy(!0);b.waitFor("#"+d(a),function(){if(g.shouldPopoverUpdateContent(c,"preload")){var d=e(a);k(c,d);c.isActive()&&c.updatePosition()}},function(){m.logError("Failed to find preloaded content for popover.","FATAL","Popover: "+a);var d={content:g.defaultContentFailureMessage};g.shouldPopoverUpdateContent(c,"preload")?(c.updateContent(g.defaultContentFailureMessage),c.setContentLoaded(),
c.setAriaBusy(!1),c.isActive()&&c.updatePosition(),d.seenByUser=!0):d.seenByUser=!1;c.attrs("temporaryError",d)})}var p,q=a.$;return{name:"preload",reusePopover:!0,loadContent:function(c){c.setContentLoading();var a=c.attrs("name"),l=c.attrs("content");c.attrs("content",null);var f=c.attrs("temporaryError");if(f)if(!f.seenByUser){var p=f.content;f.seenByUser=!0}else if(f.seenByUser)return c.attrs("temporaryError",null),h(c,a),this;f=e(a);l||p?(c.updateContent(l||p),c.setContentLoaded(),b.stopPollingSelector("#"+
d(a))):a?f?(k(c,f),b.stopPollingSelector("#"+d(a))):b.isPollingSelector("#"+d(a))?g.showSpinner(c):h(c,a):c.setContentLoaded();return this},unloadContent:function(c){var e=c.attrs("name");if(e&&!b.isPollingSelector("#"+d(e))&&!c.attrs("temporaryError")){var l=c.getContent();if(l&&l.html()){var h=f(e);h?h=h[0]:(h=document.createElement("div"),h.id=d(e),h.className="a-popover-preload",document.body.appendChild(h));e=h;if(!a.trim(e.innerHTML))if(l=l[0],"string"===typeof l)q(e).html(l);else{for(h=document.createDocumentFragment();l.firstChild;)h.appendChild(l.firstChild);
e.appendChild(h)}g.clearContent(c)}}return this},shouldRefreshContent:function(a){var c=a.attrs("name"),e=f(c);return!(!e||""===e.html())||a.attrs("temporaryError")||b.isPollingSelector("#"+d(c))},isValidStrategy:function(a){return!!a.name}}});"use strict";n.when("A","a-dropdown-base","a-dropdown-view","a-dropdown-options","a-dropdown-apis","a-dropdown-base-factory","a-dropdown-keyboard-handlers").register("a-dropdown-handlers",function(a,g,b,m,d,f,e){var k=a.$;d=k(document);a.declarative("a-dropdown-button",
"click",function(a){m.getSelectFromButton(a.$target).trigger("click")});d.delegate("select.a-native-dropdown","keydown",function(d){var e=a.constants.keycodes,f=d.which,c=k(d.target).nextAll(".a-button-dropdown").eq(0);if(a.onScreen(c)&&(f===e.UP_ARROW||f===e.DOWN_ARROW||f===e.ENTER||f===e.SPACE)){var h=k(d.target);h.prop("disabled",!0);a.delay(function(){h.prop("disabled",!1)},0);d.preventDefault?d.preventDefault():d.returnValue=!1;g.showDropdown(d,a.extend({$button:c},m),b)}});d.delegate("select.a-native-dropdown",
"click",function(d){d.preventDefault?d.preventDefault():d.returnValue=!1;var e=k(d.target).nextAll(".a-button-dropdown").eq(0);a.onScreen(e)&&g.showDropdown(d,a.extend({$button:e},m),b)});d.delegate(".a-popover.a-dropdown a","click",function(a){a.preventDefault();a=k(this);var d=f.get(a.closest(".a-popover")),b=!d.sourceButton.find(".a-dropdown-prompt").text();!a.hasClass("a-active")||b?(b=a.data("value").stringVal,d.sourceSelect.val(b).trigger("change",[a])):d.hide()});e&&(e.keyDown&&d.delegate(".a-dropdown li",
"keydown",e.keyDown),e.keyPress&&d.delegate(".a-dropdown li","keypress",e.keyPress))});"use strict";n.when("A","a-popover-util","a-popover-inline-strategy","a-popover-preload-strategy","a-popover-ajax-strategy","a-analytics","a-util").register("a-popover-data",function(a,g,b,m,d,f,e){var k=[d,b,m];return{guessStrategyByAttrs:function(a){for(var d=0,b=k.length;d<b;d++){var c=k[d];if(c.isValidStrategy(a))return c}d="NO-ATTRIBUTION-INFO";a&&a.$trigger&&a.$trigger.get(0)&&(d=e.attributionChain(a.$trigger.get(0)));
f.logError("https://tiny.amazon.com/aok2pdnt/auiamazdevepopopopo - Popover failed to be created, no data strategy provided. Please provide a valid dataStrategy param for popover.","FATAL",d)},getStrategyByName:function(a){for(var d=0,b=k.length;d<b;d++){var c=k[d];if(c.name===a)return c}return null},showSpinner:g.showSpinner}});n.when("A","a-analytics","a-util").register("a-dom-poller",function(a,g,b){function m(){var a=Array.prototype.slice.call(arguments);return b.reduce(a,function(a,d){return a||
q===d},!1)}function d(a){a.callbackCalled=!0;a=c.indexOf(a);0<=a&&c.splice(a,1)}function f(c,b){a.defer(function(){c.callbackCalled||c.failureCallback(b);d(c)})}function e(c){a.defer(function(){c.callbackCalled||c.successCallback();d(c)})}function k(a){return b.reduce(c,function(d,c){return d||c.selector===a},!1)}function h(){if(c.length){q=p.POLLING;setTimeout(h,1E3);for(var a=c.length;a--;){var d=c[a];document.querySelector(d.selector)?e(d):r&&5E3<Date.now()-d.startTime&&f(d,"Content not found in time.")}}else q=
p.PAUSED}var p={NOT_STARTED:"NOT_STARTED",POLLING:"POLLING",PAUSED:"PAUSED"},q=p.NOT_STARTED,c=[],r=!1;n.when("ready").execute(function(){r=!0});return{waitFor:function(a,d,b){k(a)?g.logError("Tried to poll for DOM selector ("+a+") that is already being polled for.","WARN","AUI DomPoller: "+a):(a={selector:a,successCallback:d,failureCallback:b,callbackCalled:!1,startTime:Date.now()},c.unshift(a),m(p.NOT_STARTED,p.PAUSED)&&h())},stopPollingSelector:function(a){b.filter(c,function(d){return d.selector===
a}).forEach(function(a){d(a)})},isPollingSelector:k}});"use strict";n.when("A","a-popover-lightbox-markup","prv:a-capabilities","a-bodyBegin").register("a-popover-lightbox",function(a,g,b){function m(a){a.preventDefault();a.stopPropagation();a.stopImmediatePropagation();return!1}function d(){w.unbind("click",m);l=!1}function f(c){var b=e(r);-1<x||!t||(c=c||{},w.bind("click",m),l=!0,"number"!==typeof c.hideDuration&&(c.hideDuration=250),0<c.hideDuration?a.fadeOut(t,c.duration,"linear",function(){c.lockScroll&&
(e("html, body").css("overflow",""),e("body").css("margin-right",""),a.delay(function(){0<u&&(b.scrollTop(u),u=-1);0<y&&(b.scrollLeft(y),y=-1)},100));v=null}):(t.css("display","none"),c.lockScroll&&(e("html, body").css("overflow",""),e("body").css("margin-right",""),0<u&&(b.scrollTop(u),u=-1)),v=null),t.css({height:"",width:""}),a.delay(d,c.hideDuration+350),e("#a-page").removeAttr("aria-hidden"))}var e=a.$,k=-1<document.documentElement.className.indexOf("-ie"),h=b.isIE10Plus&&a.capabilities.mobile,
p=0===(a.capabilities.androidVersion+"").indexOf("4."),q=b.isUCBrowser,c=g.id,n=g.div,l=!1,w=e("body"),t=null,x=-1,u=-1,y=-1,v=null;e(document).delegate("#"+c,"click "+a.action.start+" "+a.action.move,function(a){a.preventDefault()});a.declarative("a-popover-floating-close",a.capabilities.touch?a.action.end:"click",function(a){!l&&a.$target.data("action")&&-1<a.$target.data("action").indexOf("a-popover-floating-close")&&(v&&v.isActive()?(v.unlock().hide(),a.$event.preventDefault()):f())});if(b.isiOS8)a.on("a:popover:afterUpdatePosition",
function(a){a=a.popover;var d=e("#"+c),b=d.length?d.offset().top:-1,f=e(r);if(a.isActive()&&a.attrs("lightboxOptions")&&b){var g=0;var k=setInterval(function(){f.scrollTop(b);5<++g&&clearInterval(k)},200)}});return{show:function(b){e("#a-page").attr("aria-hidden","true");var f=e(r);t||(e("body").append(n),t=e("#"+c));b=b||{};w.bind("click",m);l=!0;b.lockScroll&&(-1===u&&(u=f.scrollTop(),y=f.scrollLeft()),a.setCssImportant(e("body"),"margin-right",a.scrollBarWidth()+"px"),h||(k?e("html, body").css("overflow",
"hidden"):e("body").css("overflow","hidden")));var g=(v=b.popover||null)?v.$popover.css("z-index")-2:-1;0<g&&(t.css("z-index",g),p&&f.width());"number"!==typeof b.showDuration&&(b.showDuration=200);q&&v.$popover.css("overflow","auto");0<b.showDuration?a.fadeIn(t,b.showDuration):t.css("display","block");a.delay(d,b.showDuration+300)},hide:f,lock:function(a){a||(a=10);x<a&&(x=a)},unlock:function(a){a||(a=10);x<=a&&(x=-1)},LIGHTBOX_ID:c}});"use strict";n.when("A").register("a-popover-util",function(a){function g(a,
b){for(var d=a.children.length;d--;){var f=g(a.children[d],b);if(f)return f}if(b(a))return a}var b=a.$,m=/^-?\d+(?:\.\d+)?$/;return{trigger:function(d,b){a.trigger("a:popover:"+d,{popover:b});b.name&&a.trigger("a:popover:"+d+":"+b.name,{popover:b})},extractDeclarativeParams:function(d,f){d=b(d);d=d.hasClass("a-declarative")?d:d.find(".a-declarative").eq(0);f="a-"+f;var e=d.data("action");return e&&a.contains(e,f)?{attributes:d.data(f)||null,$trigger:d}:null},eventOccursWithin:function(a,f){a=b(a.target);
return 0<a.closest(f.$trigger).length||0<a.closest(f.$popover).length},search:g,getCSSHash:function(d){var b={};a.each("height width max-height max-width min-height min-width".split(" "),function(e){if(d[e]){var f=d[e];if(a.isFiniteNumber(f)||m.test(f))f+="px";b[e]=f}});b.height&&!b["max-height"]&&(b["max-height"]="none");b.width&&!b["max-width"]&&(b["max-width"]="none");return b},clearContent:function(a){(a=a.getContent())&&a.empty()},showSpinner:function(a){a.updateContent('\x3cdiv class\x3d"a-popover-loading-wrapper a-text-center"\x3e\x3cdiv class\x3d"a-box a-color-base-background a-popover-loading"\x3e\x3c/div\x3e\x3c/div\x3e');
a.updatePosition();return a},getBool:function(a,b){return void 0!==a?!0===a||"true"===a:!0===b},shouldPopoverUpdateContent:function(a,b){return!a.attrs("content")&&a.attrs("currentDataStrategy")===b&&(a.isVisible()||a.isActive())},defaultContentFailureMessage:"Sorry, content is not available."}});"use strict";n.when("A","a-popover-base-factory","a-modal-factory").register("a-modal-handlers",function(a,g,b){g=a.$;a.declarative("a-modal","click",function(a){b.get(a.$declarativeParent).show();a.$event.preventDefault()});
a.declarative("a-modal","keydown",function(g){g.$event.which===a.constants.keycodes.SPACE&&(g.$event.preventDefault(),b.get(g.$declarativeParent).show())});g(document).delegate(".a-modal-scroller","click "+a.action.start+" "+a.action.move,function(a){a.target===this&&a.preventDefault()})})});
/* ******** */
'use strict';(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIBottomSheet@base","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
'use strict';(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIBottomSheet@control","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
/*
 b_sheet cache-bust js */
'use strict';
/* ******** */
'use strict';(function(e){var k=window.AmazonUIPageJS||window.P,g=k._namespace||k.attributeErrors,c=g?g("AmazonUITruncate","AmazonUI"):k;c.guardFatal?c.guardFatal(e)(c,window):c.execute(function(){e(c,window)})})(function(e,k,g){e.when("A","a-component","prv:a-truncate-util").register("a-truncate",function(c,e,k){function g(a){var b=a._$fullText,c=Math.ceil(parseFloat(a._$element.css("max-height"))),e=a.getOverflowMarker(),g=a.getSpecialCharacterList(),d=a._$offscreenTextHolder;a._$element.append(d);
if(!(parseFloat(d.html(b).css("height"))<=c)){a=0;for(var f=b.length,h,l;f>a;)h=Math.floor((a+f)/2),l=b.substring(0,h+1)+e,parseFloat(d.html(l).css("height"))>c?f=h:a=h+1;b=k.trimSpecialChars(b.substring(0,f),g)+e}d.remove();return b}function h(a){a=f(a).attr("data-a-recalculate",!0);m();return a.length}function d(){return h('.a-truncate:not([data-a-manual-update\x3d"true"]):not([data-a-updated])')}var f=c.$,l=e.create({_componentName:"truncate",init:function(a,b){this._super(a,b);this._$full=this._$element.find(".a-truncate-full");
this._$cut=this._$element.find(".a-truncate-cut");this._$fullText=this.getFullText();this._$offscreenTextHolder=f('\x3cspan class\x3d"a-truncate-calc a-offscreen"/\x3e');c.capabilities.android&&c.capabilities.isAmazonApp&&(a=this.getMaxHeight(),/[^r]em$/.test(a)&&(a=parseFloat(a),b=parseFloat(this._$element.css("font-size")),this._$element.css("max-height",a*b+"px")))},update:function(a){var b=this._$cut.html(),d=g(this);this._$fullText!==d?this._$cut.height(this.getMaxHeight()):this._$cut.height("auto");
this._$cut.html(d);this._$element.attr("data-a-updated",!0);this._$full.addClass("a-offscreen");this._$cut.removeClass("a-hidden");d={truncateContainer:this._$element,truncateInstance:this};a&&a.silent||(a=this.getTruncatedText(),b!==a&&(c.trigger("a:truncate:updated",d),(b=this._$element.data("a-truncate-name"))&&c.trigger("a:truncate:"+b+":updated",d)))},getFullText:function(){return this._$full.html()},getTruncatedText:function(){return this.getIsUpdated()?this._$cut.html():g(this)},getIsUpdated:function(){return this._$element.is("[data-a-updated]")},
getOverflowMarker:function(){return this._$element.data("a-overflow-marker")||""},getSpecialCharacterList:function(){return this._$element.data("a-special-character-list")||""},getLineHeight:function(){return this._$element[0].style.lineHeight},getMaxHeight:function(){return this._$element[0].style.maxHeight},getIfTextFits:function(){return this._$fullText===g(this)}}),m=function(a){function b(){(d=a())&&c.delay(b,0)}var d=!1;return function(){d||b()}}(function(){var a=f('.a-truncate[data-a-recalculate\x3d"true"]').first(),
b=!!a.length;b&&((new l(a)).update(),a.attr("data-a-recalculate",!1));return b});c.on("ready orientationchange",function(){h('.a-truncate:not([data-a-manual-update\x3d"true"])')});c.on("resize",function(a,b){b.width&&h('.a-truncate:not([data-a-manual-update\x3d"true"])')});c.on("a:pageUpdate",d);return{get:function(a,b){return new l(a,b)},manualTruncate:function(a){return h(f(a).find('.a-truncate[data-a-manual-update\x3d"true"]'))},switchToAutoTruncate:function(a){a=f(a).find('.a-truncate[data-a-manual-update\x3d"true"]');
a.removeAttr("data-a-manual-update");return a.length},refreshAutoTruncate:d}});e.declare("prv:a-truncate-util",{trimSpecialChars:function(c,d){d=new RegExp("["+d.replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$\x26")+"\\s]+$");return c.replace(d,"")}})});
/* ******** */
'use strict';(function(l){var m=window.AmazonUIPageJS||window.P,n=m._namespace||m.attributeErrors,b=n?n("AmazonUICardUI","AmazonUI"):m;b.guardFatal?b.guardFatal(l)(b,window):b.execute(function(){l(b,window)})})(function(l,m,n){l.when("A","a-component","prv:a-cardui-peek-toggle","prv:a-cardui-peek-expand").register("a-cardui",function(b,d,g,k){var c=b.$,f=d.create({_componentName:"cardui",init:function(a,c){this._super(a,c);this.metadata={interactedOnce:!1,describedByIds:this._$element.data("describedByIds"),
cardExpanded:this.isExpanded(),cardName:this.getName()}},getCardType:function(){return c(this._$element).data("a-card-type")},isExpanded:function(){},getName:function(){return this._$element.attr("name")},getId:function(){return this._$element.attr("id")},toggle:function(){}});return{get:function(a,d){var e;if(!(e=c(a).data("cardInstance"))){switch(c(a).data("a-card-type")){case "peekToggle":e=f.extend(g);break;case "peekExpand":e=f.extend(k);break;default:e=f}d=new e(a,d);c(a).data("cardInstance",
d);b.trigger("a:card:initialized",d);c(a).attr("id")&&b.trigger("a:card:"+c(a).attr("id")+":initialized",d);e=d}return e}}});"use strict";l.when("A","a-component").register("prv:a-cardui-content",function(b,d){var g=d.create({_componentName:"carduiContent",init:function(b,c){this._super(b,c)},getHeight:function(){return this._$element[0].scrollHeight},getMaxHeightDataAttribute:function(){return this._$element.data("a-max-height")}});return{get:function(b,c){return new g(b,c)}}});"use strict";l.when("A",
"a-component","a-cardui").register("a-cardui-deck",function(b,d,g){function k(a,h){f(a).data("cardInstance")||(f(a).attr("name",h.deckName+"-card"+h.cardCount++),f(a).data("describedByIds",h.describedByIds));return g.get(a)}function c(a,h){h=new p(a,h);f(a).data("deckInstance",h);return h}var f=b.$,a=0,p=d.create({_componentName:"carduiDeck",init:function(e,h){this._super(e,h);h=this._$element;e="a-cardui-deck-autoname-"+a++;f(h).attr("name",e);h=this._$element;var c=e+"-teaser-describedby-collapsed",
b=e+"-teaser-describedby-expanded";f(h).find(".a-teaser-describedby-collapsed").attr("id",c);f(h).find(".a-teaser-describedby-expanded").attr("id",b);this.metadata={cardCount:0,deckName:e,describedByIds:{collapsed:c,expanded:b}};this.initializeAllCards()},initializeCard:function(a,h){return k(a,this.metadata)},initializeAllCards:function(){var a=this;f(this._$element).find(".a-cardui").each(function(){return k(this,a.metadata)})},addCards:function(a){var e=this;a&&a.url||l.error("ajax options object or url is not defined.");
var c,d=a.targetSelector,k=e._$element;d?(d=f(d),d.closest(k).length?c=d:l.error("container is outside the deck","ERROR","addCards")):c=k;b.get(a.url,{cache:!1,success:function(a){c.append(a);e.initializeAllCards();b.trigger("a:deck:new-cards-added");f(e._$element).attr("id")&&b.trigger("a:deck:"+f(e._$element).attr("id")+":new-cards-added")},failure:function(a,c,h){b.trigger("a:deck:cards-added-fail",{xhr:a,status:c,errorThrown:h});f(e._$element).attr("id")&&b.trigger("a:deck:"+f(e._$element).attr("id")+
":cards-added-fail",{xhr:a,status:c,errorThrown:h})}})}});b.on("ready",function(){f(".a-cardui-deck").each(function(){c(this)})});return{get:function(a,h){return f(a).data("deckInstance")||c(a,h)}}});"use strict";l.when("A","a-component","prv:a-see-more","prv:a-expander-icon","p-detect","prv:csa-logger").register("prv:a-cardui-expand-control-footer",function(b,d,g,k,c,f){function a(a,c){a._$seeMore.toggleSeeMore(c.cardExpanded);a._$expanderIcon.toggleExpanderIcon(c.cardExpanded)}var p=d.create({_componentName:"carduiExpandControlFooter",
init:function(a,c){this._super(a,c);this._$expanderIcon=k.get(this._$element.find(".a-expander-icon"));this._$seeMore=g.get(this._$element.find(".a-see-more"));this._$button=this._$element.find(".a-cardui-expand-control-footer-button")},toggleExpansion:function(e){var h=this;c.capabilities.transition&&e.interactedOnce?b.fadeOut(h._$element,200,"linear",function(){a(h,e);b.fadeIn(h._$element,200)}):a(h,e)},getName:function(){return this._$element.attr("name")},getId:function(){return this._$element.attr("id")},
addTrigger:function(a){this._$element.click(function(){b.trigger("a:card:"+a+":toggle",this)});this._$element.length&&f.element(this._$element.get(0),"click");this._$element.keypress(function(c){var e=b.constants.keycodes;c=c.which;c!==e.ENTER&&c!==e.SPACE||b.trigger("a:card:"+a+":toggle",this)});this._$element.length&&f.element(this._$element.get(0),"keypress")}});return{get:function(a,c){return new p(a,c)}}});"use strict";l.when("A","a-component","prv:csa-logger").register("prv:a-cardui-expand-control-title",
function(b,d,g){var k=d.create({_componentName:"carduiExpandControlTitle",init:function(c,b){this._super(c,b);this._$button=this._$element.find('span[role\x3d"button"]');this._$header=this._$element.find("h3")},getName:function(){return this._$element.attr("name")},getId:function(){return this._$element.attr("id")},addTrigger:function(c){this._$element.click(function(){b.trigger("a:card:"+c+":toggle",this)});this._$element.length&&g.element(this._$element.get(0),"click");this._$element.keypress(function(d){var a=
b.constants.keycodes;d=d.which;d!==a.ENTER&&d!==a.SPACE||b.trigger("a:card:"+c+":toggle",this)});this._$element.length&&g.element(this._$element.get(0),"keypress")}});return{get:function(c,b){return new k(c,b)}}});"use strict";l.when("A","a-component").register("prv:a-cardui-teaser",function(b,d){var g=d.create({_componentName:"carduiTeaser",init:function(b,c){this._super(b,c)},getHeight:function(){return this._$element[0].scrollHeight}});return{get:function(b,c){return new g(b,c)}}});"use strict";
l.when("A","a-component").register("prv:a-expander-icon",function(b,d){var g=d.create({_componentName:"expanderIcon",init:function(b,c){this._super(b,c);this._$icon=this._$element.find(".a-css-icon")},toggleExpanderIcon:function(b){var c=b?"a-css-icon-expand":"a-css-icon-collapse";b=b?"a-css-icon-collapse":"a-css-icon-expand";this._$icon.addClass("a-css-icon-draw");this._$icon.removeClass(c).addClass(b)}});return{get:function(b,c){return new g(b,c)}}});"use strict";l.when("A","a-component","prv:a-cardui-scroll-viewport").register("a-reactive-container",
function(b,d,g){var k=d.create({_componentName:"reactiveContainer",init:function(c,b){this._super(c,b);this._$measured=!1;this._$element.addClass("a-reactive-container-transition")},setHeight:function(c){this._$element.css("height",c+"px");this._$measured?g.adjustScroll(this,parseFloat(c)):this._$measured=!0},resetInitialization:function(){this._$measured=!1},getHeight:function(){return this._$element.css("height")}});return{get:function(c,b){return new k(c,b)}}});"use strict";l.when("A","a-component").register("prv:a-see-more",
function(b,d){var g=d.create({_componentName:"seeMore",init:function(b,c){this._super(b,c);this._$seeMoreText=this._$element.find(".a-see-more-text");this._$seeLessText=this._$element.find(".a-see-less-text")},toggleSeeMore:function(b){b?(this._$seeMoreText.hide(),this._$seeLessText.show()):(this._$seeMoreText.show(),this._$seeLessText.hide())}});return{get:function(b,c){return new g(b,c)}}});"use strict";l.when("A").register("prv:a-cardui-scroll-viewport",function(b){return{adjustScroll:function(){}}});
"use strict";l.when("A","prv:a-cardui-expand-control-title","prv:a-cardui-expand-control-footer","prv:a-cardui-teaser","prv:a-cardui-content","prv:a-reactive-container").register("prv:a-cardui-type-utility",function(b,d,g,k,c,f){return{getExpandControlTitle:function(a){return d.get(a._$element.find(".a-cardui-expand-control-title"))},getExpandControlFooter:function(a){return g.get(a._$element.find(".a-cardui-expand-control-footer"))},getTeaser:function(a){return k.get(a._$element.find(".a-cardui-teaser"))},
getContent:function(a){return c.get(a._$element.find(".a-cardui-content"))},getReactiveContainer:function(a){a=a._$element.find(".a-reactive-container");return 0<a.length?f.get(a):null},getEventName:function(a){return"a:card:"+a.getName()+":toggle"}}});"use strict";l.when("A","prv:a-cardui-type-utility").register("prv:a-cardui-peek-expand",function(b,d){function g(a){var c=a._$header;a.metadata.interactedOnce&&b.delay(function(){var a=f(document).scrollTop();c._$header.focus();f("html,body").scrollTop(a)},
50)}function k(a){var f=d.getEventName(a);b.on(f,function(e){if(!a.metadata.interactedOnce){a.metadata.interactedOnce=!0;var d=a._$content;a._$teaser._$element.removeClass("a-cardui-uninitialized");d._$element.removeClass("a-cardui-uninitialized");d._$element.css("max-height","none");c(a)}d=!a.isExpanded();a._$element.attr("data-a-expanded",d);a.metadata.cardExpanded=d;a._$footer.toggleExpansion(a.metadata);c(a);g(a);e={carduiInstance:a,triggerElement:e};b.trigger("a:card:toggled",e);a.getId()&&b.trigger("a:card:"+
a.getId()+":toggled",e)})}function c(a){var b=a._$teaser,c=a._$content,d=a._$reactiveContainer,f=a.metadata;c.getMaxHeightDataAttribute()?(b=c.getHeight(),b<=c.getMaxHeightDataAttribute()?(a._$element.attr("data-a-card-type","basic"),a._$element.find(".a-cardui-footer").addClass("a-hidden"),d.setHeight(b)):(a._$element.attr("data-a-card-type","peekExpand"),a._$element.find(".a-cardui-footer").removeClass("a-hidden"),a=c.getMaxHeightDataAttribute(),d.setHeight(f.cardExpanded?c.getHeight():a))):d.setHeight(f.cardExpanded?
b.getHeight()+c.getHeight():b.getHeight())}var f=b.$;return{init:function(a,f){this._super(a,f);this._$content=d.getContent(this);this._$reactiveContainer=d.getReactiveContainer(this);this._$footer=d.getExpandControlFooter(this);var e=this;b.on("orientationchange",function(){e._$reactiveContainer.resetInitialization();c(e)});this._$header=d.getExpandControlTitle(this);this._$teaser=d.getTeaser(this);this._$header.addTrigger(this.metadata.cardName);this._$footer.addTrigger(this.metadata.cardName);
this._$footer.toggleExpansion(this.metadata);g(this);k(this);this._$content.getHeight()<=this._$content.getMaxHeightDataAttribute()&&(this._$reactiveContainer.setHeight(this._$content.getHeight()),this._$element.attr("data-a-card-type","basic"),this._$element.find(".a-cardui-footer").addClass("a-hidden"))},isExpanded:function(){return"true"===this._$element.attr("data-a-expanded")},toggle:function(a){b.trigger("a:card:"+this.getName()+":toggle",a)}}});"use strict";l.when("A","prv:a-cardui-type-utility").register("prv:a-cardui-peek-toggle",
function(b,d){function g(a){var c=a._$header,d=a._$footer,h=a._$teaser,g=a._$content;a=a.metadata;a.interactedOnce&&b.delay(function(){var a=f(document).scrollTop();c._$header.focus();f("html,body").scrollTop(a)},50);c._$button.attr("aria-expanded",a.cardExpanded);c._$header.attr("aria-describedby",a.cardExpanded?a.describedByIds.expanded:a.describedByIds.collapsed);d._$button.attr("aria-expanded",a.cardExpanded);d._$element.attr("aria-describedby",a.cardExpanded?a.describedByIds.expanded:a.describedByIds.collapsed);
h._$element.attr("aria-hidden",a.cardExpanded);g._$element.attr("aria-hidden",!a.cardExpanded)}function k(a){var f=d.getEventName(a);b.on(f,function(d){if(!a.metadata.interactedOnce){a.metadata.interactedOnce=!0;var e=a._$content;a._$teaser._$element.removeClass("a-cardui-uninitialized");e._$element.removeClass("a-cardui-uninitialized");a._$reactiveContainer&&c(a)}e=!a.isExpanded();var f=a._$teaser,k=a._$content;a._$element.attr("data-a-expanded",e);(a.metadata.cardExpanded=e)?(f._$element.addClass("a-cardui-absolute-position"),
k._$element.removeClass("a-cardui-absolute-position")):(k._$element.addClass("a-cardui-absolute-position"),f._$element.removeClass("a-cardui-absolute-position"));a._$footer.toggleExpansion(a.metadata);a._$reactiveContainer&&c(a);g(a);d={carduiInstance:a,triggerElement:d};b.trigger("a:card:toggled",d);a.getId()&&b.trigger("a:card:"+a.getId()+":toggled",d)})}function c(a){var b=a._$teaser,c=a._$content,d=a._$reactiveContainer;a.metadata.cardExpanded?d.setHeight(c.getHeight()):d.setHeight(b.getHeight())}
var f=b.$;return{init:function(a,f){this._super(a,f);this._$header=d.getExpandControlTitle(this);this._$content=d.getContent(this);this._$footer=d.getExpandControlFooter(this);this._$teaser=d.getTeaser(this);this._$reactiveContainer=d.getReactiveContainer(this);this._$header.addTrigger(this.metadata.cardName);this._$footer.addTrigger(this.metadata.cardName);this._$footer.toggleExpansion(this.metadata);g(this);k(this);var e=this;if(e._$reactiveContainer)b.on("orientationchange",function(){e.metadata.interactedOnce&&
(e._$reactiveContainer.resetInitialization(),c(e))})},isExpanded:function(){return"true"===this._$element.attr("data-a-expanded")},toggle:function(a){b.trigger("a:card:"+this.getName()+":toggle",a)}}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUICompatJS","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
'use strict';(function(h){var m=window.AmazonUIPageJS||window.P,n=m._namespace||m.attributeErrors,b=n?n("AmazonUIWebModalFramework","AmazonUI"):m;b.guardFatal?b.guardFatal(h)(b,window):b.execute(function(){h(b,window)})})(function(h,m,n){h.declare("prv:a-modal-framework-constants",{FRAMEWORK_WRAPPER_CLASS:"a-modal-framework-wrapper",CONTENT_WRAPPER_CLASS:"a-modal-framework-content-wrapper",DUMMY_FOCUSABLE_ELEMENT_CLASS:"a-modal-framework-dummy-element",SCRIM_CLASS:"a-modal-framework-scrim",DISABLE_SCROLL_CLASS:"a-disable-scroll",
overlayStatusCodes:{INACTIVE:0,ACTIVE:1},contentStatusCodes:{NO_CONTENT:0,CONTENT_LOAD_FAILED:1,CONTENT_LOADING:2,CONTENT_LOADED:3},errorMessages:{INVALID_TYPE:"content.type set to an unsupported content type",EMPTY_CONTENT:"content / content.source is empty",NO_PRELOAD_ID:"content.source should be the preload ID, none passed currently",CONTENT_NOT_PRELOADED:"no content with the given preload id present on the page",NO_ENDPOINT_URL:"content.source should be the endpoint url, currently empty",MISSING_PARAMS:"missing mandatory params needed to create the overlay instance",
IFRAME_TIMEOUT_FAILURE:"failed to load, response timed out",IFRAME_ENDPOINT_FAILURE:"failed to load, got error response"},TABBABLE_SELECTOR:"a, button, input, select, textarea, [tabindex]",defaultOptions:{DISMISS_STRATEGY:"transient",SCRIM_TYPE:"translucent"},defaultZIndex:{PERSISTENT:299,TRANSIENT:499},EXPLICIT_PARAMS:["wrapper","content"]});h.declare("a-modal-framework-exports",{CONTENT_WRAPPER_CLASS:"a-modal-framework-content-wrapper",CLOSE_TRIGGER_CLASS:"a-modal-framework-close-trigger",PRESENT_ACTION:"a-modal-framework-present",
DISMISS_ACTION:"a-modal-framework-dismiss",dismissReasons:{CLOSE_TRIGGER:"closeTrigger",BACKGROUND:"background",SCRIM:"scrim",BACK_BUTTON:"backButton",API_CALL:"apiCall",NONE:"none"}});h.when("A","prv:a-modal-framework-constants").register("a-modal-framework-templates",function(b,f){b=b.constants.HIDE_CLASS;return{frameworkWrapper:"\x3cdiv tabindex\x3d'-1' role\x3d'dialog' class\x3d'"+f.FRAMEWORK_WRAPPER_CLASS+" "+b+"' \x3e",startAnchor:"\x3cspan tabindex\x3d'0' class\x3d'a-modal-framework-start'\x3e\x3c/span\x3e",
endAnchor:"\x3cspan tabindex\x3d'0' class\x3d'a-modal-framework-end'\x3e\x3c/span\x3e",dummyFocusableElement:"\x3cspan tabindex\x3d'0' class\x3d'"+f.DUMMY_FOCUSABLE_ELEMENT_CLASS+"'\x3e\x3c/span\x3e",scrim:"\x3cdiv class\x3d'"+f.SCRIM_CLASS+" "+b+"'\x3e\x3c/div\x3e"}});h.when("A").register("a-modal-framework-utils",function(b){return{setOverlayStatus:function(b,e){b._overlayStatus=e},setContentStatus:function(b,e){b._contentStatus=e},getUniqueId:function(){for(var b=[],e=0;4>e;e++)b.push("0123456789"[Math.floor(10*
Math.random())]);return b.join("")},hasKeys:function(b,e){return e.every(function(c){return c in b})}}});h.when("A","3p-promise","prv:a-modal-framework-constants").register("a-modal-framework-inline",function(b,f,e){return{getContent:function(b,d){var c="undefined"===typeof b.source?b:b.source;return new f(function(b,a){""!==c?(d.html(c),b()):a(e.errorMessages.EMPTY_CONTENT)})},abortContent:function(){}}});h.when("A","3p-promise","prv:a-modal-framework-constants").register("a-modal-framework-preload",
function(b,f,e){var c=b.$,d=b.constants.HIDE_CLASS;return{getContent:function(b,g){if(!b.source)return f.reject(e.errorMessages.NO_PRELOAD_ID);var a=c((0===b.source.indexOf("#")?"":"#")+b.source);return new f(function(b,c){0<a.length?(a.remove(),a.removeClass(d),g.html(a),b()):c(e.errorMessages.CONTENT_NOT_PRELOADED)})},abortContent:function(){}}});h.when("A","3p-promise","prv:a-modal-framework-constants").register("a-modal-framework-ajax",function(b,f,e){return{getContent:function(c,d){if(!c.source)return f.reject(e.errorMessages.NO_ENDPOINT_URL);
var k=c.source,g=c.cache||!1,a=c.timeout||1E4,p=c.ajaxHeaders||{},r=c.withCredentials||!1,l=c.fallbackText||"";return new f(function(e,f){c.activeRequest=b.ajax(k,{type:"GET",cache:g,timeout:a,headers:p,withCredentials:r,success:function(a){d.html(a);e()},error:function(a,b,c){d.html(l);f({xhr:a,status:b,errorThrown:c})}})})},abortContent:function(b){b.activeRequest&&b.activeRequest.abort()}}});h.when("A","3p-promise","a-modal-framework-constants").register("a-modal-framework-iframe",function(b,f,
e){return{getContent:function(c,d){if(!c.source)return f.reject(e.errorMessages.NO_ENDPOINT_URL);var k=c.timeout||1E4,g=c.fallbackText||"",a=c.activeRequest=document.createElement("iframe");a.src=c.source;a.width="100%";a.height="100%";a.style.border="none";a.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation");return new f(function(c,f){var l=!1;a.onload=function(){l||(l=!0,c())};a.onerror=function(){l||(l=!0,d.html(g),f(e.errorMessages.IFRAME_ENDPOINT_FAILURE))};d.html(a);
b.delay(function(){l||(l=!0,d.html(g),f(e.errorMessages.IFRAME_TIMEOUT_FAILURE))},k)})},abortContent:function(b){(b=b.activeRequest)&&b.parentNode.removeChild(b)}}});h.when("A","a-modal-framework-inline","a-modal-framework-preload","a-modal-framework-ajax","a-modal-framework-iframe","3p-promise","prv:a-modal-framework-constants","a-modal-framework-utils").register("a-modal-framework-content",function(b,f,e,c,d,k,g,a){function p(a){switch(a){case "inline":a=f;break;case "preload":a=e;break;case "ajax":a=
c;break;case "iframe":a=d;break;default:a=n}return a}function r(a){var b=p(a._content.type||"inline");return b?b.getContent(a._content,a._contentContainer):k.reject(g.errorMessages.INVALID_TYPE)}return{addContent:function(c){var d=r(c);a.setContentStatus(c,g.contentStatusCodes.CONTENT_LOADING);d.then(function(){a.setContentStatus(c,g.contentStatusCodes.CONTENT_LOADED);b.trigger("a:"+c._type+":"+c._name+":contentUpdated",c)}).catch(function(d){a.setContentStatus(c,g.contentStatusCodes.CONTENT_LOAD_FAILED);
b.trigger("a:"+c._type+":"+c._name+":contentUpdateFailed",c,d);throw Error(d);})},updateContent:function(){},removeContent:function(){},abortContentRequest:function(c){var d=p(c._content.type||"inline");d&&d.abortContent(c._content);a.setContentStatus(c,g.contentStatusCodes.NO_CONTENT);b.trigger("a:"+c._type+":"+c._name+":contentAborted",c)}}});h.when("A","prv:a-modal-framework-constants","a-modal-framework-exports","a-modal-framework-templates").register("a-modal-framework-accessibility",function(b,
f,e,c){function d(a){var b=a._frameworkWrapper,d=[];a._overlayWrapper.find(f.TABBABLE_SELECTOR+", iframe").not("[tabindex\x3d'-1']").each(function(){if(g(this).is("iframe")){var a=g(this.contentDocument||this.contentWindow.document).find(f.TABBABLE_SELECTOR).not("[tabindex\x3d'-1']");d=d.concat(a.toArray())}else d.push(this)});var e=g(d);0<e.length?(b.find("."+f.DUMMY_FOCUSABLE_ELEMENT_CLASS).remove(),a._firstFocusableElement=e.first(),a._lastFocusableElement=e.last()):0===b.find("."+f.DUMMY_FOCUSABLE_ELEMENT_CLASS).length&&
(b=g(c.dummyFocusableElement).appendTo(b),a._firstFocusableElement=a._lastFocusableElement=b)}function k(a){var c=g(a.target);a=a.data.overlay;c.is(a._startAnchor)?(a._lastFocusableElement.focus(),b.trigger("a:"+a._type+":"+a._name+":loopToLastItem")):c.is(a._endAnchor)&&(a._firstFocusableElement.focus(),b.trigger("a:"+a._type+":"+a._name+":loopToFirstItem"))}var g=b.$;return{setupFocusTrap:function(a){var b=a._frameworkWrapper;"persistent"!==a._dismissStrategy&&(a._startAnchor=g(c.startAnchor).prependTo(b));
var e=a._a11yAttrs,f;for(f in e)e.hasOwnProperty(f)&&0===f.indexOf("aria-")&&a._frameworkWrapper.attr(f,e[f]);d(a);"persistent"!==a._dismissStrategy&&(a._endAnchor=g(c.endAnchor).appendTo(b));a._startAnchor&&a._startAnchor.bind("focusin",{overlay:a},k);a._endAnchor&&a._endAnchor.bind("focusin",{overlay:a},k)},setFocus:function(a){var b=a._frameworkWrapper.find("."+e.CLOSE_TRIGGER_CLASS);0<b.length?b.focus():a._firstFocusableElement.focus();"persistent"!==a._dismissStrategy&&(g("#a-page").attr("aria-hidden",
"true"),a._frameworkWrapper.attr("aria-modal",!0))},resetFocus:function(a){var c=g(document.activeElement),d=c.closest(a._frameworkWrapper).length;c=c.is("body");if(d||c)g(m).scrollTop(a._scrollPosition),b.onScreen(a._lastActiveParent,0)&&a._lastActiveParent.is(":visible")&&(a._lastActiveParent.focus(),g(m).scrollTop(a._scrollPosition));"persistent"!==a._dismissStrategy&&(g("#a-page").attr("aria-hidden","false"),a._frameworkWrapper.attr("aria-modal",!1))},updateFocusableElements:d}});h.when("A","a-component",
"a-modal-framework-utils","prv:a-modal-framework-constants").register("a-modal-framework-base",function(b,f,e,c){var d=b.$;return f.create({_componentName:"modalFrameworkBase",init:function(b,f,a){this._uid=e.getUniqueId();this._overlayWrapper=d(b);this._content=f;a||(a={});this._type=a.type||"modalFramework";this._name=a.name||this._uid;this._dismissStrategy=a.dismissStrategy||c.defaultOptions.DISMISS_STRATEGY;this._scrimType="persistent"===this._dismissStrategy?"none":a.scrimType||c.defaultOptions.SCRIM_TYPE;
this._hasDismissAnimation=a.hasDismissAnimation||!1;this._destroyAfterDismiss=a.destroyAfterDismiss||!1;this._a11yAttrs=a.accessibilityAttributes||{};this._overlayStatus=c.overlayStatusCodes.INACTIVE;this._contentStatus=c.contentStatusCodes.NO_CONTENT;this._presentedOnce=!1}})});h.when("A","a-modal-framework-templates","a-modal-framework-exports").register("a-modal-framework-dom-builder",function(b,f,e){var c=b.$;return{build:function(b){"none"!==b._scrimType&&"transparent"!==b._scrimType&&(b._scrim=
c(f.scrim).appendTo("body"),b._scrim.addClass("a-scrim-"+b._scrimType));var d=c(f.frameworkWrapper);"persistent"===b._dismissStrategy?b._declarativeTrigger?b._declarativeTrigger.after(d):d.appendTo("body"):d.appendTo("body");b._frameworkWrapper=d;d.data("overlayInstance",b);var g=b._overlayWrapper;d.html(g);d=d.find(c("."+e.CONTENT_WRAPPER_CLASS));0===d.length&&(d=g);b._contentContainer=d},destroy:function(b){b._scrim&&b._scrim.remove();b._frameworkWrapper.remove()}}});h.when("A","a-modal-framework-base",
"a-modal-framework-dom-builder","prv:a-modal-framework-constants","a-modal-framework-exports","a-modal-framework-utils","a-modal-framework-content","a-modal-framework-accessibility","3p-promise").register("a-modal-framework",function(b,f,e,c,d,k,g,a,p){function r(a){b.delay(function(){switch(a._scrimType){case "none":break;case "transparent":var c="click.background."+a._uid,A=b.action.start+".background."+a._uid;q(document).bind(c+" "+A,{overlay:a},function(a){var b=q(a.target);a=a.data.overlay;var c=
0===b.closest(a._frameworkWrapper).length;b=a._declarativeTrigger?0===b.closest(a._declarativeTrigger).length:!0;c&&b&&(a._dismissReason=d.dismissReasons.BACKGROUND,a.dismiss())});break;default:a._scrim.bind("click",{overlay:a},function(){a._dismissReason=d.dismissReasons.SCRIM;a.dismiss()})}});var c=a._frameworkWrapper.find("."+d.CLOSE_TRIGGER_CLASS);b.declarative.create(c,d.DISMISS_ACTION)}function l(a){switch(a._scrimType){case "none":break;case "transparent":var c="click.background."+a._uid;a=
b.action.start+".background."+a._uid;q(document).unbind(c+" "+a);break;default:a._scrim.unbind("click")}}function w(a){var b=a._lastActiveParent.closest("."+c.FRAMEWORK_WRAPPER_CLASS);b=b.length?parseInt(b[0].style.zIndex,10):c.defaultZIndex[a._dismissStrategy.toUpperCase()];a._scrim&&a._scrim.css("z-index",b+1);a._frameworkWrapper.css("z-index",b+2);a._scrim&&(a._scrim.removeClass(t),b=q(m).scrollTop(),a._scrollPosition=b,u.addClass(c.DISABLE_SCROLL_CLASS),u.css("top","-"+b+"px"));a._frameworkWrapper.removeClass(t)}
function x(a){a._scrim&&(u.removeClass(c.DISABLE_SCROLL_CLASS),u.css("top",""),a._scrim.addClass(t));a._frameworkWrapper.addClass(t)}function y(c){e.build(c);a.setupFocusTrap(c);b.on("a:"+c._type+":"+c._name+":contentUpdated a:"+c._type+":"+c._name+":contentUpdateFailed",function(b){a.updateFocusableElements(b)});b.trigger("a:"+c._type+":"+c._name+":created",c)}function z(d){d._contentStatus!==c.contentStatusCodes.CONTENT_LOADED&&g.addContent(d);w(d);a.setFocus(d);r(d);k.setOverlayStatus(d,c.overlayStatusCodes.ACTIVE);
b.trigger("a:"+d._type+":"+d._name+":presented",d);b.trigger("a:"+d._type+":presented",d);h.when("mash").execute(function(a){a.dispatchEvent({type:d._type+":willPresent",detail:{id:d._name,source:"mash-aui"}})})}function v(d){d._contentStatus!==c.contentStatusCodes.CONTENT_LOADED&&(k.setContentStatus(d,c.contentStatusCodes.NO_CONTENT),g.abortContentRequest(d));x(d);a.resetFocus(d);l(d);d._destroyAfterDismiss&&d.destroy();k.setOverlayStatus(d,c.overlayStatusCodes.INACTIVE);b.trigger("a:"+d._type+":"+
d._name+":dismissed",d);b.trigger("a:"+d._type+":dismissed",d);h.when("mash").execute(function(a){a.dispatchEvent({type:d._type+":willDismiss",detail:{id:d._name,source:"mash-aui"}})})}var q=b.$,t=b.constants.HIDE_CLASS,u=q("#a-page");return f.extend({_componentName:"modalFramework",init:function(a,b,c,d){this._super(a,b,c,d)},present:function(){this._overlayStatus!==c.overlayStatusCodes.ACTIVE&&(this._dismissReason=n,this._lastActiveParent=q(document.activeElement),this._presentedOnce||(y(this),
this._presentedOnce=!0),z(this))},dismiss:function(){if(this._overlayStatus!==c.overlayStatusCodes.INACTIVE)if(this._dismissReason||(this._dismissReason=d.dismissReasons.API_CALL),this._hasDismissAnimation){var a=this;(new p(function(c,d){b.trigger("a:"+a._type+":"+a._name+":beforeDismiss",{promiseToDismiss:{resolve:c,reject:d},dismissReason:a._dismissReason})})).then(function(){v(a)}).catch(function(b){a._dismissReason=n;if(b&&""!==b)throw Error(b);})}else v(this)},destroy:function(){e.destroy(this)},
getWrapper:function(){return this._frameworkWrapper[0]}})});h.when("A","prv:a-modal-framework-constants","a-modal-framework-exports","a-modal-framework-utils","a-modal-framework","3p-promise").register("a-modal-framework-handler",function(b,f,e,c,d,h){b.declarative(e.PRESENT_ACTION,"click",function(e){var a=e.$target;a.is(b.$(document.activeElement))||a.focus();(new h(function(a,b){var d=e.data;c.hasKeys(d,f.EXPLICIT_PARAMS)||b(f.errorMessages.MISSING_PARAMS);a(d)})).then(function(a){var b=e.$currentTarget,
c=b.data("overlayInstance");c||(c=new d(a.wrapper,a.content,a.options),b.data("overlayInstance",c));c._declarativeTrigger=c._declarativeTrigger||b;c.present()}).catch(function(a){throw Error(a);})});b.declarative(e.DISMISS_ACTION,["click","keydown"],function(c){var a=b.$(c.$currentTarget).closest("."+f.FRAMEWORK_WRAPPER_CLASS);if(0!==a.length&&(a=a.data("overlayInstance"))){var d="keydown"===c.type&&c.$event.which===b.constants.keycodes.ESCAPE;if("click"===c.type||"persistent"!==a._dismissStrategy&&
d)a._dismissReason=e.dismissReasons.CLOSE_TRIGGER,a.dismiss()}})})});
/* ******** */
'use strict';(function(e){var a=window.AmazonUIPageJS||window.P,c=a._namespace||a.attributeErrors,b=c?c("AmazonUISpotButton","AmazonUI"):a;b.guardFatal?b.guardFatal(e)(b,window):b.execute(function(){e(b,window)})})(function(e,a,c){e.when("A","a-component").register("a-spot-button",function(b,a){var c=a.create({_componentName:"spotButton",init:function(b,d){this._super(b,d)},mixin:["isEmpty","size"],isEnabled:function(){return!this._$element.prop("disabled")},hide:function(){this._$element.attr("data-a-visible",
!1);return this},setStatus:function(a){var d=this._$element,c=d.data(),k=c.incrementiconclasses;c=c.disabledincrementiconclasses;var f=d.find("[data-a-selector\x3d'icon']"),g=["normal","disabled"],h={normal:k,disabled:c};if(0>b.indexOfArray(g,a))return e.error(a+" is not a valid status"),!1;b.each(g,function(a){f.removeClass(h[a]);d.prop("disabled",!1)});d.prop("disabled","disabled"===a);f.addClass(h[a]);return this},show:function(){this._$element.attr("data-a-visible",!0);return this},toggle:function(){"true"===
this._$element.attr("data-a-visible")?this.hide():this.show();return this}});return function(a,b){return new c(a,b)}})});
/* ******** */
'use strict';(function(d){var f=window.AmazonUIPageJS||window.P,g=f._namespace||f.attributeErrors,c=g?g("AmazonUIStepper","AmazonUI"):f;c.guardFatal?c.guardFatal(d)(c,window):c.execute(function(){d(c,window)})})(function(d,f,g){d.when("A","jQuery","a-analytics").register("a-stepper-framework",function(c,m,f){function g(a){var b=m(a).first();if(b.data("stepperinstance"))return b.data("stepperinstance");var e={getStatus:function(){return b.data("a-value-status")},getValue:function(){return b.data("steppervalue")},
getName:function(){return b.attr("name")},getDecimalPrecision:function(){return b.data("decimalprecision")},getData:function(){var a=b.children();return"LEGEND"===a.eq(0).prop("tagName")?a.eq(1).data():a.eq(0).data()},setValue:function(a){r(b,a);return e},setValueWithDisplayString:function(a,c){t(b,a,c);return e},setStatus:function(a){n(b,a);return e},getElement:function(){return b.get(0)}};b.data("isspinbutton",b.find('[data-a-selector\x3d"spinbutton"]').is('[role\x3d"spinbutton"]'));b.data("stepperinstance",
e);return e}function u(a,b){var e=a.find('[data-a-selector\x3d"decrement"]'),c=a.find('[data-a-selector\x3d"decrement-icon"]'),d=a.find('[data-a-selector\x3d"increment"]'),v=a.find('[data-a-selector\x3d"increment-icon"]'),h=b.steppervalue,l=b.valuestep,f=h-l<b.valuemin;h=h+l>b.valuemax;l=f?"trash":"normal";var g=h?"disabled":"normal";a.attr("data-a-size");e.attr("aria-disabled",f);c.removeClass().addClass("a-icon a-icon-small-"+{normal:"remove",disabled:"remove-disabled",trash:"trash"}[l]);a.attr("data-a-decrement-status",
l);b.isspinbutton||e.attr("aria-label",f?b.valueminreachedlabel:b.decrementlabel);d.attr("aria-disabled",h);v.removeClass().addClass("a-icon a-icon-small-"+{normal:"add",disabled:"add-disabled"}[g]);a.attr("data-a-increment-status",g);b.isspinbutton||d.attr("aria-label",h?b.valuemaxreachedlabel:b.incrementlabel)}function k(a,b){var e=a.data(),q=Math.pow(10,e.decimalprecision?e.decimalprecision:0);b=Math.round((e.steppervalue+b*e.valuestep)*q)/q;b={$stepperElement:a,stepperElement:a.get(),stepper:g(a),
newValue:b};c.trigger("a:stepper:value:change",b);(e=a.attr("name"))?c.trigger("a:stepper:value:change:"+e,b):f.logError("[AUI] Stepper is missing required name attribute.","WARN",c.attributionChain(a.get(0)))}function p(a,b){a.attr(b,"");a.one("animationend",function(){a.removeAttr(b)})}function n(a,b){var e=a.find('[data-a-selector\x3d"spinbutton"]');if(0>c.indexOfArray(["normal","loading"],b))return d.error(b+" is not a valid status"),!1;a.attr("data-a-value-status",b);a.data().isspinbutton&&(a=
{loading:a.data().loadingstatelabel},e.attr({"aria-valuetext":a[b]}))}function r(a,b){var e=a.data();return t(a,b,b.toFixed(e.decimalprecision?e.decimalprecision:0))}function t(a,b,e){var c=a.data(),f=c.steppervalue;if(f!==b){var d=b<f,h=c.valuemin;if(!(b>(c.valuemax||Infinity)&&!d||b<h&&d)){var g=d?"data-a-animate-up":"data-a-animate-down";a.data("steppervalue",b);a.attr("data-steppervalue",b);a.data("displaystring",e);a.attr("data-displaystring",e);u(a,c);f!==h||d?b===h&&d&&p(a.find('[data-a-selector\x3d"decrement-icon"]'),
g):p(a.find('[data-a-selector\x3d"decrement-icon"]'),g);setTimeout(function(){var b=a.find('[data-a-selector\x3d"spinbutton"]'),e=a.find('[data-a-selector\x3d"value"]'),d=c.steppervalue,f=c.valuemaxreachedlabel,h=c.valueminreachedlabel,m=d<=c.valuemin,l=d>=c.valuemax;d=c.displaystring?c.displaystring:d;if(c.isspinbutton){var k=d;l&&(k=d+", "+f);m&&(k=d+", "+h);b.attr({"aria-valuenow":d,"aria-valuetext":k})}e.text(d);n(a,"normal");p(a.find('[data-a-selector\x3d"value"]'),g)},116.5)}}}c.declarative("a-stepper",
"click",function(a){a.$event.stopPropagation();a.$event.preventDefault()});c.declarative("a-stepper-spinbutton","keydown",function(a){var b=a.$currentTarget.closest('[data-a-component\x3d"stepper"]'),c=a.$event.which;38!==c&&40!==c||a.$event.preventDefault();40===c&&k(b,-1);38===c&&k(b,1)});c.declarative("a-stepper-decrement","click",function(a){a=a.$currentTarget.closest('[data-a-component\x3d"stepper"]');0!==a.length&&k(a,-1)});c.declarative("a-stepper-increment","click",function(a){a=a.$currentTarget.closest('[data-a-component\x3d"stepper"]');
0!==a.length&&k(a,1)});return{getStepper:g,setStatus:n,setValue:r}});"use strict";d.when("a-stepper-framework").register("a-stepper",function(c){return{getSteppersByName:function(d){return Array.prototype.map.call(document.querySelectorAll('[data-a-component\x3d"stepper"][name\x3d"'+d+'"]'),c.getStepper)},getStepper:c.getStepper,getStepperByName:function(d){return c.getStepper(document.querySelector('[data-a-component\x3d"stepper"][name\x3d"'+d+'"]'))}}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("AmazonUIToast","AmazonUI"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(f){var e=window.AmazonUIPageJS||window.P,g=e._namespace||e.attributeErrors,d=g?g("AmazonUIAnalytics","AmazonUI"):e;d.guardFatal?d.guardFatal(f)(d,window):d.execute(function(){f(d,window)})})(function(f,e,g){(function(){var d=function(a,b){var c,d;null===(d=null===(c=e.ue)||void 0===c?void 0:c.event)||void 0===d?void 0:d.call(c,a,"aui-analytics",b)},f=function(){var a;return(null===(a=e.uept)||void 0===a?void 0:a.pageType)||"Unknown"},g=function(a){var b,c=null===(b=e.getComputedStyle)||
void 0===b?void 0:b.call(e,a);if(c){b="hidden"===c.visibility;var d="0"===c.opacity;if("none"===c.display||b||d)return!1}a=a.getBoundingClientRect();b=a.height;c=a.right;b=0<a.width&&0<b;a=a.left<document.body.getBoundingClientRect().width&&0<c;return b&&a},h=function(a){a=a.getBoundingClientRect();return a.width*a.height},l=[{name:"button",cssSelector:".a-button"},{name:"carousel",cssSelector:".a-carousel-container"},{name:"price",cssSelector:".a-price"},{name:"stars",cssSelector:".a-icon-star, .a-icon-star-mini, .a-icon-star-small, .a-icon-star-medium"},
{name:"table",cssSelector:"table.a-normal, table.a-bordered, table.a-keyvalue, table.a-lineitem"}],m=function(){var a={};l.forEach(function(b){var c=document.querySelectorAll(b.cssSelector);c=Array.from(c).filter(g).length;a[b.name]=c});return a},n=function(){var a=document.querySelectorAll('[data-cy\x3d"asin-faceout-container"]'),b=0;Array.from(a).filter(g).forEach(function(a){b+=h(a)});a=h(document.body);a=b/a;a={pageType:f(),puiProportion:a};d(a,"aui_analytics.PuiProportion.1")},p=function(){var a=
document.querySelectorAll(".a-price");return Array.from(a).filter(g)},q=function(){var a=0,b=0;p().forEach(function(c){null!==c.closest('[data-csa-c-content-id\x3d"apex"]')?a++:b++});var c={pageType:f(),apexPriceCount:a,nonApexPriceCount:b};d(c,"aui_analytics.PriceCount.3")},k=function(){setTimeout(function(){var a;try{if(.01>Math.random()){var b={pageType:f(),componentCounts:m()};d(b,"aui_analytics.ComponentCount.2");n();q()}}catch(c){null===(a=e.ueLogError)||void 0===a?void 0:a.call(e,c,{logLevel:"WARN",
attribution:"AmazonUIAnalytics:initAnalytics"})}},1500)};"complete"===document.readyState?k():e.addEventListener("load",k)})()});
/* ******** */
(function(c){var a=window.AmazonUIPageJS||window.P,d=a._namespace||a.attributeErrors,b=d?d("AmazonUI","AmazonUI"):a;b.guardFatal?b.guardFatal(c)(b,window):b.execute(function(){c(b,window)})})(function(c,a,d){a.pcv=a.pcv||{};a.pcv.AmazonUI="086b9c1dee08ebd0c94491881d1a1a5f7072564e"});
/* ******** */
