(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;1a.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=A?(clearTimeout(f),f=null,v=C,e=a.apply(k,q),k=q=null):f||!1===c.trailing||(f=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,q,e,f,g,v=l.fn(this,a),x=function(){var a=b.now()- f;a?@\[\\\]^`{|}~])/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(f(a),function(a){b.addClass(a,"aok-hidden")})},show:function(a){b.each(f(a),function(a){b.removeClass(a, "aok-hidden")})}}},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 v=b.offset(a),t=b.size(a);a=v.top;d=t.height;var n=a+d;v=v.left;t=t.width;var A=v+t;return(a>=e&&ae&&n<=g||d>f&&a<=e&&n>=g)&&(v>=k&&vk&&A<=h||t>c&&v<=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&&ae[1]);return e},isFirefox:function(){return/Firefox/.test(h.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(h.ua)},isIETouchCapable:function(){return f.isIE10Plus&&/Touch;/.test(h.ua)},isMetroIEGuess:function(){var e=!0;try{e=new ActiveXObject("htmlfile")}catch(n){e=!1}return f.isIE10Plus&& !b.capabilities.mobile&&!e}},function(b,g){f[g]=h.safeFeatureTest(b)});return f});"use strict";p.when("p-detect","prv:a-capabilities","a-util","prv:a-private-util").register("a-detect",function(b,l,h,f){var g=h.copy(b),e=function(){var b=/(?:Android\s+|Windowshop.*Android\/|Android\/)(\d+(?:\.\d+)*)/.exec(f.ua);return b&&b[1]},n={};h.each({isAmazonApp:function(){return/(Windowshop|Amazon|AmazonBusiness|Amazon\.com)\//.test(h.cookies.get("amzn-app-id"))},isGen5App:function(){return/Windowshop.*(?:KFOT|KFTH|KFJWA|KFJWI|KFTT)/.test(f.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(f.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]=f.safeFeatureTest(b)});h.extend(g.capabilities,l);h.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===r?"":"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,h=setTimeout(function(){l(b)},0);if(0===b.length)clearTimeout(h), f=!1;else{var z=Date.now();b.shift().call();g+=Date.now()-z;50b.now()-e;)if(f(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,c=[];return function(b){Array.prototype.push.apply(c,b);if(!a){for(a=!0;f(c)!==k;);a=!1}}}(),B=0,w=function(){var a=function(a,d,k){var f= a.split(" "),h=[],v=d;!0===k&&(v=function(){d.apply(m,arguments);t(a,v)});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,v,n).event)});return{event:h.join(" "),callback:v}};b.each("ready load unload afterLoad scroll resize orientationchange zoom".split(" "),function(c){a[c]=function(b,d){a.call(this,c,b,d)}});return a}();a.prototype={isListening:z,on:w,one:function(a,c){var b=a.split(" ");if(1< b.length)p.error("A.one only accepts a single event name, but was provided with: "+b.length+", ("+a+")","A.events","one");else return w(a,c,!0)},off:function(a,c){if("object"===typeof a){var b=a.event;a=a.callback}else b=a,a=c;return t(b,a)},trigger:function(a){for(var c=arguments.length,b=Array(c),d=0;db._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())},t=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=0c?(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=h.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(gb.http.readyState&&(clearInterval(b.pollTimer),b.callbacks.failure(b,"Request Timeout", "Request Timeout"),a.complete())}function k(a,b,c){c=c||{};c=h.extend({},f.all,f[b],c);h.each(c,function(b,c){(b||""===b)&&a.setRequestHeader(c,b)});return a}function g(b,c,d,e,g,f,h,n,l,v){var q=b.http;q.open(c,d);k(q,c,l);b.timeout=e;b.callbacks.chunk=g||b.callbacks.chunk;b.callbacks.success=f||b.callbacks.success;b.callbacks.failure=h||b.callbacks.failure;b.callbacks.abort=n||b.callbacks.abort;v&&(q.withCredentials=!0);a.add(b);return{abort:function(){b.abort()}}}var f={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=h.delay(c,a.timeout,a)},get:function(a,b,c,d,e,k,f,h,n){if(b){var l=a.indexOf("?"),v=a.charAt(a.length-1);-1c?"all 0ms":"all "+c+"ms "+h);4+a.css("opacity")?this.fadeIn:this.fadeOut).call(this,a,b,c,e)},slideUp:function(a,d,c,e){var g=this.animate;a.css({height:a.innerHeight(),overflow:"hidden"}); b.delay(function(){g(a,{height:0},d,c,function(){a.hide();a.css({height:"",overflow:""});e&&e()})},0)},slideDown:function(a,d,c,e){var g=a.innerHeight(),f=this.animate;a.css({height:0,overflow:"hidden"});a.show();b.delay(function(){f(a,{height:g},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=f&&bf&&d<=h||a>g&&b<=f&&d>=h}var e=function(){var b={},e=0;return{get:function(e){return b[e.data("cacheKey")]},set:function(g){g.data("cacheKey")||(g.data("cacheKey",e),e++);b[g.data("cacheKey")]={top:g.offset().top, height:g.height()}},remove:function(e){e.data("cacheKey")&&delete b[e.data("cacheKey")]}}}();h();f();b.on("scroll",function(){f()});b.on("scroll",b.debounce(function(){h();f()},250));b.on("resize",f);b.on("a:image:lazyLoad",f);b.on.ready(f)});"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,h,f,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 f=g.capabilities.hires&&m.devicePixelRatio?m.devicePixelRatio:1,k=e.width()*f,n=e.height()*f,t=Number.MAX_VALUE,p=Number.MAX_VALUE,u=a.attr("src")||"",q,r=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<=r?c:a;Math.abs(a)e()?90:0:m.orientation:"height"===f?k[f]=e():"width"=== f?k[f]=n():"scrollTop"===f?k[f]=m.scrollY?m.scrollY:d.scrollTop():"scrollLeft"===f?k[f]=m.scrollX?m.scrollX:d.scrollLeft():"zoom"===f&&(k[f]=t()),k[f]!==g&&(b[f]=g);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===r?n()>e()?90:0:m.orientation,zoom:t()};h.on("beforeReady",function(){p(c.ALL)});var q={speed:0,degree:0,direction:"",positionX:0,positionY:0},y=[],B;d.bind("mousemove",f.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)});4e?"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,f.throttle(function(){var a=p(c.SCROLL);h.trigger(c.SCROLL,k,a)},100));var w={};f.each([c.RESIZE,c.ZOOM],function(a){w[a]={handler:function(){},lastViewport:f.copy(k),maxPollCount:5,pollCounter:5,pollInterval:100,intervalId:0}});w.resize.handler= function(){var b=[],e=w.resize;p("resize");var d=f.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=f.copy(k),f.each(b,function(a){h.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=f.diff(k,b.lastViewport);e.zoom&& (b.lastViewport=f.copy(k),h.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 f.copy(k)},cursor:function(){return f.copy(q)},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,h=["ms","moz","webkit", "o"],f=0;fb.indexOfArray(f,g[e]))return!1;return!0}var h=0,f=b.constants.declarativeEvents.split(" ");return{show:function(){this._$element.removeClass("a-hidden aok-hidden").show();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(f,e){var g=b.parseFunctionName(e);g||p.error.call({},"Please name all asynchronous event callbacks");if(f=f?f.split(" "):r){this.fnMap=this.fnMap||{};l(f)||p.error.call({},"That event is not supported!");var m=this;b.each(f,function(f){this.fnMap[f]=this.fnMap[f]||[];var l=this.fnMap[f][e]="a-component-event-"+h++;b.declarative(l,f,function(){try{e.apply(m,m.callbackArgs||[])}catch(a){p.logError.call({},a,"Error occurred in an asynchronous event callback","FATAL", (e.caller||"")+f+"handler:"+(g||"anonymous"))}});b.declarative.create(m._$element,l)},m)}},off:function(f,e){f=f?f.split(" "):r;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(t){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,h,f,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")&&f.increment("api:"+this._componentName)}});return{create:function(f){var g=f.mixin;g&&delete f.mixin;f=e.extend(f);g&&b.mixin(f.prototype,h,g);return f}}});"use strict";p.when("A","jQuery","a-component").register("a-alert",function(b,l,h){var f=["error","success","warning","info"],g=b.map(f,function(b){return"a-alert-"+b}).join(" "),e=b.map(f,function(b){return"a-alert-inline-"+ b}).join(" "),n=document.createElement("h4");n.className="a-alert-heading";var m=l(n),r=h.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(h){-1===b.indexOfArray(f,h)&&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+h)});return this}});return function(b,a){return new r(b,a)}});"use strict";p.when("jQuery","a-component","a-form-controls-api").register("a-checkbox",function(b,l,h){var f=h.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(){f(this,b)});return this},uncheck:function(){return this.check(!1)},toggleChecked:function(){this._$element.each(function(){h.toggleCheckboxState(this)});return this},isChecked:function(){for(var b=0,f=this._$input.length;bm)return 1}return 0}}});"use strict";p.when("A","3p-promise","load").register("a-pcv",function(b,l){var h;return{getData:function(){h||(h=new l(function(b,g){var e=m.pcv.AmazonUI;e?(document.documentElement.setAttribute("data-aui-version",e),b(e)):g(Error("Package closure version of AmazonUI is not found on the page"))})); return h}}})}); /* ******** */ (function(g){var c=window.AmazonUIPageJS||window.P,n=c._namespace||c.attributeErrors,e=n?n("AmazonUIBaseJS@declarative","AmazonUI"):c;e.guardFatal?e.guardFatal(g)(e,window):e.execute(function(){g(e,window)})})(function(g,c,n){"use strict";g.when("jQuery","a-util","a-events","a-constants","prv:a-guard","prv:csa-logger").register("a-declarative",function(e,k,p,c,g,n){function q(a){var d=e(a.currentTarget),b=e(a.target);if("submit"===a.type){var l=b.closest("form");l.length&&(b=l)}if(l=d.data("action"))a= {$target:b,$currentTarget:d,targetTag:b.prop("tagName").toLowerCase(),type:a.type,$event:a,$declarativeParent:d},t(l,a)}function t(a,d){var b=d.$event,l=d.$target,e=d.$currentTarget,c=d.type;a=a.split(" ");k.each(a,function(a){var h=r[a]||{},f=e.data(a),m=k.extend({},d,{action:a,data:f});a="a:declarative:"+a;var g=a+":"+c;p.trigger(a,m);p.trigger(g,m);m=!1;f?m=!!f.allowLinkDefault:h&&(m=!!h.allowLinkDefault);"click"!==b.type||m?h=!1:(h=l.closest("a"),h=h.length&&("#"===h[0].href||b.currentTarget=== h[0]||h.parent(".a-declarative").length));h&&b.preventDefault()})}var r={};e(document).delegate(".a-declarative",c.constants.declarativeEvents,q);e(document).delegate(".a-gesture","tap swipe swipe-horizontal swipe-vertical pan-horizontal pan-vertical doubleTap",q);c=function(){switch(arguments.length){case 2:var a=arguments[0];var d=arguments[1];break;case 3:a=arguments[0];var b=arguments[1];d=arguments[2];break;case 4:a=arguments[0];b=arguments[1];var e=arguments[2];d=arguments[3]}if(a){"string"=== typeof a&&(a=k.trim(a).split(" "));var f=this;k.each(a,function(a){var c="a:declarative:"+a;r[a]=e||{};b?(b="string"===typeof b?k.trim(b).split(" "):b,k.each(b,function(b){p.on.call(f,c+":"+b,function(){return g.guardTimeFn(f,d).apply(this,arguments)});"click"!=b&&"swipe"!=b||n.declarative(a,b)})):p.on.call(f,c,d)})}};c.create=function(a,d,b){var c=a.jquery&&a.length?a:e(a);if(c.length&&d){var f=c.data("action");c.data("action",f?f+" "+d:d).data(d,b?b:{});c.addClass("a-declarative")}return a};c.remove= function(a,d){var b=a.jquery&&a.length?a:e(a);if(!b.length)return a;var c=b.data("action");if(!c)return a;var f=c.split(" ");d?(d=d.split(" "),k.each(d,function(a){var c=k.indexOfArray(f,a);0<=c&&(f.splice(c,1),b.data(a,null))})):(k.each(f,function(a){b.data(a,null)}),f=[]);f.length?b.data("action",f.join(" ")):b.data("action",null).removeClass("a-declarative");return a};return{declarative:c}});g.register("prv:csa-logger",function(){if(c.csa)var e=csa("PageTiming",{producerId:"csa",schemaId:"csa.InteractionFailuresDependencies.1"}); return{declarative:function(c,g){e&&e("mark","functional:aui-da-"+c+":"+g)},element:function(e,g){c.csa&&e&&e instanceof HTMLElement&&csa("Content",{element:e})("mark","functional:"+g)}}})}); /* ******** */ (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=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(c){var e=window.AmazonUIPageJS||window.P,f=e._namespace||e.attributeErrors,a=f?f("AmazonUIMeter","AmazonUI"):e;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,e,f){c.when("A","ready").register("a-meters",function(a){var b=a.$;if(document.getElementsByClassName){var c=function(a){a.removeClass("a-meter-unfilled").addClass("a-meter-filled")};b(".a-meter-bar").not(".a-manual-animation").each(function(){var d=b(this);a.onScreen(d,0)||d.addClass("a-meter-unfilled")}); b("body").addClass("a-meter-animate");a.on("resize orientationchange scroll",function(d){b(".a-meter-unfilled").each(function(){var d=b(this);a.onScreen(d,0)&&c(d)})});a.on("a:popover:afterShow",function(a){"ajax"!==a.popover.currentDataStrategy&&(a=a.popover.$popover.find(".a-meter-unfilled"),a.length&&c(a))});a.on("a:popover:ajaxContentLoaded",function(d){var b=d.popover.$popover.find(".a-meter-bar").not(".a-manual-animation");b.length&&(b.addClass("a-meter-unfilled"),a.delay(function(){c(b)},17))})}})}); /* ******** */ (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(f){return"string"===typeof f}function g(f){return f&&f.nodeType!==z}function d(f){return""=== f?"\x3cdiv\x3e\x3c/div\x3e":f?m(f)||g(f)?f:d(f.content):null}function k(f){f&&(m(f)||g(f)?f=!0:f.content=k(f.content));return f}return{addElementToDom:function(f,d){if(d){if(m(d))f.html(d);else if(g(d))if(e(d).hasClass("a-carousel-card-fragment")){var c=e(d).clone();f.empty().append(c.contents())}else f.empty().append(d);!0!==d&&f.removeClass("a-carousel-card-empty")}},clearElementFromItem:k,getElementFromItem:d,isElement:g,isString:m}});"use strict";n.register("a-carousel-circular-utils",function(){function e(e){var d= 0e&&(e=k+e);return e},relativeIndexFromIndex:function(e, d,k){var f=1;if(0d?f=e-d+1:e=this.items[0].width?160:this.items[0].width}};g.measure=function(f){var h=this.dom.$carousel,c=this.dom.$viewport,b={};f&&(f=f.split(" "));if(!f||-1e&&(e=1);a.setAttr("pageNumber",e);a.setAttr("totalPages",Math.ceil(a.getAttr("set_size")/b));l=a.getAttr("ajax");b>c&&(l&&l.prefetch_next_page?a.strategies.ajax.wantNextPage(a):a.strategies.ajax.wantCurrentPage(a))});a.onChange("set_size", function(b,e){var l=a.getAttr("pageSize"),c=a.getAttr("fetchedItems");a.setAttr("totalPages",Math.ceil(b/l));ba.getAttr("set_size"))return c.ajax.init(a),!1;a.measure();e.each(a.strategies,function(b){b.init(a)});c=a.getAttr("pageSize");d=a.getAttr("set_size");a.setAttr("totalPages",Math.ceil(d/c));p(a);a.setAttr("isInTab",0a.getAttr("pageNumber")&&a.dom.$container.find(".a-carousel-restart-container").hide(), a.getAttr(d.NO_TRANSITION)||a.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 k(a,b,c,d){a.getAttr("show_partial_next")&& !a.getAttr("force_minimum_gutter_width")&&(b-=c/10);a=a.getAttr("minimum_gutter_width");var l=0,p=!0;for(b-=a;0b&&l--;return e.isFiniteNumber(l)&&0f&&(d=f);b-=c*d;a.getAttr("show_partial_next")?(a=b-l*(d+1),h&&(a+=l),a/=c,b-=c*(.5d&&(d=c[f].outerHeight||c[f].height);d>b&&(a.updateDimensionsCache({viewport:{height:d,outerHeight:d}}),a.setAttr("maxHeight", d),1===b?a.dom.$viewport.height(d):e.animate(a.dom.$viewport,{height:d},a.getAttr("height_animation_speed"),"linear"))}else a.dom.$viewport.css("height","")}function c(a){a.onChange("pageNumber",function(){a.getAttr("hide_off_screen")&&a.dom.$carousel.children("li").css("visibility","")});a.onChange("pageSize",function(b,c){b>c&&h(a)});a.onChange("loading",function(b){b||h(a)});a.onChange("firstVisibleItem",function(){h(a)});a.onChange("animating",function(b){if(!b&&a.getAttr("hide_off_screen")){var c= a.getAttr("firstVisibleItem")-1,d=c+a.getAttr("pageSize")-1;a.getAttr("show_partial_next")&&d++;a.dom.$carousel.children("li").each(function(a,b){a=a>=c&&a<=d;m(b).css("visibility",a?"":"hidden")})}});a.onChange("single_page_align minimum_gutter_width",function(){b(a)});a.onChange("minimum_gutter_width",function(){b(a)})}function b(a){var b=a.getDimensions(),c=b.viewport.width;b=b.getFirstCardWidth();var d=a.getAttr("minimum_gutter_width"),l=a.getAttr("set_size"),h=a.getAttr("first_item_flush_left"), g=k(a,c,b,h),m=f(a,c,b,g,d,l,h);a.setAttr("currentGutter",m);a.setAttr("pageSize",g);var w=a.dom.$carousel,n=w.children("li");d=n.length;var t=a.getAttr("totalPages"),A=a.getAttr("pageNumber"),C=a.getAttr("firstVisibleItem"),B=(A-1)*g+1;A>t?(C=(t-1)*g+1,a.setAttr("pageNumber",t),a.setAttr("firstVisibleItem",C)):C!==B&&(t=Math.ceil(C/g),C=(t-1)*g+1,a.setAttr("pageNumber",t),a.setAttr("firstVisibleItem",C));var F=C-1,G=F+g-1;a.getAttr("show_partial_next")&&G++;var H=a.getAttr("hide_off_screen"),I=m+ "px",J=b+"px",z;n.each(function(a,b){z=!H||a>=F&&a<=G;b.style[e.capabilities.rtl?"marginRight":"marginLeft"]=h&&0===a?0:I;b.style.visibility=z?"":"hidden";b.style.width=J});var D;a.getAttr("first_item_flush_left")?(m=n.first().outerWidth(!0),1=l?(t=c,A=a.getAttr("single_page_align"),w.toggleClass("a-text-right","right"===A),w.toggleClass("a-text-center","center"===A),"center"===A&&n.first().css("margin-left", 0)):w.removeClass("a-text-right a-text-center");t=g>=l?c:t;w.css("width",t+"px");c={carousel:{width:t,outerWidth:w.outerWidth()},items:[]};for(l=0;lb&&(c.setAttr("maxHeight",a),g.capabilities.transition?1=== b?c.dom.$viewport.height(a):e.animate(c.dom.$viewport,{height:a},c.getAttr("height_animation_speed"),"linear"):c.dom.$viewport.height(a),c.updateDimensionsCache({viewport:{height:a,outerHeight:a}}))}else c.dom.$viewport.css("height","")}function f(c){c.onChange("animating",function(b){b||k(c)});c.onChange("loading",function(b){b||k(c)});c.onChange("pageSize",function(b,a){c.dom.$carousel.children("li").slice(b).remove();if(b>a){a=c.getAttr("set_size");var e=c.getDimensions().getFirstCardWidth(),f= c.getAttr("currentGutter"),h=c.getAttr("fetchedItems"),l=c.getAttr("firstVisibleItem")-1,g=c.dom.$carousel.children("li"),v=document.createDocumentFragment();if(m.isArray(h)){for(var q=g.length;q=a&&g.removeClass("a-carousel-card-empty"); v.appendChild(g[0])}c.dom.$carousel.append(v)}k(c)}});c.onChange("set_size",function(b,a){var d=c.getAttr("pageNumber"),f=c.getAttr("totalPages"),g=c.dom.$carousel.children("li");d===f&&b>a&&(g.length&&c.dom.$carousel.children("li").each(function(a,b){e.trim(b.innerHTML)||(b.className+=" a-carousel-card-empty",b.innerHTML=c.getStaticLoader())}),0===a&&h(c))});c.onChange("single_page_align minimum_gutter_width",function(){h(c)});c.onChange("minimum_gutter_width",function(){h(c)})}function h(c){var b= c.getDimensions(),a=b.viewport.width,d=b.getFirstCardWidth(),f=c.getAttr("minimum_gutter_width");b=c.getAttr("set_size");var h=c.getAttr("minimum_gutter_width");c.getAttr("set_size");h=Math.max(Math.floor(a/(d+h)),1);h=e.isFiniteNumber(h)?h:1;var l=h;"stretch"===c.getAttr("single_page_align")&&l>b&&(l=b);l=Math.ceil((a-d*l)/(l+1));e.isFiniteNumber(l)||(l=f);var g=l;c.setAttr("currentGutter",g);c.setAttr("pageSize",h);l=c.dom.$carousel;var k=l.children("li");f=k.length;d+=g;var m=f*d,w=Math.min(h, b);c.dom.$carousel.children("li").slice(w).remove();k.css("margin-left",g+"px");h>=b?(m=a,a=c.getAttr("single_page_align"),l.toggleClass("a-text-right","right"===a),l.toggleClass("a-text-center","center"===a),"center"===a&&k.first().css("margin-left",0)):l.removeClass("a-text-right a-text-center");for(a={carousel:{width:m,outerWidth:l.outerWidth()},items:[]};f--;)a.items.push({outerWidth:d});c.updateDimensionsCache(a);c.triggerEvent("repaint")}return{repaint:h,init:function(c){var b=c.getAttr("minimum_gutter_width"); b||(b=15,c.setAttr("minimum_gutter_width",b));c.setAttr("currentGutter",b);b=c.getAttr("height_animation_speed");e.isFiniteNumber(b)||c.setAttr("height_animation_speed",200);f(c);h(c);b=c.getDimensions();c.dom.$container.find(".a-carousel-left, .a-carousel-right, .a-carousel-viewport").css("height",Math.max(b.viewport.height,b.items[0]?b.items[0].height:0)+"px");b=c.getAttr("firstVisibleItem");1d?-1:1:isNaN(d)?NaN:0:NaN}function f(d,b){d.getAttr("pageNumber");d.getAttr("pageSize");var a=d.getAttr("firstVisibleItem"),c=d.getAttr("delay_time"),f=d.dom.$carousel.children("li"),h=f.filter(".a-carousel-card-empty"); h.length&&d.setAttr("loading",!0);h.each(function(l,p){var r=m(p);p=f.index(p)+a-1;var k=b[p];k&&e.delay(function(){g.addElementToDom(r,g.getElementFromItem(k));l===h.length-1&&d.setAttr("loading",!1)},0+c)})}function h(d,b,a){a=a||{};var c=d.getAttr("pageNumber");if(b!==c){var f=d.getAttr("set_size"),h=d.getAttr("totalPages"),l=d.getAttr("circular"),r=d.getAttr("pageSize"),m=a.delayTime||d.getAttr("delay_time"),q=k(a.direction)||NaN;!l&&1>b?b=1:!l&&b>h?b=h:l&&1>b?b=h:l&&b>h&&(b=1);q||(q=cn||1===q&&n>=r)d.setAttr("responsiveTimerId",z),d.setAttr("animating",!1);else{var b=d.dom.$carousel.children("li").eq(n),c=d.getAttr("fetchedItems")[a];c?g.addElementToDom(b,g.getElementFromItem(c)):a=c.length){b.setAttr(d.LOADING,!0);for(var l=b.dom.$carousel.children("li"),r,k,m= a.length;m--;)if(k=a[m],null===k&&p.push(m),k&&!e.equals(k,c[m])&&!0!==k&&!0!==k.content){var n=g.getElementFromItem(k);r=l.eq(m);r.length&&(g.addElementToDom(r,n),h[m]={width:r.outerWidth(),outerWidth:r.outerWidth(!0),height:r.outerHeight(),outerHeight:r.outerHeight(!0)},a[m]=g.clearElementFromItem(k))}p.length&&(e.each(p,function(b){l.eq(b).remove();a.splice(b,1)}),b.setAttr(d.SET_SIZE,b.getAttr(d.SET_SIZE)-p.length),b.triggerEvent("repaint"))}b.setAttr(d.FETCHED_ITEMS,a);b.updateDimensionsCache({items:h}); b.setAttr(d.LOADING,!1)}}var h=e.capabilities.touch?2E3:3E3,c=e.capabilities.rtl?-1:1;return{wrapToFirst:function(b){var a=b.getAttr(d.PAGE_SIZE),e=b.getDimensions().getFirstCardWidth(),c=this;b.gotoPixel(a*e*-1,{animationDuration:0,callback:function(){b.setAttr(d.CURRENTLY_WRAPPING,!1);c.gotoPage(b,1)}})},wrapToLast:function(b){b.getAttr(d.PAGE_SIZE);var a=b.getAttr(d.TOTAL_PAGES),e=this,c=b.getDimensions().carousel.width;b.gotoPixel(c,{animationDuration:0,callback:function(){b.setAttr(d.CURRENTLY_WRAPPING, !1);e.gotoPage(b,a)}})},gotoPage:function(b,a,e){e=e||{};(void 0===e.animationDuration||0a?(a=1,e.animationDuration=Math.pow(b.getAttr(d.ANIMATION_SPEED)*b.getAttr(d.SPRINGINESS))):!f&&a>c&&(a=c,e.animationDuration=Math.pow(b.getAttr(d.ANIMATION_SPEED),b.getAttr(d.SPRINGINESS)));this.gotoIndex(b,b.getAttr(d.PAGE_SIZE)*(a-1)+1,e)},gotoIndex:function(b, a,c){c=c||{};(void 0===c.animationDuration||0a){if(f){h=-1*k;var p=function(){g&&g();l.wrapToLast(b)}}}else a>b.getAttr(d.SET_SIZE)?f&&(h=b.getAttr(d.CURRENT_PIXEL)+ k,p=function(){g&&g();l.wrapToFirst(b)}):h=b.getItemOffset(a);p?(b.setAttr(d.CURRENTLY_WRAPPING,!0),c.callback=p,c.easingFunction=c.easingFunction||b.getAttr(d.WRAP_EASING),c.animationSpeed=1.3*(e.isFiniteNumber(c.animationSpeed)?c.animationSpeed:b.getAttr(d.ANIMATION_SPEED))):c.callback=g;!1!==h&&this.gotoPixel(b,h,c)},gotoPixel:function(b,a,c){var f=b.getAttr(d.CURRENT_PIXEL);if(a!==f){c=c||{};var g=c.easingFunction||"ease-out",l=c.callback;b.getViewportWidth();if(void 0!==c.animationDuration)var h= c.animationDuration;else h=e.isFiniteNumber(c.animationSpeed)?c.animationSpeed:b.getAttr(d.ANIMATION_SPEED),f=Math.abs(a-f),h=0===h?0:Math.floor(f/h*1E3);0c*a.velocityX,k=f;l&&ha&&k===l||0a?b.gotoNextPage(f):b.gotoPrevPage(f)):(!h&&(h=b.getAttr(d.SPRINGINESS),0>g&&0a.touchDeltaX)&&(l=Math.pow(Math.abs(a.touchDeltaX),h),g=0>=g?-1*l:f+l),b.gotoPixel(g,{easingFunction:b.getAttr(d.TOUCH_EASING),animationDuration:0,silent:!0}))}},init:function(b){var a=b.getAttr(d.ANIMATION_SPEED); e.isFiniteNumber(a)||b.setAttr(d.ANIMATION_SPEED,h);void 0===b.getAttr(d.WRAP_EASING)&&b.setAttr(d.WRAP_EASING,"linear");k(b);b.onChange(d.FETCHED_ITEMS,function(a,d){f(b,a,d)});b.onChange(d.SET_SIZE,function(a,d){a>d&&k(b)})}}});"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 k(a){var b=a.dom.$carousel.children("li").length,f=a.getAttr(d.SET_SIZE),l=f-b,g=c(a,b);0b?(b=a-b,a=d-b):(a=b-a,b=d-a);c.direction=a<=b?v.CLOCKWISE:v.COUNTER_CLOCKWISE; c.quantity=Math.min(a,b);return c}function c(b,d){return b.dom.$carousel.children("li").eq(a(b,d)-1)}function b(a,b){var c=Math.floor(a.getAttr(d.PEEK_WIDTH)||0);return a.getItemOffset(b)-c}function a(a,b){b=b||1;var c=a.getAttr(d.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);a=a.getAttr(d.SET_SIZE);return g.relativeIndexFromIndex(b,c,a)}function p(b,f,l){if(b.getAttr(d.ANIMATING))b.once(d.ANIMATING,function(){p(b,f,l)});else{var g=b.getDimensions().items,h=Math.min(f.length,b.getAttr(d.SET_SIZE));if(!l|| f.length>=l.length)b.setAttr(d.LOADING,!0),e.each(e.range(h),function(d){var h=d+1,k=f[d],B=c(b,h),t=k&&!(!0===k||!0===k.content);k&&!e.equals(k,l[d])&&B.length&&t&&(h=a(b,h),g[h]={width:B.outerWidth(),outerWidth:B.outerWidth(!0),height:B.outerHeight(),outerHeight:B.outerHeight(!0)},m.addElementToDom(B,m.getElementFromItem(k)),f[d]=m.clearElementFromItem(k))}),b.setAttr(d.LOADING,!1);b.setAttr(d.FETCHED_ITEMS,f);b.updateDimensionsCache({items:g})}}function u(a){var b={reached:!1,left:!1,right:!1}; if(!(2d&&k(a)});a.onChange(d.PEEK_WIDTH,function(b,c){b!==c&&(b=a.getAttr(d.FIRST_VISIBLE_ITEM),a.gotoIndex(b))})},afterInit:function(a){f(a,this);a.strategies.display.repaint(a);a.gotoPage(a.getAttr(d.PAGE_NUMBER))},gotoPage:function(a,b,c){c=c||{};var e=a.getAttr(d.TOTAL_PAGES);0q*f.velocityX;g=b(c,k?h+g:h-g);l=Math.abs(1E3*(k?l-g:l+g)/f.velocityX);k=1.2*e.viewport().width;x(c,0>q*f.touchDeltaX?"right":"left", {animationDuration:Math.min(Math.max(l,300),k),easingFunction:c.getAttr(d.TOUCH_EASING)})},onPan:function(c,f){c.setAttr(d.ANIMATING,!0);var l=c.getAttr(d.PAGE_NUMBER),g=a(c,c.getAttr(d.FIRST_VISIBLE_ITEM));g=b(c,g);g=u(c).reached?g-q*f.touchDeltaX*.4:g-q*f.touchDeltaX;f.ended?(g={easingFunction:c.getAttr(d.TOUCH_EASING),animationSpeed:.95*e.viewport().width,silent:!0},Math.abs(f.touchDeltaX)>=.4*c.getViewportWidth()?x(c,0>q*f.touchDeltaX?"right":"left",g):c.gotoPage(l,g)):c.gotoPixel(g,{easingFunction:c.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 u(a));return p[a.__id]}function k(b){for(var c=b.countItems(),d=[],f=0;fb){for(var e=0;e=d.length)for(var f=b.getItems(),l=c.length,h;l--;)(h=c[l])&&!e.equals(h,d[l])&&!0!==h&&!0!==h.content&&b.hasItem(f,l)&&(c[l]=b.insertFetchedItem(h,f,l));b.setAttr(g.FETCHED_ITEMS,c);a(b)}function c(a){a.attachScrollListener(function(){var c=a.hasEmptyCard();var d=a.getAttr("auto_adjust_height_freescroll"),e=a.getAttr("startIndexForHeightCheck"), f=a.countItems();c||d&&ec.right&&(b.scrollLeft+=a.right-c.right)})}});var n={ajaxLock:!0,startIndexForHeightCheck:0,lastScrollPosition:-1,currentScrollPosition:-1,maxHeight:1};n[g.NO_TRANSITION]=!0;n[g.HIDE_OFF_SCREEN]=!1;n[g.AUTO_ADJUST_HEIGHT]=!1;n[g.HEIGHT_ANIMATION_SPEED]=200;return{gotoIndex:e.constants.NOOP,gotoNextpage:e.constants.NOOP,gotoPrevPage:e.constants.NOOP, gotoPage:e.constants.NOOP,initAttrs:n,init:function(a){var l=d(a);l.showItems();l.autorotate();k(l);f(l);c(l);l.onChange(g.FETCHED_ITEMS,function(a,c){h(l,a,c);b(l)});e.on.resize(function(){b(l)})},afterInit:function(a){var c=d(a);e.delay(function(){c.setAttr("ajaxLock",!1);b(c)})},prepareFetchedItems:k,addEmptyCards:f,handleItemChanges:h,detectEmptyCardsLoadingThreshold:b,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,k,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:k,slideCircular:f,none:{gotoIndex:e.constants.NOOP,gotoNextPage:e.constants.NOOP,gotoPrevPage:e.constants.NOOP,gotoPage:e.constants.NOOP, initAttrs:m,init:function(c){c.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,c,b){f.triggerEvent("beforeAjax",{url:g,params:c});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{c.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 b=f.getAttr("fetchedItems"),h=f.getAttr("ajax"),k=[],l,m=a.length;m--;)l=a[m],null===l&&k.push(m),l&&(l.content||""===l.content?l.content=e.trim(l.content):l=e.trim(l)),b[c.offset+m]=l;h.remove_nulls&&h.id_list&&k.length&&(e.each(k,function(a){h.id_list.splice(c.offset+a,1)}),f.setAttr("ajax", h));c.needSetSize&&f.init();f.setAttr("fetchedItems",b);f.setAttr("ajaxLock",!1);c.needSetSize&&f.getAttr("pageSize")>=b.length&&f.strategies.ajax.wantCurrentPage(f);f.triggerEvent("ajaxSuccess",{url:g,params:c})}},params:c,headers:b})}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!==k&&null!==d&&!e.objectIsEmpty(d)&&d.hasOwnProperty("data")&&e.isArray(d.data)?d.data:null}var k;return{getItems:function(d,g, c,b){var a=d.getAttr("ajax");d.setAttr("requestTimer",e.delay(m,a.fetch_delay,d,g,c,b))},wantNextPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var e=d.getAttr("pageSize"),c=2*e;d.getAttr("show_partial_next")&&c++;this.want(d,(d.getAttr("pageNumber")-1)*e,c)}else this.wantCurrentPage(d)},wantPrevPage:function(d){g(d);if(d.getAttr("ajax").prefetch_next_page){var e=d.getAttr("pageSize"),c=2*e;d.getAttr("show_partial_next")&&c++;this.want(d,(d.getAttr("pageNumber")-2)*e,c)}else this.wantCurrentPage(d)}, wantCurrentPage:function(d){g(d);var e=d.getAttr("pageSize"),c=d.getAttr("show_partial_next")?e+1:e;this.want(d,(d.getAttr("pageNumber")-1)*e,c)},want:function(d,e,c){if(!d.getAttr("ajaxLock")){g(d);var b=d.getAttr("ajax"),a=d.getAttr("set_size");if(b.url){var f=d.getAttr("fetchedItems"),h=b.id_list;h||(h=[]);var k=-1c?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 k=g.getAttr("requestTimer");k&&clearTimeout(k);g.setAttr("requestTimer",e.delay(d,500))}return{getItems:function(g,d,k){m(g,function(){var f=g.getAttr("async_provider");f&&f(d,k).then(function(f){var c=g.getAttr("fetchedItems"); e.each(f,function(b,a){c[d[a]]=b});g.setAttr("fetchedItems",c)})})},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,k){d=Math.max(0,d);k=Math.min(d+k,g.getAttr("set_size"));for(var f=g.getAttr("fetchedItems"),h=[];d< k;d++)f[d]||(h.push(d),f[d]=!1);if(h.length){var c,b=g.getAttr("ajax").id_list;b&&(c=e.map(h,function(a){return b[a]}));g.setAttr("fetchedItems",f,{silent:!0});this.getItems(g,h,c)}},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(a){var b=a.dom.$carousel,c=b.children("li"),d=a.getAttr(m.PAGE_SIZE),e=a.getAttr(m.FIRST_VISIBLE_ITEM), f=e-1,g=a.getAttr(m.TRANSITION_SLIDE_CIRCULAR_FIRST_CARD_IDX);if(a.getAttr(m.NO_TRANSITION))return c;if(c.length<=d)return b.children("li:not(:empty), li.a-carousel-card-empty");"slideCircular"===a.getAttr(m.TRANSITION_STRATEGY)&&(f=g-e-1,0===c.length%2&&--f);b=f=(f+2*c.length)%c.length;"peekCircular"===a.getAttr(m.DISPLAY_STRATEGY)&&--b;d=f+d;if("peekCircular"===a.getAttr(m.DISPLAY_STRATEGY)||a.getAttr(m.SHOW_PARTIAL_NEXT))d+=1;return c.slice(Math.max(b,0),Math.min(d,c.length))}function d(a,b,c, d){var h=function(){var c=g(a);(b?c.first():c.last()).find("a, button, input, select, textarea, [tabindex]:not([tabindex\x3d'-1'])").not(":disabled").first().focus();e.delay(function(){f(a)},a.getAttr(m.PAGE_SIZE)*a.getAttr(m.DELAY_TIME)+50)};if(0===c||0===d)e.delay(h,0);else{var k=function(b){b||(h(),a.unbind(m.ANIMATING,k))};a.onChange(m.ANIMATING,k)}}function k(a){var c=a.dom.$carousel.children("li"),d=a.getAttr(m.TRANSITION_STRATEGY),e=a.getAttr(m.SET_SIZE),f=e?{"aria-setsize":e}:{};if("swap"=== d){var g=a.getAttr(m.FIRST_VISIBLE_ITEM);c.each(function(a){var c=b(this);g+a>e?(c.removeAttr("aria-setsize"),c.removeAttr("aria-posinset")):(f["aria-posinset"]=g+a,c.attr(f))})}else c.each(function(a){f["aria-posinset"]=a+1;b(this).attr(f)})}function f(a){a=a.dom.$container;a.find(".a-carousel-accessibility-page-info").html(a.find(".a-carousel-page-count").text())}function h(a,b){if(!a.getAttr(m.NO_TRANSITION)){var c=a.dom.$carousel.children("li"),d=a.getAttr(m.TRANSITION_STRATEGY);a=a.getAttr(m.DISPLAY_STRATEGY); c=c.not(b);b.attr("aria-hidden",!1);c.attr("aria-hidden",!0);if("slideCircular"===d&&"peekCircular"!==a||"slideHorizontal"===d)b.css("visibility","visible"),c.css("visibility","hidden")}}function c(a,b){if(!a.getAttr(m.CIRCULAR)){var c=a.dom.$container;c.find(".a-carousel-goto-prevpage").attr("aria-disabled",1===b?"true":"false");c.find(".a-carousel-goto-nextpage").attr("aria-disabled",b===a.getAttr(m.TOTAL_PAGES)?"true":"false")}}var b=e.$;return{init:function(a){var b=a.getAttr(m.NAME);k(a);h(a, g(a));c(a,1);e.on("a:carousel"+(b?":"+b:"")+":repaint",function(){h(a,g(a))});a.onChange(m.SET_SIZE,function(b,c){k(a)});a.onChange(m.LOADING,function(b){a.getAttr(m.ANIMATING)||a.dom.$carousel.attr("aria-busy",(!!b).toString())});a.onChange(m.ANIMATING,function(b){a.getAttr(m.LOADING)||a.dom.$carousel.attr("aria-busy",(!!b).toString());!b&&a.getAttr(m.SET_SIZE)>a.getAttr(m.PAGE_SIZE)&&(b=a.getAttr(m.TRANSITION_STRATEGY),h(a,g(a)),"slide"!==b&&k(a))});a.onChange(m.PAGE_NUMBER,function(b){c(a,b);h(a, a.dom.$carousel.children("li"))})},afterInit:function(a){f(a)},gotoPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a,!0,b,c)},nextPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a,!0,b,c)},prevPage:function(a,b,c){a.getAttr(m.NO_TRANSITION)||d(a,!1,b,c)}}});"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;e=f.children(".a-carousel-card-empty");f=f.children("li").not(e);var g=f.length,c=g?{"aria-setsize":g}: {};e.attr("aria-hidden","true").removeAttr("aria-setsize").removeAttr("aria-posinset");f.each(function(b){c["aria-posinset"]=b+1;c["aria-hidden"]="false";d(this).attr(c)})}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,k){function f(a,b,c,d){var f=a.hasClass("a-begin"),g=0v?v:a;a!==b.leftOffset&&(d.animate(c,{left:a},0),b.leftOffset=a,b.isDragging=!0,b.dragCount++)}}function f(a){a.preventDefault();if(d.capabilities.touch||1===a.which){a=a.data.$switch;var b=a.data("a-switch-state");m(a,b.isDragging&&1b.midPoint:!b.isOn);b.isDragging= !1;t(a)}}function l(a,b,c){c={switchState:a,previousState:c};d.trigger("a:switch:"+b,c);a.name&&d.trigger("a:switch:"+a.name+":"+b,c)}function c(a){if(!a.data("a-switch-state")){var b=a.closest(".a-switch-row"),c=a.children(".a-switch-control"),d=b.find(".a-switch-label"),e=d.siblings("input"),k=e.attr("name"),l=b.hasClass("a-active"),g=!b.hasClass("a-disabled"),h=r.left,f=(a.width()-c.width()+r.right)*z;a.data("a-switch-state",{input:e,container:b,control:c,label:d,isDragging:!1,rightBoundary:f, leftBoundary:h,midPoint:f/2,initialX:null,leftOffset:l?f:h,maxLeftOffset:r.maxLeftOffset,isOn:l,isEnabled:g,name:k,dragCount:0,clicked:!1})}}function m(a,b){c(a);a=a.data("a-switch-state");var e=a.isOn,k=b!==a.isOn;a.isOn=b;var f=a.control,h=a.maxLeftOffset,g=a.isOn?a.rightBoundary:a.leftBoundary;g=h&&g>h?h:g;d.animate(f,{left:g},300,"ease-out");a.leftOffset=g;f=a.container;a.isOn?f.addClass("a-active"):f.removeClass("a-active");f=a.input;a.isOn?f.attr("checked","checked"):f.removeAttr("checked"); k&&l(a,"flip",e);b?l(a,"on",e):l(a,"off",e)}var p=function(a){a.bind("touchmove.a-switch-component",{$switch:a},g);a.bind("touchend.a-switch-component",{$switch:a},f);a.bind("touchcancel.a-switch-component",{$switch:a},f);a.bind("mouseup.a-switch-component",{$switch:a},f)},k=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")},x=function(a){return(a.originalEvent.touches[0]|| a.originalEvent.changedTouches[0]).pageX},n=function(a){h("body").bind("mousemove.a-switch-component",{$switch:a},g);h("body").bind("mouseup.a-switch-component",{$switch:a},f)},y=function(a){h("body").unbind("mousemove.a-switch-component",g);h("body").unbind("mouseup.a-switch-component",f)},A=function(a){return a.pageX},r={left:d.capabilities.rtl?1:-1,right:-3},z=d.capabilities.rtl?-1:1;e.when("prv:skin-vars").execute(function(a){r=a.toggle.bounds});var u=null,t=null,q=null;d.capabilities.touch?(u= p,t=k,q=x):(u=n,t=y,q=A);d.declarative("a-switch","touchstart",function(a){var b=a.$event;b.preventDefault();if(d.capabilities.touch||1===b.which){a=a.$declarativeParent;c(a);var e=a.data("a-switch-state");e.dragCount=0;e.clicked=!0;e.isDragging=!1;e.isEnabled&&(e.initialX=q(b),u(a))}});d.declarative("a-switch-label","click",function(a){a.$event.preventDefault();a=a.$target.closest(".a-switch-row").find(".a-switch");c(a);var b=a.data("a-switch-state");b.isEnabled&&m(a,!b.isOn)});e.when("ready").execute("a-switch-normalization", function(){h(".a-switch-input").each(function(){var a=h(this),b=a.next().children(".a-switch");m(b,a.prop("checked"))})});return{ensureInitialized:c,setOnState:m,setEnabled:function(a,b){c(a);a=a.data("a-switch-state");var d=a.container;b?d.removeClass("a-disabled"):d.addClass("a-disabled");a.isEnabled=b},SWITCH_STATE:"a-switch-state",SWITCH_CONTAINER_CLASS:"a-switch-row",SWITCH_CLASS:"a-switch"}})}); /* ******** */ (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=hf&&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}})}); /* ******** */ (function(n){var v=window.AmazonUIPageJS||window.P,x=v._namespace||v.attributeErrors,b=x?x("AmazonUIPopover@base","AmazonUI"):v;b.guardFatal?b.guardFatal(n)(b,window):b.execute(function(){n(b,window)})})(function(n,v,x){n.when("A","a-popover-base-factory").register("a-popover-base-apis",function(b,e){return{show:function(b){var c=e.get(b.$trigger?b.$trigger:b);if(c)return c.show.apply(c,arguments)},hide:function(b){var c=e.get(b);if(c)return c.unlock(1),c.hide.apply(c,arguments)},get:function(b){return e.get(b)}, remove:function(b){return e.remove(b)}}});"use strict";n.when("A","a-popover-util","a-popover-objectclass","a-popover-data","a-analytics").register("a-popover-base-factory",function(b,e,g,c,m){function h(a){return u[a]?u[a]:null}function k(a,d){return new g.PopoverClass(a,d)}function q(a,d){var b=null;if("number"===typeof a)b=h(a);else if("string"===typeof a)(b=l[a]?l[a]:null)||(b=h(a));else if("object"===typeof a)if(a.$popover)b=a;else if(a=f(a),b=a.data("a-popover-id"),b||(b=a.find(".a-declarative").eq(0), b=b.length?b.data("a-popover-id"):null),b=h(b),!b){var k=a.data("action");(k=k?a.data(k):null)&&k.name&&(b=k.name,b=l[b]?l[b]:null,!b||d&&b.type!==d?b=null:(d=(d=b.attrs("currentDataStrategy"))?c.getStrategyByName(d):c.guessStrategyByAttrs(b.attrs()))&&d.reusePopover?b.$trigger[0]!==a[0]&&(b.$trigger.data("a-popover-id",null),b.$trigger=a):b=null)}return b}function a(){r||(r=k({id:-1,$popover:p,$trigger:p,immersive:!0},{isActive:function(){return!0},hideMethod:function(){this.hideChildren()},showMethod:b.constants.NOOP})); return r}var f=b.$,d=1,l={},u={},p=f("\x3cdiv id\x3d'a-popover-root' style\x3d'z-index:-1;position:absolute;' /\x3e").appendTo("body"),r;return{getRoot:a,get:function(a,d){d=d?d:this?this.type:null;return(a=q(a,d))&&d&&a.type!==d?null:a},create:function(c,g){var e=f(c),p=g.attributes||{},r=g.typeSpecificFunctions||g.variant||{};g=g.actionCheck||!1;e.data("a-popover-id");var t=p.type,y=null;!t||e.hasClass("a-declarative")&&e.data("action")&&-1!==e.data("action").indexOf(t)||(e=b.declarative.create(e, "a-"+t),c=e[0]);if(g&&e.data("action")&&-1===e.data("action").indexOf(t))return null;t&&e&&(y=q(e));if(y)return y.type!==t?null:y;e=p;c=f(c);e.type?c&&c.length?(e=b.extend({id:d++,$trigger:c,$triggerWrapper:null},e),r=b.copy(r),r=k(e,r),u[r.id]=r,r.name&&(l[r.name]=r),c.data("a-popover-id",r.id),m.logNexus("aui_analytics.PopoverCloseUsage.1",{hasClose:!!e.closeButton,triggerAttribution:b.attributionChain(c[0]),label:"undefined"===typeof e.popoverLabel?null:e.popoverLabel,closeLabel:"undefined"=== typeof e.closeButtonLabel?null:e.closeButtonLabel}),c=r.$trigger.closest(".a-popover"),c=!r.attrs("immersive")&&c.length?h(c.data("a-popover-id"))||a():a(),r.parent=c,c.children.push(r)):r=null:r=null;return r},remove:function(a,d){a=this.get(a);var f=!1;if(a){f=a.id;if(a&&-1b.now()-k||(k=b.now(),b.delay(function(){h(document.activeElement).hasClass("a-popover-start")&&f.getLastTabbable().focus()},0))}});b.declarative("a-popover-a11y","focusin",function(a){var f=m(a.$target);f&&a.$target.length&&a.$target.hasClass("a-popover-end")&&!(q&&100>b.now()-q)&&(q=b.now(),b.delay(function(){f.getFirstTabbable().focus()},0))});b.declarative("a-popover-a11y", "keydown",function(a){var f=a.$event;f.keyCode===b.constants.keycodes.ESCAPE&&(a=m(a.$target),f.preventDefault(),a&&a.hide())});b.on("resize zoom",function(){g.getRoot().updatePosition()});if(c.isSafari&&b.capabilities.ios)b.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=b.$(v);a.scrollTop(a.scrollTop()+1)})})});"use strict";n.when("A","a-popover-base-apis","a-popover-base-handlers").register("a-popover-base", function(b,e,g){return e});"use strict";n.when("A","a-popover-util","a-popover-data","a-popover-position","a-popover-lightbox","a-popover-animate","prv:a-capabilities").register("a-popover-objectclass",function(b,e,g,c,m,h,k){function q(a,c){var k=-1,g=[1],p=-2;this.parent=null;this.children=[];this.typeSpecificFunctions={};this.attributes={position:"triggerVertical",alone:!1,immersive:!1,restoreFocusOnHide:!0};var q=function(){this.isActive()?this._willTriggerEvents&&e.trigger("visible",this):e.trigger("invisible", this);return this},r=function(a,l){var k=this.isActive(),c=this.getDataStrategy(),h=!this.$popover,e=l||h;l=!1;a=a||e;if(!e)for(var p=g.length;p--&&!e;)e=!u[g[p]];e&&(e=A.apply(this),e=d(e),h||(c.unloadContent(this),this.$container.remove(),l=!0),d("body").append(e),this.$container=e,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")||(e=parseInt(this.parent.$popover.css("z-index"),10),b.isFiniteNumber(e)||(e=this.parent.attrs("immersive")?1010:0),p=this.$trigger.closest(".a-sheet-web"),1===p.length&&(p=parseInt(p.css("z-index")),b.isFiniteNumber(p)&&(e=Math.max(p,e))),e=Math.max(299,100+e),this.$popover.css("z-index",e));if(c.shouldRefreshContent(this)||a)l||c.unloadContent(this), c.loadContent(this,h);this.typeSpecificFunctions.updateDimensions!==f&&this.typeSpecificFunctions.updateDimensions.apply(this);g=[];k&&t.call(this,[],!1);return this},t=function(a,d){function c(){k.updatePosition();var f=k.attrs("navigate");!d&&f&&k.attrs("navigate",!1);g.call(k,q,a);d&&e.trigger("show",k);r&&r.apply(k,a);d&&e.trigger("afterShow",k);k.$popover.attr("aria-hidden","false");"tooltip"!==k.type&&l.attr("aria-hidden","true");!d&&f&&k.attrs("navigate",f);p=2}var k=this;d=!!d;var h=k.typeSpecificFunctions, g=h.showMethod!==f?h.showMethod:n,u=h.beforeShowMethod!==f?h.beforeShowMethod:null,r=h.afterShowMethod!==f?h.afterShowMethod:null;p=1;k._willTriggerEvents=d;k.attrs("originalFocus",document.activeElement);k.$popover.css("visibility","hidden").addClass("a-popover-hidden").show();u&&u.apply(k,a);k.attrs("synchronous")?c():b.delay(function(){c()},0)};this.show=function(){var a=this,d=a.attrs("lightboxOptions")||null;if(a.isActive()||h.isAnimating(a))return this;a.lock(1);d&&m.lock(1);a.parent.$container&& a.parent.$container.is(".a-popover")&&a.parent.$container.attr("aria-hidden","true");a.attrs("alone")&&b.each(a.parent.children,function(d){d.isActive()&&d.id!==a.id&&!d.attrs("modeless")&&d.unlock().hide()});e.trigger("beforeShow",a);if(!a.$container||a.isDirty()||a.getDataStrategy().shouldRefreshContent(a))e.trigger("refresh",a),r.call(a);if(a.draggable){var f=a.$container;b.draggable(f,{handle:f.find(".a-popover-draggable-handle")})}d&&m.show(b.extend({popover:a},d));t.call(a,arguments,!0);b.delay(function(){a.unlock(1); d&&m.unlock(1)},0);return this};this.hide=function(){var a=this,k=a.typeSpecificFunctions,c=k.hideMethod!==f?k.hideMethod:w,g=k.beforeHideMethod!==f?k.beforeHideMethod:null,u=k.afterHideMethod!==f?k.afterHideMethod:null,r=a.attrs("lightboxOptions")||null;if(!a.isActive()||a.isLocked()||h.isAnimating(a))return this;p=-1;a.hideChildren();e.trigger("beforeHide",a);g&&g.apply(a,arguments);c.call(a,q,arguments);e.trigger("hide",a);b.delay(function(){function f(){b.delay(function(){var f=null,l=a.$container.find(document.activeElement).length, k=d(document.activeElement).is("a, button, input:not([type\x3d'hidden']), select, textarea, [tabindex]:not([tabindex\x3d'-1'])");if(l||!k)"dropdown"===a.type?f=a.$trigger:a.$trigger&&d(a.$trigger).length&&(f=a.$trigger.is("a, input, button")?a.$trigger:a.$trigger.find("a, input, button")),f&&f.length||(f=d(a.attrs("originalFocus"))),!f.length||y&&!f.is(":visible")||("secondary-view"===a.type||b.onScreen(f,0))&&f.focus()},400)}u&&u.apply(a,arguments);a.$popover.attr("aria-hidden","true");"tooltip"!== a.type&&l.attr("aria-hidden","false");a.parent.$container&&a.parent.$container.is(".a-popover")&&a.parent.$container.attr("aria-hidden","false");r&&(a.parent.attrs("lightboxOptions")?m.show(b.extend({popover:a.parent},r)):m.hide(r));e.trigger("afterHide",a);p=-2;a.attrs("restoreFocusOnHide")&&f()},0);return this};this.update=function(a){var d="string"===typeof a?{content:a}:b.copy(a),f=this.attrs();a=this.getDataStrategy();b.each(d,function(a,d){(a&&!f[d]||f[d]&&f[d]!==a)&&g.push(d)});this.isDirty()&& (d=b.extend({},f,d),this.attrs(d),this.getDataStrategy(d),this.$popover&&a.unloadContent(this),this.isActive()&&(r.call(this,!0),this.focus()));return this};this.refresh=function(a,d){return r.call(this,a||!0,d||!1)};this.isActive=function(){return 1<=p};this.isVisible=function(){return 2===p};this.isContentLoading=function(){return 3===p};this.setContentLoading=function(){p=3};this.isContentLoaded=function(){return 4===p};this.setContentLoaded=function(){p=4};this.isDirty=function(){return 0g&&f.css({height:g+"px","overflow-y":"scroll"})}e.trigger("afterUpdatePosition",a);e.trigger("positionUpdated",a);b.each(a.children,function(a){a.isActive()&&a.updatePosition()})};a.attrs("immersive")&&r?(l.css({top:0,left:0}),b.delay(function(){h()},0)):h()}return a};p.attrs=function(a,d){var l=this;if(d===f&&"object"!==typeof a)return a?"string"===typeof a?this.attributes[a]!==f?this.attributes[a]:null:null:this.attributes; "object"===typeof a?b.each(a,function(a,d){l.attrs(d,a)}):"string"===typeof a&&(this.attributes[a]=d,l[a]=d);return this};p.hideChildren=function(){b.each(this.children,function(a){a.unlock(1);a.hide()});return this};p.getFirstTabbable=function(){return this.$popover.find('[data-action\x3d"a-popover-close"]').add(a(this)).first()};p.getLastTabbable=function(){return a(this).last()};p.focus=function(){var a=this,f=d(v),l=f.scrollTop(),k=a.$popover.offset().top;t&&l>k&&f.scrollTop(k);b.delay(function(){a.getFirstTabbable().focus()}, 0);return this};return{PopoverClass:q}});"use strict";n.when("jQuery","ready").register("a-changeover",function(b){b(document).delegate(".a-changeover:not(.a-changeover-manual)","webkitAnimationEnd animationend click touchstart",function(b){this.style.display="none"})});"use strict";n.when("A").register("a-dropdown-base-positions",function(b){return{positionStrategy:function(e){var g=e.$popover,c=e.$trigger,m=e.measure;e=g.find(".a-popover-inner");e.css({"min-width":"0px",width:"auto",height:"auto"}); var h=c.nextAll(".a-button-dropdown");h.length||(h=c.closest(".a-button-group"));c=m(g,h);m=c.windowWidth-(c.triggerLeft+c.popoverWidth);h=c.windowWidth-c.triggerLeft-c.triggerWidth;var k=c.triggerLeft,q={},a=c.triggerTop-c.windowTop,f=c.windowBottom-c.triggerBottom,d=g.find(".a-popover-inner");a>f&&ff?d.addClass("a-lgtbox-vertical-scroll"): d.removeClass("a-lgtbox-vertical-scroll");e.hasClass("a-lgtbox-vertical-scroll")&&-1m&&k>h?c.triggerRight-c.popoverWidth:c.triggerLeft;return q}}});"use strict";n.when("A","a-dropdown-base-positions").register("a-dropdown-base-view-base",function(b,e){return b.extend(e,{updateContent:function(b){"string"===typeof b? this.$popover.find(".a-popover-inner").html(b):b&&this.$popover.find(".a-popover-inner").html("").append(b)},beforeShowMethod:function(){this.parent.lock(1);"combobox"===this.$trigger.attr("role")&&this.$trigger.attr("aria-expanded",!0)},afterShowMethod:function(){var e=this.$popover,c=e.find(".a-active");b.delay(function(){c.length?c.closest("li").focus():c=e.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(b,e){return e});"use strict";n.when("A","a-popover-base-factory","a-dropdown-base-view").register("a-dropdown-base-factory",function(b,e,g){function c(a,f,d){var l=['\x3cli tabindex\x3d"0" role\x3d"option"'],c=a.data("aCssClass"),h=a.data("aId"),e=a.data("aHtmlContent"),g=a.data("aImageSource"),q=JSON.stringify({stringVal:a.val()}); q=['\x3ca tabindex\x3d"-1" href\x3d"javascript:void(0)" aria-hidden\x3d"true" data-value\x3d"',b.escapeHtml(q),'"'];var m=["a-dropdown-link"],n=["a-dropdown-item"];f?(m.push("a-active"),l.push(' aria-selected\x3d"true"')):l.push(' aria-selected\x3d"false"');k&&(b.capabilities.mobile||b.capabilities.tablet)&&m.push("a-list-link-after-group");k=!1;c&&n.push(c);h&&l.push(' id\x3d"'+h+'"');l.push('aria-labelledby\x3d"');l.push(d);l.push('"');q.push(' id\x3d"');q.push(d);q.push('"');l.push(' class\x3d"'+ n.join(" ")+'"');l.push("\x3e");e?f=e:(f=[],g&&(m.push("a-option-has-image"),f.push('\x3cimg src\x3d"'+g+'" class\x3d"a-rich-option-image" /\x3e')),f.push(a.html()),f=f.join(""));q.push(' class\x3d"');q.push(m.join(" "));q.push('"\x3e');q.push(f);q.push("\x3c/a\x3e");l.push(q.join(""));l.push("\x3c/li\x3e");return l.join("")}function m(a){a.jquery||(a=h(a));var f=a.children("optgroup,option:not(.a-prompt)"),d=!1,l=a[0],b=a.attr("id")?a.attr("id"):"dropdown"+q++;if(-1f.length&&(f=d.find('[aria-selected\x3d"true"]'));d=f;return{index:0m)){c=(l.data("a-user-navigated-text")||"")+String.fromCharCode(g).toLocaleLowerCase();l.data("a-user-navigated-text",c);for(var t=l.children();mb.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");g="error"===m;m="disabled"===m;f.disabled=m;c.toggleClass("a-button-disabled",m);e(f).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",g)}b.native_id&&(f.id=b.native_id,k.length&&(k[0].htmlFor=b.native_id));b.id&&(l.id=b.id);b.native_css_class&&((l=a.data("a-native-class"))&&a.removeClass(l),a.addClass(b.native_css_class).data("a-native-class", b.native_css_class));b.css_class&&((l=d.data("a-class"))&&d.removeClass(l),d.addClass(b.css_class).data("a-class",b.css_class));b.label_text!==h&&(""===b.label_text?(d.find(".a-dropdown-label").remove(),a.siblings("label").remove()):(l=d.find(".a-dropdown-label"),l.length?l.text(b.label_text):d.find(".a-dropdown-prompt").before(e("\x3cspan class\x3d'a-dropdown-label' /\x3e").text(b.label_text)),k.length?k.text(b.label_text):a.before(e("\x3clabel for\x3d'"+f.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:c,val:m,getOptions:function(c){var k=this.options.$select,a=[];c=c===h?k.children("optgroup, option:not(.a-prompt)"):e.isArray(c)?c:[c];for(var f=0,d=c.length;f|\s>/g,"\x3e")},getEndAnchorHtml:function(a){return m},getDescription:function(a){var b="",d=a.id;(a=a.aria_description)&&(b=l("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(b,e){return{update:function(b,c,e){var h={};h.url=c;e.timeout&&(h.timeout=e.timeout);e.ajaxFailMsg&&(h.ajaxFailMsg=e.ajaxFailMsg);e.cache&&(h.cache=e.cache);b.update(h)},showSpinner:function(b){return e.showSpinner(b)}}}); "use strict";n.when("A").register("a-popover-animate",function(b){function e(c,e){return function(){b[c].apply(b,e)}}function g(b,e){return function(){b._isAnimating=!1;e&&e()}}return{isAnimating:function(b){return b._isAnimating},animate:function(c,m,h,k,q){c._isAnimating=0a.windowBottom- 20&&(d=Math.min(20,a.windowBottom-a.triggerBottom+20),b.deltaTop=b.top+a.popoverHeight-(a.windowBottom-d),b.top=a.windowBottom-d-a.popoverHeight);return b}function h(a){var b={deltaLeft:0};b.left=a.triggerHorizontalCenter-a.popoverWidth/2;if(20>b.left){var d=Math.min(20,a.triggerLeft-20);b.deltaLeft=b.left-d;b.left=d}else b.left+a.popoverWidth>a.windowRight-20&&(d=Math.min(20,a.windowRight-a.triggerRight+20),b.deltaLeft=b.left+a.popoverWidth-(a.windowRight-d),b.left=a.windowRight-d-a.popoverWidth); return b}var k=b.$;k(v);var q=null,a=1,f=b.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=g(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=g(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,b){var d=a.$popover,f=a.$trigger;b||(b=g(d,f));f=m(b);f.left=b.triggerRight;a.attrs("popoverArrow")&&(c(d).addClass("a-arrow-right"),d.find(".a-arrow-border").css("top",b.popoverHeight/2+f.deltaTop));return f},triggerLeft:function(a,b){var d=a.$popover,f=a.$trigger;b||(b=g(d,f));f=m(b);f.left=b.triggerLeft-b.popoverWidth;f.left=0b.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:g(c,d);return b.triggerTop-b.windowTop>b.popoverHeight+20?this.triggerTop(a,b):this.triggerBottom(a,b)},triggerVerticalAlignLeft:function(a,b){var d=a.$popover,f=a.$trigger;b||(b=g(d,f));f={};var e=0,h=b.windowBottom-b.triggerBottom;f.left=b.triggerLeft;f.top=h>b.popoverHeight?b.triggerBottom+ 3:b.triggerTop-b.popoverHeight-3;if(20>f.left){var l=Math.min(20,b.triggerLeft-20);e=f.left-l;f.left=l}else f.left+b.popoverWidth>b.windowRight-20&&(l=Math.min(20,b.windowRight-b.triggerRight+20),e=f.left+b.popoverWidth-(b.windowRight-l),f.left=b.windowRight-l-b.popoverWidth);a.attrs("popoverArrow")&&(c(d).addClass(h>b.popoverHeight?"a-arrow-bottom":"a-arrow-top"),d.find(".a-arrow-border").css("left",b.triggerWidth/2+e));return f},customPosition:function(a,b){return b.call(this,{popover:a,$popover:a.$popover, $trigger:a.$trigger,measure:g})}}});"use strict";n.when("A","a-modal-view-base","a-modal-positions","a-popover-accessibility").register("a-modal-view",function(b,e,g,c){var m=b.$;m=m("html").hasClass("a-lt-ie9");return b.extend(e,b.capabilities.touch||b.capabilities.mobile||b.capabilities.tablet||m?g.innerScroll:g.modalScroll,{skin:function(e){var h=e.attrs("id"),g=e.attrs("header")||"",a=e.attrs("hideHeader")||!1,f=e.attrs("footer"),d=e.attrs("modeless")||!1,l=e.attrs("closeButton"),m=e.attrs("closeButtonLabel")|| "",p=e.attrs("hideHeaderCloseButtonLayout")||"",n=e.attrs("popoverLabel")||"",t=e.attrs("padding");e=e.attrs("ariaDescription");e={id:h,header_str:g,label_str:n,aria_description:e};n=c.getDescription(e);var y=c.getPopoverLabelHtml(e);l='\x3cbutton data-action\x3d"a-popover-close" class\x3d"'+(l?"":" a-button-close-a11y")+" a-button-close a-declarative"+(a?l?"top"===p?" 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'; g=!a||y?"\x3cheader"+(a?"":' class\x3d"a-popover-header"')+"\x3e"+(a?"":'\x3ch4 class\x3d"a-popover-header-content'+(d?" a-popover-draggable-handle":"")+'" id\x3d"a-popover-header-'+h+'"\x3e'+g+"\x3c/h4\x3e")+l+y+"\x3c/header\x3e":l;f=f?'\x3cdiv class\x3d"a-popover-footer"\x3e'+f+"\x3c/div\x3e":"";t="none"===t?" a-padding-none":"";a=b.capabilities.isAndroid?"":c.getStartAnchorSimplifiedHtml();l=b.capabilities.isAndroid?"":c.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"'+c.getAriaLabel(e)+"\x3e";return m+e+a+n+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+g+('\x3cdiv class\x3d"a-popover-inner'+t+'" id\x3d"a-popover-content-'+h+'"\x3e\x3c/div\x3e')+f+"\x3c/div\x3e"+l+"\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(b,e,g,c){function m(a){var b=a.$popover.closest(".a-modal-scroller");b.scrollTop(0).css("visibility","visible");b.bind("scroll",function(){a.updateChildrenPosition()})}function h(){var a=b.viewport();2a)return c({"padding-right":b+"px","box-sizing":"content-box"}),!0;c({"padding-right":"","box-sizing":""});return!1}function q(a){return function(b){a.css(b)}} var a=b.$,f=c.isIE10Plus&&b.capabilities.mobile,d=0;n.when("prv:skin-vars").execute(function(a){d=a.popover.optionalButtonHeight});n.declare("prv:a-model-applyHorizonalScrollStyles",k);return{innerScroll:{positionStrategy:function(l){var m=l.popover,p=l.$popover,n=l.$trigger,t=p.find(".a-popover-inner").css("height","auto"),y=p.closest(".a-modal-scroller"),z={},w=b.viewport(!0),A=.1*w.height,B=.05*w.width;w=.8*w.height;var x=m.attrs("height");m=m.attrs("min-height");p.css({height:x?x:"","min-height":m? m:""});n=l.measure(p,n);z.left=(n.windowWidth-n.popoverWidth)/2;k(z.left,B,q(p))&&(z.left=B);g.evaluateActualHeight(l,n.popoverHeight,d)>w?(m=p.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0,x=p.find(".a-popover-footer").outerHeight(!0)||0,l=g.getOffsetTopDelta(l,A,d),w-=l,A+=l,t.css({height:w-m-x+"px","overflow-y":"auto"}),p.css({height:w,"min-height":0}),z.top=A):(z.top=(n.windowHeight-n.popoverHeight)/2,t.css("height","auto"));z.left+=n.zoomLeft;z.top+=n.zoomTop;f&&(y.css("top", a(v).scrollTop()),p.removeClass("a-popover-pan-y").addClass("a-popover-pan-x"),p=a(document).height(),t=a(document).width(),a("#"+e.LIGHTBOX_ID).css({height:p,width:t>n.popoverWidth?t:n.popoverWidth+B}));c.isMetroIEGuess&&c.isIETouchCapable&&h();return z},beforeShowMethod:b.constants.NOOP,beforeHideMethod:b.constants.NOOP},modalScroll:{positionStrategy:function(a){var d=a.$popover,f=a.$trigger,e=d.closest(".a-modal-scroller"),g=d.find(".a-popover-inner").css("height","auto");if(d.hasClass("a-popover-modal-fixed-height")){var l= d.find(".a-popover-footer");g.css("padding-bottom",l.height()+15)}g={};var m=b.viewport(!0),n=m.height;l=.1*n;m=.05*m.width;n*=.8;var v=d.height(),x=d.width();a=a.measure(d,f);g.left=(a.windowWidth-x)/2;g.top=(a.windowHeight-v)/2;k(g.left,m,q(d))&&(g.left=m);v>n?e.length?(g.top=0,d.css({position:"relative",margin:a.zoomTop+l+"px 0 "+l+"px "+(a.zoomLeft+g.left)+"px"}),g.left=0,e.css("padding-bottom","1px")):v>n&&(g.top=padding):e.length&&(d.css({position:"absolute",margin:"0px"}),e.css("padding-bottom", "0px"));g.left+=a.zoomLeft;g.top+=a.zoomTop;c.isMetroIEGuess&&c.isIETouchCapable&&h();return g},beforeShowMethod:function(){m(this)},beforeHideMethod:function(){this.$popover.closest(".a-modal-scroller").css("visibility","hidden").unbind("scroll")}},util:{determineMaximumInnerHeight:function(a){var d=a.$popover;a=.8*b.viewport().height;var c=d.find(".a-popover-header, .a-modal-close-nohead-top").outerHeight(!0)||0;d=d.find(".a-popover-footer").outerHeight(!0)||0;return a-c-d},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(b,e,g,c,m){function h(a,f){var d=!1,h=!1;b.capabilities.mobile||b.capabilities.tablet||(d=c.getBool(f.modeless),h=c.getBool(f.draggable));f={modeless:d,draggable:h,type:"modal",alone:!0,immersive:!0,position:"windowCenter",header:f.header,hideHeader:f.hideHeader,footer:f.footer,padding:f.padding, width:f.width,height:f.height,"max-width":f["max-width"],"max-height":f["max-height"],"min-width":f["min-width"],"min-height":f["min-height"],closeButton:c.getBool(f.closeButton,!0),timeout:f.timeout,lightboxOptions:d?x:{lockScroll:!0,showDuration:k||q?0:null},data:f.data||{},dataStrategy:f.dataStrategy,url:f.url,manualRefresh:!!f.manualRefresh,ajaxFailMsg:f.ajaxFailMsg,cache:c.getBool(f.cache,!0),inlineContent:f.inlineContent?f.inlineContent:f.content,name:f.name,closeButtonLabel:f.closeButtonLabel? f.closeButtonLabel:"Close",hideHeaderCloseButtonLayout:f.hideHeaderCloseButtonLayout,popoverLabel:f.popoverLabel,ariaDescription:f.ariaDescription,ajaxHeaders:f.ajaxHeaders,withCredentials:c.getBool(f.withCredentials,!1),legacyNavigable:c.getBool(f.legacyNavigable,!0)};return e.create(a,{attributes:f,typeSpecificFunctions:g,actionCheck:!0})}var k=-1g-c?c-g:0},evaluateActualHeight:function(b,g,c){return b.$popover.find(".a-button-close").length&&!b.$popover.find(".a-button-close-a11y").length?g+c:g}}});"use strict";n.when("A","a-popover-view-base","a-popover-util","a-popover-accessibility").register("a-popover-view",function(b,e,g,c){var m= !0;n.when("prv:skin-vars").execute(function(b){m=b.popover.closeButtonEnabled});return b.extend(e,{skin:function(e){var g=e.attrs("id"),h=e.attrs("header"),a=m&&e.attrs("closeButton"),f=e.attrs("closeButtonLabel")||"",d=e.attrs("popoverLabel")||"",l=e.attrs("ariaDescription"),n=e.attrs("padding");e=e.attrs("popoverArrow");l={id:g,header_str:h,label_str:d,aria_description:l};b.capabilities.isAndroid&&(f=(d||h)+" "+f);a='\x3cbutton data-action\x3d"a-popover-close" class\x3d"a-button-close '+(a?"":"a-button-close-a11y")+ ' a-declarative" aria-label\x3d"'+f+'"\x3e\x3ci class\x3d"a-icon a-icon-close"\x3e\x3c/i\x3e\x3c/button\x3e';var p=(f=!!h)?"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=b.capabilities.isAndroid?"":c.getStartAnchorSimplifiedHtml();var r=b.capabilities.isAndroid?"":c.getEndAnchorHtml(l);h=h?'\x3ch4 class\x3d"a-popover-header-content" id\x3d"a-popover-header-'+g+'"\x3e'+ h+"\x3c/h4\x3e":"";p='\x3cdiv class\x3d"a-popover '+p+' a-declarative" data-action\x3d"a-popover-container a-popover-a11y" aria-modal\x3d"true" role\x3d"dialog"'+c.getAriaLabel(l)+"\x3e";var t=c.getDescription(l);l=c.getPopoverLabelHtml(l);return p+d+t+'\x3cdiv class\x3d"a-popover-wrapper"\x3e'+(f?'\x3cheader class\x3d"a-popover-header"\x3e'+h+a+l+"\x3c/header\x3e":"")+('\x3cdiv class\x3d"a-popover-inner'+n+'"\x3e')+(f?"":l?"\x3cheader\x3e"+a+l+"\x3c/header\x3e":a)+('\x3cdiv class\x3d"a-popover-content" id\x3d"a-popover-content-'+ g+'"\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(b,e,g,c){function m(b,k){k={type:"popover",alone:!0,header:k.header,width:k.width,height:k.height,"max-width":k["max-width"],"max-height":k["max-height"],"min-width":k["min-width"],"min-height":k["min-height"],padding:k.padding,closeButton:c.getBool(k.closeButton,!0),position:k.position||"triggerVertical", activate:k.activate||"onmouseover",timeout:k.timeout,data:k.data||{},dataStrategy:k.dataStrategy,url:k.url,manualRefresh:!!k.manualRefresh,ajaxFailMsg:k.ajaxFailMsg,cache:c.getBool(k.cache,!0),inlineContent:k.inlineContent?k.inlineContent:k.content,name:k.name,closeButtonLabel:k.closeButtonLabel?k.closeButtonLabel:"Close",popoverLabel:k.popoverLabel,ariaDescription:k.ariaDescription,focusWhenShown:c.getBool(k.focusWhenShown,!0),popoverArrow:c.getBool(k.popoverArrow,!0),restoreFocusOnHide:c.getBool(k.restoreFocusOnHide, !0)};return e.create(b,{attributes:k,typeSpecificFunctions:g,actionCheck:!0})}return{type:"popover",create:m,get:function(b){var g=e.get(b,"popover");g||"object"!==typeof b||(b=c.extractDeclarativeParams(b,"popover"))&&(g=m(b.$trigger,b.attributes||{}));return g},remove:function(b){return e.remove(b,"popover")}}});"use strict";n.when("A","a-popover-factory").register("a-popover-handlers",function(b,e){function g(a){a&&!a.destroyTimer&&(a.destroyTimer=b.delay(function(){a.hide()},250))}function c(a){a&& (clearTimeout(a.destroyTimer),a.destroyTimer=null,clearTimeout(a.parent.destroyTimer),a.parent.destroyTimer=null)}var m=b.$,h={},k=!(b.capabilities.mobile||b.capabilities.tablet)&&b.capabilities.ios;b.declarative("a-popover","click",function(a){var b=e.get(a.$declarativeParent);b&&(b.show(),a.$event.preventDefault())});b.declarative("a-popover","keydown",function(a){var c=b.constants.keycodes,d=a.$event.which;if(d===c.ENTER||d===c.SPACE)a.$event.preventDefault(),e.get(a.$declarativeParent).show()}); if(!k){var n;b.declarative("a-popover","mouseenter",function(a){var f=e.get(a.$declarativeParent);f&&"onmouseover"===f.attrs("activate")&&(c(f),n=b.delay(function(){(f=e.get(a.$declarativeParent))&&h.popover===f&&1b.cursor().speed&&c&&"onmouseover"===c.attrs("activate")&&h.popover===c&&1a;)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,"")}})}); /* ******** */ (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 0f;f++)a.push("0123456789"[Math.floor(10*Math.random())]);return a.join("")},hasKeys:function(a,f){return f.every(function(c){return c in a})}}});h.when("A","3p-promise","prv:a-modal-framework-constants").register("a-modal-framework-inline",function(a,e,f){return{getContent:function(a,d){var c="undefined"===typeof a.source?a:a.source;return new e(function(a,b){""!==c?(d.html(c),a()):b(f.errorMessages.EMPTY_CONTENT)})},abortContent:function(){}}});h.when("A","3p-promise","prv:a-modal-framework-constants").register("a-modal-framework-preload",function(a,e,f){var c=a.$,d=a.constants.HIDE_CLASS;return{getContent:function(a,g){if(a.source){var b= c((0===a.source.indexOf("#")?"":"#")+a.source);return new e(function(a,c){0b.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)}})}); /* ******** */ (function(g){var e=window.AmazonUIPageJS||window.P,h=e._namespace||e.attributeErrors,d=h?h("AmazonUIStepper","AmazonUI"):e;d.guardFatal?d.guardFatal(g)(d,window):d.execute(function(){g(d,window)})})(function(g,e,h){g.when("A","jQuery","a-analytics").register("a-stepper-framework",function(d,e,h){function m(a){var b=e(a).first();if(b.data("stepperinstance"))return b.data("stepperinstance");var c={getStatus:function(){return b.data("a-value-status")},getValue:function(){return b.data("steppervalue")}, getName:function(){return b.attr("name")},setValue:function(a){p(b,a);return c},setStatus:function(a){n(b,a);return c}};b.data("stepperinstance",c);return c}function r(a,b){var c=a.find('[data-a-selector\x3d"decrement"]'),d=a.find('[data-a-selector\x3d"decrement-icon"]'),g=a.find('[data-a-selector\x3d"increment"]'),e=a.find('[data-a-selector\x3d"increment-icon"]'),f=b.steppervalue,h=f-b.valuestep=b.valuemax;f=h?"trash":"normal";var k=b?"disabled":"normal";a.attr("data-a-size");c.attr("aria-disabled", h);d.removeClass().addClass("a-icon a-icon-small-"+{normal:"remove",disabled:"remove-disabled",trash:"trash"}[f]);a.attr("data-a-decrement-status",f);g.attr("aria-disabled",b);e.removeClass().addClass("a-icon a-icon-small-"+{normal:"add",disabled:"add-disabled"}[k]);a.attr("data-a-increment-status",k)}function k(a,b){var c=a.data();b=c.steppervalue+b*c.valuestep;b={$stepperElement:a,stepperElement:a.get(),stepper:m(a),newValue:b};d.trigger("a:stepper:value:change",b);(c=a.attr("name"))?d.trigger("a:stepper:value:change:"+ c,b):h.logError("[AUI] Stepper is missing required name attribute.","WARN",d.attributionChain(a.get(0)))}function q(a,b){a.attr(b,"");a.one("animationend",function(){a.removeAttr(b)})}function n(a,b){var c=a.find('[data-a-selector\x3d"spinbutton"]'),e={loading:a.data().loadingstatelabel};if(0>d.indexOfArray(["normal","loading"],b))return g.error(b+" is not a valid status"),!1;a.attr("data-a-value-status",b);c.attr({"aria-valuetext":e[b]})}function p(a,b){var c=a.data(),d=c.steppervalue;if(d!==b){var e= c.valuemax||Infinity,g=c.valuemin,f=c.valuestep,h=a.find('[data-a-selector\x3d"decrement-icon"]'),k=a.find('[data-a-selector\x3d"value"]'),m=b>d?"data-a-animate-down":"data-a-animate-up";f=g+f;var l;d===f&&b>f&&(l="data-a-animate-down");d>f&&b===f&&(l="data-a-animate-up");be||(a.data("steppervalue",b),a.attr("data-steppervalue",b),c.steppervalue=b,r(a,c),l&&q(h,l),setTimeout(function(){var b=a.find('[data-a-selector\x3d"spinbutton"]'),d=a.find('[data-a-selector\x3d"value"]'),e=c.steppervalue, f=c.valuemin,g=c.valuemaxreachedlabel,h=c.valueminreachedlabel,l=e;e>=c.valuemax&&(l=e+", "+g);e<=f&&(l=e+", "+h);b.attr({"aria-valuenow":e,"aria-valuetext":l});d.text(e);n(a,"normal");q(k,m)},116.5))}}d.declarative("a-stepper","click",function(a){a.$event.stopPropagation();a.$event.preventDefault()});d.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)});d.declarative("a-stepper-decrement","click",function(a){a=a.$currentTarget.closest('[data-a-component\x3d"stepper"]');0!==a.length&&k(a,-1)});d.declarative("a-stepper-increment","click",function(a){a=a.$currentTarget.closest('[data-a-component\x3d"stepper"]');0!==a.length&&k(a,1)});return{getStepper:m,setStatus:n,setValue:p}});"use strict";g.when("a-stepper-framework").register("a-stepper",function(d){return{getStepperByName:function(e){return d.getStepper(document.querySelector('[data-a-component\x3d"stepper"][name\x3d"'+ e+'"]'))},getStepper:d.getStepper}})}); /* ******** */ (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(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="eec2df32ac055c01b72150f9bb9e8eef63693331"}); /* ******** */